]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/convert-ly.py
add verbs.
[lilypond.git] / scripts / convert-ly.py
index 8323d21d124dcbd4f56728e0c11cd9611d0b16c5..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
 
@@ -1225,6 +1225,29 @@ if 1:
        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