From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97727 Path: news.gmane.org!.POSTED!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: understanding index sorting Date: Sat, 1 Apr 2017 16:51:34 -0400 Message-ID: <285c2ac7-6a90-7d7b-2441-579a4dbaa85b@rik.users.panix.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8881201181075531641==" X-Trace: blaine.gmane.org 1491079941 19396 195.159.176.226 (1 Apr 2017 20:52:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 1 Apr 2017 20:52:21 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 01 22:52:18 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuQ0K-0004Ih-Nn for gctc-ntg-context-518@m.gmane.org; Sat, 01 Apr 2017 22:52:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2B1E21020E4; Sat, 1 Apr 2017 22:51:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9vng2nG4MmmV; Sat, 1 Apr 2017 22:51:54 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 2889E1020E0; Sat, 1 Apr 2017 22:51:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EE9861020E0 for ; Sat, 1 Apr 2017 22:51:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 942OcrxPGsJD for ; Sat, 1 Apr 2017 22:51:51 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id B7A9E1020DF for ; Sat, 1 Apr 2017 22:51:41 +0200 (CEST) Original-Received: from [192.168.201.10] (cpe-24-194-22-135.nycap.res.rr.com [24.194.22.135]) by mailbackend.panix.com (Postfix) with ESMTPSA id 8C49E1AC22 for ; Sat, 1 Apr 2017 16:51:40 -0400 (EDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:97727 Archived-At: This is a multi-part message in MIME format. --===============8881201181075531641== Content-Type: multipart/alternative; boundary="------------B164BB45EA0AAE36E06FE837" This is a multi-part message in MIME format. --------------B164BB45EA0AAE36E06FE837 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 2017-04-01 16:07, Pablo Rodriguez wrote: > Hans, > > I have just discovered the following: > > \define[1]\indx{#1\index{#1}} > \starttext > \indx{an} \indx{american} \indx{Aphrodite} > \placeindex > \stoptext > > Lowercase letters are placed after its uppercase counterparts. > > I don’t have (almost) any experience with indices in ConTeXt, but which > is the way to turn this off? > > Sorry, but I don’t see a reason to have this as default. I mean, I have > never seen any encyclopedia or dictionary that sorts entries according > to letter case. > I believe you want method=default for your \setupregister[index][] options. The allowable values appear to be default, first, last, before, and after. With nothing specified you do not get the same as specifying default. I asked about these a while back but got no answer. There is a cryptic explanation from 2010 at http://www.mail-archive.com/ntg-context%40ntg.nl/msg50454.html. -- Rik --------------B164BB45EA0AAE36E06FE837 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 2017-04-01 16:07, Pablo Rodriguez wrote:
Hans,

I have just discovered the following:

    \define[1]\indx{#1\index{#1}}
    \starttext
    \indx{an} \indx{american} \indx{Aphrodite}
    \placeindex
    \stoptext

Lowercase letters are placed after its uppercase counterparts.

I don’t have (almost) any experience with indices in ConTeXt, but which
is the way to turn this off?

Sorry, but I don’t see a reason to have this as default. I mean, I have
never seen any encyclopedia or dictionary that sorts entries according
to letter case.

I believe you want method=default for your \setupregister[index][] options. The allowable values appear to be default, first, last, before, and after. With nothing specified you do not get the same as specifying default. I asked about these a while back but got no answer. There is a cryptic explanation from 2010 at
http://www.mail-archive.com/ntg-context%40ntg.nl/msg50454.html.

-- 
Rik
--------------B164BB45EA0AAE36E06FE837-- --===============8881201181075531641== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============8881201181075531641==--