Re: [OSM-talk] Multilingual Map Demo working again

2014-10-19 Thread Jochen Topf
On Sat, Oct 18, 2014 at 08:31:39PM +0200, Marco Lechner - FOSSGIS e.V. wrote:
 how much additional disk space is approximately needed (compared to a
 bg-map that includes one language rule)? Of course this value can only
 be an approx. ratio. The absolute space depends on aoi, zoomlevels, ...

Approximately zero. :-)

The overlay tiles with the labels are rendered on the fly and only kept very
short term in memcached. There is some overhead due to extra indexes in the
database to allow the fast rendering, but thats probably negligable.

This map doesn't use the normal tile stack. For details see
http://wiki.openstreetmap.org/wiki/Multilingual_maps_wikipedia_project

Jochen
-- 
Jochen Topf  joc...@remote.org  http://www.jochentopf.com/  +49-721-388298

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual Map Demo working again

2014-10-19 Thread moltonel 3x Combo
On 19/10/2014, Jochen Topf joc...@remote.org wrote:
 The overlay tiles with the labels are rendered on the fly and only kept very
 short term in memcached. There is some overhead due to extra indexes in the
 database to allow the fast rendering, but thats probably negligable.

 This map doesn't use the normal tile stack. For details see
 http://wiki.openstreetmap.org/wiki/Multilingual_maps_wikipedia_project

What's required to switch this from demo to used on default osm.org
layer ? Is it only a mater of updating the rendering stack and
comming up with a nice UI, or is there some issue with the technique,
like increased server ressources, sub-par rendering, or browser
support ? I know that this only part is actually a lot of work, but
I wonder if there's a blocking issue.

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual Map Demo working again

2014-10-19 Thread Paul Norman

On 10/19/2014 1:40 PM, moltonel 3x Combo wrote:

What's required to switch this from demo to used on default osm.org
layer ?
I don't believe anyone is currently evaluating alternatives to the 
current stack for tile.osm.org.


I think most of those who might are busy with vector tiles these days.

Switching rendering stacks with the current load might require a third 
rendering server for the transition and increased capacity.


___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


[OSM-talk] Multilingual Map Demo working again

2014-10-18 Thread Jochen Topf
Sven Geggus and I found the problem(s) why the Multilingual Map didn't work and
fixed it. See http://mlm.jochentopf.com/ . This is only a demo so no promises
on the future of that map.

Jochen
-- 
Jochen Topf  joc...@remote.org  http://www.jochentopf.com/  +49-721-388298

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual Map Demo working again

2014-10-18 Thread Marco Lechner - FOSSGIS e.V.
Hi Jochen and Sven,

how much additional disk space is approximately needed (compared to a
bg-map that includes one language rule)? Of course this value can only
be an approx. ratio. The absolute space depends on aoi, zoomlevels, ...

Marco

Am 18.10.2014 um 16:29 schrieb Jochen Topf:
  -Sven Geggus and I found the problem(s) why the Multilingual Map didn't work 
 and
 fixed it. See http://mlm.jochentopf.com/ . This is only a demo so no promises
 on the future of that map.

 Jochen



0x6A30F373.asc
Description: application/pgp-keys
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map even more flexible...

2012-12-05 Thread Jaakko Helleranta.com
A comment and a thought/Q:
* As noted here before, Deleting the browser cache solves problems of name
tags not showing (for me too, that is)
* Would be even more neat if there was a way to also get loc_name,
alt_name, old_name, int_name in the list of alternatives

But in any case / even as is: a Great service! .. I hope it will stay up
until it gets integrated into osm.org or some other main stream OSM service.

Cheers,
-Jaakko

On Sat, Dec 1, 2012 at 9:19 AM, Jochen Topf joc...@remote.org wrote:

 On Sat, Dec 01, 2012 at 08:32:04AM -0500, Jaakko Helleranta.com wrote:
  .. Any ideas why ht,fi,sv,en,fr,es,it,int,_|loc (
 
 http://mlm.jochentopf.com/?zoom=8lat=18.69725lon=-71.80389layers=B0Tlang=ht%2Cfi%2Csv%2Cen%2Cfr%2Ces%2Cit%2Cint%2C_%7Cloc
 )
  is not showing any names?

 It works for me. Try deleting your browser cache and reload.

 Jochen
 --
 Jochen Topf  joc...@remote.org  http://www.remote.org/jochen/
 +49-721-388298

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map even more flexible...

