Testfile below. Lowercase named letters (\aring etc) work fine.
Uppercase, however, are sorted under the letter they resemble (A, O).
Inputting the letter directly (å,ä,ö) make them be indexed before the
start of the alphabetized index, not even under a, o.
Regards, Johan
\mainlanguage[sv] \readfile{sort-ini}{}{}
\starttext
a\index{a}
z\index{z}
å\index{å}
ä\index{ä}
ö\index{ö}
\aring\index{\aring}
\adiaeresis\index{\adiaeresis}
\odiaeresis\index{\odiaeresis}
A\index{A}
Å\index{Å}
Ä\index{Ä}
Ö\index{Ö}
\Aring\index{\Aring}
\Adiaeresis\index{\Adiaeresis}
\Odiaeresis\index{\Odiaeresis}
\placeindex
\stoptext
2006/3/31, Hans Hagen
Johan Sandblom wrote:
I have a document in Swedish with an index. Merely setting mainlanguage[sv] does not give correct sort order. I remember doing something like
\startlanguagespecifics[sv] \definesortkey[�][z][a][�] \definesortkey[�][z][b][�] \definesortkey[�][z][c][�] \stoplanguagespecifics
but this no longer has any effect and gives
TeXUtil | unknown entry k in line k {sv}{ec}{�}{z}{a}{�} TeXUtil | unknown entry k in line k {sv}{ec}{�}{z}{b}{�} TeXUtil | unknown entry k in line k {sv}{ec}{�}{z}{c}{�}
from newtexexec (this is on a current windows standalone context)
What is the correct code?
take a look in sort-ini and sort-def to see how it's done nowadasys
then make a sample file so that we can test
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 -----------------------------------------------------------------
-- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell