[csswg-drafts] [css-text] Incorrect text-transform capitalize behavior for Catalan geminate Ls (#8987)

zipus has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-text] Incorrect text-transform capitalize behavior for Catalan geminate Ls ==
I've noticed an issue with the text-transform:capitalize property in CSS when used on words containing "l·l" in Catalan (see [Interpunct - Catalan](https://en.wikipedia.org/wiki/Interpunct#Catalan)). When this rule is applied to such words, the CSS interpreter incorrectly treats the interpunct as a word boundary and capitalizes the letter after it.

To illustrate, consider the word "cancel·lar". When text-transform:capitalize is applied, it currently results in "Cancel·Lar". However, according to Catalan language rules, it should be "Cancel·lar" instead. The interpunct is not considered a word boundary, and the second 'l' should not be capitalized.

I propose updating the algorithm used for text-transform:capitalize to respect language-specific case mapping rules such as this one.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8987 using your GitHub account


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

Received on Monday, 19 June 2023 13:28:29 UTC