[NTG-context] issue with t-scancsv.lua

Jaroslav Hajtmar hajtmar at gyza.cz
Mon Dec 8 13:56:47 CET 2014


Hello Pablo.
What do you think of this solution:

\usemodule[scancsv]

\setuppapersize[C6, landscape]
\setuppagenumbering[location=]

\unexpanded\def\lineaction{
\edef\lcA{\lowercase{\cA}}
\edef\ucB{\uppercase{\cB}}
cA: \cA -- lowercase cA: \lcA\crlf
cB: \cB -- upercase cB: \ucB\crlf
cC: \cC -- cD: \cD\crlf

\lowercase{AAAA}\crlf
\uppercase{bbbb}\crlf
\page
}

\setsep{;}
\setfiletoscan{mailmergedatatable.csv}

\starttext
     \filelineaction
\stoptext


I greet you

Jaroslav Hajtmar


Dne 8.12.2014 13:38, Pablo Rodriguez napsal(a):
> Hello Jaroslav,
>
> I have discovered that it is impossible to change letter cases with
> fields imported with t-scancsv.lua.
>
> Here you have a sample:
>
> \usemodule[scancsv]
>
> \setuppapersize[C6, landscape]
> \setuppagenumbering[location=]
>
> \unexpanded\def\lineaction{
> \lowercase{\cA}\crlf
> \uppercase{\cB}\crlf
> \cC--\cD\crlf
>
> \lowercase{AAAA}\crlf
> \uppercase{bbbb}\crlf
> \page
> }
>
> \setsep{;}
> \setfiletoscan{mailmergedatatable.csv}
>
> \starttext
>      \filelineaction
> \stoptext
>
> The contents of mailmergedatatable.csv would be:
>
> name;address;postcode;city;
> ME;STREET;0000;HERE;
> You;Square;9999;There;
>
> Would it be a way to avoid this?
>
> Many thanks for your help,
>
>
> Pablo



More information about the ntg-context mailing list