bug-groff
[Top][All Lists]
Advanced

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

[bug #65354] Using -mspdf with -Tpdf signals error: pdfhref:init: unknow


From: G. Branden Robinson
Subject: [bug #65354] Using -mspdf with -Tpdf signals error: pdfhref:init: unknown feature '-PT'
Date: Sat, 9 Mar 2024 09:57:08 -0500 (EST)

Update of bug #65354 (group groff):

                Severity:              3 - Normal => 2 - Minor              
                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up 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.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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