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
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # node-sword-interface
2
2
  node-sword-interface is a [nodejs](https://nodejs.org) module that wraps the [SWORD library](http://www.crosswire.org/sword/) which gives access to Bible text modules and related ressources. It has been created for use within the [Ezra Bible App](https://github.com/ezra-bible-app/ezra-bible-app) Bible study software, but it can also be used for any other nodejs-based software that needs to interface with the SWORD library. node-sword-interface supports Bible modules and dictionary modules that are keyed with Strong's numbers. node-sword-interface works on Windows, macOS, Linux and Android (via [nodejs-mobile](https://code.janeasystems.com/nodejs-mobile)).
3
3
 
4
- The currently used SWORD version is SVN Rev. 3823 (1.9.0).
4
+ The currently used SWORD version is SVN Rev. 3873 (1.9.x).
5
5
 
6
6
  ## Features
7
7
 
@@ -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
package/index.js CHANGED
@@ -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
@@ -4,6 +4,7 @@ Description=Dansk (Unicode)
4
4
  Encoding=UTF-8
5
5
 
6
6
  [Text]
7
+ # Old Testament* (39)
7
8
  Genesis=Første Mosebog
8
9
  Exodus=Anden Mosebog
9
10
  Leviticus=Tredje Mosebog
@@ -43,14 +44,16 @@ Zephaniah=Sefanias' Bog
43
44
  Haggai=Haggajs Bog
44
45
  Zechariah=Zakarias' Bog
45
46
  Malachi=Malakias' Bog
47
+
48
+ # New Testament* (27)
46
49
  Matthew=Matthæusevangeliet
47
50
  Mark=Markusevangeliet
48
51
  Luke=Lukasevangeliet
49
52
  John=Johannesevangeliet
50
53
  Acts=Apostlenes Gerninger
51
54
  Romans=Paulus' Brev til Romerne
52
- I Corinthians=Paulus' Første Brev til Korintherne
53
- II Corinthians=Paulus' Andet Brev til Korintherne
55
+ I Corinthians=Paulus' Første Brev til Korintherne
56
+ II Corinthians=Paulus' Andet Brev til Korintherne
54
57
  Galatians=Paulus' Brev til Galaterne
55
58
  Ephesians=Paulus' Brev til Efeserne
56
59
  Philippians=Paulus' Brev til Filipperne
@@ -71,101 +74,371 @@ III John=Johannes' Tredje Brev
71
74
  Jude=Judas' Brev
72
75
  Revelation of John=Johannes' Åbenbaring
73
76
 
77
+ # Apocrypha/Deuterocanon* (22)
78
+ # Tobit
79
+ Tobit=Tobits Bog
80
+ # Judith
81
+ Judith=Judits Bog
82
+ # Esther (Greek)
83
+
84
+ # Additions to Esther
85
+ Additions to Esther=Tilføjelser til Esters Bog
86
+ # Wisdom
87
+ Wisdom=Visdommens Bog
88
+ # Sirach (Prologue)
89
+
90
+ # Sirach
91
+ Sirach=Siraks Bog
92
+ # Baruch
93
+ Baruch=Baruks Bog
94
+ # Epistle of Jeremiah
95
+ Epistle of Jeremiah=Jeremias' Brev
96
+ # Daniel (Greek)
97
+
98
+ # Additions to Daniel
99
+ Additions to Daniel=Tilføjelser til Daniel Bog
100
+ # Prayer of Azariah
101
+
102
+ # Susanna
103
+
104
+ # Bel and the Dragon
105
+
106
+ # I Maccabees
107
+ I Maccabees=Første Makkabæerbog
108
+ # II Maccabees
109
+ II Maccabees=Anden Makkabæerbog
110
+ # III Maccabees
111
+ III Maccabees=Tredje Makkabæerbog
112
+ # IV Maccabees
113
+ IV Maccabees=Fjerde Makkabæerbog
114
+ # Prayer of Manasses
115
+ Prayer of Manasses=Manasses Bøn
116
+ # I Esdras
117
+ I Esdras=Første Ezras
118
+ # II Esdras
119
+ II Esdras=Anden Ezras
120
+ # Additional Psalm
121
+
122
+
123
+ [Pref Abbrevs]
124
+
125
+ # Old Testament* (39)
126
+ # Genesis
127
+ Gen=1 Mos
128
+ # Exodus
129
+ Exod=2 Mos
130
+ # Leviticus
131
+ Lev=3 Mos
132
+ # Numbers
133
+ Num=4 Mos
134
+ # Deuteronomy
135
+ Deut=5 Mos
136
+ # Joshua
137
+ Josh=Jos
138
+ # Judges
139
+ Judg=Dom
140
+ # Ruth
141
+ Ruth=Ruth
142
+ # I Samuel
143
+ 1Sam=1 Sam
144
+ # II Samuel
145
+ 2Sam=2 Sam
146
+ # I Kings
147
+ 1Kgs=1 Kong
148
+ # II Kings
149
+ 2Kgs=2 Kong
150
+ # I Chronicles
151
+ 1Chr=1 Krøn
152
+ # II Chronicles
153
+ 2Chr=2 Krøn
154
+ # Ezra
155
+ Ezra=Ezra
156
+ # Nehemiah
157
+ Neh=Neh
158
+ # Esther
159
+ Esth=Ester
160
+ # Job
161
+ Job=Job
162
+ # Psalms
163
+ Ps=Sl
164
+ # Proverbs
165
+ Prov=Ordsp
166
+ # Ecclesiastes
167
+ Eccl=Præd
168
+ # Song of Solomon
169
+ Song=Højs
170
+ # Isaiah
171
+ Isa=Es
172
+ # Jeremiah
173
+ Jer=Jer
174
+ # Lamentations
175
+ Lam=Klages
176
+ # Ezekiel
177
+ Ezek=Ez
178
+ # Daniel
179
+ Dan=Dan
180
+ # Hosea
181
+ Hos=Hos
182
+ # Joel
183
+ Joel=Joel
184
+ # Amos
185
+ Amos=Am
186
+ # Obadiah
187
+ Obad=Abad
188
+ # Jonah
189
+ Jonah=Jon
190
+ # Micah
191
+ Mic=Mika
192
+ # Nahum
193
+ Nah=Nahum
194
+ # Habakkuk
195
+ Hab=Hab
196
+ # Zephaniah
197
+ Zeph=Zef
198
+ # Haggai
199
+ Hag=Hagg
200
+ # Zechariah
201
+ Zech=Zak
202
+ # Malachi
203
+ Mal=Mal
204
+
205
+ # New Testament* (27)
206
+ # Matthew
207
+ Matt=Matt
208
+ # Mark
209
+ Mark=Mark
210
+ # Luke
211
+ Luke=Luk
212
+ # John
213
+ John=Joh
214
+ # Acts
215
+ Acts=Apg
216
+ # Romans
217
+ Rom=Rom
218
+ # I Corinthians
219
+ 1Cor=1 Kor
220
+ # II Corinthians
221
+ 2Cor=2 Kor
222
+ # Galatians
223
+ Gal=Gal
224
+ # Ephesians
225
+ Eph=Ef
226
+ # Philippians
227
+ Phil=Fil
228
+ # Colossians
229
+ Col=Col
230
+ # I Thessalonians
231
+ 1Thess=1 Thess
232
+ # II Thessalonians
233
+ 2Thess=2 Thess
234
+ # I Timothy
235
+ 1Tim=1 Tim
236
+ # II Timothy
237
+ 2Tim=2 Tim
238
+ # Titus
239
+ Titus=Tit
240
+ # Philemon
241
+ Phlm=Filem
242
+ # Hebrews
243
+ Heb=Hebr
244
+ # James
245
+ Jas=Jak
246
+ # I Peter
247
+ 1Pet=1 Pet
248
+ # II Peter
249
+ 2Pet=2 Pet
250
+ # I John
251
+ 1John=1 Joh
252
+ # II John
253
+ 2John=2 Joh
254
+ # III John
255
+ 3John=3 Joh
256
+ # Jude
257
+ Jude=Judas
258
+ # Revelation of John
259
+ Rev=Åb
260
+
261
+ # Apocrypha/Deuterocanon* (22)
262
+ # Tobit
263
+ Tob=Tob
264
+ # Judith
265
+ Jdt=Jdt
266
+ # Esther (Greek)
267
+
268
+ # Additions to Esther
269
+ AddEsth=TilfEst
270
+ # Wisdom
271
+ Wis=Vis
272
+ # Sirach (Prologue)
273
+
274
+ # Sirach
275
+ Sir=Sir
276
+ # Baruch
277
+ Bar=Bar
278
+ # Epistle of Jeremiah
279
+ EpJer=JrBrev
280
+ # Daniel (Greek)
281
+
282
+ # Additions to Daniel
283
+ AddDan=TilfDan
284
+ # Prayer of Azariah
285
+
286
+ # Susanna
287
+
288
+ # Bel and the Dragon
289
+
290
+ # I Maccabees
291
+ 1Macc=1 Makk
292
+ # II Maccabees
293
+ 2Macc=2 Makk
294
+ # III Maccabees
295
+ 3Macc=3 Makk
296
+ # IV Maccabees
297
+ 4Macc=4 Makk
298
+ # Prayer of Manasses
299
+ PrMan=ManBøn
300
+ # I Esdras
301
+ 1Esd=1 Ezr
302
+ # II Esdras
303
+ 2Esd=2 Ezr
304
+
305
+
74
306
  [Book Abbrevs]
75
307
 
308
+ FØRSTE MOSEBOG=Gen
76
309
  1. MOSEBOG=Gen
77
310
  1 MOSEBOG=Gen
78
311
  1MOSEBOG=Gen
79
312
  1 MOS=Gen
80
313
 
314
+ ANDEN MOSEBOG=Exod
81
315
  2. MOSEBOG=Exod
82
316
  2 MOSEBOG=Exod
83
317
  2MOSEBOG=Exod
84
318
  2 MOS=Exod
85
319
 
320
+ TREDJE MOSEBOG=Lev
86
321
  3. MOSEBOG=Lev
87
322
  3 MOSEBOG=Lev
88
323
  3MOSEBOG=Lev
89
324
  3 MOS=Lev
90
325
 
326
+ FJERDE MOSEBOG=Num
91
327
  4. MOSEBOG=Num
92
328
  4 MOSEBOG=Num
93
329
  4MOSEBOG=Num
94
330
  4 MOS=Num
95
331
  NUMERI=Num
96
332
 
333
+ FEMTE MOSEBOG=Deut
97
334
  5. MOSEBOG=Deut
98
335
  5 MOSEBOG=Deut
99
336
  5MOSEBOG=Deut
100
337
  5 MOS=Deut
101
338
  DEUTERONOMIUM=Deut
102
339
 
340
+ JOSVABOGEN=Josh
103
341
  JOSVA=Josh
104
342
  JOSUA=Josh
105
343
  JOS=Josh
344
+
345
+ DOMMERBOGEN=Judg
106
346
  DOMMER=Judg
107
347
  DOM=Judg
108
348
  JUDICIUM=Judg
349
+
350
+ RUTHS BOG=Ruth
109
351
  RUTH=Ruth
110
352
  RUT=Ruth
111
353
 
354
+ 1. SAMUELSBOG=1Sam
112
355
  1. SAMUEL=1Sam
113
356
  1 SAMUEL=1Sam
114
357
  1SAMUEL=1Sam
115
358
  1 SAM=1Sam
116
359
 
360
+ 2. SAMUELSBOG=2Sam
117
361
  2. SAMUEL=2Sam
118
362
  2 SAMUEL=2Sam
119
363
  2SAMUEL=2Sam
120
364
  2 SAM=2Sam
121
365
 
366
+ 1. KONGEBOG=1Kgs
122
367
  1. KONGE=1Kgs
123
368
  1 KONGE=1Kgs
124
369
  1KONGE=1Kgs
125
370
  1 KONG=1Kgs
126
371
 
372
+ 2. KONGEBOG=2Kgs
127
373
  2. KONGE=2Kgs
128
374
  2 KONGE=2Kgs
129
375
  2KONGE=2Kgs
130
376
  2 KONG=2Kgs
131
377
 
378
+ 1. KRØNIKEBOG=1Chr
132
379
  1. KRØNIKE=1Chr
133
380
  1 KRØNIKE=1Chr
134
381
  1KRØNIKE=1Chr
135
382
  1 KRØN=1Chr
136
383
 
384
+ 2. KRØNIKEBOG=2Chr
137
385
  2. KRØNIKE=2Chr
138
386
  2 KRØNIKE=2Chr
139
387
  2KRØNIKE=2Chr
140
388
  2 KRØN=2Chr
141
389
 
390
+ EZRAS BOG=Ezra
142
391
  EZRA=Ezra
392
+
393
+ NEHEMIAS' BOG=Neh
143
394
  NEHEMIAS=Neh
144
395
  NEH=Neh
396
+
397
+ ESTERS BOG=Esth
145
398
  ESTER=Esth
399
+
400
+ JOBS BOG=Job
146
401
  JOB=Job
402
+
403
+ SALMERNES BOG=Ps
147
404
  SALMERNE=Ps
148
405
  SL=Ps
149
406
  PSALM=Ps
150
407
  PSL=Ps
408
+
409
+ ORDSPROGENES BOG=Prov
151
410
  ORDSPROGENE=Prov
152
411
  ORDSP=Prov
412
+
413
+ PRÆDIKERENS BOG=Eccl
153
414
  PRÆDIKEREN=Eccl
154
415
  PRÆD=Eccl
416
+
155
417
  HØJSANGEN=Song
156
418
  HØJS=Song
157
419
  SALOMOS HØJSANG=Song
420
+
421
+ ESAJAS' BOG=Isa
158
422
  ESAJAS=Isa
159
423
  ES=Isa
424
+
425
+ JEREMIAS' BOG=Jer
160
426
  JEREMIAS=Jer
161
427
  JER=Jer
428
+
162
429
  KLAGESANGENE=Lam
163
430
  KLAGES=Lam
431
+
432
+ EZEKIELS BOG=Ezek
164
433
  EZEKIEL=Ezek
165
434
  EZ=Ezek
166
435
  EZEK=Ezek
436
+
437
+ DANIELS BOG=Dan
167
438
  DANIEL=Dan
168
439
  DAN=Dan
440
+
441
+ HOSEAS' BOG=Hos
169
442
  HOSEAS=Hos
170
443
  HOS=Hos
171
444
  JOEL=Joel
@@ -205,11 +478,13 @@ ACTA=Acts
205
478
  ROMER=Rom
206
479
  ROM=Rom
207
480
 
481
+ PAULUS' FØRSTE BREV TIL KORINTHERNE=1Cor
208
482
  1. KORINTHER=1Cor
209
483
  1 KORINTHER=1Cor
210
484
  1KORINTHER=1Cor
211
485
  1 KOR=1Cor
212
486
 
487
+ PAULUS' ANDET BREV TIL KORINTHERNE=2Cor
213
488
  2. KORINTHER=2Cor
214
489
  2 KORINTHER=2Cor
215
490
  2KORINTHER=2Cor
@@ -333,20 +608,6 @@ RUTHS BOG=Ruth
333
608
  2 KRØNIKEBOG=2Chr
334
609
  2KRØNIKEBOG=2Chr
335
610
 
336
- EZRAS BOG=Ezra
337
- NEHEMIAS' BOG=Neh
338
- ESTERS BOG=Esth
339
- JOBS BOG=Job
340
- SALMERNES BOG=Ps
341
- ORDSPROGENES BOG=Prov
342
- PRÆDIKERENS BOG=Eccl
343
- HØJSANGEN=Song
344
- ESAJAS' BOG=Isa
345
- JEREMIAS' BOG=Jer
346
- KLAGESANGENE=Lam
347
- EZEKIELS BOG=Ezek
348
- DANIELS BOG=Dan
349
- HOSEAS' BOG=Hos
350
611
  JOELS BOG=Joel
351
612
  AMOS' BOG=Amos
352
613
  OBADIAS' BOG=Obad
@@ -364,8 +625,8 @@ LUKASEVANGELIET=Luke
364
625
  JOHANNESEVANGELIET=John
365
626
  APOSTLENES GERNINGER=Acts
366
627
  PAULUS' BREV TIL ROMERNE=Rom
367
- PAULUS' FØRSTE BREV TIL KORINTHERNE=1Cor
368
- PAULUS' ANDET BREV TIL KORINTHERNE=2Cor
628
+ PAULUS' FØRSTE BREV TIL KORINTHERNE=1Cor
629
+ PAULUS' ANDET BREV TIL KORINTHERNE=2Cor
369
630
  PAULUS' BREV TIL GALATERNE=Gal
370
631
  PAULUS' BREV TIL EFESERNE=Eph
371
632
  PAULUS' BREV TIL FILIPPERNE=Phil
@@ -385,3 +646,34 @@ JOHANNES' ANDET BREV=2John
385
646
  JOHANNES' TREDJE BREV=3John
386
647
  JUDAS' BREV=Jude
387
648
  JOHANNES' ÅBENBARING=Rev
649
+
650
+ TOBITS BOG=Tob
651
+ JUDITS BOG=Jdt
652
+ TILFØJELSER TIL ESTERS BOG=AddEsth
653
+ VISDOMMENS BOG=Wis
654
+ SIRAKS BOG=Sir
655
+ BARUKS BOG=Bar
656
+ JEREMIAS' BREV=EpJer
657
+ TILFØJELSER TIL DANIEL BOG=AddDan
658
+ FØRSTE MAKKABÆERBOG=1Macc
659
+ ANDEN MAKKABÆERBOG=2Macc
660
+ TREDJE MAKKABÆERBOG=3Macc
661
+ FJERDE MAKKABÆERBOG=4Macc
662
+ MANASSES BØN=PrMan
663
+ FØRSTE EZRAS=1Esd
664
+ ANDEN EZRAS=2Esd
665
+ TOB=Tob
666
+ JDT=Jdt
667
+ TILFEST=AddEsth
668
+ VIS=Wis
669
+ SIR=Sir
670
+ BAR=Bar
671
+ JRBREV=EpJer
672
+ TILFDAN=AddDan
673
+ 1 MAKK=1Macc
674
+ 2 MAKK=2Macc
675
+ 3 MAKK=3Macc
676
+ 4 MAKK=4Macc
677
+ MANBØN=PrMan
678
+ 1 EZR=1Esd
679
+ 2 EZR=2Esd
package/locales.d/da.conf CHANGED
@@ -49,8 +49,8 @@ Luke=Lukasevangeliet
49
49
  John=Johannesevangeliet
50
50
  Acts=Apostlenes Gerninger
51
51
  Romans=Paulus' Brev til Romerne
52
- I Corinthians=Paulus' F�rste Brev til Korintherne
53
- II Corinthians=Paulus' Andet Brev til Korintherne
52
+ I Corinthians=Paulus' F�rste Brev til Korintherne
53
+ II Corinthians=Paulus' Andet Brev til Korintherne
54
54
  Galatians=Paulus' Brev til Galaterne
55
55
  Ephesians=Paulus' Brev til Efeserne
56
56
  Philippians=Paulus' Brev til Filipperne
@@ -364,8 +364,8 @@ LUKASEVANGELIET=Luke
364
364
  JOHANNESEVANGELIET=John
365
365
  APOSTLENES GERNINGER=Acts
366
366
  PAULUS' BREV TIL ROMERNE=Rom
367
- PAULUS' F�RSTE BREV TIL KORINTHERNE=1Cor
368
- PAULUS' ANDET BREV TIL KORINTHERNE=2Cor
367
+ PAULUS' F�RSTE BREV TIL KORINTHERNE=1Cor
368
+ PAULUS' ANDET BREV TIL KORINTHERNE=2Cor
369
369
  PAULUS' BREV TIL GALATERNE=Gal
370
370
  PAULUS' BREV TIL EFESERNE=Eph
371
371
  PAULUS' BREV TIL FILIPPERNE=Phil