logo separator

[mkgmap-dev] Problem with regular expression and subst: filter

From Carlos Dávila cdavilam at orangecorreo.es on Fri Apr 7 15:26:09 BST 2017

I want to add the following rule to my "Latin languages manage system":
highway=* & name ~ "(?i)Chemin\s+d['’´]+acc[èe]s\s+[àa]\s+la\s+.*" { add 
streettype:movedend="${name|subst:(?i)Chemin\s+d['’´]+acc[èe]s\s+[àa]\s+la\s+~>}, 
Chemin d'accès"}
It catches "Chemin D'Accès à la Piscine" and "Chemin D'Accès A la 
Piscine", but not "Chemin D'Accès À la Piscine" (note the difference in 
à, A or À)
If I use rule
highway=* & name ~ "(?i)Chemin\s+d['’´]+acc[èe]s\s+À\s+la\s+.*" { add 
streettype:movedend="${name|subst:(?i)Chemin\s+d['’´]+acc[èe]s\s+À\s+la\s+~>}, 
Chemin d'accès"}
then the third form is caught, but obviously the other ones not. Any 
idea why first rule is not working for all forms?


More information about the mkgmap-dev mailing list