From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28812 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Peter_M=FCnster?= Newsgroups: gmane.comp.tex.context Subject: \hexstringtonumber{..} Date: Sat, 24 Jun 2006 17:29:44 +0200 (CEST) Message-ID: Reply-To: ntg-context@ntg.nl 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 1151163069 25161 80.91.229.2 (24 Jun 2006 15:31:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Jun 2006 15:31:09 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 24 17:31:06 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 1FuA6E-0003FI-18 for gctc-ntg-context-518@m.gmane.org; Sat, 24 Jun 2006 17:31:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 032931283D; Sat, 24 Jun 2006 17:31:06 +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 13401-06; Sat, 24 Jun 2006 17:31:00 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 51DCE12848; Sat, 24 Jun 2006 17:31:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2094E12848 for ; Sat, 24 Jun 2006 17:30:57 +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 14026-01 for ; Sat, 24 Jun 2006 17:30:55 +0200 (CEST) Original-Received: from smtp.cegetel.net (mf00.sitadelle.com [212.94.174.67]) by ronja.ntg.nl (Postfix) with SMTP id 8BFDA1283D for ; Sat, 24 Jun 2006 17:30:55 +0200 (CEST) Original-Received: from gaston.pm (unknown [84.7.255.52]) by smtp.cegetel.net (Postfix) with ESMTP id 045351A4B8C for ; Sat, 24 Jun 2006 17:30:49 +0200 (CEST) Original-Received: by gaston.pm (Postfix, from userid 500) id 7E5DA13C021; Sat, 24 Jun 2006 17:29:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by gaston.pm (Postfix) with ESMTP id 379CC14801A for ; Sat, 24 Jun 2006 17:29:44 +0200 (CEST) X-X-Sender: peter@gaston.pm Original-To: ConTeXt list 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:28812 Archived-At: Hello Hans, what is the purpose of \hexstringtonumber{..}? I would expect something like: \unprotect \setvalue{@@uc@@a}{10} \setvalue{@@uc@@A}{10} \setvalue{@@uc@@b}{11} \setvalue{@@uc@@B}{11} \setvalue{@@uc@@c}{12} \setvalue{@@uc@@C}{12} \setvalue{@@uc@@d}{13} \setvalue{@@uc@@D}{13} \setvalue{@@uc@@e}{14} \setvalue{@@uc@@E}{14} \setvalue{@@uc@@f}{15} \setvalue{@@uc@@F}{15} \def\dohexstringtonumber#1#2% FF {\the\numexpr\csname @@uc@@#1\endcsname * 16 + \csname @@uc@@#2\endcsname\relax} \protect \starttext \hexstringtonumber{1E} \hexstringtonumber{f5} \stoptext But your version just adds a " to the string... Cheers, Peter -- http://pmrb.free.fr/contact/