gbranden pushed a commit to branch master
in repository groff.

commit a4660afe8e67a64fd50c8b3b8a6d69ecf8df1e5f
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Apr 16 12:52:55 2026 -0500

    [doc,man],groff_man*(7): Fix my erroneous claim.
    
    The problem with leading a word with `\%` to prevent its hyphenation
    does not fail on AT&T troff systems due to the formatter itself, but due
    to the way font selection macros are written in its man(7) macros.
---
 doc/groff.texi.in       | 14 --------------
 man/groff_diff.7.man    | 16 ----------------
 tmac/groff_man.7.man.in | 29 +++++++++++++++++++++++++++++
 3 files changed, 29 insertions(+), 30 deletions(-)

diff --git a/doc/groff.texi.in b/doc/groff.texi.in
index ee1a9d303..59458a516 100644
--- a/doc/groff.texi.in
+++ b/doc/groff.texi.in
@@ -22752,20 +22752,6 @@ which is not suitable in GNU
 for some languages,
 including English.
 
-Unlike
-GNU
-@command{troff}, @c GNU
-@acronym{AT&T}
-@command{troff} @c AT&T
-does not recognize an occurrence of
-@code{\%}
-at the beginning of a word as suppressing its hyphenation;
-instead,
-it (uselessly) marks the start of the word
-as a potential hyphenation point,
-permitting output lines to end with hyphens
-that are not interior to a word.
-
 GNU
 @command{troff} @c GNU
 handles the dummy character
diff --git a/man/groff_diff.7.man b/man/groff_diff.7.man
index 5658fe49e..485fba383 100644
--- a/man/groff_diff.7.man
+++ b/man/groff_diff.7.man
@@ -6841,22 +6841,6 @@ including English.
 .
 .
 .P
-Unlike
-GNU
-.IR troff , \" GNU
-AT&T
-.I troff \" AT&T
-does not recognize an occurrence of
-.B \[rs]%
-at the beginning of a word as suppressing its hyphenation;
-instead,
-it (uselessly) marks the start of the word
-as a potential hyphenation point,
-permitting output lines to end with hyphens
-that are not interior to a word.
-.
-.
-.P
 GNU
 .I troff \" GNU
 handles the dummy character
diff --git a/tmac/groff_man.7.man.in b/tmac/groff_man.7.man.in
index 5e61b5156..4f4b9f340 100644
--- a/tmac/groff_man.7.man.in
+++ b/tmac/groff_man.7.man.in
@@ -2743,6 +2743,35 @@ those specified with
 .BR \e% .
 .
 .
+.IP
+Beginning a word with this escape sequence doesn't work
+with font selection macros
+in
+DWB,
+Plan\~9,
+or
+Solaris
+.IR troff s \" DWB, Plan 9, Solaris
+due to the way their
+.I man
+macros are written.
+.\" They're all like this:
+.\"
+.\".deXX
+.\".nh
+.\".ft2 \" or whichever
+.\".it1 }N
+.\".if!<BEL>\\$1<BEL><BEL> \&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6
+.\".HY
+.\"
+.\" The prefixing of the first argument with a dummy character means
+.\" that the argument's `\%` loses its place at the start of the
+.\" interpolated word.  A spurious "inter-word" hyphenation break point
+.\" is the unwelcome result.  GBR knows of no good way to defeat this.
+.\" There are many bad ones that would be intrusive in man(7) document
+.\" source.
+.
+.
 .TP
 .B \e:
 Insert a non-printing break point.

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to