From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48280 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Simplified input for natural tables Date: Thu, 12 Mar 2009 16:06:50 -0400 (EDT) Message-ID: References: <49B967C5.4070004@gmail.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: ger.gmane.org 1236888502 17038 80.91.229.12 (12 Mar 2009 20:08:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Mar 2009 20:08:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 12 21:09:38 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LhrDj-0002QP-2t for gctc-ntg-context-518@m.gmane.org; Thu, 12 Mar 2009 21:09:35 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B41D01FB1F; Thu, 12 Mar 2009 21:08:09 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10144-03; Thu, 12 Mar 2009 21:07:36 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 33ED91FB14; Thu, 12 Mar 2009 21:07:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 92F091FB14 for ; Thu, 12 Mar 2009 21:07:35 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14538-01-3 for ; Thu, 12 Mar 2009 21:07:28 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by ronja.ntg.nl (Postfix) with ESMTP id 2C5F41FA4C for ; Thu, 12 Mar 2009 21:07:28 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by filter1-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2CK7QQ0003012 for ; Thu, 12 Mar 2009 21:07:27 +0100 Original-Received: FROM dhcp128036150058.central.yale.edu (dhcp128036150058.central.yale.edu [128.36.150.58]) BY tombraider.mr.itd.umich.edu ID 49B96B7D.EAC16.23036 ; 12 Mar 2009 16:07:26 -0400 In-Reply-To: <49B967C5.4070004@gmail.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.93.161; 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: 192791325 - 6161b53268fc X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:48280 Archived-At: On Thu, 12 Mar 2009, Vyatcheslav Yatskovsky wrote: >> >> In the same way as Hans wrote them in his exmple. > Cool, but will it be included in context source? Or it is too early? I think that such solutions are too fragile. A robust way will be to use a complete mediawiki (or any other markup) parser. It one in lua is available, integrating it to ConTeXt will be easy. If not, we can still have an external file based route. For some time I have been thinking about a module using which I can do \definemarkup[RST][command={pandoc -r rst -w context}] \startRST Write anything here in restructured text syntax here. For example - Two syntaxes for tables_: 1. `Grid tables`_; complete, but complex and verbose:: +------------------------+------------+----------+ | Header row, column 1 | Header 2 | Header 3 | +========================+============+==========+ | body row 1, column 1 | column 2 | column 3 | +------------------------+------------+----------+ | body row 2 | Cells may span | +------------------------+-----------------------+ 2. `Simple tables`_; easy and compact, but limited:: ==================== ========== ========== Header row, column 1 Header 2 Header 3 ==================== ========== ========== body row 1, column 1 column 2 column 3 body row 2 Cells may span columns ==================== ====================== \stopRST Such a module will also provide a quick and dirty way of writing simple presentations. Any takers for writings such a module (basically just copying the R module a bit). 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________