lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 14/16] convert-ly rule for \alterbroken, \accidentalStyle, \overr


From: David Kastrup
Subject: [PATCH 14/16] convert-ly rule for \alterbroken, \accidentalStyle, \overrideProperty
Date: Tue, 9 Oct 2012 20:59:59 +0200

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
 
address@hidden ((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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]