groff
[Top][All Lists]
Advanced

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

Re: Groff macro to make .UR and .UE links clickable in PDF?


From: Jan Stary
Subject: Re: Groff macro to make .UR and .UE links clickable in PDF?
Date: Fri, 19 Jun 2020 17:46:39 +0200

On Jun 19 06:08:44, hackerb9@member.fsf.org wrote:
> Jan Stary (or anyone): would you please post the output of 'groff -Z
> -mdoc -Tpdf' for the example input which converted Lk to hyperlinks?
> I'd like to paste it into Alhadis's Roff.js and see where my groff is
> going wrong. I'm including my output below.
> 
> ----------------------------------------------------------------------
> INPUT:
> 
> .Dd June 16, 2020
> .Dt LINKS 1
> .Os
> .Sh NAME
> .Nm links
> .Nd typeset links in mdoc documents
> .Sh DESCRIPTION
> The home page is
> .Lk http://www.frijid.net/madness/madness.html
> so go visit it now.

This is my output (diff to your output follows):

x T pdf
x res 72000 1 1
x init
p1
x font 5 TR
f5
s10000
V48000
H72000
md
DFd
tLINKS
h1666
t(1)
h134854
tGeneral
wh2500
tCommands
wh2500
tManual
h134854
tLINKS
h1666
t(1)
n12000 0
x font 16 TB
f16
V96000
H72000
tN
H79020
tAME
n12000 0
x font 8 CB
f8
V108000
H102000
tlinks
wf5
h2500
Cen
wh7500
ttypeset
wh2500
tlinks
wh2500
tin
wh2500
tmdoc
wh2500
tdocuments
n12000 0
f16
V132000
H72000
tDESCRIPTION
n12000 0
f5
V144000
H102000
tThe
wh2500
thome
wh2500
tpage
wh2500
tis
wf16
h2500
thttp://www
H222950
t.frijid.net/madness/madness.html
wf5
h2500
tso
wh2500
tgo
wh2500
tvisit
wh2500
tit
wh2500
tno
H428830
tw
H435400
t.
n12000 0
V750000
H72000
tOpenBSD
h164975
tJune
wh2500
t16,
wh2500
t2020
h201085
t1
n12000 0
x trailer
V792000
x stop

> ----------------------------------------------------------------------
> B9's OUTPUT FROM groff -Z -mdoc -Tpdf
> 
> x T pdf
> x res 72000 1 1
> x init
> p1
> x font 5 TR
> f5
> s10000
> V48000
> H72000
> md
> DFd
> tLINKS
> h1666
> t(1)
> h123879
> tBSD
> wh2500
> tGeneral
> wh2500
> tCommands
> wh2500
> tManual
> h123879
> tLINKS
> h1666
> t(1)
> n12000 0
> x font 36 TB
> f36
> V96000
> H72000
> tN
> H79020
> tAME
> n12000 0
> x font 8 CB
> f8
> V108000
> H102000
> tlinks
> wf5
> h2500
> Cem
> wh12500
> ttypeset
> wh2500
> tlinks
> wh2500
> tin
> wh2500
> tmdoc
> wh2500
> tdocuments
> n12000 0
> f36
> V132000
> H72000
> tDESCRIPTION
> n12000 0
> f5
> V144000
> H102000
> tThe
> wh2500
> thome
> wh2500
> tpage
> wh2500
> tis
> wf36
> h2500
> thttp://www
> H222950
> t.frijid.net/madness/madness.html
> wf5
> h2500
> tso
> wh2500
> tgo
> wh2500
> tvisit
> wh2500
> tit
> wh2500
> tno
> H428830
> tw
> H435400
> t.
> n12000 0
> V750000
> H72000
> tBSD
> h186635
> tJune
> h2500
> t16,
> wh2500
> t2020
> h201085
> t1
> n12000 0
> x trailer
> V792000
> x stop
> 

diff for your convenience:

--- out Fri Jun 19 17:43:21 2020
+++ links.out   Fri Jun 19 17:42:53 2020
@@ -12,21 +12,19 @@ DFd
 tLINKS
 h1666
 t(1)
-h123879
-tBSD
-wh2500
+h134854
 tGeneral
 wh2500
 tCommands
 wh2500
 tManual
-h123879
+h134854
 tLINKS
 h1666
 t(1)
 n12000 0
-x font 36 TB
-f36
+x font 16 TB
+f16
 V96000
 H72000
 tN
@@ -40,8 +38,8 @@ H102000
 tlinks
 wf5
 h2500
-Cem
-wh12500
+Cen
+wh7500
 ttypeset
 wh2500
 tlinks
@@ -52,7 +50,7 @@ tmdoc
 wh2500
 tdocuments
 n12000 0
-f36
+f16
 V132000
 H72000
 tDESCRIPTION
@@ -67,7 +65,7 @@ wh2500
 tpage
 wh2500
 tis
-wf36
+wf16
 h2500
 thttp://www
 H222950
@@ -90,10 +88,10 @@ t.
 n12000 0
 V750000
 H72000
-tBSD
-h186635
+tOpenBSD
+h164975
 tJune
-h2500
+wh2500
 t16,
 wh2500
 t2020


Jan




reply via email to

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