From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76861 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: back-up.lua; mtx-epub.lua Date: Mon, 11 Jun 2012 00:21:13 +0200 Message-ID: <4FD51DD9.2010406@wxs.nl> References: <8E68CF1E-5817-4F6C-B768-3EB03D02F3AE@web.de> <358F662E-23CF-4959-B28E-6DFD9401A11B@fiee.net> <4FD268BC.7070609@wxs.nl> <8EC49686-C7B3-47A1-A646-17AEC310836C@web.de> <4FD28B39.9030401@wxs.nl> <011C0647-9AC3-482C-92A5-8B692346FF8E@web.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1339366897 319 80.91.229.3 (10 Jun 2012 22:21:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 10 Jun 2012 22:21:37 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 11 00:21:36 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SdqVr-0005y9-PO for gctc-ntg-context-518@m.gmane.org; Mon, 11 Jun 2012 00:21:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7CADE101EB; Mon, 11 Jun 2012 00:21:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pORxRtgZhVg8; Mon, 11 Jun 2012 00:21:33 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 98CC6101DF; Mon, 11 Jun 2012 00:21:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5028A101DF for ; Mon, 11 Jun 2012 00:21:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WENYan7S2JXH for ; Mon, 11 Jun 2012 00:21:29 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 148D3101DD for ; Mon, 11 Jun 2012 00:21:28 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q5AMLR9q014578 for ; Mon, 11 Jun 2012 00:21:28 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 5.3h2) with ESMTP (TLS) id 5879-1713362 for multiple; Mon, 11 Jun 2012 00:21:24 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20120604 Thunderbird/13.0 In-Reply-To: <011C0647-9AC3-482C-92A5-8B692346FF8E@web.de> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=03; city=Hattem; latitude=52.4724; longitude=6.0696; http://maps.google.com/maps?q=52.4724,6.0696&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0dHkKlrMH - d63df6f59831 - 20120611 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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:76861 Archived-At: On 9-6-2012 14:58, Andy Thomas wrote: > > On Jun 9, 2012, at 1:31 AM, Hans Hagen wrote: > >> On 8-6-2012 23:28, Andy Thomas wrote: >>> Thank you for the suggestions. I will try to implement it, but might need until Sunday. >> >> - I've added some keys to \setupexport: >> >> author >> title >> subtitle >> firstpage (also new key in mult) >> lastpage (aso new key in mult) >> >> - The title, subtitle and author inherit from \setupinteraction which already inherits from \setupdocument (metadata namespace). >> >> - In mtx-epub these variables are picked up (from the epub job specification) and firstpage / lastpage are added to the images list. >> >> Nothing has been checked and the firstpage/lastpage image names have to be pushed into some epub metadata blob I guess but that's for you to figure out in mtx-epub. It's probably best to assume that the images are present and suitable for epub. >> > > I took the new keys and added the cover (page) generator to mtx-epub.lua. The name is hard coded (cover.xhtml), so if a user decides on naming the original file cover.tex... > > The validator likes it, next is the hard part: generating a valid xhtml. Is the xhtml generator only for the epub, i.e. can it be changed or is another output file just for the epub appropriate? the only issue is that css has no method for mapping a link which is why the exporter produces two files (xml and xhtml) > Calibre is already happy with it and shows it just fine. Please note that some ebook readers (e.g. apple devices, calibre) have a nasty caching mechanism. If you want to see the new changes, I found that it is best to delete the old book before replacing it. > > Andy > > https://dl.dropbox.com/u/9089117/mtx-epub_4.lua xmlns + doctype is probably a bit over the top for the coverpage > P.S. I have no clue, why 'images[firstpage] = firstpage' works. I would expect 'images[#images+1] = firstpage' it's a hash mapping names onto real names (as we can have converted images) 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 ___________________________________________________________________________________