Doug Ewell | 6 Apr 06:11
Picon

Re: Matching metrics (was: Registry in record-jar format)

Frank Ellermann <nobody at xyzzy dot claranet dot de> wrote:

> I've added 0 for '*' = '*' and no match.  Otherwise 8/4/2/1,
> is this what you wanted ?

No, that's not right.  '*' = '*' is a match, just the same as 'de' =
'de', and should be assigned the full complement of points, depending on
which subtag it is.  'de' = 'en', by contrast, would be a zero.

Suppose I request "sr-CS".  The script is not specified, so in our
matching syntax, this is equivalent to "sr-*-CS".  Accordingly, this
request should retrieve content labeled "sr-CS", "sr-Latn-CS",
"sr-Cyrl-CS", or "sr-Yiii-CS" with equal success.

'*' matches everything, and earns full points.  Try your metrics again.

-Doug Ewell
 Fullerton, California
 http://users.adelphia.net/~dewell/


Gmane