From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/23456 Path: news.gmane.org!not-for-mail From: Duncan Hothersall Newsgroups: gmane.comp.tex.context Subject: Re: Index Date: Mon, 14 Nov 2005 13:13:17 +0000 Message-ID: <43788D6D.5050500@capdm.com> References: <20051110221209.7525512828@ronja.ntg.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1131974180 18403 80.91.229.2 (14 Nov 2005 13:16:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Nov 2005 13:16:20 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 14 14:16:10 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 1EbeA6-00079Y-Ka for gctc-ntg-context-518@m.gmane.org; Mon, 14 Nov 2005 14:14:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E1045127CC; Mon, 14 Nov 2005 14:14:17 +0100 (CET) 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 17133-02; Mon, 14 Nov 2005 14:14:12 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0AA30127BD; Mon, 14 Nov 2005 14:14:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0FD00127BD for ; Mon, 14 Nov 2005 14:14:11 +0100 (CET) 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 17035-04-2 for ; Mon, 14 Nov 2005 14:14:10 +0100 (CET) Original-Received: from liszt-12.ednet.co.uk (liszt-12.ednet.co.uk [212.20.226.36]) by ronja.ntg.nl (Postfix) with ESMTP id 12303127B3 for ; Mon, 14 Nov 2005 14:14:09 +0100 (CET) Original-Received: from lynx.capdm.com (unknown [212.20.255.162]) by liszt-12.ednet.co.uk (Postfix) with ESMTP id 7DCDE1BE405 for ; Mon, 14 Nov 2005 13:14:09 +0000 (GMT) Original-Received: from localhost (localhost [127.0.0.1]) by lynx.capdm.com (Postfix) with ESMTP id 974A924B14 for ; Mon, 14 Nov 2005 13:20:36 +0000 (GMT) Original-Received: from [192.168.254.41] (unknown [192.168.254.41]) by lynx.capdm.com (Postfix) with ESMTP id 3C69F1C54D for ; Mon, 14 Nov 2005 13:20:35 +0000 (GMT) User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: <20051110221209.7525512828@ronja.ntg.nl> 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:23456 Archived-At: Hans, many thanks for the recent fixes on index sorting in the new ruby scripts. Can I offer another test file in which some errors still show up, in the hope that these too can be ironed out? The following shows two problems, culled from a much bigger project. It should be clear from the output what the problems are, but basically 1. there are three separate spans (\startregister...\stopregister pairs) with the same term content ("these three separate spans coalesce") which get coalesced into one strange a-b-c-d span, despite having been given different sort keys (I added numbers to the end of the sort keys to differentiate them). 2. there are three refs and a span all with the same term content ("these mixed refs and spans are in the wrong order"), and they get sorted into the wrong order in the output (the span comes before the refs, despite coming after in page order). So in my output, my index page at the back has the following content: these mixed refs and spans are in the wrong order 1/12=961/13, 1/2, 1/10, 1/14 these three separate spans coalesce 1/1=961/2=961/5=961/7 whereas what I'd hope to see is: these mixed refs and spans are in the wrong order 1/2, 1/10, 1/12=961/13, 1/14 these three separate spans coalesce 1/1=961/2, 1/3=961/5, 1/6=961/7 Really hope you can hammer out these two bugs, it would really help me! Thanks, Duncan ---- \defineregister[Index][Indices] \setupregister[Index][2,balance=3Dno,distance=3D1em,partnumber=3Dno,chapt= ernumber=3Dyes,pagestyle=3D,separator=3D/,indicator=3Dno] \starttext \startbodymatter \setuppagenumbering[state=3Dstart,alternative=3D{singlesided,doublesided}= , location=3Dbottom,way=3Dbychapter,partnumber=3Dno, chapternumber=3Dyes,numberseparator=3D{/}] \chapter{Economic Concepts, Issues and Tools} \input knuth\par {\bf ttssc span 1 starts} \startregister[Index][these three separate spans coalesce1]{these three separate spans coalesce}% \dorecurse{4}{\input knuth\par} {\bf ttssc span 1 stops} \stopregister[Index][these three separate spans coalesce1]% \input knuth {\bf tmrasaitwo ref 1} \Index[these mixed refs and spans are in the wrong order1]{these mixed refs and spans are in the wrong order}% \dorecurse{4}{\input knuth\par} {\bf ttssc span 2 starts} \startregister[Index][these three separate spans coalesce2]{these three separate spans coalesce}% \dorecurse{8}{\input knuth\par} {\bf ttssc span 2 stops} \stopregister[Index][these three separate spans coalesce2]% \dorecurse{4}{\input knuth\par} {\bf ttssc span 3 starts} \startregister[Index][these three separate spans coalesce3]{these three separate spans coalesce}% \dorecurse{5}{\input knuth\par} {\bf ttssc span 3 stops} \stopregister[Index][these three separate spans coalesce3]% \dorecurse{8}{\input knuth\par} \input knuth {\bf tmrasaitwo ref 2} \Index[these mixed refs and spans are in the wrong order2]{these mixed refs and spans are in the wrong order}% \dorecurse{8}{\input knuth\par} {\bf tmrasaitwo span 1 starts} \startregister[Index][these mixed refs and spans are in the wrong order3]{these mixed refs and spans are in the wrong order}% \dorecurse{4}{\input knuth\par} {\bf tmrasaitwo span 1 stops} \stopregister[Index][these mixed refs and spans are in the wrong order3]% \dorecurse{4}{\input knuth\par} \input knuth {\bf tmrasaitwo ref 3} \Index[these mixed refs and spans are in the wrong order4]{these mixed refs and spans are in the wrong order}% \dorecurse{3}{\input knuth\par} \stopbodymatter \startbackmatter \chapter{Index} \setuppagenumbering[numberseparator=3D/]\placeIndex\page[yes] \stopbackmatter \stoptext ----