bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: imperfect support in texindex for @ as escape character (was multile


From: arnold
Subject: Re: imperfect support in texindex for @ as escape character (was multilevel indexing for TeX)
Date: Wed, 06 Mar 2019 12:19:10 -0700
User-agent: Heirloom mailx 12.5 7/5/10

Hi.

Fix is pushed to git.

Thanks,

Arnold

address@hidden wrote:

> Hi.
>
> Gavin Smith <address@hidden> wrote:
>
> > On Sun, Mar 03, 2019 at 08:51:05PM +0000, Gavin Smith wrote:
> > > As far as I know the only barrier to changing the escape character is
> > > that old texindex is still installed.
> >
> > texindex 6.6 doesn't appear to handle @ properly as an index initial.  With 
> > the input
> >
> > @entry{\, address@hidden @backslashcurfont }, backslash}
> > @address@hidden }, open address@hidden {}, open brace}
> > @address@hidden }, close address@hidden {}, close brace}
> > @entry{@@, at sign}{1}{@@, at sign}
> > @entry{@@, at address@hidden {}, at sign}
> >
> > it gives the output
> >
> > @initial address@hidden
> > @entry {@@, at sign}{1}
> > @initial {\}
> > @entry address@hidden @backslashcurfont }, backslash}{1}
> > @initial address@hidden }}
> > @entry address@hidden {}, open brace}{1}
> > @initial address@hidden }}
> > @entry address@hidden {}, close brace}{1}
> >
> > - it should be @initial{@@} instead.
> >
> > It doesn't work with \\ in an index entry either (outputing \initial{\} 
> > if \ is the escape character), but that doesn't matter because 
> > texinfo.tex is not putting \\ in the index files.
>
> The fix is simple:
>
> $ git diff ti.twjr
> diff --git a/texindex/ti.twjr b/texindex/ti.twjr
> index ec59f68a5..7d5621f89 100644
> --- a/texindex/ti.twjr
> +++ b/texindex/ti.twjr
> @@ -443,7 +443,7 @@ function beginfile(filename)
>        || substr($0, 2, 5) != "entry")
>      fatal(_"%s is not a Texinfo index file\n", filename)
>  
> -  Special_chars = "{}"
> +  Special_chars = "{}" Command_char
>  }
>  @
>
> I will push this later or you can beat me to it. :-)
>
> Thanks,
>
> Arnold



reply via email to

[Prev in Thread] Current Thread [Next in Thread]