From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21697 Path: news.gmane.org!not-for-mail From: "luigi.scarso" Newsgroups: gmane.comp.tex.context Subject: \type ,\meaning eror check Date: Fri, 29 Jul 2005 09:06:30 +0200 Message-ID: <42E9D576.5060303@logosrl.it> References: <42E7B637.2010502@wxs.nl> <1122609153.26434.5.camel@localhost.localdomain> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1122620933 19884 80.91.229.2 (29 Jul 2005 07:08:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2005 07:08:53 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 29 09:08:52 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DyOz2-000295-5E for gctc-ntg-context-518@m.gmane.org; Fri, 29 Jul 2005 09:08:40 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D8A4D12829; Fri, 29 Jul 2005 09:08:39 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02416-07; Fri, 29 Jul 2005 09:08:39 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A054C12822; Fri, 29 Jul 2005 09:06:44 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4E14F12822 for ; Fri, 29 Jul 2005 09:06:43 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02417-03-2 for ; Fri, 29 Jul 2005 09:06:42 +0200 (CEST) Original-Received: from ServerNotes.logosrl.it (unknown [81.208.99.91]) by ronja.ntg.nl (Postfix) with ESMTP id 6A6BE1281D for ; Fri, 29 Jul 2005 09:06:42 +0200 (CEST) Original-Received: from [192.168.2.85] ([192.168.2.85]) by ServerNotes.logosrl.it (Lotus Domino Release 6.5.1) with ESMTP id 2005072909064169-1283 ; Fri, 29 Jul 2005 09:06:41 +0200 User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <1122609153.26434.5.camel@localhost.localdomain> X-MIMETrack: Itemize by SMTP Server on ServerNotes/Logo(Release 6.5.1|January 21, 2004) at 29/07/2005 09.06.41, Serialize by Router on ServerNotes/Logo(Release 6.5.1|January 21, 2004) at 29/07/2005 09.06.42 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21697 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21697 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=3D\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=F2=E0=E0}\framed{wrong framed macros}} \startArticle[description=3D{{\bf Ho=F2a=E0}\framed{ok framed macro}}] \startArticle[description=3D{{\bf Ho=F2a=E0}\Framed{WRONG framed macro}}] \stoptext %-------------------------------------------------------------------- where o=F2 :=3D {o\`o} a=E0 :=3D {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: =F2 (ie {\`o} ) is not sho= w. thanks in advance luigi