Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book General > News

Notices

Reply
 
Thread Tools Search this Thread
Old 06-21-2009, 08:19 PM   #61
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: 45,366
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Oh I'm waaay to lazy to re-implement the HTML rendering wheel. I just use WebKit in calibre to do my HTML rendering for me
kovidgoyal is offline   Reply With Quote
Old 06-22-2009, 04:52 AM   #62
Lbooker
Addict
Lbooker ought to be getting tired of karma fortunes by now.Lbooker ought to be getting tired of karma fortunes by now.Lbooker ought to be getting tired of karma fortunes by now.Lbooker ought to be getting tired of karma fortunes by now.Lbooker ought to be getting tired of karma fortunes by now.Lbooker ought to be getting tired of karma fortunes by now.Lbooker ought to be getting tired of karma fortunes by now.Lbooker ought to be getting tired of karma fortunes by now.Lbooker ought to be getting tired of karma fortunes by now.Lbooker ought to be getting tired of karma fortunes by now.Lbooker ought to be getting tired of karma fortunes by now.
 
Posts: 316
Karma: 1021312
Join Date: Jun 2009
Device: Sony PRS-T1
So in the end who was right?
Tuna or kovidgoyal?
Right now I guess that kovidgoyal must be right because the other programmers who chose to implement epub decoders that way must have done so for good reasons.
Lbooker is offline   Reply With Quote
Advert
Old 06-22-2009, 05:16 AM   #63
Tuna
Zealot
Tuna has a complete set of Star Wars action figures.Tuna has a complete set of Star Wars action figures.Tuna has a complete set of Star Wars action figures.Tuna has a complete set of Star Wars action figures.
 
Posts: 114
Karma: 325
Join Date: May 2009
Device: Cool-ER
Quote:
Originally Posted by Lbooker View Post
So in the end who was right?
Tuna or kovidgoyal?
Right now I guess that kovidgoyal must be right because the other programmers who chose to implement epub decoders that way must have done so for good reasons.
Laughing here - there isn't a right way, just the way that best suits your needs. As Korvid says above, for his needs (a viewer on a PC that is a supplement to the main functionality of Callibre), he uses a standard renderer library 'off the shelf'. On the whole he doesn't need to obsess about memory footprint, rendering speed and so on. For most purposes there are many libraries that are good enough to do the job and as he rightly says, what's the point in re-inventing the wheel?

As for other programmers, the decisions they make will have been based on many trade offs - what requirements had been drawn up, what libraries were conveniently available to them, how much time and money they had, what their specialities were and so on. For many operations, something that's "good enough" is, well, good enough.

However, consider that web browsers have been around for 15 years or so now and Javascript nearly as long, yet something like Chrome can come along and demonstrate massive performance improvements by taking a fresh approach to the problem. In areas like this, one or two guys who have the time and enthusiasm for starting from scratch can make a real difference.
Tuna is offline   Reply With Quote
Old 06-22-2009, 06:36 AM   #64
netseeker
sleepless reader
netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.
 
netseeker's Avatar
 
Posts: 4,763
Karma: 615547
Join Date: Jan 2008
Location: Germany, near Stuttgart
Device: Sony PRS-505, PB 360° & 302, nook wi-fi, Kindle 3
Quote:
Originally Posted by kovidgoyal View Post
Oh I'm waaay to lazy to re-implement the HTML rendering wheel. I just use WebKit in calibre to do my HTML rendering for me
Arghh...that was clever, you lazy one!!!
netseeker is offline   Reply With Quote
Old 06-22-2009, 11:32 AM   #65
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by HarryT View Post
Yes. That is, I imagine, what the ePub programs for mobile phones, PDAs, etc, actually true.



True, but the reading application does.
True, which is why I said it was the reader who performed the magic of being able to read where you left off, not the format. By the way, mobi's reader is pretty sophisticated while the format is pretty terrible. One thing that the reader does is keep a side file with all the data it needs to pick up where it left off or find a bookmark with all the context it needs to read the data. ePUB readers could certainly squirrel away enough context data to provide similar capabilities to start quickly and make bookmarks quick, however arbitrary jumps are tougher and mobi doesn't do so good on them either.

Dale
DaleDe is offline   Reply With Quote
Advert
Old 06-22-2009, 12:59 PM   #66
Peter Sorotokin
speaking for myself
Peter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it is
 
Posts: 139
Karma: 2166
Join Date: Feb 2008
Location: San Francisco Bay Area
Device: PRS-505
Well, the author of the article worries about wrong things. It is not loading into memory which limits viable chapter (or "chunk") size, it's layout speed. Compressed XML parses blazingly fast - much faster than all, but the most carefully designed binary formats. EPUB is more complex to process, but the only reason why it would be slower or require more memory than, say, mobipocket for a file of the same complexity is that developers who write EPUB viewer have too much stuff to do and too little time to do it . Of course, if you include a bunch of tables and complex vector graphics, it will be slower (but still good for any reasonable content) - but other formats simply won't be able to capture that kind of stuff at all.
Peter Sorotokin is offline   Reply With Quote
Old 06-29-2009, 11:06 AM   #67
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
Aww, I missed all the discussion my post provoked! I realize I'm a bit late to the party, but a few points anyway:

@netseeker: Sibling selectors mean that you need to keep the whole parse tree around to figure out the CSS rules which apply to a particular element. That's the big benefit of LIT's simplified selectors -- that the renderer can pick up at any arbitrary point given only the parent elements, access to which the container directly provides.

