[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, 31 Jul 2020 22:54:56 +1000 |
If it DOES get implemented in Groff, please name it `.indexof`. The name
`.index` is so horribly misleading I'm almost tempted to submit a PR just
to rename it.
On Fri, 31 Jul 2020, 2:41 pm B 9, <hackerb9@member.fsf.org> wrote:
> "Denis M. Wilson" <dmw@oxytropis.plus.com> wrote:
>
> > Sorry, the macros I've written are .strchr and .strrchr.
> >
> > .index should not be too hard using direct method (KMP is too
> > complicated). I may have time to try, no promises...
>
> Thank you. I had a mistaken presumption that it was something people
> would've already solved as a groff macro. Unless you find it a fun
> challenge, you needn't attempt it on my behalf. It seems like the
> right solution in the long run is to implement .index in groff's C
> code.
>
> —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?, 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 <=
- 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