From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76862 Path: news.gmane.org!not-for-mail From: Andy Thomas Newsgroups: gmane.comp.tex.context Subject: Re: back-up.lua; mtx-epub.lua Date: Mon, 11 Jun 2012 07:41:21 +0200 Message-ID: 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> <4FD51DD9.2010406@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 1339393296 18238 80.91.229.3 (11 Jun 2012 05:41:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Jun 2012 05:41:36 +0000 (UTC) Cc: Hans Hagen To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 11 07:41:32 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 1SdxNc-00041r-OR for gctc-ntg-context-518@m.gmane.org; Mon, 11 Jun 2012 07:41:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8078A101E6; Mon, 11 Jun 2012 07:41: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 q3lKWqLp+DZp; Mon, 11 Jun 2012 07:41:30 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0127A101E2; Mon, 11 Jun 2012 07:41:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4621A101E2 for ; Mon, 11 Jun 2012 07:41:28 +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 BBHboEIX5Wpq for ; Mon, 11 Jun 2012 07:41:26 +0200 (CEST) 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 BD18E101DF for ; Mon, 11 Jun 2012 07:41:26 +0200 (CEST) Original-Received: from mout.web.de (mout.web.de [212.227.17.11]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q5B5fPuN018121 for ; Mon, 11 Jun 2012 07:41:26 +0200 Original-Received: from [10.0.1.2] ([78.94.219.187]) by smtp.web.de (mrweb103) with ESMTPS (Nemesis) id 0Lpf3q-1RzggN2kze-00fWnN; Mon, 11 Jun 2012 07:41:25 +0200 In-Reply-To: <4FD51DD9.2010406@wxs.nl> X-Mailer: Apple Mail (2.1257) X-Provags-ID: V02:K0:NHKurtIai1XARyMJOO256v0sNanph+9SneDd1712N6f pVOVmiAnCMFv7JHPFeQK4CLg+x6xP1jebyzGW20fhuTElwH149 1nqOLtPVyuG8yMIlkB6/V0RnyWff5zH+iu2iTL/fxO1YGVkGzI /yXZuYXsVxs17HSioA41VCvNQjigOEwR/h/Tov0YFgKPTAKpbI 7BaE1IwW1srngZtxIqgug== 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: 03HkRFqV2 - 2ef9a2c5722e - 20120611 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:76862 Archived-At: On Jun 11, 2012, at 12:21 AM, Hans Hagen wrote: >> 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) I get an error by the epub validator if I feed it the generated epub. The content file is: -START------------ Hello world! -END------------ the error is: -START------------ Epubcheck Version 3.0b5 Validating against EPUB version 2.0 ERROR: test_00.epub/OEBPS/test_00.xhtml(9,202): elements from namespace "" are not allowed Check finished with warnings or errors -END------------ A possible validatable file would be -START------------ TITLE
Hello world!
-END------------ It just wraps the filename without extension in title plus head and the main part in body plus a div. However, I did not try, yet, how many or which devices can read it just fine. > >> 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 I slavishly follow the mandatory epub specification and then add some things to make common devices work. Calibre, Adobe Digital Editions and Apple devices want a xhtml cover page in a very special way and ignore the cover image otherwise. The next thing I would add is a toc.xhtml. Here, a Kindle ignores the toc.ncx and wants a html toc as well. Unfortunately, this blows up mtx-epub, but at least that is the last issue with reading devices that I know. Andy ___________________________________________________________________________________ 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 ___________________________________________________________________________________