Hi,

Here is a quick hack that converts csv to commalist values.
Perhaps it helpful for someone. Documentation blurb:


 This module parses CSV data (somewhat) safely. After

 \def\dataline{a,,\j,a",a\j a",t{f},",","""","a""b"}
 \convertcsvdata\dataline\to \myascii
 \message{\meaning\myascii}

 output is:

 macro:->{a},{},{\j },{a"},{a\j a"},{t{f}},{,},{"},{a"b}

 The result is detokenized, like would be with \type{\convertargument}.
 Therefore, you will need to run \type{\scantokens} over the list
 items if the CVS data was actually \TeX{} code.

Cheers,
Taco

Attachment: t-asciidata.tex
Description: TeX document

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to