From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4121 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Number conversions (Was Re: My ideas for tooltips) Date: Mon, 19 Feb 2001 12:18:26 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010219121826.017fd480@server-1> References: <00a301c096d2$0f28bb00$a3ccfea9@nuovo> <007b01c09806$6306f540$a3ccfea9@nuovo> <3A8D1B4E.C1394A13@elvenkind.com> <01021622452908.00577@bilbo> <3A8EB3FC.A882C793@quicknet.nl> <000501c0992c$f7eeb180$a3ccfea9@nuovo> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394811 23102 80.91.224.250 (23 Oct 2002 17:40:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:40:11 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Taco Hoekwater In-Reply-To: <3A8F092C.DA3381D0@quicknet.nl> Xref: main.gmane.org gmane.comp.tex.context:4121 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4121 At 12:28 AM 2/18/01 +0100, Taco Hoekwater wrote: >Giuseppe Bilotta wrote: >> >> Taco wrote: >> > >> > It is *possible* btw. that the example tooltip worked ok just because >> > of that. I don't think I have the math core patch installed on this >> > machine. >> > >> >> Nope. I'm using pdfeTeX in extended mode too, same version as you. Rats. > >Maybe I *do* have the math patch installed then? Anyway, my context >deviates from the distribution regularly ;) > > >... and now for something completely different ... > > >I needed some extensions to the number conversions provided by context >(like character conversion for numbers > 26, which is broken :() nd >the attached file is what I came up with. It's rough, but maybe someone >will be interested enough to make requests? Here's a usage example/demo >(\maxcount == TeX's max integer divided by 26): I'l have a look at it. A few (quick) remarks: - is the commalist really needed? - can we use etex expr to create a fully expandable alternative also: - i will encapsulate this into something \define [wang lei and i are working on some unicode remapping commands and fully expandable converters are really needed in some cases; this is why \(C|c)haracter(s) cannot be replaced that easily). Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------