Re: [NTG-context] Compiling to EPUB
Looks like you should install a command line ?zip? program. ePub is a zipped format.
Thanks, Hraban. But what does that mean exactly, I have installed 7zip and besides that, Windows can natively zip any file. What exactly to do to install an "command line zip program" and to get over this error. Best regards, Huseyin
Hello, ** "H. Özoguz" [2014-01-16 12:11:09 +0100]:
Looks like you should install a command line ?zip? program. ePub is a zipped format.
Thanks, Hraban.
But what does that mean exactly, I have installed 7zip and besides that, Windows can natively zip any file. What exactly to do to install an "command line zip program" and to get over this error.
I didn't try to generate EPUB but may give some hints. First, 7zip allows to create different kinds of archives, compressed or not and to extract content of archive created in most popular formats. Windows has "built-in" capability to "natively" opens zip archives BUT not (AFAIR) to create them. In your case context needs a program able to create an archive in ZIP. Surprisingly there is program named 'zip.exe' (it is called that on Windows) that context uses to create ZIP. You can download this program on this site: http://www.info-zip.org/Zip.html Next, you should place this program to a directory (aka "folder" on Windows) mentioned in PATH variable. --- WBR, Vladimir Lomov -- Famous last words: (1) Don't unplug it, it will just take a moment to fix. (2) Let's take the shortcut, he can't see us from there. (3) What happens if you touch these two wires tog-- (4) We won't need reservations. (5) It's always sunny there this time of the year. (6) Don't worry, it's not loaded. (7) They'd never (be stupid enough to) make him a manager. (8) Don't worry! Women love it!
Am 2014-01-16 um 17:11 schrieb H. Özoguz
Looks like you should install a command line ?zip? program. ePub is a zipped format.
Thanks, Hraban. But what does that mean exactly, I have installed 7zip and besides that, Windows can natively zip any file. What exactly to do to install an "command line zip program" and to get over this error.
See also Vladimir’s message. 7zip is not called as „zip“, but „7zip“, and Windows’ archiving capabilities are also not callable as „zip“, but ConTeXt’s script relies on an executable „zip“ and probably exactly the syntax of InfoZip that Vladimir told you to install. Someone could also adapt the epub script to check the availability of a „zip“ command and fall back to „7zip“ or other. Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
On 2014–01–16 Henning Hraban Ramm wrote:
7zip is not called as „zip“, but „7zip“,
On my (Unix) machine it's called as “7z” not “7zip”. I don't know if the binary name differs between the platforms.
but ConTeXt’s script relies on an executable „zip“ and probably exactly the syntax of InfoZip that Vladimir told you to install.
Someone could also adapt the epub script to check the availability of a „zip“ command and fall back to „7zip“ or other.
According to mtx-epub.lua “zip” or “7z” are used, whichever is available. Maybe it makes sense to add “7zip” as well if the Windows binary is really called “7zip” instead of “7z”. I'm wondering why the OP didn't get the following message: “no epub archive made, install one of: <list of supported zippers>” which should be displayed if no supported zipper is found. Doesn't LuaTeX ship with a zip library? Why is that one not used instead? Marco
On 1/16/2014 2:41 PM, Marco Patzer wrote:
According to mtx-epub.lua “zip” or “7z” are used, whichever is available. Maybe it makes sense to add “7zip” as well if the Windows binary is really called “7zip” instead of “7z”.
It's 7z.exe on my machine, but it's not in PATH unless someone tells it to be... perhaps doing that would fix OP's problem? -->Jake
participants (5)
-
"H. Özoguz"
-
Henning Hraban Ramm
-
Jacob Peck
-
Marco Patzer
-
Vladimir Lomov