OLD | NEW |
1 # -*- coding: utf-8 -*- | 1 # -*- coding: utf-8 -*- |
2 # (setq py-indent-offset 4) | 2 # (setq py-indent-offset 4) |
3 | 3 |
4 | 4 |
5 import string | 5 import string |
6 import re | 6 import re |
7 import sys | 7 import sys |
8 import lilylib | 8 import lilylib |
9 | 9 |
10 _ = lilylib._ | 10 _ = lilylib._ |
(...skipping 3870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3881 | 3881 |
3882 str = re.sub (r"(\\time\s*)#'\(([0-9]+(?:\s+[0-9]+)+)\)", repl, str) | 3882 str = re.sub (r"(\\time\s*)#'\(([0-9]+(?:\s+[0-9]+)+)\)", repl, str) |
3883 def repl (m): | 3883 def repl (m): |
3884 subst = re.sub (r"\s+", ",", m.group (1)) | 3884 subst = re.sub (r"\s+", ",", m.group (1)) |
3885 return subst + (4 + len (m.group (1)) - len (subst)) * " " + m.group (2) | 3885 return subst + (4 + len (m.group (1)) - len (subst)) * " " + m.group (2) |
3886 | 3886 |
3887 str = re.sub (r"#'\(([0-9]+(?:\s+[0-9]+)+)\)(\s+%\s*beatStructure)", | 3887 str = re.sub (r"#'\(([0-9]+(?:\s+[0-9]+)+)\)(\s+%\s*beatStructure)", |
3888 repl, str) | 3888 repl, str) |
3889 return str | 3889 return str |
3890 | 3890 |
| 3891 @rule ((2, 19, 45), r"""\consists "Output_property_engraver" ->""") |
| 3892 def conv (str): |
| 3893 str = re.sub (r'\\(consists|remove)\s+"?Output_property_engraver"?\s*', |
| 3894 '', str) |
| 3895 return str |
| 3896 |
3891 # Guidelines to write rules (please keep this at the end of this file) | 3897 # Guidelines to write rules (please keep this at the end of this file) |
3892 # | 3898 # |
3893 # - keep at most one rule per version; if several conversions should be done, | 3899 # - keep at most one rule per version; if several conversions should be done, |
3894 # concatenate them into a single "conv" function; | 3900 # concatenate them into a single "conv" function; |
3895 # | 3901 # |
3896 # - enclose strings to be localized with `_(' and `)'; | 3902 # - enclose strings to be localized with `_(' and `)'; |
3897 # | 3903 # |
3898 # - write rule for bumping major stable version with | 3904 # - write rule for bumping major stable version with |
3899 # | 3905 # |
3900 # _ ("bump version for release") | 3906 # _ ("bump version for release") |
3901 # | 3907 # |
3902 # as exact description. | 3908 # as exact description. |
OLD | NEW |