Zip is just a compression format.  "zip" is the Info-zip program to create
and manipulate zip files.  7-zip can create zip files so you just need to
adapt the CLI args to add the files you need to a zip archive with an
extension of '.epub'

On Thu, Aug 30, 2012 at 3:22 AM, Kerry, Richard <richard.ke...@atos.net>wrote:

>
> I decided to try building an epub from my DocBook document, using epub3
> .....
> Following the instructions in the README.
>
> Step 1.  XSL (epub3/chunk.xsl) to generate Xhtml and other files.
>     That seems to work fine.
>
> Step 2.  Copy in any image files.
>     I wrote some XSL to scan package.opf and generate a batch file to do
> the copy.
>     I don't think XSL (or Saxon) has a built-in ability to copy files, so
> I build a batch file then run it.
>
> Step 3.  Zip it.
>     Ok, so I do the command as in the README -
> zip -r -X mybook.epub mimetype META-INF OEBPS
>
> And I get -
> 'zip' is not recognized as an internal or external command, operable
> program or batch file.
>
> So - firstly, if referring to a program that isn't part of the operating
> system, please explain exactly what is meant.
>
>
> Anyway, I thought I recognized the syntax as Info-Zip's zip (I normally
> use 7-zip) so I set about getting a copy.
> Ok, the download is FTP, which I haven't used for ages.  So install
> Filezilla and try and download an info-zip exe.
> Eventually find an exe, from zip323xn.  Add its folder to my Path.
>
> Then run it ....
> zip -r -X mybook.epub mimetype META-INF OEBPS
>
> And now I get -
>         zip warning: multiple disk information ignored
> <path-to>/Info-Zip/zip232xn/zip.exe: found a preamble of 20832 bytes
>         zip warning: name not matched: mybook.epub
> zip I/O error: Permission denied
> zip error: Could not create output file
> (<path-to>//Info-Zip/zip232xn/zip.exe)
>
>
> Ok, so can someone tell me how to actually get this to work ?
>
>
> And ......
> Can 7-zip be used for this, if Info-zip's zip is going to give problems ?
> I think I've seen somewhere that "mimetype" should be in the archive but
> not compressed.  Is this so ?
> If so how do we get it not to compress certain files ?
>
>
> Frustratedly,
> Richard.
>
>
>
>
>
>
>
> Richard Kerry
> BNCS Engineer
> T: +44 (0)20 82259063
> M: +44 (0)7812 325518
> Room EBX 301, BBC Television Centre, Wood Lane, London, W12 7RJ
> richard.ke...@atos.net
> uk.atos.net
>
> This e-mail and the documents attached are confidential and intended
> solely for the addressee; it may also be privileged. If you receive this
> e-mail in error, please notify the sender immediately and destroy it. As
> its integrity cannot be secured on the Internet, the Atos group liability
> cannot be triggered for the message content. Although the sender endeavours
> to maintain a computer virus-free network, the sender does not warrant that
> this transmission is virus-free and will not be liable for any damages
> resulting from any virus transmitted.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
>
>

Reply via email to