2012-12-01 Thread Jochen Topf
On Sat, Dec 01, 2012 at 06:10:05AM +0800, Eugene Alvin Villar wrote:
 On Sat, Dec 1, 2012 at 5:29 AM, Jochen Topf joc...@remote.org wrote:
 
  Hi!
 
  I have added some more flexibility to the map at
  http://mlm.jochentopf.com/
 
  You now have to explicitly tell it when you want to fall back to the name
  tag. Use the underscore (_) to do this. For instance with fr you'll only
  get the name:fr tag. With fr,_ you'll get name:fr and, if that
  doesn't
  exist name.
 
  You can now have several languages in one label, for something like
  München
  (Munich) you set it to de|en, ie. use the vertical bar between lines.
  The
  second line will appear in parentheses.
 
  You can combine all of this, for instance as fr,en|_.
 
  Of course this isn't perfect. You can get empty parentheses for instance.
  But hey, it's nice to play around with.
 
 
 
 It seems this new feature doesn't work at higher zoom levels, or at least
 with place=village nodes and roads. I still get name=* tags even if I
 didn't specify _.

There was a bug in there which is hopefully fixed now. Thanks for the report.

Jochen
-- 
Jochen Topf  joc...@remote.org  http://www.remote.org/jochen/  +49-721-388298

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map even more flexible...

