[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #61434] [man] want support for hyperlinked paragraph tags
From: |
Deri James |
Subject: |
[bug #61434] [man] want support for hyperlinked paragraph tags |
Date: |
Fri, 2 Feb 2024 10:00:14 -0500 (EST) |
Follow-up Comment #4, bug#61434 (group groff):
[comment #3 comment #3:]
> This was an important follow-up commit.
> commit 52a5a89c0da9f90c83441b8eb8020344a8468686
> Author: G. Branden Robinson <g.branden.robinson@gmail.com>
> Date: Thu Feb 1 23:23:45 2024 -0600
>
...
> Unfortunately, "pdf.tmac" doesn't
> expose a clean abstraction for "link starts here" and "link stops
here",
> instead implementing a hugely featured `pdfhref` macro that attempts to
> do everything--except support bracketing the link text in a diversion,
> which our man(7) design requires.
Is this accurate? It was true before my commit d71f9264 which enabled .MT and
.UR to be hyperlinks (both of which used diversions) and provided a means to
"bracket" the resulting text as a hotspot. Maybe the mechanism of using the
pipe character to "open" the bracket needs further promulgation, or perhaps we
should add a pair of macros to pdf.tmac, something like:-
.de pdflinkstart
. ds pdf:col \\n[.m]
. pdfhref \\$1 -D \\$2 "|"
..
.
.de pdflinkend
. nop \X'pdf: markend'\m[\\*[pdf:col]]\c
..
Which could be used as:-
.pdflinkstart W http://bbc.co.uk
.nf
A multi
line hotlink (possibly from a diversion)
.fi
.pdflinkend
Just a thought.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61434>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/