@Peter Sorotokin: By the time I got to the EPUB bit of the post I was running out of metaphorical breath. I did have in mind mostly the complexity of rendering and producing the layout of complex markup with complex styling (hence the contrast with Mobipocket), although the lack of seekable decompression in the ZIP format definitely does impose a size limit -- however large in practice -- which does not exist in formats which do have seekable decompression.
llasram is offline   Reply With Quote
Old 06-29-2009, 03:31 PM   #68
netseeker
sleepless reader
netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.
 
netseeker's Avatar
 
Posts: 4,763
Karma: 615547
Join Date: Jan 2008
Location: Germany, near Stuttgart
Device: Sony PRS-505, PB 360° & 302, nook wi-fi, Kindle 3
Quote:
Originally Posted by llasram View Post
@netseeker: Sibling selectors mean that you need to keep the whole parse tree around to figure out the CSS rules which apply to a particular element.
No, definitly not for siblings in general. I guess you mean adjacent sibling selectors because the CSS 2.1 specification contains nothing about "sibling selectors". Adjacent sibling selectors mean that you need to know at least the current node and it's predecessor.
netseeker is offline   Reply With Quote
Old 06-29-2009, 04:49 PM   #69
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
Quote:
Originally Posted by netseeker View Post
No, definitly not for siblings in general. I guess you mean adjacent sibling selectors because the CSS 2.1 specification contains nothing about "sibling selectors". Adjacent sibling selectors mean that you need to know at least the current node and it's predecessor.
Oops. I could have sworn the general sibling selector ('~') was part of CSS 2.1, but you're right -- it's just in the current CSS 3 draft. My error.
llasram is offline   Reply With Quote
Old 06-29-2009, 04:54 PM   #70
netseeker
sleepless reader
netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.
 
netseeker's Avatar
 
Posts: 4,763
Karma: 615547
Join Date: Jan 2008
Location: Germany, near Stuttgart
Device: Sony PRS-505, PB 360° & 302, nook wi-fi, Kindle 3
Quote:
Originally Posted by llasram View Post
Oops. I could have sworn the general sibling selector ('~') was part of CSS 2.1, but you're right -- it's just in the current CSS 3 draft. My error.
No problem. It's really in the CSS 3 draft? That's good to know anyway because it might be that a future version of ePub will add support for those selectors.
netseeker is offline   Reply With Quote
Old 07-01-2009, 12:51 PM   #71
cjcherryh
Member
cjcherryh doesn't littercjcherryh doesn't litter
 
Posts: 19
Karma: 108
Join Date: May 2009
Device: computer
As a creator of e-books, I find mobi easier to work with: you don't have to stitch and paste huge files and then discover you got something in the wrong order. Much easier to edit, and you can do a partial and test the result to see if something works correctly, or if your flowing text actually displays right.

With ePub you have to just close your eyes, push the button, and hope. And wipe it and go work with another software to prep it, then try again.

I like both formats and use them, but mobi is my favorite for ease of use.
cjcherryh is offline   Reply With Quote
Old 07-01-2009, 01:35 PM   #72
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,786
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
ePub is the best format for future compatibility. And it's going to be the best format for reading across different devices.
JSWolf is offline   Reply With Quote
Old 07-01-2009, 04:58 PM   #73
Tuna
Zealot
Tuna has a complete set of Star Wars action figures.Tuna has a complete set of Star Wars action figures.Tuna has a complete set of Star Wars action figures.Tuna has a complete set of Star Wars action figures.
 
Posts: 114
Karma: 325
Join Date: May 2009
Device: Cool-ER
So much will depend on the tools.

If you look at the old Microsoft Word internal format, it's a complete nightmare. The vast layers of software that sit on top of it hide that from the end user, and it does the job required of it.

I'm not advocating formats like Word's .doc, but the point is that a format is only as good as the software above it.
Tuna is offline   Reply With Quote
Old 07-01-2009, 05:40 PM   #74
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by Tuna View Post
So much will depend on the tools.

If you look at the old Microsoft Word internal format, it's a complete nightmare. The vast layers of software that sit on top of it hide that from the end user, and it does the job required of it.

I'm not advocating formats like Word's .doc, but the point is that a format is only as good as the software above it.
But how good the tools will become nearly always depend of how good the format is.
tompe is offline   Reply With Quote
Old 07-01-2009, 06:26 PM   #75
Teddman
Addict
Teddman will become famous soon enoughTeddman will become famous soon enoughTeddman will become famous soon enoughTeddman will become famous soon enoughTeddman will become famous soon enoughTeddman will become famous soon enough
 
Teddman's Avatar
 
Posts: 242
Karma: 695
Join Date: Jun 2009
Device: Sony PRS-505
Quote:
Originally Posted by JSWolf View Post
ePub is the best format for future compatibility. And it's going to be the best format for reading across different devices.
I don't like the ragged right tho.
Teddman is offline   Reply With Quote
Reply

Tags
epub, mobi


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Epub and Msreader formats to Kindle formats bruc79 Calibre 17 06-22-2010 04:50 AM
Other formats than ePub or Zip? Robotech_Master Calibre 4 05-28-2009 02:15 PM
Converting epub to other formats garygibsonsf ePub 6 05-06-2009 12:25 PM
Formats for PRS-505 / Mobipocket thorswitch Sony Reader 6 06-07-2008 08:43 PM
Announcing: MOBI2IMP v9 will directly convert mobipocket .prc to .IMP formats nrapallo Kindle Formats 4 03-22-2008 01:38 AM


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


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