W3C home > Mailing lists > Public > www-xsl-fo@w3.org > August 2001

Re: text-align-last

From: Dave Pawson <daveP@dpawson.freeserve.co.uk>
Date: Fri, 17 Aug 2001 19:10:22 +0100
Message-Id: <>
To: Paul Grosso <pgrosso@arbortext.com>, www-xsl-fo@w3.org
Cc: xsl-editors@w3.org
At 13:03 17/08/2001 -0500, Paul Grosso wrote:

>Assuming no relevant properties are being inherited (e.g.,
>text-align="end"), both implementations are correct since
>the input is over-constrained.  You are giving no stretchable
>space, but you are asking the line to stretch.  An implementation
>may either use letter spacing or over-stretch existing space
>or not honor your text-align-last request--any would be allowable.

My natural reaction was that one was right, one wrong.
I can't say I like it being so.

>Try putting leaders in between, something like the following
>(line breaks added in the example for readability, but they
>shouldn't really be in there):
><fo:block text-align-last="justify">
>Note, the initial value for leader-pattern is space and the
>initial values for leader-length are leader-length.minimum=0pt,
>.optimum=12.0pt, .maximum=100% which gives you want you want.

Indeed it does. Thanks.

>Also note that this should put equal space in for each leader.
>This won't necessarily center your middle part, especially if
>the length of the left and right parts differ by much.  You'd
>have to get fancier to accomplish that.

A fairly common requirement though Paul?
3 in-lines for the header or footer areas?

It would be nice if the WG could address this, even if only by explanation 
in the rec?
Many thanks for the solution, though it is hardly intuitive IMHO.

\tex's 'stretchable space' is a good analogy.
Spec reference please Paul :-)

Regards DaveP
Received on Friday, 17 August 2001 14:11:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:53 UTC