[OSM-talk] international name rendering
Jon Burgess
jburgess777 at googlemail.com
Mon May 28 19:28:12 BST 2007
On Thu, 2007-05-24 at 07:36 +0000, Alilo wrote:
> Hi,
>
> Could we have international names to be rendered on the mapnik in name/int_name
>
> For example
> name: Москва
> int_name: Moscow
> Render on the map: Москва/Moscow
>
> name:الرباط
> int_name:Rabat
> Rener on the map : الرباط/Rabat
>
> This would be applied to any object named with the tag (highway /
> place/ railway ...)
I have had a first attempt at rendering the alternate name: tags in
mapnik and I think the results look reasonable. My current algorithm is
to appeand all 'name:*' tags on to the end of the 'name' tag. This is
applied to every name tag (all nodes, segments and ways). Ideally I'd
like to insert a line break between the names but this does not work in
Mapnik (maybe I could use '/' I did not think of that before).
In the output the plain name tag always comes first but the other tags
are in no particular order. I do not see any way the code can make a
sensible ordering choice on its own. We may need to limit the list if
more that (say) 2 name: tags are present otherwise the map will get too
messy.
I've attached some examples.
Jon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multi3.png
Type: image/png
Size: 8350 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20070528/af844a9c/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multi-names.png
Type: image/png
Size: 6060 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20070528/af844a9c/attachment-0001.png>
More information about the talk
mailing list