node-sword-interface 1.0.50 → 1.0.52

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 CHANGED
@@ -102,6 +102,9 @@
102
102
  "dependencies": [
103
103
  "<!(node -p \"require('node-addon-api').gyp\")",
104
104
  'sword'
105
+ ],
106
+ 'ldflags': [
107
+ '-Wl,-z,max-page-size=16384'
105
108
  ]
106
109
  }],
107
110
  ["OS=='mac'", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-sword-interface",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",
@@ -75,6 +75,8 @@ if [ "$1" = "--android" ] ; then
75
75
  -DANDROID_NDK=$ANDROID_NDK_HOME \
76
76
  -DCMAKE_BUILD_TYPE=$SWORD_BUILD_TYPE \
77
77
  -DANDROID_ABI="$ANDROID_ABI" \
78
+ -DCMAKE_EXE_LINKER_FLAGS="-Wl,-z,max-page-size=16384" \
79
+ -DCMAKE_SHARED_LINKER_FLAGS="-Wl,-z,max-page-size=16384" \
78
80
  -DNODYNCAST=1 \
79
81
  ../sword
80
82
  else
@@ -243,9 +243,13 @@ string TextProcessor::getCurrentChapterHeading(sword::SWModule* module)
243
243
  }
244
244
 
245
245
  if (this->_markupEnabled && !this->_rawMarkupEnabled) {
246
- // The chapter headings in the ISV are screwed up somehow for 1:1
247
- // Therefore we do not render chapter headings for the first verse of the book in this case.
248
- if (currentChapter == 1 && currentVerseNr == 1 && currentModuleName == "ISV") {
246
+ if (currentModuleName == "ISV" && currentChapter == 1 && currentVerseNr == 1) {
247
+ // The chapter headings in the ISV (International Standard Version) are screwed up somehow for 1:1
248
+ // Therefore we do not render chapter headings for the first verse of the book in this case.
249
+ chapterHeading = "";
250
+ } else if (currentModuleName == "AB" && currentVerseNr == 1) {
251
+ // The AB module (Apostle's Bible) has broken chapter headings for X:1
252
+ // Therefore we do not render chapter headings for the first verse of the chapter in this case.
249
253
  chapterHeading = "";
250
254
  } else {
251
255
  chapterHeading = this->getFilteredText(chapterHeading, currentChapter, currentVerseNr);