lilypond-devel
[Top][All Lists]
Advanced

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

Re: Convert-ly rules


From: Reinhold Kainhofer
Subject: Re: Convert-ly rules
Date: Mon, 22 Dec 2008 17:21:04 +0100
User-agent: KMail/1.10.3 (Linux/2.6.27-9-generic; KDE/4.1.3; i686; ; )

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Montag, 22. Dezember 2008 schrieb Maximilian Albert:
> 2008/12/22 Maximilian Albert <address@hidden>:
> > 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, address@hidden, 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-----




reply via email to

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