From e49c5005eaba4eed9a1966cbfd2e6741beb34a20 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Thu, 30 Aug 2007 11:16:02 +0200 Subject: [PATCH] MusicXML: wrap lyrics in quotes. 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/musicxml.py b/python/musicxml.py index 0d4813de1d..0430661da9 100644 --- a/python/musicxml.py +++ b/python/musicxml.py @@ -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 "" -- 2.39.5