"G. Branden Robinson" <[email protected]> wrote:
 |At 2017-04-22T16:15:48+0200, Steffen Nurpmeso wrote:
 |> "G. Branden Robinson" <[email protected]> wrote:
 |>|At 2017-04-21T21:56:24-0400, Doug McIlroy wrote:
 |>|> I think it's pretty hopeless to ask for AI that can tell
 |>|> whether a pasted symbol is a hyphen or a minus sign.
 |>|> The answer is likely to depend on whether it is being
 |>|> pasted into a program or into a document.
 |>|
 |>|Here's my attempt at clarifying the issue.
 |> 
 |> I for myself will keep all that in my queue; but i think it will
 |> be better to write something like "unless documented otherwise",
 |> and then add such notes for man(7) and mdoc(7).
 |
 |Sounds reasonable.  Interested in a revised patch to do just that?  ;-)

Maybe so?  But, like its name says...
A nice rest-weekend i wish.

--steffen
diff --git a/man/groff.7.man b/man/groff.7.man
index ed53ca1a..c4e636a1 100644
--- a/man/groff.7.man
+++ b/man/groff.7.man
@@ -2824,7 +2824,15 @@ Unescaped: left quote, backquote (ASCII 0x60).
 .
 .TP
 .ESC -
-The \- (minus) sign in the current font.
+The mathematical \- (minus) sign in the current font.
+Some macro packages, namely
+.BR groff_man (7)
+and
+.BR groff_mdoc (7) ,
+which support generation of Unix manual pages, map this to
+U+002D hyphen-minus instead.
+(E.g., this usually allows for copy and paste usage of
+manual content.)
 .
 .TP
 .ESC _
diff --git a/man/groff_char.7.man b/man/groff_char.7.man
index 1869f951..719b9f1c 100644
--- a/man/groff_char.7.man
+++ b/man/groff_char.7.man
@@ -268,7 +268,10 @@ single quotation mark; the original character can be obtained with
 .TP
 .B -
 the ISO \%latin1 \[oq]Hyphen, Minus Sign\[cq] (code\ 45) prints as a
-hyphen; a minus sign can be obtained with \[oq]\f(CW\e-\fP\[cq].
+hyphen; a mathematical minus sign can be obtained with
+\[oq]\f(CW\e(mi\fP\[cq].
+Explicit symbols can be found in the table
+.BR Punctuation .
 .
 .
 .TP
diff --git a/tmac/groff_man.7.man b/tmac/groff_man.7.man
index f207ef6d..e618f775 100644
--- a/tmac/groff_man.7.man
+++ b/tmac/groff_man.7.man
@@ -1135,6 +1135,14 @@ preprocessor(s).
 .SH "PORTABILITY AND TROFF REQUESTS"
 .\" --------------------------------------------------------------------
 .
+The
+.B man
+macros remap some characters, e.g., the minus sign \-.
+To gain specific punctuation and other symbols it is advisable
+to use explicit requests, see
+.BR groff_char (7)
+for more.
+.
 Since the
 .B man
 macros consist of groups of
diff --git a/tmac/groff_mdoc.7.man b/tmac/groff_mdoc.7.man
index 5968d0b6..36541720 100644
--- a/tmac/groff_mdoc.7.man
+++ b/tmac/groff_mdoc.7.man
@@ -4147,6 +4147,14 @@ A normal user will never need it.
 .
 .Sh "FORMATTING WITH GROFF, TROFF, AND NROFF"
 .
+The
+.Nm
+macros remap some characters, e.g., the minus sign \-.
+To gain specific punctuation and other symbols it is advisable
+to use explicit requests, see
+.Xr groff_char 7
+for more.
+.Pp
 By default, the package inhibits page breaks, headers, and footers if
 displayed with a
 .Tn TTY

Reply via email to