ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jaroslav Hajtmar <hajtmar@gyza.cz>
To: ntg-context@ntg.nl
Subject: Re: issue with t-scancsv.lua
Date: Mon, 08 Dec 2014 13:56:47 +0100	[thread overview]
Message-ID: <5485A00F.3040600@gyza.cz> (raw)
In-Reply-To: <54859BB0.1060906@gmx.es>

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

___________________________________________________________________________________
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:[~2014-12-08 12:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-08 12:38 Pablo Rodriguez
2014-12-08 12:56 ` Jaroslav Hajtmar [this message]
2014-12-08 16:21   ` Pablo Rodriguez
2014-12-08 23:45     ` Jaroslav Hajtmar
2014-12-10 19:40       ` Pablo Rodriguez

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=5485A00F.3040600@gyza.cz \
    --to=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).