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