]> git.donarmstrong.com Git - lilypond.git/commitdiff
MusicXML: wrap lyrics in quotes.
authorReinhold Kainhofer <reinhold@kainhofer.com>
Thu, 30 Aug 2007 09:16:02 +0000 (11:16 +0200)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 1 Sep 2007 03:07:33 +0000 (00:07 -0300)
The autput of some OMR applications contains spaces in lyrics, or a
lyrics syllable starts with a comma or a peroid. Thus we need to wrap
all lyrics in quotes just to be sure lilypond doesn't barf.

python/musicxml.py

index 0d4813de1db5607dbd05963504a2bce0a673f831..0430661da98cb7a0fe52e58580d198b7ccb4e021 100644 (file)
@@ -336,11 +336,11 @@ class Lyric (Music_xml_node):
         elif text == "_" and continued:
             return "__"
         elif continued and text:
-            return text + " --"
+            return "\"" + text + "\" --"
         elif continued:
             return "--"
         elif text:
-            return text
+            return "\"" + text + "\""
         else:
             return ""