X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=blobdiff_plain;f=scripts%2Fconvert-ly.py;h=d35e379b41e1bdb257d2fe8df4065dc3b591ebb1;hb=4eb6f42fc6ca20d65c788a73eb78dfcc22ea0453;hp=583d7f5f9e90559e3ac64e91b4737e460128ca59;hpb=166b618065caa177005063b838f452ed801f20fe;p=lilypond.git diff --git a/scripts/convert-ly.py b/scripts/convert-ly.py index 583d7f5f9e..d35e379b41 100644 --- a/scripts/convert-ly.py +++ b/scripts/convert-ly.py @@ -525,10 +525,8 @@ if 1: -################ TODO: lots of other syntax change should be done here as well - - +# TODO: lots of other syntax change should be done here as well if 1: def conv (str): str = re.sub ('basicCollisionProperties', 'NoteCollision', str) @@ -623,7 +621,7 @@ if 1: conversions.append (((1,3,97), conv, 'ChordName -> ChordNames')) -## TODO: add lots of these +# TODO: add lots of these if 1: def conv (str): @@ -782,8 +780,21 @@ if 1: conversions.append (((1,3,144), conv, 'Chorda -> Corda')) -############################ - +if 1: + def conv (str): + str = re.sub ('([A-Za-z]+)MinimumVerticalExtent', 'MinimumV@rticalExtent', str) + str = re.sub ('([A-Za-z]+)ExtraVerticalExtent', 'ExtraV@rticalExtent', str) + str = re.sub ('([A-Za-z]+)VerticalExtent', 'VerticalExtent', str) + str = re.sub ('ExtraV@rticalExtent', 'ExtraVerticalExtent', str) + str = re.sub ('MinimumV@rticalExtent', 'MinimumVerticalExtent', str) + return str + + conversions.append (((1,3,145), conv, + 'ContextNameXxxxVerticalExtent -> XxxxVerticalExtent')) + +################################ +# END OF CONVERSIONS +################################ def get_conversions (from_version, to_version): def version_b (v, f = from_version, t = to_version):