diff options
author | Janek WarchoĊ <lemniskata.bernoullego@gmail.com> | 2013-04-10 22:22:10 +0200 |
---|---|---|
committer | David Kastrup <dak@gnu.org> | 2013-05-08 20:32:40 +0200 |
commit | 94dc452301cc0d1e9983f5aeb784884f7fe8c964 (patch) | |
tree | 3dcce8343679ecef4e66751230628169e5041604 /python | |
parent | 9a9b94b7305e415bc519393d57dd6c5830661a97 (diff) |
Rename OctavateEight to ClefModifier
Name "OctavateEight" didn't make any sense. The grob doesn't have
to be an eight, and it doesn't describe octavation, but arbitrary
transposition (not only whole octaves). Also, the name should reflect
its affiliation with Clef grob.
The name "ClefTransposition" was also considered, but it was decided
that it would be too confusing together with clefTransposition, which
is a context property.
Also change related context properties.
Diffstat (limited to 'python')
-rw-r--r-- | python/convertrules.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/python/convertrules.py b/python/convertrules.py index b0a46ebac8..b64cf75783 100644 --- a/python/convertrules.py +++ b/python/convertrules.py @@ -3547,6 +3547,19 @@ def conv(str): r"\1 " + do + r"\2", str) return str +@rule ((2, 17, 18), + "Rename OctavateEight to ClefModifier, rename related properties.") +def conv(str): + str = re.sub ('OctavateEight', 'ClefModifier', str) + str = re.sub ('octavate-eight-interface', 'clef-modifier-interface', str) + str = re.sub ('clefOctavation', 'clefTransposition', str) + str = re.sub ('clefOctavationFormatter', 'clefTranspositionFormatter', str) + str = re.sub ('clefOctavationStyle', 'clefTranspositionStyle', str) + str = re.sub ('cueClefOctavation', 'cueClefTransposition', str) + str = re.sub ('cueClefOctavationFormatter', 'cueClefTranspositionFormatter', str) + str = re.sub ('cueClefOctavationStyle', 'cueClefTranspositionStyle', 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, |