ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <j.hagen@xs4all.nl>
Subject: Re: registers, how to ignore quote marks
Date: Sat, 29 Jan 2022 11:39:05 +0100	[thread overview]
Message-ID: <5e335942-fb47-82e9-3152-c9c19aae32a0@xs4all.nl> (raw)
In-Reply-To: <37da766a-44e2-9834-f617-a7f9bab1a895@gmail.com>

On 1/29/2022 11:02 AM, jbf via ntg-context wrote:
> Thanks for this response. I'll have to work on this (but tomorrow... 
> it's late at night for me at the moment). I can see part of what you 
> mean: I can use, for example \index[myindex]{\it Book title} (Book 
> Author) and get the correct result, but not sorted properly, so I have 
> to understand how, as you say, to 'set the sort entry to the unformatted 
> version' which is not clear to me at the moment. I'll tackle it on the 
> morrow when I'm thinking more clearly!
there is key and entry with key between []

when sorting, the key wins but because there can be duplicates the entry 
itself is also part of the final sort key

the accumulates sort key is sanitized and after that sorting happens in 
several stages (these can be defined / adapted) according to language, 
taking numbers into account and finally using the unicode ordering ...

you can fool the system by messing with the [key]

it's not the easiest subsystem (but it has a long history ... as with 
many subsystems the principles are not much different than mkii and the 
code seldom changes but of course evolved)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2022-01-29 10:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-29  5:23 jbf via ntg-context
2022-01-29  9:43 ` Henning Hraban Ramm via ntg-context
2022-01-29 10:02   ` jbf via ntg-context
2022-01-29 10:39     ` Hans Hagen via ntg-context [this message]
2022-01-30  0:30       ` jbf via ntg-context
2022-01-30  9:59         ` Hans Hagen via ntg-context
  -- strict thread matches above, loose matches on Subject: below --
2022-01-30 20:55 jbf via ntg-context
2022-01-29  2:40 jbf via ntg-context
2022-01-29  4:49 ` Adam Reviczky via ntg-context

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=5e335942-fb47-82e9-3152-c9c19aae32a0@xs4all.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@xs4all.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).