![]() |
#1 |
Member
![]() Posts: 17
Karma: 10
Join Date: Dec 2010
Device: Sony PRS-650
|
[Old Thread] Avoid epub split in several html files?
When I click optimize on my epubs, if the book is massive, they are split in several html files. The annoying thing is that when an html ends, ends the page on the reader as well, and the book continues on the next, like the end of a chapter.
Is there any way to avoid this? |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
you can repair it with sigil - open the epub in sigil, right lick the offending xhtml page in left hand panel, select merge with previous I don't know of any way to repair in calibre.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,888
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Some reading software designed to be used on a full computer aren't limited by this restriction. |
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
but it is possible to manually edit where all the splits occur, so that they align with chapter breaks.
it can be tedious but it's doable in sigil by combining and resplitting as needed so taht both creiterea are bet i.e. each segment is below 300k, and each segment ends at a chapter break. I know of no way to automate this though. I found the quickest way was to use find function to find CHAPTER in current file in book mode - force a split point before that word, repeat as needed. once no more chapter points are found in current file then open the enxt xhtml in sequence & merge it with previous. the return to the process of search & split on chapter points.... i have patched up some individual .epub like this. |
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,707
Karma: 32763414
Join Date: Dec 2008
Location: Krewerd
Device: Pocketbook Inkpad 4 Color; Samsung Galaxy Tab S6
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,876
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Merger the preceding fragment with the section preceding that. Since it looks really hokey ![]() ![]() |
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
if chapter starts are well defined, and file is run through calibre convert, you'll automatically get page breaks fof each chapter start, so all you have to do manually is join any files with mid-chapter splits
|
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 17
Karma: 10
Join Date: Dec 2010
Device: Sony PRS-650
|
I'll give Sigil a try. I'm new to ebooks, as I've been given a PRS-650 for Christmas. I found out that I can't avoid splitting in the conversion output preference Maybe I should use rtf as standard instead of epub.
Last edited by mastroalex; 01-06-2011 at 01:57 PM. |
![]() |
![]() |
![]() |
#9 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Quote:
There are a lot of ways to get the book to split based on the actual chapters instead of arbitrarily. If the source format is well defined this should happen automatically with no intervention from you. If it's not well defined then you need to go through a bit of effort. I'm not sure what you mean by the 'optimize my epubs' feature - this isn't one I've come across. If your original book source is epub and it's already split at random places in the book it means the original publisher of that version did a quick conversion and didn't bother with editing/inserting appropriate chapter breaks - instead they let the conversion utility split at the 260 or 300 bytes which is what's supported by a lot of the readers. There isn't much you can do for a book like that except fix it by hand in Sigil as already mentioned. If the book is some other format then you have more options. The 'preprocess html' option under structure detection will look for common headings and mark them so that the book is later split at appropriate points. Alternatively you can do a bit of investigation into the actual html and figure out what an appropriate chapter detection xpath is - it's in the same structure detection dialog as the preprocess option. Lastly page breaks are inserted by default at ever <h1> and <h2> header in the document. You can control/disable this by editing/deleting the 'insert page breaks before' xpath, which is also under structure detection. |
|
![]() |
![]() |
![]() |
#10 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,888
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
The prs-650 does support viewing native rtf files. I know I've viewed rtf files on my prs-505 and I believe that all of the Sony devices support rtf. |
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
|
![]() |
![]() |
![]() |
#12 |
Member
![]() Posts: 17
Karma: 10
Join Date: Dec 2010
Device: Sony PRS-650
|
Yes it supports rtf:
EPUB (file .epub) File PDF (file .pdf ) BBeB (file .lrf o .lrx) File di testo (file .txt) File RTF (file .rtf ) File Word (file .doc o .docx) |
![]() |
![]() |
![]() |
#13 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,313
Karma: 7957679
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#14 | ||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,888
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#15 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 1839286
Join Date: Nov 2010
Device: iPad
|
Looks like I'm screwed, but it doesn't hurt to ask
![]() I'm reading Dolores Claiborne, by Stephen King, and there're no section breaks whatsoever in the book. The book is effectively a single long chapter (with a foreword and an epilogue). The conversion process splits the book into several HTML files, and adds otherwise non-existent page-breaks. Is there any way to get rid of this behavior (other than increasing the size of the file split)? I don't care about splitting the file, but I really abhor the extra page-breaks. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to convert these html files to ePub? | Valkrider | Conversion | 5 | 06-07-2015 07:48 AM |
[Old Thread] mergin split html files with Calibre? | NASCARaddicted | Conversion | 13 | 12-03-2011 01:19 PM |
[Old Thread] Joining multiple html files | RosanaE | Calibre | 4 | 04-22-2011 06:56 PM |