From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87970 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt epub workflow Date: Wed, 2 Jul 2014 23:42:22 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1450921095-1404358966=:2629" X-Trace: ger.gmane.org 1404358993 32548 80.91.229.3 (3 Jul 2014 03:43:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2014 03:43:13 +0000 (UTC) Cc: ntg-context@ntg.nl To: =?ISO-8859-6?Q?Idris_Samawi_Hamid_=C7=CF=D1=EA=D3___=D3=E5=C7=E8=EA_=CD=C7=E5=CF?= Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 03 05:43:09 2014 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 1X2XvP-0005lZ-CH for gctc-ntg-context-518@m.gmane.org; Thu, 03 Jul 2014 05:43:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C00EC10280 for ; Thu, 3 Jul 2014 05:43:06 +0200 (CEST) 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 xaAG1odyQsys for ; Thu, 3 Jul 2014 05:43:06 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 59ABA10223 for ; Thu, 3 Jul 2014 05:42:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1940C101E7 for ; Thu, 3 Jul 2014 05:42:56 +0200 (CEST) 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 t3CISjani4-j for ; Thu, 3 Jul 2014 05:42:53 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 67659101E6 for ; Thu, 3 Jul 2014 05:42:48 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s633gi0B014448 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 3 Jul 2014 05:42:47 +0200 Original-Received: FROM adi-netbook (cpe-76-93-212-87.hawaii.res.rr.com [76.93.212.87]) By tombraider.mr.itd.umich.edu ID 53B4D131.B80DA.2453 ; Authuser adityam; 2 Jul 2014 23:42:42 EDT In-Reply-To: User-Agent: Alpine 2.03 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=Michigan; city=Ann Arbor; latitude=42.2734; longitude=-83.7133; http://maps.google.com/maps?q=42.2734,-83.7133&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TMlDGKmV - 27ccc13909e0 - 20140703 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:87970 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. --8323328-1450921095-1404358966=:2629 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 2 Jul 2014, Idris Samawi Hamid =D8=A7=D8=AF=D8=B1=D9=8A=D8=B3 =D8= =B3=D9=85=D8=A7=D9=88=D9=8A =D8=AD=D8=A7=D9=85=D8=AF wrote: > Dear gang, > > I have an urgent project that needs three outputs: pdf, epub, and kindle.= The=20 > formatting needs are pretty basic. In your experience: > > What is the recommended, more efficient workflow for this sort of thing?= =20 > Should I start with markdown and then generate context and epub (then con= vert=20 > epub=3D>kindle I presume)? Or does one context file with pdf and epub out= puts=20 > work well? If you are short on time and your formatting needs are basic, I would=20 suggest that you start with markdown as your input format and use pandoc=20 to convert it to epub and context. There are various tools to do epub to=20 kindle conversion. Markdown in a very primitive input format. For anything non-trivial=20 (multiple types of floats, multiple types of emphasis, etc.) you have to=20 resort to some sort of pre-processing of input. Pandoc is the only tool that does Markdown to ConTeXt conversion. There=20 are more tools for Markdown to LaTeX conversion. The ConTeXt markup=20 generated by pandoc is not ideal (\bf, \em, etc instead of semantic=20 markup); it is possible to change the output, but you need to learn how to= =20 program in Haskell. You can start with ConTeXt and generate epub. However, ConTeXt generates=20 XML+CSS rather than "pure" XHTML. Most browsers can handle XML+CSS, but=20 most (all?) epub readers cannot. So, the output is not usable without some= =20 post-processing (this might have changed, I haven't tested ConTeXt epub in= =20 a year or so). In the long run, I think that the "easiest" way to generate multiple=20 output formats for non-trivial input text is to use XML as your input=20 format. Aditya --8323328-1450921095-1404358966=:2629 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 ___________________________________________________________________________________ --8323328-1450921095-1404358966=:2629--