Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book General > News

Notices

Reply
 
Thread Tools Search this Thread
Old 03-27-2009, 03:13 PM   #31
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,845
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Peter Sorotokin View Post
Kovid,

while I understand at to some extent share your position on uniqueness of the identifier, the standard clearly requires a globally unique id:

There are a lot of silly things in the standards, but if we all start to ignore them, the world entropy is only going to increase...
I certainly agree with the principle of adhering to standards as much as possible, that is why calibre will generate a UUID when converting from the command line. The thing is how to interpret "globally" in "globally unique". To me, "globally" cannot mean over all documents and all time, since that is fundamentally impossible. Which is why I believe the standard states that reading systems should tolerate duplicate ids.

Still, since to me the concept of having a unique id is silly on the face of it, I don't really care what is put into the package identifier, so I am quite willing to change the behavior of the calibre GUI to use a UUID as a package identifier.
kovidgoyal is offline   Reply With Quote
Old 03-27-2009, 03:45 PM   #32
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 kovidgoyal View Post
Still, since to me the concept of having a unique id is silly on the face of it, I don't really care what is put into the package identifier, so I am quite willing to change the behavior of the calibre GUI to use a UUID as a package identifier.
Would it be enough to just append or prepend some customizable string? Like, for instance, the user name, and have "Jellby:1", "Jellby:2", ..., "Jellby:427" ...

I use a similar approach with my hand-made ePUBs, but with the date of creation instead of a number.
Jellby is offline   Reply With Quote
Advert
Old 03-27-2009, 04:40 PM   #33
=X=
Wizard
=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.
 
=X='s Avatar
 
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
Quote:
Originally Posted by kovidgoyal View Post
The quality of the EPUB that calibre produces depends on the quality of the input you give it. There is nothing "bloated" or "slow" about EPUB files created by calibre. Basically calibre's philosophy is to make as few changes to your input HTML as possible, unlike say feedbooks, which insist on allowing only a very small and well defined subset of features in your input HTML.
And I think that is a good philosophy, but I've noticed ePUBs created with calibre take a long time to open. Not just mine it seems every ePUB I've downloaded in MobileRead (that is created with calibre) suffers the sample lag. Unlike LRF this lag happens every time I open that book. The TOC also take a very long time to load and changing chapters do too. On the TOC those a generated by calibre so by your argument they should not have such a performance hit since have complete control over their creation, save the regular expression that is passed in, but calibre also controls that syntax.

An example is google? Some of their books are pretty complicated if you take a look at them. Granted their content is lacking due to auto generated OCR. But their books are very snappy.


=X=
=X= is offline   Reply With Quote
Old 03-27-2009, 05:43 PM   #34
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,845
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by =X= View Post
The TOC also take a very long time to load and changing chapters do too. On the TOC those a generated by calibre so by your argument they should not have such a performance hit since have complete control over their creation, save the regular expression that is passed in, but calibre also controls that syntax.
calibre allows TOC entries to point to locations within HTML files. This is so that you dont have to split up your book into one HTML file per TOC entry if you dont want to. Unfortunately, ADE for some reason, that I'm sure Peter can explain, doesn't handle TOCs with this type of entry very well. For instance, if you view the same epub file with calibre's epub viewer, there is no delay in opening the TOCs. Hopefully, this behavior will eventually be fixed in ADE.

As for chapter changing being slow, as far as I know that time depends only on the complexity of the markup/size in each chapter, which is not under calibre's control.
kovidgoyal is offline   Reply With Quote
Old 03-28-2009, 04:10 AM   #35
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 =X= View Post
And I think that is a good philosophy, but I've noticed ePUBs created with calibre take a long time to open.
Wild guess: Are these ePUBs created from the monstrous HTML generated with Word?
Jellby is offline   Reply With Quote
Advert
Old 03-28-2009, 07:26 AM   #36
Hadrien
Feedbooks.com Co-Founder
Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.
 
Hadrien's Avatar
 
Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
Quote:
Originally Posted by kovidgoyal View Post
calibre allows TOC entries to point to locations within HTML files. This is so that you dont have to split up your book into one HTML file per TOC entry if you dont want to. Unfortunately, ADE for some reason, that I'm sure Peter can explain, doesn't handle TOCs with this type of entry very well. For instance, if you view the same epub file with calibre's epub viewer, there is no delay in opening the TOCs. Hopefully, this behavior will eventually be fixed in ADE.

As for chapter changing being slow, as far as I know that time depends only on the complexity of the markup/size in each chapter, which is not under calibre's control.
In DE if you point to XHTML locations in your TOC, DE will have to parse these individual flows, that's why it takes such a long time to process. In their "best practice guide" they recommend to avoid using such things in the root elements of your TOC.
Hadrien is offline   Reply With Quote
Old 03-28-2009, 07:30 AM   #37
Hadrien
Feedbooks.com Co-Founder
Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.
 
