From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74532 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: epub Date: Thu, 16 Feb 2012 21:08:13 +0100 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 (Apple Message framework v1257) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1329422925 19083 80.91.229.3 (16 Feb 2012 20:08:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Feb 2012 20:08:45 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 16 21:08:40 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 1Ry7d9-0001g5-RS for gctc-ntg-context-518@m.gmane.org; Thu, 16 Feb 2012 21:08:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0F991CB231; Thu, 16 Feb 2012 21:08:39 +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 QZOnTE2-40Bb; Thu, 16 Feb 2012 21:08:32 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B59EBCB213; Thu, 16 Feb 2012 21:08:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8A290CB213 for ; Thu, 16 Feb 2012 21:08:31 +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 sypls98tPGWh for ; Thu, 16 Feb 2012 21:08:18 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id A08BCCB208 for ; Thu, 16 Feb 2012 21:08:18 +0100 (CET) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q1GK8GL2017638 for ; Thu, 16 Feb 2012 21:08:17 +0100 Original-Received: by eekc13 with SMTP id c13so1270401eek.14 for ; Thu, 16 Feb 2012 12:08:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=NDXwxS+MX7ZWbA/C2eFvdsRX3SpJrKfkAdlUDFfTK4g=; b=aTmu0OYzkxo+FHwgOSsr0gTyHwzqYWW6MBbOL+ZiT5AEQ/lzqQqSOdzPZBhGYYIaG7 f466tMIcL+TsKcyz86Ze2Y50WUZuNgV5N8OLVC7Gf62BByxnYnuaTZzbepkoYW+z+5D3 ra8+hljkHRrkkUzZp7h9fAR1geT4xZLGI3vBg= Original-Received: by 10.14.127.195 with SMTP id d43mr2291986eei.102.1329422896683; Thu, 16 Feb 2012 12:08:16 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFBD55.dip.t-dialin.net. [87.175.189.85]) by mx.google.com with ESMTPS id a58sm28205066eeb.8.2012.02.16.12.08.14 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Feb 2012 12:08:15 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1257) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03GyI8gv6 - e02ea67c8d4c - 20120216 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:74532 Archived-At: Am 16.02.2012 um 20:38 schrieb Aditya Mahajan: > 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 progr= amme. Whereas a free epub book downloaded from the net opens as it should, = the files generated by myself and by you just show the unformatted text. Wi= th Firefox it works. >>> = >>> 2. In Firefox: My version lacks the images; in fact, the figures showin= g up in the OPS directory after the mtxrun have zero KB. But it is ok for m= e to copy them there manually. >> = >> Isn=92t the problem with context pub=92s the format of the xhtml file, w= hen 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 fi= le in $TEXMF/tex/context/base IIRC). Any epub reader that understands xml+c= ss will be able to read the file. I know the example file but I forgot to add it. >> >> = >> >> >>

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 mul= ti-lingual interface, but for output rather than input. You mean like labeltexts :) Wolfgang ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________