ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Vit Zyka <vit.zyka@seznam.cz>
Subject: Re: Sorting question
Date: Mon, 23 Jan 2006 01:08:44 +0100	[thread overview]
Message-ID: <43D41E8C.6080508@seznam.cz> (raw)
In-Reply-To: <6faad9f00601221136s6a487603g1849b570f45cd2b2@mail.gmail.com>

Mojca Miklavec wrote:
> On 1/22/06, Vit Zyka wrote:
> 
> 
>>We need to define (German?) sorting rules for newtexexec (newtexutil).
>>Tell me in between 'Ü' have to be sorted I will try to prepare a code
>>for this rule.
> 
> 
> ä (adiaeresis) is identical to a, ö (odiaeresis) identical to o, ü
> (udiaeresis) identical to u, the same for uppercase. ß (ssharp) is
> edentical to "ss" (same for uppercase, but in uppercase it's written
> as SS anyway).

Hmmm, that is not complete: I understand that every ü, Ü, u, U comes to 
single group, but is u<ü<U<Ü? Let say yes. Then try
------------------------------
\input sort-ini.tex

\useregime[win]
\enableregime[windows]          % Eingabe-Codierung
\mainlanguage[de]               % Sprachmodus	
\usetypescript[modern][texnansi]

\startmode[sortorder-de]
   \exportsortexpansion{u}{u+1}
   \exportsortexpansion{udiaeresis}{u+2}
   \exportsortexpansion{U}{u+3}
   \exportsortexpansion{Udiaeresis}{u+4}
   \exportsortdivision{u+1}{u}
   \exportsortdivision{u+2}{u}
   \exportsortdivision{u+3}{u}
   \exportsortdivision{u+4}{u}
\stopmode

\setmode{sortorder-de}

\starttext

\definesorting[person][personen]
\setupsorting[person][criterium = all]
%\def\person#1{#1\expanded{\index{#1}}, }
%\def\person#1{#1\index{#1}, }

\person{Unsinn, Klaus}
\person{Militzer, Bernd}
\person{Horten, Hans}
%\person{Überall, Heinrich}
\person{\Udiaeresis berall, Heinrich}

Index:
\placelistofpersonen
%\placeindex[alternative=A]

\stoptext
------------------------------

Comments:
- newtexexec is needed!
- works for both index/sorting
- works only for \Udiaeresis not for direct Ü! Strange! Why?

Vit

  parent reply	other threads:[~2006-01-23  0:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-21 21:26 AutoDroppedCaps and indenting Joshua Ellis
2006-01-22 10:17 ` Sorting question Bernd Militzer
2006-01-22 17:02   ` Vit Zyka
2006-01-22 19:36     ` Mojca Miklavec
2006-01-23  0:06       ` Henning Hraban Ramm
2006-01-23  0:08       ` Vit Zyka [this message]
2006-01-23  0:19         ` Henning Hraban Ramm
2006-01-23 23:26           ` Vit Zyka
2006-01-23 18:55 ` AutoDroppedCaps and indenting Joshua Ellis

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=43D41E8C.6080508@seznam.cz \
    --to=vit.zyka@seznam.cz \
    --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).