>
> Indexing is quite complicated

Denis: he's not referring to *content* indexing, but a Heirloom Troff
request named `.index` which should arguably be named `.indexof` instead.
It simply returns the index of a substring if found within a larger string,
presumably returning -1 to indicate nothing was found.

On Fri, 24 Jul 2020 at 19:33, Denis M. Wilson <d...@oxytropis.plus.com>
wrote:

> I have an indexing package which uses 'makeindex', and the results are
> good. Indexing is quite complicated. If you care to look at the source
> it is in Index,pkg part of
> http://www.oxytropis.plus.com/groff/markup-1.0.7a.tar.gz
> Denis
>
> On Thu, 23 Jul 2020 16:13:41 -0700
> B 9 <hacke...@member.fsf.org> wrote:
>
> > Heirloom Troff has a handy string search function called .index which
> > works like this:
> >
> > .index R xx string
> >
> > The position where string occurs in xx is stored in register R.
> >
> > It doesn't seem to work yet in Groff, but I'm hoping somebody has a
> > macro that implements .index.
> >
> > Thanks,
> >
> > --b9
> >
>
>
> --
>
>

Reply via email to