Re: [OSM-talk-be] OSM in French and Dutch [or any monolingual]

2016-08-11 Thread André Pirard
On 2016-08-11 23:59, Ruben Maes wrote:
> On donderdag 11 augustus 2016 18:26 André Pirard wrote:
>> (...)
>> OSM.org displays the names according to the Language preference of the
>> browser (1).
>> Precisely, it displays a name in the first language of that preference
>> that matches one in the map.
>> Else, it displays the common default name.
>> E. g. if the preference is fr,ru :
>> if name:fr exists, display it, else if name:ru exists, display it, else
>> display name.
>> (...)
> I don't know where you get this, but it is completely false.
> For what you say to be possible, there would have to be separate tiles for 
> every language. That's not the case, everyone gets 
> https://{a,b,c}.tile.openstreetmap.org/{zoomlevel}/{}/{}.png.

What I said is in fact how OSM.org display names in the Nominatim search
left pane.

What Joost is asking, "a rendering of OSM in Dutch and French" ("or", I
suppose)
can be done by overlaying a nameless background and names foreground
like this example for Liège and Russian:

http://c.tile.openstreetmap.de:8002/tiles/1.0.0/bg//11/1055/688.png
http://c.tile.openstreetmap.de:8002/tiles/1.0.0/labels/ru/11/1055/688.png
http://c.tile.openstreetmap.de:8002/tiles/1.0.0/labels/ru,_/11/1055/688.png

The foreground overlay could be rendered in text mode for speed.

Cheers

André.



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


Re: [OSM-talk-be] OSM in French and Dutch [or any monolingual]

2016-08-11 Thread Ruben Maes
On donderdag 11 augustus 2016 18:26 André Pirard wrote:
> (...)
> OSM.org displays the names according to the Language preference of the
> browser (1).
> Precisely, it displays a name in the first language of that preference
> that matches one in the map.
> Else, it displays the common default name.
> E. g. if the preference is fr,ru :
> if name:fr exists, display it, else if name:ru exists, display it, else
> display name.
> (...)

I don't know where you get this, but it is completely false.
For what you say to be possible, there would have to be separate tiles for 
every language. That's not the case, everyone gets 
https://{a,b,c}.tile.openstreetmap.org/{zoomlevel}/{}/{}.png.

Just take a look at Bruges[1] if your browser language/OSM prefences language 
is fr (it shows Brugge, not Bruges), or at Liège[2] if it is nl (it shows 
Liège, not Luik).

[1] https://www.openstreetmap.org/relation/2375259#map=14/51.2084/3.2266
[2] https://www.openstreetmap.org/relation/1681788#map=14/50.6441/5.5747

-- 
This message is OpenPGP signed.

signature.asc
Description: This is a digitally signed message part.
___
Talk-be mailing list
Talk-be@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-be


Re: [OSM-talk-be] OSM in French and Dutch [or any monolingual]

