<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
 <meta http-equiv='Content-Type' content='text/html;charset=us-ascii'>
 <style>BODY{font:10pt Tahoma, Verdana, sans-serif;}</style>
</head>
<body>
Here is the test file. <br>If you remove the \setupregister command, or simply set expansion=no, the sorting will work perfectly.<br>With expansion=yes or expansion=xml, the accented letters are sorted under "A".<br><br>Below are my updated sorting rules again...<br><br>-Richard<br><br><br>---<br>\def\czsortdivisionch{ch}<br>\def\czsortdivisionCh{Ch}<br><br>\startmode[sortorder-cz]<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{aacute}{a+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{Aacute}{A+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{ccaron}{c+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{Ccaron}{C+1}<br>&nbsp;&nbsp;&nbsp; \exportsortdivision{c+1}{ccaron}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{dcaron}{d+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{Dcaron}{C+1}<br>&nbsp;&nbsp;&nbsp; \exportsortdivision{d+1}{dcaron}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{eacute}{e+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{Eacute}{E+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{ecaron}{e+2}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{Ecaron}{E+2}<br>&nbsp;&nbsp;&nbsp; \exportsortreduction{ch}{h+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{ch}{h+1}<br>&nbsp;&nbsp;&nbsp; \exportsortreduction{Ch}{h+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{Ch}{h+1}<br>&nbsp;&nbsp;&nbsp; \exportsortdivision{h+1}{czsortdivisionch}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{iacute}{i+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{Iacute}{I+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{ncaron}{n+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{Ncaron}{n+1}<br>&nbsp;&nbsp;&nbsp; \exportsortdivision{n+1}{ncaron}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{oacute}{o+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{Oacute}{O+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{rcaron}{r+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{Rcaron}{R+1}<br>&nbsp;&nbsp;&nbsp; \exportsortdivision{r+1}{rcaron}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{scaron}{s+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{Scaron}{S+1}<br>&nbsp;&nbsp;&nbsp; \exportsortdivision{s+1}{scaron}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{tcaron}{t+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{Tcaron}{T+1}<br>&nbsp;&nbsp;&nbsp; \exportsortdivision{t+1}{tcaron}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{uacute}{u+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{Uacute}{U+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{uring}{u+2}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{Uring}{U+2}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{yacute}{y+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{Yacute}{Y+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{zcaron}{z+1}<br>&nbsp;&nbsp;&nbsp; \exportsortexpansion{Zcaron}{Z+1}<br>&nbsp;&nbsp;&nbsp; \exportsortdivision{z+1}{zcaron}<br>\stopmode<br><br><br><br><blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;"><hr><b>From:</b> Hans Hagen [mailto:pragma@wxs.nl]<br><b>To:</b> mailing list for ConTeXt users [mailto:ntg-context@ntg.nl]<br><b>Sent:</b> Wed, 24 May 2006 17:55:02 +0200<br><b>Subject:</b> Re: [NTG-context] Index sorting for other languages that English<br><br>Richard Gabriel wrote:<br>
&gt; Thanks Hans, it works with my test file,<br>
&gt; unless I set up:<br>
&gt;<br>
&gt; \setupregister[index][expansion=xml]<br>
&gt;<br>
&gt; which i need for correct processing of the XML files.<br>
&gt; If I simply add this command into the testing TeX file (no XML), the <br>
&gt; Czech sorting stops to work and all accented characters are placed <br>
&gt; under "A".<br>
test file ...<br>
&gt;<br>
&gt; Regarding the sorting itself (sort-lan.tex):<br>
&gt; I found the definiton of the sorting quite strange, let's say, <br>
&gt; incomplete.<br>
&gt; It makes no sense to separate ccaron while all other accented letters <br>
&gt; are placed under the unaccented ones.<br>
&gt; I'll update the definitions, test it and send it to you.<br>
ok <br>
<br>
Hans<br>
<br>
-----------------------------------------------------------------<br>
                                          Hans Hagen | PRAGMA ADE<br>
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands<br>
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com<br>
                                             | www.pragma-pod.nl<br>
-----------------------------------------------------------------<br>
<br>
_______________________________________________<br>
ntg-context mailing list<br>
<a href="mailto:ntg-context@ntg.nl">ntg-context@ntg.nl</a><br>
<a href="http://www.ntg.nl/mailman/listinfo/ntg-context" target="_blank">http://www.ntg.nl/mailman/listinfo/ntg-context</a><br>
<style>
</style>
</blockquote></body></html>