-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am Montag, 22. Dezember 2008 schrieb Maximilian Albert: > 2008/12/22 Maximilian Albert <maximilian.alb...@googlemail.com>: > > Should convert-ly rules be formulated so that Scheme-version > > of commands like the above are also taken into account? > > Never mind, I just saw that the rule for \center-align already has > this. So here is a patch for \bigger. In fact, the former reads > > str = re.sub (r"([\\:]+)center-align", r"\1center-column", str) > > so it allows multiple backslashes/colons. Is this necessary?
It is not really necessary (because the regexp does not check anything before). However, any source code that prints out the command will need to escape the \ as \\, thus there will be two backslashes. Of course, the regexp ([\\:]) would still match, since we don't match the character before. Still, it can be useful to leave the "+" in, just in case one copies the expression for some other rule and adds a check for characters before the command. Cheers, Reinhold - -- - ------------------------------------------------------------------ Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/ * Financial & Actuarial Math., Vienna Univ. of Technology, Austria * http://www.fam.tuwien.ac.at/, DVR: 0005886 * LilyPond, Music typesetting, http://www.lilypond.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFJT75xTqjEwhXvPN0RAiC8AKC53AFBMTlb+FT/gUUMVK/iGs15ygCeMOuF 3KRzywWWIaWpLYPMrxLN0i8= =VONy -----END PGP SIGNATURE----- _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel