View Single Post
Old 04-22-2009, 02:41 PM   #72
hudson
Stunt Programmer
hudson has a complete set of Star Wars action figures.hudson has a complete set of Star Wars action figures.hudson has a complete set of Star Wars action figures.hudson has a complete set of Star Wars action figures.hudson has a complete set of Star Wars action figures.
 
hudson's Avatar
 
Posts: 31
Karma: 449
Join Date: Mar 2007
Location: Washington, DC
Device: iRex iLiad, Sony PRS500, Treo 650
Quote:
Originally Posted by Jellby View Post
I don't think there's anything in (La)TeX to avoid rivers, other than a human operator checking the output and maybe tweaking the parameters.
I believe that you're correct that it does not directly address rivers, although the Knuth/Plass algorithm will seek to minimize the amount of additional white space ("glue") per line, which will help reduce rivers.
Quote:
I agree too, but the algorithms are implemented by the reader software. I doubt the formats have any specification for the line-breaking algorithm. In principle, an e-book reader program could use a TeX-like breaking algorithm, and would give definitely better output.
According to Wikipedia, the only tool other than TeX that implements KP justification is Adobe Indesign*. I'd love to see some of the reader software implement something better than first-fit, although given the slow CPUs in devices like the Sony, re-paginating would be incredibly painful.

*: Although fmt(1) and Perl's Text::Reflow both support it, too.

Last edited by hudson; 04-22-2009 at 02:58 PM. Reason: Other users of KP.
hudson is offline   Reply With Quote