node-sword-interface 0.242.0 → 0.246.0

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.
Files changed (54) hide show
  1. package/README.md +1 -1
  2. package/examples/install_kjv.js +1 -1
  3. package/examples/print_kjv_matthew.js +1 -1
  4. package/index.js +1 -1
  5. package/locales.d/da-utf8.conf +310 -18
  6. package/locales.d/da.conf +4 -4
  7. package/locales.d/hu-utf8.conf +46 -33
  8. package/locales.d/ru-utf8.conf +2 -1
  9. package/locales.d/ru_RU-utf8.conf +2 -1
  10. package/locales.d/uk-utf8.conf +1 -0
  11. package/locales.d/vi-utf8.conf +51 -0
  12. package/package.json +1 -1
  13. package/scripts/build_sword.sh +4 -8
  14. package/scripts/get_sword_build_win32.ps1 +2 -2
  15. package/scripts/get_sword_include_path.sh +1 -1
  16. package/scripts/get_sword_library.sh +1 -1
  17. package/src/napi_module/api_lock.cpp +1 -1
  18. package/src/napi_module/api_lock.hpp +1 -1
  19. package/src/napi_module/binding.cpp +1 -1
  20. package/src/napi_module/install_module_worker.cpp +1 -1
  21. package/src/napi_module/install_module_worker.hpp +1 -1
  22. package/src/napi_module/module_search_worker.cpp +1 -1
  23. package/src/napi_module/module_search_worker.hpp +1 -1
  24. package/src/napi_module/napi_sword_helper.cpp +1 -1
  25. package/src/napi_module/napi_sword_helper.hpp +1 -1
  26. package/src/napi_module/node_sword_interface.cpp +1 -1
  27. package/src/napi_module/node_sword_interface.hpp +1 -1
  28. package/src/napi_module/worker.hpp +1 -1
  29. package/src/node_sword_cli.cpp +12 -2
  30. package/src/sword_backend/common_defs.hpp +1 -1
  31. package/src/sword_backend/file_system_helper.cpp +1 -1
  32. package/src/sword_backend/file_system_helper.hpp +1 -1
  33. package/src/sword_backend/module_helper.cpp +1 -1
  34. package/src/sword_backend/module_helper.hpp +1 -1
  35. package/src/sword_backend/module_installer.cpp +1 -1
  36. package/src/sword_backend/module_installer.hpp +1 -1
  37. package/src/sword_backend/module_search.cpp +3 -3
  38. package/src/sword_backend/module_search.hpp +1 -1
  39. package/src/sword_backend/module_store.cpp +1 -1
  40. package/src/sword_backend/module_store.hpp +1 -1
  41. package/src/sword_backend/mutex.cpp +1 -1
  42. package/src/sword_backend/mutex.hpp +1 -1
  43. package/src/sword_backend/percentage_calc.hpp +1 -1
  44. package/src/sword_backend/repository_interface.cpp +1 -1
  45. package/src/sword_backend/repository_interface.hpp +1 -1
  46. package/src/sword_backend/string_helper.cpp +1 -1
  47. package/src/sword_backend/string_helper.hpp +1 -1
  48. package/src/sword_backend/strongs_entry.cpp +1 -1
  49. package/src/sword_backend/strongs_entry.hpp +1 -1
  50. package/src/sword_backend/sword_status_reporter.cpp +1 -1
  51. package/src/sword_backend/sword_status_reporter.hpp +1 -1
  52. package/src/sword_backend/sword_translation_helper.hpp +1 -1
  53. package/src/sword_backend/text_processor.cpp +4 -4
  54. package/src/sword_backend/text_processor.hpp +1 -1
@@ -1,14 +1,18 @@
1
+ # Locale provided and updated by:
2
+ # Cyrille <lafricain79@gmail.com>
3
+ # István Sánta <pista.santa@gmail.com>
4
+
1
5
  [Meta]
2
6
  Name=hu
3
7
  Description=Magyar
4
8
  Encoding=UTF-8
5
9
 
6
10
  [Text]
