On 2011-04-29 <23:09:42>, Paul Menzel wrote:
> Dear ConTeXt folks,
> 
> 
> the filter module installed using
> 
>       $ ./first-setup.sh --extras="t-filter"
> 
> does not work with the following example, which is also attached.
> 
>         \usemodule[filter]
>         \defineexternalfilter[rest][filtercommand={pandoc -f rst -t context 
> -o \externalfilteroutputfile\space \externalfilterinputfile}]
>         \starttext
>         There should be a table here.
>         \startrest
>         =========     =========
>           test            table
>         =========     =========
>         α                 b
>         c                 d
>         ========      ========
>         \stoprest
>         \stoptext

Hi Paul,

this should now work ootb as inline code with the reST module[1].
(There was some catcode inconsistency concerning spaces that I
just wiped out.) Usage example appended.

Best regards
Philipp

[1] https://bitbucket.org/phg/context-rst



> 
> The output file `minimal-temp-rest.tex` is just empty.
> 
> Replacing »α« by »a« solves the problem.
> 
> Running `filtercommand` in a terminal produces the *correct* output
> though and no empty file.
> 
> Is that a known problem?
> 
> I also include a patch adding this example into `tests/` in [1].
> 
> 
> Thanks,
> 
> Paul
> 
> 
> [1] https://github.com/adityam/filter

> \usemodule[filter]
> \defineexternalfilter[rest][filtercommand={pandoc -f rst -t context -o 
> \externalfilteroutputfile\space \externalfilterinputfile}]
> \starttext
> There should be a table here.
> \startrest
> =========     =========
>   test                        table
> =========     =========
> α                                             b
> c                                             d
> ========      ========
> \stoprest
> \stoptext




> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments
\usemodule[rst]
\setupTABLE[column][1][background=color,backgroundcolor=gray:2]
\starttext
There will be a table here.
\startRST
=========       =========
  test            table
=========       =========
α                 b
c                 d
=========       =========
\stopRST
\stoptext

Attachment: pgpamZrdblQbU.pgp
Description: PGP signature

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to