Quote:
Originally Posted by crankypants
An EPUB is just a zipped file with certain files and directories in it. How in the world do I force the mimetype file to not be compressed and be the first file using 7zip?
|
Like I said, either use the magical incantation with zip.exe, as blessed by the IPDF, or special tools written specifically to "zip up an EPUB properly".
It is not enough to simply create a zipped folder with 7-Zip.
...
Didn't you mention somewhere you were using perl? Why not use the perl module for creating EPUB automatically as part of the scripting?
http://search.cpan.org/~oty/EBook-EPUB-0.6/
Quote:
Why would the creators of EPUB even ask for something bizarre like that? There should be a mimetype file in there, and the EPUB validator should find it regardless of what physical order it has in the zip/epub file. Can someone help me understand?
|
As DaleDe said, the mimetype is needed for the zipfile itself, not the unpacked representation.
It is released under the same umbrella as Sigil (these days, it is no longer a builtin but decoupled and turned into a plugin).
https://github.com/Sigil-Ebook/flightcrew
Binary releases as a Sigil plugin are available, but you should also be able to build it as a standalone gui or cli tool.