[mkgmap-dev] Styles, typ and multiple languages
From Mike Baggaley mike at tvage.co.uk on Thu Dec 31 15:11:30 GMT 2020
For info, I have the following in my style file - you may find something similar useful: # set English variant as main name and Welsh variant as secondary in Wales name=* & name:en=* & name:cy!=* & name:en!=$name & mkgmap:admin_level4='Wales' {set name:cy='${name}'} name:cy=* & mkgmap:admin_level4!='Wales' {delete name:cy} name:en=* & name:en!=$name & mkgmap:option:non-uk!=true {set name='${name:en}'} name=$name:cy {delete name:cy} highway=residential {name '${name}'; addlabel '${name:cy}'; addlabel '${alt_name}'; addlabel '${loc_name}'} ... Cheers, Mike -----Original Message----- From: Ticker Berkin [mailto:rwb-mkgmap at jagit.co.uk] Sent: 31 December 2020 11:00 To: Development list for mkgmap <mkgmap-dev at lists.mkgmap.org.uk> Subject: Re: [mkgmap-dev] Styles, typ and multiple languages Hi I prefer: --name-tag-list=name:en,int_name,name,place_name,loc_name for most maps, but where the country frequently has parallel naming in a European language, eg French for Morocco, I use: --name-tag-list=name:en,int_name,name:fr,name,place_name,loc_name Adjust above for your own language, but probably leave name:en in the list anyway Ticker On Thu, 2020-12-31 at 09:24 +1100, Joao Almeida wrote: > 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.
- Previous message: [mkgmap-dev] Styles, typ and multiple languages
- Next message: [mkgmap-dev] Unusual Routing Behaviour in BaseCamp
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list