Re: [NTG-context] definesortkey

2006-04-04 Thread Hans Hagen
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


Re: [NTG-context] definesortkey

2006-04-03 Thread Hans Hagen
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


Re: [NTG-context] definesortkey

2006-04-03 Thread Mojca Miklavec
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] definesortkey

2006-04-01 Thread 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 [EMAIL PROTECTED]:
 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


Re: [NTG-context] definesortkey

2006-03-31 Thread 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
-

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


[NTG-context] definesortkey

2006-03-30 Thread Johan Sandblom
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context