7
- Genesis=Mózes I
8
- Exodus=Mózes II
9
- Leviticus=Mózes III
10
- Numbers=Mózes IV
11
- Deuteronomy=Mózes V
11
+ Genesis=I Mózes
12
+ Exodus=II Mózes
13
+ Leviticus=III Mózes
14
+ Numbers=IV Mózes
15
+ Deuteronomy=V Mózes
12
16
  Joshua=Józsué
13
17
  Judges=Bírák
14
18
  Ruth=Ruth
@@ -33,14 +37,14 @@ Ezekiel=Ezékiel
33
37
  Daniel=Dániel
34
38
  Hosea=Hóseás
35
39
  Joel=Jóel
36
- Amos=Ámós
40
+ Amos=Ámósz
37
41
  Obadiah=Abdiás
38
42
  Jonah=Jónás
39
43
  Micah=Mikeás
40
44
  Nahum=Náhum
41
45
  Habakkuk=Habakuk
42
- Zephaniah=Sofóniás
43
- Haggai=Aggeus
46
+ Zephaniah=Zofóniás
47
+ Haggai=Haggeus
44
48
  Zechariah=Zakariás
45
49
  Malachi=Malakiás
46
50
  Matthew=Máté
@@ -77,7 +81,7 @@ Tobit=Tóbiás
77
81
  # Judith
78
82
  Judith=Judit
79
83
  # Esther (Greek)
80
- #Esther (Greek)=Ester greco
84
+ #Esther (Greek)=Eszter (görög)
81
85
  # Additions to Esther
82
86
  Additions to Esther=Eszter könyvének kiegészítései
83
87
  # Wisdom
@@ -119,7 +123,7 @@ Additional Psalm=Zsoltárok könyvének kiegészítései
119
123
 
120
124
  # Vulgate & other later Latin mss* (6)
121
125
  # Laodiceans
122
- Laodiceans=Laodiceaikhoz írott levél
126
+ Laodiceans=Laodiceaiakhoz írott levél
123
127
  # V Ezra
124
128
  V Ezra=Ezdrás ötödik könyve
125
129
  # IV Ezra
@@ -150,7 +154,7 @@ Deut=5Móz
150
154
  # Joshua
151
155
  Josh=Józs
152
156
  # Judges
153
- Judg=Bírák
157
+ Judg=Bír
154
158
  # Ruth
155
159
  Ruth=Ruth
156
160
  # I Samuel
@@ -166,7 +170,7 @@ Ruth=Ruth
166
170
  # II Chronicles
167
171
  2Chr=2Krón
168
172
  # Ezra
169
- Ezra=Ezsdr
173
+ Ezra=Ezsd
170
174
  # Nehemiah
171
175
  Neh=Neh
172
176
  # Esther
@@ -176,17 +180,17 @@ Job=Jób
176
180
  # Psalms
177
181
  Ps=Zsolt
178
182
  # Proverbs
179
- Prov=Példa
183
+ Prov=Péld
180
184
  # Ecclesiastes
181
185
  Eccl=Préd
182
186
  # Song of Solomon
183
- Song=Ének
187
+ Song=Énekek
184
188
  # Isaiah
185
189
  Isa=Ézs
186
190
  # Jeremiah
187
191
  Jer=Jer
188
192
  # Lamentations
189
- Lam=Jer sir
193
+ Lam=JSir
190
194
  # Ezekiel
191
195
  Ezek=Ez
192
196
  # Daniel
@@ -196,7 +200,7 @@ Hos=Hós
196
200
  # Joel
197
201
  Joel=Jóel
198
202
  # Amos
199
- Amos=Ámosz
203
+ Amos=Ám
200
204
  # Obadiah
201
205
  Obad=Abd
202
206
  # Jonah
@@ -208,9 +212,9 @@ Nah=Náh
208
212
  # Habakkuk
209
213
  Hab=Hab
210
214
  # Zephaniah
211
- Zeph=Zef
215
+ Zeph=Zof
212
216
  # Haggai
213
- Hag=Hagg
217
+ Hag=Hag
214
218
  # Zechariah
215
219
  Zech=Zak
216
220
  # Malachi
@@ -226,7 +230,7 @@ Luke=Lk
226
230
  # John
227
231
  John=Jn
228
232
  # Acts
229
- Acts=Ap.csel
233
+ Acts=ApCsel
230
234
  # Romans
