View Single Post
Old 02-05-2011, 04:39 AM   #52
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,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Nigol View Post
Or a more proper way would be to check for the mimetype application/x-dtbncx+xml in the opf file. I will change it in the next version if there are some problem with some files. But I would like to see your opf & ncx file, just to be sure.
The really proper way would be:

- For the OPF file, look into META-INF/container.xml (this filename does not change), and you'll find something like:

Code:
<rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml" />
there you have the OPF file, with full path.

- For the NCX file, look into the OPF file, and search the spine:

Code:
<spine toc="ncx">
here, "ncx" is the id of the NCX file. Now you have to search the manifest for the "ncx" id:

Code:
<item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml" />
and there you have the NCX file.
Jellby is offline   Reply With Quote