Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 10-10-2019, 07:20 AM   #1
pavelh
Zealot
pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.
 
Posts: 103
Karma: 565178
Join Date: Oct 2009
Device: Kobo Sage, Kobo Clara HD
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, 08: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: 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.
pdurrant is offline   Reply With Quote
Advert
Old 10-10-2019, 09:09 AM   #3
pavelh
Zealot
pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.pavelh ought to be getting tired of karma fortunes by now.
 
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
pavelh is offline   Reply With Quote
Old 10-10-2019, 10: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: 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:
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 online now   Reply With Quote
Old 10-10-2019, 10: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: 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!
exaltedwombat is offline   Reply With Quote
Advert
Old 10-10-2019, 12: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: 128
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, 04:49 PM   #7
BetterRed
null operator (he/him)
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: 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
BetterRed is offline   Reply With Quote
Old 10-10-2019, 04: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: 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:
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 online now   Reply With Quote
Old 10-10-2019, 05: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: 878
Karma: 2457540
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, 07: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: 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'
theducks is offline   Reply With Quote
Old 10-13-2019, 04:31 AM   #11
Sarmat89
Fanatic
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: 515
Karma: 2268308
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, 11:22 AM   #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: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
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, 09: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: 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:
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 online now   Reply With Quote
Old 10-28-2019, 03: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,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.
Notjohn is offline   Reply With Quote
Old 10-28-2019, 04: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: 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
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


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 02:04 PM.


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