diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2005-11-20 14:24:56 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2005-11-20 14:24:56 +0000 |
commit | fff434a75cba7f229980b23c562fc678f869388a (patch) | |
tree | c7a7303518bb4fb116809cdbccde5c5ffdac47be | |
parent | d1ea0a2c7a6c434ede161eccd0d26f72c6dcc946 (diff) |
much to my horror, it turns out that `\-' and `\(en' are not equivalent,
and neither are `--' and `\(em'.
this diff reworks the hyphens and dashes section, and is from ray lai;
i doubt anyone would believe how many emails we had to exchange to
sort this small issue out.
jaredy@ ok'd it in a slightly different form;
-rw-r--r-- | share/man/man7/mdoc.samples.7 | 46 |
1 files changed, 28 insertions, 18 deletions
diff --git a/share/man/man7/mdoc.samples.7 b/share/man/man7/mdoc.samples.7 index 61a340a8b1f..3243f948181 100644 --- a/share/man/man7/mdoc.samples.7 +++ b/share/man/man7/mdoc.samples.7 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mdoc.samples.7,v 1.67 2005/09/29 17:41:49 jaredy Exp $ +.\" $OpenBSD: mdoc.samples.7,v 1.68 2005/11/20 14:24:55 jmc Exp $ .\" $NetBSD: mdoc.samples.7,v 1.5 1996/04/03 20:17:34 jtc Exp $ .\" .\" Copyright (c) 1990, 1993 @@ -456,10 +456,12 @@ with to preserve the backslash. .Ss Dashes and Hyphens -In typography there are three types of dashes of various width: +In typography there are different types of dashes of various width: the hyphen (-), -the en-dash (\-), +the minus sign (\-), +the en-dash (\(en), and the em-dash (\(em). +.Pp Hyphens are used for adjectives; to separate the two parts of a compound word; or to separate a word across two successive lines of text. @@ -469,28 +471,36 @@ blue-eyed lorry-driver .Ed .Pp +The mathematical minus sign is used for negative numbers or subtraction. +It should be written as +.Sq \e- : +.Bd -unfilled -offset indent +a = 3 \e- 1; +b = \e-2; +.Ed +.Pp The en-dash is used to separate the two elements of a range, -or can be used the same way as colons, semi-colons or parentheses. -It is also used as the mathematical minus symbol. -It should be escaped with the -.Sq \e -character: +or can be used the same way as an em-dash. +It should be written as +.Sq \e(en : .Bd -unfilled -offset indent -pp. 95\e\-97. -Go away \e\- or else! -\e\-2 +pp. 95\e(en97. +Go away \e(en or else! +.Ed +.Pp +The em-dash can be used to show an interruption +or can be used the same way as colons, semi-colons, or parentheses. +It should be written as +.Sq \e(em : +.Bd -unfilled -offset indent +Three things \e(em apples, oranges, and bananas. +This is not that \e(em rather, this is that. .Ed .Pp Note: -hyphens and en-dashes will look identical under normal ASCII output. +hyphens, minus signs, and en-dashes look identical under normal ASCII output. Other formats, such as PostScript, render them correctly, with differing widths. -.Pp -The em-dash is used to mark a parenthesis \(em like this \(em -or an interruption. -It should be written as -.Pp -.Dl \e(em .Sh THE ANATOMY OF A MAN PAGE The body of a man page is easily constructed from a basic template found in the file |