Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1320)

Unified Diff: python/convertrules.py

Issue 547610043: Fix and align musicxml and input language "deutsch" (Closed)
Patch Set: Also fix english quarternote names in musicexp.py Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | python/musicexp.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"\))")
« no previous file with comments | « no previous file | python/musicexp.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b