summaryrefslogtreecommitdiffstats
path: root/term.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-10-26 17:12:03 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-10-26 17:12:03 +0000
commit769a036f3a9f484327108011e3bfbe984e435947 (patch)
tree79c751b46195aae7e4a581337e647055584884f7 /term.h
parent90de6f743cde657a20885806bb1ea6bce6741b71 (diff)
downloadmandoc-769a036f3a9f484327108011e3bfbe984e435947.tar.gz
Improve -Tascii output for Unicode escape sequences: For the first 512
code points, provide ASCII approximations. This is already much better than what groff does, which prints nothing for most code points. A few minor fixes while here: * Handle Unicode escape sequences in the ASCII range. * In case of errors, use the REPLACEMENT CHARACTER U+FFFD for -Tutf8 and the string "<?>" for -Tascii output. * Handle all one-character escape sequences in mchars_spec2{cp,str}() and remove the workarounds on the higher level.
Diffstat (limited to 'term.h')
-rw-r--r--term.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/term.h b/term.h
index 17c0e974..644292cd 100644
--- a/term.h
+++ b/term.h
@@ -104,6 +104,8 @@ struct termp {
struct termp_ps *ps;
};
+const char *ascii_uc2str(int);
+
void term_eqn(struct termp *, const struct eqn *);
void term_tbl(struct termp *, const struct tbl_span *);
void term_free(struct termp *);