* t-filter: no table created when Unicode characters are included @ 2011-04-29 21:09 Paul Menzel 2011-04-29 21:17 ` [t-filter] [PATCH] tests: add test file for reST (reStructuredText) Paul Menzel ` (2 more replies) 0 siblings, 3 replies; 23+ messages in thread From: Paul Menzel @ 2011-04-29 21:09 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1.1: Type: text/plain, Size: 1000 bytes --] 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. 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 [-- Attachment #1.1.2: minimal.tex --] [-- Type: text/x-tex, Size: 326 bytes --] \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 [-- Attachment #1.2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 198 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* [t-filter] [PATCH] tests: add test file for reST (reStructuredText) 2011-04-29 21:09 t-filter: no table created when Unicode characters are included Paul Menzel @ 2011-04-29 21:17 ` Paul Menzel 2011-04-29 22:13 ` t-filter: no table created when Unicode characters are included Aditya Mahajan 2011-04-30 21:00 ` t-filter: no table created when Unicode characters are included Philipp Gesang 2 siblings, 0 replies; 23+ messages in thread From: Paul Menzel @ 2011-04-29 21:17 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1: Type: text/plain, Size: 812 bytes --] Date: Fri, 29 Apr 2011 23:03:04 +0200 • This file includes Unicode characters. Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> --- tests/rest.tex | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) create mode 100644 tests/rest.tex diff --git a/tests/rest.tex b/tests/rest.tex new file mode 100644 index 0000000..8ec2f52 --- /dev/null +++ b/tests/rest.tex @@ -0,0 +1,13 @@ +\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 -- 1.7.4.4 [-- Attachment #1.2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 198 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: t-filter: no table created when Unicode characters are included 2011-04-29 21:09 t-filter: no table created when Unicode characters are included Paul Menzel 2011-04-29 21:17 ` [t-filter] [PATCH] tests: add test file for reST (reStructuredText) Paul Menzel @ 2011-04-29 22:13 ` Aditya Mahajan 2011-04-30 7:37 ` Paul Menzel 2011-04-30 21:00 ` t-filter: no table created when Unicode characters are included Philipp Gesang 2 siblings, 1 reply; 23+ messages in thread From: Aditya Mahajan @ 2011-04-29 22:13 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: TEXT/PLAIN, Size: 1471 bytes --] 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 [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: t-filter: no table created when Unicode characters are included 2011-04-29 22:13 ` t-filter: no table created when Unicode characters are included Aditya Mahajan @ 2011-04-30 7:37 ` Paul Menzel 2011-04-30 15:10 ` Aditya Mahajan 0 siblings, 1 reply; 23+ messages in thread From: Paul Menzel @ 2011-04-30 7:37 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1.1: Type: text/plain, Size: 5533 bytes --] Am Freitag, den 29.04.2011, 18:13 -0400 schrieb Aditya Mahajan: > On Fri, 29 Apr 2011, Paul Menzel wrote: > > 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). You already added it in your commit of the test file. […] resolvers > modules > loaded: 'filter' (t-filter.tex loading > ConTeXt User Module / Filter resolvers > modules > loaded: 'module-catcodes' (t-module-catcodes.tex loading > ConTeXt User Module / Module Catcodes )) (/opt/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/opt/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-tx.map}{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fonts > virtual math > the mapping is incomplete for 'txmath' at 7pt system > begin file tests/rest at line 11 t-filter > current filter : rest t-filter > base file : rest-temp-rest t-filter > input file : rest-temp-rest.tmp t-filter > output file : rest-temp-rest.tex t-filter > command : pandoc -f rst -t context -o rest-temp-rest.tex rest-temp-rest.tmp (rest-temp-rest.tex) backend > xmp > using file '/opt/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 system > end file tests/rest at line 21 )</opt/context/tex/texmf/fonts/opentype/public/tex-gyre/texgyretermes-regular.otf> […] $ more rest-temp-rest.t* :::::::::::::: rest-temp-rest.tex :::::::::::::: :::::::::::::: rest-temp-rest.tmp :::::::::::::: ========= ========= test table ========= ========= α b c d ======== ======== Please find `rest.log` attached. > > I also include a patch adding this example into `tests/` in [1]. > > Thanks. I added it to the test suite. You can save the mbox file and use `git am path/to/mbox` next time. > The file works correctly on my machine. That is weired. > Which version of pandoc are you using? $ pandoc --version pandoc 1.5.1.1 Compiled with syntax highlighting support for: Ada, Alert, Asp, Awk, Bash, Bibtex, C, Cmake, Coldfusion, Commonlisp, Cpp, Css, D, Djangotemplate, Doxygen, Dtd, Eiffel, Erlang, Fortran, Haskell, Html, Java, Javadoc, Javascript, Json, Latex, Lex, LiterateHaskell, Lua, Makefile, Matlab, Mediawiki, Modula3, Nasm, Objectivec, Ocaml, Octave, Pascal, Perl, Php, Postscript, Prolog, Python, Relaxngcompact, Rhtml, Ruby, Scala, Scheme, Sgml, Sql, SqlMysql, SqlPostgresql, Tcl, Texinfo, Xml, Xslt, Yacc Copyright (C) 2006-2010 John MacFarlane Web: http://johnmacfarlane.net/pandoc This is free software; see the source for copying conditions. There is no warranty, not even for merchantability or fitness for a particular purpose. As already written in my last mail. Executing the command directly works fine. $ pandoc -f rst -t context -o rest-temp-rest.tex rest-temp-rest.tmp $ more rest-temp-rest.t*:::::::::::::: rest-temp-rest.tex :::::::::::::: \placetable[here]{none} \starttable[|l|l|] \HL \NC test \NC table \NC\AR \HL \NC α \NC b \NC\AR \NC c \NC d \NC\AR \HL \stoptable :::::::::::::: rest-temp-rest.tmp :::::::::::::: ========= ========= test table ========= ========= α b c d ======== ======== > Does the error also occur if you use the dev branch from github? Yes. > $git checkout dev > $context tests/rest For the Git newbies. If you do this the first time, you need to do $ git checkout -b dev origin/dev beforehand. Thanks, Paul [-- Attachment #1.1.2: rest.log --] [-- Type: text/x-log, Size: 4931 bytes --] (tests/rest.tex ConTeXt ver: 2011.04.27 21:50 MKIV fmt: 2011.4.29 int: english/english system > cont-new.mkiv loaded (/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > rest.top loaded system > options > begin of optionfile system > options > system > options > % runtime options files (command line driven) system > options > \unprotect system > options > % feedback and basic job control system > options > % handy for special styles system > options > \startluacode system > options > document = document or { } system > options > document.arguments={ system > options > } system > options > document.files={ system > options > "tests/rest", system > options > } system > options > \stopluacode system > options > % process info system > options > \setupsystem[inputfile=tests/rest] system > options > \setupsystem[\c!n=2,\c!m=3] system > options > % modes system > options > % options (not that important) system > options > \startsetups *runtime:options system > options > \stopsetups system > options > % styles and modules system > options > \startsetups *runtime:modules system > options > \stopsetups system > options > % done system > options > \protect \endinput system > options > system > options > end of optionfile (rest.top) fonts > latin modern fonts are not preloaded languages > language en is active resolvers > modules > loaded: 'filter' (t-filter.tex loading > ConTeXt User Module / Filter resolvers > modules > loaded: 'module-catcodes' (t-module-catcodes.tex loading > ConTeXt User Module / Module Catcodes )) (/opt/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/opt/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-tx.map}{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fonts > virtual math > the mapping is incomplete for 'txmath' at 7pt system > begin file tests/rest at line 11 t-filter > current filter : rest t-filter > base file : rest-temp-rest t-filter > input file : rest-temp-rest.tmp t-filter > output file : rest-temp-rest.tex t-filter > command : pandoc -f rst -t context -o rest-temp-rest.tex rest-temp-rest.tmp (rest-temp-rest.tex) backend > xmp > using file '/opt/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 system > end file tests/rest at line 21 )</opt/context/tex/texmf/fonts/opentype/public/tex-gyre/texgyretermes-regular.otf> mkiv lua stats > used config file - selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path - /opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats > input load time - 0.010 seconds mkiv lua stats > stored bytecode data - 284 modules, 58 tables, 342 chunks mkiv lua stats > loaded tex modules - 2 requested, 2 found (*-filter *-module-catcodes), 0 missing mkiv lua stats > cleaned up reserved nodes - 33 nodes, 9 lists of 423 mkiv lua stats > node memory usage - 19 glue_spec mkiv lua stats > node list callback tasks - 6 unique task lists, 5 instances (re)created, 2397 calls mkiv lua stats > used backend - pdf (backend for directly generating pdf output) mkiv lua stats > loaded patterns - en::2 mkiv lua stats > callbacks - 2529 direct, 3469 indirect, 5998 total mkiv lua stats > randomizer - resumed with value 0.81004799567631 mkiv lua stats > lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls mkiv lua stats > result saved in file - rest.pdf mkiv lua stats > loaded fonts - 12 files: lmmono10-regular.otf lmsans10-regular.otf texgyretermes-bold.otf texgyretermes-bolditalic.otf texgyretermes-regular.otf rtxmi.tfm rtxptmri.tfm rtxr.tfm txex.tfm txsy.tfm txsya.tfm txsyb.tfm mkiv lua stats > fonts load time - 0.308 seconds mkiv lua stats > luatex banner - this is luatex, version beta-0.66.0-2011041216 mkiv lua stats > control sequences - 30417 of 165536 mkiv lua stats > current memory usage - 25 MB (ctx: 26 MB) mkiv lua stats > runtime - 0.997 seconds, 1 processed pages, 1 shipped pages, 1.003 pages/second [-- Attachment #1.2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 198 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: t-filter: no table created when Unicode characters are included 2011-04-30 7:37 ` Paul Menzel @ 2011-04-30 15:10 ` Aditya Mahajan 2011-05-01 10:48 ` Paul Menzel 2011-05-01 12:12 ` Peter Münster 0 siblings, 2 replies; 23+ messages in thread From: Aditya Mahajan @ 2011-04-30 15:10 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: TEXT/PLAIN, Size: 2850 bytes --] On Sat, 30 Apr 2011, Paul Menzel wrote: > Am Freitag, den 29.04.2011, 18:13 -0400 schrieb Aditya Mahajan: >> On Fri, 29 Apr 2011, Paul Menzel wrote: > >>> the filter module installed using >>> does not work with the following example, which is also attached. >>> >>> 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? >> >> 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). > >> The file works correctly on my machine. > > That is weired. > >> Which version of pandoc are you using? > > $ pandoc --version > pandoc 1.5.1.1 I am using 1.6 (the latest version is 1.8), but ... > As already written in my last mail. Executing the command directly works > fine. I really have no idea why this is happening. Pandoc does not give too many debugging options. A couple of things to check: - What happens is you use pandoc -f rst -t native? (The updated example on github)? - If that fails, then try a simple rst file with a unicode letter (no table)? - If that also fails, then a simple markdown file with a unicode letter. - If that also fails, then some other program that reads a file and writes its contents to another file. - Manually execute the shell command from inside ConTeXt using \ctxlua{os.execute("....")}. Also, what OS you are on? > $ pandoc -f rst -t context -o rest-temp-rest.tex rest-temp-rest.tmp > $ more rest-temp-rest.t*:::::::::::::: > rest-temp-rest.tex > :::::::::::::: > \placetable[here]{none} > \starttable[|l|l|] > \HL > \NC test > \NC table > \NC\AR > \HL > \NC α > \NC b > \NC\AR > \NC c > \NC d > \NC\AR > \HL > \stoptable > :::::::::::::: > rest-temp-rest.tmp > :::::::::::::: > ========= ========= > test table > ========= ========= > α b > c d > ======== ======== Since the .tex file is created, it means that the filter module is running correctly. It is calling pandoc with the right options, and pandoc is creating an empty rest-temp-rest.tex file. Now I have no idea why that file is empty. IIRC, pandoc sometimes misbehaves due to locale settings (but I don't see why locale should be different when a program is run from inside context then when it is run from a shell). I am stymied. Aditya [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: t-filter: no table created when Unicode characters are included 2011-04-30 15:10 ` Aditya Mahajan @ 2011-05-01 10:48 ` Paul Menzel 2011-05-01 12:12 ` Peter Münster 1 sibling, 0 replies; 23+ messages in thread From: Paul Menzel @ 2011-05-01 10:48 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1: Type: text/plain, Size: 6165 bytes --] Am Samstag, den 30.04.2011, 11:10 -0400 schrieb Aditya Mahajan: > On Sat, 30 Apr 2011, Paul Menzel wrote: > > > Am Freitag, den 29.04.2011, 18:13 -0400 schrieb Aditya Mahajan: > >> On Fri, 29 Apr 2011, Paul Menzel wrote: > > > >>> the filter module installed using > >>> does not work with the following example, which is also attached. > >>> > >>> 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? > >> > >> 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). > > > >> The file works correctly on my machine. > > > > That is weired. > > > >> Which version of pandoc are you using? > > > > $ pandoc --version > > pandoc 1.5.1.1 > > I am using 1.6 (the latest version is 1.8), but ... Version 1.8 is not yet uploaded to the Debian repositories since some Haskell packages are not yet available. See ticket #613256 [1] in the Debian BTS. > > As already written in my last mail. Executing the command directly works > > fine. > > I really have no idea why this is happening. Pandoc does not give too many > debugging options. A couple of things to check: > > - What happens is you use pandoc -f rst -t native? (The updated example on > github)? The output file is also empty. Running the command from console works again. > - If that fails, then try a simple rst file with a unicode letter (no > table)? The output file is still empty. $ pandoc -f rst -t native -o rest-temp-rest.tex rest-temp-rest.tmp $ more rest-temp-rest.t{mp,ex} :::::::::::::: rest-temp-rest.tmp :::::::::::::: α :::::::::::::: rest-temp-rest.tex :::::::::::::: Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) [ Para [Str "\945"] ] $ Is the α also encoded by `Str "\945"` in your setup? > - If that also fails, then a simple markdown file with a unicode letter. That fails too. $ more rest-temp-rest.tex $ pandoc -f markdown -t native -o rest-temp-rest.tex rest-temp-rest.tmp $ more rest-temp-rest.t{mp,ex} :::::::::::::: rest-temp-rest.tmp :::::::::::::: α :::::::::::::: rest-temp-rest.tex :::::::::::::: Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) [ Para [Str "\945"] ] $ > - If that also fails, then some other program that reads a file and writes > its contents to another file. Usinng the following \defineexternalfilter [rest] [filter={cat \externalfilterinputfile\space | tee \externalfilteroutputfile}] works. $ more rest-temp-rest.t{mp,ex} :::::::::::::: rest-temp-rest.tmp :::::::::::::: α :::::::::::::: rest-temp-rest.tex :::::::::::::: α > - Manually execute the shell command from inside ConTeXt using > \ctxlua{os.execute("....")}. This does not work either. $ more tests/rest.tex % LM does not appear to have Greek letters in unicode slots \setupbodyfont[times] \starttext Start. \ctxlua{os.execute("pandoc -f rst -t context -o rest-temp-rest.tex rest-temp-rest.tmp")} \stoptext $ context tests/rest.tex $ more rest-temp-rest.t{mp,ex} :::::::::::::: rest-temp-rest.tmp :::::::::::::: α :::::::::::::: rest-temp-rest.tex :::::::::::::: $ > Also, what OS you are on? I am using Debian Sid/unstable. > > $ pandoc -f rst -t context -o rest-temp-rest.tex rest-temp-rest.tmp > > $ more rest-temp-rest.t*:::::::::::::: > > rest-temp-rest.tex > > :::::::::::::: > > \placetable[here]{none} > > \starttable[|l|l|] > > \HL > > \NC test > > \NC table > > \NC\AR > > \HL > > \NC α > > \NC b > > \NC\AR > > \NC c > > \NC d > > \NC\AR > > \HL > > \stoptable > > :::::::::::::: > > rest-temp-rest.tmp > > :::::::::::::: > > ========= ========= > > test table > > ========= ========= > > α b > > c d > > ======== ======== > > Since the .tex file is created, it means that the filter module is running > correctly. It is calling pandoc with the right options, and pandoc is > creating an empty rest-temp-rest.tex file. Now I have no idea why that > file is empty. IIRC, pandoc sometimes misbehaves due to locale settings > (but I don't see why locale should be different when a program is run from > inside context then when it is run from a shell). I am using the following locale. $ locale LANG=de_DE.UTF-8 LC_CTYPE="de_DE.UTF-8" LC_NUMERIC="de_DE.UTF-8" LC_TIME="de_DE.UTF-8" LC_COLLATE="de_DE.UTF-8" LC_MONETARY="de_DE.UTF-8" LC_MESSAGES="de_DE.UTF-8" LC_PAPER="de_DE.UTF-8" LC_NAME="de_DE.UTF-8" LC_ADDRESS="de_DE.UTF-8" LC_TELEPHONE="de_DE.UTF-8" LC_MEASUREMENT="de_DE.UTF-8" LC_IDENTIFICATION="de_DE.UTF-8" LC_ALL= > I am stymied. Well, I would say to not waste your time any longer and to suspect Pandoc at fault here. If a newer Pandoc version is available in the Debian archive I can retest to check the Pandoc version as the possible culprit. Thank you very much for your help, Paul [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613256 [-- Attachment #1.2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 198 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: t-filter: no table created when Unicode characters are included 2011-04-30 15:10 ` Aditya Mahajan 2011-05-01 10:48 ` Paul Menzel @ 2011-05-01 12:12 ` Peter Münster 2011-05-01 14:29 ` Aditya Mahajan 1 sibling, 1 reply; 23+ messages in thread From: Peter Münster @ 2011-05-01 12:12 UTC (permalink / raw) To: mailing list for ConTeXt users Aditya Mahajan <adityam@umich.edu> writes: > (but I don't see why locale should be different when a > program is run from inside context then when it is run from a shell). Taco can surely better explain why. I think somewhere in the luatex manual, he explains why luatex sets locale to "C". To see the differences in the environment, just do "set >/tmp/set-shell" and run context on: --8<---------------cut here---------------start------------->8--- \starttext \ctxlua{os.execute"set >/tmp/set-context"} \stoptext --8<---------------cut here---------------end--------------->8--- I don't have pandoc, but I'm sure that you can reproduce the problem with "LANG=C pandoc ..." Thus, the solution would be something like: "filtercommand={LANG=en_GB.utf8 pandoc ...}" -- Peter ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: t-filter: no table created when Unicode characters are included 2011-05-01 12:12 ` Peter Münster @ 2011-05-01 14:29 ` Aditya Mahajan 2011-05-01 18:27 ` Peter Münster 2011-05-01 18:52 ` Peter Münster 0 siblings, 2 replies; 23+ messages in thread From: Aditya Mahajan @ 2011-05-01 14:29 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: TEXT/PLAIN, Size: 1157 bytes --] On Sun, 1 May 2011, Peter Münster wrote: > Aditya Mahajan <adityam@umich.edu> writes: > >> (but I don't see why locale should be different when a >> program is run from inside context then when it is run from a shell). > > Taco can surely better explain why. I think somewhere in the luatex > manual, he explains why luatex sets locale to "C". > > To see the differences in the environment, just do "set >/tmp/set-shell" > and run context on: > > --8<---------------cut here---------------start------------->8--- > \starttext > \ctxlua{os.execute"set >/tmp/set-context"} > \stoptext > --8<---------------cut here---------------end--------------->8--- Hmm... I get $context --pipe ... ... *\directlua{os.execute("locale")} LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=en_US.UTF-8 so context no longer changes the locale. Aditya [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: t-filter: no table created when Unicode characters are included 2011-05-01 14:29 ` Aditya Mahajan @ 2011-05-01 18:27 ` Peter Münster 2011-05-01 18:52 ` Peter Münster 1 sibling, 0 replies; 23+ messages in thread From: Peter Münster @ 2011-05-01 18:27 UTC (permalink / raw) To: mailing list for ConTeXt users Aditya Mahajan <adityam@umich.edu> writes: > $context --pipe Oh, nice option, that I haven't known yet! :) > *\directlua{os.execute("locale")} > LANG=en_US.UTF-8 > LC_CTYPE="en_US.UTF-8" Strange, here it's: LANG= LC_CTYPE=C LC_NUMERIC=C LC_TIME="POSIX" LC_COLLATE=C LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= And in my environment: LC_CTYPE=en_GB.utf8 When I add to my environment "LANG=en_GB.utf8", then the context output is: LANG=en_GB.utf8 LC_CTYPE=C LC_NUMERIC=C LC_TIME="en_GB.utf8" LC_COLLATE=C LC_MONETARY="en_GB.utf8" LC_MESSAGES="en_GB.utf8" LC_PAPER="en_GB.utf8" LC_NAME="en_GB.utf8" LC_ADDRESS="en_GB.utf8" LC_TELEPHONE="en_GB.utf8" LC_MEASUREMENT="en_GB.utf8" LC_IDENTIFICATION="en_GB.utf8" LC_ALL= So luatex and/or context changes at least LC_CTYPE to C in my case. When I set LC_ALL too, I get the same result as yours. > so context no longer changes the locale. Just a little bit in some cases ... ;) -- Peter ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: t-filter: no table created when Unicode characters are included 2011-05-01 14:29 ` Aditya Mahajan 2011-05-01 18:27 ` Peter Münster @ 2011-05-01 18:52 ` Peter Münster 2011-05-01 19:05 ` Aditya Mahajan 1 sibling, 1 reply; 23+ messages in thread From: Peter Münster @ 2011-05-01 18:52 UTC (permalink / raw) To: mailing list for ConTeXt users Aditya Mahajan <adityam@umich.edu> writes: > *\directlua{os.execute("locale")} Ok, locale outputs something depending on the enviroment. Lets look directly at the enviroment: $ CMD="set | grep -e ^LC_ -e ^LANG" --8<---------------cut here---------------start------------->8--- $ eval $CMD LC_CTYPE=en_GB.utf8 $ echo '\directlua{os.execute"'$CMD'"}' | context --pipe | grep -e LC_ -e LANG *LC_COLLATE=C LC_CTYPE=C LC_NUMERIC=C <*> ...ua{os.execute"set | grep -e ^LC_ -e ^LANG"} --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- $ eval $CMD LANG=en_GB.utf8 LC_CTYPE=en_GB.utf8 $ echo '\directlua{os.execute"'$CMD'"}' | context --pipe | grep -e LC_ -e LANG *LANG=en_GB.utf8 LC_COLLATE=C LC_CTYPE=C LC_NUMERIC=C <*> ...ua{os.execute"set | grep -e ^LC_ -e ^LANG"} --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- $ eval $CMD LANG=en_GB.utf8 LC_ALL=en_GB.utf8 LC_CTYPE=en_GB.utf8 $ echo '\directlua{os.execute"'$CMD'"}' | context --pipe | grep -e LC_ -e LANG FontForge does not support your encoding (utf8), it will pretend the local encoding is latin1 FontForge does not support your encoding (utf8), it will pretend the local encoding is latin1 *LANG=en_GB.utf8 LC_ALL=en_GB.utf8 LC_COLLATE=C LC_CTYPE=C LC_NUMERIC=C <*> ...ua{os.execute"set | grep -e ^LC_ -e ^LANG"} --8<---------------cut here---------------end--------------->8--- So, whatever the original enviroment is, context and/or luatex sets LC_COLLATE=C LC_CTYPE=C LC_NUMERIC=C -- Peter ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: t-filter: no table created when Unicode characters are included 2011-05-01 18:52 ` Peter Münster @ 2011-05-01 19:05 ` Aditya Mahajan 2011-05-01 19:09 ` Aditya Mahajan 0 siblings, 1 reply; 23+ messages in thread From: Aditya Mahajan @ 2011-05-01 19:05 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: TEXT/PLAIN, Size: 254 bytes --] On Sun, 1 May 2011, Peter Münster wrote: > So, whatever the original enviroment is, context and/or luatex sets > LC_COLLATE=C > LC_CTYPE=C > LC_NUMERIC=C Confirmed. Now the question is, why does this cause pandoc to behave strangely. Aditya [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: t-filter: no table created when Unicode characters are included 2011-05-01 19:05 ` Aditya Mahajan @ 2011-05-01 19:09 ` Aditya Mahajan 2011-05-02 15:30 ` Paul Menzel 0 siblings, 1 reply; 23+ messages in thread From: Aditya Mahajan @ 2011-05-01 19:09 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: TEXT/PLAIN, Size: 582 bytes --] On Sun, 1 May 2011, Aditya Mahajan wrote: > On Sun, 1 May 2011, Peter Münster wrote: > >> So, whatever the original enviroment is, context and/or luatex sets >> LC_COLLATE=C >> LC_CTYPE=C >> LC_NUMERIC=C > > Confirmed. Now the question is, why does this cause pandoc to behave > strangely. Perhaps due to a old bug in pandoc http://code.google.com/p/pandoc/issues/detail?id=233 http://www.readmespot.com/question/f/163755/pandoc-locale-problems This was fixed in pandoc 1.6 that is why I don't see it. Paul, you will have to manually update pandoc. Aditya [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: t-filter: no table created when Unicode characters are included 2011-05-01 19:09 ` Aditya Mahajan @ 2011-05-02 15:30 ` Paul Menzel 2011-05-27 8:53 ` [solved] " Paul Menzel 0 siblings, 1 reply; 23+ messages in thread From: Paul Menzel @ 2011-05-02 15:30 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1: Type: text/plain, Size: 827 bytes --] Am Sonntag, den 01.05.2011, 15:09 -0400 schrieb Aditya Mahajan: > On Sun, 1 May 2011, Aditya Mahajan wrote: > > > On Sun, 1 May 2011, Peter Münster wrote: > > > >> So, whatever the original enviroment is, context and/or luatex sets > >> LC_COLLATE=C > >> LC_CTYPE=C > >> LC_NUMERIC=C > > > > Confirmed. Now the question is, why does this cause pandoc to behave > > strangely. > > Perhaps due to a old bug in pandoc > http://code.google.com/p/pandoc/issues/detail?id=233 > http://www.readmespot.com/question/f/163755/pandoc-locale-problems > > This was fixed in pandoc 1.6 that is why I don't see it. Paul, you will > have to manually update pandoc. Thank you very much for all your help. I will wait for the updated Pandoc and retest. In the mean time I am going to use t-rst. Thanks, Paul [-- Attachment #1.2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 198 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [solved] t-filter: no table created when Unicode characters are included 2011-05-02 15:30 ` Paul Menzel @ 2011-05-27 8:53 ` Paul Menzel 2011-06-23 14:31 ` yoraxe 0 siblings, 1 reply; 23+ messages in thread From: Paul Menzel @ 2011-05-27 8:53 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1: Type: text/plain, Size: 1292 bytes --] Am Montag, den 02.05.2011, 17:30 +0200 schrieb Paul Menzel: > Am Sonntag, den 01.05.2011, 15:09 -0400 schrieb Aditya Mahajan: > > On Sun, 1 May 2011, Aditya Mahajan wrote: > > > > > On Sun, 1 May 2011, Peter Münster wrote: > > > > > >> So, whatever the original enviroment is, context and/or luatex sets > > >> LC_COLLATE=C > > >> LC_CTYPE=C > > >> LC_NUMERIC=C > > > > > > Confirmed. Now the question is, why does this cause pandoc to behave > > > strangely. > > > > Perhaps due to a old bug in pandoc > > http://code.google.com/p/pandoc/issues/detail?id=233 > > http://www.readmespot.com/question/f/163755/pandoc-locale-problems > > > > This was fixed in pandoc 1.6 that is why I don't see it. Paul, you will > > have to manually update pandoc. > > Thank you very much for all your help. I will wait for the updated > Pandoc and retest. In the mean time I am going to use t-rst. Pandoc 1.8.1.1 is available in the Debian Sid/unstable repositories [1] now. I tested the minimal example and after adding the \setupbodyfont[times] as you did, everything works as expected. Thank you very much and sorry for noise, because this was an external problem. Thanks, Paul [1] http://packages.qa.debian.org/p/pandoc/news/20110526T214713Z.html [-- Attachment #1.2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 198 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [solved] t-filter: no table created when Unicode characters are included 2011-05-27 8:53 ` [solved] " Paul Menzel @ 2011-06-23 14:31 ` yoraxe 2011-06-23 16:30 ` Aditya Mahajan 0 siblings, 1 reply; 23+ messages in thread From: yoraxe @ 2011-06-23 14:31 UTC (permalink / raw) To: mailing list for ConTeXt users Am 27.05.2011 10:53, schrieb Paul Menzel: > Am Montag, den 02.05.2011, 17:30 +0200 schrieb Paul Menzel: >> Am Sonntag, den 01.05.2011, 15:09 -0400 schrieb Aditya Mahajan: >>> On Sun, 1 May 2011, Aditya Mahajan wrote: >>> >>>> On Sun, 1 May 2011, Peter Münster wrote: >>>> >>>>> So, whatever the original enviroment is, context and/or luatex sets >>>>> LC_COLLATE=C >>>>> LC_CTYPE=C >>>>> LC_NUMERIC=C >>>> >>>> Confirmed. Now the question is, why does this cause pandoc to behave >>>> strangely. >>> >>> Perhaps due to a old bug in pandoc >>> http://code.google.com/p/pandoc/issues/detail?id=233 >>> http://www.readmespot.com/question/f/163755/pandoc-locale-problems >>> >>> This was fixed in pandoc 1.6 that is why I don't see it. Paul, you will >>> have to manually update pandoc. >> >> Thank you very much for all your help. I will wait for the updated >> Pandoc and retest. In the mean time I am going to use t-rst. > > Pandoc 1.8.1.1 is available in the Debian Sid/unstable repositories [1] > now. I tested the minimal example and after adding the > > \setupbodyfont[times] > > as you did, everything works as expected. How can I use math-mode in such a table? Using $a_b$ it just prints $a_b$ instead of identifying this as a math-input. I'm using pandoc 1.8.1.1 and context 2011.06.19. Thanks, Yoraxe ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [solved] t-filter: no table created when Unicode characters are included 2011-06-23 14:31 ` yoraxe @ 2011-06-23 16:30 ` Aditya Mahajan 2011-06-23 19:59 ` t-filter: how to use math-mode yoraxe 0 siblings, 1 reply; 23+ messages in thread From: Aditya Mahajan @ 2011-06-23 16:30 UTC (permalink / raw) To: mailing list for ConTeXt users On Thu, 23 Jun 2011, yoraxe wrote: > How can I use math-mode in such a table? Using $a_b$ it just prints > $a_b$ instead of identifying this as a math-input. > > I'm using pandoc 1.8.1.1 and context 2011.06.19. Can you give a complete minimal example? 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: t-filter: how to use math-mode 2011-06-23 16:30 ` Aditya Mahajan @ 2011-06-23 19:59 ` yoraxe 2011-06-23 21:08 ` yoraxe 2011-06-23 23:23 ` Aditya Mahajan 0 siblings, 2 replies; 23+ messages in thread From: yoraxe @ 2011-06-23 19:59 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: text/plain, Size: 462 bytes --] Am 23.06.2011 18:30, schrieb Aditya Mahajan: > On Thu, 23 Jun 2011, yoraxe wrote: > >> How can I use math-mode in such a table? Using $a_b$ it just prints >> $a_b$ instead of identifying this as a math-input. >> >> I'm using pandoc 1.8.1.1 and context 2011.06.19. > > Can you give a complete minimal example? Find all files attached. I see, it is the line \NC \$a\letterunderscore{}b\$ that is not correctly translated. What do I have to type instead of _? [-- Attachment #2: tabletest.log --] [-- Type: text/x-log, Size: 5618 bytes --] (tabletest.tex ConTeXt ver: 2011.06.19 14:17 MKIV fmt: 2011.6.22 int: english/english system > cont-new.mkiv loaded (/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > tabletest.top loaded system > options > begin of optionfile system > options > system > options > % runtime options files (command line driven) system > options > \unprotect system > options > % feedback and basic job control system > options > % handy for special styles system > options > \startluacode system > options > document = document or { } system > options > document.arguments={ system > options > } system > options > document.files={ system > options > "tabletest", system > options > } system > options > \stopluacode system > options > % process info system > options > \setupsystem[inputfile=tabletest] system > options > \setupsystem[\c!n=1,\c!m=1] system > options > % modes system > options > % options (not that important) system > options > \startsetups *runtime:options system > options > \stopsetups system > options > % styles and modules system > options > \startsetups *runtime:modules system > options > \stopsetups system > options > % done system > options > \protect \endinput system > options > system > options > end of optionfile (tabletest.top) fonts > latin modern fonts are not preloaded languages > language en is active resolvers > modules > loaded: 'filter' (/home/context/tex/texmf-context/tex/context/third/filter/t-filter.tex loading > ConTeXt User Module / Filter resolvers > modules > loaded: 'module-catcodes' (/home/context/tex/texmf-context/tex/context/third/filter/t-module-catcodes.tex loading > ConTeXt User Module / Module Catcodes )){/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) (/home/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 12pt is loaded system > begin file tabletest at line 4 t-filter > command : pandoc -f rst -t context -o tabletest-temp-rest.tex tabletest-temp-rest.tmp (tabletest-temp-rest.tex floatblocks > 1 placed ) backend > xmp > using file '/home/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 system > end file tabletest at line 13 )</home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf> mkiv lua stats > used config file - selfautoparent:texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path - readable: '/home/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606' (order 1) mkiv lua stats > used cache path - readable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606' (order 2) mkiv lua stats > used cache path - writable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606' mkiv lua stats > input load time - 0.006 seconds mkiv lua stats > stored bytecode data - 289 modules, 61 tables, 350 chunks mkiv lua stats > loaded tex modules - 2 requested, 2 found (*-filter *-module-catcodes), 0 missing mkiv lua stats > cleaned up reserved nodes - 33 nodes, 9 lists of 423 mkiv lua stats > node memory usage - 2 glue, 2 penalty, 9 attribute, 27 glue_spec, 3 attribute_list mkiv lua stats > node list callback tasks - 6 unique task lists, 5 instances (re)created, 2466 calls mkiv lua stats > used backend - pdf (backend for directly generating pdf output) mkiv lua stats > loaded patterns - en::2 mkiv lua stats > callbacks - 2655 direct, 3477 indirect, 6132 total mkiv lua stats > randomizer - resumed with value 0.72040259452555 mkiv lua stats > lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls mkiv lua stats > result saved in file - tabletest.pdf mkiv lua stats > loaded fonts - 44 files: stmary10.afm lmmath.otf lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman6-bold.otf lmroman6-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb5.tfm eufb7.tfm eufm10.tfm eufm5.tfm eufm7.tfm msam10.tfm msam5.tfm msam7.tfm msbm10.tfm msbm5.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi6.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib5.tfm lmmib7.tfm lmsy10.tfm lmsy6.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr6.tfm rm-lmr7.tfm rm-lmr9.tfm mkiv lua stats > fonts load time - 0.414 seconds mkiv lua stats > luatex banner - this is luatex, version beta-0.70.1-2011051918 (rev 4277) mkiv lua stats > control sequences - 31081 of 165536 mkiv lua stats > current memory usage - 52 MB (ctx: 54 MB) mkiv lua stats > runtime - 0.986 seconds, 1 processed pages, 1 shipped pages, 1.014 pages/second [-- Attachment #3: tabletest.pdf --] [-- Type: application/pdf, Size: 6744 bytes --] [-- Attachment #4: tabletest.tex --] [-- Type: text/x-tex, Size: 271 bytes --] \usemodule[filter] \defineexternalfilter[rest][filtercommand={pandoc -f rst -t context -o \externalfilteroutputfile\space \externalfilterinputfile}] \starttext \startrest ===== ====== first second ===== ====== a_b 1.6 $a_b$ 2.5 ===== ====== \stoprest \stoptext [-- Attachment #5: tabletest-temp-rest.tex --] [-- Type: text/x-tex, Size: 180 bytes --] \placetable[here]{none} \starttable[|l|l|] \HL \NC first \NC second \NC\AR \HL \NC a\letterunderscore{}b \NC 1.6 \NC\AR \NC \$a\letterunderscore{}b\$ \NC 2.5 \NC\AR \HL \stoptable [-- Attachment #6: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: t-filter: how to use math-mode 2011-06-23 19:59 ` t-filter: how to use math-mode yoraxe @ 2011-06-23 21:08 ` yoraxe 2011-06-23 23:23 ` Aditya Mahajan 1 sibling, 0 replies; 23+ messages in thread From: yoraxe @ 2011-06-23 21:08 UTC (permalink / raw) To: mailing list for ConTeXt users Am 23.06.2011 21:59, schrieb yoraxe: > Am 23.06.2011 18:30, schrieb Aditya Mahajan: >> On Thu, 23 Jun 2011, yoraxe wrote: >> >>> How can I use math-mode in such a table? Using $a_b$ it just prints >>> $a_b$ instead of identifying this as a math-input. >>> >>> I'm using pandoc 1.8.1.1 and context 2011.06.19. >> >> Can you give a complete minimal example? > > Find all files attached. > I see, it is the line > > \NC \$a\letterunderscore{}b\$ > > that is not correctly translated. What do I have to type instead of _? Maybe this could be helpful: http://hackage.haskell.org/packages/archive/pandoc/1.8.1.1/doc/html/src/Text-Pandoc-Writers-ConTeXt.html Does someone know what all this means? I guess especially interesting are the following lines: inlineToConTeXt (Math InlineMath str) = return $ char '$' <> text str <> char '$' inlineToConTeXt (Math DisplayMath str) = return $ text "\\startformula " <> text str <> text " \\stopformula" ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: t-filter: how to use math-mode 2011-06-23 19:59 ` t-filter: how to use math-mode yoraxe 2011-06-23 21:08 ` yoraxe @ 2011-06-23 23:23 ` Aditya Mahajan 2011-06-25 10:58 ` yoraxe 1 sibling, 1 reply; 23+ messages in thread From: Aditya Mahajan @ 2011-06-23 23:23 UTC (permalink / raw) To: mailing list for ConTeXt users On Thu, 23 Jun 2011, yoraxe wrote: > Am 23.06.2011 18:30, schrieb Aditya Mahajan: >> On Thu, 23 Jun 2011, yoraxe wrote: >> >>> How can I use math-mode in such a table? Using $a_b$ it just prints >>> $a_b$ instead of identifying this as a math-input. >>> >>> I'm using pandoc 1.8.1.1 and context 2011.06.19. >> >> Can you give a complete minimal example? > > Find all files attached. > I see, it is the line > > \NC \$a\letterunderscore{}b\$ > > that is not correctly translated. What do I have to type instead of _? It seems that pandoc's rst reader does not handle inline mathematics (at least with pandoc 1.6; I don't know if Pandoc 1.8 fixes this). $echo "\$a_b\$" | pandoc -f rst -t native Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) [ Para [Str "$",Str "a",Str "_",Str "b",Str "$"] ] In contrast, markdown reader handles inline mathematics correctly. $echo "\$a_b\$" | pandoc -f markdown -t native Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) [ Para [Math InlineMath "a_b"] ] So, it would be better to discuss this on the pandoc mailing list. 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: t-filter: how to use math-mode 2011-06-23 23:23 ` Aditya Mahajan @ 2011-06-25 10:58 ` yoraxe 0 siblings, 0 replies; 23+ messages in thread From: yoraxe @ 2011-06-25 10:58 UTC (permalink / raw) To: mailing list for ConTeXt users Am 24.06.2011 01:23, schrieb Aditya Mahajan: > On Thu, 23 Jun 2011, yoraxe wrote: > >> Am 23.06.2011 18:30, schrieb Aditya Mahajan: >>> On Thu, 23 Jun 2011, yoraxe wrote: >>> >>>> How can I use math-mode in such a table? Using $a_b$ it just prints >>>> $a_b$ instead of identifying this as a math-input. >>>> >>>> I'm using pandoc 1.8.1.1 and context 2011.06.19. >>> >>> Can you give a complete minimal example? >> >> Find all files attached. >> I see, it is the line >> >> \NC \$a\letterunderscore{}b\$ >> >> that is not correctly translated. What do I have to type instead of _? > > It seems that pandoc's rst reader does not handle inline mathematics (at > least with pandoc 1.6; I don't know if Pandoc 1.8 fixes this). > > $echo "\$a_b\$" | pandoc -f rst -t native > > Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) > [ Para [Str "$",Str "a",Str "_",Str "b",Str "$"] ] > > In contrast, markdown reader handles inline mathematics correctly. > > $echo "\$a_b\$" | pandoc -f markdown -t native > > Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) > [ Para [Math InlineMath "a_b"] ] > > So, it would be better to discuss this on the pandoc mailing list. Ok, thanks. I'm using now markdown instead of rest. If someone is interested, it looks fine using: \usemodule[filter] \defineexternalfilter[markdown][filtercommand={pandoc -f markdown -t context -o \externalfilteroutputfile\space \externalfilterinputfile}] \starttext \startmarkdown Right Left Center Default ------- ------ ---------- ------- $h_1$ 12 12 12 123 123 123 123 1 1 1 1 \stopmarkdown \stoptext Sorry for the noise. Yoraxe ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: t-filter: no table created when Unicode characters are included 2011-04-29 21:09 t-filter: no table created when Unicode characters are included Paul Menzel 2011-04-29 21:17 ` [t-filter] [PATCH] tests: add test file for reST (reStructuredText) Paul Menzel 2011-04-29 22:13 ` t-filter: no table created when Unicode characters are included Aditya Mahajan @ 2011-04-30 21:00 ` Philipp Gesang 2011-05-20 9:24 ` t-rst: Unicode character not printed (was: t-filter: no table created when Unicode characters are included) Paul Menzel 2 siblings, 1 reply; 23+ messages in thread From: Philipp Gesang @ 2011-04-30 21:00 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1.1: Type: text/plain, Size: 2382 bytes --] 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 [-- Attachment #1.1.2: rstX.tex --] [-- Type: text/x-tex, Size: 306 bytes --] \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 #1.2: Type: application/pgp-signature, Size: 198 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* t-rst: Unicode character not printed (was: t-filter: no table created when Unicode characters are included) 2011-04-30 21:00 ` t-filter: no table created when Unicode characters are included Philipp Gesang @ 2011-05-20 9:24 ` Paul Menzel 2011-05-20 9:54 ` Philipp Gesang 0 siblings, 1 reply; 23+ messages in thread From: Paul Menzel @ 2011-05-20 9:24 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1.1: Type: text/plain, Size: 1390 bytes --] Dear Philipp, Am Samstag, den 30.04.2011, 23:00 +0200 schrieb Philipp Gesang: > On 2011-04-29 <23:09:42>, Paul Menzel wrote: > > 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 > 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. I finally had some time to try it out. Unfortunately the α is not printed either with the test file. Please find the resulting PDF file attached. • ConTeXt ver: 2011.05.06 16:52 MKIV fmt: 2011.5.7 int: english/english • context-rst from latest Mercurial branch Does it work on your system? […] Thanks, Paul > [1] https://bitbucket.org/phg/context-rst [-- Attachment #1.1.2: rstX.pdf --] [-- Type: application/pdf, Size: 8026 bytes --] [-- Attachment #1.2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 198 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: t-rst: Unicode character not printed (was: t-filter: no table created when Unicode characters are included) 2011-05-20 9:24 ` t-rst: Unicode character not printed (was: t-filter: no table created when Unicode characters are included) Paul Menzel @ 2011-05-20 9:54 ` Philipp Gesang 0 siblings, 0 replies; 23+ messages in thread From: Philipp Gesang @ 2011-05-20 9:54 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 2148 bytes --] Hi Paul, On 2011-05-20 <11:24:31>, Paul Menzel wrote: > > I finally had some time to try it out. Unfortunately the α is not > printed either with the test file. Please find the resulting PDF file > attached. of course latin modern doesn’t provide Greek letters yet -- you’ll need to load another font. Closest to lm would be cmu.[1] ··8<····························································· \usetypescriptfile[type-cmu] \usetypescript[computer-modern-unicode] \setupbodyfont[computer-modern-unicode,11pt] \usemodule[rst] \setupTABLE[column][1][background=color,backgroundcolor=gray:2] \setupbodyfontenvironment [default] [em=italic] \starttext There will be a table here. \startRST ========= ========= test table ========= ========= α b c d ========= ========= \stopRST There was a table before this line. \stoptext ··8<····························································· Thanks anyways for the report! Philipp [1] http://canopus.iacp.dvo.ru/~panov/cm-unicode/ > > • ConTeXt ver: 2011.05.06 16:52 MKIV fmt: 2011.5.7 int: english/english > • context-rst from latest Mercurial branch > > Does it work on your system? > > […] > > > Thanks, > > Paul > > > > [1] https://bitbucket.org/phg/context-rst > ___________________________________________________________________________________ > 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 [-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 23+ messages in thread
end of thread, other threads:[~2011-06-25 10:58 UTC | newest] Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-04-29 21:09 t-filter: no table created when Unicode characters are included Paul Menzel 2011-04-29 21:17 ` [t-filter] [PATCH] tests: add test file for reST (reStructuredText) Paul Menzel 2011-04-29 22:13 ` t-filter: no table created when Unicode characters are included Aditya Mahajan 2011-04-30 7:37 ` Paul Menzel 2011-04-30 15:10 ` Aditya Mahajan 2011-05-01 10:48 ` Paul Menzel 2011-05-01 12:12 ` Peter Münster 2011-05-01 14:29 ` Aditya Mahajan 2011-05-01 18:27 ` Peter Münster 2011-05-01 18:52 ` Peter Münster 2011-05-01 19:05 ` Aditya Mahajan 2011-05-01 19:09 ` Aditya Mahajan 2011-05-02 15:30 ` Paul Menzel 2011-05-27 8:53 ` [solved] " Paul Menzel 2011-06-23 14:31 ` yoraxe 2011-06-23 16:30 ` Aditya Mahajan 2011-06-23 19:59 ` t-filter: how to use math-mode yoraxe 2011-06-23 21:08 ` yoraxe 2011-06-23 23:23 ` Aditya Mahajan 2011-06-25 10:58 ` yoraxe 2011-04-30 21:00 ` t-filter: no table created when Unicode characters are included Philipp Gesang 2011-05-20 9:24 ` t-rst: Unicode character not printed (was: t-filter: no table created when Unicode characters are included) Paul Menzel 2011-05-20 9:54 ` Philipp Gesang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).