Index: python/convertrules.py |
diff --git a/python/convertrules.py b/python/convertrules.py |
index e02023be0a7b627c0b319215b0ae368929a4c2f1..97637bb3bb0f55f4053cba3f3b7326ecb89b2762 100644 |
--- a/python/convertrules.py |
+++ b/python/convertrules.py |
@@ -3918,6 +3918,13 @@ def conv (str): |
str = re.sub (automatic, r"\1output-attributes.id", str) |
return str |
+@rule ((2, 20, 0), r'''\language "deutsch": beh -> heh''') |
+def conv (str): |
+ changes = re.findall (r'\\language\s*#?"([a-zçñ]+)"', str) |
+ if changes and (changes.count ('deutsch') == len (changes)): |
+ str = re.sub (r'\bbeh\b', 'heh', str) |
+ return str |
+ |
matchscmarg = (r'(?:[a-zA-Z_][-a-zA-Z_0-9]*|"(?:[^\\"]|\\.)*"|[-+]?[0-9.]+|\(' |
+ paren_matcher (10) + r"\))") |