On Fri, 29 Apr 2011, 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

The output file `minimal-temp-rest.tex` is just empty.

Replacing »α« by »a« solves the problem.

Weird.

Running `filtercommand` in a terminal produces the *correct* output
though and no empty file.

Is that a known problem?

No. The content of the file should not affect whether the filter is run or not. Can you add \traceexternalfilters on the top and check the output (look for lines starting with t-filter).

I also include a patch adding this example into `tests/` in [1].

Thanks. I added it to the test suite. The file works correctly on my machine. Which version of pandoc are you using? Does the error also occur if you use the dev branch from github?

  $git checkout dev
  $context tests/rest

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 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