Hadrien's Avatar
 
Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
Quote:
Originally Posted by kovidgoyal View Post
The philosophical issue of whether trying to assign a unique id to electronic documents is meaningful. On this I strongly believe it is not. A consequence of that is that I believe a statement like "producing books with non unique ids is catastrophic" is just wrong.
You're the only one having a philosophical argument here: I'm pointing out that the standard requires such a unique identifier and that reading systems will use it too.
It can be catastrophic if one day we wish to handle such things such as shared annotations as we won't be able to rely on the identifier to identify a book (which is the whole purpose of an identifier).
Hadrien is offline   Reply With Quote
Old 03-28-2009, 07:33 AM   #38
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 Hadrien View Post
You're the only one having a philosophical argument here: I'm pointing out that the standard requires such a unique identifier and that reading systems will use it too.
It can be catastrophic if one day we wish to handle such things such as shared annotations as we won't be able to rely on the identifier to identify a book (which is the whole purpose of an identifier).
Speaking practically rather than philosophically, is there any software which will fail if a book does not have a unique ID?
HarryT is offline   Reply With Quote
Old 03-28-2009, 08:06 AM   #39
Hadrien
Feedbooks.com Co-Founder
Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.
 
Hadrien's Avatar
 
Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
Quote:
Originally Posted by HarryT View Post
Speaking practically rather than philosophically, is there any software which will fail if a book does not have a unique ID?
I doubt that a reading software would ever fail to open or render such a book (it wouldn't make any sense) but it could fail to associate other things with the book (bookmarks, last position, annotations).
Hadrien is offline   Reply With Quote
Old 03-28-2009, 08:13 AM   #40
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 use the same ID in all the Mobi books I create (because I copy/paste the same OPF file for each book) and so far have not encountered any software in which this causes problems. All implementations of the Mobi reader use a ".mbp" file, based on the book's filename, to store annotations, bookmarks, etc.
HarryT is offline   Reply With Quote
Old 03-28-2009, 08:18 AM   #41
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 HarryT View Post
I use the same ID in all the Mobi books I create (because I copy/paste the same OPF file for each book) and so far have not encountered any software in which this causes problems. All implementations of the Mobi reader use a ".mbp" file, based on the book's filename, to store annotations, bookmarks, etc.
MobiPocket is a secret format so it is not so strange that you get restrictions in possible behaviors. The point with an open standard is that it should enable new application that does not exists today.
tompe is offline   Reply With Quote
Old 03-28-2009, 08:32 AM   #42
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
Indeed. I was simply noting that both ePub and Mobi are based on the Dublin Core Metadata standard which mandates a unique book ID, but which, in reality, doesn't actually appear to use it for anything in particular.
HarryT is offline   Reply With Quote
Old 03-28-2009, 12:22 PM   #43
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 Hadrien View Post
I doubt that a reading software would ever fail to open or render such a book (it wouldn't make any sense) but it could fail to associate other things with the book (bookmarks, last position, annotations).
Actually I had two eBooks on my eBookwise 1150 that had the same ID and the reader would actually pick the wrong book when I tried to read it. Luckily I had the sources and the software provided a way to generate a new ID. I haven't experienced this in ePUB but then I haven't read nearly as many eBooks in this format. I think it is better safe than sorry.

Dale
DaleDe is offline   Reply With Quote
Old 03-28-2009, 12:32 PM   #44
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,845
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Hadrien View Post
In DE if you point to XHTML locations in your TOC, DE will have to parse these individual flows, that's why it takes such a long time to process. In their "best practice guide" they recommend to avoid using such things in the root elements of your TOC.
I know that, I just don't understand why.
kovidgoyal is offline   Reply With Quote
Old 03-28-2009, 12:35 PM   #45
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,845
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Hadrien View Post
You're the only one having a philosophical argument here: I'm pointing out that the standard requires such a unique identifier and that reading systems will use it too.
It can be catastrophic if one day we wish to handle such things such as shared annotations as we won't be able to rely on the identifier to identify a book (which is the whole purpose of an identifier).
And I'm saying that the standard is being idiotic. It's not possible to have a unique ID for every ebook file ever created. And any reader system that relies on this aspect of the standard is going to fall flat on its face.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Project Gutenberg Australia ballast Deals and Resources (No Self-Promotion or Affiliate Links) 9 07-31-2010 04:18 PM
Project Gutenberg levi_john Workshop 17 07-26-2010 06:02 PM
How are the mobi and epub files at Project Gutenberg? ficbot General Discussions 2 04-16-2010 06:57 PM
What's wrong with Project Gutenberg? mtravellerh News 13 04-22-2009 03:17 AM


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


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