bug-texinfo
[Top][All Lists]
Advanced

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

Re: Colon in index items


From: Karl Berry
Subject: Re: Colon in index items
Date: Mon, 18 Mar 2002 08:52:21 -0500

BTW, can the Info readers resolve the problem simply by working
backwards to the last : instead of going forwards to the first :?
I feel like I must be missing something obvious or this would have been
done long ago.

For instance, consider this index entry from the autoconf manual, which
is currently misparsed by both Info and Emacs:
* @%:@:                                  Quadrigraphs.

A regular expression such as (egrep syntax for simplicity):
^\* (.*)( <[0-9]>*)?:[ \t]*(.*)\.$

will end up with \1 being @%:@ (the index entry name)
and \3 being Quadrigraphs (the node name).

Of course it won't work with a : in the node name, but that's already
disallowed for other reasons.

?

Thanks,
k



reply via email to

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