]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/convertrules.py
Release: update news.
[lilypond.git] / python / convertrules.py
index 60fb1740fd58826582b775ea6b8280b50e2791b8..78512310c30c35d6bd9513852423a3f14858fc18 100644 (file)
@@ -3368,6 +3368,24 @@ def conv (str):
         stderr_write (_ ("beamExceptions controls whole-measure beaming.") + "\n")
     return str
 
+@rule ((2, 15, 42), r"\set stringTuning -> \set Staff.stringTuning")
+def conv (str):
+    str = re.sub (r"(\\set\s+)stringTuning", r"\1Staff.stringTuning", str)
+    return str
+
+wordsyntax = r"[a-zA-Z\200-\377](?:[-_]?[a-zA-Z\200-\377])*"
+
+@rule ((2, 15, 43), r'"custom-tuning" = -> custom-tuning =')
+def conv (str):
+    str = re.sub ('\n"(' + wordsyntax + r')"(\s*=\s*\\stringTuning)', "\n\\1\\2", str)
+    return str
+
+@rule ((2, 16, 0),
+       _ ("bump version for release"))
+def conv (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,