summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2011-01-30 16:05:30 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2011-01-30 16:05:30 +0000
commit3346ee504d87b690135176bebeecf513a150d2a5 (patch)
tree0cd93d66b729a045304560fe34aa9039541c79ba /share
parent110382a22b114cad0f9431e25d6699be6f8b4f74 (diff)
Implement the \N'number' (numbered character) roff escape sequence.
Don't use it in new manuals, it is inherently non-portable, but we need it for backward-compatibility with existing manuals, for example in Xenocara driver pages. ok kristaps@ matthieu@ jmc@
Diffstat (limited to 'share')
-rw-r--r--share/man/man7/mandoc_char.719
1 files changed, 17 insertions, 2 deletions
diff --git a/share/man/man7/mandoc_char.7 b/share/man/man7/mandoc_char.7
index 3199c14e5b8..b3e8b5c4e6c 100644
--- a/share/man/man7/mandoc_char.7
+++ b/share/man/man7/mandoc_char.7
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mandoc_char.7,v 1.6 2010/10/28 18:13:52 jmc Exp $
+.\" $OpenBSD: mandoc_char.7,v 1.7 2011/01/30 16:05:29 schwarze Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: October 28 2010 $
+.Dd $Mdocdate: January 30 2011 $
.Dt MANDOC_CHAR 7
.Os
.Sh NAME
@@ -513,6 +513,21 @@ implementations:
.It \e*(aa Ta \*(aa Ta acute
.It \e*(ga Ta \*(ga Ta grave
.El
+.Sh NUMBERED CHARACTERS
+For backward compatibility with existing manuals,
+.Xr mandoc 1
+also supports the
+.Pp
+.Dl \eN\(aq Ns Ar number Ns \(aq
+.Pp
+escape sequence, inserting the character
+.Ar number
+from the current character set into the output.
+Of course, this is inherently non-portable and is already marked
+as deprecated in the Heirloom roff manual.
+For example, do not use \eN'34', use \e(dq, or even the plain
+.Sq \(dq
+character where possible.
.Sh COMPATIBILITY
This section documents compatibility of
.Nm