node-sword-interface 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -86,6 +86,7 @@ string TextProcessor::getFilteredText(const string& text, int chapter, int verse
|
|
|
86
86
|
static string itemEndElement = "</item>";
|
|
87
87
|
static string hiBold = "<hi type=\"bold";
|
|
88
88
|
static string hiItalic = "<hi type=\"italic";
|
|
89
|
+
static string hiSuper = "<hi type=\"super";
|
|
89
90
|
|
|
90
91
|
static regex milestoneFilter = regex("<milestone.*?/>");
|
|
91
92
|
static regex segStartElementFilter = regex("<seg.*?>");
|
|
@@ -171,6 +172,7 @@ string TextProcessor::getFilteredText(const string& text, int chapter, int verse
|
|
|
171
172
|
this->findAndReplaceAll(filteredText, itemEndElement, "</li>");
|
|
172
173
|
this->findAndReplaceAll(filteredText, hiBold, "<hi class=\"bold");
|
|
173
174
|
this->findAndReplaceAll(filteredText, hiItalic, "<hi class=\"italic");
|
|
175
|
+
this->findAndReplaceAll(filteredText, hiSuper, "<hi class=\"super");
|
|
174
176
|
|
|
175
177
|
filteredText = regex_replace(filteredText, selfClosingElement, "<$2 $3></$2>");
|
|
176
178
|
|