From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34290 Path: news.gmane.org!not-for-mail From: Robin Kirkham Newsgroups: gmane.comp.tex.context Subject: Re: page numbering in words? Date: Mon, 16 Apr 2007 22:52:12 +1000 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1176727965 12937 80.91.229.12 (16 Apr 2007 12:52:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 16 Apr 2007 12:52:45 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 16 14:52:38 2007 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 lo.gmane.org with esmtp (Exim 4.50) id 1HdQhB-0001EW-Nb for gctc-ntg-context-518@m.gmane.org; Mon, 16 Apr 2007 14:52:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 232062019E; Mon, 16 Apr 2007 14:52:37 +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 31834-02; Mon, 16 Apr 2007 14:52:30 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6627C20191; Mon, 16 Apr 2007 14:52:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F326220191 for ; Mon, 16 Apr 2007 14:52:27 +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 30618-05-2 for ; Mon, 16 Apr 2007 14:52:25 +0200 (CEST) Original-Received: from mx.aanet.com.au (mx.aanet.com.au [202.63.43.136]) by ronja.ntg.nl (Postfix) with ESMTP id E58652018B for ; Mon, 16 Apr 2007 14:52:24 +0200 (CEST) Original-Received: from mail.aanet.com.au (mail.aanet.com.au [202.61.184.228]) by mx.aanet.com.au (Postfix) with SMTP id 347152D741C for ; Mon, 16 Apr 2007 22:52:14 +1000 (EST) Original-Received: (qmail 6203 invoked by uid 89); 16 Apr 2007 12:52:14 -0000 Original-Received: by simscan 1.2.0 ppid: 6172, pid: 6189, t: 0.1694s scanners: attach: 1.2.0 clamav: 0.88.1/m:37/d:1390 Original-Received: from cust5289.vic01.dataco.com.au (HELO ?192.168.1.12?) (202.164.198.169) by mail.aanet.com.au with SMTP; 16 Apr 2007 12:52:14 -0000 X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:34290 Archived-At: Hi all, There are still a few problems with \numstr when you get beyond the hundreds. Perhaps this is unlikely when it is a page number, but I was interested in using this macro for contracts, where an amount of money is often written out in words. \input numstr.tex \starttext \numstr{-1}\par \numstr{0}\par \numstr{101}\par \numstr{1001}\par \numstr{1000001}\par \numstr{1200021} \stoptext This produces output: null null one hundred and one one thousand one one millionone one million two hundred thousand twenty-one which should be: minus one zero one hundred and one one thousand and one one million and one one million, two hundred thousand and twenty-one In English, the tens/units (if not zero) should be preceded by "and" if the number exceeds 100 (so 101 is correct in the above output). This applies whether the tens/units is truly tens/units, or is a thousands or millions multiplier (120000 = "one hundred and twenty thousand"). The use of a comma after millions and sometimes thousands is helpful but not essential, and it only appears in certain cases. I'll have to think a bit more about a rule for that! The use of a hyphen between tens and units ("twenty-one") is not incorrect but is nowadays probably regarded as a little old-fashioned (but personally, I like it). Best, Robin > Date: 2007-03-29 17:38 +1000 > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] page numbering in words? > cormullion.at.remove.this.mac.com wrote: > > On 2007-03-28, at 16:49.0, Zhichu Chen wrote: > > > >> I modified Wolfgang's macro as the attached file. But I'm really > >> not a native American, so there must be some special rules that > >> I've ignored. Wish you good luck. > > > > Yes - this works great now. Thank you for sorting out the TeX code, > > which is like no other language I know ;-). I've changed only one > > spelling (fourty -> forty) and the rest looks perfect. > > It would be nice if someone (one of the module tutorial attendants :-) > could wrap this command in a module for the contextgarden page. > > Cheers, > Taco >