ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Daniel Grycman" <daniel.grycman@rub.de>
To: hajtmar@gyza.cz, "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: scancsv.lua
Date: 27 Sep 2010 01:38:24 +0200	[thread overview]
Message-ID: <C8C5A41A.128A%daniel.grycman@rub.de> (raw)
In-Reply-To: <4C9FC6C3.6020006@gyza.cz>

Hello Jaroslav,

everything works fine :-).

Daniel

On 27.09.10 00:18, "Jaroslav Hajtmar" <hajtmar@gyza.cz> 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`\_=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" <daniel.grycman@rub.de>
>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ředmět:
>> Re: [NTG-context] scancsv.lua
>> Od:
>> "Daniel Grycman" <daniel.grycman@rub.de>
>> 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"<hajtmar@gyza.cz>  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 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
___________________________________________________________________________________


  reply	other threads:[~2010-09-26 23:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <C8C57D1A.1279%daniel.grycman@rub.de>
2010-09-26 22:18 ` scancsv.lua Jaroslav Hajtmar
2010-09-26 23:38   ` Daniel Grycman [this message]
2010-09-26 20:31 scancsv.lua Daniel Grycman
2010-09-26 20:38 ` scancsv.lua Jaroslav Hajtmar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C8C5A41A.128A%daniel.grycman@rub.de \
    --to=daniel.grycman@rub.de \
    --cc=hajtmar@gyza.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).