X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Fconvertrules.py;h=e94bf30e7625c5c5d6cd0863d46607805d9b13e0;hb=5a35e437e5f824a92655b73b5735442308bd9be4;hp=ccf686c5bfa2be92bc60b2e533577e11cc057c24;hpb=c7555d70732969277c5e906285ec04e5b561c38e;p=lilypond.git diff --git a/python/convertrules.py b/python/convertrules.py index ccf686c5bf..e94bf30e76 100644 --- a/python/convertrules.py +++ b/python/convertrules.py @@ -2801,6 +2801,28 @@ def conv (str): 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 + +@rule ((2, 11, 62), "makam-init.ly -> makam.ly, \\bigger -> \\larger") +def conv (str): + str = re.sub (r'\\include(\s+)"makam-init.ly"', r'\\include\1"makam.ly"', str) + str = re.sub (r"\\bigger", r"\\larger", 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,