From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85158 Path: news.gmane.org!not-for-mail From: "honyk" Newsgroups: gmane.comp.tex.context Subject: Re: Index - ranges Date: Fri, 8 Nov 2013 20:53:57 +0100 Message-ID: <34741.1060393371$1383940474@news.gmane.org> References: <007801cedc04$43767660$ca636320$@tosovsky@email.cz> 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 1383940464 14287 80.91.229.3 (8 Nov 2013 19:54:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Nov 2013 19:54:24 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 08 20:54:29 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 1Ves8Q-0000tB-Bq for gctc-ntg-context-518@m.gmane.org; Fri, 08 Nov 2013 20:54:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 612EA10260; Fri, 8 Nov 2013 20:54:25 +0100 (CET) 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 PT08AjObikOh; Fri, 8 Nov 2013 20:54:23 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 58EB7101FB; Fri, 8 Nov 2013 20:54:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1DCDC101FB for ; Fri, 8 Nov 2013 20:54:22 +0100 (CET) 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 UCsQ5E8RofNT for ; Fri, 8 Nov 2013 20:54:21 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 50A14101F8 for ; Fri, 8 Nov 2013 20:54:20 +0100 (CET) Original-Received: from fep19.mx.upcmail.net (fep19.mx.upcmail.net [62.179.121.39]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rA8JsJMp029717 for ; Fri, 8 Nov 2013 20:54:19 +0100 Original-Received: from edge02.upcmail.net ([192.168.13.237]) by viefep19-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20131108195419.RDY22774.viefep19-int.chello.at@edge02.upcmail.net> for ; Fri, 8 Nov 2013 20:54:19 +0100 Original-Received: from emk ([89.176.227.177]) by edge02.upcmail.net with edge id n7tv1m0123qH4k9027uKUu; Fri, 08 Nov 2013 20:54:19 +0100 X-SourceIP: 89.176.227.177 In-Reply-To: <007801cedc04$43767660$ca636320$@tosovsky@email.cz> X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac7cBEDUlNgan24oS22bDAP2MuYbFwAr39wg Content-Language: cs X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=62.179.121.39; country=AT; latitude=47.3333; longitude=13.3333; http://maps.google.com/maps?q=47.3333,13.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WKL7SjmM - 3d4558936682 - 20131108 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:85158 Archived-At: On 2013-11-07 honyk wrote: > > 1) when a range for my subject index entry is specified and the text > between doesn't overflow to the next page, even in this case > the range of pages 1-1 is created. Is there any option to normalize > it to a single page number? > > \startregister[index][range_01]{primary} > Dummy text. > \stopregister[index][range_01] It is rare, but any help to eliminate it completely is appreciated. > 2) when ranges are used heavily, confusing results are produced. In > following examples I would expect a single range 1-6: > a) 1-3, 3-6 > b) 1-6, 2-4 > c) 1-6, 5-6 This one was caused by improper Docbook => dbcontext => ConTeXt conversion. All ranges of secondaries were treated as primaries so they were collected at primaries. After fixing the XSLT such cases dissapeared completely. Great. This would be a blocker for me. > 3) when several single index entries are used on consecutive pages, the > result 1,2,3,4,5 is produced. Is there any option to create a range > from this? I'm reconsidering this now. I designed my 'subject' index to use ranges when the subject is thoroughly explained, which obviously needs to define beginning and end. On the contrary, when the subject is just mentioned (above the threshold of importance), I inserted just a single index entry instance. Collecting these single instances into the range of e.g. 1-5 would bring false expectations that the subject is thoroughly explained there... This logic goes slightly against the case (1). When the range would be collapsed into to a single value, we would loose the info that the subject is described here. But it looks weird. Jan ___________________________________________________________________________________ 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 ___________________________________________________________________________________