gbranden pushed a commit to branch master
in repository groff.
commit 037fce4a4cec028a3e803cf13e7dd9467a96d893
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 22 17:11:57 2026 -0600
[doc,man]: Document new `pftr` request syntax.
* doc/groff.texi.in (Debugging):
* man/groff.7.man.in (Request short reference):
* man/groff_diff.7.man (New requests): Document it.
Fixes <https://savannah.gnu.org/bugs/?68948>.
NEWS: Add item.
---
ChangeLog | 6 ++++++
NEWS | 5 +++++
doc/groff.texi.in | 7 ++++++-
man/groff.7.man.in | 8 ++++++++
man/groff_diff.7.man | 8 +++++++-
5 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ed605db5a..64842c8c6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,12 @@
* src/roff/groff/tests/pftr-request-works.sh: New files; do it.
* src/roff/groff/groff.am: Update `groff_TESTS` to run tests.
+ * doc/groff.texi.in (Debugging):
+ * man/groff.7.man.in (Request short reference):
+ * man/groff_diff.7.man (New requests): Document it.
+
+ Fixes <https://savannah.gnu.org/bugs/?68948>.
+
2026-11-22 G. Branden Robinson <[email protected]>
* src/roff/troff/node.cpp (print_font_translation_request): Fix
diff --git a/NEWS b/NEWS
index 0e2d60946..c0ef016c1 100644
--- a/NEWS
+++ b/NEWS
@@ -38,6 +38,11 @@ troff
and slant, as applicable; and its selected control and no-break
control characters.
+* The `pftr` request now accepts arguments. Each is interpreted as a
+ font identifier (which can be an abstract style but not a mounting
+ position), which is then looked up in the set of font translations
+ and reported if any translation exists.
+
* The formatter now emits a warning in category "style" if the escape
character precedes itself or a dot ('.') when the formatter is in
interpretation mode; in other words, when not in copy mode.
diff --git a/doc/groff.texi.in b/doc/groff.texi.in
index 6ba7fed3f..5632fe5b9 100644
--- a/doc/groff.texi.in
+++ b/doc/groff.texi.in
@@ -23376,12 +23376,17 @@ the meaning of which varies by output device,
follow.
@endDefreq
-@Defreq {pftr, }
+@Defreq {pftr, [@Var{font-id} @r{@dots{}}]}
@cindex dumping font translations (@code{pftr})
@cindex font translations, dumping (@code{pftr})
@cindex translations, font, dumping (@code{pftr})
Report,
to the standard error stream,
+the translation of each
+@var{font-id}
+(which can be an abstract style but not a mounting position),
+or,
+without arguments,
the list of all font translations.
Recall the
@code{ftr}
diff --git a/man/groff.7.man.in b/man/groff.7.man.in
index 121ca73e6..02ee29342 100644
--- a/man/groff.7.man.in
+++ b/man/groff.7.man.in
@@ -4915,6 +4915,14 @@ to the standard error stream,
the list of all font translations.
.
.TPx
+.REQ .pftr "font-id \fR\&.\|.\|.\&\fP"
+Report,
+to the standard error stream,
+the font translation of each
+.I font-id,
+if one exists.
+.
+.TPx
.REQ .phw
Report,
to the standard error stream,
diff --git a/man/groff_diff.7.man b/man/groff_diff.7.man
index 7727bb0a4..f23338c84 100644
--- a/man/groff_diff.7.man
+++ b/man/groff_diff.7.man
@@ -4060,9 +4060,15 @@ follow.
.
.
.TP
-.B .pftr
+.BR .pftr \~[\c
+.IR font-id \~\&.\|.\|.]
Report,
to the standard error stream,
+the translation of each
+.I font-id
+(which can be an abstract style but not a mounting position),
+or,
+without arguments,
the list of all font translations.
.
See
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit