]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/convert-mudela.py
release: 1.1.69
[lilypond.git] / scripts / convert-mudela.py
index 4909d29dc743246667837f879a5e893b4a3f9000..39b46d05e38dda73f5b0a7f1657b535f0b46f12b 100644 (file)
@@ -350,6 +350,64 @@ if 1:
                            'hshift -> horizontalNoteShift')
 
 
+if 1:
+       def conv(lines):
+               newlines =[]
+               for x in lines:
+                       x =  re.sub ('\\\\grouping[^;]*;','', x)
+                       newlines.append (x)
+               return newlines
+
+       conversions.append ((1,1,52), conv,
+                           'deprecate \\grouping')
+
+
+if 1:
+       def conv(lines):
+               newlines =[]
+               for x in lines:
+                       x =  re.sub ('\\\\wheel','\\\\coda', x)
+                       newlines.append (x)
+               return newlines
+
+       conversions.append ((1,1,55), conv,
+                           '\\wheel -> \\coda')
+
+if 1:
+       def conv(lines):
+               newlines =[]
+               for x in lines:
+                       x =  re.sub ('keyoctaviation','keyOctaviation', x)
+                       x =  re.sub ('slurdash','slurDash', x)
+                       newlines.append (x)
+               return newlines
+
+       conversions.append ((1,1,65), conv,
+                           'slurdash -> slurDash, keyoctaviation -> keyOctaviation')
+
+if 1:
+       def conv(lines):
+               newlines =[]
+               for x in lines:
+                       x =  re.sub ('\\repeat *\"?semi\"?','\\repeat "volta"', x)
+                       newlines.append (x)
+               return newlines
+
+       conversions.append ((1,1,66), conv,
+                           'semi -> volta')
+
+
+if 1:
+       def conv(lines):
+               newlines =[]
+               for x in lines:
+                       x =  re.sub ('\"?beamAuto\"? *= *\"?0?\"?','noAutoBeaming = "1"', x)
+                       newlines.append (x)
+               return newlines
+
+       conversions.append ((1,1,67), conv,
+                           'beamAuto -> noAutoBeaming, automaticMelismas -> automaticMelismata',)
+
 
 ############################
        
@@ -447,7 +505,7 @@ outfile_name = ''
 
 identify ()
 (options, files) = getopt.getopt (
-       sys.argv[1:], 'f:t:seh', ['show-rules', 'help', 'edit', 'from', 'to'])
+       sys.argv[1:], 'o:f:t:seh', ['output', 'show-rules', 'help', 'edit', 'from', 'to'])
 
 for opt in options:
        o = opt[0]
@@ -463,6 +521,8 @@ for opt in options:
        elif o== '--show-rules' or o == '-s':
                show_rules (sys.stdout)
                sys.exit(0)
+       elif o == '--output' or o == '-o':
+               outfile_name = a
        else:
                print o
                raise getopt.error