From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62000 Path: news.gmane.org!not-for-mail From: "Daniel Grycman" Newsgroups: gmane.comp.tex.context Subject: Re: scancsv.lua Date: 27 Sep 2010 01:38:24 +0200 Message-ID: References: <4C9FC6C3.6020006@gyza.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285544331 26371 80.91.229.12 (26 Sep 2010 23:38:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 26 Sep 2010 23:38:51 +0000 (UTC) To: hajtmar@gyza.cz, "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 27 01:38:49 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 1P00nv-00023u-4t for gctc-ntg-context-518@m.gmane.org; Mon, 27 Sep 2010 01:38:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C6947CA72E; Mon, 27 Sep 2010 01:38:45 +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 DVgRbPlV4yiD; Mon, 27 Sep 2010 01:38:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A8204CA726; Mon, 27 Sep 2010 01:38:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CB0C1CA726 for ; Mon, 27 Sep 2010 01:38:41 +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 xLS6wu1GRoJz for ; Mon, 27 Sep 2010 01:38:29 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 2AE00CA723 for ; Mon, 27 Sep 2010 01:38:29 +0200 (CEST) Original-Received: from mx5.rz.ruhr-uni-bochum.de (mx5.rz.ruhr-uni-bochum.de [134.147.64.33]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id o8QNcS60026823 for ; Mon, 27 Sep 2010 01:38:28 +0200 X-Queued: (qmail 28257 invoked from network); 26 Sep 2010 23:38:28 -0000 Original-Received: from c2-3-4.rz.ruhr-uni-bochum.de (134.147.64.5) by mx5.rz.ruhr-uni-bochum.de with SMTP; 26 Sep 2010 23:38:28 -0000 X-Queued: (qmail 1497 invoked by uid 281); 26 Sep 2010 23:38:27 -0000 X-Qmailscanner: from 88.153.184.26 (dDW7Gr5wwZQEoj3j67x/6w==@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.038257 secs); 26 Sep 2010 23:38:27 -0000 Original-Received: from ip-88-153-184-26.unitymediagroup.de (HELO ?192.168.178.21?) (dDW7Gr5wwZQEoj3j67x/6w==@88.153.184.26) by c2-3-4.rz.ruhr-uni-bochum.de with (DES-CBC3-SHA encrypted) SMTP; 26 Sep 2010 23:38:27 -0000 User-Agent: Microsoft-MacOutlook/14.0.0.100802 Thread-Topic: [NTG-context] scancsv.lua In-Reply-To: <4C9FC6C3.6020006@gyza.cz> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=134.147.64.33; 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: 0xDbzCssl - c211e62ef1ce - 20100927 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:62000 Archived-At: Hello Jaroslav, everything works fine :-). Daniel On 27.09.10 00:18, "Jaroslav Hajtmar" wrote: >Hello Daniel. > >Malfunction your code was caused by two things: > >1. CSV file contains TeX problematic characters (eg underscore_ which is >used only in math mode) - should therefore be set catcodes. >Correction is for example here: > >\def\lineaction{ >\catcode`\_=3D12 >\catcode`\%=3D12 >\catcode`\&=3D12 >\catcode`\@=3D12 >% etc... >\expanded{ >\bTD\ssxx\Name, \Vorname, \Titel, \Bezeichnung \eTD >\bTD\ssxx\Mail \eTD >\bTD\ssxx\Raum \eTD >\bTD\ssxx\Telefon \eTD} >} > > > >2. A simple parser that I wrote not process general CSV files (it not >allow some items were in quotation marks and not others. That is, if you >use within the field delimiter, must be ALL ITEMS quoted!) I modified >the lines 16 and 198 your CSV table, which contained a single delimiter >in quotes (instead of a semicolon delimiter, I used a comma) > >I change 16. line from: > >Bialluch;Kathrin;;Lehrbeauftragte;"KathrinBialluch@web.de; >Kathrin.Bialluch@stimme-dortmund.de";; > >to line: > >Bialluch;Kathrin;;Lehrbeauftragte;KathrinBialluch@web.de, >Kathrin.Bialluch@stimme-dortmund.de;; > >and on 198 line I made the same correction ... (library interpreting >more columns ...) > >3. I modified the code so that the tables, the tables are split at page >breaks. >eg: >\def\bfilehook{\setupTABLE[split=3Dyes]\bTABLE} > > >Will now compile properly. I hope that everything will be OK ... >To Your address I am sending corrected files (as attachment) ..., to >conference I am sending only plain text... >Rejoice in my library, I hope they will serve well ... > >Jarda Hajtmar > > > > >Re: [NTG-context] scancsv.lua.eml > >P=F8edm=ECt: >Re: [NTG-context] scancsv.lua >Od: >"Daniel Grycman" >Datum: >26 Sep 2010 22:46:19 +0200 > >Komu: >hajtmar@gyza.cz > > >Dne 26.9.2010 22:46, Daniel Grycman napsal(a): >> >> Re: [NTG-context] scancsv.lua.eml >> >> P=F8edm=ECt: >> Re: [NTG-context] scancsv.lua >> Od: >> "Daniel Grycman" >> Datum: >> 26 Sep 2010 22:46:19 +0200 >> >> Komu: >> hajtmar@gyza.cz >> >> >> Hello Jaroslav, >> >> the files attached. The csv lines (181-183) are commented in the source. >> >> Daniel >> >> On 26.09.10 22:38, "Jaroslav Hajtmar" wrote: >> >> = >>> >Hello Daniel. >>> >Send me your source code (or minimal example which has an error) and >>>CSV >>> >file too (or minimal example ...if it possible)... >>> >I try to find out where the problem is >>> > >>> >Jaroslav >>> > >>> > >>> > >>> > >>> > >>> >Dne 26.9.2010 22:31, Daniel Grycman napsal(a): >>> = >>>> >> 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 >>>> >> = > >__________________________________________________________________________ >_________ >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 >__________________________________________________________________________ >_________ ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________