[Editorial] Truncation description inaccurate #1645
Labels
i18n-needs-resolution
Issue the Internationalization Group has raised and looks for a response on.
@Risk
Items that are at risk for L3
type:editorial
Milestone
6.4.2. Language and Direction Encoding
https://www.w3.org/TR/webauthn-2/#sctn-strings-langdir
Naive truncation of a language tag will not produce a valid language tag. Language tags will only remain valid if truncated just before a hyphen character (and noting that single-character or "singleton" subtags should not appear at the end of a language tag). It is also possible that a badly handled truncation scheme could change the meaning of a tag. For example:
tlh
=>tl
(from Klingon to Tagalog)hi-Deva
=hi-De
(from Hindi-written-in-Devanagari to Hindi-as-used-in-Germany)A proper truncation here should describe using
U+E002D
(the equivalent of the hyphen character in language tags) to find subtags for removal.Note that while the
CANCEL TAG
's absence probably doesn't introduce any rendering issues, note that the resulting strings concatenation with other strings could result in strange or unintended rendering.The term "valid" may also be problematic here, since in BCP47 a language tag is valid if and only if each subtag has been checked for existence in the registry. The normal term of art here is "well-formed".
The text was updated successfully, but these errors were encountered: