diff options
author | des <des@FreeBSD.org> | 2009-05-21 17:56:00 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2009-05-21 17:56:00 +0000 |
commit | dfd6cf5c694608c6dc9e3f7cebdba83ff9b68394 (patch) | |
tree | 5c753e315635f4e149b22455d9e898de9f50c413 /contrib/groff/font/devutf8 | |
parent | 463c3bb6cdea1084a9f17925d4050f9135b1743b (diff) | |
download | FreeBSD-src-dfd6cf5c694608c6dc9e3f7cebdba83ff9b68394.zip FreeBSD-src-dfd6cf5c694608c6dc9e3f7cebdba83ff9b68394.tar.gz |
When man pages are formatted in UTF-8, .Fl is encoded as U+2212 "MINUS
SIGN" instead of U+002D "HYPHEN-MINUS". This is unfortunate for two
reasons: 1) this is not the character which is actually used on the
command line, and 2) it makes it impossible to search a man page for a
specific command-line option.
This patch fixes this, but there are other unresolved issues, such as
confusion between -, \- and hy: while the latter is always (and only)
used for hyphenation, both - and \- are used for negation and
subtraction, and \- is used for command-line options and sometimes
also for parenthesis. IMHO, the correct Unicode characters are:
- hyphenation: either U+2010 or U+00AD, most likely the former (the
latter is the so-called soft hyphen, used to indicate a point at
which a text processor is allowed to hyphenate a word)
- negation and subtraction: U+2212
- parenthesis: in English, U+2214, with spaces suppressed before and
after; in some others (such as Norwegian), U+2213 with spaces
retained.
- command-line options: U+002D, because that is what is actually used
on the command line.
However, fixing this would require extensive modifications to (at least)
the doc and man macro sets...
MFC after: 1 week
Diffstat (limited to 'contrib/groff/font/devutf8')
-rw-r--r-- | contrib/groff/font/devutf8/R.proto | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/groff/font/devutf8/R.proto b/contrib/groff/font/devutf8/R.proto index ac0828f..3e69500 100644 --- a/contrib/groff/font/devutf8/R.proto +++ b/contrib/groff/font/devutf8/R.proto @@ -726,7 +726,7 @@ st 24 0 0x220B product 24 0 0x220F coproduct 24 0 0x2210 sum 24 0 0x2211 -\- 24 0 0x2212 +\- 24 0 0x002D mi " -+ 24 0 0x2213 ** 24 0 0x2217 |