aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitb60f8021eeb3855308829414f20eca4897096fa7 (patch)
treefde633a186759120328c6e6ae9c0e5f2bd8fbe5a /mandoc_char.7
parent739c1eaf9cb6f5ff01a9c080620dfb1542000215 (diff)
downloadmandoc-b60f8021eeb3855308829414f20eca4897096fa7.tar.gz
mandoc-b60f8021eeb3855308829414f20eca4897096fa7.tar.zst
mandoc-b60f8021eeb3855308829414f20eca4897096fa7.zip
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.719
1 files changed, 17 insertions, 2 deletions
diff --git a/mandoc_char.7 b/mandoc_char.7
index ff693d77..2bc9baa4 100644
--- a/mandoc_char.7
+++ b/mandoc_char.7
@@ -1,4 +1,4 @@
-.\" $Id: mandoc_char.7,v 1.40 2010/10/29 00:05:53 schwarze Exp $
+.\" $Id: mandoc_char.7,v 1.41 2011/01/30 16:05:37 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 29 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