From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66111 Path: news.gmane.org!not-for-mail From: Daniel Lyons Newsgroups: gmane.comp.tex.context Subject: Re: EPUB workflow from ConTeXt source? Date: Thu, 17 Feb 2011 01:10:42 -0700 Message-ID: References: <5c1f331ff85a6547e66dea7b753411e5.squirrel@mail.rna.nl> <1942D1F4-BB8E-45F8-AF12-1B73997B9F4B@gmail.com> <632BDB97-02DA-4BFB-BFB0-A5E3B0DEF96F@rna.nl> <4D5CD577.80702@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1297930284 4699 80.91.229.12 (17 Feb 2011 08:11:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Feb 2011 08:11:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 17 09:11:20 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 1PpyxM-00036K-A4 for gctc-ntg-context-518@m.gmane.org; Thu, 17 Feb 2011 09:11:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 10783CAA10; Thu, 17 Feb 2011 09:11:19 +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 0Xjec4Nc0BwI; Thu, 17 Feb 2011 09:11:04 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 01BFBCA9F0; Thu, 17 Feb 2011 09:11:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D10DDCA9F0 for ; Thu, 17 Feb 2011 09:11:02 +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 OmbXKvPoqU40 for ; Thu, 17 Feb 2011 09:10:48 +0100 (CET) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by balder.ntg.nl (Postfix) with ESMTP id D118DCA977 for ; Thu, 17 Feb 2011 09:10:48 +0100 (CET) Original-Received: from mail.clanspum.net (twopir-2-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:1b9::2]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1H8AiJg017507 for ; Thu, 17 Feb 2011 09:10:47 +0100 Original-Received: from [192.168.2.5] (174-28-182-20.albq.qwest.net [174.28.182.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.clanspum.net (Postfix) with ESMTPSA id 5101F17C2CF for ; Thu, 17 Feb 2011 02:12:10 -0600 (CST) In-Reply-To: <4D5CD577.80702@wxs.nl> X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: No geolocation information available for 2001:470:1f10:1b9::2 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04E8UaJvO - 306c4ed9b9aa - 20110217 X-Scanned-By: CanIt (www . roaringpenguin . com) on IPv6:2001:610:0:800e:195:169:124:155 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:66111 Archived-At: On Feb 17, 2011, at 12:59 AM, Hans Hagen wrote: > On 17-2-2011 8:14, Gerben Wierda wrote: >> On 16 Feb 2011, at 17:47, Wolfgang Schuster wrote: >> = >>> = >>> Am 16.02.2011 um 17:42 schrieb Gerben.Wierda@rna.nl: >>> = >>>> I'd like to keep working in one format so I was wondering if there is a >>>> ConTeXt based workflow/setup that can produce EPUB (next to normal PDF= )? >>> = >>> With MkIV you can get a xml version of document with \setupbackend[expo= rt=3Dyes]. >> = >> But that XML is not ePUB's XML, I assume. > = > no, but one can of course convert one kind of xml into another > = > for epub one has to provice css etc anyway (and epub is not much more tha= n packaged html + css) This would also be useful to me. In my experience, the unpleasant part of g= enerating ePub is making correctly formatted manifests and putting them in = the right places inside the right kinds of zip files. If ConTeXt could do t= his for me, it would certainly make life easier. On the other hand, it may = not be appropriate to bother because there are other tools that will conver= t HTML to ePub for you and make the manifests (Calibre, for example). = I consider CSS intractable so that's not something I would worry about ConT= eXt generating for me, if it were on the table. > going the other way around, processing an epub file also demands some han= dywork as the source code is not by definition well structured ePub is definitely structured. I would say too structured, since it makes y= ou provide both a ToC manifest and a navigation manifest that necessarily m= ust include almost identical information ;) Of course, depending on a simpl= ified browser for your document viewing and having lots of secret failover = modes to handle poorly formatted documents makes the structure less meaning= ful than it ought to be. You are free to break your document into as many HTML chunks as you wish, b= ut you are limited to fairly prosaic HTML and CSS. I'm of the impression th= e HTML documents generally map onto chapters so as not to distress the hard= ware's memory constraints too much. Overall, ePub and Kindle's format strike me as too much and too little resp= ectively. I should be able to change the font and the formatting, but I def= initely consider HTML + CSS is too much complexity. =97 = Daniel Lyons ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________