ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Index sorting for other languages than English
@ 2006-05-30 11:09 Richard Gabriel
  2006-05-30 11:57 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Gabriel @ 2006-05-30 11:09 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 2143 bytes --]

Hello Hans,

I'm sorry but when you were adding my sorting rules for Czech, you've (probably by accident) deleted the definition of \czsortdivisionch which leads to errors when trying to sort a word on "ch".
I've also made some minor corrections. Here is the updated version:

% ---
\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} {D+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
% ---

[-- Attachment #1.2: Type: text/html, Size: 3387 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Index sorting for other languages than English
  2006-05-30 11:09 Index sorting for other languages than English Richard Gabriel
@ 2006-05-30 11:57 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2006-05-30 11:57 UTC (permalink / raw)


Richard Gabriel wrote:
> Hello Hans,
>
> I'm sorry but when you were adding my sorting rules for Czech, you've 
> (probably by accident) deleted the definition of \czsortdivisionch 
> which leads to errors when trying to sort a word on "ch".
> I've also made some minor corrections. Here is the updated version:
i've (a bit more) finished teutil sorting so that it also can sort different registers conform their own language: 

i'll post an alpha (generating now) that can do: 

\defineregister[one]
\defineregister[two] \setupregister[two][language=cz]

\starttext

test \one{one} test \one{two} test \one {\aacute} test \one{alpha} test \one{chow}
test \two{one} test \two{two} test \two {\aacute} test \two{alpha} test \two{chow}

\blank[3*big] \placeregister[one]
\blank[3*big] \placeregister[two]

\stoptext



-----------------------------------------------------------------
                                          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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-30 11:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-30 11:09 Index sorting for other languages than English Richard Gabriel
2006-05-30 11:57 ` Hans Hagen

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).