From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84690 Path: news.gmane.org!not-for-mail From: john Culleton Newsgroups: gmane.comp.tex.context Subject: Spelling out chapter numbers for novels. Date: Wed, 9 Oct 2013 15:27:18 -0400 Organization: WexfordPress Message-ID: <20131009152718.2c21535c@localb.wexfordpress.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1381346843 27340 80.91.229.3 (9 Oct 2013 19:27:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Oct 2013 19:27:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 09 21:27:28 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VTzPr-0001CK-Cq for gctc-ntg-context-518@m.gmane.org; Wed, 09 Oct 2013 21:27:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3EC12101EB; Wed, 9 Oct 2013 21:24:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TU6enfMMNPJa; Wed, 9 Oct 2013 21:24:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 5A850101E5; Wed, 9 Oct 2013 21:24:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CA456101E5 for ; Wed, 9 Oct 2013 21:24:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 1GWtCTUvr2bz for ; Wed, 9 Oct 2013 21:24:49 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 4BB1C101DE for ; Wed, 9 Oct 2013 21:24:49 +0200 (CEST) Original-Received: from qmta02.emeryville.ca.mail.comcast.net (qmta02.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:43:76:96:30:24]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r99JRIrd031955 for ; Wed, 9 Oct 2013 21:27:20 +0200 Original-Received: from omta22.emeryville.ca.mail.comcast.net ([76.96.30.89]) by qmta02.emeryville.ca.mail.comcast.net with comcast id b5wB1m0091vN32cA27TJK5; Wed, 09 Oct 2013 19:27:18 +0000 Original-Received: from localb.wexfordpress.net ([68.50.233.152]) by omta22.emeryville.ca.mail.comcast.net with comcast id b7TG1m00C3HwwZ88i7TGNn; Wed, 09 Oct 2013 19:27:17 +0000 X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.10; x86_64-unknown-linux-gnu) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1381346838; bh=FfIJx+LW+Sl4hU+ul3yNQrYZbp16qLRPEk0UGVaoDoE=; h=Received:Received:Date:From:To:Subject:Message-ID:Mime-Version: Content-Type; b=OrVglIbxzk75IsipWIdCY4td7HXkwB3pZBBumMb1WFfQrCj0+i/EwJmpsr5tjsOxP 9cjLBHl8aXaaLbRMKb20CH5jqH3QPOaJJL2x6IkWDn0mv6QJM0ucmm/AZHjq4Y8rgj t36KWt6OSF4sd6XwbdRFVojNcmolEm63zLxvxsdxhqnOAUNGSz2NZNWgOFOQsW6Y/l dPfqzxbelKXh2r/HvDQGoREndv1jdAeluWG8F7z7Zqc1DUojRn4Z20Lyt3LVePG3pq dCaPATUSS/EhYBZy3wBxo/CqCANV8vR8huhfW1YNjdblD0+egStbYqZJpPfikEJKqL SYiPzItuxptjw== X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2001:558:fe2d:43:76:96:30:24; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03Kz7rjTN - 45daf0f593a0 - 20131009 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84690 Archived-At: It is now fashionable in the U.S. (and maybe elsewhere) to use a spelled-out chapter number in novels. Not finding a function to convert from a number register to a text string I created a brute force file that looks like this: ------------------------------ \def\chapstring{\ifcase\currentheadnumber\or One\or Two\or Three\or Four\or Five\or Six\or Seven\or Eight\or Nine\or Ten\or ... Ninety-eight\or Ninety-nine\else One hundred\fi} -------------------------------- This file enables authors to rearrange chapters without worrying about renumbering the chapters since it depends on \currentheadnumber. I wonder if there is a function in Context or elsewhere that does this for me? If not, anyone who wants the complete file can write me for a copy. It might save you ten minutes or so :<) -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: "Create Book Covers with Scribus" available at http://www.booklocker.com/books/4055.html ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________