From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62466 Path: news.gmane.org!not-for-mail From: Jano Kula Newsgroups: gmane.comp.tex.context Subject: Re: change register entry separator Date: Fri, 08 Oct 2010 19:16:36 +0200 Message-ID: <4CAF51F4.4010406@tiscali.cz> References: <4CA6508E.8020401@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1286558453 31474 80.91.229.12 (8 Oct 2010 17:20:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Oct 2010 17:20:53 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 08 19:20:51 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P4Gck-0004Wj-VR for gctc-ntg-context-518@m.gmane.org; Fri, 08 Oct 2010 19:20:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3658FCA765; Fri, 8 Oct 2010 19:20:50 +0200 (CEST) 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 0kBxua8M69Q7; Fri, 8 Oct 2010 19:20:46 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E7963CA74E; Fri, 8 Oct 2010 19:20:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B8684CA74E for ; Fri, 8 Oct 2010 19:20:44 +0200 (CEST) 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 TqM3CGvK55+Q for ; Fri, 8 Oct 2010 19:20:41 +0200 (CEST) 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 A82FECA747 for ; Fri, 8 Oct 2010 19:20:41 +0200 (CEST) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o98HKeCZ003781 for ; Fri, 8 Oct 2010 19:20:41 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P4GcZ-0004Te-Rf for ntg-context@ntg.nl; Fri, 08 Oct 2010 19:20:39 +0200 Original-Received: from 249.39.broadband10.iol.cz ([90.177.39.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Oct 2010 19:20:39 +0200 Original-Received: from jano.kula by 249.39.broadband10.iol.cz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Oct 2010 19:20:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 66 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 249.39.broadband10.iol.cz User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.7) Gecko/20100720 Lanikai/3.1.1 In-Reply-To: <4CA6508E.8020401@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.91.229.12; country=NO; region=12; city=Oslo; latitude=59.9167; longitude=10.7500; http://maps.google.com/maps?q=59.9167,10.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0xDghkErC - e4270afb4c90 - 20101008 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:62466 Archived-At: Hello Hans, On 10/01/2010 11:20 PM, Hans Hagen wrote: > On 1-10-2010 12:02, Jano Kula wrote: >> Hi, >> >> any way to change register entry and subentry separator from "+" to >> something else? Preferably to kanji character, so I'm sure it will not >> appear in the text. Entries and subentries are autoflushed, so it can be >> really anything. >> >> Other way around: I substitute "+" with " PLUS " in index terms before >> writing into the index, but which command is reading the sorted index >> entries to change it back to "+" when typesetting the sorted index on >> pages? > > \setregisterentry[index] > [entries:1=..., > entries:2=..., > entries:3=..., > keys:1=..., > keys:2=..., > keys:3=..., > ... Thank you, it took me a while, to find out if this was the answer to the first or second question ;) Partly, because there is a bug somewhere, I think. If the entry with [keys:1=blue, keys:2=red] is supposed to be sorted by "blue" on the first level, and by "red" on the second, it doesn't work as expected. Instead of keys, the entries are written into the *.tuc file. Can you, please, have a look at the minimal example? Thanks, Jano \starttext \placeregister[index] \blank[3*big] \page % works \setregisterentry[index][entries=aaa,keys=bbb] page 2 \page % works \setregisterentry[index][entries:1=aaa,entries:2=bbb] page 3 \page % doesn't work % in *.tuc file the entries are written on both positions % { "aaa", "aaa" }, % { "bbb", "bbb" }, \setregisterentry[index][entries:1=aaa,entries:2=bbb,keys:1=ccc,keys:2=ddd] page 4 \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________