<html>
<head>
<meta content="text/html; charset=ISO-8859-2"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Push Up!<br>
<br>
After using unicode maps for some more time, I think this is really
important. Especially for older devices which will only show a
subset of latin1 characters present in unicode. I would like to make
sure to have the possibility to use transliteration even for unicode
maps. <br>
<br>
Case Object 1:<br>
name:en=moscow<br>
name=Москва<br>
<br>
Case Object 2: <br>
name=Москва<br>
<br>
<br>
Rules:<br>
name:en=* & name=* {set name='${name:en}' '${name}'}<br>
name:en!=* & name=* {set name='${mkgmap:translatin:name}'
'${name}'}<br>
<br>
where mkgmap:translatin:name tells mkgamp to try to transliterate
the name to latin.. <br>
<br>
<br>
Of course it would be even better if there could be a rule like<br>
name:en!=* & name=* & name!=mkgmap:latin - so mkgmap would
check if the script is latin, and if not pass on to the next line.
But even the simple rule without check would be a great help. <br>
<br>
<br>
<div class="moz-cite-prefix">On 02.07.2014 22:27, Felix Hartmann
wrote:<br>
</div>
<blockquote cite="mid:53B46B39.3060404@gmail.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-2">
The standard behavior so far for my maps in Japan or China was to
use --latin1, and hope that all towns/cities/names if not name:en
present - got transliterated decently into latin characters.<br>
However if using Unicode this is of course not happening.<br>
<br>
Could there be a command like {set name='${mkgmap:trans:name}' }<br>
That way one could build a map that is usable for people who do
understand the local script/language, and who don't by setting all
names e.g.<br>
name=('name:en|name:int|mkgmap:trans:name''(name in e.g. Japanese
Script) '<br>
<br>
Even better would of course be if there would be an additional
function to check if "name" is already in two scripts - this is
often the case for Japan or Thailand or Singapore... Dunno if that
is easy to implement. I hope/guess the above <i>mkgmap:trans:name</i>
would be easy, as the code exists if you use e.g. --latin1.<br>
<pre class="moz-signature" cols="72">--
keep on biking and discovering new trails
Felix
openmtbmap.org & <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.velomap.org">www.velomap.org</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">
</pre>
</body>
</html>