Hi Karl.

[email protected] (Karl Berry) wrote:

> Finally getting back to:
>
>     Date: Tue, 03 Dec 2013 22:56:13 +0200
>     ...
>             @cindex @r{@{foo@}} program
>     Which should be indexed under  {   ends up being indexed under |
>
> Same is true for just @cindex @{, BTW.
>
> The problem, I believe, is with texindex, which is not prepared to
> handle braces as text as far as I could tell.  Thus in texinfo.tex I
> chose to use | since at least it is between, in ASCII terms, { and }.
> Had to do something so it wouldn't just bomb out.
>
> Fixing texindex ... well, a patch would be welcome :).  (There appear to
> be assumptions in texindex.c about balanced braces.  Short of completely
> rewriting the program, perhaps the simplest workaround would be to
> output special sequences for { and } and transliterate.  Or maybe I'm
> missing some escape mechanism.)
>
> sorry,
> karl

I will start looking at the code for texindex.c. It doesn't look
impossible.

As a hypothetical question, if I rewrote texindex in awk and it
functioned as a drop-in replacement, would you take it? If so, would
you require fully portable awk, or could I take advantage of stuff
that is only in gawk?

Thanks,

Arnold

Reply via email to