Re: [csswg-drafts] Consider Canonicalization of language tags in :lang() selector maching (#4154)

At least 2!

On Thu, Aug 29, 2024, 15:17 Addison Phillips ***@***.***>
wrote:

> Reviewing as part of w3c/i18n-action#117.
>
> In reviewing #4212 <https://github.com/w3c/csswg-drafts/pull/4212>, I
> disagree with using the extlang form. The matching of extlangs to the
> primary language is too complicated for most page authors to deal with and
> it's a little weird to create subtags out of nothing (e.g. yue => zh-yue)
> when the created subtags interfere with prefix-based matching. CLDR and
> BCP47 contain data to allow some subtag inference (notably, the script
> subtag)
>
> Both the [=content language=] and the [=language range=]
> must be *canonicalized*
> and converted to *extlang form* as per section 4.5 of [[!RFC5646]]
> prior to the *extended filtering* operation.
> The matching is performed case-insensitively within the ASCII range.
>
> Would be better off as:
>
> Both the [=content language=] and the [=language range=]
> must be *canonicalized* as per section 4.5 of [[!RFC5646]]
> prior to the *extended filtering* operation.
> Such matching is performed [=ASCII case-insensitively=].
>
> Happy to discuss. Don't forget that at least one of the BCP47 authors 🙈
> is available to you for consultation when dealing with these issues.
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/w3c/csswg-drafts/issues/4154#issuecomment-2319146095>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACJLEMFPV45255SIFYDIGBTZT6MYDAVCNFSM4IHK4XH2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMZRHEYTINRQHE2Q>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>


-- 
GitHub Notification of comment by macchiati
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4154#issuecomment-2321538696 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 30 August 2024 15:02:13 UTC