W3C home > Mailing lists > Public > xsl-editors@w3.org > October to December 2004

RE: Handling of text-align="justify" when nesting blocks

From: Paul Grosso <pgrosso@arbortext.com>
Date: Tue, 19 Oct 2004 16:23:02 -0400
Message-ID: <F13E1BF26B19BA40AF3C0DE7D4DA0C030105597F@ati-mail01.arbortext.local>
To: <arnd.beissner@cappelino.de>, <xsl-editors@w3.org>

Arnd,

Thanks again for your comments on XSL FO.

The XSL FO SG agrees that the "The last (or only) line 
of any block..." sentence under the "justify" value in 
section 7.15.9 is confusing and misplaced (and probably 
just wrong).  We have decided to delete that sentence.

The text at the end of section 7.15.10 is correct and is
sufficient to address the issue, so we feel merely deleting
the incorrect sentence from 7.15.9 is the correct action.

Paul Grosso
for the W3C XSL FO SG

> -----Original Message-----
> From: xsl-editors-request@w3.org 
> [mailto:xsl-editors-request@w3.org] On Behalf Of 
> arnd.beissner@cappelino.de
> Sent: Friday, 03 September, 2004 2:41
> To: xsl-editors@w3.org
> Cc: fop-dev@xml.apache.org
> Subject: Handling of text-align="justify" when nesting blocks
> 
> 
> Editors,
> 
> please consider the following inconsistency in the recommendation:
> 
> Example:
> 
> <fo:block text-align="justify">
> TEST TEST TEST TEST ..... ENOUGH TEXT TO FORMAT INTO MULTIPLE LINES 
> ..... TEST ENDS A. 
> <fo:block>
> whatever
> </fo:block>
> TEST TEST TEST TEST ..... ENOUGH TEXT TO FORMAT INTO MULTIPLE LINES 
> ..... TEST ENDS B.
> </fo:block>
> 
> Now what would you expect:
> 
> Version A:
> 
> TEST TEST TEST TEST
> TEST ENDS A.
> whatever
> TEST TEST TEST TEST
> TEST ENDS B.
> 
> OR
> 
> Version B: (second line is justified)
> 
> TEST TEST TEST TEST
> TEST   ENDS      A.
> whatever
> TEST TEST TEST TEST
> TEST ENDS B.
> 
> Common sense would probably say "A":
> 
> But, 7.15.9 of the rec says:
> 
> The last (or only) line of any block, and any lines in the 
> block ending in 
> 
> U+000A, will be aligned in accordance with the "text-align-last"
> property value. If such lines are to be justified specify
> "text-align-last='justify'".
> 
> In the example, line 2 is neither the last nor the only line 
> of a block, 
> and it's also not a line ending in U+000A, so it should be justified.
> 
> In contrast to this, 7.15.10 (text-align-last) says
> (thanks to Luca Furini for the hint):
> 
> "Specifies the alignment of the last line-area child of the last
> block-area generated and returned by the formatting object, and to any
> line-area generated by the formatting object whose following 
> sibling is a
> block-area that is not a line-area, and any lines in the 
> block ending in 
> U+000A."
> 
> If 7.15.9 were worded like 7.15.10, the example would be 
> formatted like
> in Version "A", which is probably what the editors intended.
> 
> 7.15.9 and 7.15.10 now clearly contradict each other, IMO.
> My suggestion is to change the cited portion of 7.15.9 to the
> following wording:
> 
> "The last line-area child of the last block-area generated 
> and returned
> by the formatting object, and any line-area generated by the 
> formatting
> object whose following sibling is a block-area that is not a 
> line-area,
> and any lines in the block ending in U+000A, will be aligned 
> in accordance
> with the "text-align-last" property value. If such lines are to be
> justified specify "text-align-last='justify'".
> 
> Thanks for considering this,
> 
> Arnd
> -- 
> Arnd Bei▀ner
> Cappelino Informationstechnologie GmbH
> 
> 
> 
Received on Tuesday, 19 October 2004 20:23:03 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 23:39:48 UTC