On Wednesday 08 January 2003 18:36, Mikael Persson wrote:
> On Wed, 8 Jan 2003 12:51:42 +0000
>
> John Culleton <[EMAIL PROTECTED]> wrote:
> I have used xindy in LaTeX and liked it alot. Do I read your text
> correct between the lines when I read that ConTeXt uses makeindex as
> default but there is a way to use xindy instead to sort things? Or
> does ConTeXt sort things in another way?
>
> Regards, Micke P
> _______________________________________________
> ntg-context mailing list
> [EMAIL PROTECTED]
> http://www.ntg.nl/mailman/listinfo/ntg-context
Context has its own indexing and sorting routines. So substituting
either makeindex or Xindy requires writing or adapting output routines
and input routines, and probably an output filter as well for Xindy.
I have played with the simple routines found in index.tex as found in
the texsis distribution. My version is called indexx.tex and changes
the command names to avoid conflict with Context macros.
But that does not directly address your problem. So I
will work on the three pieces in a generic sort of way, the output
routine, the filter, and the input routines (the latter are relatively
trivial.) In the process I will be borrowing from xindy.sty,
eplain.tex, texsis and so on.
I plan to use a simple macro which looks like \idx{a string of stuff}
and outputs to a file \idx{a string of stuff}{folio}
The string of stuff will have to include the keys, the formatting
attributes for both keys and locator, and special indicators such as
see and seealso. I like the xindy.sty convention which uses ordinary
punctuation to separate keys, sort keys, locator attributes etc.
(I like it because it simplifies macro writing :)
The filter will have to break down the string into parts, and
translate the parts into xindy raw format.
So don't hold your breath for my work! But it all seems doable. And
there is a frequent demand for language-specific sorting and
categorization within Context. In the meantime one can perhaps use
the makeindex4 conversion program and hand-modify the results.
At some point I will have to adopt a xdy style file or write one. But
each language will require its own xdy file or subfile that specifies
the alphabet and sort order.
--
John Culleton
Able Indexers and Typesetters
Rowse Reviews
Culleton Editorial Services
http://wexfordpress.com
_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context