[Top][All Lists]

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

Re: sorting texinfo indices?

From: David Kastrup
Subject: Re: sorting texinfo indices?
Date: Sat, 01 Aug 2009 09:21:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Graham Percival <address@hidden> writes:

> On Fri, Jul 31, 2009 at 01:11:02PM -0700, Mark Polesky wrote:
>> ...from which texinfo magically generates IR A. "Indices":
>> I'd like the list (and others like it) to be sorted according to
>> the algorithm in scm/lily-sort.scm. Judging from recent threads, I
>> figure some python tweaking would be necessary? I'm not about to
>> learn python, but does anyone know how this could be done?
> - download the texinfo source code.  It's in C.
> - download the texi2html source code.  It's in perl.
> - implement your favorite sorting routine as an optional feature
>   in both those projects.  Alternately, add hooks to those
>   projects so that users can specify their own sorting routines in
>   some language.
> - wait 1 year for new releases to come out in those projects
> - get the sorting you want in those indexes.
> As I said in
> it's pretty much beyond our control, and IMO totally not worth the
> effort involved.

The sorting is done by a binary called "texindex".  Creating one's own
sorter with that name and placing it at the front of PATH for the
duration of the documentation creating commands should be sufficient.
No need to otherwise meddle with texinfo AFAICT.

Not trivial, but you could start with a stock texindex source and go
from there.  But then that might be quite more versatile than necessary;
likely a much simpler program would work for this, and then one might
actually be able to use a guile script, employing the original sorting

David Kastrup

reply via email to

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