From: hanwen Date: Sun, 24 Oct 2004 12:57:11 +0000 (+0000) Subject: (conv): \context Foo = NOTENAME X-Git-Tag: release/2.3.24^2~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=025c2e71acfdf372d0086c7e5124a8207982b13d;p=lilypond.git (conv): \context Foo = NOTENAME -> \context Foo = "NOTENAME". --- diff --git a/ChangeLog b/ChangeLog index 250ab01bf6..97ba2cb4e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-10-24 Han-Wen Nienhuys + * scripts/convert-ly.py (conv): \context Foo = NOTENAME + -> \context Foo = "NOTENAME". + * lily/main.cc (determine_output_options): fix ordering. 2004-10-24 Erik Sandberg diff --git a/scripts/convert-ly.py b/scripts/convert-ly.py index 7b8fec0457..f440513950 100644 --- a/scripts/convert-ly.py +++ b/scripts/convert-ly.py @@ -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 ################################