On Tue, Dec 05, 2006 at 01:23:45PM +0100, Luca Furini wrote: > 3) At the moment, the LineLM can call findBreakingPoints() up to three > times, the last one with a maximum adjusting ratio equal to 20. I came to > the conclusion that this is really TOO much. I tried stopping after the > second call (with max ratio = 5) and the result is much better (see > attached file small.5.pdf). > > A high maximum adjustment ratio means that the algorithm is allowed to > stretch spaces a lot in order to find a set of breaks which is *globally* > better; this means that it can choose some not-so-beautiful breaks in > order to build a set spanning over a larger portion of the paragraph. > > In our example: there can be a break just before the long url (a line > ending after "Consider:") only if we use an enormous adjustment ratio. > With a smaller, more appropriate threshold, "Consider:" can no more end a > line, so the algorithm will restart from a previous point.
Would this be a good moment to make these features of the breaking algorithm user configurable, like they are in TeX? This allows people to play with the various possibilities without having to modify the code. Regards, Simon -- Simon Pepping home page: http://www.leverkruid.eu
