summaryrefslogtreecommitdiffstats
path: root/mdoc.3
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-02-27 08:20:15 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-02-27 08:20:15 +0000
commit40047433f03f7588fe976e7c30c82cc1430840b7 (patch)
tree202374dfd892d8b8888714619194a48c0e3a0e37 /mdoc.3
parent6abca7249ad0cbaff51be269f4d24ae7a7ba0abd (diff)
downloadmandoc-40047433f03f7588fe976e7c30c82cc1430840b7.tar.gz
More character-encoding.
Diffstat (limited to 'mdoc.3')
-rw-r--r--mdoc.341
1 files changed, 39 insertions, 2 deletions
diff --git a/mdoc.3 b/mdoc.3
index 711ce654..68a6618a 100644
--- a/mdoc.3
+++ b/mdoc.3
@@ -184,7 +184,8 @@ The
.Xr mdoc 3
library accepts only printable ASCII characters as defined by
.Xr isprint 3 .
-Non-ASCII character sequences are escaped with an escape character
+Non-ASCII character sequences are delimited in various ways. All are
+preceeded by an escape character
.Sq \\
and followed by either an open-parenthesis
.Sq \&(
@@ -192,7 +193,43 @@ for two-character sequences; an open-bracket
.Sq \&[
for n-character sequences (terminated at a close-bracket
.Sq \&] ) ;
-or one of a small set of single characters for other escapes.
+an asterisk and open-parenthesis
+.Sq \&*(
+for two-character sequences;
+an asterisk and non-open-parenthesis
+.Sq \&*
+for single-character sequences; or one of a small set of standalone
+single characters for other escapes.
+.Pp
+Examples:
+.Pp
+.Bl -tag -width "XXXXXXXX" -offset "XXXX" -compact
+.\" LIST-ITEM
+.It \\*(<=
+prints
+.Dq \*(<=
+.Pq greater-equal
+.\" LIST-ITEM
+.It \\(<-
+prints
+.Dq \(<-
+.Pq left-arrow
+.\" LIST-ITEM
+.It \\[<-]
+also prints
+.Dq \(<-
+.Pq left-arrow
+.\" LIST-ITEM
+.It \\*(Ba
+prints
+.Dq \*(Ba
+.Pq bar
+.\" LIST-ITEM
+.It \\*q
+prints
+.Dq \*q
+.Pq double-quote
+.El
.\" SUBSECTION
.Ss Abstract Syntax Tree
The