]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/convert-ly.py
add verbs.
[lilypond.git] / scripts / convert-ly.py
index 9093b73f05b36ed1ad74ea963e0178f4b18b3495..9326c6f399a654c6fd4d36a010fe0029e0457707 100644 (file)
@@ -47,10 +47,10 @@ input is guessed by default from \version directive
 
 Options:
   -h, --help             print this help
-  -e, --edit             in place edit
-  -f, --from=VERSION     start from version. Overrides \version found in file.
+  -e, --edit             edit in place
+  -f, --from=VERSION     start from version; overrides \version found in file
   -s, --show-rules       print all rules.
-  -t, --to=VERSION       target version
+  -t, --to=VERSION       show target version
   -n, --no-version       don't add new version stamp.
       --version          print program version
 
@@ -1210,6 +1210,45 @@ if 1:
        
        conversions.append (((1,7,22), conv,"remove GraceContext"))
 
+if 1:
+       def conv(str):
+               str = re.sub (
+                       "barNonAuto *= *##t",
+                       "automaticBars = ##f",
+                       str)
+               str = re.sub (
+                       "barNonAuto *= *##f",
+                       "automaticBars = ##t",
+                       str)
+               return str
+       
+       conversions.append (((1,7,23), conv,"barNonAuto -> automaticBars"))
+       
+
+if 1:
+       def conv(str):
+               if re.search( r'-(start|stop)Cluster', str):
+                       sys.stderr.write ("""Cluster syntax has been changed.
+Please refer to the manual for details, and convert manually.
+""")
+                       
+                       raise FatalConversionError()
+
+               return str
+       
+       conversions.append (((1,7,24), conv,"cluster syntax"))
+
+if 1:
+       def conv(str):
+               str = re.sub (r"\\property *Staff\.(Sustain|Sostenuto|UnaCorda)Pedal *\\(override|set) *#'pedal-type *",
+                               r"\property Staff.pedal\1Style ", str)
+               str = re.sub (r"\\property *Staff\.(Sustain|Sostenuto|UnaCorda)Pedal *\\revert *#'pedal-type", '', str)
+               return str
+       
+       conversions.append (((1,7,28), conv,"new Pedal style syntax"))
+
+
+
 ################################
 #      END OF CONVERSIONS      
 ################################