summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-04 14:13:05 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-04 14:13:05 +0000
commit915fb21ef547b551114dab3787540221a2172ae9 (patch)
treeda47863cba43e8533e4a41121579640771034d87
parente699e11f23b72c34a747908ff21ad93bac7905f4 (diff)
downloadmandoc-915fb21ef547b551114dab3787540221a2172ae9.tar.gz
Fixed some character-escapes.
-rw-r--r--mdocterm.118
-rw-r--r--mdocterm.c6
-rw-r--r--term.c4
-rw-r--r--term.h4
4 files changed, 21 insertions, 11 deletions
diff --git a/mdocterm.1 b/mdocterm.1
index 27b8d1b0..bfd5933c 100644
--- a/mdocterm.1
+++ b/mdocterm.1
@@ -118,7 +118,7 @@ Grammatic:
.It \-
\\- (hyphen)
.It \\
-\\ (back-slash)
+\\\\ (back-slash)
.El
.\" PARAGRAPH
.Pp
@@ -127,18 +127,22 @@ Enclosures:
.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
@@ -168,7 +172,7 @@ Mathematical:
.It \(>=
\\(>= (greater-than-equal)
.It \(==
-\\(== (greater-than-equal)
+\\(== (equal)
.It \(!=
\\(!= (not equal)
.It \(if
@@ -220,7 +224,7 @@ To display this manual page:
.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 ,
diff --git a/mdocterm.c b/mdocterm.c
index b68841d9..1fb242a7 100644
--- a/mdocterm.c
+++ b/mdocterm.c
@@ -78,6 +78,8 @@ static struct termenc termenc1[] = {
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 },
@@ -99,7 +101,7 @@ static struct termenc termenc2[] = {
{ "Le", TERMSYM_LE },
{ "<=", TERMSYM_LE },
{ "Ge", TERMSYM_GE },
- { "=>", TERMSYM_GE },
+ { ">=", TERMSYM_GE },
{ "==", TERMSYM_EQ },
{ "Ne", TERMSYM_NEQ },
{ "!=", TERMSYM_NEQ },
@@ -161,6 +163,8 @@ static struct termsym termsym_ansi[] = {
{ " ", 1 }, /* TERMSYM_SPACE */
{ ".", 1 }, /* TERMSYM_PERIOD */
{ "", 0 }, /* TERMSYM_BREAK */
+ { "<", 1 }, /* TERMSYM_LANGLE */
+ { ">", 1 }, /* TERMSYM_RANGLE */
};
static const char ansi_clear[] = { 27, '[', '0', 'm' };
diff --git a/term.c b/term.c
index adce8d30..33a86cdb 100644
--- a/term.c
+++ b/term.c
@@ -1009,7 +1009,7 @@ termp_aq_pre(DECL_ARGS)
if (MDOC_BODY != node->type)
return(1);
- word(p, "<");
+ word(p, "\\(la");
p->flags |= TERMP_NOSPACE;
return(1);
}
@@ -1023,7 +1023,7 @@ termp_aq_post(DECL_ARGS)
if (MDOC_BODY != node->type)
return;
p->flags |= TERMP_NOSPACE;
- word(p, ">");
+ word(p, "\\(ra");
}
diff --git a/term.h b/term.h
index 10623b92..ce05f63e 100644
--- a/term.h
+++ b/term.h
@@ -62,7 +62,9 @@ enum tsym {
TERMSYM_HYPHEN = 33,
TERMSYM_SPACE = 34,
TERMSYM_PERIOD = 35,
- TERMSYM_BREAK = 36
+ TERMSYM_BREAK = 36,
+ TERMSYM_LANGLE = 37,
+ TERMSYM_RANGLE = 38
};