From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62270 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: two buglets Date: Sun, 3 Oct 2010 10:24:40 +0200 Message-ID: References: <4B743BBE.2050307@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1286094310 27533 80.91.229.12 (3 Oct 2010 08:25:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Oct 2010 08:25:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 03 10:25:08 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 1P2JsY-0005VD-K6 for gctc-ntg-context-518@m.gmane.org; Sun, 03 Oct 2010 10:25:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 09245CA6EA; Sun, 3 Oct 2010 10:25:06 +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 xDlljuc5k17j; Sun, 3 Oct 2010 10:25:02 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE8FCCA6DE; Sun, 3 Oct 2010 10:25:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BDE2DCA6DE for ; Sun, 3 Oct 2010 10:24:59 +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 9mE8HEVnwZSd for ; Sun, 3 Oct 2010 10:24:57 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 39E7ECA6DB for ; Sun, 3 Oct 2010 10:24:57 +0200 (CEST) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o938OuSa031954 for ; Sun, 3 Oct 2010 10:24:56 +0200 Original-Received: from [87.178.39.169] (account tschmit1@uni-bonn.de HELO [192.168.0.2]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.2.12) with ESMTPA id 46771192 for ntg-context@ntg.nl; Sun, 03 Oct 2010 10:24:55 +0200 In-Reply-To: <4B743BBE.2050307@wxs.nl> X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07De8oUtI - 10e304dd1114 - 20101003 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 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:62270 Archived-At: Hi all, Hans, On Feb 11, 2010, at 6:17 PM, Hans Hagen wrote: >> 1. index sorts uppercase letters after lowercase letters. Minimal example: >> >> \starttext >> >> \index{Aardvark}Aardvark >> >> \index{azygous}azygous >> >> \page >> >> \setupregister[index][n=1] >> \placeregister[index] >> >> \stoptext >> >> I would expect azygous to follow Aardvark, but it is sorted before. > > > are you sure that that's the convention for english? it's easy to change it ... > > \startluacode > sorters.mappings['en'] = { > ["a"] = 2, ["b"] = 4, ["c"] = 6, ["d"] = 8, ["e"] = 10, > ["f"] = 12, ["g"] = 14, ["h"] = 16, ["i"] = 18, ["j"] = 20, > ["k"] = 22, ["l"] = 24, ["m"] = 26, ["n"] = 28, ["o"] = 30, > ["p"] = 32, ["q"] = 34, ["r"] = 36, ["s"] = 38, ["t"] = 40, > ["u"] = 42, ["v"] = 44, ["w"] = 46, ["x"] = 48, ["y"] = 50, > ["z"] = 52, > ["A"] = 1, ["B"] = 3, ["C"] = 5, ["D"] = 7, ["E"] = 9, > ["F"] = 11, ["G"] = 13, ["H"] = 15, ["I"] = 17, ["J"] = 19, > ["K"] = 21, ["L"] = 23, ["M"] = 25, ["N"] = 27, ["O"] = 29, > ["P"] = 31, ["Q"] = 33, ["R"] = 35, ["S"] = 37, ["T"] = 39, > ["U"] = 41, ["V"] = 43, ["W"] = 45, ["X"] = 47, ["Y"] = 49, > ["Z"] = 51, > } > \stopluacode > > \starttext > \index{Aardvark}Aardvark \par > \index{azygous}azygous > \placeregister[index][n=1] > \stoptext > we had this pretty old thread about sorting in indexes. AFAICS, the latest beta defaults to cases-sensitive sorting. Two quick questions: 1. Is there a setup command that will make index sorting case-insensitive? The code above doesn't work anymore, so maybe you made it user-configurable now? 2. Is it really a good idea to make case-sensitive sorting the default in English? I can't remember seeing a single academic book in English that has this sort of index sorting. All best Thomas ___________________________________________________________________________________ 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 ___________________________________________________________________________________