Re: [csswg-drafts] [css-pseudo] Consider using Unicode ZWJ and ZWNJ to control :first-letter inclusion (#6242)

I see these problems with this approach:

1. It changes the semantic of the character sequence for presentational purposes that have nothing to do with the character sequence itself.
2. It provides another way of achieving the first-letter segmentation when there are already two (::first-letter and markup).
3. It may interfere with the expected behaviour of ZWNJ as outlined in the Unicode standard.

An example of the latter is the use of ZWNJ in Bengali to produce an alternate ligature for CV combinations.  Even though a ZWNJ occurs between the two characters, they must not be split by first-letter styling.

For an example, see https://r12a.github.io/scripts/beng/bn.html#vowelligatures (currently figure 13).

If the text is to be manipulated, then i think it makes more sense to use markup to apply the presentation.

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


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

Received on Wednesday, 18 January 2023 10:59:55 UTC