Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 10-10-2019, 08:20 AM   #1
pavelh
Connoisseur
pavelh began at the beginning.
 
Posts: 63
Karma: 10
Join Date: Oct 2009
Device: Kobo Clara HD, Kindle 3
Question epub: why multiple HTML?

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
pavelh is offline   Reply With Quote
Old 10-10-2019, 09:02 AM   #2
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 59,418
Karma: 233448149
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
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.
pdurrant is offline   Reply With Quote
Old 10-10-2019, 10:09 AM   #3
pavelh
Connoisseur
pavelh began at the beginning.
 
Posts: 63
Karma: 10
Join Date: Oct 2009
Device: Kobo Clara HD, Kindle 3
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
pavelh is offline   Reply With Quote
Old 10-10-2019, 11:26 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 54,060
Karma: 50774064
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by pavelh View Post
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
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.
JSWolf is offline   Reply With Quote
Old 10-10-2019, 11:52 AM   #5
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 758
Karma: 1771618
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!
exaltedwombat is offline   Reply With Quote
Old 10-10-2019, 01:28 PM   #6
elchamaco
Zealot
elchamaco will become famous soon enoughelchamaco will become famous soon enoughelchamaco will become famous soon enoughelchamaco will become famous soon enoughelchamaco will become famous soon enoughelchamaco will become famous soon enough
 
Posts: 114
Karma: 500
Join Date: Aug 2011
Device: kindle, boox
Quote:
Originally Posted by JSWolf View Post
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.
300 Kb Images and Html files.
elchamaco is offline   Reply With Quote
Old 10-10-2019, 05:49 PM   #7
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 14,904
Karma: 12631370
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
BetterRed is offline   Reply With Quote
Old 10-10-2019, 05:55 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 54,060
Karma: 50774064
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by BetterRed View Post
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
Discworld books do not have chapters. But I find whoever is making the eBooks is rather lazy. What I do is edit the ePub to make the HTML split at a section break. That's a lot more sensible then breaking as some arbitrary place.
JSWolf is offline   Reply With Quote
Old 10-10-2019, 06:29 PM   #9
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 758
Karma: 1771618
Join Date: Nov 2011
Device: none
Quote:
Originally Posted by JSWolf View Post
Discworld books do not have chapters. But I find whoever is making the eBooks is rather lazy. What I do is edit the ePub to make the HTML split at a section break. That's a lot more sensible then breaking as some arbitrary place.
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...
exaltedwombat is offline   Reply With Quote
Old 10-10-2019, 08:44 PM   #10
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 24,024
Karma: 27923385
Join Date: Aug 2009
Location: The Central Coast of California
Device: K4NT, Galaxy Tab A, Kobo Aura2
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'
theducks is offline   Reply With Quote
Old 10-13-2019, 05:31 AM   #11
Sarmat89
Groupie
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 191
Karma: 2100000
Join Date: Nov 2015
Device: none
Also, it is a guaranteed way to force a page break.
Sarmat89 is offline   Reply With Quote
Old 10-17-2019, 12:22 PM   #12
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 7,926
Karma: 76706897
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, and NookColor. 2 Droid, 1 Win8 ePUB rdrs
Quote:
Originally Posted by pavelh View Post
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
Ehhhh...it's not "always easier." Sure, it can make a difference in some things, but as Wombat pointed out, if you are trying to troubleshoot, it's FAR easier to review a handful of lines than all of them!

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
Hitch is offline   Reply With Quote
Old 10-18-2019, 10:34 AM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 54,060
Karma: 50774064
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by Hitch View Post
Ehhhh...it's not "always easier." Sure, it can make a difference in some things, but as Wombat pointed out, if you are trying to troubleshoot, it's FAR easier to review a handful of lines than all of them!

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
With Calibre, you can search across all text files, all style files, or just the current file.
JSWolf is offline   Reply With Quote
Old 10-28-2019, 04:09 PM   #14
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,321
Karma: 870750
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.
Notjohn is offline   Reply With Quote
Old 10-28-2019, 05:53 PM   #15
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 1,879
Karma: 12505016
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone X/6/iPad 1,2 & Air/Surface Pro/Kindle PW
Quote:
Originally Posted by Notjohn View Post
...
If one does the <heading> correctly with title and style sheet, splitting the file requires no work whatever in Sigil.
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??
Turtle91 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
endnotes in epub with Sigil, multiple html BMaloney Sigil 9 10-10-2019 05:34 PM
Multiple html files to one epub book Raphi'Elohim Conversion 2 07-09-2019 09:57 AM
Converting multiple HTML files into one EPUB file bigdukesix ePub 3 03-08-2011 01:12 PM
Multiple html to epub conversion. Barthelemy ePub 4 03-30-2010 07:18 AM


All times are GMT -4. The time now is 05:16 AM.


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