summaryrefslogtreecommitdiffstats
path: root/mandoc_char.7
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-01-30 16:05:37 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-01-30 16:05:37 +0000
commit45f655402ed9aece7ea3dfffb8007a8c753d6f4a (patch)
treea5347280c09b16427b521363bd2553cffd890bf8 /mandoc_char.7
parent640a3cb4e4b0817868c63e57d68bbbf3229fb254 (diff)
downloadmandoc-45f655402ed9aece7ea3dfffb8007a8c753d6f4a.tar.gz
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@ jmc@ and tested by Matthieu Herrb (matthieu at openbsd dot org)
Diffstat (limited to 'mandoc_char.7')
-rw-r--r--mandoc_char.715
1 files changed, 15 insertions, 0 deletions
diff --git a/mandoc_char.7 b/mandoc_char.7
index a2fc091a..b7372d26 100644
--- a/mandoc_char.7
+++ b/mandoc_char.7
@@ -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