View Single Post
Old 11-13-2019, 01:56 PM   #24
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,121
Karma: 92500001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by Hitch View Post
You mean if you actually set the CSS on w/o, for a heading, it disables it, instead of enabling it? (Am I confused?)
What I mean is that the latest KFX renderer seems to treat headings as if they have page-break-inside:avoid and page-break-after:avoid set.

If you try to change that behavior by setting page-break-inside:auto or page-break-after:auto, nothing changes. In fact those property settings will be stripped out during conversion to KFX.

The only way I have found to disable this handling is setting widows:1 and orhpans:1 on the heading. That seems to disable the default handling.

(I hope that was clearer.)

Quote:
Originally Posted by Hitch View Post
Speaking of, I'm reading a Holmesian Pastiche that was published some years back and I know the formatter for Titan Books, so I know for a fact it wasn't KFX; it was a MOBI / ePUB file, and this thing with the goddamned W/O is starting to make my teeth grind on almost EVERY DAMNED PAGE.
Are you reading on an e-ink Kindle device using the latest (5.12.2) firmware? That firmware is broken in that it always avoids widows and orphans even if the book is coded to allow them.

The iOS, Android, and Fire apps honor the coding of the widows/orphans properties, so I expect that the next e-ink Kindle firmware release will fix this.

I think Amazon made a poor choice in changing Enhanced Typesetting to avoid widows and orphans by default. I suspect that some publishers will be updating their books to add widows:1 and orphans:1 for regular paragraphs to work around this change.

-----

Related to this topic, the page-break-inside:avoid property is usually stripped out during conversion to KFX. However I have found that it is usually carried through and functions as expected if it is used in conjunction with float. If you open the attached EPUB with the latest Kindle Previewer and try different font sizes you will see that it does not want to split up the text in red.
Attached Files
File Type: epub float with page-break-inside avoid..epub (2.3 KB, 586 views)
jhowell is offline   Reply With Quote