From 089f1ffd69802f46ae264ec39d4b1596d92c516a Mon Sep 17 00:00:00 2001 From: Robin Whittleton Date: Sun, 17 Sep 2023 15:30:53 +0200 Subject: [PATCH] =?UTF-8?q?Modernize=20bon=C3=A2=20fide=20to=20bona=20fide?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- se/spelling.py | 1 + 1 file changed, 1 insertion(+) diff --git a/se/spelling.py b/se/spelling.py index 7821f8ba..520dbd3a 100644 --- a/se/spelling.py +++ b/se/spelling.py @@ -435,6 +435,7 @@ def modernize_spelling(xhtml: str) -> str: xhtml = regex.sub(r"\b([Uu])nder weigh\b", r"\1nderway", xhtml) # under weigh -> underway xhtml = regex.sub(r"\bQuire(s?)\b", r"Choir\1", xhtml) # quire -> choir xhtml = regex.sub(r"\bquire(s?)\b", r"choir\1", xhtml) # quire -> choir + xhtml = regex.sub(r"\b([Bb]onâ fide\b", r"\1ona fide", xhtml) # bonâ fide -> bona fide # Normalize some names xhtml = regex.sub(r"Moliere", r"Molière", xhtml) # Moliere -> Molière