![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 103
Karma: 565178
Join Date: Oct 2009
Device: Kobo Sage, Kobo Clara HD
|
![]()
Hi,
probably a very simple answer to this, I hope ![]() I wonder why are texts within epub divided into several HTML files? Is it only because of chapters? If you want to apply some automatic functions to the text, it is always easier to have just a single file if possible, so why creating this multi-html structure? Thanks in advance for explaining this to me ![]() Best! ![]() P |
![]() |
![]() |
![]() |
#2 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,771
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
It's so that ePub reading software can render the HTML within limited resources, as it only needs to render part of the book (one HTML file) at a time.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 103
Karma: 565178
Join Date: Oct 2009
Device: Kobo Sage, Kobo Clara HD
|
That was something that crossed my mind also but knowing nothing about the HW could not really evaluate the validity of the assumption.
Thank you for your kind reply! Best ![]() P |
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,400
Karma: 145491800
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
When ADE was made for the Sony Reader PRS-505, they had to make it work/fit the existing hardware. So it was decided to make each HTML file no bigger then a specific size (I don't know what that size is offhand). that means that ePub works with limited hardware.
|
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
It's about chapters. It's about not making the reader cope with over-large files.
Sigil lets you perform e.g. search/replace operations on 'Current File', 'All HTML Files' or 'Selected HTML Files'. Doesn't the editor you use? Also, it's a great deal easier to locate a code error in a block of 500 lines rather than one of 5000! |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() Posts: 128
Karma: 500
Join Date: Aug 2011
Device: kindle, boox
|
300 Kb Images and Html files.
|
![]() |
![]() |
![]() |
#7 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Sigil and calibre epub editors have merge and split features. If I get book split on arbitrary boundaries (usually around 240kb) I merge it into one and split on chapter boundaries. Some ereaders, e.g calibre's 4.1 ebook-reader and the one I use on my phone (can't remember its name - it was abandoned soon after I got it), have features to skip to start/end/next/previous sections (chapters).
BR |
![]() |
![]() |
![]() |
#8 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,400
Karma: 145491800
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
I just opened up a couple of Pratchetts. You're right, no chapters. But paragraphs styled as 'spacebreak' followed by a no-indent line - that in some books is even styled 'chapterOpenerText'! So he knew where the breaks SHOULD have come...
|
![]() |
![]() |
![]() |
#10 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,939
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Even IF...
Performance improves if you use smaller chunks. Chapters are just a Logical place to break. Note: some viewers will reopen at the (top of) last file viewed. If that is a huge, single file... Yep! the top Sigil and Calibre searches can work across these files so there is no need to work on a Single file. Both, also allow you to reorder files by dragging to the new position. No cut and paste if you are just moving a 'chapter' |
![]() |
![]() |
![]() |
#11 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 515
Karma: 2268308
Join Date: Nov 2015
Device: none
|
Also, it is a guaranteed way to force a page break.
|
![]() |
![]() |
![]() |
#12 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
And both Sigil and most decent HTML editors will allow you to search across one file, some files, or all files. My NoteTabPro does that and so, too, does Sigil. (And Calibre's HTML editor, too, I believe.) Hitch |
|
![]() |
![]() |
![]() |
#13 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,400
Karma: 145491800
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#14 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
>300 Kb Images and Html files
I will have to check out my French and English ebooks of À la recherche du temps perdu. I'm sure that M. Proust did not limit himself to 300 kb tranches of text! >Also, it is a guaranteed way to force a page break. Yes, I've come to like it for just that reason. I start a new file with every photograph and caption so that at best they fall together on the same "page" or at worst the caption follows the image with no other text on that "page." If one does the <heading> correctly with title and style sheet, splitting the file requires no work whatever in Sigil. |
![]() |
![]() |
![]() |
#15 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,329
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I should probably know how you do this, but I usually just use a S/R to add the chapter split marker before each chapter header, then F6 to do the actual split. Is there a function to split on <h> tags??
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
endnotes in epub with Sigil, multiple html | BMaloney | Sigil | 9 | 10-10-2019 04:34 PM |
Multiple html files to one epub book | Raphi'Elohim | Conversion | 2 | 07-09-2019 08:57 AM |
Converting multiple HTML files into one EPUB file | bigdukesix | ePub | 3 | 03-08-2011 12:12 PM |
Multiple html to epub conversion. | Barthelemy | ePub | 4 | 03-30-2010 06:18 AM |