[OSM-newbies] avoid repeating the name tag twice

Renaud MICHEL r.h.michel+osm at gmail.com
Fri Mar 6 22:38:22 GMT 2009


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.

-- 
Renaud Michel




More information about the newbies mailing list