-
Notifications
You must be signed in to change notification settings - Fork 757
Description
Cantonese may be described with any of the following language tags:
zh-HK(most common, legacy)zh-yue(also legacy)yue(current most appropriate value)
Even though these refer to the same language, :lang(yue) would only match the last one.
RFC 5646 section 4.5 together with the IANA Language Subtag Registry define canonicalization and mappings that would allow to match the last two (by extlang form). RFC4647 section 3.2 says we should use this.
The last paragraph of that same section 3.2 also says we may also want to consider mappings like zh-HK to zh-yue, and that too could seem appropriate, but as far as I know there’s no equivalent to IANA Language Subtag registry for such mappings.
While it is possible for authors to deal with this themself by using :lang(yue, zh-yue, zh-HK), to the extend we can automate this, they shouldn't have to deal with this.
(I'm taking Cantonese as an example, but the same can be said about other languages)