View Single Post
Old 02-08-2018, 04:24 PM   #97
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 876
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
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.
sherman is offline   Reply With Quote