From 52d5c7f7c4fdc5cbf175bb70c32e88a374045280 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 23 Apr 2004 17:20:07 +0000 Subject: Enhance the text backend to support configurable quote characters, configurable emphasis characters, various other configurable bits which have been marked FIXME in the code for a while, and also to warn when a code paragraph line is too long (because that was the only other thing labelled FIXME). Fallback options are implemented, and defaults set accordingly. A UTF-8 text output file now looks like proper UTF-8. [originally from svn r4128] --- input.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'input.c') diff --git a/input.c b/input.c index 1187e94..7531d62 100644 --- a/input.c +++ b/input.c @@ -904,11 +904,16 @@ static void read_file(paragraph ***ret, input *in, indexdata *idx) { t.type == tok_word || t.type == tok_white || (t.type == tok_cmd && t.cmd == c__nbsp) || - (t.type == tok_cmd && t.cmd == c__escaped)) { + (t.type == tok_cmd && t.cmd == c__escaped) || + (t.type == tok_cmd && t.cmd == c_u)) { if (t.type == tok_white || (t.type == tok_cmd && t.cmd == c__nbsp)) { rdadd(&rs, ' '); rdaddc(&rsc, ' '); + } else if (t.type == tok_cmd && t.cmd == c_u) { + rdadd(&rs, t.aux); + rdaddc(&rsc, '\\'); + rdaddsc(&rsc, t.origtext); } else { rdadds(&rs, t.text); rdaddsc(&rsc, t.origtext); -- cgit v1.1