]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/convertrules.py
Merge remote-tracking branch 'origin' into translation
[lilypond.git] / python / convertrules.py
index bbafef4a3da5146da99d26cc48a3796c1f7f4f33..5eb2a75bfc4f17bbcea91068518c2e928b502d99 100644 (file)
@@ -3711,6 +3711,13 @@ def conv (str):
     str = re.sub (r'\\lyricmode\s*(\\lyricsto\b)', r"\1", str)
     return str
 
+@rule ((2, 19, 7), "keySignature -> keyAlterations")
+def conv(str):
+    str = re.sub (r'\bkeySignature\b', 'keyAlterations', str)
+    str = re.sub (r'\blastKeySignature\b', 'lastKeyAlterations', str)
+    str = re.sub (r'\blocalKeySignature\b', 'localAlterations', str)
+    return str
+
 # Guidelines to write rules (please keep this at the end of this file)
 #
 # - keep at most one rule per version; if several conversions should be done,