[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 00:30:32 -0700 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
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
- Re: Feature request: multilevel indexing for TeX, arnold, 2019/03/01
- Re: Feature request: multilevel indexing for TeX, Patrice Dumas, 2019/03/01
- Re: Feature request: multilevel indexing for TeX, Gavin Smith, 2019/03/01
- Re: Feature request: multilevel indexing for TeX, Gavin Smith, 2019/03/01
- Re: Feature request: multilevel indexing for TeX, arnold, 2019/03/03
- Re: Feature request: multilevel indexing for TeX, Gavin Smith, 2019/03/03
- Re: Feature request: multilevel indexing for TeX, Gavin Smith, 2019/03/03
- imperfect support in texindex for @ as escape character (was multilevel indexing for TeX), Gavin Smith, 2019/03/05
- Re: imperfect support in texindex for @ as escape character (was multilevel indexing for TeX),
arnold <=
- Re: imperfect support in texindex for @ as escape character (was multilevel indexing for TeX), arnold, 2019/03/06
- Message not available
- Re: Feature request: multilevel indexing for TeX, Gavin Smith, 2019/03/07
- Re: Feature request: multilevel indexing for TeX, arnold, 2019/03/07
- Re: Feature request: multilevel indexing for TeX, Gavin Smith, 2019/03/08
- Re: Feature request: multilevel indexing for TeX, Gavin Smith, 2019/03/08
- Re: Feature request: multilevel indexing for TeX, arnold, 2019/03/14
Re: Feature request: multilevel indexing for TeX, Gavin Smith, 2019/03/02