From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68086 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: t-filter: no table created when Unicode characters are included Date: Sat, 30 Apr 2011 11:10:54 -0400 (EDT) Message-ID: References: <1304111382.5256.20.camel@mattotaupa> <1304149025.5773.17.camel@mattotaupa> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1648364355-1304176074=:8363" X-Trace: dough.gmane.org 1304176291 10254 80.91.229.12 (30 Apr 2011 15:11:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 30 Apr 2011 15:11:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 30 17:11:27 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QGBpM-0006MQ-BS for gctc-ntg-context-518@m.gmane.org; Sat, 30 Apr 2011 17:11:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 57383CAC79; Sat, 30 Apr 2011 17:11:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Yah-HOIsiY4l; Sat, 30 Apr 2011 17:11:20 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 79941CAC72; Sat, 30 Apr 2011 17:11:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 57E2FCAC72 for ; Sat, 30 Apr 2011 17:11:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kvSI10K6cgPM for ; Sat, 30 Apr 2011 17:11:17 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 2EF09CAC6E for ; Sat, 30 Apr 2011 17:11:17 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p3UFBCXO010659 for ; Sat, 30 Apr 2011 17:11:16 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096682363.dsl.bell.ca [65.94.11.123]) By hellskitchen.mr.itd.umich.edu ID 4DBC2687.D4A22.3228 ; Authuser adityam; 30 Apr 2011 11:11:03 EDT In-Reply-To: <1304149025.5773.17.camel@mattotaupa> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) Content-ID: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; 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: 08EBPbcAC - 002c468642ae - 20110430 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:68086 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1648364355-1304176074=:8363 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-7; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: 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. >>>=20 >>> The output file `minimal-temp-rest.tex` is just empty. >>> >>> Replacing =BB=E1=AB by =BBa=AB 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= =20 debugging options. A couple of things to check: - What happens is you use pandoc -f rst -t native? (The updated example on= =20 github)? - If that fails, then try a simple rst file with a unicode letter (no=20 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= =20 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.tm= p > $ more rest-temp-rest.t*:::::::::::::: > rest-temp-rest.tex > :::::::::::::: > \placetable[here]{none} > \starttable[|l|l|] > \HL > \NC test > \NC table > \NC\AR > \HL > \NC =E1 > \NC b > \NC\AR > \NC c > \NC d > \NC\AR > \HL > \stoptable > :::::::::::::: > rest-temp-rest.tmp > :::::::::::::: > =3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D > test table > =3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D > =E1 b > c d > =3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D Since the .tex file is created, it means that the filter module is running= =20 correctly. It is calling pandoc with the right options, and pandoc is=20 creating an empty rest-temp-rest.tex file. Now I have no idea why that=20 file is empty. IIRC, pandoc sometimes misbehaves due to locale settings=20 (but I don't see why locale should be different when a program is run from= =20 inside context then when it is run from a shell). I am stymied. Aditya --8323328-1648364355-1304176074=:8363 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --8323328-1648364355-1304176074=:8363--