|
|
#1 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 580
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
|
Avoid pagebreaks at the end of an html section?
I have a book without any section or chapter breaks. I would like to preserve the reading experience of this kind of uninterrupted narrative, but I also know that chunky html sections in an ePub can be problematic (from slow processing to outright failure on older software). Is there a way to break the text (e.g. at the end of a paragraph) and have the e-reader append the next paragraph immediately below it despite it's beginning on a new html section? Or will the creation of a new html section unavoidably create a pagebreak in the epub renderer?
|
|
|
|
|
|
#2 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,343
Karma: 153744555
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
If you are reading on a computer app or maybe an app for your Phone/tablet, it may work as a single HTML file. I've seen some Kindle eBooks as one complete file and they don't work well from what I've read from others. Ther |
|
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 580
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
|
Quote:
What I'm trying to determine is if I break an html file, is there anyway to make the beginning of the next file flow uninterrupted from the previous file, or will it always be interpreted as a hard pagebreak? |
|
|
|
|
|
|
#4 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,841
Karma: 7500000
Join Date: Nov 2009
Device: many
|
New files by default are always treated like a hard page break. If you do not want a hard break, is there any reason not to merge these two files into one? Sigil can typically handle the merge easily.
Browsers are typically file based, and most e-readers are browser based today. Maybe someone else knows of a trick either using css or javascript that might work, but I have never seen that used in a commercial epub before. |
|
|
|
|
|
#5 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,593
Karma: 22000001
Join Date: Jan 2008
Location: Spaniard in Germany
Device: Cybook Orizon, Kobo Aura
|
As far as I remember, there's no way to not have page breaks between files. Even if there is something in the spec, chances are most readers will not support it anyway.
On the other hand, I have read whole books in a single file (e.g. Discword novels) without issues in KOReader |
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 580
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
|
Quote:
What I'm trying to figure out is if i can accomodate that 300KB limit while preserving narrative flow (by breaking the html file and applying some super-secret CSS that overrides the reader's inclination to treat the end of a file as a hard pagebreak). But it looks like you and @Jellby are pretty confident that's a no-go. And as I'm reading on KOReader, I'm think I'm going to take Jellby's comment as license to throw caution to the wind and move ahead with these 4-5,000 line html files. |
|
|
|
|
|
|
#7 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,841
Karma: 7500000
Join Date: Nov 2009
Device: many
|
Given Sigil uses Qt's line based editing. At some point a single huge file is going to slowdown Sigil (and many e-readers) but it truly takes lots of pure text before things are noticeable.
|
|
|
|
|
|
#8 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 580
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
|
At 500+kb it was noticeable in Sigil, but also not world-breaking. But it did give me enough pause (figuratively and literally) to at least float the idea here in case there was an exceptionally clever solution that I hadn't considered.
|
|
|
|
|
|
#9 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 53,432
Karma: 181843001
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I've opened a 1.6MB HTML file in Sigil and while a bit slower, not that noticeable. Perhaps a function of the computer resources (CPU, RAM, disk speed)? I was asked to take a look at the book by a Kobo owner when their Aura E2 hung when opening the book.
Admittedly, the first thing I did was to insert split markers at each volume/chapter header and split the file. This while wondering what sort of an idiot would generate a 8 book omnibus and put all the book text into a single file—there were 4 XHTML files (cover, HTML table of contents, copyright and book text). |
|
|
|
|
|
#10 | |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 580
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
|
Quote:
Again, nothing that sets my hair on fire. Just enough to set off my spidey sense and an abundance of caution with respect to older reading systems. |
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Avoid blank page on chapter end behaviour | upright | KOReader | 0 | 04-27-2025 12:12 AM |
| How to get rid of blank parts after the end of the section? | megi | Calibre | 11 | 07-07-2024 08:00 AM |
| Pagebreaks and section toc in recipe | sup | Recipes | 0 | 09-07-2016 09:30 AM |
| [Old Thread] Avoid epub split in several html files? | mastroalex | Calibre | 18 | 12-03-2011 03:50 PM |
| Can I preserve entities when converting from html? (To avoid unicode on kindle) | krunkster | Calibre | 1 | 04-07-2009 05:11 PM |