gbranden pushed a commit to branch master
in repository groff.
commit 39d2cefa07d58c856e9e7b0b5f5e8380e949727d
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Apr 3 18:35:04 2026 -0500
[man,mdoc]: Apply new `rhw` request.
...clearing the user-defined hyphenation exception word list with every
new man(7) or mdoc(7) document.
* tmac/an.tmac (TH):
* tmac/doc-old.tmac (Dd):
* tmac/mdoc/doc-common (Dd): Do it.
---
ChangeLog | 10 ++++++++++
tmac/an.tmac | 3 +++
tmac/doc-old.tmac | 2 ++
tmac/mdoc/doc-common | 3 +++
4 files changed, 18 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 04b4978eb..39e5c6d1d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2026-04-03 G. Branden Robinson <[email protected]>
+
+ [man,mdoc]: Apply new `rhw` request, clearing the user-defined
+ hyphenation exception word list with every new man(7) or mdoc(7)
+ document.
+
+ * tmac/an.tmac (TH):
+ * tmac/doc-old.tmac (Dd):
+ * tmac/mdoc/doc-common (Dd): Do it.
+
2026-04-03 G. Branden Robinson <[email protected]>
* src/roff/troff/env.cpp: Implement `rhw` request removing
diff --git a/tmac/an.tmac b/tmac/an.tmac
index 25e677118..5f846b173 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -358,6 +358,9 @@
. rr HY
. rm AD
.
+. \" ...and clear any hyphenation exception words (groff 1.25).
+. if d rhw .rhw
+.
. an*reset-hyphenation-mode \\n[andoc*HY]
. an*reset-adjustment-mode \\*[andoc*AD]
. an*reset-section-parameters
diff --git a/tmac/doc-old.tmac b/tmac/doc-old.tmac
index e00495636..4e3abbb99 100644
--- a/tmac/doc-old.tmac
+++ b/tmac/doc-old.tmac
@@ -418,6 +418,8 @@
.el \{\
. ds dD Epoch
.\}
+.\" Clear any hyphenation exception words (groff 1.25).
+.if d rhw .rhw
..
.\"
.\" House Keeping Macro - Make sense of dT, cH, vT, sT, gP and dS
diff --git a/tmac/mdoc/doc-common b/tmac/mdoc/doc-common
index ce5dfbc85..e98619dc3 100644
--- a/tmac/mdoc/doc-common
+++ b/tmac/mdoc/doc-common
@@ -312,6 +312,9 @@
. rr HY
. rm AD
.
+. \" ...and clear any hyphenation exception words (groff 1.25).
+. if d rhw .rhw
+.
. doc-reset-titles
. doc-reset-hyphenation-mode \n[andoc*HY]
. doc-reset-adjustment-mode \*[andoc*AD]
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit