Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1808)

Unified Diff: python/convertrules.py

Issue 369930043: Change \partcombine (et al.) to \partCombine (Closed)
Patch Set: Correct convert rules. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ly/property-init.ly ('k') | scm/define-context-properties.scm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: python/convertrules.py
diff --git a/python/convertrules.py b/python/convertrules.py
index eef7927e62d2fef08820273859884d10069dee3e..b80555a5b6880120ce136cef81788dc92df6d0e7 100644
--- a/python/convertrules.py
+++ b/python/convertrules.py
@@ -3934,7 +3934,8 @@ matchscmarg = (r'(?:[a-zA-Z_][-a-zA-Z_0-9]*|"(?:[^\\"]|\\.)*"|[-+]?[0-9.]+|\('
+ paren_matcher (10) + r"\))")
@rule ((2, 21, 0), r"""\note #"4." -> \note {4.}
-\markup-command #" -> \markup-command " """)
+\markup-command #" -> \markup-command "
+\partcombine* -> \partCombine, \autochange -> \autoChange""")
def conv (str):
def repl1ly (m):
if m.group (2)[0] in "blm":
@@ -3970,9 +3971,11 @@ def conv (str):
r'|discant|freeBass|stdBass|stdBassIV|stdBassV|stdBassVI'
r')\s*)[#$](\\?")',
r'\1\2', str)
+ str = re.sub (r"\\partcombine(Force|Up|Down|Chords|Apart|Unisono|SoloI|SoloII|Automatic|)\b",
+ r"\\partCombine\1", str)
+ str = re.sub (r"\\autochange", r"\\autoChange", 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,
« no previous file with comments | « ly/property-init.ly ('k') | scm/define-context-properties.scm » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b