From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72779 Path: news.gmane.org!not-for-mail From: Keith McKay Newsgroups: gmane.comp.tex.context Subject: Re: Export to epub Date: Sun, 27 Nov 2011 22:27:16 +0000 Message-ID: <4ED2B944.2080407@gmail.com> References: <4ED23520.2070103@gmail.com> <4ED24CA7.7040102@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1322432854 13845 80.91.229.12 (27 Nov 2011 22:27:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Nov 2011 22:27:34 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 27 23:27:30 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RUnC5-00019A-J5 for gctc-ntg-context-518@m.gmane.org; Sun, 27 Nov 2011 23:27:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2DC95CB04D; Sun, 27 Nov 2011 23:27:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id E9zUd1B4vSBh; Sun, 27 Nov 2011 23:27:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 54C74CB0BD; Sun, 27 Nov 2011 23:27:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 241D1CB0BD for ; Sun, 27 Nov 2011 23:27:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wqIkZD7j0C23 for ; Sun, 27 Nov 2011 23:27:21 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id DCBCCCB04D for ; Sun, 27 Nov 2011 23:27:21 +0100 (CET) Original-Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pARMRKov009217 for ; Sun, 27 Nov 2011 23:27:21 +0100 Original-Received: by wwg38 with SMTP id 38so8542404wwg.2 for ; Sun, 27 Nov 2011 14:27:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=lXHsUWl3SjozitTlJKP0duD6ES4TIFKtAGuUlGJK1ho=; b=YqWpE1olietc4XRTFp/8yIg5UDv+KEa4l8OpNDEwqoujo6KsLJuiNlKOlRE1CtpGP8 vtz90p0ThOxiTs+IxzNtPeotM36Up//7UZCukZpwZ1JKBvEhlqt8Bh3FGH/PdfVnAF42 D2KYx7Q1tyrPwSVWjVUUb2cKmvhj/9E+3y368= Original-Received: by 10.181.13.84 with SMTP id ew20mr42268512wid.58.1322432839497; Sun, 27 Nov 2011 14:27:19 -0800 (PST) Original-Received: from [192.168.0.197] (cpc1-uddi2-0-0-cust1491.uddi.cable.virginmedia.com. [82.40.13.212]) by mx.google.com with ESMTPS id es5sm36790579wbb.11.2011.11.27.14.27.17 (version=SSLv3 cipher=OTHER); Sun, 27 Nov 2011 14:27:18 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <4ED24CA7.7040102@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.45; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0cG2mrlzM - 3a2368f98230 - 20111127 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:72779 Archived-At: 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 ___________________________________________________________________________________