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

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

From: Kang-Hao (Kenny) Lu <kanghaol@opera.com>
Date: Tue, 12 Nov 2013 17:09:01 +0800
Message-ID: <5281F02D.30305@opera.com>
To: WWW Style <www-style@w3.org>
CC: Koji Ishii <kojiishi@gluesoft.co.jp>
(2013/11/12 16:44), Koji Ishii wrote:
> On 11/12/13 3:18 PM, "Kang-Hao (Kenny) Lu" <kanghaol@opera.com> wrote:
>> I am not getting you. Are you saying that 'hangling-punctuation: first'
>> should make the opening bracket at the start of every line hang? You need
>>
>>   s/the first formatted line of an element/a line/
> 
> Ah, that was my mistake, sorry, I was confused with some different
> feature. 'first' affects only first formatted line, and as we discussed
> offline, we'll not include after a forced break here.

For the record, the argument for "first formatted line" and not
'each-line' is that for a case like this:

  <section>

     The start of a logical paragraph.

     <div>Math block and such.</div>

     The continuation of a logical paragraph.

  </section>

The continuation shoudn't have 'text-indent' and 'hanging-punctuation:
first'. I don't have a sense of whether this is right at the moment and
I'll check a bit more.

>> OK. So if I understand this correctly, if you have
>>
>> p {
>>   text-align: justify;
>>   hanging-punctuation: force-end;
>> }
>>
>> without 'text-algn-last: justify'. The last line would look different
>>from the line before that? Like
>>
>>  |あ あ あああ|。
>>  |あああああ。|
>>
>> and not
>>
>>  |あ あ あ あ あ|。
>>  |あ あ あ あ あ|。
>>
>> . This sounds a bit weird to me, is this what publishers want?
> 
> Your example is a bit ambiguous, but this is expectation for 'force-end':
> 
> |あ あ あ あ あ|。
> |ああ。       |
> 
> Does this answer to your question?

Your example is easier because I don't think publishers want either

  |あ あ あ あ あ|。
  |あ          あ|。

or

  |あ あ あ あ あ|。
  |ああ          |。

. I am very specifically talking about the case of 5あs when 5'あ's +
'。' occupies the whole line. Perhaps I should have drawn this this way:

  |あ あ あああ|。 (inacurrate, the spacing should be the same)
  |あああああ。|

I know the current spec requires this. I am only not sure if this is
what publishers want and not

  |あ あ あああ|。 (inacurrate, the spacing should be the same)
  |あ あ あああ|。 (inacurrate, the spacing should be the same)

.


Cheers,
Kenny
-- 
Web Specialist, Opera Sphinx Game Force, Oupeng Browser, Beijing
Try Oupeng: http://www.oupeng.com/
Received on Tuesday, 12 November 2013 09:09:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:36 UTC