]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/convertrules.py
* lily/grob.cc (get_stencil): simplify: use callback mechanism to
[lilypond.git] / python / convertrules.py
index 6f99647b16ccd9740c71e80871eddd9d7a47a2c4..15913c841420bba1bf20c28a41fc50fa416bf9e5 100644 (file)
@@ -2249,8 +2249,8 @@ def conv (str):
        return str
 
 conversions.append (((2, 3, 16), conv,
-                    '''\foo -> \foomode (for chords, notes, etc.)
-fold \new FooContext \foomode into \foo.'''))
+                    '''\\foo -> \\foomode (for chords, notes, etc.)
+fold \\new FooContext \\foomode into \\foo.'''))
 
 def conv (str):
        str = re.sub (r'(slur|stem|phrasingSlur|tie|dynamic|dots|tuplet|arpeggio|)Both', r'\1Neutral', str)
@@ -2259,8 +2259,8 @@ def conv (str):
        return str
 
 conversions.append (((2, 3, 17), conv,
-                    '''\foo -> \foomode (for chords, notes, etc.)
-fold \new FooContext \foomode into \foo.'''))
+                    '''\\foo -> \\foomode (for chords, notes, etc.)
+fold \\new FooContext \\foomode into \\foo.'''))
 
 
 def conv (str):
@@ -2555,3 +2555,45 @@ conversions.append (((2, 7, 6), conv,
                     '''Performer_group_performer -> Performer_group, Engraver_group_engraver -> Engraver_group
 inside-slur -> avoid-slur'''))
 
+
+
+def conv (str):
+       str = re.sub(r'\\applyoutput', r'\\applyOutput', str)
+       str = re.sub(r'\\applycontext', r'\\applyContext', str)
+       str = re.sub(r'\\applymusic',  r'\\applyMusic', str)
+       str = re.sub(r'ly:grob-suicide', 'ly:grob-suicide!', str)
+       return str
+
+conversions.append (((2, 7, 10), conv,
+                    '''\\applyxxx -> \\applyXxx'''))
+
+
+
+def conv (str):
+       str = re.sub(r'\"tabloid\"', '"11x17"', str)
+       return str
+
+conversions.append (((2, 7, 11), conv,
+                    '''\"tabloid\" -> \"11x17\"'''))
+
+def conv (str):
+       str = re.sub(r'outputProperty' , 'overrideProperty', str)
+       return str
+
+conversions.append (((2, 7, 12), conv,
+                    '''outputProperty -> overrideProperty'''))
+
+def conv (str):
+       if re.search(r'(after-line-breaking-callback|before-line-breaking-callback|print-function)', str):
+               error_file.write ("""
+
+Conversion rules for 2.7.13 layout engine refactoring haven't been written yet.
+
+""")
+               
+               raise FatalConversionError ()
+       
+       return str
+
+conversions.append (((2, 7, 13), conv,
+                    '''layout engine refactoring. [FIXME] '''))