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

> 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`.

I have had a look at this now. Your runaway hot spotting was cured by removing
the \c from the \\*[an*hyperlink]\c after the "--". However, this just
hotspots the hyperlink and the text in the diversion is output as normal text,
which is not what we want!

The problem is that it is difficult to pass the contents of a diversion as a
parameter to pdfhref, so I added a new facility to pdf.tmac that if you pass
the pipe character "|" on its own as the description then the hotspot is
started but it is then the responsibility of the caller to mark the end of the
hotspot by calling:-

.        nop \X'pdf: markend'\m[\\*[pdf:curcol]]\c

Which will also restore the colour before hotspotting started. At the moment,
I have only added this facility to pdfhref-L but I'd consider extending if
needed. I also have not added pdfmarksuspend/restart to man footer/header
definitions, I'm not that familiar with the man macro set.

The attached gropdf.1.pdf has three hotspots

(file #55114)

    _______________________________________________________

Additional Item Attachment:

File name: gropdf.1.pdf                   Size:217 KB
    <https://file.savannah.gnu.org/file/gropdf.1.pdf?file_id=55114>



    _______________________________________________________

Reply to this item at:

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

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


Reply via email to