diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-02 17:14:46 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-02 17:14:46 +0000 |
commit | f57412d689f445d6786167aac98dfde81c90ea12 (patch) | |
tree | 412635fca540b14d5139e91a039f78f70a7cf3d8 /term.h | |
parent | aaee43f80d524f98453fc13d60a657085867666f (diff) | |
download | mandoc-f57412d689f445d6786167aac98dfde81c90ea12.tar.gz |
Added new old escape sequence \*[nn].
Initial correct .Bd support (still only text in literal displays).
Symbols put into tables (character-encoding).
Diffstat (limited to 'term.h')
-rw-r--r-- | term.h | 48 |
1 files changed, 47 insertions, 1 deletions
@@ -25,6 +25,50 @@ __BEGIN_DECLS +enum tsym { + TERMSYM_RBRACK = 0, + TERMSYM_LBRACK = 1, + TERMSYM_LARROW = 2, + TERMSYM_RARROW = 3, + TERMSYM_UARROW = 4, + TERMSYM_DARROW = 5, + TERMSYM_LSQUOTE = 6, + TERMSYM_RSQUOTE = 7, + TERMSYM_SQUOTE = 8, + TERMSYM_LDQUOTE = 9, + TERMSYM_RDQUOTE = 10, + TERMSYM_DQUOTE = 11, + TERMSYM_LT = 12, + TERMSYM_GT = 13, + TERMSYM_LE = 14, + TERMSYM_GE = 15, + TERMSYM_EQ = 16, + TERMSYM_NEQ = 17, + TERMSYM_ACUTE = 18, + TERMSYM_GRAVE = 19, + TERMSYM_PI = 20, + TERMSYM_PLUSMINUS = 21, + TERMSYM_INF = 22, + TERMSYM_INF2 = 23, + TERMSYM_NAN = 24, + TERMSYM_BAR = 25, + TERMSYM_BULLET = 26, + TERMSYM_AMP = 27, +}; + + +enum tstyle { + TERMSTYLE_CLEAR = 0, + TERMSTYLE_BOLD = 1, + TERMSTYLE_UNDER = 2, + TERMSTYLE_MAX = 3 +}; + +struct termsym { + const char *sym; + size_t sz; +}; + struct termp { size_t rmargin; size_t maxrmargin; @@ -41,6 +85,8 @@ struct termp { #define TERMP_IGNDELIM (1 << 6) /* Delims like regulars. */ #define TERMP_NONOSPACE (1 << 7) /* No space (no autounset). */ char *buf; + struct termsym *symtab; /* Special-symbol table. */ + struct termsym *styletab; /* Style table. */ }; struct termpair { @@ -78,11 +124,11 @@ void word(struct termp *, const char *); void flushln(struct termp *); void transcode(struct termp *, const char *, size_t); - void subtree(struct termp *, const struct mdoc_meta *, const struct mdoc_node *); + const struct termact *termacts; __END_DECLS |