- From: Kang-Hao (Kenny) Lu <kanghaol@opera.com>
- Date: Tue, 12 Nov 2013 15:18:27 +0800
- To: Koji Ishii <kojiishi@gluesoft.co.jp>, WWW Style <www-style@w3.org>
(2013/11/12 13:58), Koji Ishii wrote: > On 11/12/13 9:07 AM, "Kang-Hao (Kenny) Lu" <kanghaol@opera.com> wrote: > >> # Œfirst¹ >> # >> # An opening bracket or quote at the start of the first formatted >> # line of an element hangs. This applies to all characters in the >> # Unicode categories Ps, Pf, Pi. >> >> Again, per my comment on 'text-indent', I think "first formatted line" >> was a mistake. We should go with "first line and a line after a forced >> break", like "text-align-last" and "text-align: start end". I can check >> with Web developers later. > > 'first' should take soft-wrap into account, not only forced break, so I > think the current description is correct. 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/ then. >> # Depending on the line's alignment, this may (or may not) result in >> # the mark being placed outside the line box. >> >> #Œforce-end¹ >> # >> # A stop or comma at the end of a line hangs. >> # >> #Œallow-end¹ >> # >> # A stop or comma at the end of a line hangs if it does not otherwise >> # fit prior to justification. >> >> The description above seems to indicate that for 'hanging-punctuation: >> force-end', "a stop or comma at the end of a line" doesn't need be >> placed outside the line box, even in 'text-align: end'. I don't think >> this is what 'force-end' tries to do. > > "hangs" in this context is a term defined in this spec; click it to jump > to the definition. If you understand the term definition, with the figure > in example 19, I think you agree that the description is what 'force-end' > tries to do. You're right. After I read [1] and notice that there's 'text-align: justify' in the example. Sorry. >> Also, the current spec seems to ask 'force-end' to place the "stop or >> comma" at the "last formatted line" outside the line box unconditionally >> (is that true? I don't quite know because of the above issue), and that >> doesn't seem like a good idea. > > Same as above. "hangs" means to align and justify without measuring the > punctuation. The last formatted line will left-justified unless > text-justify is distributed, so, no, the current spec does not ask to > place the punctuation outside the line box unconditionally. 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? [1] http://lists.w3.org/Archives/Public/www-style/2012May/0165 Cheers, Kenny -- Web Specialist, Opera Sphinx Game Force, Oupeng Browser, Beijing Try Oupeng: http://www.oupeng.com/
Received on Tuesday, 12 November 2013 07:18:41 UTC