ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
Cc: <ntg-context@ntg.nl>
Subject: Re: (again) bug in index sorting?
Date: Sun, 2 Nov 2014 16:05:01 +0100	[thread overview]
Message-ID: <20141102160501.19d6f98b@iram-ha-003587.extra.cea.fr> (raw)
In-Reply-To: <908D2BFC-EC47-473D-9C85-0659CD2CACE2@gmail.com>

On Sun, 2 Nov 2014 12:45:25 +0100
Robert Blackstone <blackstone.robert@gmail.com> wrote:

> 
> On 2 Nov 2014, at 12:00 ,  Pablo Rodriguez <oinos@gmx.es> wrote
> > 
> > I have the following sample:
> > 
> > \setuppapersize[A6]
> > \starttext
> > \index{tipografía digital}
> > \index{tipografías}
> > \index{tomato white}
> > \index{tomatoes red}
> > \index{idioma+de un pasaje}
> > \index{idioma+del documento}
> > \completeindex
> > \stoptext
> > 
> > Latest beta from 2014.10.31 12:47 sorts the index entries the
> > following way:
> > 
> > 	tomatoes red
> > 	tomato white
> > 
> > Of course, this sample doesn’t make sense, but the entries in
> > Spanish do. All of them are wrong sorted.
> > 
> > Stable version from 2014.01.03 00:40. The different sorting
> > criterium seems to have been introduced in beta from 2014.10.22
> > 16:23.
> > 
> > Or shouldn’t be the first word sorted first and then the second one
> > in index entry?
> > 
> > Could anyone be so kind to confirm the bug?
> > 
> > Many thanks for your help,
> > 
> > 
> > Pablo
> 
> Hi Pablo,
> I cannot confirm any bug, but what I would do anyway is to force the
> sorting in whatever order I want by using \index[]{} with the
> argument specifying the order. So your example could be:
> 
> \starttext
>    \index[tipograf\'{i}adig]{tipograf\'{i}a digital}
>    \index[tipograf\'{i}as]{tipograf\'{i}as}
>    \index[idiomadeu]{idioma+de un pasaje}
>    \index[idiomadel]{idioma+del documento}
>    \completeindex
>    \stoptext
> 
> if you want tipografias digital before tipografias.
> This works with all mkiv and mkii versions I have, including the ones
> that I installed today. I use it for a rather comlex three-level
> index and it works flawlessly (for me).

Because I have become obsessed with the APA style rules recently (;-),

\startquotation
Alphabetize letter by letter. When alphabetizing surnames, remember
that “nothing precedes something”: Brown, J. R., precedes Browning, A.
R., even though i precedes j in the alphabet.

Singh, Y., precedes Singh Siddhu, N. 
López, M. E., precedes López de Molina, G.
Ibn Abdulaziz, T., precedes Ibn Nidal, A. K. M.
Girard, J.-B., precedes Girard-Perregaux, A. S.
Villafuerte, S. A., precedes Villa-Lobos, J.
Benjamin, A. S., precedes ben Yaakov, D.
\stopquotation

Of course, these are names, a favorite subject that I share with Hans
these days...

Alan
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2014-11-02 15:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1.1414926001.30175.ntg-context@ntg.nl>
2014-11-02 11:45 ` Robert Blackstone
2014-11-02 15:05   ` Alan BRASLAU [this message]
     [not found] <mailman.229.1415005279.2277.ntg-context@ntg.nl>
2014-11-03 12:22 ` Robert Blackstone
2014-11-03 13:50   ` Alan BRASLAU
2014-11-03 18:11     ` Pablo Rodriguez
2014-11-01 16:24 Pablo Rodriguez

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=20141102160501.19d6f98b@iram-ha-003587.extra.cea.fr \
    --to=alan.braslau@cea.fr \
    --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).