From ab2668a4b0e6eebd80668aea9110f6fb86aed5a4 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 9 Aug 2021 16:40:24 -0400 Subject: Fixed processing of non-span xhtml formatting tags --- bible.cc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'bible.cc') diff --git a/bible.cc b/bible.cc index d50d7e9..ef9c1e4 100644 --- a/bible.cc +++ b/bible.cc @@ -244,6 +244,9 @@ int main(int argc, char* argv[]) { bool isIndent = false; bool isDivineName = false; bool isJesus = false; + bool isFootnote = false; + bool isTitle = false; + bool isParallel = false; for(string modifier : tex.modifiers) { if(modifier == "paragraph") { isParagraph = true; @@ -253,8 +256,26 @@ int main(int argc, char* argv[]) { isDivineName = true; } else if (modifier == "wordsOfJesus") { isJesus = true; + } else if (modifier == "n") { + isFootnote = true; + } else if (modifier == "title") { + isTitle = true; + } else if (modifier == "parallel") { + isParallel = true; } } + if(isFootnote) { + // Someday maybe we add this, but for now, omit + tex.text = ""; + } + if(isTitle) { + // Someday maybe we add this, but for now, omit + tex.text = ""; + } + if(isParallel) { + // Someday maybe we add this, but for now, omit + tex.text = ""; + } if(isIndent) { isParagraph = false; if(isNewline) { -- cgit v1.2.3