2012-12-01 Thread Jochen Topf
On Sat, Dec 01, 2012 at 08:32:04AM -0500, Jaakko Helleranta.com wrote:
 .. Any ideas why ht,fi,sv,en,fr,es,it,int,_|loc (
 http://mlm.jochentopf.com/?zoom=8lat=18.69725lon=-71.80389layers=B0Tlang=ht%2Cfi%2Csv%2Cen%2Cfr%2Ces%2Cit%2Cint%2C_%7Cloc)
 is not showing any names?

It works for me. Try deleting your browser cache and reload.

Jochen
-- 
Jochen Topf  joc...@remote.org  http://www.remote.org/jochen/  +49-721-388298

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


[OSM-talk] Multilingual map even more flexible...

2012-11-30 Thread Jochen Topf
Hi!

I have added some more flexibility to the map at http://mlm.jochentopf.com/

You now have to explicitly tell it when you want to fall back to the name
tag. Use the underscore (_) to do this. For instance with fr you'll only
get the name:fr tag. With fr,_ you'll get name:fr and, if that doesn't
exist name.

You can now have several languages in one label, for something like München
(Munich) you set it to de|en, ie. use the vertical bar between lines. The
second line will appear in parentheses.

You can combine all of this, for instance as fr,en|_.

Of course this isn't perfect. You can get empty parentheses for instance.
But hey, it's nice to play around with.

Jochen
-- 
Jochen Topf  joc...@remote.org  http://www.remote.org/jochen/  +49-721-388298

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map even more flexible...

2012-11-30 Thread Eugene Alvin Villar
On Sat, Dec 1, 2012 at 5:29 AM, Jochen Topf joc...@remote.org wrote:

 Hi!

 I have added some more flexibility to the map at
 http://mlm.jochentopf.com/

 You now have to explicitly tell it when you want to fall back to the name
 tag. Use the underscore (_) to do this. For instance with fr you'll only
 get the name:fr tag. With fr,_ you'll get name:fr and, if that
 doesn't
 exist name.

 You can now have several languages in one label, for something like
 München
 (Munich) you set it to de|en, ie. use the vertical bar between lines.
 The
 second line will appear in parentheses.

 You can combine all of this, for instance as fr,en|_.

 Of course this isn't perfect. You can get empty parentheses for instance.
 But hey, it's nice to play around with.



It seems this new feature doesn't work at higher zoom levels, or at least
with place=village nodes and roads. I still get name=* tags even if I
didn't specify _.
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map

2009-03-17 Thread Tal
Maybe it would be possible to add {name:de} - {name:it} support to
the renderer's rule file, rather than putting these values in osm the
database?

For example, for osmarender, instead of having:
 pathText k=name dy=2px class=piste-downhill-name
text-anchor=middle startOffset=75%/

We'll have:
 pathText k={name:de} - {name:it} dy=2px
class=piste-downhill-name text-anchor=middle startOffset=75%/

Tal

On Mon, Mar 16, 2009 at 10:44 AM, Elena of Valhalla
elena.valha...@gmail.com wrote:
 On Sat, Mar 14, 2009 at 5:02 PM, Pierre-André Jacquod
 pjacq...@alumni.ethz.ch wrote:
 I think, here would a feature like name:local_lang=de,
 name:de=Deutschland be very useful.

 wouldn't it be even better if this tag supported a string with
 substitution, like name:local=$name:de - $name:it or
 name:local=$name:de ($name:it) to allow for local styles for places
 where the local name is in two languages, both shown on the street
 signs.

 As a minimum, name:local_lang should support multiple values, to
 support similar cases

 --
 Elena ``of Valhalla''

 homepage: http://www.trueelena.org
 email: elena.valha...@gmail.com

 ___
 talk mailing list
 talk@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/talk


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map

2009-03-17 Thread Elena of Valhalla
On Tue, Mar 17, 2009 at 11:13 AM, Tal tal@gmail.com wrote:
 Maybe it would be possible to add {name:de} - {name:it} support to
 the renderer's rule file, rather than putting these values in osm the
 database?[...]

this is fine for a german/italian dual language localized map of the
world, but it doesn't help to know that the local name(s) for that
item are the german and italian one, in that order.

-- 
Elena ``of Valhalla''

homepage: http://www.trueelena.org
email: elena.valha...@gmail.com

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map

2009-03-16 Thread Elena of Valhalla
On Sat, Mar 14, 2009 at 5:02 PM, Pierre-André Jacquod
pjacq...@alumni.ethz.ch wrote:
 I think, here would a feature like name:local_lang=de,
 name:de=Deutschland be very useful.

wouldn't it be even better if this tag supported a string with
substitution, like name:local=$name:de - $name:it or
name:local=$name:de ($name:it) to allow for local styles for places
where the local name is in two languages, both shown on the street
signs.

As a minimum, name:local_lang should support multiple values, to
support similar cases

-- 
Elena ``of Valhalla''

homepage: http://www.trueelena.org
email: elena.valha...@gmail.com

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map

2009-03-14 Thread Pierre-André Jacquod
Hi,
great stuff...

 With my first go a couple of weeks back for 8 languages I did do
 fallback to at least 'name' using views as suggested on the wiki,
 setting this up for 40 languages however was somewhat less trivial and I
 felt that there would be a benefit to being able to display languages
 with no fallback... 

I think, here would a feature like name:local_lang=de,
name:de=Deutschland be very useful. This would also help in order to
have a map done in a chosen language, without blanks in the country
(countries) where this language is the default value.
paj

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map

2009-03-14 Thread Ben Laenen
On Saturday 14 March 2009, Pierre-André Jacquod wrote:
 Hi,
 great stuff...

  With my first go a couple of weeks back for 8 languages I did do
  fallback to at least 'name' using views as suggested on the wiki,
  setting this up for 40 languages however was somewhat less trivial
  and I felt that there would be a benefit to being able to display
  languages with no fallback...

 I think, here would a feature like name:local_lang=de,
 name:de=Deutschland be very useful. This would also help in order to
 have a map done in a chosen language, without blanks in the country
 (countries) where this language is the default value.
 paj

But does it really make sense to tag every object inside a country with 
the same name:local_lang tag? Talk about data duplication...

Ben

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map

2009-03-14 Thread Pierre-André Jacquod

 With my first go a couple of weeks back for 8 languages I did do
 fallback to at least 'name' using views as suggested on the wiki,
 setting this up for 40 languages however was somewhat less trivial
 and I felt that there would be a benefit to being able to display
 languages with no fallback...
 I think, here would a feature like name:local_lang=de,
 name:de=Deutschland be very useful. This would also help in order to
 have a map done in a chosen language, without blanks in the country
 (countries) where this language is the default value.
 paj
 
 But does it really make sense to tag every object inside a country with 
 the same name:local_lang tag? Talk about data duplication...

It depends... in Switzerland, you will have at least the following 4
elements that will appear:
name:local_lang=de
name:local_lang=fr
name:local_lang=it
name:local_lang=roh (using ISO 639-3) Romansh is the 4th national
language, (see http://en.wikipedia.org/wiki/Romansh_language for more)
Some administrative entites are of one language (like Genevae using
French) other are using two or more languages within their boundaries. I
even know a town where Quarters at the West part are named in French,
and those of the East part are in German and so used locally. (despite
having on both side a name in both languages)...
regards

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map

2009-03-14 Thread Mike Collinson
At 05:22 PM 14/03/2009, Ben Laenen wrote:
On Saturday 14 March 2009, Pierre-André Jacquod wrote:
 Hi,
 great stuff...

  With my first go a couple of weeks back for 8 languages I did do
  fallback to at least 'name' using views as suggested on the wiki,
  setting this up for 40 languages however was somewhat less trivial
  and I felt that there would be a benefit to being able to display
  languages with no fallback...

 I think, here would a feature like name:local_lang=de,
 name:de=Deutschland be very useful. This would also help in order to
 have a map done in a chosen language, without blanks in the country
 (countries) where this language is the default value.
 paj

But does it really make sense to tag every object inside a country with 
the same name:local_lang tag? Talk about data duplication...

That *could* be done once on the place=country tag, or taken down to county and 
state tags if required.   

I now try to put enough is_in:* tags so that an intelligent program can trace 
back where something is.  Either directly by putting is_in:country_code or  
is_in:country or indirectly by is_in:county in one tag and then 
is_in:country_code in the county tag.

Mike



___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


[OSM-talk] Multilingual map

2009-03-09 Thread D Tucny
Hi folks,

I've been thinking about how it would be good to have the map available in
multiple languages... I think the easiest way to do this with what we have
is using a captionless base layer and transparent caption layers for each of
the languages... So... I put this thinking into practice and put together a
proof of concept at http://osm.newportcoastsoftware.com

There is a single base, captionless layer and 40 transparent caption layers,
all available only to zoom 8.

The name tags imported and used to make the different layers are...

name - The default name
name:ar - Arabic
name:cs - Czech
name:cy - Welsh
name:cz - Typo for Czech
name:da - Danish
name:de - German
name:el - Greek
name:en - English
name:eo - Esperanto
name:es - Spanish
name:fi - Finnish
name:fr - French
name:ga - Irish Gaelic
name:he - Hebrew
name:hi - Hindi (font problems)
name:hr - Croatian
name:hu - Hungarian
name:is - Icelandic
name:it - Italian
name:ja - Japanese
name:ja_rm - Romanised Japanese
name:kl - Kalaalisut (Greenlandic)
name:ko - Korean
name:la - Latin
name:lt - Lithuanian
name:lv - Latvian
name:nl - Dutch
name:pl - Polish
name:ro - Romanian
name:ru - Russian
name:sk - Slovak
name:sl - Slovenian
name:sr - Serbian
name:sv - Swedish
name:th - Thai
name:uk - Ukranian
name:zh - Chinese
name:zh_py - Chinese Pinyin
name:zh_pyt - Chinese Pinyin with tones

This isn't a list of all available languages in use, but, it was most of the
languages in use for names of countries and cities when I looked...

Issues:
The layer switcher is quite long with so many layers, so, the map div has
been set to 900px high to fully incorporate it... If less vertical space is
available, you'll get a scroll bar, if more is available, the map won't fill
the window...

The rendering of Hindi has been broken by missed fonts... It should be
rerendered in a while...

The tiles are bigger than the live site thanks to them not having been
created at 256 colours, this is due to transparency not currently working
with 256 colour tiles...

All tiles are prerendered... They don't get updated automatically and they
aren't rendered on request... So if you make changes to OSM, they won't show
up on this map for some time... Also nothing currently available beyond zoom
8, though I do plan on making certain areas with good examples of multiple
languages available at higher zooms...

This is just a proof of concept, it will likely disappear at some point...

If anyone has any suggestions, or sees any problems, let me know...

Thanks,

d
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map

2009-03-09 Thread Skywave
Very nice feature, would it be possible, by any chance, to add Catalan
names, tag name:ca. A lot of streetnames are mapped in two languages, both
in Spain as in France.

Skywave

On Mon, Mar 9, 2009 at 1:01 PM, D Tucny d...@tucny.com wrote:

 Hi folks,

 I've been thinking about how it would be good to have the map available in
 multiple languages... I think the easiest way to do this with what we have
 is using a captionless base layer and transparent caption layers for each of
 the languages... So... I put this thinking into practice and put together a
 proof of concept at http://osm.newportcoastsoftware.com

 There is a single base, captionless layer and 40 transparent caption
 layers, all available only to zoom 8.

 The name tags imported and used to make the different layers are...

 name - The default name
 name:ar - Arabic
 name:cs - Czech
 name:cy - Welsh
 name:cz - Typo for Czech
 name:da - Danish
 name:de - German
 name:el - Greek
 name:en - English
 name:eo - Esperanto
 name:es - Spanish
 name:fi - Finnish
 name:fr - French
 name:ga - Irish Gaelic
 name:he - Hebrew
 name:hi - Hindi (font problems)
 name:hr - Croatian
 name:hu - Hungarian
 name:is - Icelandic
 name:it - Italian
 name:ja - Japanese
 name:ja_rm - Romanised Japanese
 name:kl - Kalaalisut (Greenlandic)
 name:ko - Korean
 name:la - Latin
 name:lt - Lithuanian
 name:lv - Latvian
 name:nl - Dutch
 name:pl - Polish
 name:ro - Romanian
 name:ru - Russian
 name:sk - Slovak
 name:sl - Slovenian
 name:sr - Serbian
 name:sv - Swedish
 name:th - Thai
 name:uk - Ukranian
 name:zh - Chinese
 name:zh_py - Chinese Pinyin
 name:zh_pyt - Chinese Pinyin with tones

 This isn't a list of all available languages in use, but, it was most of
 the languages in use for names of countries and cities when I looked...

 Issues:
 The layer switcher is quite long with so many layers, so, the map div has
 been set to 900px high to fully incorporate it... If less vertical space is
 available, you'll get a scroll bar, if more is available, the map won't fill
 the window...

 The rendering of Hindi has been broken by missed fonts... It should be
 rerendered in a while...

 The tiles are bigger than the live site thanks to them not having been
 created at 256 colours, this is due to transparency not currently working
 with 256 colour tiles...

 All tiles are prerendered... They don't get updated automatically and they
 aren't rendered on request... So if you make changes to OSM, they won't show
 up on this map for some time... Also nothing currently available beyond zoom
 8, though I do plan on making certain areas with good examples of multiple
 languages available at higher zooms...

 This is just a proof of concept, it will likely disappear at some point...

 If anyone has any suggestions, or sees any problems, let me know...

 Thanks,

 d

 ___
 talk mailing list
 talk@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/talk


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map

2009-03-09 Thread Claudius Henrichs
Am 09.03.2009 13:01, D Tucny:
 Hi folks,

 I've been thinking about how it would be good to have the map available
 in multiple languages... I think the easiest way to do this with what we
 have is using a captionless base layer and transparent caption layers
 for each of the languages... So... I put this thinking into practice and
 put together a proof of concept at http://osm.newportcoastsoftware.com

 There is a single base, captionless layer and 40 transparent caption
 layers, all available only to zoom 8.

Nice PoC, but it's surfacing some of the problems we still have with 
localization: I didn't explicitly tag the german names for countries 
where german doesn't differ from the loca name=... to avoid 
redundancy. I think the german layer should use these source for names 
in this order:
1.) name:de
2.) int_name
3.) name

