[NTG-context] Index sorting for other languages that English

Richard Gabriel rgabriel at kerio.com
Fri May 26 12:07:25 CEST 2006


Here is the test file. 
If you remove the \setupregister command, or simply set expansion=no, the sorting will work perfectly.
With expansion=yes or expansion=xml, the accented letters are sorted under "A".

Below are my updated sorting rules again...

-Richard


---
\def\czsortdivisionch{ch}
\def\czsortdivisionCh{Ch}

\startmode[sortorder-cz]
    \exportsortexpansion{aacute}{a+1}
    \exportsortexpansion{Aacute}{A+1}
    \exportsortexpansion{ccaron}{c+1}
    \exportsortexpansion{Ccaron}{C+1}
    \exportsortdivision{c+1}{ccaron}
    \exportsortexpansion{dcaron}{d+1}
    \exportsortexpansion{Dcaron}{C+1}
    \exportsortdivision{d+1}{dcaron}
    \exportsortexpansion{eacute}{e+1}
    \exportsortexpansion{Eacute}{E+1}
    \exportsortexpansion{ecaron}{e+2}
    \exportsortexpansion{Ecaron}{E+2}
    \exportsortreduction{ch}{h+1}
    \exportsortexpansion{ch}{h+1}
    \exportsortreduction{Ch}{h+1}
    \exportsortexpansion{Ch}{h+1}
    \exportsortdivision{h+1}{czsortdivisionch}
    \exportsortexpansion{iacute}{i+1}
    \exportsortexpansion{Iacute}{I+1}
    \exportsortexpansion{ncaron}{n+1}
    \exportsortexpansion{Ncaron}{n+1}
    \exportsortdivision{n+1}{ncaron}
    \exportsortexpansion{oacute}{o+1}
    \exportsortexpansion{Oacute}{O+1}
    \exportsortexpansion{rcaron}{r+1}
    \exportsortexpansion{Rcaron}{R+1}
    \exportsortdivision{r+1}{rcaron}
    \exportsortexpansion{scaron}{s+1}
    \exportsortexpansion{Scaron}{S+1}
    \exportsortdivision{s+1}{scaron}
    \exportsortexpansion{tcaron}{t+1}
    \exportsortexpansion{Tcaron}{T+1}
    \exportsortdivision{t+1}{tcaron}
    \exportsortexpansion{uacute}{u+1}
    \exportsortexpansion{Uacute}{U+1}
    \exportsortexpansion{uring}{u+2}
    \exportsortexpansion{Uring}{U+2}
    \exportsortexpansion{yacute}{y+1}
    \exportsortexpansion{Yacute}{Y+1}
    \exportsortexpansion{zcaron}{z+1}
    \exportsortexpansion{Zcaron}{Z+1}
    \exportsortdivision{z+1}{zcaron}
\stopmode



  _____  

From: Hans Hagen [mailto:pragma at wxs.nl]
To: mailing list for ConTeXt users [mailto:ntg-context at ntg.nl]
Sent: Wed, 24 May 2006 17:55:02 +0200
Subject: Re: [NTG-context] Index sorting for other languages that English

Richard Gabriel wrote:
  > Thanks Hans, it works with my test file,
  > unless I set up:
  >
  > \setupregister[index][expansion=xml]
  >
  > which i need for correct processing of the XML files.
  > If I simply add this command into the testing TeX file (no XML), the 
  > Czech sorting stops to work and all accented characters are placed 
  > under "A".
  test file ...
  >
  > Regarding the sorting itself (sort-lan.tex):
  > I found the definiton of the sorting quite strange, let's say, 
  > incomplete.
  > It makes no sense to separate ccaron while all other accented letters 
  > are placed under the unaccented ones.
  > I'll update the definitions, test it and send it to you.
  ok 
  
  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
  -----------------------------------------------------------------
  
  _______________________________________________
  ntg-context mailing list
  ntg-context at ntg.nl
  http://www.ntg.nl/mailman/listinfo/ntg-context
    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ntg.nl/pipermail/ntg-context/attachments/20060526/7421edcb/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tex
Type: application/x-tex
Size: 1673 bytes
Desc: not available
Url : http://www.ntg.nl/pipermail/ntg-context/attachments/20060526/7421edcb/attachment.tex 


More information about the ntg-context mailing list