From ff1018946028fdff5987992f5ccc7e26a7ba7d55 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 27 Feb 2009 08:20:15 +0000 Subject: More character-encoding. --- mdoc.3 | 45 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 41 insertions(+), 4 deletions(-) (limited to 'mdoc.3') diff --git a/mdoc.3 b/mdoc.3 index 5b5f70e8..e7ee3ffe 100644 --- a/mdoc.3 +++ b/mdoc.3 @@ -1,4 +1,4 @@ -.\" $Id: mdoc.3,v 1.11 2009/02/25 17:02:47 kristaps Exp $ +.\" $Id: mdoc.3,v 1.12 2009/02/27 08:20:15 kristaps Exp $ .\" .\" Copyright (c) 2009 Kristaps Dzonsons .\" @@ -16,7 +16,7 @@ .\" TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR .\" PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: February 25 2009 $ +.Dd $Mdocdate: February 27 2009 $ .Dt mdoc 3 .Os .\" SECTION @@ -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 -- cgit v1.2.3-56-ge451