]> 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 40e6bfba4e904c97f0bdfcd830f9c64c801d169d..d535ae8ce96dda13cfe17e895b6e5e460b35ce81 100644 (file)
@@ -2784,8 +2784,14 @@ conversions.append (((2, 7, 40), conv,
 
 
 def conv (str):
-    str = re.sub ('page-penalty', 'page-break-penalty')
-    str = re.sub ('([^-])penalty', '\1break-penalty')
+    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 """))