23 Apr
2006
23 Apr
'06
7:15 p.m.
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