W3C home > Mailing lists > Public > www-style@w3.org > November 2013

Re: [css-text] 'hanging-punctuation' comments

From: Koji Ishii <kojiishi@gluesoft.co.jp>
Date: Tue, 12 Nov 2013 23:44:26 -0500
To: "Kang-Hao (Kenny) Lu" <kanghaol@oupeng.com>
CC: WWW Style <www-style@w3.org>, MURAKAMI Shinyu <murakami@antenna.co.jp>
Message-ID: <CEA91C52.4CFFE%kojiishi@gluesoft.co.jp>
On 11/13/13 7:35 AM, "Kang-Hao (Kenny) Lu" <kanghaol@oupeng.com> wrote:

>No. I am confused again. Suppose now you have the text "我要,吃飯。" to
>flow into a 3em block container with 'hanging-punctuation: force-end'
>but *not* 'text-align: justify'. You would get
>  |我要,|
>  |吃飯。|
>but then, 'hanging-punctuation: force-end' says that the fullwidth comma
>has zero advance width so the next character could fit into the previous
>line so it should (probably) go into it:
>  |我要吃|
>  |飯。  |
>with '吃' on top of the fullwidth comma. But now, the fullwidth comma
>isn't at the end of the line so this should now go back to the former.
>Is there an infinite loop here?

No, because a character advance width is not measured only if the
character _hangs_.

Since you specified 'force-end', a comma at the end edge is not measured,
but a comma in the middle of a line is measured, so you can't fit the 4th
char ('吃') into the first line.

Received on Wednesday, 13 November 2013 04:44:57 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:34 UTC