help-texinfo
[Top][All Lists]
Advanced

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

Re: [help-texinfo] Index entries for "@command" & Co.


From: Tim Landscheidt
Subject: Re: [help-texinfo] Index entries for "@command" & Co.
Date: Mon, 26 Mar 2012 14:37:46 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

address@hidden (Karl Berry) wrote:

> [...]
>     but also in TeX which (for me at least) skews any cost-benefit ratio :-).

> :).  No index sorting has ever been implemented in texinfo.tex.  It's
> done with a separate C program, texindex, which remains essentially in
> its original state as of 1987 or so, sorting ASCII.  Life goes on ...

Well, my user interface to texinfo is usually autotools, and
as that has been working forever, I had never bothered to
investigate the workflow :-).  I had only skimmed the code,
but to me texinfo.fn looked like it is generated by code in
texinfo.tex and the right place to start:

| \entry{command}{83}{\code {command}}

If the third argument is the displayed text and the first
item is the sort key, "all" that needs to done would be to
output:

| \entry{command}{83}{\code address@hidden

for the input "@findex @@command" or a hypothetical
"@findexwithsortkey @@command command".  (I'd prefer the
latter as it leaves more control to the user and doesn't
subject him to the mercy of collations.)

Tim




reply via email to

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