[NTG-context] sort order in registers (indexes)

Pablo Rodriguez oinos at gmx.es
Sun Jun 10 12:42:48 CEST 2018


On 06/10/2018 11:49 AM, Henning Hraban Ramm wrote:
> Ahoi,
> 
> usually, uppercase index entries are sorted before all lowercase entries.
> Is there a simple setup to change that?
> 
> i.e. I need the sorting
> sum - Sun - sunny
> instead of
> Sun - sum - sunny
> 
> I know I can influence sort order for single entries, but I’d like a general setting.

Hi Hraban,

I think this may achieve what you want:

  \setupregister[index][method={zm,zc}]

I hope it helps,

Pablo



> (Diacritics are handled as wanted.)
> 
> 
> \starttext
> \strut
> \index{Sun}\index{sun}\index{Suomi}\index{suave}
> \index{sunny}\index{sum}\index{Sumatra}\index{summon}
> \index{sample}\index{super}
> \index{şample}\index{südlich}\index{súper}
> \index{şun}\index{sün}\index{şüñ}
> 
> \completeindex
> 
> \stoptext
> 
> 
> 
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 


-- 
http://www.ousia.tk


More information about the ntg-context mailing list