From: Reinhold Kainhofer Date: Sun, 24 May 2009 15:03:50 +0000 (+0200) Subject: Better detection which characters need to be quoted in lyrics X-Git-Tag: release/2.12.3-1~97 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=92e3d468e424ec6d2fbfd7d633d1d00e40e57a08;p=lilypond.git Better detection which characters need to be quoted in lyrics (cherry picked from commit 0ac32e91fab38b860ad951b8f0cd4700f79ba86a) --- diff --git a/python/musicxml.py b/python/musicxml.py index b6a5bbeac8..431bcd695d 100644 --- a/python/musicxml.py +++ b/python/musicxml.py @@ -15,7 +15,7 @@ def error (str): def escape_ly_output_string (input_string): return_string = input_string - needs_quotes = not re.match (u"^[a-zA-ZäöüÜÄÖßñ]*$", return_string); + needs_quotes = not re.match (u"^[a-zA-ZäöüÜÄÖß,\.!:ñ]*$", return_string); if needs_quotes: return_string = "\"" + string.replace (return_string, "\"", "\\\"") + "\"" return return_string