lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another patch (this one is important) to abc2ly


From: Juergen Reuter
Subject: Re: Another patch (this one is important) to abc2ly
Date: Sun, 1 Oct 2006 21:51:49 +0200 (CEST)

     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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]