X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Fconvertrules.py;h=90bb54ac7f69e655af44bbb7e13b6e974f038c0e;hb=e480f60f4618cd3e6b743f3fc4d2482af8de0cb5;hp=12a3b6c5b64655ea8d76e9d08fd534f96e512aa2;hpb=6fef7b7a22004cccab9b133d7458fb100d47293a;p=lilypond.git diff --git a/python/convertrules.py b/python/convertrules.py index 12a3b6c5b6..90bb54ac7f 100644 --- a/python/convertrules.py +++ b/python/convertrules.py @@ -2791,6 +2791,22 @@ 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 + # 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,