1 /*============================================================================ 2 epub2txt v2 3 xhtml.h 4 Copyright (c)2020 Kevin Boone, GPL v3.0 5 ============================================================================*/ 6 7 #pragma once 8 9 #include "epub2txt.h" 10 #include "wstring.h" 11 12 struct _WrapTextContext; 13 14 void xhtml_to_stdout (const WString *s, const Epub2TxtOptions *options, 15 char **error); 16 void xhtml_utf8_to_stdout (const char *s, const Epub2TxtOptions *options, 17 char **error); 18 void xhtml_file_to_stdout (const char *file, 19 const Epub2TxtOptions *options, char **error); 20 WString *xhtml_translate_entity (const WString *entity); 21 void xhtml_emit_fmt_eol_pre (struct _WrapTextContext *context); 22 void xhtml_emit_fmt_eol_post (struct _WrapTextContext *context); 23