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? Regards, Johan -- 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
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 -----------------------------------------------------------------
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
Johan Sandblom wrote:
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
i added a few things to the sorter; can you try the beta? (no need to load the sort-ini file any more) \mainlanguage[sv] \starttext a\index{a} a\index{a} z\index{z} z\index{z} å\index{å} å\index{å} å\index{å} ä\index{ä} ä\index{ä} ä\index{ä} ä\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 ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On 4/4/06, Hans Hagen wrote:
i added a few things to the sorter; can you try the beta?
Thanks, Hans! Much better. \ccaron is now handled OK (which wasn't the case before), but č in utf-8 encoded file stil turns into r e {index} {2} {} {ÄŤ} {2::0:0:0:0:0:0:0::1} {1} and is sorted under A (as expected from the content of tui file, but probably not as the user would like to have it). Mojca
Mojca Miklavec wrote:
On 4/4/06, Hans Hagen wrote:
i added a few things to the sorter; can you try the beta?
Thanks, Hans! Much better. \ccaron is now handled OK (which wasn't the case before), but � in utf-8 encoded file stil turns into r e {index} {2} {} {ī} {2::0:0:0:0:0:0:0::1} {1} and is sorted under A (as expected from the content of tui file, but probably not as the user would like to have it).
Can you make me an example test file with \named and utf example entries? Zipped in order not to loose the utf-8 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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Johan Sandblom
-
Mojca Miklavec