* definesortkey
@ 2006-03-30 23:47 Johan Sandblom
2006-03-31 17:04 ` definesortkey Hans Hagen
0 siblings, 1 reply; 6+ messages in thread
From: Johan Sandblom @ 2006-03-30 23:47 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: definesortkey
2006-03-30 23:47 definesortkey Johan Sandblom
@ 2006-03-31 17:04 ` Hans Hagen
2006-04-01 19:49 ` definesortkey Johan Sandblom
0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2006-03-31 17:04 UTC (permalink / raw)
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
-----------------------------------------------------------------
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: definesortkey
2006-03-31 17:04 ` definesortkey Hans Hagen
@ 2006-04-01 19:49 ` Johan Sandblom
2006-04-03 22:08 ` definesortkey Hans Hagen
0 siblings, 1 reply; 6+ messages in thread
From: Johan Sandblom @ 2006-04-01 19:49 UTC (permalink / raw)
Cc: mailing list for ConTeXt users, Johan.Sandblom
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 <pragma@wxs.nl>:
> 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
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: definesortkey
2006-04-01 19:49 ` definesortkey Johan Sandblom
@ 2006-04-03 22:08 ` Hans Hagen
2006-04-03 23:31 ` definesortkey Mojca Miklavec
0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2006-04-03 22:08 UTC (permalink / raw)
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
-----------------------------------------------------------------
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: definesortkey
2006-04-03 22:08 ` definesortkey Hans Hagen
@ 2006-04-03 23:31 ` Mojca Miklavec
2006-04-04 7:56 ` definesortkey Hans Hagen
0 siblings, 1 reply; 6+ messages in thread
From: Mojca Miklavec @ 2006-04-03 23:31 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: definesortkey
2006-04-03 23:31 ` definesortkey Mojca Miklavec
@ 2006-04-04 7:56 ` Hans Hagen
0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2006-04-04 7:56 UTC (permalink / raw)
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
-----------------------------------------------------------------
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-04-04 7:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-30 23:47 definesortkey Johan Sandblom
2006-03-31 17:04 ` definesortkey Hans Hagen
2006-04-01 19:49 ` definesortkey Johan Sandblom
2006-04-03 22:08 ` definesortkey Hans Hagen
2006-04-03 23:31 ` definesortkey Mojca Miklavec
2006-04-04 7:56 ` definesortkey 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).