I haven't checked for the mapnik syntax to do so, but maybe you could 
render it for one language as an example.

Regards,
Claudius


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map

2009-03-09 Thread Celso González
On Mon, Mar 09, 2009 at 08:01:42PM +0800, D Tucny wrote:
 Hi folks,
 
 I've been thinking about how it would be good to have the map available in
 multiple languages... I think the easiest way to do this with what we have
 is using a captionless base layer and transparent caption layers for each of
 the languages... So... I put this thinking into practice and put together a
 proof of concept at http://osm.newportcoastsoftware.com
 
 This is just a proof of concept, it will likely disappear at some point...
 
 If anyone has any suggestions, or sees any problems, let me know...

Could you post some of the xml used to generate the tiles?

-- 
Celso González (PerroVerd)
http://mitago.net

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map

2009-03-09 Thread Robert (Jamie) Munro
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

D Tucny wrote:
 Hi folks,

 I've been thinking about how it would be good to have the map available
 in multiple languages... I think the easiest way to do this with what we
 have is using a captionless base layer and transparent caption layers
 for each of the languages... So... I put this thinking into practice and
 put together a proof of concept at http://osm.newportcoastsoftware.com

 There is a single base, captionless layer and 40 transparent caption
 layers, all available only to zoom 8.

That's great, but would it be possible for the individual language
layers to fall back to local where a name is not given in a particular
language?