2016-08-11 Thread André Pirard
On 2016-08-09 11:37, joost schouppe wrote:
> Hi,
>
> Someone asked on Twitter about a rendering of OSM in Dutch and French
> to avoid the clutter of bilingual names in the standard rendering.
>
> https://twitter.com/iciBrussels/status/762743820358418432
>
> The French render is easy, OSM France provides it. But how about a
> Dutch rendering? Do you know of one?
>
> It might be cool to create a little webmap on OSM.be with the three
> official languages. If you help me find a Dutch rendering, I can make
> that (I've just learned the basics about leaflet).
>
> It looks rather easy to make a style with mapbox, but you need to
> extract the data through Overpass for exotic languages like Dutch, so
> it would be a bit of a job to keep that up to date.
I don't understand exactly what the problem is.
OSM.org displays the names according to the Language preference of the
browser (1).
Precisely, it displays a name in the first language of that preference
that matches one in the map.
Else, it displays the common default name.
E. g. if the preference is fr,ru :
if name:fr exists, display it, else if name:ru exists, display it, else
display name.
Hence, to reliably display Dutch, the preference must be nl,... and
name:nl must exist.
Or name=* must be in Dutch, but see gotcha.
That is a gotcha, of course.  If name=French_name has been coded and a
good soul adds mane:ru=России_имя, the fr,ru French speaker accepting
Russian will see the Russian name.  When adding name:ru=*, name:fr=*
must also be added.
This is especially strange in a region like Brussels.
The law says that the names must be written in both fr and nl.
But no Belgian sees that because their preference uses fr or nl.  Only
foreigners do.

So, what could be improved is

  * a &ln= in the OSM.org URL to force the preference and do
without (1)
  o assuming a name:ll=* tag equal to name=* where ll is the only
language of the names
  o or running a bot to add the name:ll=* names automatically

Cheers

André.


(1) or the simulation of the browser's preference as Ben noted
On 2016-08-09 16:31, Ben Laenen wrote:
> On Tuesday 09 August 2016 11:37:58 joost schouppe wrote:
>> Someone asked on Twitter about a rendering of OSM in Dutch and French
>> to avoid the clutter of bilingual names in the standard rendering. 
> How about this one: http://mlm.jochentopf.com/ Fill in "nl" or "fr" in
> the box to get the names rendered in those languages
> Ben

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


Re: [OSM-talk-be] OSM in French and Dutch [or any monolingual]

2016-08-11 Thread André Pirard
On 2016-08-09 11:37, joost schouppe wrote:
> Hi,
>
> Someone asked on Twitter about a rendering of OSM in Dutch and French
> to avoid the clutter of bilingual names in the standard rendering.
>
> https://twitter.com/iciBrussels/status/762743820358418432
>
> The French render is easy, OSM France provides it. But how about a
> Dutch rendering? Do you know of one?
>
> It might be cool to create a little webmap on OSM.be with the three
> official languages. If you help me find a Dutch rendering, I can make
> that (I've just learned the basics about leaflet).
>
> It looks rather easy to make a style with mapbox, but you need to
> extract the data through Overpass for exotic languages like Dutch, so
> it would be a bit of a job to keep that up to date.
I don't understand exactly what the problem is.
OSM.org displays the names according to the Language preference of the
browser (1).
Precisely, it displays a name in the first language of that preference
that matches one in the map.
Else, it displays the common default name.
E. g. if the preference is fr,ru :
if name:fr exists, display it, else if name:ru exists, display it, else
display name.
Hence, to reliably display Dutch, the preference must be nl,... and
name:nl must exist.
Or name=* must be in Dutch, but see gotcha.
That is a gotcha, of course.  If name=French_name has been coded and a
good soul adds mane:ru=России_имя, the fr,ru French speaker accepting
Russian will see the Russian name.  When adding name:ru=*, name:fr=*
must also be added.
This is especially strange in a region like Brussels.
The law says that the names must be written in both fr and nl.
But no Belgian sees that because their preference uses fr or nl.  Only
foreigners do.

So, what could be improved is

  * a &ln= in the OSM.org URL to force the preference and do
without (1)
  o assuming a name:ll=* tag equal to name=* where ll is the only
language of the names
  o or running a bot to add the name:ll=* names automatically

Cheers

André.


(1) or the simulation of the browser's preference as Ben noted
On 2016-08-09 16:31, Ben Laenen wrote:
> On Tuesday 09 August 2016 11:37:58 joost schouppe wrote:
>> Someone asked on Twitter about a rendering of OSM in Dutch and French
>> to avoid the clutter of bilingual names in the standard rendering. 
> How about this one: http://mlm.jochentopf.com/
> http://mlm.jochentopf.com/%20fill%20in%20%22nl%22%20or%20%22fr%22%20in%20the%20box%20to%20get%20the%20names%20rendered%20in%20those%20languages%20ben%20___%20talk-be%20mailing%20list%20talk...@openstreetmap.org%20https://lists.openstreetmap.org/listinfo/talk-be>
> Fill in "nl" or "fr" in the box to get the names rendered in those
> languages
> Ben

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