From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74531 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: epub Date: Thu, 16 Feb 2012 14:38:38 -0500 (EST) Message-ID: References: <48338E14-7911-49B5-A21E-0B7112485471@unibas.ch> <4E57FBC8-D440-45E6-ADA7-A152A889A6A6@unibas.ch> <832F715F-A443-4846-952A-1A397F81B83F@unibas.ch> <6DE2D0F8-C4B8-4FB3-97E2-3B1D4535CB90@unibas.ch> <1FFD39A3-2189-404B-8BCE-C875304C5D5E@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-990293026-1329421118=:32152" X-Trace: dough.gmane.org 1329421114 4242 80.91.229.3 (16 Feb 2012 19:38:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Feb 2012 19:38:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 16 20:38:27 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 1Ry79u-0007nn-Ao for gctc-ntg-context-518@m.gmane.org; Thu, 16 Feb 2012 20:38:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6FF08CB231; Thu, 16 Feb 2012 20:38:25 +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 C2SQ-EI8NVDS; Thu, 16 Feb 2012 20:38:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 39C63CB236; Thu, 16 Feb 2012 20:38:20 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 39642CB236 for ; Thu, 16 Feb 2012 20:38: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 w7zqN0efop5v for ; Thu, 16 Feb 2012 20:38:13 +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 441E1CB231 for ; Thu, 16 Feb 2012 20:38:12 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q1GJc8dO030027 for ; Thu, 16 Feb 2012 20:38:11 +0100 Original-Received: FROM LP533.ECE.McGill.CA (Mismatch [132.206.69.142]) By tombraider.mr.itd.umich.edu ID 4F3D5B1E.DE803.16484 ; Authuser adityam; 16 Feb 2012 14:38:06 EST In-Reply-To: <1FFD39A3-2189-404B-8BCE-C875304C5D5E@googlemail.com> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0LGyHC8hb - 61872847e6c6 - 20120216 (trained as not-spam) 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:74531 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-990293026-1329421118=:32152 Content-Type: TEXT/PLAIN; charset=windows-1252; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 16 Feb 2012, Wolfgang Schuster wrote: > > Am 16.02.2012 um 16:19 schrieb J=F6rg Hagmann: > >> This discussion was continued privately (my mistake). A summary: >> >> Thanks for the file, Luigi -- getting closer. Two problems left: >> >> 1. I was using Calibre. Maybe I simply don't know how to use that progra= mme. Whereas a free epub book downloaded from the net opens as it should, t= he files generated by myself and by you just show the unformatted text. Wit= h Firefox it works. >> >> 2. In Firefox: My version lacks the images; in fact, the figures showing= up in the OPS directory after the mtxrun have zero KB. But it is ok for me= to copy them there manually. > > Isn=92t the problem with context pub=92s the format of the xhtml file, wh= en I compile this example: > > \setupbackend[export=3Dyes,xhtml=3Dyes] > > \starttext > > \startparagraph > The Earth, as a habitat for animal life, is in old age and > has a fatal illness. Several, in fact. It would be happening > whether humans had ever evolved or not. But our presence is > like the effect of an old|-|age patient who smokes many packs > of cigarettes per day =96 and we humans are the cigarettes. > \stopparagraph > > \stoptext > > I get a xhtml file with the following content (I removed the comments): > > > > > The Earth, as a habitat for animal life, is in old age and ha= s a fatal illness. Several, in fact. It would be happening whether humans h= ad ever evolved or not. But our presence is like the effect of an old-age p= atient who smokes many packs of cigarettes per day =96 and we humans are th= e cigarettes. > > > but the produced epub file doesn=92t work on my ereader. After I changed = the tags of the file to this: You also need to add the appropriate css file (there is an example css=20 file in $TEXMF/tex/context/base IIRC). Any epub reader that understands=20 xml+css will be able to read the file. > > > > >

The Earth, as a habitat for animal life, is in old age and has a fa= tal illness. Several, in fact. It would be happening whether humans had eve= r evolved or not. But our presence is like the effect of an old-age patient= who smokes many packs of cigarettes per day =96 and we humans are the ciga= rettes.

> > > > I got now a epub file which renders on my ereader without problems. I do agree if the export tags were configurable. Something similar to=20 multi-lingual interface, but for output rather than input. Aditya --0-990293026-1329421118=:32152 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --0-990293026-1329421118=:32152--