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

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.

/koji

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