node-sword-interface 1.0.106 → 1.0.108
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/deploy_local.sh
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
|
|
3
|
-
PROJECT_DIR='ezra-
|
|
3
|
+
PROJECT_DIR='ezra-bible-app'
|
|
4
4
|
WORK_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
5
5
|
rm -rf $WORK_DIR/../$PROJECT_DIR/node_modules/node-sword-interface
|
|
6
6
|
cp -a $WORK_DIR $WORK_DIR/../$PROJECT_DIR/node_modules/node-sword-interface
|
package/package.json
CHANGED
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
#include <regex>
|
|
23
23
|
#include <iomanip>
|
|
24
24
|
|
|
25
|
+
#if defined(__APPLE__)
|
|
26
|
+
#include <TargetConditionals.h>
|
|
27
|
+
#endif
|
|
28
|
+
|
|
25
29
|
// Sword includes
|
|
26
30
|
#include <versekey.h>
|
|
27
31
|
#include <listkey.h>
|
|
@@ -66,6 +70,8 @@ string TextProcessor::getFileUrl(const string& nativePath)
|
|
|
66
70
|
// Build file:// URL (Windows needs extra slash for drive letter)
|
|
67
71
|
#if _WIN32
|
|
68
72
|
return "file:///" + path;
|
|
73
|
+
#elif TARGET_OS_IOS
|
|
74
|
+
return "app://localhost/_app_file_/" + path;
|
|
69
75
|
#else
|
|
70
76
|
return "file://" + path;
|
|
71
77
|
#endif
|
|
@@ -138,7 +144,7 @@ string TextProcessor::getFilteredText(const string& text, int chapter, int verse
|
|
|
138
144
|
this->findAndReplaceAll(filteredText, chapterFilter, "<chapter class=\"sword-markup sword-chapter\"");
|
|
139
145
|
this->findAndReplaceAll(filteredText, lbBeginParagraph, "");
|
|
140
146
|
this->findAndReplaceAll(filteredText, lbEndParagraph, " <div class=\"sword-markup sword-paragraph-end\"><br></div>");
|
|
141
|
-
this->findAndReplaceAll(filteredText, emptyParagraphElement, "");
|
|
147
|
+
this->findAndReplaceAll(filteredText, emptyParagraphElement, "<br/><br/>");
|
|
142
148
|
this->findAndReplaceAll(filteredText, lbElementFilter, "<div class=\"sword-markup sword-lb\" ");
|
|
143
149
|
this->findAndReplaceAll(filteredText, lElementFilter, "<div class=\"sword-markup sword-l\" ");
|
|
144
150
|
this->findAndReplaceAll(filteredText, lgElementFilter, "<div class=\"sword-markup sword-lg\" ");
|