Thread: OPF & guide
View Single Post
Old 08-05-2009, 03:12 PM   #20
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,463
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Suppose the user wants to set a new cover in an epub file. Now should calibre replace the first entry in the spine or not? That is the question.

The only way to unambiguously answer it is to have some pointer in the OPF file that tells calibre whether the first entry in the spine is a cover or not.

Try to guess if the first entry is a cover is not at all robust, just take my word for it, I lack the patience to enumerate all the cases where any guessing algorithm will fail.
kovidgoyal is online now   Reply With Quote