Re: [mkgmap-dev] Bug in subst

2014-06-02 Thread Steve Ratcliffe
Hi Colin I just tested it and it seems to be working fine. Thanks very much indeed for the quick service! Great I shall commit it after tidying up the code a bit. ..Steve ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk

Re: [mkgmap-dev] Bug in subst

2014-05-29 Thread Colin Smale
Hi Steve, I just tested it and it seems to be working fine. Thanks very much indeed for the quick service! Best regards, Colin On 2014-05-28 23:14, Steve Ratcliffe wrote: Hi name=* highway=* {set name='${name|subst:^(Doctor|Dokter) ~Dr }'} The attached patch makes this

Re: [mkgmap-dev] Bug in subst

2014-05-29 Thread Colin Smale
Hi Steve, I just tested it and it seems to be working fine. Thanks very much indeed for the quick service! Best regards, Colin On 2014-05-28 23:14, Steve Ratcliffe wrote: Hi name=* highway=* {set name='${name|subst:^(Doctor|Dokter) ~Dr }'} The attached patch makes this possible, and

[mkgmap-dev] Bug in subst

2014-05-28 Thread Colin Smale
Hi, Is this the best way to make bug reports? I couldn't find a 'trac' for mkgmap... Using r3230, if I have the following in a style file: name=* highway=* {set name='${name|subst:^(Doctor|Dokter) ~Dr }'} then mkgmap crashes while loading the style files. After doing various tests my

Re: [mkgmap-dev] Bug in subst

2014-05-28 Thread Steve Ratcliffe
On 28/05/14 07:45, Colin Smale wrote: name=* highway=* {set name='${name|subst:^(Doctor|Dokter) ~Dr }'} then mkgmap crashes while loading the style files. After doing various tests my conclusion is that it is triggered by the | in the pattern. I tried escaping it with a backslash but it didn't

Re: [mkgmap-dev] Bug in subst

2014-05-28 Thread Steve Ratcliffe
Hi name=* highway=* {set name='${name|subst:^(Doctor|Dokter) ~Dr }'} The attached patch makes this possible, and the pre-built jar here: http://files.mkgmap.org.uk/download/212/mkgmap.jar The line must be written with a quoted argument: name=* highway=* {set