Hans I'll update and try it tonight. Thanks for your help Keith On 29/11/2011 18:07, Hans Hagen wrote:
On 27-11-2011 23:27, Keith McKay wrote:
Hans Thanks for the hints.
I downloaded inkscape but but still get the same error message. I'm not too concerned about that just now. Unfortunately I couldn't find zip so I played about with 7-Zip and managed to get the script to work. It's still work in progress since I'm not sure I have the switches right but I edited the epub generation part of mtx-epub.lua to look like this:
os.execute(format("7z a -tzip -mx0 %s %s",epubfile,"mimetype")) os.execute(format("7z a -tzip %s %s",epubfile,"META-INF")) os.execute(format("7z a -tzip %s %s",epubfile,"OPS"))
and using a simple css file I can view the test epub in Adobe Digital Editions.
I'm used to using Sigil to edit ePubs and Context but luatex is all new territory for me.
I've added this method too, so when zip is not found, 7z is tried ... I didn't test it.
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------