]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/convert-new-chords.py
* input/regression/spacing-note-flags.ly (raggedright): remove
[lilypond.git] / buildscripts / convert-new-chords.py
index 59a2081941b3cd15705341b80893b39e5c33475e..5941d445d0e17e0ac16c2f0e1a1e12a0f9308afd 100644 (file)
@@ -127,8 +127,12 @@ def sub_chords (str):
        str= re.sub (r'\\>', '@STARTDECRESC@', str)
        str= re.sub (r'([_^-])>', r'\1@ACCENT@', str)
        str = re.sub ('<([^<>{}]+)>', sub_chord, str)
-       str = re.sub (r'\\! *@STARTCHORD@([^@]+)@ENDCHORD@',
-                     r'@STARTCHORD@\1@ENDCHORD@-\!',
+
+       str = re.sub (r'\[ *(@STARTCHORD@[^@]+@ENDCHORD@[0-9.]+)',
+                     r'\1-[',
+                     str)
+       str = re.sub (r'\\! *(@STARTCHORD@[^@]+@ENDCHORD@[0-9.]+)',
+                     r'\1-\\!',
                      str)
        str = re.sub ('<([^?])', r'%s\1' % simstart, str)
        str = re.sub ('>([^?])', r'%s\1' % simend,  str)