bug-groff
[Top][All Lists]
Advanced

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

[bug #64576] [pdf.tmac] pdf*href option handling insufficiently flexible


From: G. Branden Robinson
Subject: [bug #64576] [pdf.tmac] pdf*href option handling insufficiently flexible
Date: Tue, 22 Aug 2023 12:00:22 -0400 (EDT)

Follow-up Comment #5, bug #64576 (project groff):

[comment #4 comment #4:]
> Just completed a fix to allow any input to be used as a valid *roff
identifier. This allows all UTF-8 to be used as well. So both "Known Issues"
in my NewGropdf document are now ticked off. :-)

Wow!  Push, push!  (As Herbie Mann said.  Or Robert Plant.)  I want to see
what this looks like when we don't have `for` yet!

Incidentally, and to motivate my frustration with the `pdfhref` approach, the
following works _terribly_.  The hotspots don't know where to end, going nuts
and electrifying everything after them even without a page break to screw them
up by not calling `pdfmarksuspend` and `pdfmarkrestart`.


diff --git a/tmac/an.tmac b/tmac/an.tmac
index ad9090ceb..f614cef03 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -1110,6 +1110,9 @@ contains unsupported escape sequence
 .    ie \\n[dn] \{\
 .      if \\n[an*is-output-html] \
 .        nop \X^html:<a href="\\*[an*prefix]\\*[an*hyperlink]">^\c
+.      if \\n[an*is-output-pdf] \
+.        pdfhref W -D \\*[an*prefix]\\*[an*hyperlink] -- \
+\\*[an*hyperlink]\c
 .      if \\n[an*is-output-terminal] \
 .        nop \X^tty: link \\*[an*prefix]\\*[an*hyperlink]^\c
 .      \" Strip off the final newline of the diversion and emit it.
@@ -1127,6 +1130,9 @@ contains unsupported escape sequence
 .      if \\n[an*is-output-html] \
 .        nop \X^html:<a href="\\*[an*prefix]\\*[an*hyperlink]">\
 \\*[an*hyperlink]</a>^\c
+.      if \\n[an*is-output-pdf] \
+.        pdfhref W -D \\*[an*prefix]\\*[an*hyperlink] -- \
+\\*[an*hyperlink]\c
 .      if \\n[an*is-output-terminal] \
 .        nop \X^tty: link \\*[an*prefix]\\*[an*hyperlink]^\
 \\*[an*hyperlink]\X^tty: link^\c




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64576>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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