From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61995 Path: news.gmane.org!not-for-mail From: "Daniel Grycman" Newsgroups: gmane.comp.tex.context Subject: scancsv.lua Date: 26 Sep 2010 22:31:50 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1285533141 20960 80.91.229.12 (26 Sep 2010 20:32:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 26 Sep 2010 20:32:21 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 26 22:32:19 2010 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 1OzxtO-0006ir-Jq for gctc-ntg-context-518@m.gmane.org; Sun, 26 Sep 2010 22:32:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3667ACA67C; Sun, 26 Sep 2010 22:32:13 +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 AgAS3ORqA-uq; Sun, 26 Sep 2010 22:32:10 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DB9CECA66A; Sun, 26 Sep 2010 22:32:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3DDEBCA66A for ; Sun, 26 Sep 2010 22:32:09 +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 VcP+G1OVY26g for ; Sun, 26 Sep 2010 22:31:57 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 3AED1CA628 for ; Sun, 26 Sep 2010 22:31:57 +0200 (CEST) Original-Received: from mx6.rz.ruhr-uni-bochum.de (mx6.rz.ruhr-uni-bochum.de [134.147.64.30]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id o8QKVtEr018490 for ; Sun, 26 Sep 2010 22:31:56 +0200 X-Queued: (qmail 9551 invoked from network); 26 Sep 2010 20:31:55 -0000 Original-Received: from c2-3-4.rz.ruhr-uni-bochum.de (134.147.64.5) by mx6.rz.ruhr-uni-bochum.de with SMTP; 26 Sep 2010 20:31:55 -0000 X-Queued: (qmail 19895 invoked by uid 281); 26 Sep 2010 20:31:55 -0000 X-Qmailscanner: from 88.153.184.26 (dDW7Gr5wwZSPAQDgc8KBdg==@88.153.184.26) by c2-3-4.rz.ruhr-uni-bochum.de (envelope-from , uid 80) with qmail-scanner-2.01 (sophie: 3.05/3.10/4.56. Clear:RC:1(88.153.184.26):. Processed in 0.019842 secs); 26 Sep 2010 20:31:55 -0000 Original-Received: from ip-88-153-184-26.unitymediagroup.de (HELO ?192.168.178.21?) (dDW7Gr5wwZSPAQDgc8KBdg==@88.153.184.26) by c2-3-4.rz.ruhr-uni-bochum.de with (DES-CBC3-SHA encrypted) SMTP; 26 Sep 2010 20:31:55 -0000 User-Agent: Microsoft-MacOutlook/14.0.0.100802 Thread-Topic: scancsv.lua X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=134.147.64.30; country=DE; region=07; city=Bochum; latitude=51.4833; longitude=7.2167; http://maps.google.com/maps?q=51.4833,7.2167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07DbwvUqt - 3454d3cbb5aa - 20100926 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 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:61995 Archived-At: Hi all, I use the sancsv.lua libray by Jaroslav Hajtmar for the typesetting of a study guide at the German Department at Ruhr-University. By reading the data of csv-eile Textmate canceled with the following messages. The csv-file has utf-8 encoding. MTXrun | run 1: luatex --fmt="/Users/grycman/Library/texlive/2010/texmf-var/luatex-cache/context/e 9159e878e989105b2ef2d27fad97515/formats/cont-en" --lua="/Users/grycman/Library/texlive/2010/texmf-var/luatex-cache/context/e 9159e878e989105b2ef2d27fad97515/formats/cont-en.lui" --backend=pdf "/Users/grycman/Dropbox/Uni/kvvtest.tex" This is LuaTeX, Version beta-0.60.2-2010071217 (TeX Live 2010) (rev 3736) \write18 enabled. (/Users/grycman/Dropbox/Uni/kvvtest.tex publications : loading formatting style from bxml-apa (/usr/local/texlive/2010/texmf-dist/tex/context/base/bxml-apa.mkiv) ConTeXt ver: 2010.05.24 13:05 MKIV fmt: 2010.9.20 int: english/english system : cont-new loaded (/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-new.mkiv)) system : cont-fil loaded (/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys loaded (/usr/local/texlive/2010/texmf-config/tex/context/user/cont-sys.tex (/usr/local/texlive/2010/texmf-dist/tex/context/base/type-def.mkiv) (/usr/local/texlive/2010/texmf-dist/tex/context/base/type-lua.mkiv) (/usr/local/texlive/2010/texmf-dist/tex/context/base/type-siz.mkiv) (/usr/local/texlive/2010/texmf-dist/tex/context/base/type-otf.mkiv)) system : kvvtest.top loaded (kvvtest.top) fonts : preloading latin modern fonts {/usr/local/texlive/2010/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/usr/lo cal/texlive/2010/texmf-dist/fonts/map/dvips/lm/lm-rm.map}{/usr/local/texliv e/2010/texmf-dist/fonts/map/pdftex/context/mkiv-base.map} bodyfont : 12pt rm is loaded language : language en is active system : module simplefonts loaded (/usr/local/texlive/2010/texmf-dist/tex/context/third/simplefonts/t-simplef onts.tex loading : ConTeXt User Module / Simplefonts ) system : module r loaded (/usr/local/texlive/2010/texmf-dist/tex/context/base/m-r.tex) system : module tikz loaded (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/frontendlayer/t-tikz.te x (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/basiclayer/t-pgf.tex (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/basiclayer/t-pgfcor.tex (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/systemlayer/t-pgfsys.t ex (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/utilities/t-pgfrcs.tex (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/utilities/t-pgfmod.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfutil-comm on.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfutil-conte xt.def) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.t ex)) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code .tex (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code. tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdft ex.def (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-comm on-pdf.def)) (kvvtest.pgf)) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftp ath.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsysproto col.code.tex)) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code .tex (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.t ex (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.t ex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathparser.code .tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathoperations. code.tex (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathtrig.code.t ex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathrnd.code.te x)) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathbase.code.t ex))) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoint s.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathc onstruct.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathu sage.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescope s.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraph icstate.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretrans formations.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick .code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjec ts.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathp rocessing.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrow s.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade .code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage .code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayer s.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretrans parency.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatte rns.code.tex))) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes .code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.c ode.tex)) (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/utilities/t-pgffor.tex (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/utilities/t-pgfrcs.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgffor.code. tex)) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz .code.tex (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/libraries/pgflibraryplo thandlers.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix .code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libr aries/tikzlibrarytopaths.code.tex))) system : module edtsnc loaded (/usr/local/texlive/2010/texmf-dist/tex/context/base/m-edtsnc.tex editsync : loading and enabling editor synchronization support ) system : module chart loaded (/usr/local/texlive/2010/texmf-dist/tex/context/base/m-chart.tex (/usr/local/texlive/2010/texmf-dist/tex/context/base/m-chart.mkiv systems : The chart mkiv xml interface is not yet defined! )) systems : begin file /Users/grycman/Dropbox/Uni/kvvtest.tex at line 26 !pages : flushing realpage 1, userpage 1, subpage 1 !pages : flushing realpage 2, userpage 2 structure : title @ level 2 : 0.0 -> \headtext {content} !pages : flushing realpage 3, userpage 3 structure : section @ level 3 : 0.0.1 -> Kontakt structure : subsection @ level 4 : 0.0.1.1 -> Organisation des Germanistischen Instituts Overfull \hbox (284.90858pt too wide) in paragraph at lines 64--1 [] Underfull \hbox (badness 10000) in paragraph at lines 96--1 structure : subsection @ level 4 : 0.0.1.2 -> Allgemeine Studienberatung und Studienfachberatung !pages : flushing realpage 4, userpage 4 structure : subsubject @ level 4 : 0.0.1.2 -> Studienfachberatung Master of Education structure : subsection @ level 4 : 0.0.1.3 -> Die Lehrenden des Germanistischen Instituts ! LuaTeX error scancsv.lua:147: table index is nil stack traceback: scancsv.lua:147: in function 'ReadLineFromCSV' scancsv.lua:184: in function 'lineaction' scancsv.lua:216: in function 'filelineaction' <\directlua >:1: in main chunk. ...lua {filelineaction("personen.csv")} \firstoftwoarguments #1#2->#1 l.116 \filelineaction{personen.csv} ? ! Emergency stop. ...lua {filelineaction("personen.csv")} \firstoftwoarguments #1#2->#1 l.116 \filelineaction{personen.csv} ! ==> Fatal error occurred, no output PDF file produced!MTXrun | fatal error: return code: 1 Jaroslav, can you help me? Or anybody else? Daniel ___________________________________________________________________________________ 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 ___________________________________________________________________________________