This is required since not all of the old call forms can be
automatically recognized anymore, in particular not when the
Scheme-only form #"Context.GrobName" is being used.
---
 python/convertrules.py |   13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/python/convertrules.py b/python/convertrules.py
index b8921a0..3da8459 100644
--- a/python/convertrules.py
+++ b/python/convertrules.py
@@ -3398,6 +3398,19 @@ def conv (str):
                   matcharg + ")", r"\\shape\2\1", str)
     return str
 
+@rule ((2, 17, 5), r"""\accidentalStyle #'Context "style" -> \accidentalStyle 
Context.style
+\alterBroken "Context.grob" -> \alterBroken Context.grob
+\overrideProperty "Context.grob" -> \overrideProperty Context.grob""")
+def conv (str):
+    str = re.sub (r'''(\\accidentalStyle\s+)#?"([-A-Za-z]+)"''',
+                  r"\1\2", str)
+    str = re.sub 
(r'''(\\accidentalStyle\s+)#'([A-Za-z]+)\s+#?"?([-A-Za-z]+)"?''',
+                  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)
+    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,
-- 
1.7.9.5


_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to