22
22
#include <config/libraries.h>
23
23
#include <database/styles.h>
24
#pragma GCC diagnostic push
25
#pragma GCC diagnostic ignored "-Weffc++"
24
26
#include <pugixml/pugixml.hpp>
27
#pragma GCC diagnostic pop
26
29
using namespace pugi;
36
xml_document document; // DOMDocument holding the html.
37
map <string, Database_Styles_Item> styles; // Style information.
38
vector <string> output; // Output USFM.
39
string currentLine; // Growing current USFM line.
40
bool mono; // Monospace font.
41
set <string> suppressEndMarkers; // Markers which should not have endmarkers, e.g. \v does not have \v*
42
set <string> noteOpeners;
43
vector <string> characterStyles; // Active character styles.
44
bool processingNote = false; // Note processing flag.
45
string lastNoteStyle; // The most recent style opened inside a note.
39
xml_document document {}; // DOMDocument holding the html.
40
map <string, Database_Styles_Item> styles {}; // Style information.
41
vector <string> output {}; // Output USFM.
42
string currentLine {}; // Growing current USFM line.
43
bool mono {false}; // Monospace font.
44
set <string> suppressEndMarkers {}; // Markers which should not have endmarkers, e.g. \v does not have \v*
45
set <string> noteOpeners {};
46
vector <string> characterStyles {}; // Active character styles.
47
bool processingNote {false}; // Note processing flag.
48
string lastNoteStyle {}; // The most recent style opened inside a note.
46
49
void preprocess ();
48
51
void postprocess ();