Re: [NTG-context] Sorting index (in Spanish)

2005-08-08 Thread Hans Hagen

Hans Hagen wrote:


Mari Voipio wrote:



Dear Fellow-Contexters,

I have been charged with editing a ConTeXt document in Spanish (of 
which I understand preciously little). This far I have gotten over 
the hurdles of hyphenation, labeltexts and the upside-down 
exclamation mark (and as far as we can tell, the Spanish hyphenation 
patterns get loaded, too), but now I have a problem sorting the 
index: the words 'ángulo' and 'índice' get sorted in the beginning of 
the index instead of among a and i.


It tried putting something like the example below in a) the setup 
part of my document, b) just before the index (a bit like in the 
example at 
, except 
that I use the command \placeindex and not \completeindex) and c) in 
the lang-ita.tex file.


% Changes to sorting to fix the sorting of accented letters
\startlanguagespecifics[es]
\definesortkey {\´a}{a}{a}{\´a}  % á sorted among 'a'
\definesortkey {\´i}{i}{i}{\´i}  % í sorted among 'i'
\stoplanguagespecifics

None of the options a)-c) worked and I'm thinking that this is more 
of a  "stupid user" problem, i.e. as I cannot find any description on 
how \definesortkey works, I just don't understand how to use it 
properly.



Any help???


I'm playign with the new texutil, and what i need is sort rules. 

for instance, for slovenian we need:  


\startmode[sortorder-sv]

\exportsortexpansion {ccaron}  {cz}
\exportsortexpansion {cacute}  {czz}
\exportsortexpansion {dstroke} {dz}
\exportsortexpansion {scaron}  {sz}
\exportsortexpansion {zacron}  {zz}

\exportsortdivision  {cz}  {ccaron}
\exportsortdivision  {czz} {cacute}
\exportsortdivision  {dz}  {dstroke}
\exportsortdivision  {sz}  {scaron}
\exportsortdivision  {zz}  {zacron}

\stopmode

can you (and others) more language specific sort rules? 

(divisions do the reverse, they determine what ends up under a different  key) 

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] Sorting index (in Spanish)

2005-08-05 Thread Hans Hagen

Mari Voipio wrote:



Dear Fellow-Contexters,

I have been charged with editing a ConTeXt document in Spanish (of 
which I understand preciously little). This far I have gotten over the 
hurdles of hyphenation, labeltexts and the upside-down exclamation 
mark (and as far as we can tell, the Spanish hyphenation patterns get 
loaded, too), but now I have a problem sorting the index: the words 
'ángulo' and 'índice' get sorted in the beginning of the index instead 
of among a and i.


It tried putting something like the example below in a) the setup part 
of my document, b) just before the index (a bit like in the example at 
, except 
that I use the command \placeindex and not \completeindex) and c) in 
the lang-ita.tex file.


% Changes to sorting to fix the sorting of accented letters
\startlanguagespecifics[es]
\definesortkey {\´a}{a}{a}{\´a}  % á sorted among 'a'
\definesortkey {\´i}{i}{i}{\´i}  % í sorted among 'i'
\stoplanguagespecifics

None of the options a)-c) worked and I'm thinking that this is more of 
a  "stupid user" problem, i.e. as I cannot find any description on how 
\definesortkey works, I just don't understand how to use it properly.



Any help???


let's try the new texutil variant since that can have language plugins 

needed: 

= example file in spanish 
= sort order 

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] Sorting index (in Spanish)

2005-08-05 Thread Mari Voipio


Dear Fellow-Contexters,

I have been charged with editing a ConTeXt document in Spanish (of which 
I understand preciously little). This far I have gotten over the hurdles 
of hyphenation, labeltexts and the upside-down exclamation mark (and as 
far as we can tell, the Spanish hyphenation patterns get loaded, too), 
but now I have a problem sorting the index: the words 'ángulo' and 
'índice' get sorted in the beginning of the index instead of among a and i.


It tried putting something like the example below in a) the setup part 
of my document, b) just before the index (a bit like in the example at 
, except that 
I use the command \placeindex and not \completeindex) and c) in the 
lang-ita.tex file.


% Changes to sorting to fix the sorting of accented letters
\startlanguagespecifics[es]
\definesortkey {\´a}{a}{a}{\´a}  % á sorted among 'a'
\definesortkey {\´i}{i}{i}{\´i}  % í sorted among 'i'
\stoplanguagespecifics

None of the options a)-c) worked and I'm thinking that this is more of a 
 "stupid user" problem, i.e. as I cannot find any description on how 
\definesortkey works, I just don't understand how to use it properly.



Any help???

Mari


PS. Tried to find related info in contextgarden.net, but can't find much 
 - if it isn't there, I can add stuff (*after* I solve this problem) if 
somebody tells me where I may start growing this flower of mine.


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