codexparser 0.1.50 → 0.1.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/package.json +1 -1
- package/src/CodexParser.js +3 -3
- package/src/versifications/daniel.js +50 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codexparser",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.52",
|
|
4
4
|
"description": "This is a Javascript Bible parser and text scanner. It will search through texts and collate all scripture references into an array and parse them into objects, and it will parse passages into objects by book, chapter, verse, and testament. ",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
package/src/CodexParser.js
CHANGED
|
@@ -343,6 +343,7 @@ class CodexParser {
|
|
|
343
343
|
_searchVersificationDifferences(book, chapter, version) {
|
|
344
344
|
version = version.toLowerCase()
|
|
345
345
|
if (!this.chapterVerses[book][chapter]) return
|
|
346
|
+
if (!this.versificationDifferences[book]) return
|
|
346
347
|
// Loop through each key-value pair in the dictionary
|
|
347
348
|
for (const [key, value] of Object.entries(this.versificationDifferences[book])) {
|
|
348
349
|
// Check if the key starts with the desired chapter
|
|
@@ -568,10 +569,10 @@ class CodexParser {
|
|
|
568
569
|
|
|
569
570
|
// Start constructing the passage string
|
|
570
571
|
let combined = `${passage.book}`
|
|
571
|
-
|
|
572
|
+
|
|
572
573
|
if (passage.type === "multi_chapter_verse_range" && passage.to) {
|
|
573
574
|
// Multi-chapter verse range
|
|
574
|
-
|
|
575
|
+
|
|
575
576
|
combined += ` ${formatChapterVerse(passage.chapter, passage.verses)}-${formatChapterVerse(
|
|
576
577
|
passage.to.chapter,
|
|
577
578
|
passage.to.verses
|
|
@@ -683,7 +684,6 @@ class CodexParser {
|
|
|
683
684
|
|
|
684
685
|
// Handle multi-chapter ranges
|
|
685
686
|
if (firstChapter !== lastChapter) {
|
|
686
|
-
|
|
687
687
|
combined.type = "multi_chapter_verse_range"
|
|
688
688
|
combined.to = {
|
|
689
689
|
book: combined.book,
|
|
@@ -1,4 +1,54 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
+
"3:24": {
|
|
3
|
+
lxx: "3:91",
|
|
4
|
+
mt: "3:24",
|
|
5
|
+
eng: "3:24",
|
|
6
|
+
},
|
|
7
|
+
"3:25": {
|
|
8
|
+
lxx: "3:92",
|
|
9
|
+
mt: "3:25",
|
|
10
|
+
eng: "3:25",
|
|
11
|
+
},
|
|
12
|
+
"3:26": {
|
|
13
|
+
lxx: "3:93",
|
|
14
|
+
mt: "3:26",
|
|
15
|
+
eng: "3:26",
|
|
16
|
+
},
|
|
17
|
+
"3:27": {
|
|
18
|
+
lxx: "3:94",
|
|
19
|
+
mt: "3:27",
|
|
20
|
+
eng: "3:27",
|
|
21
|
+
},
|
|
22
|
+
"3:28": {
|
|
23
|
+
lxx: "3:95",
|
|
24
|
+
mt: "3:28",
|
|
25
|
+
eng: "3:28",
|
|
26
|
+
},
|
|
27
|
+
"3:29": {
|
|
28
|
+
lxx: "3:96",
|
|
29
|
+
mt: "3:29",
|
|
30
|
+
eng: "3:29",
|
|
31
|
+
},
|
|
32
|
+
"3:30": {
|
|
33
|
+
lxx: "3:97",
|
|
34
|
+
mt: "3:30",
|
|
35
|
+
eng: "3:30",
|
|
36
|
+
},
|
|
37
|
+
"3:31": {
|
|
38
|
+
lxx: "3:31",
|
|
39
|
+
mt: "3:31",
|
|
40
|
+
eng: "4:1",
|
|
41
|
+
},
|
|
42
|
+
"3:32": {
|
|
43
|
+
lxx: "3:32",
|
|
44
|
+
mt: "3:32",
|
|
45
|
+
eng: "4:2",
|
|
46
|
+
},
|
|
47
|
+
"3:33": {
|
|
48
|
+
lxx: "3:33",
|
|
49
|
+
mt: "3:33",
|
|
50
|
+
eng: "4:3",
|
|
51
|
+
},
|
|
2
52
|
"4:1": {
|
|
3
53
|
lxx: "3:31",
|
|
4
54
|
mt: "3:31",
|