
Hi Alexandre, I use an Excel spreadsheet (enclosed) to do this kind of transformation for Dutch-language street names. There's a macro (Alt-f11) which writes a file "fix_names" (the path is hard-coded in the macro code, sorry about that - please edit to suit). There's a tab for prefixes, one for suffixes, and one for the matching rules. You need to "include" this "fix_names" from an appropriate place in the "lines" file. I hope it's useful - please let me know if you have any questions! --colin On 2016-06-12 23:42, Alexandre de Menezes wrote:
Hi everyone,
I want to do some transformations on the names of all the Ways, is there a standard way to do that? For example, I want to replace all occurrences of "Avenida" for "Av.".
I tried adding this to my lines file:
highway=* & name ~ '(?i)avenida\s+.*' { add streettype:movedend='${name|subst:(?i)avenida\s+~>}, Av.'} #
But There was no effect.
Thanks in advance,
Alexandre _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev