From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85276 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: EPUB woes Date: Sat, 16 Nov 2013 17:07:29 +0100 Message-ID: <51B58E0D-0EE6-49C7-A397-F494BDF49BC3@gmail.com> References: <52878C67.90007@meahan.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1384618054 18689 80.91.229.3 (16 Nov 2013 16:07:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Nov 2013 16:07:34 +0000 (UTC) To: lists@meahan.net, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 16 17:07:41 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VhiPM-0003K7-Op for gctc-ntg-context-518@m.gmane.org; Sat, 16 Nov 2013 17:07:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EE0DE101E6; Sat, 16 Nov 2013 17:07: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 ur9f1AgssTK0; Sat, 16 Nov 2013 17:07:38 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 79FD7101FA; Sat, 16 Nov 2013 17:07:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8FE70101FA for ; Sat, 16 Nov 2013 17:07:37 +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 Z1Qvpedsgs9y for ; Sat, 16 Nov 2013 17:07:35 +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 CF5BC101E6 for ; Sat, 16 Nov 2013 17:07:35 +0100 (CET) Original-Received: from mail-bk0-x231.google.com (mail-bk0-x231.google.com [IPv6:2a00:1450:4008:c01::231]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAGGEeI4028882 for ; Sat, 16 Nov 2013 17:14:40 +0100 Original-Received: by mail-bk0-f49.google.com with SMTP id my13so55984bkb.8 for ; Sat, 16 Nov 2013 08:07:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=MmdQvcNZLnFhVphEiq9ftPQ8iuQPqfy6b52CU7kkizE=; b=JL9Y8vSzpdw9KtfUk/1e7bqYmZDqoMl+tKY8PeNhCJ+B/6KUTjIyabxUF3jzNQmd1A gA/c0LQ2qGDv6o9KpTkgc1c7/ISGrrtQT5hBi861IyAuoGchSZw+uC/hTHvxfEmOd1U6 61OvbcWMhOiiyQI0ncwzpVJ2UYqEd8EjzzefEgh0vmNqXaNjtVIprDjSDwmLG+vf8PJe X8+hu+kjv+7PEyuagJ9/suwUqRbRmlDpSFAVJp7jN2k7KOb/HzoW4BZVJnSDiH9BNTnu RxtpK64h3D/14pvbEkTjczMSPtO1BwPVSu4JREwuxqzCAxhaBepV8vljP328vTXm9AyZ mYNw== X-Received: by 10.205.22.71 with SMTP id qv7mr6860575bkb.20.1384618055015; Sat, 16 Nov 2013 08:07:35 -0800 (PST) Original-Received: from keima.localdomain (x2f23af5.dyn.telefonica.de. [2.242.58.245]) by mx.google.com with ESMTPSA id pn6sm10643310bkb.14.2013.11.16.08.07.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 16 Nov 2013 08:07:33 -0800 (PST) In-Reply-To: <52878C67.90007@meahan.net> X-Mailer: Apple Mail (2.1822) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::231; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01KOgeEhs - 53f809c423a6 - 20131116 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85276 Archived-At: Am 16.11.2013 um 16:16 schrieb Bill Meahan : > I have been trying for a very long time to generate an epub document via context without success. > > I have followed the steps on the wiki to the letter, using the export-example file provided with the standalone distribution. A PDF generated from the file is exactly what I would expect from an example. The generated epub, however, is useless - all the text is jammed together into one continuous block with no formatting whatsoever. > > Adobe Digital Editions 2.0 crashes trying to open it. Sumatra and Sigil get it open but the results are as described above. Obviously I am missing a step or doing something wrong but I cannot see what. > > Context Standalone from a couple of days ago. Windows 7-64 (Home Premium) but I got the same results several months ago on a Linux system so I do not think it is OS-related. When you use the export option context creates a xml file from your document. When you call not the epub script context creates epub file which contains this xml file which uses a custom format and not xhtml as you would expect. To get a epub file which can be used with most reader (a few programs on windows/mac/linux can read contexts output) you have to convert context xml file into valid xhtml. What you have to do as well in your document to get proper tagged paragraphs is to add \startparagraph and \stopparagraph at the begin and end of each paragraph, otherwise context adds AFAIR
between them. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________