231
235
  Rom=Róm
232
236
  # I Corinthians
@@ -242,9 +246,9 @@ Phil=Fil
242
246
  # Colossians
243
247
  Col=Kol
244
248
  # I Thessalonians
245
- 1Thess=1Thesz
249
+ 1Thess=1Thessz
246
250
  # II Thessalonians
247
- 2Thess=2Thesz
251
+ 2Thess=2Thessz
248
252
  # I Timothy
249
253
  1Tim=1Tim
250
254
  # II Timothy
@@ -256,11 +260,11 @@ Phlm=Filem
256
260
  # Hebrews
257
261
  Heb=Zsid
258
262
  # James
259
- Jas=Jk
263
+ Jas=Jak
260
264
  # I Peter
261
- 1Pet=1Pét
265
+ 1Pet=1Pt
262
266
  # II Peter
263
- 2Pet=2Pét
267
+ 2Pet=2Pt
264
268
  # I John
265
269
  1John=1Jn
266
270
  # II John
@@ -290,7 +294,7 @@ Sir=Sir
290
294
  # Baruch
291
295
  Bar=Báruk
292
296
  # Epistle of Jeremiah
293
- EpJer=Jer
297
+ EpJer=JerLev
294
298
  # Daniel (Greek)
295
299
  DanGr=Dán (gör)
296
300
  # Additions to Daniel
@@ -300,7 +304,7 @@ PrAzar=Aza
300
304
  # Susanna
301
305
  Sus=Zsuzs
302
306
  # Bel and the Dragon
303
- Bel=Baák
307
+ Bel=Baál
304
308
  # I Maccabees
305
309
  1Macc=1Mak
306
310
  # II Maccabees
@@ -359,6 +363,7 @@ I MAKKABEUSOK=1Macc
359
363
  1 PÉTER=1Pet
360
364
  1. PÉTER=1Pet
361
365
  1PÉTER=1Pet
366
+ 1PT=1Pet
362
367
  1SÁM=1Sam
363
368
  1 SÁM=1Sam
364
369
  1 SÁMUEL=1Sam
@@ -399,6 +404,7 @@ II MAKKABEUSOK=2Macc
399
404
  2 PÉTER=2Pet
400
405
  2. PÉTER=2Pet
401
406
  2PÉTER=2Pet
407
+ 2PT=2Pet
402
408
  2SÁM=2Sam
403
409
  2 SÁMUEL=2Sam
404
410
  2. SÁMUEL=2Sam
@@ -440,8 +446,11 @@ ABDIÁS=Obad
440
446
  ABD=Obad
441
447
  AGGEUS=Hag
442
448
  ÁMÓS=Amos
449
+ ÁMOS=Amos
450
+ AMOS=Amos
443
451
  ÁMOSZ=Amos
444
- AP.CSEL=Acts
452
+ ÁMÓSZ=Amos
453
+ APCSEL=Acts
445
454
  APOSTOLOK CSELEKEDETEI=Acts
446
455
  AZARIÁS IMÁJA=PrAzar
447
456
  AZA=PrAzar
@@ -477,7 +486,7 @@ GALATA=Gal
477
486
  GAL=Gal
478
487
  HABAKUK=Hab
479
488
  HAB=Hab
480
- HAGG=Hag
489
+ HAGGEUS=Hag
481
490
  HÓSEÁS=Hos
482
491
  HÓS=Hos
483
492
  JAKAB=Jas
@@ -491,8 +500,11 @@ JEREMIÁS=Jer
491
500
  JEREMIÁS SIRALMAI=Lam
492
501
  JEREMIÁS LEVELE=EpJer
493
502
  JER=EpJer
503
+ JERLEV=EpJer
494
504
  JER=Jer
495
505
  JER SIR=Lam
506
+ JERSIR=Lam
507
+ JSIR=Lam
496
508
  JK=Jas
497
509
  JN=John
498
510
  JÓB=Job
@@ -526,11 +538,11 @@ MÁTÉ=Matt
526
538
  MIKEÁS=Mic
527
539
  MIK=Mic
528
540
  MK=Mark
