From 4125d63a0e38c517e1c91c6c33ea8406a06dd03e Mon Sep 17 00:00:00 2001 From: Robin Whittleton Date: Thu, 31 Oct 2024 16:56:41 +0100 Subject: [PATCH] =?UTF-8?q?Modernize=20a=C3=ABrial=20->=20aerial?= 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 33313e2d..6857a91e 100644 --- a/se/spelling.py +++ b/se/spelling.py @@ -191,6 +191,7 @@ def modernize_spelling(xhtml: str) -> str: xhtml = regex.sub(r"\b([Cc])oërc", r"\1oerc", xhtml) # coërc -> coerc (as in coërcion) xhtml = regex.sub(r"\b([Cc])oëd", r"\1oed", xhtml) # coëd -> coed (as in coëducation) xhtml = regex.sub(r"\b([Dd])aïs\b", r"\1ais", xhtml) # daïs -> dais + xhtml = regex.sub(r"\b([Aa])ërial", r"\1erial", xhtml) # aërial -> aerial xhtml = regex.sub(r"\b([Cc])oup[\- ]de[\- ]gr[aâ]ce", r"\1oup de grâce", xhtml) # coup-de-grace -> coup-de-grâce xhtml = regex.sub(r"\b([Cc])anape", r"\1anapé", xhtml) # canape -> canapé xhtml = regex.sub(r"\b([Pp])recis\b", r"\1récis", xhtml) # precis -> précis