[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Quick question: how to do .index in groff?
From: |
John Gardner |
Subject: |
Re: Quick question: how to do .index in groff? |
Date: |
Fri, 24 Jul 2020 19:50:01 +1000 |
>
> 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 <dmw@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 <hackerb9@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
> >
>
>
> --
>
>
- Quick question: how to do .index in groff?, B 9, 2020/07/23
- Re: Quick question: how to do .index in groff?, John Gardner, 2020/07/23
- Re: Quick question: how to do .index in groff?, Denis M. Wilson, 2020/07/24
- Re: Quick question: how to do .index in groff?,
John Gardner <=
- Re: Quick question: how to do .index in groff?, Denis M. Wilson, 2020/07/24
- Re: Quick question: how to do .index in groff?, B 9, 2020/07/25
- Re: Quick question: how to do .index in groff?, Denis M. Wilson, 2020/07/27
- Re: Quick question: how to do .index in groff?, B 9, 2020/07/31
- Re: Quick question: how to do .index in groff?, John Gardner, 2020/07/31
- Re: Quick question: how to do .index in groff?, Tadziu Hoffmann, 2020/07/31
- Re: Quick question: how to do .index in groff?, Denis M. Wilson, 2020/07/31
Re: Quick question: how to do .index in groff?, Bjarni Ingi Gislason, 2020/07/25