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.

Thanks
Keith

On 27/11/2011 14:43, Hans Hagen wrote:
On 27-11-2011 14:03, Keith McKay wrote:
Hi

I've been playing about with Export in Context with a view to producing
ePubs.

When I run the script:

/mtxrun --script epub --make test.specification

/the test.tree is prepared but no epub file. The output shown below has
a couple or 'error' messages which are probably due to the way my text
editor is set up (Scite Version 2.02). If anyone is using Scite and
producing ePubs I be grateful for some hints on how to set this up so
that inkscape and zip works.

This is unrelated to scite (btw, you run a pretty old scite).

%%Script Output

mtx-epub | creating paths in tree test.tree
mtx-epub | copying toc.ncx to test.tree/OPS/toc.ncx
mtx-epub | copying test-styles.css to test.tree/OPS/test-styles.css
mtx-epub | copying test-images.css to test.tree/OPS/test-images.css
mtx-epub | copying test.css to test.tree/OPS/test.css
mtx-epub | copying test.xhtml to test.tree/OPS/test.xhtml
mtx-epub | running command 'inkscape --export-plain-svg=cow.svg cow.pdf'

'inkscape' is not recognized as an internal or external command,
operable program or batch file.
'zip' is not recognized as an internal or external command,
operable program or batch file.

you need to install inkscape (just google for it) as well as zip (often part of gnu binutils)

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
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to