ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
To: Robert Blackstone <blackstone.robert@gmail.com>
Cc: ntg-context@ntg.nl
Subject: Re: (again) bug in index sorting?
Date: Mon, 3 Nov 2014 14:50:54 +0100	[thread overview]
Message-ID: <20141103145054.0b7af476@iram-ha-003840.extra.cea.fr> (raw)
In-Reply-To: <6C1B9E6D-2A25-4BE8-A1D0-3F99E9AA4AA1@gmail.com>

On Mon, 3 Nov 2014 13:22:28 +0100
Robert Blackstone <blackstone.robert@gmail.com> wrote:

> 
> On 3 Nov 2014, at 10:01 , Alan BRASLAU <alan.braslau@cea.fr> wrote
> > 
> > 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
> > 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.
> 
> Hi Alan, 
> This still puzzles me a bit. 
> You write: “Brown, J. R., precedes Browning, A.R., even though i
> precedes j in the alphabet.” But isn’t that because “," precedes “i" ?
> Likewise, when sorting these names (with TeX-Edit Plus), Singh
> Siddhu, N. comes out  before Singh, Y., not the reverse, precisely
> because, as you say, “nothing precedes something”, or the space
> between Singh and Siddhu precedes  the comma between Singh and Y.
> Same with López de Molina, G. and López, M. E.
> 
> Or does ConTeXt, or TeX, have its own sorting order?

Please do not forget the \startquotation\stopquotation.

I am citing the APA rules, not stating anything on how ConTeXt (or
TeX-Edit or anything else) sorts lists in general.

Brown precedes Browning because APA sorts on last names.
Singh precedes Singh Siddhu because "nothing precedes
something"( Siddhu)
López precedes López de Molina for precisely the same reason.
Ibn Abdulaziz precedes Ibn Nidal because Ibn is not to be taken into
account.
Laue, M. von precedes Röntgen, W. C, as well as Van der Waals, J. D. but
here things start to get tricky!

My point is that sorting lists of course depends on what you are
listing. Indexing author names, for example, needs to sort on last
names, then first names. Indexing on several levels needs to sort first
by the first level, then by the second level, ...

When indexing items containing several words, the sorting should go
word by word, thus
tipografía digital
before
tipografías

This amounts to making whitespace higher precedence than anything else,
which I believe was not the case but now is fixed.

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-03 13:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.229.1415005279.2277.ntg-context@ntg.nl>
2014-11-03 12:22 ` Robert Blackstone
2014-11-03 13:50   ` Alan BRASLAU [this message]
2014-11-03 18:11     ` Pablo Rodriguez
     [not found] <mailman.1.1414926001.30175.ntg-context@ntg.nl>
2014-11-02 11:45 ` Robert Blackstone
2014-11-02 15:05   ` Alan BRASLAU
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=20141103145054.0b7af476@iram-ha-003840.extra.cea.fr \
    --to=alan.braslau@cea.fr \
    --cc=blackstone.robert@gmail.com \
    --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).