]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/convertrules.py
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / python / convertrules.py
index 4c0465785a5182d44daa2d81c3d0bcf29aa6e29d..d535ae8ce96dda13cfe17e895b6e5e460b35ce81 100644 (file)
@@ -2781,3 +2781,17 @@ def conv (str):
 
 conversions.append (((2, 7, 40), conv,
                    "rehearsalMarkAlignSymbol/barNumberAlignSymbol -> break-align-symbol"))
+
+
+def conv (str):
+    str = re.sub ('page-penalty', 'page-break-penalty', str)
+    str = re.sub ('([^-])penalty', '\1break-penalty', str)
+    return str
+
+conversions.append (((2, 9, 4), conv, """(page-)penalty -> (page-)break-penalty"""))
+
+def conv (str):
+    str = re.sub (r'\\context\s+\"?([a-zA-Z]+)\"?\s*\\applyOutput', r"\\applyOutput #'\1", str)
+    return str
+
+conversions.append (((2, 9, 6), conv, """\context Foo \applyOutput #bla -> \applyOutput #'Foo #bla """))