diff options
-rw-r--r-- | mdocterm.1 | 18 | ||||
-rw-r--r-- | mdocterm.c | 6 | ||||
-rw-r--r-- | term.c | 4 | ||||
-rw-r--r-- | term.h | 4 |
4 files changed, 21 insertions, 11 deletions
@@ -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 , @@ -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' }; @@ -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"); } @@ -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 }; |