-.\" $Id: mdocterm.1,v 1.12 2009/03/04 13:57:35 kristaps Exp $
+.\" $Id: mdocterm.1,v 1.13 2009/03/04 14:13:05 kristaps Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
.\"
.It \-
\\- (hyphen)
.It \\
-\\ (back-slash)
+\\\\ (back-slash)
.El
.\" PARAGRAPH
.Pp
.Bl -tag -width "OutputXXXX" -offset "XXXX" -compact
.It Em Output
.Em Input (Name)
+.It \(ra
+\\(ra (right angle)
+.It \(la
+\\(la (left angle)
.It \(rB
\\(rB (right bracket)
.It \(lB
-\\(rB (left bracket)
+\\(lB (left bracket)
.It \(lq
\\(lq (left double-quote)
.It \(rq
-\\(rq, \\' (right double-quote)
+\\(rq (right double-quote)
.It \(oq
-\\(lq, \\` (left single-quote)
+\\(oq, \\` (left single-quote)
.It \(aq
-\\(aq (right single-quote, apostrophe)
+\\(aq, \\' (right single-quote, apostrophe)
.El
.\" PARAGRAPH
.Pp
.It \(>=
\\(>= (greater-than-equal)
.It \(==
-\\(== (greater-than-equal)
+\\(== (equal)
.It \(!=
\\(!= (not equal)
.It \(if
.Pp
To pipe a manual page to the pager:
.Pp
-.D1 % mdocterm mdocterm.1 | less -R
+.D1 % mdocterm mdocterm.1 | less \-R
.\" SECTION
.Sh SEE ALSO
.Xr mdoctree 1 ,
-/* $Id: mdocterm.c,v 1.30 2009/03/04 14:04:02 kristaps Exp $ */
+/* $Id: mdocterm.c,v 1.31 2009/03/04 14:13:05 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
static struct termenc termenc2[] = {
{ "rB", TERMSYM_RBRACK },
{ "lB", TERMSYM_LBRACK },
+ { "ra", TERMSYM_RANGLE },
+ { "la", TERMSYM_LANGLE },
{ "Lq", TERMSYM_LDQUOTE },
{ "lq", TERMSYM_LDQUOTE },
{ "Rq", TERMSYM_RDQUOTE },
{ "Le", TERMSYM_LE },
{ "<=", TERMSYM_LE },
{ "Ge", TERMSYM_GE },
- { "=>", TERMSYM_GE },
+ { ">=", TERMSYM_GE },
{ "==", TERMSYM_EQ },
{ "Ne", TERMSYM_NEQ },
{ "!=", TERMSYM_NEQ },
{ " ", 1 }, /* TERMSYM_SPACE */
{ ".", 1 }, /* TERMSYM_PERIOD */
{ "", 0 }, /* TERMSYM_BREAK */
+ { "<", 1 }, /* TERMSYM_LANGLE */
+ { ">", 1 }, /* TERMSYM_RANGLE */
};
static const char ansi_clear[] = { 27, '[', '0', 'm' };
-/* $Id: term.c,v 1.39 2009/03/04 13:57:35 kristaps Exp $ */
+/* $Id: term.c,v 1.40 2009/03/04 14:13:05 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
if (MDOC_BODY != node->type)
return(1);
- word(p, "<");
+ word(p, "\\(la");
p->flags |= TERMP_NOSPACE;
return(1);
}
if (MDOC_BODY != node->type)
return;
p->flags |= TERMP_NOSPACE;
- word(p, ">");
+ word(p, "\\(ra");
}
-/* $Id: term.h,v 1.17 2009/03/04 13:57:35 kristaps Exp $ */
+/* $Id: term.h,v 1.18 2009/03/04 14:13:05 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
TERMSYM_HYPHEN = 33,
TERMSYM_SPACE = 34,
TERMSYM_PERIOD = 35,
- TERMSYM_BREAK = 36
+ TERMSYM_BREAK = 36,
+ TERMSYM_LANGLE = 37,
+ TERMSYM_RANGLE = 38
};