ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Context index and sorting question
@ 2004-12-29  9:11 sjoerd siebinga
  2004-12-29 13:41 ` John Culleton
  0 siblings, 1 reply; 5+ messages in thread
From: sjoerd siebinga @ 2004-12-29  9:11 UTC (permalink / raw)


Hi all,

I am currently working on a dictionary with multiple indices of older 
language stages like, Old English, Old Norse, Greec, Sanskrit, Hittite, 
etc. Most of these languages have different characters, accents and 
sorting rules than English. In enco-ini.tex I found the \definesortkey 
command, but it is not entirely clear to me how I could use this 
command for the individual indices instead of  for the overall language 
(in my case english). Or even if this is possible at all?

Could someone tell me how I can use the \definesortkey command or for 
that matter any other ConTeXt mechanism to define sortrules for 
individual indices?

Regards Sjoerd

PS why does Texutil strip accents \'  \~  \` \" \^ but not \= ?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Context index and sorting question
  2004-12-29  9:11 Context index and sorting question sjoerd siebinga
@ 2004-12-29 13:41 ` John Culleton
  2004-12-29 14:37   ` sjoerd siebinga
  0 siblings, 1 reply; 5+ messages in thread
From: John Culleton @ 2004-12-29 13:41 UTC (permalink / raw)


On Wednesday 29 December 2004 04:11, sjoerd siebinga wrote:
> Hi all,
>
> I am currently working on a dictionary with multiple indices of older
> language stages like, Old English, Old Norse, Greec, Sanskrit, Hittite,
> etc. Most of these languages have different characters, accents and
> sorting rules than English. In enco-ini.tex I found the \definesortkey
> command, but it is not entirely clear to me how I could use this
> command for the individual indices instead of  for the overall language
> (in my case english). Or even if this is possible at all?
>
> Could someone tell me how I can use the \definesortkey command or for
> that matter any other ConTeXt mechanism to define sortrules for
> individual indices?
>
You might want to look into a separate program called Xindy. It more or less 
replaces Makindex in plain and LaTeX applications, but it could be used in 
Context most likely. It is specifically designed to address the situations 
you described, i.e. non-Western European sort rules. 


-- 
John Culleton

Short list of publishing/marketing books:
http://wexfordpress.com/tex/shortlist.pdf

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Context index and sorting question
  2004-12-29 13:41 ` John Culleton
@ 2004-12-29 14:37   ` sjoerd siebinga
  2004-12-29 21:10     ` Henning Hraban Ramm
  2005-01-10 19:06     ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: sjoerd siebinga @ 2004-12-29 14:37 UTC (permalink / raw)



On 29 Dec 2004, at 14:41, John Culleton wrote:

>>
>> Could someone tell me how I can use the \definesortkey command or for
>> that matter any other ConTeXt mechanism to define sortrules for
>> individual indices?
>>
> You might want to look into a separate program called Xindy. It more 
> or less
> replaces Makindex in plain and LaTeX applications, but it could be 
> used in
> Context most likely. It is specifically designed to address the 
> situations
> you described, i.e. non-Western European sort rules.
>
Thanks for the quick reply, John.

Xindy looks like a great program and provides great solutions. The 
problem is that I can't seem to get it to work on my Mac OS X machine. 
A quick look through the xindy mailinglist gave me the impression that 
no one has been able to get Xindy to run on Mac OS X yet.

Could somebody maybe tell me just how the \definesortkey command works? 
Do I have to define a specific encoding or create "languagespecifics" 
in order for TEXEXEC or TEXUTIL to use it?

I would imagine that ConTeXt must be able to sort a norwegian words in 
a separate register say "\indexnw{kr{\o}ypa}}" differently from the 
english index entries in general \index{} register.


Sjoerd

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Context index and sorting question
  2004-12-29 14:37   ` sjoerd siebinga
@ 2004-12-29 21:10     ` Henning Hraban Ramm
  2005-01-10 19:06     ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Henning Hraban Ramm @ 2004-12-29 21:10 UTC (permalink / raw)


Am 29.12.2004 um 15:37 schrieb sjoerd siebinga:
> I would imagine that ConTeXt must be able to sort a norwegian words in 
> a separate register say "\indexnw{kr{\o}ypa}}" differently from the 
> english index entries in general \index{} register.

Sorry, I can't help with \definesortkey, only wanted to point out that 
you can define your own indexes easily:

"index" is only the one predefined "register". Look after 
\defineregister, \setupregister etc. in the manual.

Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Context index and sorting question
  2004-12-29 14:37   ` sjoerd siebinga
  2004-12-29 21:10     ` Henning Hraban Ramm
@ 2005-01-10 19:06     ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2005-01-10 19:06 UTC (permalink / raw)


sjoerd siebinga wrote:

> Could somebody maybe tell me just how the \definesortkey command works? 
> Do I have to define a specific encoding or create "languagespecifics" in 
> order for TEXEXEC or TEXUTIL to use it?

you hook it into the language

\startlanguagespecifics[no]

   \definesortkey {\ae}{z}{b}{\ae}
   \definesortkey {\AE}{z}{b}{\AE}
   \definesortkey {\o}{z} {c}{\o}
   \definesortkey {\O}{z} {c}{\O}
   \definesortkey {\aa}{z}{d}{\aa}
   \definesortkey {\aring}{z}{d}{\aring}
   \definesortkey {\AA}{z}{d}{\AA}
   \definesortkey {\Aring}{z}{d}{\Aring}

\stoplanguagespecifics

\starttext

test \index{amoebe}
test \index{\ae roplane}
test \index{big issue}

\completeindex

\stoptext

> I would imagine that ConTeXt must be able to sort a norwegian words in a 
> separate register say "\indexnw{kr{\o}ypa}}" differently from the 
> english index entries in general \index{} register.

hm, this should be doable, if this is important, i can look into it (time to 
sort out the index mess)

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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-01-10 19:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-29  9:11 Context index and sorting question sjoerd siebinga
2004-12-29 13:41 ` John Culleton
2004-12-29 14:37   ` sjoerd siebinga
2004-12-29 21:10     ` Henning Hraban Ramm
2005-01-10 19:06     ` 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).