]> git.donarmstrong.com Git - lilypond.git/commitdiff
(conv): \context Foo = NOTENAME
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 24 Oct 2004 12:57:11 +0000 (12:57 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 24 Oct 2004 12:57:11 +0000 (12:57 +0000)
-> \context Foo = "NOTENAME".

ChangeLog
scripts/convert-ly.py

index 250ab01bf6e0422847737500dbeb44c897a2e79e..97ba2cb4e2e9989afc607ac306fc02471e98bddb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-10-24  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * scripts/convert-ly.py (conv): \context Foo = NOTENAME
+       -> \context Foo = "NOTENAME".
+
        * lily/main.cc (determine_output_options): fix ordering.
 
 2004-10-24  Erik Sandberg  <ersa9195@student.uu.se>
index 7b8fec0457351323c2e6fe3f2e990fd00c6ba98a..f44051395040a4f67dd0f2380cb8a422bcc9a3c6 100644 (file)
@@ -2214,6 +2214,17 @@ conversions.append (((2, 3, 22),
                     '''paper -> layout
  bookpaper -> paper''' ))
 
+
+def conv (str):
+       str = re.sub (r'\\context\s+([a-zA-Z]+)\s*=\s*([a-z]+)',
+                     r'\\context \1 = "\2"',
+                     str )
+       return str
+
+conversions.append (((2, 3, 23),
+                    conv,
+                    '''\context Foo = NOTENAME -> \context Foo = "NOTENAME"'''))
+
 ################################
 #      END OF CONVERSIONS      
 ################################