From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63297 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: context export Date: Sun, 7 Nov 2010 16:05:42 -0500 (EST) Message-ID: References: <20101107193412.7ae57ee0@arcor.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1289163969 22187 80.91.229.12 (7 Nov 2010 21:06:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 7 Nov 2010 21:06:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 07 22:06:05 2010 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 1PFCRA-0004xj-J9 for gctc-ntg-context-518@m.gmane.org; Sun, 07 Nov 2010 22:06:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6EF52CA827; Sun, 7 Nov 2010 22:06:03 +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 2KTVbLHL6Szv; Sun, 7 Nov 2010 22:06:03 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 60E5ECA81F; Sun, 7 Nov 2010 22:06:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 32CC6CA81F for ; Sun, 7 Nov 2010 22:05:59 +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 lAQysGFxtkNR for ; Sun, 7 Nov 2010 22:05:46 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 9E1D1CA81B for ; Sun, 7 Nov 2010 22:05:46 +0100 (CET) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oA7L5hs6006871 for ; Sun, 7 Nov 2010 22:05:45 +0100 Original-Received: FROM adi-netbook (bas3-montreal02-1096680238.dsl.bell.ca [65.94.3.46]) By hellskitchen.mr.itd.umich.edu ID 4CD714A6.DA130.20371 ; Authuser adityam; 7 Nov 2010 16:05:42 EST In-Reply-To: <20101107193412.7ae57ee0@arcor.com> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; 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: 0eDsl5IoM - b56f8c254b44 - 20101107 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:63297 Archived-At: On Sun, 7 Nov 2010, Manfred Lotz wrote: > Hi Hans, > > On Sun, 07 Nov 2010 16:23:37 +0100 > Hans Hagen wrote: > >> Hi Manfred, >> >> some reading ... it should not be to hard to map the xml onto >> html ... relevant details are in attributes >> > > Hmm, but I would need to have a dtd or schema file in order write a > transformation (xslt or so) to html. No. I think that Hans meant that you should be able to generate an html document directly out of context (instead of the xml document that is currently generated). > The other possibility would be to make the html creation an iterative > process along the creation of the context document. I'd would prefer > the first possibility, though. Another possibility is to just write html (rather xhtml) and process it directly in ConTeXt. See the XML manual and Thomas's MyWay on processing XHML. > Instead of using xslt I also could code the transformation in Lua. What > xml lib do you recommend to use in Lua? I don't know about the lua librarties. > Currently, I have no time to code the xml --> htmp conversion. In the long run, if you want multiple formats for a document that is slightly complicated, translating the input to xml is the easiest solution. > However, considering above ideas I could start with markdown as > discussed in the other thread which has limitations but gives me a > context source for free as a starting point. You can also consider richer ascii markups: rst and asciidoc. Unfortunately, pandoc only has partial support for rst, and the default tools for rst and asciidoc do not export to context. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________