From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22884 Path: news.gmane.org!not-for-mail From: Duncan Hothersall Newsgroups: gmane.comp.tex.context Subject: Re: Elided page numbers in registers Date: Thu, 06 Oct 2005 11:37:18 +0100 Message-ID: <4344FE5E.9090905@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 1128595155 15120 80.91.229.2 (6 Oct 2005 10:39:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2005 10:39:15 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 06 12:39:07 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 1ENT8f-00062L-4n for gctc-ntg-context-518@m.gmane.org; Thu, 06 Oct 2005 12:38:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0BC1E127EA; Thu, 6 Oct 2005 12:38:11 +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 23968-01; Thu, 6 Oct 2005 12:38:07 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1B07D127B7; Thu, 6 Oct 2005 12:38:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8D9EB127B7 for ; Thu, 6 Oct 2005 12:38:05 +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 23837-05 for ; Thu, 6 Oct 2005 12:38:04 +0200 (CEST) Original-Received: from liszt-05.ednet.co.uk (liszt-05.ednet.co.uk [212.20.226.26]) by ronja.ntg.nl (Postfix) with ESMTP id 94BA1127B0 for ; Thu, 6 Oct 2005 12:38:04 +0200 (CEST) Original-Received: from lynx.capdm.com (unknown [212.20.255.162]) by liszt-05.ednet.co.uk (Postfix) with ESMTP id 16A5D12EF50 for ; Thu, 6 Oct 2005 11:38:04 +0100 (BST) Original-Received: from localhost (localhost [127.0.0.1]) by lynx.capdm.com (Postfix) with ESMTP id EFEAA24584 for ; Thu, 6 Oct 2005 11:48:29 +0100 (BST) Original-Received: from [192.168.254.41] (unknown [192.168.254.41]) by lynx.capdm.com (Postfix) with ESMTP id A76F12457D for ; Thu, 6 Oct 2005 11:48:28 +0100 (BST) User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: ConTeXt List X-Virus-Scanned: by AMaViS 0.3.12pre8 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:22884 Archived-At: On 31 Aug I wrote: > 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). Sorry to be a pain, but can anyone help with this? I'm converting a legacy system, in which everything (cross referencing, tables of contents, indices) was hand-coded in plain tex and Perl, across to ConTeXt. The advantage of having hand-coded the indexing stuff was that I could easily add features like eliding, or funny sort orders. I now need to reproduce the same output. I suspect I could apply the same techniques to the ConTeXt code, but I don't want to embark on a fool's errand if (a) it's already done somewhere, or (b) the code I hack is about to be replaced. Thanks, Duncan