ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Context index and sorting question
Date: Mon, 10 Jan 2005 20:06:02 +0100	[thread overview]
Message-ID: <41E2D21A.2090006@wxs.nl> (raw)
In-Reply-To: <3410DD8C-59A7-11D9-97BC-000A95C0A254@zonnet.nl>

sjoerd siebinga wrote:

> Could somebody maybe tell me just how the \definesortkey command works? 
> Do I have to define a specific encoding or create "languagespecifics" in 
> order for TEXEXEC or TEXUTIL to use it?

you hook it into the language

\startlanguagespecifics[no]

   \definesortkey {\ae}{z}{b}{\ae}
   \definesortkey {\AE}{z}{b}{\AE}
   \definesortkey {\o}{z} {c}{\o}
   \definesortkey {\O}{z} {c}{\O}
   \definesortkey {\aa}{z}{d}{\aa}
   \definesortkey {\aring}{z}{d}{\aring}
   \definesortkey {\AA}{z}{d}{\AA}
   \definesortkey {\Aring}{z}{d}{\Aring}

\stoplanguagespecifics

\starttext

test \index{amoebe}
test \index{\ae roplane}
test \index{big issue}

\completeindex

\stoptext

> I would imagine that ConTeXt must be able to sort a norwegian words in a 
> separate register say "\indexnw{kr{\o}ypa}}" differently from the 
> english index entries in general \index{} register.

hm, this should be doable, if this is important, i can look into it (time to 
sort out the index mess)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

      parent reply	other threads:[~2005-01-10 19:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-29  9:11 sjoerd siebinga
2004-12-29 13:41 ` John Culleton
2004-12-29 14:37   ` sjoerd siebinga
2004-12-29 21:10     ` Henning Hraban Ramm
2005-01-10 19:06     ` Hans Hagen [this message]

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=41E2D21A.2090006@wxs.nl \
    --to=pragma@wxs.nl \
    --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).