From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: two buglets
Date: Sun, 3 Oct 2010 10:24:40 +0200 [thread overview]
Message-ID: <C7BCFD76-2E36-432A-8440-14E08D2184B7@uni-bonn.de> (raw)
In-Reply-To: <4B743BBE.2050307@wxs.nl>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-10-03 8:24 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-11 15:52 Thomas A. Schmitz
2010-02-11 17:17 ` Hans Hagen
2010-02-11 17:35 ` Thomas A. Schmitz
2010-02-11 19:29 ` Hans Hagen
2010-02-11 21:27 ` Thomas A. Schmitz
2010-02-11 18:14 ` David Rogers
2010-10-03 8:24 ` Thomas A. Schmitz [this message]
2010-10-03 10:29 ` Hans Hagen
2010-10-03 10:58 ` Thomas A. Schmitz
2010-10-03 15:10 ` Hans Hagen
2010-10-03 15:43 ` Thomas A. Schmitz
2010-10-05 12:15 ` Philipp Gesang
2010-10-05 12:39 ` Hans Hagen
2010-10-05 13:29 ` Thomas A. Schmitz
2010-10-05 21:17 ` Philipp Gesang
2010-10-05 21:27 ` Hans Hagen
2010-10-05 21:55 ` Philipp Gesang
2010-10-06 7:50 ` Hans Hagen
2010-02-11 17:19 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C7BCFD76-2E36-432A-8440-14E08D2184B7@uni-bonn.de \
--to=thomas.schmitz@uni-bonn.de \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).