[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: texinfo.tex indexing bug
From: |
arnold |
Subject: |
Re: texinfo.tex indexing bug |
Date: |
Wed, 12 Feb 2014 03:14:37 -0700 |
User-agent: |
Heirloom mailx 12.4 7/29/08 |
Hi Karl.
address@hidden (Karl Berry) wrote:
> Finally getting back to:
>
> Date: Tue, 03 Dec 2013 22:56:13 +0200
> ...
> @cindex @address@hidden@}} 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