summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2013-09-15 16:14:50 +0200
committerDavid Kastrup <dak@gnu.org>2013-09-20 17:08:23 +0200
commit33aeaf9fa3c02e3e9398d4b99965fc94984b9a44 (patch)
tree5d9d701c3f9508df4f826115be376ce0f23f3254 /python
parent3b617fc949192eacf627413dac0420ebc54aebf6 (diff)
convert-ly rule for simplifying \stringTuning
Diffstat (limited to 'python')
-rw-r--r--python/convertrules.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/convertrules.py b/python/convertrules.py
index ba65d9683d..854b8d2304 100644
--- a/python/convertrules.py
+++ b/python/convertrules.py
@@ -3641,6 +3641,12 @@ def conv(str):
str = re.sub (words + "|" + matchstring, wordreplace, str)
return str
+@rule((2, 17, 27), r'''\stringTuning \notemode -> \stringTuning''')
+def conv(str):
+ str = re.sub (r"\\stringTuning\s*\\notemode(\s*)@?\{\s*(.*?)\s*@?}",
+ r"\\stringTuning\1\2", 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,