From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76834 Path: news.gmane.org!not-for-mail From: Andy Thomas Newsgroups: gmane.comp.tex.context Subject: Re: back-up.lua; mtx-epub.lua Date: Sat, 9 Jun 2012 14:58:13 +0200 Message-ID: <011C0647-9AC3-482C-92A5-8B692346FF8E@web.de> 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> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1339246705 21888 80.91.229.3 (9 Jun 2012 12:58:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 9 Jun 2012 12:58:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 09 14:58:24 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 1SdLFG-0004wB-Rg for gctc-ntg-context-518@m.gmane.org; Sat, 09 Jun 2012 14:58:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7A7A0101DD; Sat, 9 Jun 2012 14:58:20 +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 pIZXc4AIlg-A; Sat, 9 Jun 2012 14:58:19 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E3410101DF; Sat, 9 Jun 2012 14:58:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 340C5101DF for ; Sat, 9 Jun 2012 14:58:17 +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 HPS2NV8wKjLr for ; Sat, 9 Jun 2012 14:58:15 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 73161101DD for ; Sat, 9 Jun 2012 14:58:15 +0200 (CEST) Original-Received: from mout.web.de (mout.web.de [212.227.17.11]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q59CwEol028373 for ; Sat, 9 Jun 2012 14:58:14 +0200 Original-Received: from [10.0.1.2] ([78.94.219.187]) by smtp.web.de (mrweb101) with ESMTPS (Nemesis) id 0MGzjq-1ShFFn4ATa-00ECgK for ; Sat, 09 Jun 2012 14:58:14 +0200 In-Reply-To: <4FD28B39.9030401@wxs.nl> X-Mailer: Apple Mail (2.1257) X-Provags-ID: V02:K0:CoDdYt7S3WCszleLKx5uVhr6yKsIo4lyOUmClhsVif8 FE72EIt8XedDRWUnfVBvJUispPGnCzKdQOhh3ju3YB8rtxyNSl 2TzKDp6K7Gt9qzHnAchvzFSfpKijHjs0VcL4eB1BhCeb8JjfQa Q2xzwIG4uxwuZ8AJGLmrc/3g4FGqKDr62lP51gIGe9tiNKD7BF Dq85Dxv78koR9I49Q+16w== X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.227.17.11; country=DE; region=02; city=Munich; latitude=48.1500; longitude=11.5833; http://maps.google.com/maps?q=48.1500,11.5833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0THkcWeNz - fcdabeaee04f - 20120609 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:76834 Archived-At: 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? 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 P.S. I have no clue, why 'images[firstpage] = firstpage' works. I would expect 'images[#images+1] = firstpage' > 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 ___________________________________________________________________________________