From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22228 Path: news.gmane.org!not-for-mail From: Duncan Hothersall Newsgroups: gmane.comp.tex.context Subject: Elided page numbers in registers Date: Wed, 31 Aug 2005 14:28:44 +0100 Message-ID: <4315B08C.2060501@capdm.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1125495116 21466 80.91.229.2 (31 Aug 2005 13:31:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 Aug 2005 13:31:56 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 31 15:31:50 2005 Return-path: 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 1EASed-0002Ea-B3 for gctc-ntg-context-518@m.gmane.org; Wed, 31 Aug 2005 15:29:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D855A12825; Wed, 31 Aug 2005 15:29:26 +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 01476-06; Wed, 31 Aug 2005 15:29:22 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3DF451281D; Wed, 31 Aug 2005 15:29:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8D9C91281D for ; Wed, 31 Aug 2005 15:29:20 +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 01481-02 for ; Wed, 31 Aug 2005 15:29:19 +0200 (CEST) Original-Received: from liszt-11.ednet.co.uk (liszt-11.ednet.co.uk [212.20.226.53]) by ronja.ntg.nl (Postfix) with ESMTP id 18B30127C9 for ; Wed, 31 Aug 2005 15:29:18 +0200 (CEST) Original-Received: from [192.168.254.41] (unknown [212.20.255.162]) by liszt-11.ednet.co.uk (Postfix) with ESMTP id A9B9A255A99 for ; Wed, 31 Aug 2005 14:29:18 +0100 (BST) User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: ConTeXt List X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22228 Archived-At: Another question on registers (just getting into indexing!). I have a book which numbers its pages by chapter, and so page numbers are 1/1, 1/2 ... for the pages of chapter 1, and then 2/1, 2/2 ... for the pages of chapter 2. I have page ranges in my index, such as 1/1-1/3, or 2/24-2/26. I would like these ranges to be elided - in other words, the first one would read 1/1-3 (remove repeated chapter number), and the second would read 2/24-6 (remove repeated chapter number and also the repeated 2 in page number). Question: is there an already existing system to do this? I guess no :-) Followup: I would be willing to help to code this if it doesn't exist (I have some experience with such systems) if someone can point me at the right bit of code to look at (things seem to be changing around texutils, newtexexec etc. so I don't want to start at the wrong place). Thanks... Duncan