From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22890 Path: news.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: Elided page numbers in registers Date: Thu, 06 Oct 2005 20:58:23 +0200 Message-ID: <434573CF.1090500@seznam.cz> References: <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; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1128625530 25724 80.91.229.2 (6 Oct 2005 19:05:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2005 19:05:30 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 06 21:05:26 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 1ENaxd-0002US-9n for gctc-ntg-context-518@m.gmane.org; Thu, 06 Oct 2005 20:59:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 05C3B127ED; Thu, 6 Oct 2005 20:59:21 +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 26792-01; Thu, 6 Oct 2005 20:59:20 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AAAAF127CC; Thu, 6 Oct 2005 20:57:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6AD3A127CC for ; Thu, 6 Oct 2005 20:57:18 +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 26589-05 for ; Thu, 6 Oct 2005 20:57:17 +0200 (CEST) Original-Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id 3D0D4127B0 for ; Thu, 6 Oct 2005 20:57:17 +0200 (CEST) Original-Received: (qmail 6957 invoked from network); 6 Oct 2005 18:57:16 -0000 Original-Received: from unknown (HELO ?127.0.0.1?) (vit.zyka@62.240.166.134) by cetus.go.seznam.cz with ESMTPA; 6 Oct 2005 18:57:16 -0000 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <4344FE5E.9090905@capdm.com> X-Antivirus: avast! (VPS 0540-1, 04.10.2005), Outbound message X-Antivirus-Status: Clean 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:22890 Archived-At: Duncan Hothersall wrote: > On 31 Aug I wrote: >=20 >=20 >>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).= >=20 >=20 > 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 My experience: It is not implemented in (old) texutil.pl. It is even not = implemented in simpler only-page-number case. In the code there is secret switch '$CollapseEntries', by default it is=20 off. Switching manually on leads to all index page entries collaps to=20 one (generally noncontinuous) range. The same sad result you obtain if you use startregister...stopregister pa= ir. If you know Perl it is not difficult to insert such stuff for one=20 application. It is very difficult to create a general solution. I have no (positive and deep) experience with new ruby texutil equivalent= =2E vit > (b) the code I hack is about to be replaced. >=20 > Thanks, >=20 > Duncan > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context >=20 --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D Ing. V=EDt Z=FDka, Ph.D. TYPOkv=EDtek database publishing databazove publikovani data maintaining and typesetting in typographic quality priprava dat a jejich sazba v typograficke kvalite tel.: (+420) 777 198 189 www: http://typokvitek.com =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D