[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 04/25: [man]: Revert addition of `BD` register.
From: |
G. Branden Robinson |
Subject: |
[groff] 04/25: [man]: Revert addition of `BD` register. |
Date: |
Wed, 2 Mar 2022 05:12:05 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 3baf0e2f30659b1505a575ed219bf021b0e6458d
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Feb 23 01:56:59 2022 +1100
[man]: Revert addition of `BD` register.
Revert addition of man(7) `BD` register. This feature, which I
introduced in commit ea3b27102f (31 January) doesn't work because
pdf.tmac normalizes the bookmark depth. Embedding a man page in a
larger PDF document with appropriately nested bookmarks is a project
that will have to await another day (or perhaps already has tools to
implement it).
* tmac/an.tmac: Do it.
* tmac/groff_man.7.man.in: De-document it.
---
ChangeLog | 12 ++++++++++++
tmac/an.tmac | 5 +----
tmac/groff_man.7.man.in | 14 --------------
3 files changed, 13 insertions(+), 18 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6417f7f0..5b22b69b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2022-02-23 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ Revert addition of man(7) `BD` register. This feature, which I
+ introduced in commit ea3b27102f (31 January) doesn't work
+ because pdf.tmac normalizes the bookmark depth. Embedding a man
+ page in a larger PDF document with appropriately nested
+ bookmarks is a project that will have to await another day (or
+ perhaps already has tools to implement it).
+
+ * tmac/an.tmac: Do it.
+ * tmac/groff_man.7.man.in: De-document it.
+
2022-02-23 G. Branden Robinson <g.branden.robinson@gmail.com>
* tmac/pdf.tmac: Add string containing the name of the macro
diff --git a/tmac/an.tmac b/tmac/an.tmac
index f5b91869..91462999 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -193,7 +193,7 @@
.\" Write a bookmark/anchor/link target $2 at hierarchical depth $1.
.de an*bookmark
. if '\\*[.T]'pdf' \{\
-. nr an*bookmark-depth \\n[BD]+\\$1
+. nr an*bookmark-depth \\$1
. pdfbookmark \\n[an*bookmark-depth] \\$2
. rr an*bookmark-depth
. \}
@@ -1117,9 +1117,6 @@
.\" Set each rendering parameter only if its -[dr] option or man.local
.\" did not.
.
-.\" base depth for bookmarks (for embedding man pages in other docs)
-.if !r BD .nr BD 0
-.
.if '\*[.T]'pdf' \{\
. \" FIXME: The following registers are documented only in pdf.tmac.
. if !r PDFOUTLINE.FOLDLEVEL .nr PDFOUTLINE.FOLDLEVEL 1
diff --git a/tmac/groff_man.7.man.in b/tmac/groff_man.7.man.in
index 642bccac..8213450b 100644
--- a/tmac/groff_man.7.man.in
+++ b/tmac/groff_man.7.man.in
@@ -3183,19 +3183,6 @@ for less-common choices.
.
.
.TP
-.BI \-rBD= base-bookmark-depth
-Set the depth below which all man pages' PDF bookmarks will be arranged.
-.
-The default is 0;
-changing it may be useful if a man page is to be embedded in a larger
-PDF document.
-.
-This option is only meaningful when producing output for the
-.B pdf
-device.
-.
-.
-.TP
.B \-rcR=1
Enable continuous rendering.
.
@@ -3953,7 +3940,6 @@ implemented the
and
.B MF
strings;
-.BR BD ,
.BR CS ,
.BR CT ,
and
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 04/25: [man]: Revert addition of `BD` register.,
G. Branden Robinson <=