<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Walter,<br><br>I can't find any code that would implement the filter :ascii,<br>but I seem to remember that I saw it in an email.<br>Maybe as an proposion?<br><br>Gerd<br><br><div>> From: Walter.Schloegl-Resch@aon.at<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Date: Sat, 10 Jan 2015 02:08:41 +0100<br>> Subject: [mkgmap-dev] Solution to show transliterated name if no other ascii        name exists<br>> <br>> For countries with foreign letters like Greece I want to show the int_name <br>> first.<br>> For other countries I want to show the int_name in brackets.<br>> If no int_name or other good name is found, I want to show the <br>> transliterated name.<br>> <br>> Here is my code:<br>> <br>> 'name:de'=* { add mkgmap_int_name='${name:de}' }<br>> int_name=* { add mkgmap_int_name='${int_name}' }<br>> 'name:en'=* { add mkgmap_int_name='${name:en}' }<br>> 'name:fr'=* { add mkgmap_int_name='${name:fr}' }<br>> 'name:es'=* { add mkgmap_int_name='${name:es}' }<br>> mkgmap_int_name!=* { add mkgmap_int_name='${name|ascii:}' } <br>> # Error: Expecting }, instead saw |<br>> mkgmap_int_name=${name} { delete mkgmap_int_name }<br>> <br>> place=* { set mkgmap_place_name=no }<br>> place=* & mkgmap_int_name=* & mkgmap:country=GRE { set <br>> name='${mkgmap_int_name} (${name})'; set mkgmap_place_name=yes }<br>> place=* & mkgmap_int_name=* & mkgmap_place_name=no { set name='${name} <br>> (${mkgmap_int_name})'; set mkgmap_place_name=yes }<br>> <br>> According to the error message it seems, that |ascii: is not recognized.<br>> Is this syntax wrong?<br>> I found it via google but not in documentation, maybe it’s not yet working.<br>> <br>> I hope somebody has a working solution for my usecase.<br>> <br>> Walter <br>> <br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> mkgmap-dev@lists.mkgmap.org.uk<br>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                            </div></body>
</html>