logo separator

[mkgmap-dev] Solution to show transliterated name if no other ascii name exists

From Walter Schlögl Walter.Schloegl-Resch at aon.at on Sat Jan 10 23:25:25 GMT 2015

Hi Gerd,

here I found a mail from Steve Ratcliffe where this syntax was working.
    name:int!=* & name=* {set name='${name|ascii:} ${name}' 
http://gis.19327.n5.nabble.com/Command-to-transliterate-Characters-Cyrillic-Greek-into-latin1-even-for-Unicode-maps-td5810132.html

Do you know any other solution how to use the transliterated name?

I only know the way to change the char code, 
but in that case the original name cannot be combined with the transliterated name.

Walter

From: Gerd Petermann 
Sent: Saturday, January 10, 2015 5:01 PM
To: mkgmap-dev at lists.mkgmap.org.uk 
Subject: Re: [mkgmap-dev] Solution to show transliterated name if no other ascii name exists

Hi Walter,

I can't find any code that would implement the filter :ascii,
but I seem to remember that I saw it in an email.
Maybe as an proposion?

Gerd


> From: Walter.Schloegl-Resch at aon.at
> To: mkgmap-dev at lists.mkgmap.org.uk
> Date: Sat, 10 Jan 2015 02:08:41 +0100
> Subject: [mkgmap-dev] Solution to show transliterated name if no other ascii name exists
> 
> For countries with foreign letters like Greece I want to show the int_name 
> first.
> For other countries I want to show the int_name in brackets.
> If no int_name or other good name is found, I want to show the 
> transliterated name.
> 
> Here is my code:
> 
> 'name:de'=* { add mkgmap_int_name='${name:de}' }
> int_name=* { add mkgmap_int_name='${int_name}' }
> 'name:en'=* { add mkgmap_int_name='${name:en}' }
> 'name:fr'=* { add mkgmap_int_name='${name:fr}' }
> 'name:es'=* { add mkgmap_int_name='${name:es}' }
> mkgmap_int_name!=* { add mkgmap_int_name='${name|ascii:}' } 
> # Error: Expecting }, instead saw |
> mkgmap_int_name=${name} { delete mkgmap_int_name }
> 
> place=* { set mkgmap_place_name=no }
> place=* & mkgmap_int_name=* & mkgmap:country=GRE { set 
> name='${mkgmap_int_name} (${name})'; set mkgmap_place_name=yes }
> place=* & mkgmap_int_name=* & mkgmap_place_name=no { set name='${name} 
> (${mkgmap_int_name})'; set mkgmap_place_name=yes }
> 
> According to the error message it seems, that |ascii: is not recognized.
> Is this syntax wrong?
> I found it via google but not in documentation, maybe it’s not yet working.
> 
> I hope somebody has a working solution for my usecase.
> 
> Walter 
> 
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev



--------------------------------------------------------------------------------
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150111/2c14a05b/attachment-0001.html>


More information about the mkgmap-dev mailing list