529
- MÓZES I=Gen
530
- MÓZES II=Exod
531
- MÓZES III=Lev
532
- MÓZES IV=Num
533
- MÓZES V=Deut
541
+ I MÓZES=Gen
542
+ II MÓZES=Exod
543
+ III MÓZES=Lev
544
+ IV MÓZES=Num
545
+ V MÓZES=Deut
534
546
  MT=Matt
535
547
  NÁH=Nah
536
548
  NÁHUM=Nah
@@ -555,6 +567,7 @@ SIR (ELŐ)=SirP
555
567
  SIRÁK FIA=Sir
556
568
  SIR=Sir
557
569
  SOFÓNIÁS=Zeph
570
+ ZOFÓNIÁS=Zeph
558
571
  I THESSZALONIKA=1Thess
559
572
  II THESSZALONIKA=2Thess
560
573
  I TIMÓTEUS=1Tim
@@ -2,8 +2,9 @@
2
2
  # БИБЛИЯ, КНИГИ СВЯЩЕННОГО ПИСАНИЯ ВЕТХОГО И НОВОГО ЗАВЕТА.
3
3
  # Працює під Linux і Windows версії проекту SWORD
4
4
  # Pavlo Bohmat bohm@ukr.net
5
-
6
5
  # Converted with iconv by Martin Gruner
6
+ # Updates from Evgen Kucherov <zhuke@ukr.net>
7
+
7
8
 
8
9
  [Meta]
9
10
  Name=ru
@@ -2,8 +2,9 @@
2
2
  # БИБЛИЯ, КНИГИ СВЯЩЕННОГО ПИСАНИЯ ВЕТХОГО И НОВОГО ЗАВЕТА.
3
3
  # Працює під Linux і Windows версії проекту SWORD
4
4
  # Pavlo Bohmat bohm@ukr.net
5
-
6
5
  # Converted with iconv by Martin Gruner
6
+ # Updates from Evgen Kucherov <zhuke@ukr.net>
7
+
7
8
 
8
9
  [Meta]
9
10
  Name=ru
@@ -2,6 +2,7 @@
2
2
  # БІБЛІЯ або КНИГИ СВЯТОГО ПИСЬМА СТАРОГО Й НОВОГО ЗАПОВІТУ
3
3
  # Працює під Linux і Windows версії проекту SWORD
4
4
  # Pavlo Bohmat bohm@ukr.net
5
+ # Updates from Evgen Kucherov <zhuke@ukr.net>
5
6
 
6
7
  [Meta]
7
8
  Name=uk
@@ -158,6 +158,7 @@ EXƠRA=Ezra
158
158
  ÊXƠTÊ=Esth
159
159
  ÊXƠTÊ (TIẾNG HY LẠP)=EsthGr
160
160
  GALATI=Gal
161
+ GI=John
161
162
  GIACƠ=Jas
162
163
  GIĂNG=John
163
164
  GIÊRÊMI=Jer
@@ -181,6 +182,28 @@ I SAMUÊN=1Sam
181
182
  I SỬ KÝ=1Chr
182
183
  I TÊSALÔNICA=1Thess
183
184
  I TIMÔTHÊ=1Tim
185
+ 1 CÁC VUA=1Kgs
186
+ 1 CÔRINHTÔ=1Cor
187
+ 1 ENOCH=1En
188
+ 1 ESDRAS=1Esd
189
+ 1 GIĂNG=1John
190
+ 1 MEQABYAN=1Meq
191
+ 1 PHIERƠ=1Pet
192
+ 1 SAMUÊN=1Sam
193
+ 1 SỬ KÝ=1Chr
194
+ 1 TÊSALÔNICA=1Thess
195
+ 1 TIMÔTHÊ=1Tim
196
+ 1CÁC VUA=1Kgs
197
+ 1CÔRINHTÔ=1Cor
198
+ 1ENOCH=1En
199
+ 1ESDRAS=1Esd
200
+ 1GIĂNG=1John
201
+ 1MEQABYAN=1Meq
202
+ 1PHIERƠ=1Pet
203
+ 1SAMUÊN=1Sam
204
+ 1SỬ KÝ=1Chr
205
+ 1TÊSALÔNICA=1Thess
206
+ 1TIMÔTHÊ=1Tim
184
207
  II BARÚC=2Bar
