Quoting special characters (singlequote) in the style files

Gents, I'm having the following problem: for a Portuguese translation (other languages like French will have the same problem) of a map I have the following rule in the points file of my style directory: # Wasserturm. [point, closedway] man_made = water_tower & name = * {name '${name} (Caixa d'água)'} [0x6500 resolution 24] You notice there is a 'singlequote' between the words "Caixa d" and "água". Unfortunately the build process doesn't run through... I have to change this to a backquote (this one here: ` ) to get it running through. I was looking around on the web how to quote special characters inside the style files, especially the singlequote which is needed also for internal things inside the style files. Unfortunatelly I was not able to find anything. Did I miss something ? Or is there no way (yet) to have a singlequote inside a name in the style files ? Any feedback is appreciated. Thanks and regards Patrik

On 08/10/13 11:08, keenonkites wrote:
man_made = water_tower & name = * {name '${name} (Caixa d'água)'} [0x6500 resolution 24]
You notice there is a 'singlequote' between the words "Caixa d" and "água".
You can use double quotes around the whole string instead, eg: man_made = water_tower & name = * {name "${name} (Caixa d'água)"} ..Steve

On Tue, Oct 08, 2013 at 11:19:06AM +0100, Steve Ratcliffe wrote:
On 08/10/13 11:08, keenonkites wrote:
man_made = water_tower & name = * {name '${name} (Caixa d'água)'} [0x6500 resolution 24]
You notice there is a 'singlequote' between the words "Caixa d" and "água".
You can use double quotes around the whole string instead, eg:
man_made = water_tower & name = * {name "${name} (Caixa d'água)"}
Or, I guess you could use proper ‘curly quotes’ instead of the 'cheap' ASCII imitation. :) Marko

Steve, tested and confirmed, yes it works this way and I'm able to get the singlequotes into the label on the map as needed..... was easier than I thought... Did I miss that in the documentation (shame on me ?) or is this missing in the documentation ? Many thanks for the quick and proper help. Patrik On 08.10.2013 12:19, Steve Ratcliffe wrote:
On 08/10/13 11:08, keenonkites wrote:
man_made = water_tower & name = * {name '${name} (Caixa d'água)'} [0x6500 resolution 24]
You notice there is a 'singlequote' between the words "Caixa d" and "água".
You can use double quotes around the whole string instead, eg:
man_made = water_tower & name = * {name "${name} (Caixa d'água)"}
..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (3)
-
keenonkites
-
Marko Mäkelä
-
Steve Ratcliffe