[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: adding to the LSR
From: |
Reinhold Kainhofer |
Subject: |
Re: adding to the LSR |
Date: |
Wed, 29 Apr 2009 12:22:59 +0200 |
User-agent: |
KMail/1.11.2 (Linux/2.6.27-14-generic; KDE/4.2.2; i686; ; ) |
-----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, 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)
iD8DBQFJ+CqDTqjEwhXvPN0RAqqzAJ9SWWzzkxrnGWx0Y3IkoGwkmOUOyACgpZag
K9w3/pyCDgHlrkr0NKB4SBM=
=re0j
-----END PGP SIGNATURE-----
- Re: adding to the LSR, (continued)
- Re: adding to the LSR, Jonathan Kulp, 2009/04/28
- Re: adding to the LSR, Carl D. Sorensen, 2009/04/28
- Re: adding to the LSR, Chip, 2009/04/29
- Re: adding to the LSR, Graham Percival, 2009/04/29
- Re: adding to the LSR, Mats Bengtsson, 2009/04/29
- Re: adding to the LSR, Graham Percival, 2009/04/29
- Re: adding to the LSR, Jonathan Kulp, 2009/04/29
- Re: adding to the LSR, Jonathan Kulp, 2009/04/29
- Re: adding to the LSR, Reinhold Kainhofer, 2009/04/29
- Re: adding to the LSR, Graham Percival, 2009/04/29
- Re: adding to the LSR,
Reinhold Kainhofer <=
- Re: adding to the LSR, Valentin Villenave, 2009/04/29
- Re: adding to the LSR, Reinhold Kainhofer, 2009/04/29
- Re: adding to the LSR, Neil Puttock, 2009/04/28