185
208
  II CÁC VUA=2Kgs
186
209
  II CÔRINHTÔ=2Cor
@@ -192,9 +215,37 @@ II SAMUÊN=2Sam
192
215
  II SỬ KÝ=2Chr
193
216
  II TÊSALÔNICA=2Thess
194
217
  II TIMÔTHÊ=2Tim
218
+ 2 BARÚC=2Bar
219
+ 2 CÁC VUA=2Kgs
220
+ 2 CÔRINHTÔ=2Cor
221
+ 2 ESDRAS=2Esd
222
+ 2 GIĂNG=2John
223
+ 2 MEQABYAN=2Meq
224
+ 2 PHIERƠ=2Pet
225
+ 2 SAMUÊN=2Sam
226
+ 2 SỬ KÝ=2Chr
227
+ 2 TÊSALÔNICA=2Thess
228
+ 2 TIMÔTHÊ=2Tim
229
+ 2BARÚC=2Bar
230
+ 2CÁC VUA=2Kgs
231
+ 2CÔRINHTÔ=2Cor
232
+ 2ESDRAS=2Esd
233
+ 2GIĂNG=2John
234
+ 2MEQABYAN=2Meq
235
+ 2PHIERƠ=2Pet
236
+ 2SAMUÊN=2Sam
237
+ 2SỬ KÝ=2Chr
238
+ 2TÊSALÔNICA=2Thess
239
+ 2TIMÔTHÊ=2Tim
195
240
  III GIĂNG=3John
196
241
  III MEQABYAN=3Meq
242
+ 3 GIĂNG=3John
243
+ 3 MEQABYAN=3Meq
244
+ 3GIĂNG=3John
245
+ 3MEQABYAN=3Meq
197
246
  IV BARÚC=4Bar
247
+ 4 BARÚC=4Bar
248
+ 4BARÚC=4Bar
198
249
  JUBILEES=Jub
199
250
  KHẢI HUYỀN=Rev
200
251
  KHÔN NGOAN=Wis
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-sword-interface",
3
- "version": "0.242.0",
3
+ "version": "0.246.0",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",
@@ -2,7 +2,7 @@
2
2
 
3
3
  # This file is part of node-sword-interface.
4
4
  #
5
- # Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
5
+ # Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
6
6
  #
7
7
  # node-sword-interface is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU General Public License as published by
@@ -31,6 +31,9 @@ fi
31
31
 
32
32
  # CLONE SWORD
33
33
  git clone https://github.com/bibletime/crosswire-sword-mirror sword
34
+ git -C sword checkout 1460f9
35
+ patch --batch --forward -d sword -p 0 < patch/sword_globconf.patch
36
+
34
37
 
35
38
  # PATCHES
36
39
  case "$(uname -s)" in
@@ -53,10 +56,6 @@ if [ "$1" = "--android" ] ; then
53
56
  git clone https://github.com/karlkleinpaste/biblesync.git
54
57
  git -C biblesync checkout 2.1.0
55
58
 
56
- # Use a newer version of SWORD on ANDROID, which brings built-in Unicode support
57
- git -C sword checkout 60b6e1
58
- patch --batch --forward -d sword -p 0 < patch/sword_globconf.patch
59
-
60
59
  echo "-- TARGET ARCH: $2"
61
60
  TARGET_ARCH=$2
62
61
 
@@ -82,9 +81,6 @@ if [ "$1" = "--android" ] ; then
82
81
  else
83
82
  # macOS & Linux
84
83
 
85
- git -C sword checkout 412026
86
- patch --batch --forward -d sword -p 0 < patch/sword_globconf.patch
87
-
88
84
  cd sword_build
89
85
  cmake -DLIBSWORD_LIBRARY_TYPE=Static -DCMAKE_CXX_STANDARD=11 ../sword
90
86
  fi
@@ -1,6 +1,6 @@
1
1
  # This file is part of node-sword-interface.
2
2
  #
3
- # Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ # Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
  #
5
5
  # node-sword-interface is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU General Public License as published by
@@ -30,7 +30,7 @@ $AllProtocols = [System.Net.SecurityProtocolType]'Tls11,Tls12'
30
30
  [System.Net.ServicePointManager]::SecurityProtocol = $AllProtocols