How much storage do the caption layers take compared to the data?

Thanks,

Robert (Jamie) Munro
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkm1KAgACgkQz+aYVHdncI1ttwCaAnBqRNFCZDKDVUyD1a2qc+hA
qz0AoLUxP/DKlwZ6AgwDh5lViEl807z7
=3R6E
-END PGP SIGNATURE-

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map

2009-03-09 Thread D Tucny
2009/3/9 Claudius Henrichs claudiu...@gmx.de

 Am 09.03.2009 13:01, D Tucny:
  Hi folks,
 
  I've been thinking about how it would be good to have the map available
  in multiple languages... I think the easiest way to do this with what we
  have is using a captionless base layer and transparent caption layers
  for each of the languages... So... I put this thinking into practice and
  put together a proof of concept at http://osm.newportcoastsoftware.com
 
  There is a single base, captionless layer and 40 transparent caption
  layers, all available only to zoom 8.

 Nice PoC, but it's surfacing some of the problems we still have with
 localization: I didn't explicitly tag the german names for countries
 where german doesn't differ from the loca name=... to avoid
 redundancy. I think the german layer should use these source for names
 in this order:
 1.) name:de
 2.) int_name
 3.) name

 I haven't checked for the mapnik syntax to do so, but maybe you could
 render it for one language as an example.



