From ff8bb507f041708d3ceff5cc8f6e3478a4eda4b3 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Mon, 29 Jan 2024 19:18:40 -0600 Subject: [PATCH] modernize-spelling: Sion -> Zion --- se/spelling.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/se/spelling.py b/se/spelling.py index de9fadff..311ec76c 100644 --- a/se/spelling.py +++ b/se/spelling.py @@ -492,8 +492,9 @@ def modernize_spelling(xhtml: str) -> str: xhtml = regex.sub(r"[YJ]edd?o\b", r"Edo", xhtml) # Yeddo/Jeddo -> Edo xhtml = regex.sub(r"Pesth\b", r"Pest", xhtml) # Pesth -> Pest, i.e. Buda-Pest xhtml = regex.sub(r"Buda-Pest\b", r"Budapest", xhtml) # Buda-Pest -> Budapest - xhtml = regex.sub(r"Chili(\b|an\b)\b", r"Chile\1", xhtml) # Chili -> Chile - xhtml = regex.sub(r"(? al-Zubayr) in the middle of a sentence + xhtml = regex.sub(r"Chili(\b|an\b)\b", r"Chile\1", xhtml) # Chili -> Chile + xhtml = regex.sub(r"(? al-Zubayr) in the middle of a sentence + xhtml = regex.sub(r"\bSion\b", r"Zion", xhtml) # Sion -> Zion # Remove archaic diphthongs xhtml = regex.sub(r"\b([Mm])edi(æ|ae)val", r"\1edieval", xhtml)