31
31
 
32
32
  # --- Set the uri for the release
33
- $URI = "https://api.github.com/repos/ezra-project/sword-build-win32/releases/tags/v1.8.900-2020-11-04"
33
+ $URI = "https://api.github.com/repos/ezra-project/sword-build-win32/releases/tags/v1.8.900-2022-01-02"
34
34
 
35
35
  # --- Query the API to get the url of the zip
36
36
  $Response = Invoke-RestMethod -Method Get -Uri $URI
@@ -2,7 +2,7 @@
2
2
 
3
3
  # This file is part of node-sword-interface.
4
4
  #
5
- # Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
5
+ # Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
6
6
  #
7
7
  # node-sword-interface is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU General Public License as published by
@@ -2,7 +2,7 @@
2
2
 
3
3
  # This file is part of node-sword-interface.
4
4
  #
5
- # Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
5
+ # Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
6
6
  #
7
7
  # node-sword-interface is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -114,6 +114,14 @@ void get_book_list(ModuleHelper& module_helper)
114
114
  }
115
115
  }
116
116
 
117
+ void get_book_headers(TextProcessor& text_processor)
118
+ {
119
+ vector<Verse> headerList = text_processor.getBookHeaderList("NASB", "John");
120
+ for (int i = 0; i < headerList.size(); i++) {
121
+ cout << headerList[i].content << endl;
122
+ }
123
+ }
124
+
117
125
  void test_unlock_key(ModuleInstaller& module_installer, ModuleStore& module_store, TextProcessor& text_processor)
118
126
  {
119
127
  module_installer.uninstallModule("NA28");
@@ -206,11 +214,13 @@ int main(int argc, char** argv)
206
214
  //string translation = sword_facade.getSwordTranslation(string("/usr/share/sword/locales.d"), string("de"), string("locales"));
207
215
  //cout << translation << endl;
208
216
 
209
- vector<Verse> searchResults = moduleSearch.getModuleSearchResults("NASB", "faith", SearchType::multiWord, SearchScope::NT, true);
217
+ /*vector<Verse> searchResults = moduleSearch.getModuleSearchResults("NASB", "faith", SearchType::multiWord, SearchScope::NT, true);
210
218
  cout << "Got " << searchResults.size() << " results!" << endl;
211
219
  for (unsigned int i=0; i < searchResults.size(); i++) {
212
220
  cout << searchResults[i].reference << endl;
213
- }
221
+ }*/
222
+
223
+ get_book_headers(textProcessor);
214
224
 
215
225
  return 0;
216
226
  }
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by
@@ -108,7 +108,7 @@ vector<Verse> ModuleSearch::getModuleSearchResults(string moduleName,
108
108
 
109
109
  if (!useExtendedVerseBoundaries) {
110
110
  // Use strict search boundaries (only search within individual verses). TODO: Make this configurable.
111
- flags |= SEARCHFLAG_STRICTBOUNDARIES;
111
+ flags |= SWModule::SEARCHFLAG_STRICTBOUNDARIES;
112
112
  }
113
113
 
114
114
  if (module == 0) {
@@ -142,7 +142,7 @@ vector<Verse> ModuleSearch::getModuleSearchResults(string moduleName,
142
142
 
143
143
  // from swmodule.h api docs:
144
144
  // for use with entryAttrib search type to match whole entry to value, e.g., G1234 and not G12345
145
- flags |= SEARCHFLAG_MATCHWHOLEENTRY;
145
+ flags |= SWModule::SEARCHFLAG_MATCHWHOLEENTRY;
146
146
 
147
147
  searchTerm = "Word//Lemma./" + searchTerm;
148
148
  }
@@ -1,6 +1,6 @@
1
1
  /* This file is part of node-sword-interface.
2
2
 
3
- Copyright (C) 2019 - 2021 Tobias Klein <contact@tklein.info>
3
+ Copyright (C) 2019 - 2022 Tobias Klein <contact@tklein.info>
4
4
 
5
5
  node-sword-interface is free software: you can redistribute it and/or modify
6
6
  it under the terms of the GNU General Public License as published by