]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/convertrules.py
Change \tweak syntax to symbol syntax
[lilypond.git] / python / convertrules.py
index 66ff15247638b800c005552c0e1e971e4e2fd4c5..861e57ac4f3532da841897ed398e7e8f01c10714 100644 (file)
@@ -3425,7 +3425,8 @@ def conv(str):
 
 @rule ((2, 17, 6), r"""\accidentalStyle #'Context "style" -> \accidentalStyle Context.style
 \alterBroken "Context.grob" -> \alterBroken Context.grob
-\overrideProperty "Context.grob" -> \overrideProperty Context.grob""")
+\overrideProperty "Context.grob" -> \overrideProperty Context.grob
+\tweak Grob #'symbol -> \tweak Grob.symbol""")
 def conv (str):
     str = re.sub (r'''(\\accidentalStyle\s+)#?"([-A-Za-z]+)"''',
                   r"\1\2", str)
@@ -3433,6 +3434,8 @@ def conv (str):
                   r"\1\2.\3", str)
     str = re.sub (r'''(\\(?:alterBroken|overrideProperty)\s+)#?"([A-Za-z]+)\s*\.\s*([A-Za-z]+)"''',
                   r"\1\2.\3", str)
+    str = re.sub (r'''(\\tweak\s+)#?"?([A-Za-z]+)"?\s+?#'([-A-Za-z]+)''',
+                  r"\1\2.\3", str)
     return str
 
 # Guidelines to write rules (please keep this at the end of this file)