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`\_=12
\catcode`\%=12
\catcode`\&=12
\catcode`\@=12
% 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=yes]\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ředmět:
Re: [NTG-context] scancsv.lua
Od:
"Daniel Grycman"
Re: [NTG-context] scancsv.lua.eml
Předmět: 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