Soft-hypens (created by an OMR software from scans) will make the
ascii codec as well as lilypond later barf on that unicode character.
import new
+import string
from rational import *
class Xml_node:
if text:
text = text.get_text()
+ # We need to convert soft hyphens to -, otherwise the ascii codec as well
+ # as lilypond will barf on that character
+ text = string.replace( text, u'\xad', '-' )
+
if text == "-" and continued:
return "--"
elif text == "_" and continued: