Generate a static back-of-a-book style index?

Cameron Simpson cs at cskk.id.au
Sat Jul 7 22:12:20 EDT 2018


On 07Jul2018 20:11, Skip Montanaro <skip.montanaro at gmail.com> wrote:
>> Have you looked at the ptx command? Might be called "gptx" on a system with the
>> GNU coreutils installed with "g" prefixes.
>
>Thanks, Cameron. I was unaware of it. Will check it out.

BTW, it well predates the GNU coreutils; I used it on V7 UNIX. Nicely, it 
includes the surrounding words in the index output for context, makes for a far 
more usable index listing. You may need to postprocess the output to fit your 
needs.

Cheers,
Cameron Simpson <cs at cskk.id.au>



More information about the Python-list mailing list