View Single Post
Old 05-02-2010, 04:52 AM   #6
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Open the epub as a zipfile (no idea how to do this on a Mac) and see if the folder structure in the zipfile is correct. The mimetype should be in the root and also the META-INF should be in the root.

If you used the command Pholy provided, there is a change that the xhtml files itself are not contained. You're wildcard in you're first command made sure that those files where contained.

Personally I use the following structure, which helps for me:
root
--mimetype (file)
--META-INF (folder)
--OEBPS (folder)
--xhtml files
--fonts (folder, when used)
--css (folder)
--images (folder)

If you use a folder structure like this, you're container.xml should read:

Quote:
<?xml version="1.0" ?>
<container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:conta iner">
<rootfiles>
<rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml"/>
</rootfiles>
</container>
You can of course omit the folder structure in the OEBPS folder and put everything in the root of OEBPS.

You're zip command would then be:
Quote:
zip -DX0 ROE.epub mimetype
zip -DrX9 ROE.epub META_INF OEBPS
Good Luck.
Toxaris is offline   Reply With Quote