a = re.sub ( '-', '- ', a)        # split words with -
+    a = re.sub ( ' - - ', ' -- ', a)  # unless was originally " -- "

Just being curious:

Maybe I am totally wrong (since I do not know the abc format in detail), but shouldn't this be rather something like

a = re.sub ( '([^-])-([^-])', '\\1- \\2', a)        # split words with "-" unless was 
originally "--"

or similar (untested)?

Greetings,
Juergen


_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to