Re: Format-agnostic hyperlinks

2020-07-23 Thread B 9
John Gardner wrote: > > Does your package interpret the URL that's passed in? > > Nope, not at all. URLs are passed through verbatim; authors can always add > \: themselves, although toggling word-breakage is probably better achieved > using a "no-wrap" macro. I think that's the solution www.t

Re: Quick question: how to do .index in groff?

2020-07-23 Thread John Gardner
You might be able to achieve this using Groff's .while, .length, and .substring requests. Not sure what use-case a substring's index could be in Roff though... On Fri, 24 Jul 2020 at 09:13, B 9 wrote: > Heirloom Troff has a handy string search function called .index which > works like this: > >

Re: Format-agnostic hyperlinks

2020-07-23 Thread John Gardner
> > albeit a bit mind warping to see Markdown and Troff mixed. Heh, I wouldn't call that Markdown. Particularly when I'm going to add a third syntax for email addresses: .[ "This mailing list" ]< *groff@gnu.org * > .[ *groff@gnu.org * ]<> The reason for this third syntax is so "mailto:"; won't

Quick question: how to do .index in groff?

2020-07-23 Thread B 9
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

Re: Format-agnostic hyperlinks

2020-07-23 Thread B 9
John Gardner wrote: > Recent discussion on this list about PDF and HTML links galvanised an > earlier attempt of mine to implement hyperlinks in Troff in a device- and > package-agnostic manner: It's still very much a W.I.P., but > > .[ "here's what I've done so far" ]( > https://github.com/Alha

Format-agnostic hyperlinks

2020-07-23 Thread John Gardner
Hey folks, Recent discussion on this list about PDF and HTML links galvanised an earlier attempt of mine to implement hyperlinks in Troff in a device- and package-agnostic manner: It's still very much a W.I.P., but .[ "here's what I've done so far" ]( https://github.com/Alhadis/Mono/commit/f363ed