Re: [NTG-context] Simplified input for natural tables
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? Best, Vyatcheslav
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
Am 12.03.2009 um 21:06 schrieb Aditya Mahajan:
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.
LaTeX has a package [1] to use wiki markup and it's not to hard to write a package for a small subset of markup. You can use LPeg to parse the input but it's nothing we need in the core. [1] http://www.ctan.org/pub/tex-archive/macros/latex/contrib/nicetext Wolfgang
looks nice. Aditya Mahajan wrote:
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 ___________________________________________________________________________________
participants (4)
-
Aditya Mahajan
-
Mohamed Bana
-
Vyatcheslav Yatskovsky
-
Wolfgang Schuster