I guess a pragmatic approach to dealing with floats (some might consider it a dirty hack, which it is) would be to lay out the offending paragraph(s) using a first fit algorithm, place the float(s) then re-layout the paragraph(s) using K&P. Sure the final layout might have the float start a line too early or late, but I wager most people would never notice...
And if dealing with floats that are meant to line up with the top of a paragraph (like drop caps) is simple enough. Place it first, use it's known height and width to feed to the K&P algorithm. Although, now that I've thought of it some more, changing the line-height mid paragraph would throw a spanner in the works now wouldn't it...
Interesting problems.
|