W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

RE: [WIDGET PC] i18n comment 7: Step not necessary?

From: Phillips, Addison <addison@amazon.com>
Date: Fri, 10 Jul 2009 07:40:19 -0700
To: "marcosc@opera.com" <marcosc@opera.com>, "ishida@w3.org" <ishida@w3.org>
CC: "public-Webapps@w3.org" <public-Webapps@w3.org>, "public-i18n-core@w3.org" <public-i18n-core@w3.org>
Message-ID: <4D25F22093241741BC1D0EEBC2DBB1DA01AB4420C1@EX-SEA5-D.ant.amazon.com>
(personal response)

> 
> The WebApps WG believes that removing the redundant repetitions in
> a
> standardized way may avoid interop issues. Having said that, in the
> latest editors' draft, the rightmost occurrences are removed (as
> suggested above).

Actually, I don't believe that there are interoperability issues to avoid. If two identical ranges appear in a language priority list, the second occurrence will produce the same results as the first one. If you are processing the second one, presumably the result will be no match.

Note that, with the lookup algorithm, this also applies to ranges that are prefixes of other ranges. For example, consider the list "en-us-boont,en". The second item (en) mirrors the last match attempted with "en-us-boont".

It is an optimization to omit these ranges, but won't change the results.

> 
> Please see for the updated algorithm:
> http://dev.w3.org/2006/waf/widgets/#step-5--derive-the-user-agents-

> locale
> 

Thanks. We'll review it.

Addison


Received on Friday, 10 July 2009 14:40:59 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:32 GMT