ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "luigi.scarso" <luigi.scarso@logosrl.it>
Subject: \type ,\meaning eror check
Date: Fri, 29 Jul 2005 09:06:30 +0200	[thread overview]
Message-ID: <42E9D576.5060303@logosrl.it> (raw)
In-Reply-To: <1122609153.26434.5.camel@localhost.localdomain>

I have this problem:

%% test.tex
%-save this with utf-8 encoding--------------
\language[it]
\enableregime[utf]
\newif\ifArticleError
%%
\def\startArticle[#1]{%
\getparameters[ARTICLE][#1]
\setbox101=\vbox{%
\csname ARTICLEdescription\endcsname%
}
%% here some sorts of checking
%% if there are some errors
%% while expanding
%% \csname ARTICLEdescription\endcsname ;
%% check will change state of \ifArticleError
%%
\ifArticleError
%%  errors:
%% typescript macros \ARTICLEdescription
\type{description:}%
\edef\T{\expandafter%
\meaning\csname ARTICLEdescription\endcsname}%
\aftersplitstring \T \at>\to\Temp%
\expandafter\type\expandafter{\Temp}%
\else %% else ok
\type{OK}%
\fi
}
%%
\starttext
{{\bf Hòàà}\framed{wrong  framed macros}}
\startArticle[description={{\bf Hoòaà}\framed{ok  framed macro}}]
\startArticle[description={{\bf Hoòaà}\Framed{WRONG  framed macro}}]
\stoptext
%--------------------------------------------------------------------

where
oò := {o\`o}
aà := {a\`a}

compile it with
$>texexec --pdf --batch test.tex

Problems

   1. i dont't know how to make checking
   2. \type does not combine well with \meaning: ò (ie {\`o} ) is not show.

thanks in advance

luigi

  parent reply	other threads:[~2005-07-29  7:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-27 16:28 new minimals Hans Hagen
2005-07-28  9:51 ` Taco Hoekwater
2005-07-29  3:52 ` Stuart Jansen
2005-07-29  6:37   ` Hans Hagen
2005-07-29  7:06   ` luigi.scarso [this message]
2005-07-29  8:32     ` \type ,\meaning eror check Taco Hoekwater
2005-07-29  9:13       ` luigi.scarso
2005-07-29  9:28         ` Taco Hoekwater
2005-07-29  9:42           ` luigi.scarso
2005-07-31 21:11     ` Hans Hagen

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=42E9D576.5060303@logosrl.it \
    --to=luigi.scarso@logosrl.it \
    --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).