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

Unified Diff: python/convertrules.py

Issue 331820043: Allow quoted strings as Scheme arguments to markup commands (Closed)
Patch Set: Run makelsr.py for fixing a few \version statements Created 7 years, 5 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/titling-init.ly ('k') | scm/accreg.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 ddebce0c689b1aae8cf0ea60da24c8e85b068fa0..7c8d7591083e8a69b414276a9f36a78f22f23be0 100644
--- a/python/convertrules.py
+++ b/python/convertrules.py
@@ -3929,7 +3929,8 @@ def conv (str):
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.}""")
+@rule ((2, 21, 0), r"""\note #"4." -> \note {4.}
+\markup-command #" -> \markup-command " """)
def conv (str):
def repl1ly (m):
if m.group (2)[0] in "blm":
@@ -3959,6 +3960,12 @@ def conv (str):
paren_matcher (20) + r"\)", replscm, str)
str = re.sub (r'\(markup\s' + paren_matcher (20) + r'\)',
replmarkup, str)
+ str = re.sub (r'(\\(?:fret-diagram(?:-terse)?|harp-pedal|justify-string'
+ r'|lookup|musicglyph|postscript|simple|tied-lyric|verbatim-file'
+ r'|with-url|wordwrap-string'
+ r'|discant|freeBass|stdBass|stdBassIV|stdBassV|stdBassVI'
+ r')\s*)[#$](\\?")',
+ r'\1\2', str)
return str
« no previous file with comments | « ly/titling-init.ly ('k') | scm/accreg.scm » ('j') | no next file with comments »

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