
On Tue, Apr 14, 2009 at 2:28 PM, Toby Speight <T.M.Speight.90@cantab.net> wrote:
Clinton> Without the regex and using the subst rule, I get a number of roads Clinton> that have improper symbols. See the attached screen shot for an Clinton> example.
Oh - are those really valid 'ref' values?
I think these are most likely incorrect 'ref' values, however they seem to occur frequently enough in certain maps to be annoying unless they are filtered out.
I see what you mean, and I think the right way is probably to upgrade my simple 'subst' filter to handle regexps. Do you think that that would be the best solution? [...] That's what I was thinking of. The syntax would look something like
#> highway=motorway {name '${ref|subst:^[\([AM]\) ?\([0-9]+\)$=>\1\2|prefix:boxx} ${name}'
I like this. :-) I just hope we don't keep extending the style syntax such that it some day becomes Turing complete. ;-) Thanks for your work on this. Cheers.