![]() |
#1 |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Unwanted page breaks being inserted
I edit books as ePUBs and convert them to AZW3 to read them on my Kindle. Usually I want a page break between each file in the ePUB, and have a CSS style for <body> with "page-break-before: always". But in a few recent cases the files are over the 260K-ish limit, so I moved the page-break-before to a ".page" class and used <body class="page"> on files where I wanted a page break, and <body> on the others. When these are converted to AZW3, I still get a page break on every file.
Looking at Prefs > Conversion > Common Options > Structure Detection, I see I have "Detect chapters at: /" and "Insert page breaks before: /" to disable any auto-cleverness of this sort. Looking at the AZW3, I see that <body> in the ePUB gets changed to <body class="calibre3">, and the rules for ".calibre3" and ".page" are identical, without a "page-break-before" styling: Code:
.calibre3 { display: block; font-size: 1em; padding-left: 0; padding-right: 0; text-align: justify; margin: 0 36pt } .page { display: block; font-size: 1em; padding-left: 0; padding-right: 0; text-align: justify; margin: 0 36pt } |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,163
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
File boundaries are always page breaks there is nothing you can do about that.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
I seem to have a choice between continuous flow or possible performance problems. I'd like to stick with continuous flow if possible, but can anyone tell me more about the performance trade-off? What happens in general with a (say) 1MB file? Last edited by Phssthpok; 01-10-2017 at 08:28 AM. |
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,163
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It depends, anything from refusing to open the book, to slow page turns, long initial render time, and so on. Having very large HTML files is not a good idea, it unneccessarily stresses mobile devices, wastes battery life, etc. The longer the file the more work the renderer has to do to re-render it every time something changes.
|
![]() |
![]() |
![]() |
Tags |
azw3 conversion, page breaks |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T1 Long paragraphs cause unwanted page breaks on PRS-T1 | entodoays | Sony Reader | 2 | 03-11-2014 06:21 AM |
unnecessary/unwanted page breaks | bgoldnyxnet | ePub | 5 | 02-06-2014 05:56 PM |
Closing unwanted line breaks | magmanpi | Sigil | 8 | 12-06-2013 08:20 AM |
Help! How do I remove unwanted paragraph breaks? | ElMiko | Sigil | 7 | 03-27-2013 11:43 AM |
Calibre making unwanted chapter breaks | PatNY | Calibre | 6 | 10-08-2010 09:58 PM |