From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26000 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: unic-037 Date: Thu, 16 Feb 2006 20:06:22 +0100 Message-ID: References: <43F44AF4.2020002@comp.lancs.ac.uk> <43F48A16.4080203@wxs.nl> <43F4C692.4060705@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1140117077 7279 80.91.229.2 (16 Feb 2006 19:11:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Feb 2006 19:11:17 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 16 20:11:08 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org 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 1F9oWu-0005km-DT for gctc-ntg-context-518@m.gmane.org; Thu, 16 Feb 2006 20:11:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F070C12778; Thu, 16 Feb 2006 20:11:03 +0100 (CET) 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 10159-01; Thu, 16 Feb 2006 20:11:03 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 45D7D127B0; Thu, 16 Feb 2006 20:06:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5605D127B0 for ; Thu, 16 Feb 2006 20:06:26 +0100 (CET) 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 09915-02 for ; Thu, 16 Feb 2006 20:06:25 +0100 (CET) Original-Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.201]) by ronja.ntg.nl (Postfix) with SMTP id 26AB41278F for ; Thu, 16 Feb 2006 20:06:24 +0100 (CET) Original-Received: by xproxy.gmail.com with SMTP id t5so133113wxc for ; Thu, 16 Feb 2006 11:06:23 -0800 (PST) Original-Received: by 10.70.60.18 with SMTP id i18mr14126wxa; Thu, 16 Feb 2006 11:06:22 -0800 (PST) Original-Received: by 10.70.72.4 with HTTP; Thu, 16 Feb 2006 11:06:22 -0800 (PST) Original-To: mailing list for ConTeXt users In-Reply-To: <43F4C692.4060705@elvenkind.com> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:26000 Archived-At: On 2/16/06, Taco Hoekwater wrote: > luigi scarso wrote: > > 2) \ifcase\numexpr(#1+1)\or %% a trick to avoid #1=000 > > seem to works , > > \ifcase\numexpr(#1+0) %% > > no > > Why? > > I am not sure what you want and what exactly doesn't work, > but it is better to use numexpr like this: > > \ifcase \numexpr #1+0\relax > because the closing ) does not actually cause it to stop > scanning forward (it stops in the first case because the > \or cannot be part of \numexpr). Done However any unic-xxx.tex have this line, and I try to make the same thing. unic-001.tex has \ifcase\numexpr(#1+1)\or \Amacron \or So if #1 = 000 then we jump to \Amacron and this is ok. In unic-037.tex \ifcase\numexpr #1\relax % \unicodeLightHorizontal\or \unicodeHeavyHorizontal\or with #1=001 I jump to \unicodeLightHorizontal first (and this is wrong) and then to \unicodeHeavyHorizontal (and this is ok) With \ifcase\numexpr #1+1\relax % \unicodeLightHorizontal\or \unicodeHeavyHorizontal\or with #1=001 I jump \unicodeHeavyHorizontal (and this is ok)