Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-09-2009, 11:21 PM   #1
darkmonk
Connoisseur
darkmonk began at the beginning.
 
Posts: 58
Karma: 12
Join Date: Jan 2009
Device: none
Why must epub files be broken up?

Hello all, I may be hand coding some epub files soon. I was looking over some specs, and I couldn't figure out why it wanted the split into diferent files. Could someone explain why this is, and what one generally used to split the file? Thanks.
darkmonk is offline   Reply With Quote
Old 04-10-2009, 12:19 AM   #2
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Most ebook readers have limited resources (processor, memory, etc). It's easier for them to process 300kb chunks compared to a 1MB file without splits.

That said, I've found the html2epub commandline from Calibre to work pretty well. If it's easier for you to edit, just use one html file for your work, and convert using Calibre's html2epub. It should divide it into chunks automatically.
ilovejedd is offline   Reply With Quote
Old 04-10-2009, 12:20 AM   #3
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
That's easy! Unlike computers, e-book devices don't use the powerful CPUs and loads of memory. The splitting allows them to process a small amount of data at a time, which should require less CPU power and less memory.
pepak is offline   Reply With Quote
Old 04-10-2009, 10:55 AM   #4
darkmonk
Connoisseur
darkmonk began at the beginning.
 
Posts: 58
Karma: 12
Join Date: Jan 2009
Device: none
Quote:
Originally Posted by pepak View Post
That's easy! Unlike computers, e-book devices don't use the powerful CPUs and loads of memory. The splitting allows them to process a small amount of data at a time, which should require less CPU power and less memory.
Well, see, that is a valid argument - but appears not to be true. I calculated the average speed of ebook processors to be 355MHz, none of which had less then 64MB RAM. See, that doesn't seem handicapped to me. None should have the problem of not fitting a book into RAM.

...but then I figured out why it must be; when content is reflowed, ie by changing font size, that must all be applied. That would take some time. And so the limit makes a bit of sense - although I dearly wish it was larger.

But what I was also asking was where I should split them. Having a split in the middle of a chapter would be annoying, but for best responsiveness, I might want to make a file a chapter. That would also simplify the ToC. Hell, maybe it should have been written into the standard like that.

What are your thoughts?
darkmonk is offline   Reply With Quote
Old 04-10-2009, 11:08 AM   #5
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
By convention (at least from epubs I've seen), splits are made at chapter points and/or hard pagebreaks. 1 file = 1 chapter.

You can create an epub with the HTML not split into chunks, but loading on an ebook reader/device would probably take longer, compared to when the HTML is split.
ilovejedd is offline   Reply With Quote
Old 04-10-2009, 11:29 AM   #6
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Adobe Digital Editions for handheld devices is currently available on the Sony PRS-505 and PRS-700, but will soon be available on several other EInk devices. It requires the ePub to be split into manageable chunks, which are typically chapters. If a chapter is very long it may require multiple files per chapter. The easiest way to handle this is to run your document through Calibre, which will add PRS-505 specific processing if you ask for it. This includes chapter splitting and other work-arounds. Note that the input can be ePub if you like (or HTML or whatever), and you can always explode the resulting ePub and apply your own customization afterwards if you want.
wallcraft is offline   Reply With Quote
Old 04-10-2009, 11:55 AM   #7
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
I must admit that I still don't really "get" why this is really necessary. Why does it take more memory to "process" a long book than a short one, when all that one needs to display is the current page? It doesn't seem to be an issue with any other book format.
HarryT is offline   Reply With Quote
Old 04-10-2009, 12:00 PM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,842
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by HarryT View Post
I must admit that I still don't really "get" why this is really necessary. Why does it take more memory to "process" a long book than a short one, when all that one needs to display is the current page? It doesn't seem to be an issue with any other book format.
Its because of the way CSS works. In order to correctly apply CSS rules, the entire XHTML tree must be parsed into memory.
kovidgoyal is offline   Reply With Quote
Old 04-10-2009, 12:17 PM   #9
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Thanks, Kovid; I hadn't realised that. Is there really no other way to do it?
HarryT is offline   Reply With Quote
Old 04-10-2009, 12:19 PM   #10
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by HarryT View Post
I must admit that I still don't really "get" why this is really necessary. Why does it take more memory to "process" a long book than a short one, when all that one needs to display is the current page? It doesn't seem to be an issue with any other book format.
Well... I've seen a (maybe related) issue with mobipocket in the Cybook. If you have an anchor inside an element (say inside <h1>...</h1>) and you jump to this anchor, then you don't see the content formatted according to the element (i.e., you don't see the <h1> content in bold large font), probably because the reader doesn't know it's inside an element... probably because it didn't load the whole book into memory... (I don't know if this happens always, but it happens sometimes at least). That's also probably a reason why the nesting level in mobipocket is severely limited.
Jellby is offline   Reply With Quote
Old 04-10-2009, 12:22 PM   #11
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by Jellby View Post
Well... I've seen a (maybe related) issue with mobipocket in the Cybook. If you have an anchor inside an element (say inside <h1>...</h1>) and you jump to this anchor, then you don't see the content formatted according to the element (i.e., you don't see the <h1> content in bold large font), probably because the reader doesn't know it's inside an element... probably because it didn't load the whole book into memory... (I don't know if this happens always, but it happens sometimes at least). That's also probably a reason why the nesting level in mobipocket is severely limited.
That's very true - you have to make sure that your links are "outside" formatting tags.
HarryT is offline   Reply With Quote
Old 04-10-2009, 12:34 PM   #12
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,842
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by HarryT View Post
Thanks, Kovid; I hadn't realised that. Is there really no other way to do it?
Not really since CSS allows for selectors based on ancestors and descendants of a tag, to use those selectors, the full tree must be loaded. In addition as Jellby pointed out CSS properties can be inherited, for which you need at least the entire tree before a tag
kovidgoyal is offline   Reply With Quote
Old 04-10-2009, 12:41 PM   #13
mtravellerh
book creator
mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.
 
mtravellerh's Avatar
 
Posts: 9,635
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: PB360°
Quote:
Originally Posted by HarryT View Post
That's very true - you have to make sure that your links are "outside" formatting tags.
You can make links with ids, too. This way Mobi recognizes the tags, too.

Code:
 <h2 id="toc">Contents
mtravellerh is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Txt files - Convert to Epub - Multiple files into one book - noob help Cernan Calibre 6 05-18-2010 10:12 AM
Internal links in ePub-files broken? Portnull Calibre 2 08-17-2009 11:00 AM


All times are GMT -4. The time now is 01:13 AM.


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