[OSM-newbies] avoid repeating the name tag twice

Pierre-André Jacquod pjacquod at alumni.ethz.ch
Sat Mar 7 12:27:36 GMT 2009


Claudius Henrichs wrote:
> Am 06.03.2009 23:38, Renaud MICHEL:
>> Le vendredi 06 mars 2009 à 22:54, Pieren a écrit :
>>> On Fri, Mar 6, 2009 at 10:07 PM, Pierre-André Jacquod
>>>
>>> <pjacquod at alumni.ethz.ch>  wrote:
>>>> If someone wants to edit / create a map in Hebrew (or language X), then
>>>> he would use first all name:he (or name:X) irrespective of the local
>>>> language, then where it does not exist name=.. would be used. This
>>>> would alow to have all existing names in language X displayed in
>>>> language X, independently of the local language.
>>> I perfectly agree with the rule above. If name:xx does not exist, use
>>> name (for local rendering). And it is for the same reason that when
>>> name:xx=name, don't waste your time to enter twice the same thing.
>> But what if you want to handle multiple language fallback?
>> Let's say for example you want a map primarily in english (name:en), if
>> english is not available you fallback to french (name:en), if not available
>> either you take the default name (name, wich may be in any language and
>> using non-latin character set).
>> Now for names whose main langaue is english, if you don't encode a name:en
>> but you have a name:fr you'll end up choosing the french version while you
>> would have prefered the english one.
> 
> This can be avoided easily by proprocessing: Take a polygon of 
> english-speaking countries or regions and copy values from name to name:en.

Hi,
would be too easy.... local name does not need to be in the official
language of the country / region. And what about mixed part regions
(country with several official language like Switzerland, Belgium...)
You can not default a region to a language, and you can not assume the
missing key (e.g if you have name:Bienne name:fr Bienne, you can not say
name is like name:de Biel ...!!! Bienne is french speaking, but in a
german speaking region..)
regards
paj





More information about the newbies mailing list