node-sword-interface 1.0.3 → 1.0.4
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/binding.gyp +1 -2
- package/package.json +2 -2
- package/scripts/build_sword.sh +0 -7
- package/patch/sword_icu.patch +0 -55
- package/patch/sword_mac.patch +0 -62
package/binding.gyp
CHANGED
|
@@ -112,8 +112,7 @@
|
|
|
112
112
|
],
|
|
113
113
|
"libraries": [
|
|
114
114
|
'<(module_root_dir)/sword_build/libsword.a',
|
|
115
|
-
'<!@(pkg-config --libs libcurl)'
|
|
116
|
-
'<!@(PKG_CONFIG_PATH="/opt/homebrew/opt/icu4c/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig" pkg-config --libs icu-uc icu-io icu-i18n)'
|
|
115
|
+
'<!@(pkg-config --libs libcurl)'
|
|
117
116
|
],
|
|
118
117
|
"dependencies": [
|
|
119
118
|
"<!(node -p \"require('node-addon-api').gyp\")",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-sword-interface",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Javascript (N-API) interface to SWORD library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"C++",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"url": "https://github.com/ezra-project/node-sword-interface.git"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"jsdoc-to-markdown": "^
|
|
31
|
+
"jsdoc-to-markdown": "^8.0.0",
|
|
32
32
|
"node-gyp": "^8.0.0"
|
|
33
33
|
}
|
|
34
34
|
}
|
package/scripts/build_sword.sh
CHANGED
|
@@ -34,18 +34,11 @@ git clone https://github.com/bibletime/crosswire-sword-mirror sword
|
|
|
34
34
|
git -C sword checkout 1460f9
|
|
35
35
|
patch --batch --forward -d sword -p 0 < patch/sword_globconf.patch
|
|
36
36
|
|
|
37
|
-
|
|
38
37
|
# PATCHES
|
|
39
38
|
case "$(uname -s)" in
|
|
40
|
-
# Linux)
|
|
41
|
-
# # We only apply the Sword ICU patch on Linux
|
|
42
|
-
# patch --batch --forward -d sword -p 0 < patch/sword_icu.patch
|
|
43
|
-
# ;;
|
|
44
39
|
Darwin)
|
|
45
40
|
# We only apply the following patch on macOS
|
|
46
41
|
export MACOSX_DEPLOYMENT_TARGET=10.10
|
|
47
|
-
export CMAKE_PREFIX_PATH=/usr/local/opt/icu4c
|
|
48
|
-
# patch --batch --forward -d sword -p 0 < patch/sword_mac.patch
|
|
49
42
|
;;
|
|
50
43
|
esac
|
|
51
44
|
|
package/patch/sword_icu.patch
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
Index: include/utf8transliterator.h
|
|
2
|
-
===================================================================
|
|
3
|
-
--- include/utf8transliterator.h (Revision 3673)
|
|
4
|
-
+++ include/utf8transliterator.h (Arbeitskopie)
|
|
5
|
-
@@ -45,6 +45,9 @@
|
|
6
|
-
#include <defs.h>
|
|
7
|
-
#include <map>
|
|
8
|
-
|
|
9
|
-
+using icu::UnicodeString;
|
|
10
|
-
+using icu::Transliterator;
|
|
11
|
-
+
|
|
12
|
-
SWORD_NAMESPACE_START
|
|
13
|
-
|
|
14
|
-
class SWModule;
|
|
15
|
-
Index: src/modules/filters/scsuutf8.cpp
|
|
16
|
-
===================================================================
|
|
17
|
-
--- src/modules/filters/scsuutf8.cpp (Revision 3673)
|
|
18
|
-
+++ src/modules/filters/scsuutf8.cpp (Arbeitskopie)
|
|
19
|
-
@@ -35,8 +35,8 @@
|
|
20
|
-
#include <unicode/unistr.h>
|
|
21
|
-
#endif
|
|
22
|
-
|
|
23
|
-
+using icu::UnicodeString;
|
|
24
|
-
|
|
25
|
-
-
|
|
26
|
-
SWORD_NAMESPACE_START
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
Index: src/modules/filters/utf8nfc.cpp
|
|
30
|
-
===================================================================
|
|
31
|
-
--- src/modules/filters/utf8nfc.cpp (Revision 3673)
|
|
32
|
-
+++ src/modules/filters/utf8nfc.cpp (Arbeitskopie)
|
|
33
|
-
@@ -30,6 +30,9 @@
|
|
34
|
-
#include <utf8nfc.h>
|
|
35
|
-
#include <swbuf.h>
|
|
36
|
-
|
|
37
|
-
+using icu::UnicodeString;
|
|
38
|
-
+using icu::Normalizer;
|
|
39
|
-
+
|
|
40
|
-
SWORD_NAMESPACE_START
|
|
41
|
-
|
|
42
|
-
UTF8NFC::UTF8NFC() {
|
|
43
|
-
Index: src/modules/filters/utf8scsu.cpp
|
|
44
|
-
===================================================================
|
|
45
|
-
--- src/modules/filters/utf8scsu.cpp (Revision 3673)
|
|
46
|
-
+++ src/modules/filters/utf8scsu.cpp (Arbeitskopie)
|
|
47
|
-
@@ -25,6 +25,8 @@
|
|
48
|
-
#include <utf8scsu.h>
|
|
49
|
-
#include <swbuf.h>
|
|
50
|
-
|
|
51
|
-
+using icu::UnicodeString;
|
|
52
|
-
+
|
|
53
|
-
SWORD_NAMESPACE_START
|
|
54
|
-
|
|
55
|
-
|
package/patch/sword_mac.patch
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
Index include/utf8transliterator.h
|
|
2
|
-
===================================================================
|
|
3
|
-
--- include/utf8transliterator.h
|
|
4
|
-
+++ include/utf8transliterator.h
|
|
5
|
-
@@ -42,6 +42,9 @@ SE_JAMO, SE_HAN, SE_KANJI
|
|
6
|
-
|
|
7
|
-
#include <unicode/translit.h>
|
|
8
|
-
|
|
9
|
-
+using icu_64::UnicodeString;
|
|
10
|
-
+using icu_64::Transliterator;
|
|
11
|
-
+
|
|
12
|
-
#include <defs.h>
|
|
13
|
-
#include <map>
|
|
14
|
-
|
|
15
|
-
Index src/modules/filters/scsuutf8.cpp
|
|
16
|
-
===================================================================
|
|
17
|
-
--- src/modules/filters/scsuutf8.cpp
|
|
18
|
-
+++ src/modules/filters/scsuutf8.cpp
|
|
19
|
-
@@ -29,13 +29,14 @@
|
|
20
|
-
* in http://www.unicode.org/unicode/reports/tr6.html
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
-#include <scsuutf8.h>
|
|
24
|
-
-#include <swbuf.h>
|
|
25
|
-
#ifdef _ICU_
|
|
26
|
-
#include <unicode/unistr.h>
|
|
27
|
-
#endif
|
|
28
|
-
|
|
29
|
-
+using icu_64::UnicodeString;
|
|
30
|
-
|
|
31
|
-
+#include <scsuutf8.h>
|
|
32
|
-
+#include <swbuf.h>
|
|
33
|
-
|
|
34
|
-
SWORD_NAMESPACE_START
|
|
35
|
-
|
|
36
|
-
Index src/modules/filters/utf8nfc.cpp
|
|
37
|
-
===================================================================
|
|
38
|
-
--- src/modules/filters/utf8nfc.cpp
|
|
39
|
-
+++ src/modules/filters/utf8nfc.cpp
|
|
40
|
-
@@ -27,6 +27,9 @@
|
|
41
|
-
#include <unicode/normlzr.h>
|
|
42
|
-
#include <unicode/unorm.h>
|
|
43
|
-
|
|
44
|
-
+using icu_64::UnicodeString;
|
|
45
|
-
+using icu_64::Normalizer;
|
|
46
|
-
+
|
|
47
|
-
#include <utf8nfc.h>
|
|
48
|
-
#include <swbuf.h>
|
|
49
|
-
|
|
50
|
-
Index src/modules/filters/utf8scsu.cpp
|
|
51
|
-
===================================================================
|
|
52
|
-
--- src/modules/filters/utf8scsu.cpp
|
|
53
|
-
+++ src/modules/filters/utf8scsu.cpp
|
|
54
|
-
@@ -25,6 +25,8 @@
|
|
55
|
-
#include <utf8scsu.h>
|
|
56
|
-
#include <swbuf.h>
|
|
57
|
-
|
|
58
|
-
+using icu_64::UnicodeString;
|
|
59
|
-
+
|
|
60
|
-
SWORD_NAMESPACE_START
|
|
61
|
-
|
|
62
|
-
|