summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2015-07-16 15:54:33 +0200
committerDavid Kastrup <dak@gnu.org>2015-07-21 07:07:35 +0200
commit579cc91ea384517d2c6b85e224074ffdfaa1f5ba (patch)
tree1ac9f00a12f489f3b2c06083b91cf81dbf84c598 /python
parent47ce0f0eb601fd3d8fd38e9782e74e21c8b76205 (diff)
Issue 4507/1: Let \applyOutput take an optional grob spec
Diffstat (limited to 'python')
-rw-r--r--python/convertrules.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/convertrules.py b/python/convertrules.py
index a824fcbd5a..fd33dce1d1 100644
--- a/python/convertrules.py
+++ b/python/convertrules.py
@@ -3826,10 +3826,12 @@ def conv(str):
return str
return inner (str)
-@rule ((2, 19, 24), "music-has-type -> music-is-of-type?")
+@rule ((2, 19, 24), r"""music-has-type -> music-is-of-type?
+\applyOutput #'Context -> \applyOutput Context""")
def conv (str):
str = re.sub (r'(?<=\s|["\\()])' + "music-has-type" + r'(?=\s|["\\()])',
"music-is-of-type?", str)
+ str = re.sub (r"(\\applyOutput\s+)#'([a-zA-Z])", r"\1\2", str)
return str
# Guidelines to write rules (please keep this at the end of this file)