I'm not optimistic about this since this is a core part of TeX's algorithm, but is there any way to switch to a 'greedy' justification algorithm? That is, instead of working on the paragraph as a whole and optimizing word spacing, fit as much as you can onto one line, hyphenating if necessary, justify, and then move to the next line.
On the grounds of never say never, this builds the paragraph up line by line (with normal setting first)....
update fixing small error in inserting parindent
|show 14 more comments|
You can make TeX be not so fussy about consecutive visually incompatible lines, prefer hyphenation and be very tolerant about bad spacing.
Here is another attempt. The third paragraph has been split manually with the “greedy” approach, taking into account
The first four lines agree, then TeX's algorithm takes on.
|show 1 more comment|
Here is a solution that completely ignores the hyphenation rules, and hyphenates as soon as the the line is full.
And here is the result with a slightly different test file.
The algorithm can be made slightly smarter so as not to hyphenate before punctuation :) (and using the