- From: Shaun McCance <shaunm@gnome.org>
- Date: Wed, 01 Aug 2012 11:47:32 -0400
- To: Yves Savourel <ysavourel@enlaso.com>
- Cc: 'Felix Sasaki' <fsasaki@w3.org>, public-multilingualweb-lt@w3.org
On Wed, 2012-08-01 at 11:11 +0200, Yves Savourel wrote: > Thanks Felix, > > I'm probably picky, but 'The list of language ranges is a > comma-separated list of basic language ranges, or the specific > wildcard language range "*". The list MUST NOT contain the wildcard > "*" and other languages ranges.' Seems still to have room for > misinterpretation. > > Maybe: > > 'The list of language ranges is a comma-separated list of basic > language ranges. When used, the specific wildcard language range "*" > MUST be the only value in the list. Why not just dispense with all the extra language altogether? As you point out, "*" is a valid basic language range, so we don't need to explicitly allow it. And I don't really see any reason to forbid "fr,*,en". It's logically equivalent to just "*" and shouldn't cause any implementation burden. In fact, forbidding it probably just means implementations have to add a check to throw an unnecessary error. > > > From: Felix Sasaki [mailto:fsasaki@w3.org] > Sent: Wednesday, August 01, 2012 9:45 AM > To: Yves Savourel > Cc: Shaun McCance; public-multilingualweb-lt@w3.org > Subject: Re: [ACTION 107] Locale Filter > > Good point, Yves, I tried to implement this at > http://www.w3.org/International/multilingualweb/lt/drafts/its20/its20.html#LocaleFilter > > Best, > > Felix > 2012/8/1 Yves Savourel <ysavourel@enlaso.com> > Hi Felix, Shaun, > > I had implemented the version with 'all/none' and I've now changed it > to the one without 'none/all': From the implementation viewpoint there > is no measurable difference in complexity. > > >From a user viewpoint now we always have two attributes, so it is a > bit more verbose to express all/none, but I suppose it is a bit more > clean too. > > One detail: > > The text says 'The list of language ranges is a comma-separated list > of basic language ranges, or the wildcard "*"' > > But BCP47 defines the 'basic language range' in a way that includes > "*": 'A "basic language range" has the same syntax as an [RFC3066] > language tag or is the single character "*".' > > So a list of basic language ranges could be > localeFilterList="fr,*,de". > > If we want to exclude "*" from multi-values lists, we should specify > something like: > > 'The list of language ranges is a comma-separated list of one or more > language tags as defined in RFC3066 or a lone wildcard "*"' (or > something of that effect). > > Cheers, > -ys > > > > >
Received on Wednesday, 1 August 2012 15:47:59 UTC