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. ;-)

Reply via email to