07-11-2016, 09:33 AM | #16 |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
I did some tests with the Kindle Previewer 3 to see how page-break-avoid is handled in books with enhanced typesetting. Since a large percentage of books sold on Amazon now support ET I think that it's useful to understand. (Looking into how ET works has been my "thing" lately.)
I created a simple EPUB with 10 paragraphs, all with page-break-inside:avoid style, and ran it through the previewer. The ET version broke within different paragraphs as I adjusted the font and size. Looking into the KDF (KFX equivalent) file produced by the previewer I could see that the page-break-inside instruction had been stripped out during ET conversion. If the same holds true in the normal publishing pipeline then using page-break-inside:avoid will have no effect on books rendered with enhanced typesetting. To test this further I created a KFX file with the same content, but manually added the KFX equivalent of page-break-inside:avoid (break_inside:avoid). When viewed in the previewer this book does not break paragraphs across pages! However, there is a problem. When the font size is increased to the point where a paragraph can no longer fit on a single page then the previewer fails to display any pages until the font size is decreased. Assuming the same holds true for Kindles, it appears that even if Amazon did translate page-break-inside:avoid to break_inside:avoid for ET books, the result would be problematic. I have attached my sample EPUB along with the original and non-breaking KFX (azw8) equivalents. Last edited by jhowell; 07-11-2016 at 10:05 PM. Reason: Typo |
07-11-2016, 06:34 PM | #17 |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Sweet jesus.
(Do we have an emoty where I can smash my head into the desk repeatedly?????) Hitch |
07-11-2016, 07:33 PM | #18 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Not an emoti, but there's this, if it's any use to you.
|
07-11-2016, 07:34 PM | #19 |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
THANK YOU! Much appreciated.
reminds me of that wee animated meme that was making its way around, about...5 years ago? The typist/coder that typed his fingers bloody? Goes berserk? Yup...that's me. Thanks again. Hitch |
Tags |
azw3, css |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
epub to azw3 conversion and Extra CSS | Section8 | Conversion | 8 | 02-06-2015 11:55 PM |
Epub to AZW3: css formatting not showing | topquark | Conversion | 1 | 03-20-2013 12:21 AM |
Cannot open or convert certain AZW3 books | bshar489 | Calibre | 2 | 03-18-2013 11:47 AM |
Development GPL Compliance | jcase | enTourage Archive | 85 | 01-03-2011 05:58 PM |
pdflrf: Possible non-compliance of GPL terms | ashkulz | Feedback | 2 | 09-05-2008 12:05 AM |