In any case, handling line-wrapping isn't the responsibility of the hyperlink macro. Mono is more of a general-purpose utility-belt for low-level Roff programming than a high-level document preparation package (in the sense of ms, mm, mom, mdoc, etc).
No need to implement the Boyer-Moore algorithm in Groff. ;-) Points for even knowing what that is. 😉 On Fri, 24 Jul 2020 at 16:54, B 9 <hacke...@member.fsf.org> wrote: > John Gardner <gardnerjo...@gmail.com> 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.tmac used at first. That's why URLs > would run off the right margin and authors were forced to add \: after > every slash. I like the current way www.tmac is implemented, with more > intelligent URL line breaking. It lets authors focus on the writing, > not the typesetting. > > --b9 > > P.S. I was asking about .index because I was trying to figure out if a > certain series of characters was present in a string. In particular, I > wanted to detect if people had used "\:" in a URL so I could warn them > that it would be used verbatim as the link which is probably not what > they want. It turned out I didn't need .index as "\:" is a single > character so I could loop through the string. No need to implement the > Boyer-Moore algorithm in Groff. ;-) > >