groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Format-agnostic hyperlinks


From: B 9
Subject: Re: Format-agnostic hyperlinks
Date: Thu, 23 Jul 2020 23:54:26 -0700
User-agent: s-nail v14.9.11

John Gardner <gardnerjohng@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

[Prev in Thread] Current Thread [Next in Thread]