You can add “commentchar=\letterpercent” to your separatedlist definition which will make % the character for comments, the setups hack isn’t necessary.
Wolfgang
On 21.01.2014 23:13:25, Joshua Krämer <joshua.kraemer@gmail.com> wrote:
Am Tue, 21 Jan 2014 17:51:17 +0100
schrieb Hans Hagen <pragma@wxs.nl>:
> has to do with catcode changes so % is no longer %
Thanks for the hint. I have tried to do it like that (from Mojca
Miklavec's "My Way"):
\usemodule[database]
\unprotect
\startsetups Data:unix
\catcode`\%=\@@comment
\stopsetups
\protect
\defineseparatedlist [Data]
[
separator=tab,
before=\bTABLE, after=\eTABLE,
first=\bTR, last=\eTR,
left=\bTD, right=\eTD,
setups=unix
]
\starttext
\startData
% time LG LG-SD HG HG-SD p
24 0.74 0.36 1.19 0.51 0.15
48 0.90 0.65 1.45 0.54 0.21
72 1.23 0.35 1.59 0.59 0.27
\stopData
\stoptext
... but still, context stops with an error. I have also tried to use
\# like in the My Way example without success.
Is this supposed to work?
Kind regards,
Joshua Krämer
___________________________________________________________________________________
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
___________________________________________________________________________________