I've implemented the following;
created an inc file, with the following code:
# SETUP Name Translation to display names in correct codepage 1252
non-unicode
name = * & mkgmap:country=MNG {set name='${name:en}' | '${int_name}'
|'${name:pt}' | '${name:fr}' | '${name}' } #Mongolia
name = * & mkgmap:country=MAR {set name='${name:en}' | '${int_name}'
|'${name:pt}' | '${name:fr}' | '${name}' } #Morocco
name = * & mkgmap:country=MRT {set name='${name:en}' | '${int_name}'
|'${name:pt}' | '${name:fr}' | '${name}' } #Mauritania
name = * & mkgmap:country=DZA {set name='${name:en}' | '${int_name}'
|'${name:pt}' | '${name:fr}' | '${name}' } #Algeria
name = * & mkgmap:country=KAZ {set name='${name:en}' | '${int_name}'
|'${name:pt}' | '${name:fr}' | '${name}' } #Kazakstan
name = * {name '$(name)'}
This results in a nicely "readable" map. More countries, just add more
definitions.
On 11/11/2020 7:35 pm, 7770 wrote:
Now i got it and it works.
Many thanks indeed to all! :-)
Regards
Karl
On tisdag 10 november 2020 kl. 18:38:12 CET Ticker Berkin wrote:
Hi Karl
It is the labels (mkgmap:label:n n=1..4) that show as the "name" on the
device.
These can also be set with the "addlabel" and "name" commands; see
style manual section 4.3.5 and 4.3.6
The various style files have the rule:
name=* {name '${name}'}
to do this, but sometimes the "name" command is used earlier as well
Ticker
On Tue, 2020-11-10 at 15:19 +0100, 7770 wrote:
Hi.
Thanks all for the ideas, it works well to add information.
The one thing i was not able to complete was to delete the name.
First i have:
tourism=lean_to | (amenity=shelter & shelter_type=lean_to)
[0x2b05 resolution 24]
and after the include section:
tourism=lean_to | (amenity=shelter & shelter_type=lean_to)
{add mkgmap:phone = '${name}'; delete name}
The text from the name is nicely added into the phone section.
But the name remains, instead of being deleted... (what did i do
wrong?)
Regard
Karl
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev