ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* czech sorting
@ 2010-05-17 20:31 Tomáš Pustelník
  2010-05-17 21:13 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Tomáš Pustelník @ 2010-05-17 20:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi,

again czech sorting in MkIV is little wrong, I found it out coincidentally, when I was testing it. Order of character with accent is strange. Look at the file in attachment. Is there some way how to set order in which groups are supposed to be sorted, like in MkII? Also I really wonder why letter R is not included in sorting.

Tomas P.

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

[-- Attachment #2: cz-sort.pdf --]
[-- Type: application/pdf, Size: 18886 bytes --]

[-- Attachment #3: cz-sort.tex --]
[-- Type: application/octet-stream, Size: 1335 bytes --]

\mainlanguage[cz]
\enableregime[utf-8]

\starttext
\setupregister[index][language=cz]
Correct czech order:

A B C Č D E F G H Ch I J K L M N O P Q R Ř S Š T Ť U V W X Y Z Ž
\blank

\index{chobot}chobot, 
\index{áro}áro, 
\index{akát}akát, 
\index{Áčko}Áčko, 
\index{astma}astma, 
\index{ámerika}ámerika, 
\index{arábie}arábie, 
\index{Árun}Árun, 
\index{žába}žába, 
\index{cibule}cibule, 
\index{čára}čára, 
\index{bomba}bomba, 
\index{Auto}Auto,
\index{arek}arek,
\index{ťáp}ťáp,
\index{urban}urban,
\index{úlet}úlet,
\index{vlk}vlk,
\index{vůz}vuz,
\index{racik}racik,
\index{rachot}rachot,
\index{ijacek}ijacek,
\index{Rabín}Rabín,
\index{diamant}diamant,
\index{emental}emental,
\index{fiala}fiala,
\index{Gusta}Gusta,
\index{jaro}jaro,
\index{Jágr}Jágr,
\index{kost}kost,
\index{lano}lano,
\index{mouka}mouka,
\index{nálada}nálada,
\index{nalákat}nalákat,
\index{orava}orava,
\index{Opava}Opava,
\index{pondělí}pondělí,
\index{Quido}Quido,
\index{řepa}řepa,
\index{srp}srp,
\index{šašek}šašek,
\index{úlet}úlet,
\index{unce}unce,
\index{valcha}valcha,
\index{watt}watt,
\index{Xénie}Xénie,
\index{ypsilon}ypsilon,
\index{zeď}zeď,
\index{traktor}traktor, 
\index{housle}housle

\blank

\placeindex

\stoptext

[-- Attachment #4: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: czech sorting
  2010-05-17 20:31 czech sorting Tomáš Pustelník
@ 2010-05-17 21:13 ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2010-05-17 21:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 17-5-2010 10:31, Tomáš Pustelník wrote:
> Hi,
>
> again czech sorting in MkIV is little wrong, I found it out coincidentally, when I was testing it. Order of character with accent is strange. Look at the file in attachment. Is there some way how to set order in which groups are supposed to be sorted, like in MkII? Also I really wonder why letter R is not included in sorting.

groups?

can you check the czech vector in sort-lan.lua?

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Czech sorting
@ 2006-05-25  7:51 Richard Gabriel
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Gabriel @ 2006-05-25  7:51 UTC (permalink / raw)



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

Hello Hans,

I've prepared and tested the complete sorting rules for Czech. Could you please put them into sort-lan.tex?
The rules are quite simple: 
- all accented letter shall follow the unaccented ones
- "caron" letters (consonants) are placed into separate groups
- "acute" and "ring" letters (wowels) are placed under the appropriate unaccented letters

But I vitally need to fix the problem that the sorting doesn't work when using \setupregister[index][expansion=xml]
otherwise it's still useless for me... :-(

Many thanx,
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

[-- Attachment #1.2: Type: text/html, Size: 3285 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] 3+ messages in thread

end of thread, other threads:[~2010-05-17 21:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-17 20:31 czech sorting Tomáš Pustelník
2010-05-17 21:13 ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2006-05-25  7:51 Czech sorting Richard Gabriel

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