From: Arthur Reutenauer <arthur.reutenauer@normalesup.org>
To: hajtmar@gyza.cz, Mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: CSV parser do not processed macro.
Date: Sun, 1 Aug 2010 20:19:41 +0200 [thread overview]
Message-ID: <20100801181940.GD8951@phare.normalesup.org> (raw)
In-Reply-To: <4C54360B.1060802@gyza.cz>
> to solve my problem I need to find why my function ParseCSVdata
> incorrectly parses strings stored in a macro.
You can work around the problem by defining a Lua function that calls
the macro:
\def\parse#1{\directlua{pars("#1")}}
You can then either call it directly:
\parse{\printaction}
or from Lua with tex.print:
\startluacode
tex.print("\\parse{\\printaction}")
\stopluacode
and the macros are expanded in the order you want.
It's admittedly a bit silly, but it works.
As a side note, the infinitive of the verb related to “parser” is “to
parse” in English, with an ‘e’ at the end.
Arthur
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2010-08-01 18:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-31 14:41 Jaroslav Hajtmar
2010-08-01 18:19 ` Arthur Reutenauer [this message]
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=20100801181940.GD8951@phare.normalesup.org \
--to=arthur.reutenauer@normalesup.org \
--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).