X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Fconvertrules.py;h=0373f109156a2ca0c9538a029bc05cb137d061de;hb=1f419a2af14d4a5daf9bc9eb5f7368eedb5c6021;hp=12a3b6c5b64655ea8d76e9d08fd534f96e512aa2;hpb=d5f72b53d15b0f461ecafecc4d7139fb2d7d95b9;p=lilypond.git diff --git a/python/convertrules.py b/python/convertrules.py index 12a3b6c5b6..0373f10915 100644 --- a/python/convertrules.py +++ b/python/convertrules.py @@ -2791,6 +2791,32 @@ def conv (str): str = re.sub (r"infinite-spacing-height\s+=\s+##f", r"extra-spacing-height = #'(0 . 0)", str) return str +@rule ((2, 11, 55), "#(set-octavation oct) -> \\ottava #oct,\n\ +\\put-adjacent markup axis dir markup -> \\put-adjacent axis dir markup markup") +def conv (str): + str = re.sub (r"#\(set-octavation (-*[0-9]+)\)", r"\\ottava #\1", str) + if re.search ('put-adjacent', str): + stderr_write (NOT_SMART % _ ("\\put-adjacent argument order.\n")) + stderr_write (_ ("Axis and direction now come before markups:\n")) + stderr_write (_ ("\\put-adjacent axis dir markup markup.")) + return str + +@rule ((2, 11, 57), "\\center-align -> \\center-column, \\hcenter -> \\center-align") +def conv (str): + str = re.sub (r"([\\:]+)center-align", r"\1center-column", str) + str = re.sub (r"hcenter(\s+)", r"center-align\1", str) + return str + +@rule ((2, 11, 60), "printallheaders -> print-all-headers") +def conv (str): + str = re.sub (r"printallheaders", r"print-all-headers", str) + return str + +@rule ((2, 11, 61), "gregorian-init.ly -> gregorian.ly") +def conv (str): + str = re.sub (r'\\include(\s+)"gregorian-init.ly"', r'\\include\1"gregorian.ly"', 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,