Hi Walter, I see. Seems that the patch transliterate_filter.patch was never committed.
@Steve: Maybe you forgot about it because Felix never confirmed that it works for him? Gerd From: [email protected] To: [email protected] Date: Sun, 11 Jan 2015 00:25:25 +0100 Subject: Re: [mkgmap-dev] Solution to show transliterated name if no other ascii name exists 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: [email protected] 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: [email protected] > To: [email protected] > 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 > [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 _______________________________________________ mkgmap-dev mailing list [email protected] http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
transliterate_filter.patch
Description: Binary data
_______________________________________________ mkgmap-dev mailing list [email protected] http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
