W3C home > Mailing lists > Public > www-style@w3.org > December 2012

Re: [css3-text] spacing limits are not interoperable

From: Liam R E Quin <liam@w3.org>
Date: Tue, 04 Dec 2012 20:13:35 -0500
To: www-style list <www-style@w3.org>
Message-ID: <1354670015.7523.128.camel@localhost.localdomain>
On Tue, 2012-12-04 at 16:58 -0800, John Daggett wrote:
[...]
> My guess is that XSL-FO formatters are the same way, these settings
> are only consistent when used with a single implementation or at least
> across implementations that share a common algorithm and/or
> implementation.

Yes, XSL-FO does not specify the line-breaking and H&J algorithms.

> > >In an implementation which implements a "better" justification
> > >algorithm (e.g. a paragraph global algorithm rather than a line local
> > >one) this might lead to suboptimal results which would discourage the
> > >use of improved algorithms.
Note, an n-line sliding window algorithm seems to give the best results
in practice for Western scripts and languages. I've implemented this in
the past and I've heard it's also what InDesign uses.

> To put it another way, hopefully a quality implementation with good
> hyphenation obviates the need to use spacing controls.

For XSL-FO 2.0 we gave users some control over spacing for the purpose
of copy-fitting - "try to fit this text into this space; you can vary
the following parameters" - based largely on a design implemented at the
University of Bologna as a patch to FOP.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
Received on Wednesday, 5 December 2012 01:15:02 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:03 GMT