|
From: | John Mandereau |
Subject: | Re: adding to the LSR |
Date: | Wed, 29 Apr 2009 17:34:10 +0200 |
User-agent: | Thunderbird 2.0.0.21 (X11/20090320) |
Graham Percival a écrit :
Good idea, but let's be careful with applying this function to existing rules: some of them may purposely contain no space at the end of the regular expression. Only people with huge LilyPond knoweledge or motivation to look around old documentation should edit existing rules to change this.Is it worth defining our own function replaceOnly("\\octave", ...) which does re.sub("\\octave[?a-z,A-Z]", ...) or whatever the regex was? I imagine that almost every convert-ly rule would benefit from "match this command, and only this command" rules, so this could save typing. And, more to the point, confusion amongst non-regex-savvy people.
Any other thoughts? John
[Prev in Thread] | Current Thread | [Next in Thread] |