bugGNU roff - Bugs: bug #65354, [pdfmark] using -mspdf with -Tpdf...

 
 

bug #65354: [pdfmark] using -mspdf with -Tpdf signals error: pdfhref:init: unknown feature '-PT'

Submitter:  None
Submitted:  Sat 24 Feb 2024 04:57:03 AM UTC
   
 
Category:  Macro - others/general Severity:  2 - Minor
Item Group:  Warning/Suspicious behaviour Status:  Confirmed
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 17 Mar 2024 06:39:16 PM UTC, comment #2: 

Will probably resolve this is as invalid (no longer valid, strictly), when we drop "contrib/pdfmark" from the groff distribution as contemplated in bug #63827.

It would be nice to get PDF hyperlink support into groff ms contemporaneously with that (then people wouldn't need "-mspdf" in the first place).  I'm finalizing this augmentation for man and mdoc, so it might happen...

G. Branden Robinson <gbranden>
Group administrator
Sat 09 Mar 2024 02:57:08 PM UTC, comment #1: 

This appears to be because the "pdf.tmac" file, which partially copies and partially reimplements Keith Marshall's pdfmark API from contrib/pdfmark/pdfmark.tmac, does not copy or reimplement the latter's 'pdf*href-PT.init' macro.

Keith Marshall is no longer participating in groff development (see bug #63827), and the maintainer of "pdf.tmac" is on sabbatical.

The purpose of this feature would appear to be suspending the active link text while a page-breaking trap is being sprung, which is a perfectly reasonable thing to do.

And the package does actually seem to do so.

Here's my input.


$ cat EXPERIMENTS/overflowing-link-text-in-pdf.ms
.DA "9 March 2024"
Beginning of document.
Much space follows.
.sp 8i
Sed ut perspiciatis, unde omnis iste natus error sit voluptatem
accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab
illo inventore veritatis et quasi architecto beatae vitae dicta sunt,
explicabo.  Nemo enim ipsam voluptatem, quia voluptas sit, aspernatur
aut odit aut fugit, sed quia consequuntur magni dolores eos, qui ratione
voluptatem sequi nesciunt, neque porro quisquam est, qui dolorem ipsum,
quia dolor sit amet consectetur
.pdfhref W -D https://www.gnu.org/software/groff/ -- \
Read about GNU \fIroff\fR here, it's really great, yeah. \
I mean, seriously, I could spend line after line of \fIroff\fP input \
singing its praises.
End of document.


On U.S. letter paper, I get a break in the midst of the link text, but the page footer and header in the transition from page 1 to 2 is not hyperlinked.  That looks like correct behavior to me.

I get an additional diagnostic, likely because I often use groff's `-ww` option, and Keith may have developed "pdfmark.tmac" without it.


pdf.tmac:/home/branden/src/GIT/groff/build/../contrib/pdfmark/spdf.tmac:251: error: pdfhref:init: unknown feature '-PT'
troff: backtrace: '/home/branden/src/GIT/groff/build/../contrib/pdfmark/spdf.tmac':42: trap-called macro 'pdf@exit'
troff: warning: macro 'pdfsync' not defined


Since these appear to be merely issues of spurious diagnostics being thrown, and the rendered document is fine, I am setting the severity to "Minor" accordingly.

That doesn't mean we won't fix it.

I have no ETA though.

G. Branden Robinson <gbranden>
Group administrator
Sat 24 Feb 2024 04:57:03 AM UTC, original submission:  

Using -mspdf with -Tpdf reliably signals an error:

pdf.tmac:/opt/local/share/groff/1.23.0/tmac/spdf.tmac:251: error: pdfhref:init: unknown feature '-PT'

This does not occur with -Tps.

To reproduce:

$ echo 'Hello world' | groff -Tpdf -mspdf >/dev/null

Expected results:

Clean exit.

Actual results:

pdf.tmac:/opt/local/share/groff/1.23.0/tmac/spdf.tmac:251: error: pdfhref:init: unknown feature '-PT'

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-03-17 gbranden CategoryMacro ms Macro - others/general
        SummaryUsing -mspdf with -Tpdf signals error: pdfhref:init: unknown feature '-PT' [pdfmark] using -mspdf with -Tpdf signals error: pdfhref:init: unknown feature '-PT'
    2024-03-09 gbranden Severity3 - Normal 2 - Minor
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code