]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/convert-ly.py
patch::: 1.3.131.jcn2
[lilypond.git] / scripts / convert-ly.py
index 0c0505f58bb3784915e94cef2ddcdd3d57e3a85b..c8a19658b79f31c2b5950dafbf8835f65d2cdd03 100644 (file)
@@ -550,6 +550,15 @@ if 1:
        
        conversions.append (((1,3,97), conv, 'ChordName -> ChordNames'))
 
+if 1:
+       def conv (str):
+               str = re.sub ('\\\\property *Voice *[.] *textStyle *= *"([^"]*)"', '\\\\property Voice.TextScript \\\\set #\'font-style = #\'\\1', str)
+               str = re.sub ('\\\\property *Lyrics *[.] *textStyle *= *"([^"]*)"', '\\\\property Lyrics.LyricText \\\\set #\'font-style = #\'\\1', str)
+
+               return str
+       
+       conversions.append (((1,3,98), conv, 'CONTEXT.textStyle -> GROB.#font-style '))
+
 if 1:
        def conv (str):
                str = re.sub ('beamAutoEnd_([0-9]*) *= *(#\\([^)]*\\))', 'autoBeamSettings \\push #\'(end 1 \\1 * *) = \\2', str)
@@ -738,7 +747,7 @@ from_version = ()
 outfile_name = ''
 
 (options, files) = getopt.getopt (
-       sys.argv[1:], 'o:f:t:seh', ['version', 'output', 'show-rules', 'help', 'edit', 'from=', 'to'])
+       sys.argv[1:], 'o:f:t:seh', ['version', 'output', 'show-rules', 'help', 'edit', 'from=', 'to='])
 
 for opt in options:
        o = opt[0]