From 094ca96844842928810f14844413109fc6cdd890 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Sun, 3 Feb 2013 00:59:38 -0700 Subject: Initial Alpine Version --- pith/text.h | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 pith/text.h (limited to 'pith/text.h') diff --git a/pith/text.h b/pith/text.h new file mode 100644 index 00000000..1813e3f0 --- /dev/null +++ b/pith/text.h @@ -0,0 +1,58 @@ +/* + * $Id: text.h 768 2007-10-24 00:10:03Z hubert@u.washington.edu $ + * + * ======================================================================== + * Copyright 2006-2007 University of Washington + * Copyright 2013 Eduardo Chappa + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * ======================================================================== + */ + +#ifndef PITH_TEXT_INCLUDED +#define PITH_TEXT_INCLUDED + + +#include "../pith/atttype.h" +#include "../pith/filter.h" +#include "../pith/handle.h" + + +typedef enum {InLine, QStatus} DetachErrStyle; + + +typedef struct local_for_2022_jp_trans { + int report_err; +} LOC_2022_JP; + + +/* + * If the number of lines in the quote is equal to lines or less, then + * we show the quote. If the number of lines in the quote is more than lines, + * then we show lines-1 of the quote followed by one line of editorial + * comment. + */ +typedef struct del_q_s { + int lines; /* show this many lines (counting editorial) */ + int indent_length; /* skip over this indent */ + int is_flowed; /* message is labelled flowed */ + int do_color; + int delete_all; /* delete quotes completely, no comments */ + HANDLE_S **handlesp; + int in_quote; /* dynamic data */ + char **saved_line; /* " */ +} DELQ_S; + + +/* exported protoypes */ +int decode_text(ATTACH_S *, long, gf_io_t, HANDLE_S **, DetachErrStyle, int); +int translate_utf8_to_2022_jp(long, char *, LT_INS_S **, void *); +int delete_quotes(long, char *, LT_INS_S **, void *); + + +#endif /* PITH_TEXT_INCLUDED */ -- cgit v1.2.3-54-g00ecf