OLD | NEW |
1 # (setq py-indent-offset 4) | 1 # (setq py-indent-offset 4) |
2 | 2 |
3 | 3 |
4 import string | 4 import string |
5 import re | 5 import re |
6 import sys | 6 import sys |
7 import lilylib | 7 import lilylib |
8 | 8 |
9 _ = lilylib._ | 9 _ = lilylib._ |
10 | 10 |
(...skipping 3328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3339 str = re.sub (r"\$\(set-time-signature\s+([0-9]+)\s+([0-9]+)\s*\)", | 3339 str = re.sub (r"\$\(set-time-signature\s+([0-9]+)\s+([0-9]+)\s*\)", |
3340 r"\\time \1/\2", str) | 3340 r"\\time \1/\2", str) |
3341 str = re.sub (r"\$\(set-time-signature\s+([0-9]+)\s+([0-9]+)\s+(" + | 3341 str = re.sub (r"\$\(set-time-signature\s+([0-9]+)\s+([0-9]+)\s+(" + |
3342 paren_matcher (5) + r")\)", r"\\time #\3 \1/\2", str) | 3342 paren_matcher (5) + r")\)", r"\\time #\3 \1/\2", str) |
3343 if re.search (r"\(set-time-signature\s+", str): | 3343 if re.search (r"\(set-time-signature\s+", str): |
3344 stderr_write ('\n') | 3344 stderr_write ('\n') |
3345 stderr_write (NOT_SMART % "set-time-signature") | 3345 stderr_write (NOT_SMART % "set-time-signature") |
3346 stderr_write ('\n') | 3346 stderr_write ('\n') |
3347 return str | 3347 return str |
3348 | 3348 |
| 3349 @rule ((2, 15, 20), r"$(set-accidental-style ...) -> \accidentalStyle") |
| 3350 def conv (str): |
| 3351 str = re.sub (r"\$\(set-accidental-style\s+'([-a-z]+)\)", |
| 3352 r'\\accidentalStyle "\1"', str) |
| 3353 return str |
| 3354 |
3349 # Guidelines to write rules (please keep this at the end of this file) | 3355 # Guidelines to write rules (please keep this at the end of this file) |
3350 # | 3356 # |
3351 # - keep at most one rule per version; if several conversions should be done, | 3357 # - keep at most one rule per version; if several conversions should be done, |
3352 # concatenate them into a single "conv" function; | 3358 # concatenate them into a single "conv" function; |
3353 # | 3359 # |
3354 # - enclose strings to be localized with `_(' and `)'; | 3360 # - enclose strings to be localized with `_(' and `)'; |
3355 # | 3361 # |
3356 # - write rule for bumping major stable version with | 3362 # - write rule for bumping major stable version with |
3357 # | 3363 # |
3358 # _ ("bump version for release") | 3364 # _ ("bump version for release") |
3359 # | 3365 # |
3360 # as exact description. | 3366 # as exact description. |
OLD | NEW |