]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/convertrules.py
Issue 4507/1: Let \applyOutput take an optional grob spec
[lilypond.git] / python / convertrules.py
index a824fcbd5a83651ff57f36c9c11c194da611f2c7..fd33dce1d162e6b3a0f0f12e59dd22398e8749ce 100644 (file)
@@ -3826,10 +3826,12 @@ def conv(str):
         return str
     return inner (str)
 
-@rule ((2, 19, 24), "music-has-type -> music-is-of-type?")
+@rule ((2, 19, 24), r"""music-has-type -> music-is-of-type?
+\applyOutput #'Context -> \applyOutput Context""")
 def conv (str):
     str = re.sub (r'(?<=\s|["\\()])' + "music-has-type" + r'(?=\s|["\\()])',
                   "music-is-of-type?", str)
+    str = re.sub (r"(\\applyOutput\s+)#'([a-zA-Z])", r"\1\2", str)
     return str
 
 # Guidelines to write rules (please keep this at the end of this file)