Quote:
Originally Posted by Interrobang
When importing a .docx file, it creates a new epub with the .xhtml and .css files at the root of the file structure and not under the OEBPS folder. I thought the epub spec required the files to be nested under that folder. Correct?
|
Nope. You
must have an uncompressed mimetype file in the root of the .zip container. You
must have a META-INF directory which
must contain a container.xml file. The META-INF directory can contain other files such as encryption.xml, manifest.xml, metadata.xml, rights.xml and signatures.xml though other than encryption.xml, you will seldom see the other files in the wild. None of those files will be listed in the manifest as they strictly speaking are not part of the Epub document nor can they be encrypted.
Everything else can be placed in the root of the .zip file though using an OEBPS directory containing Text, Images, Styles, Misc and the content.opf and toc.ncx is pretty common and what Sigil uses when you click on Restructure Epub to Sigil Norm. Early versions of Sigil forced that structure.
If you are suffering from insomnia, you can check the
Open Container Format for more information.