With my first go a couple of weeks back for 8 languages I did do fallback to
at least 'name' using views as suggested on the wiki, setting this up for 40
languages however was somewhat less trivial and I felt that there would be a
benefit to being able to display languages with no fallback... I'll have a
look to see about adding additional layers with fallback...

d
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map

2009-03-09 Thread D Tucny
2009/3/9 Celso González ce...@mitago.net

 On Mon, Mar 09, 2009 at 08:01:42PM +0800, D Tucny wrote:
  Hi folks,
 
  I've been thinking about how it would be good to have the map available
 in
  multiple languages... I think the easiest way to do this with what we
 have
  is using a captionless base layer and transparent caption layers for each
 of
  the languages... So... I put this thinking into practice and put together
 a
  proof of concept at http://osm.newportcoastsoftware.com

  This is just a proof of concept, it will likely disappear at some
 point...
 
  If anyone has any suggestions, or sees any problems, let me know...

 Could you post some of the xml used to generate the tiles?


I've put the files used to generate the tiles in
http://osm.newportcoastsoftware.com/mapnik

osm-template-local-nocap.xml is the template for the captionless layer
osm-template-local-caps.xml is the template for the captions layers
names-list is the list of names layers

osm-template-local-nocap.xml is turned into osm.xml using
customize-mapnik-map-nocap, which is customize-mapnik-map with the source
filename changed...
osm.template-local-caps.xml is turned into all the osm.xml.*cap files using
make-cap-osm-xml which is customize-mapnik-map changed to loop through the
contents of names-list to generate the osm.xml.*cap files...

Anything else, let me know...

d
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map

2009-03-09 Thread D Tucny
It doesn't get down to streetnames at the moment and there is only one
country and 29 cities tagged with Catalan names...

That said, I'll add it to the list of things to look at changing next time I
do an import...

d

