aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit5faa62e2445541401f9bee1667d1cd2b2e443e53 (patch)
treefd737f26543e4c9e9e08db9bc3b51103c61736a1 /term.h
parenteb1d4be7915b314c92a4c377c4a09a06e811fc57 (diff)
downloadmandoc-5faa62e2445541401f9bee1667d1cd2b2e443e53.tar.gz
mandoc-5faa62e2445541401f9bee1667d1cd2b2e443e53.tar.zst
mandoc-5faa62e2445541401f9bee1667d1cd2b2e443e53.zip
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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/term.h b/term.h
index 9c4b431c..ecb21689 100644
--- a/term.h
+++ b/term.h
@@ -1,4 +1,4 @@
-/* $Id: term.h,v 1.103 2014/09/17 20:18:58 schwarze Exp $ */
+/* $Id: term.h,v 1.104 2014/10/26 17:12:03 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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 *);