W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2018

Re: [csswg-drafts] [css-text] cursive shaping breaks needs better scoping (#698)

From: jfkthame via GitHub <sysbot+gh@w3.org>
Date: Wed, 05 Dec 2018 12:36:00 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-444470317-1544013359-sysbot+gh@w3.org>
> Sure, i understand that, but the example you give is not a particularly useful thing to do. I suspect that much of the time one will apply first-letter in order to change the formatting (see the image at [#698 (comment)](https://github.com/w3c/csswg-drafts/issues/698#issuecomment-297472304)).
> 
> We have https://drafts.csswg.org/css-inline-3/#initial-letter-shaping saying that
> 
> > When initial-letters is not normal, shaping should still occur across an inline initial letter box’s boundaries. ... For example, if the first letter of the Farsi word “پس” were styled with initial-letters: 2 1, both letters would be styled in their joined forms, with initial-form “ﭘ” as the initial letter, followed by the normally-styled final-form “ﺲ”. **Note that the two letters might not always graphically connect, even when shaped in their joining forms.**  (my emphasis)
> 
> But we have https://drafts.csswg.org/css-text/#boundary-shaping saying that
> 
> > Text shaping must be broken at inline box boundaries when any of the following are true for any box whose boundary separates the two typographic character units: Any of margin/border/padding separating the two typographic character units in the inline axis is non-zero. ...
> 
> The two things seem to be contradictory, or at least to warrant some additional explanation.

If the first letter is styled with a different font-size, font-family, etc it's entirely possible it won't actually connect to the next letter even when the appropriate contextual forms are used; I think that's what the emphasized sentence above is pointing out.

Adding margin or border around the letter, OTOH, would be a cause for *not* shaping between the initial letter and following text.

Raised caps are an interesting edge case, where I guess it's reasonable to maintain joining as the baseline isn't changed and no horizontal separation is being introduced (though it seems an unlikely thing for someone to really want to do in such a script).

The few examples I've seen of traditional practice (see https://github.com/w3c/csswg-drafts/issues/698#issuecomment-297472304 and the linked discussion) don't appear to support shaping across more general drop-cap-like formatting: the large dropped, boxed initial in https://upload.wikimedia.org/wikipedia/commons/6/6a/Hafezeshamlu02.jpg, for example, is *not* shaped in an initial form.

-- 
GitHub Notification of comment by jfkthame
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/698#issuecomment-444470317 using your GitHub account
Received on Wednesday, 5 December 2018 12:36:01 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:40 UTC