2009/3/9 Skywave rjteh...@gmail.com

 Very nice feature, would it be possible, by any chance, to add Catalan
 names, tag name:ca. A lot of streetnames are mapped in two languages, both
 in Spain as in France.

 Skywave

 On Mon, Mar 9, 2009 at 1:01 PM, D Tucny d...@tucny.com wrote:

 Hi folks,

 I've been thinking about how it would be good to have the map available in
 multiple languages... I think the easiest way to do this with what we have
 is using a captionless base layer and transparent caption layers for each of
 the languages... So... I put this thinking into practice and put together a
 proof of concept at http://osm.newportcoastsoftware.com

 There is a single base, captionless layer and 40 transparent caption
 layers, all available only to zoom 8.

 The name tags imported and used to make the different layers are...

 name - The default name
 name:ar - Arabic
 name:cs - Czech
 name:cy - Welsh
 name:cz - Typo for Czech
 name:da - Danish
 name:de - German
 name:el - Greek
 name:en - English
 name:eo - Esperanto
 name:es - Spanish
 name:fi - Finnish
 name:fr - French
 name:ga - Irish Gaelic
 name:he - Hebrew
 name:hi - Hindi (font problems)
 name:hr - Croatian
 name:hu - Hungarian
 name:is - Icelandic
 name:it - Italian
 name:ja - Japanese
 name:ja_rm - Romanised Japanese
 name:kl - Kalaalisut (Greenlandic)
 name:ko - Korean
 name:la - Latin
 name:lt - Lithuanian
 name:lv - Latvian
 name:nl - Dutch
 name:pl - Polish
 name:ro - Romanian
 name:ru - Russian
 name:sk - Slovak
 name:sl - Slovenian
 name:sr - Serbian
 name:sv - Swedish
 name:th - Thai
 name:uk - Ukranian
 name:zh - Chinese
 name:zh_py - Chinese Pinyin
 name:zh_pyt - Chinese Pinyin with tones

 This isn't a list of all available languages in use, but, it was most of
 the languages in use for names of countries and cities when I looked...

 Issues:
 The layer switcher is quite long with so many layers, so, the map div has
 been set to 900px high to fully incorporate it... If less vertical space is
 available, you'll get a scroll bar, if more is available, the map won't fill
 the window...

 The rendering of Hindi has been broken by missed fonts... It should be
 rerendered in a while...

 The tiles are bigger than the live site thanks to them not having been
 created at 256 colours, this is due to transparency not currently working
 with 256 colour tiles...

 All tiles are prerendered... They don't get updated automatically and they
 aren't rendered on request... So if you make changes to OSM, they won't show
 up on this map for some time... Also nothing currently available beyond zoom
 8, though I do plan on making certain areas with good examples of multiple
 languages available at higher zooms...

 This is just a proof of concept, it will likely disappear at some point...

 If anyone has any suggestions, or sees any problems, let me know...

 Thanks,

 d

 ___
 talk mailing list
 talk@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/talk



 ___
 talk mailing list
 talk@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/talk


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map

2009-03-09 Thread Maarten Deen
D Tucny wrote:
 It doesn't get down to streetnames at the moment and there is only one 
 country and 29 cities tagged with Catalan names...
 
 That said, I'll add it to the list of things to look at changing next 
 time I do an import...

And don't forget name:carnaval. Okay, it is mostly gigglevalue, but a lot of 
the 
towns in the south of the Netherlands will then show a different name.

Regards,
Maarten


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Multilingual map

2009-03-09 Thread Ed Avis
D Tucny d at tucny.com writes:

Hi folks,I've been thinking about how it would be good to have the map 
available
in multiple languages...

http://osm.newportcoastsoftware.com

This is a great piece of work, and IMHO something needed on the main OSM site. 
Might I make a few suggestions?

The default language could be chosen from the web browser's Accept-Language
header.  So the map will be automatically localized into the user's language as
soon as they visit.

Rather than a tickbox list of layers to show, it would be better to have an
ordered list of preferences.  An English speaker would probably use English
names, then local ones if English is unavailable.  Someone who speaks Spanish
and a little English, but cannot read Chinese, might prefer names in Spanish,
then English, then the local names.  The web browser's Accept-Language is also a
list of preferences (each language in the list has a score factor).

I understand that allowing all possible preferences would exponentially increase
the number of layers to generate, so perhaps you could just make tiles for the
one-language-then-local option, and keep logs of the Accept-Language headers you
receive from visitors to the site so you can see if there are other popular
language combinations that could be added to the list.

Perhaps an alternative to the above suggestion would be to recognize the
language of 'local names', so if a place is located in Australia and has just
'name', assume that the name is in English and render it as part of the English
tiles.

A multi-language map will prompt a bit of data cleanup.  For example I can see
'Donostia - San Sebastian' in the Basque country, when these are two names for
the same place.  It should lessen the language wars we've seen in places like
Cyprus, since each community can tag the name in their own language.  So I hope
this proof of concept can eventually be incorporated into the OSM front page!

-- 
Ed Avis e...@waniasset.com


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk