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

Unified Diff: python/convertrules.py

Issue 5412051: Add \accidentalStyle command (Closed)
Patch Set: Created 12 years, 4 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') | no next file » | 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 6ea53ea37d33a1d35c316b962fdeba69b742c332..c10a22bb5231596ccbba07f2fa8633d0b9af5da7 100644
--- a/python/convertrules.py
+++ b/python/convertrules.py
@@ -3346,6 +3346,12 @@ def conv (str):
stderr_write ('\n')
return str
+@rule ((2, 15, 20), r"$(set-accidental-style ...) -> \accidentalStyle")
+def conv (str):
+ str = re.sub (r"\$\(set-accidental-style\s+'([-a-z]+)\)",
+ r'\\accidentalStyle "\1"', 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') | no next file » | no next file with comments »

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