Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 01-10-2017, 07:40 AM   #1
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
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
    }
Is there something else that I should do, or is this yet another unavoidable Amazonian weirdness?
Phssthpok is offline   Reply With Quote
Old 01-10-2017, 08:09 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-10-2017, 08:20 AM   #3
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by kovidgoyal View Post
File boundaries are always page breaks there is nothing you can do about that.
Thanks. I thought on some older devices there was a hard 260K-ish file size limit, but I see that the info message in "Check Book" only says "Too large HTML files can cause performance problems on some ebook readers. Consider splitting this file into smaller sections."

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.
Phssthpok is offline   Reply With Quote
Old 01-10-2017, 09:14 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Reply

Tags
azw3 conversion, page breaks


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 01:32 PM.


MobileRead.com is a privately owned, operated and funded community.