View Single Post
Old 06-09-2023, 12:59 AM   #161
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,114
Karma: 169815798
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Interrobang View Post
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.
DNSB is offline   Reply With Quote