[OSM-newbies] avoid repeating the name tag twice

Claudius Henrichs claudius.h at gmx.de
Sat Mar 7 12:10:45 GMT 2009


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.

Regards,
Claudius





More information about the newbies mailing list