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

On Mittwoch, 29. April 2009 12:16:52 Graham Percival wrote:
> On Wed, Apr 29, 2009 at 11:37:12AM +0200, Reinhold Kainhofer wrote:
> > I think the solution is to simply check that no letter follows after
> > \octave, This can be easiest done by a negative lookahead patter in the
> > RegExp: str = re.sub (r"\\octave(?![a-zA-Z])", r"\\octaveCheck", str)
> >
> > Patch is at:
> > http://codereview.appspot.com/53055
> >
> > Okay to commit?
>
> Sure, but what about the 200 other re.sub()s that should get
> similar treatment?  :)
>
> Definitely a job for a Frog, though.  Hopefully we can point
> somebody at this patch, and they can duplicate it wherever
> appropriate.

Exactly. It's just that Jonathan said he didn't know how to fix this, so I 
wanted to provide a solution that can be used by a Frog...

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)

iD8DBQFJ+CqDTqjEwhXvPN0RAqqzAJ9SWWzzkxrnGWx0Y3IkoGwkmOUOyACgpZag
K9w3/pyCDgHlrkr0NKB4SBM=
=re0j
-----END PGP SIGNATURE-----


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

Reply via email to