![]() |
#1 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 173
Karma: 40000
Join Date: Oct 2013
Device: kindle
|
Page breaks and file splitting
Hello.
I was wondering wether there is a way to split an epub into more html files (so it's not too heavy to handle) without having page breaks between one file and the next one, so you don't notice anything while reading it, i.e. so it flows seamlessly from beginning to end. Hope I made myself clear ![]() Thanks. |
![]() |
![]() |
![]() |
#2 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 580
Karma: 810184
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
|
Ah, I think I know the answer to this one...
No. I don't know if it is actually a part of the EPUB specification, and I'm too lazy to look it up, but all the readers I've come across have an implicit page break on new files. There's no way to work around it, I'm afraid, apart from writing your own custom reader... |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 173
Karma: 40000
Join Date: Oct 2013
Device: kindle
|
Ha. Thanks.
So, you know how much an html file can weigh before the reader starts having problems processing it? |
![]() |
![]() |
![]() |
#4 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 580
Karma: 810184
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
|
Hang on, I know that one too...
300kB And that's according to the EPUB spec. Some readers are forgiving, and permit larger files, others (e.g. my old PRS-505) don't. |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Actually, I do not think that the 300kB is in the actual specs. It is really depending on the reader. A lot of older readers have limited memory and processors and those really limit the size.
Also, it is actually closer around 286kB |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Even if a large file doesn't break it, it can slow it down.
|
![]() |
![]() |
![]() |
#7 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,994
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
260K (calibe's default) is a safer number if Images, fonts are aso to be used.
And yes it BREAKS (as in crash) the reading ap on many MRSDK based devices. Smaller is even better as you point out: Big (of under 260K) files do sloooow things down a whole lot. |
![]() |
![]() |
![]() |
#8 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,994
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() ![]() With dead tree books you read a real page(tm) ![]() ![]() The Horrors of printed books! |
|
![]() |
![]() |
![]() |
#9 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Flowing seamlessly into eyestrain and headache I think. They could publish books (and they did) on scrolls if seamlessly was so desirable. This sounds like a programmer's idea, not a reader's.
Last edited by mrmikel; 11-22-2013 at 07:37 PM. |
![]() |
![]() |
![]() |
#10 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
Code:
page-break-before: avoid; ![]() ![]() Where did that go, exactly? It was created for exactly this usage situation, and I can't imagine any reader would refuse to respect that. Put that in the top element of each new page (or alternatively, use page-break-after: avoid; at the END of each page). In fact, calibre will automatically split all files above a certain size (configurable) during every ePub conversion, for EXACTLY this reason, and takes care of adding the page-break-(whichever):avoid. Although this shouldn't be a problem in any book that splits on each chapter... |
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
No reader I know will honor this... It should avoid a pagebreak before an element within the same HTML file, not between HTML files.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Page breaks and 5-way jumps in one file | BKh | Sigil | 8 | 03-31-2011 03:16 PM |
Adding page breaks in Calibre breaks ePubcheck validation | bookraft | Conversion | 16 | 03-01-2011 01:23 PM |
Automating splitting at Chapter Breaks | John Everett | Sigil | 9 | 06-01-2010 02:53 AM |
Splitting large file sizes ... | Hangman | Calibre | 1 | 04-05-2010 10:01 PM |
Double page splitting ? | mazzeltjes | LRF | 0 | 01-16-2009 06:35 PM |