1 /*============================================================================ 2 epub2txt v2 3 epub2txt.h 4 Copyright (c)2017-2024 Kevin Boone, GPL v3.0 5 ============================================================================*/ 6 7 #pragma once 8 9 #include "defs.h" 10 11 typedef struct _Epub2TxtOptions 12 { 13 int width; // Screen width 14 BOOL ascii; // Reduce output to ASCII 15 BOOL ansi; // Emit ANSI terminal codes 16 BOOL raw; // Completely unformatted output 17 BOOL meta; // Show metadata 18 BOOL notext; // Don't dump text 19 BOOL calibre; // Show Calibre metadata 20 char *section_separator; // Section separator; may be NULL 21 } Epub2TxtOptions; 22 23 void epub2txt_do_file (const char *file, const Epub2TxtOptions *options, 24 char **error); 25 26 void epub2txt_cleanup (void); 27