bible-ref-parse 3.0.0 → 3.0.1
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/dist/ar-bcv-parser.js +7480 -0
- package/dist/bg-bcv-parser.js +7568 -0
- package/dist/ceb-bcv-parser.js +7498 -0
- package/dist/cs-bcv-parser.js +7613 -0
- package/dist/da-bcv-parser.js +7560 -0
- package/dist/de-bcv-parser.js +8406 -0
- package/dist/el-bcv-parser.js +7929 -0
- package/dist/en-bcv-parser.js +8404 -0
- package/dist/es-bcv-parser.js +8164 -0
- package/dist/fa-bcv-parser.js +7603 -0
- package/dist/fi-bcv-parser.js +7630 -0
- package/dist/fr-bcv-parser.js +7867 -0
- package/dist/he-bcv-parser.js +7504 -0
- package/dist/hi-bcv-parser.js +7480 -0
- package/dist/hr-bcv-parser.js +7500 -0
- package/dist/ht-bcv-parser.js +7526 -0
- package/dist/hu-bcv-parser.js +7785 -0
- package/dist/is-bcv-parser.js +7553 -0
- package/dist/it-bcv-parser.js +7875 -0
- package/dist/ja-bcv-parser.js +7528 -0
- package/dist/jv-bcv-parser.js +7489 -0
- package/dist/ko-bcv-parser.js +7528 -0
- package/dist/la-bcv-parser.js +7736 -0
- package/dist/mk-bcv-parser.js +7507 -0
- package/dist/mr-bcv-parser.js +7480 -0
- package/dist/ne-bcv-parser.js +7478 -0
- package/dist/nl-bcv-parser.js +7750 -0
- package/dist/no-bcv-parser.js +7633 -0
- package/dist/or-bcv-parser.js +7480 -0
- package/dist/pa-bcv-parser.js +7478 -0
- package/dist/pl-bcv-parser.js +7910 -0
- package/dist/pt-bcv-parser.js +8001 -0
- package/dist/ro-bcv-parser.js +7772 -0
- package/dist/ru-bcv-parser.js +7602 -0
- package/dist/sk-bcv-parser.js +7713 -0
- package/dist/so-bcv-parser.js +7490 -0
- package/dist/sq-bcv-parser.js +7478 -0
- package/dist/sr-bcv-parser.js +7510 -0
- package/dist/sv-bcv-parser.js +7695 -0
- package/dist/sw-bcv-parser.js +7540 -0
- package/dist/ta-bcv-parser.js +7514 -0
- package/dist/test/ar.spec.js +2634 -0
- package/dist/test/bg.spec.js +3849 -0
- package/dist/test/ceb.spec.js +2533 -0
- package/dist/test/cs.spec.js +6593 -0
- package/dist/test/da.spec.js +2976 -0
- package/dist/test/de.spec.js +3114 -0
- package/dist/test/el.spec.js +4287 -0
- package/dist/test/en.spec.js +13196 -0
- package/dist/test/es.spec.js +5634 -0
- package/dist/test/fa.spec.js +16707 -0
- package/dist/test/fi.spec.js +3001 -0
- package/dist/test/fr.spec.js +3712 -0
- package/dist/test/he.spec.js +2411 -0
- package/dist/test/hi.spec.js +2754 -0
- package/dist/test/hr.spec.js +2851 -0
- package/dist/test/ht.spec.js +2749 -0
- package/dist/test/hu.spec.js +3951 -0
- package/dist/test/is.spec.js +3753 -0
- package/dist/test/it.spec.js +2917 -0
- package/dist/test/ja.spec.js +3079 -0
- package/dist/test/jv.spec.js +2470 -0
- package/dist/test/ko.spec.js +2682 -0
- package/dist/test/la.spec.js +2915 -0
- package/dist/test/mk.spec.js +3064 -0
- package/dist/test/mr.spec.js +3664 -0
- package/dist/test/ne.spec.js +4300 -0
- package/dist/test/nl.spec.js +3849 -0
- package/dist/test/no.spec.js +2867 -0
- package/dist/test/or.spec.js +2411 -0
- package/dist/test/pa.spec.js +2460 -0
- package/dist/test/pl.spec.js +7682 -0
- package/dist/test/pt.spec.js +3318 -0
- package/dist/test/ro.spec.js +3065 -0
- package/dist/test/ru.spec.js +3796 -0
- package/dist/test/sk.spec.js +5611 -0
- package/dist/test/so.spec.js +2613 -0
- package/dist/test/sq.spec.js +2643 -0
- package/dist/test/sr.spec.js +3150 -0
- package/dist/test/sv.spec.js +2785 -0
- package/dist/test/sw.spec.js +2994 -0
- package/dist/test/ta.spec.js +4859 -0
- package/dist/test/th.spec.js +2403 -0
- package/dist/test/tl.spec.js +3728 -0
- package/dist/test/tr.spec.js +19459 -0
- package/dist/test/uk.spec.js +6852 -0
- package/dist/test/ur.spec.js +3536 -0
- package/dist/test/vi.spec.js +2897 -0
- package/dist/test/zh.spec.js +4744 -0
- package/dist/th-bcv-parser.js +7478 -0
- package/dist/tl-bcv-parser.js +7555 -0
- package/dist/tr-bcv-parser.js +7673 -0
- package/dist/uk-bcv-parser.js +7541 -0
- package/dist/ur-bcv-parser.js +7564 -0
- package/dist/vi-bcv-parser.js +7480 -0
- package/dist/zh-bcv-parser.js +7588 -0
- package/package.json +2 -2
|
@@ -0,0 +1,2411 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
var bcv_parser;
|
|
3
|
+
|
|
4
|
+
bcv_parser = require("../../dist/he-bcv-parser.js").bcv_parser;
|
|
5
|
+
|
|
6
|
+
describe("Parsing", function() {
|
|
7
|
+
var p;
|
|
8
|
+
p = {};
|
|
9
|
+
beforeEach(function() {
|
|
10
|
+
p = new bcv_parser();
|
|
11
|
+
p.options.osis_compaction_strategy = "b";
|
|
12
|
+
return p.options.sequence_combination_strategy = "combine";
|
|
13
|
+
});
|
|
14
|
+
it("should round-trip OSIS references", function() {
|
|
15
|
+
var bc, bcv, bcv_range, book, books, i, len, results;
|
|
16
|
+
p.set_options({
|
|
17
|
+
osis_compaction_strategy: "bc"
|
|
18
|
+
});
|
|
19
|
+
books = ["Gen", "Exod", "Lev", "Num", "Deut", "Josh", "Judg", "Ruth", "1Sam", "2Sam", "1Kgs", "2Kgs", "1Chr", "2Chr", "Ezra", "Neh", "Esth", "Job", "Ps", "Prov", "Eccl", "Song", "Isa", "Jer", "Lam", "Ezek", "Dan", "Hos", "Joel", "Amos", "Obad", "Jonah", "Mic", "Nah", "Hab", "Zeph", "Hag", "Zech", "Mal", "Matt", "Mark", "Luke", "John", "Acts", "Rom", "1Cor", "2Cor", "Gal", "Eph", "Phil", "Col", "1Thess", "2Thess", "1Tim", "2Tim", "Titus", "Phlm", "Heb", "Jas", "1Pet", "2Pet", "1John", "2John", "3John", "Jude", "Rev"];
|
|
20
|
+
results = [];
|
|
21
|
+
for (i = 0, len = books.length; i < len; i++) {
|
|
22
|
+
book = books[i];
|
|
23
|
+
bc = book + ".1";
|
|
24
|
+
bcv = bc + ".1";
|
|
25
|
+
bcv_range = bcv + "-" + bc + ".2";
|
|
26
|
+
expect(p.parse(bc).osis()).toEqual(bc);
|
|
27
|
+
expect(p.parse(bcv).osis()).toEqual(bcv);
|
|
28
|
+
results.push(expect(p.parse(bcv_range).osis()).toEqual(bcv_range));
|
|
29
|
+
}
|
|
30
|
+
return results;
|
|
31
|
+
});
|
|
32
|
+
it("should round-trip OSIS Apocrypha references", function() {
|
|
33
|
+
var bc, bcv, bcv_range, book, books, i, j, len, len1, results;
|
|
34
|
+
p.set_options({
|
|
35
|
+
osis_compaction_strategy: "bc",
|
|
36
|
+
ps151_strategy: "b"
|
|
37
|
+
});
|
|
38
|
+
p.include_apocrypha(true);
|
|
39
|
+
books = ["Tob", "Jdt", "GkEsth", "Wis", "Sir", "Bar", "PrAzar", "Sus", "Bel", "SgThree", "EpJer", "1Macc", "2Macc", "3Macc", "4Macc", "1Esd", "2Esd", "PrMan", "Ps151"];
|
|
40
|
+
for (i = 0, len = books.length; i < len; i++) {
|
|
41
|
+
book = books[i];
|
|
42
|
+
bc = book + ".1";
|
|
43
|
+
bcv = bc + ".1";
|
|
44
|
+
bcv_range = bcv + "-" + bc + ".2";
|
|
45
|
+
expect(p.parse(bc).osis()).toEqual(bc);
|
|
46
|
+
expect(p.parse(bcv).osis()).toEqual(bcv);
|
|
47
|
+
expect(p.parse(bcv_range).osis()).toEqual(bcv_range);
|
|
48
|
+
}
|
|
49
|
+
p.set_options({
|
|
50
|
+
ps151_strategy: "bc"
|
|
51
|
+
});
|
|
52
|
+
expect(p.parse("Ps151.1").osis()).toEqual("Ps.151");
|
|
53
|
+
expect(p.parse("Ps151.1.1").osis()).toEqual("Ps.151.1");
|
|
54
|
+
expect(p.parse("Ps151.1-Ps151.2").osis()).toEqual("Ps.151.1-Ps.151.2");
|
|
55
|
+
p.include_apocrypha(false);
|
|
56
|
+
results = [];
|
|
57
|
+
for (j = 0, len1 = books.length; j < len1; j++) {
|
|
58
|
+
book = books[j];
|
|
59
|
+
bc = book + ".1";
|
|
60
|
+
results.push(expect(p.parse(bc).osis()).toEqual(""));
|
|
61
|
+
}
|
|
62
|
+
return results;
|
|
63
|
+
});
|
|
64
|
+
return it("should handle a preceding character", function() {
|
|
65
|
+
expect(p.parse(" Gen 1").osis()).toEqual("Gen.1");
|
|
66
|
+
expect(p.parse("Matt5John3").osis()).toEqual("Matt.5,John.3");
|
|
67
|
+
expect(p.parse("1Ps 1").osis()).toEqual("");
|
|
68
|
+
return expect(p.parse("11Sam 1").osis()).toEqual("");
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
describe("Localized book Gen (he)", function() {
|
|
73
|
+
var p;
|
|
74
|
+
p = {};
|
|
75
|
+
beforeEach(function() {
|
|
76
|
+
p = new bcv_parser();
|
|
77
|
+
p.set_options({
|
|
78
|
+
book_alone_strategy: "ignore",
|
|
79
|
+
book_sequence_strategy: "ignore",
|
|
80
|
+
osis_compaction_strategy: "bc",
|
|
81
|
+
captive_end_digits_strategy: "delete"
|
|
82
|
+
});
|
|
83
|
+
return p.include_apocrypha(true);
|
|
84
|
+
});
|
|
85
|
+
return it("should handle book: Gen (he)", function() {
|
|
86
|
+
|
|
87
|
+
expect(p.parse("בראשית 1:1").osis()).toEqual("Gen.1.1", "parsing: 'בראשית 1:1'")
|
|
88
|
+
expect(p.parse("בריאה 1:1").osis()).toEqual("Gen.1.1", "parsing: 'בריאה 1:1'")
|
|
89
|
+
expect(p.parse("Gen 1:1").osis()).toEqual("Gen.1.1", "parsing: 'Gen 1:1'")
|
|
90
|
+
p.include_apocrypha(false)
|
|
91
|
+
expect(p.parse("בראשית 1:1").osis()).toEqual("Gen.1.1", "parsing: 'בראשית 1:1'")
|
|
92
|
+
expect(p.parse("בריאה 1:1").osis()).toEqual("Gen.1.1", "parsing: 'בריאה 1:1'")
|
|
93
|
+
expect(p.parse("GEN 1:1").osis()).toEqual("Gen.1.1", "parsing: 'GEN 1:1'")
|
|
94
|
+
;
|
|
95
|
+
return true;
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
describe("Localized book Exod (he)", function() {
|
|
100
|
+
var p;
|
|
101
|
+
p = {};
|
|
102
|
+
beforeEach(function() {
|
|
103
|
+
p = new bcv_parser();
|
|
104
|
+
p.set_options({
|
|
105
|
+
book_alone_strategy: "ignore",
|
|
106
|
+
book_sequence_strategy: "ignore",
|
|
107
|
+
osis_compaction_strategy: "bc",
|
|
108
|
+
captive_end_digits_strategy: "delete"
|
|
109
|
+
});
|
|
110
|
+
return p.include_apocrypha(true);
|
|
111
|
+
});
|
|
112
|
+
return it("should handle book: Exod (he)", function() {
|
|
113
|
+
|
|
114
|
+
expect(p.parse("יציאת מצרים 1:1").osis()).toEqual("Exod.1.1", "parsing: 'יציאת מצרים 1:1'")
|
|
115
|
+
expect(p.parse("יציאה 1:1").osis()).toEqual("Exod.1.1", "parsing: 'יציאה 1:1'")
|
|
116
|
+
expect(p.parse("Exod 1:1").osis()).toEqual("Exod.1.1", "parsing: 'Exod 1:1'")
|
|
117
|
+
expect(p.parse("שמות 1:1").osis()).toEqual("Exod.1.1", "parsing: 'שמות 1:1'")
|
|
118
|
+
p.include_apocrypha(false)
|
|
119
|
+
expect(p.parse("יציאת מצרים 1:1").osis()).toEqual("Exod.1.1", "parsing: 'יציאת מצרים 1:1'")
|
|
120
|
+
expect(p.parse("יציאה 1:1").osis()).toEqual("Exod.1.1", "parsing: 'יציאה 1:1'")
|
|
121
|
+
expect(p.parse("EXOD 1:1").osis()).toEqual("Exod.1.1", "parsing: 'EXOD 1:1'")
|
|
122
|
+
expect(p.parse("שמות 1:1").osis()).toEqual("Exod.1.1", "parsing: 'שמות 1:1'")
|
|
123
|
+
;
|
|
124
|
+
return true;
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
describe("Localized book Bel (he)", function() {
|
|
129
|
+
var p;
|
|
130
|
+
p = {};
|
|
131
|
+
beforeEach(function() {
|
|
132
|
+
p = new bcv_parser();
|
|
133
|
+
p.set_options({
|
|
134
|
+
book_alone_strategy: "ignore",
|
|
135
|
+
book_sequence_strategy: "ignore",
|
|
136
|
+
osis_compaction_strategy: "bc",
|
|
137
|
+
captive_end_digits_strategy: "delete"
|
|
138
|
+
});
|
|
139
|
+
return p.include_apocrypha(true);
|
|
140
|
+
});
|
|
141
|
+
return it("should handle book: Bel (he)", function() {
|
|
142
|
+
|
|
143
|
+
expect(p.parse("בל והדרקון 1:1").osis()).toEqual("Bel.1.1", "parsing: 'בל והדרקון 1:1'")
|
|
144
|
+
expect(p.parse("התנין בבבל 1:1").osis()).toEqual("Bel.1.1", "parsing: 'התנין בבבל 1:1'")
|
|
145
|
+
expect(p.parse("Bel 1:1").osis()).toEqual("Bel.1.1", "parsing: 'Bel 1:1'")
|
|
146
|
+
;
|
|
147
|
+
return true;
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
describe("Localized book Lev (he)", function() {
|
|
152
|
+
var p;
|
|
153
|
+
p = {};
|
|
154
|
+
beforeEach(function() {
|
|
155
|
+
p = new bcv_parser();
|
|
156
|
+
p.set_options({
|
|
157
|
+
book_alone_strategy: "ignore",
|
|
158
|
+
book_sequence_strategy: "ignore",
|
|
159
|
+
osis_compaction_strategy: "bc",
|
|
160
|
+
captive_end_digits_strategy: "delete"
|
|
161
|
+
});
|
|
162
|
+
return p.include_apocrypha(true);
|
|
163
|
+
});
|
|
164
|
+
return it("should handle book: Lev (he)", function() {
|
|
165
|
+
|
|
166
|
+
expect(p.parse("ספר הלוויים 1:1").osis()).toEqual("Lev.1.1", "parsing: 'ספר הלוויים 1:1'")
|
|
167
|
+
expect(p.parse("ויקרא 1:1").osis()).toEqual("Lev.1.1", "parsing: 'ויקרא 1:1'")
|
|
168
|
+
expect(p.parse("Lev 1:1").osis()).toEqual("Lev.1.1", "parsing: 'Lev 1:1'")
|
|
169
|
+
p.include_apocrypha(false)
|
|
170
|
+
expect(p.parse("ספר הלוויים 1:1").osis()).toEqual("Lev.1.1", "parsing: 'ספר הלוויים 1:1'")
|
|
171
|
+
expect(p.parse("ויקרא 1:1").osis()).toEqual("Lev.1.1", "parsing: 'ויקרא 1:1'")
|
|
172
|
+
expect(p.parse("LEV 1:1").osis()).toEqual("Lev.1.1", "parsing: 'LEV 1:1'")
|
|
173
|
+
;
|
|
174
|
+
return true;
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
describe("Localized book Num (he)", function() {
|
|
179
|
+
var p;
|
|
180
|
+
p = {};
|
|
181
|
+
beforeEach(function() {
|
|
182
|
+
p = new bcv_parser();
|
|
183
|
+
p.set_options({
|
|
184
|
+
book_alone_strategy: "ignore",
|
|
185
|
+
book_sequence_strategy: "ignore",
|
|
186
|
+
osis_compaction_strategy: "bc",
|
|
187
|
+
captive_end_digits_strategy: "delete"
|
|
188
|
+
});
|
|
189
|
+
return p.include_apocrypha(true);
|
|
190
|
+
});
|
|
191
|
+
return it("should handle book: Num (he)", function() {
|
|
192
|
+
|
|
193
|
+
expect(p.parse("במדבר 1:1").osis()).toEqual("Num.1.1", "parsing: 'במדבר 1:1'")
|
|
194
|
+
expect(p.parse("מניין 1:1").osis()).toEqual("Num.1.1", "parsing: 'מניין 1:1'")
|
|
195
|
+
expect(p.parse("ספירה 1:1").osis()).toEqual("Num.1.1", "parsing: 'ספירה 1:1'")
|
|
196
|
+
expect(p.parse("Num 1:1").osis()).toEqual("Num.1.1", "parsing: 'Num 1:1'")
|
|
197
|
+
p.include_apocrypha(false)
|
|
198
|
+
expect(p.parse("במדבר 1:1").osis()).toEqual("Num.1.1", "parsing: 'במדבר 1:1'")
|
|
199
|
+
expect(p.parse("מניין 1:1").osis()).toEqual("Num.1.1", "parsing: 'מניין 1:1'")
|
|
200
|
+
expect(p.parse("ספירה 1:1").osis()).toEqual("Num.1.1", "parsing: 'ספירה 1:1'")
|
|
201
|
+
expect(p.parse("NUM 1:1").osis()).toEqual("Num.1.1", "parsing: 'NUM 1:1'")
|
|
202
|
+
;
|
|
203
|
+
return true;
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
describe("Localized book Sir (he)", function() {
|
|
208
|
+
var p;
|
|
209
|
+
p = {};
|
|
210
|
+
beforeEach(function() {
|
|
211
|
+
p = new bcv_parser();
|
|
212
|
+
p.set_options({
|
|
213
|
+
book_alone_strategy: "ignore",
|
|
214
|
+
book_sequence_strategy: "ignore",
|
|
215
|
+
osis_compaction_strategy: "bc",
|
|
216
|
+
captive_end_digits_strategy: "delete"
|
|
217
|
+
});
|
|
218
|
+
return p.include_apocrypha(true);
|
|
219
|
+
});
|
|
220
|
+
return it("should handle book: Sir (he)", function() {
|
|
221
|
+
|
|
222
|
+
expect(p.parse("משלי בן סירא 1:1").osis()).toEqual("Sir.1.1", "parsing: 'משלי בן סירא 1:1'")
|
|
223
|
+
expect(p.parse("משלי בן-סירא 1:1").osis()).toEqual("Sir.1.1", "parsing: 'משלי בן-סירא 1:1'")
|
|
224
|
+
expect(p.parse("ספר בן סירא 1:1").osis()).toEqual("Sir.1.1", "parsing: 'ספר בן סירא 1:1'")
|
|
225
|
+
expect(p.parse("Sir 1:1").osis()).toEqual("Sir.1.1", "parsing: 'Sir 1:1'")
|
|
226
|
+
;
|
|
227
|
+
return true;
|
|
228
|
+
});
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
describe("Localized book Wis (he)", function() {
|
|
232
|
+
var p;
|
|
233
|
+
p = {};
|
|
234
|
+
beforeEach(function() {
|
|
235
|
+
p = new bcv_parser();
|
|
236
|
+
p.set_options({
|
|
237
|
+
book_alone_strategy: "ignore",
|
|
238
|
+
book_sequence_strategy: "ignore",
|
|
239
|
+
osis_compaction_strategy: "bc",
|
|
240
|
+
captive_end_digits_strategy: "delete"
|
|
241
|
+
});
|
|
242
|
+
return p.include_apocrypha(true);
|
|
243
|
+
});
|
|
244
|
+
return it("should handle book: Wis (he)", function() {
|
|
245
|
+
|
|
246
|
+
expect(p.parse("חכמת שלמה 1:1").osis()).toEqual("Wis.1.1", "parsing: 'חכמת שלמה 1:1'")
|
|
247
|
+
expect(p.parse("Wis 1:1").osis()).toEqual("Wis.1.1", "parsing: 'Wis 1:1'")
|
|
248
|
+
;
|
|
249
|
+
return true;
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
describe("Localized book Lam (he)", function() {
|
|
254
|
+
var p;
|
|
255
|
+
p = {};
|
|
256
|
+
beforeEach(function() {
|
|
257
|
+
p = new bcv_parser();
|
|
258
|
+
p.set_options({
|
|
259
|
+
book_alone_strategy: "ignore",
|
|
260
|
+
book_sequence_strategy: "ignore",
|
|
261
|
+
osis_compaction_strategy: "bc",
|
|
262
|
+
captive_end_digits_strategy: "delete"
|
|
263
|
+
});
|
|
264
|
+
return p.include_apocrypha(true);
|
|
265
|
+
});
|
|
266
|
+
return it("should handle book: Lam (he)", function() {
|
|
267
|
+
|
|
268
|
+
expect(p.parse("קינות 1:1").osis()).toEqual("Lam.1.1", "parsing: 'קינות 1:1'")
|
|
269
|
+
expect(p.parse("איכה 1:1").osis()).toEqual("Lam.1.1", "parsing: 'איכה 1:1'")
|
|
270
|
+
expect(p.parse("Lam 1:1").osis()).toEqual("Lam.1.1", "parsing: 'Lam 1:1'")
|
|
271
|
+
p.include_apocrypha(false)
|
|
272
|
+
expect(p.parse("קינות 1:1").osis()).toEqual("Lam.1.1", "parsing: 'קינות 1:1'")
|
|
273
|
+
expect(p.parse("איכה 1:1").osis()).toEqual("Lam.1.1", "parsing: 'איכה 1:1'")
|
|
274
|
+
expect(p.parse("LAM 1:1").osis()).toEqual("Lam.1.1", "parsing: 'LAM 1:1'")
|
|
275
|
+
;
|
|
276
|
+
return true;
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
describe("Localized book EpJer (he)", function() {
|
|
281
|
+
var p;
|
|
282
|
+
p = {};
|
|
283
|
+
beforeEach(function() {
|
|
284
|
+
p = new bcv_parser();
|
|
285
|
+
p.set_options({
|
|
286
|
+
book_alone_strategy: "ignore",
|
|
287
|
+
book_sequence_strategy: "ignore",
|
|
288
|
+
osis_compaction_strategy: "bc",
|
|
289
|
+
captive_end_digits_strategy: "delete"
|
|
290
|
+
});
|
|
291
|
+
return p.include_apocrypha(true);
|
|
292
|
+
});
|
|
293
|
+
return it("should handle book: EpJer (he)", function() {
|
|
294
|
+
|
|
295
|
+
expect(p.parse("איגרת ירמיהו 1:1").osis()).toEqual("EpJer.1.1", "parsing: 'איגרת ירמיהו 1:1'")
|
|
296
|
+
expect(p.parse("EpJer 1:1").osis()).toEqual("EpJer.1.1", "parsing: 'EpJer 1:1'")
|
|
297
|
+
;
|
|
298
|
+
return true;
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
describe("Localized book Rev (he)", function() {
|
|
303
|
+
var p;
|
|
304
|
+
p = {};
|
|
305
|
+
beforeEach(function() {
|
|
306
|
+
p = new bcv_parser();
|
|
307
|
+
p.set_options({
|
|
308
|
+
book_alone_strategy: "ignore",
|
|
309
|
+
book_sequence_strategy: "ignore",
|
|
310
|
+
osis_compaction_strategy: "bc",
|
|
311
|
+
captive_end_digits_strategy: "delete"
|
|
312
|
+
});
|
|
313
|
+
return p.include_apocrypha(true);
|
|
314
|
+
});
|
|
315
|
+
return it("should handle book: Rev (he)", function() {
|
|
316
|
+
|
|
317
|
+
expect(p.parse("חזון יוחנן 1:1").osis()).toEqual("Rev.1.1", "parsing: 'חזון יוחנן 1:1'")
|
|
318
|
+
expect(p.parse("ההתגלות 1:1").osis()).toEqual("Rev.1.1", "parsing: 'ההתגלות 1:1'")
|
|
319
|
+
expect(p.parse("התגלות 1:1").osis()).toEqual("Rev.1.1", "parsing: 'התגלות 1:1'")
|
|
320
|
+
expect(p.parse("Rev 1:1").osis()).toEqual("Rev.1.1", "parsing: 'Rev 1:1'")
|
|
321
|
+
p.include_apocrypha(false)
|
|
322
|
+
expect(p.parse("חזון יוחנן 1:1").osis()).toEqual("Rev.1.1", "parsing: 'חזון יוחנן 1:1'")
|
|
323
|
+
expect(p.parse("ההתגלות 1:1").osis()).toEqual("Rev.1.1", "parsing: 'ההתגלות 1:1'")
|
|
324
|
+
expect(p.parse("התגלות 1:1").osis()).toEqual("Rev.1.1", "parsing: 'התגלות 1:1'")
|
|
325
|
+
expect(p.parse("REV 1:1").osis()).toEqual("Rev.1.1", "parsing: 'REV 1:1'")
|
|
326
|
+
;
|
|
327
|
+
return true;
|
|
328
|
+
});
|
|
329
|
+
});
|
|
330
|
+
|
|
331
|
+
describe("Localized book PrMan (he)", function() {
|
|
332
|
+
var p;
|
|
333
|
+
p = {};
|
|
334
|
+
beforeEach(function() {
|
|
335
|
+
p = new bcv_parser();
|
|
336
|
+
p.set_options({
|
|
337
|
+
book_alone_strategy: "ignore",
|
|
338
|
+
book_sequence_strategy: "ignore",
|
|
339
|
+
osis_compaction_strategy: "bc",
|
|
340
|
+
captive_end_digits_strategy: "delete"
|
|
341
|
+
});
|
|
342
|
+
return p.include_apocrypha(true);
|
|
343
|
+
});
|
|
344
|
+
return it("should handle book: PrMan (he)", function() {
|
|
345
|
+
|
|
346
|
+
expect(p.parse("תפילת מנשה 1:1").osis()).toEqual("PrMan.1.1", "parsing: 'תפילת מנשה 1:1'")
|
|
347
|
+
expect(p.parse("PrMan 1:1").osis()).toEqual("PrMan.1.1", "parsing: 'PrMan 1:1'")
|
|
348
|
+
;
|
|
349
|
+
return true;
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
|
|
353
|
+
describe("Localized book Deut (he)", function() {
|
|
354
|
+
var p;
|
|
355
|
+
p = {};
|
|
356
|
+
beforeEach(function() {
|
|
357
|
+
p = new bcv_parser();
|
|
358
|
+
p.set_options({
|
|
359
|
+
book_alone_strategy: "ignore",
|
|
360
|
+
book_sequence_strategy: "ignore",
|
|
361
|
+
osis_compaction_strategy: "bc",
|
|
362
|
+
captive_end_digits_strategy: "delete"
|
|
363
|
+
});
|
|
364
|
+
return p.include_apocrypha(true);
|
|
365
|
+
});
|
|
366
|
+
return it("should handle book: Deut (he)", function() {
|
|
367
|
+
|
|
368
|
+
expect(p.parse("משנה תורה 1:1").osis()).toEqual("Deut.1.1", "parsing: 'משנה תורה 1:1'")
|
|
369
|
+
expect(p.parse("דברים 1:1").osis()).toEqual("Deut.1.1", "parsing: 'דברים 1:1'")
|
|
370
|
+
expect(p.parse("Deut 1:1").osis()).toEqual("Deut.1.1", "parsing: 'Deut 1:1'")
|
|
371
|
+
p.include_apocrypha(false)
|
|
372
|
+
expect(p.parse("משנה תורה 1:1").osis()).toEqual("Deut.1.1", "parsing: 'משנה תורה 1:1'")
|
|
373
|
+
expect(p.parse("דברים 1:1").osis()).toEqual("Deut.1.1", "parsing: 'דברים 1:1'")
|
|
374
|
+
expect(p.parse("DEUT 1:1").osis()).toEqual("Deut.1.1", "parsing: 'DEUT 1:1'")
|
|
375
|
+
;
|
|
376
|
+
return true;
|
|
377
|
+
});
|
|
378
|
+
});
|
|
379
|
+
|
|
380
|
+
describe("Localized book Josh (he)", function() {
|
|
381
|
+
var p;
|
|
382
|
+
p = {};
|
|
383
|
+
beforeEach(function() {
|
|
384
|
+
p = new bcv_parser();
|
|
385
|
+
p.set_options({
|
|
386
|
+
book_alone_strategy: "ignore",
|
|
387
|
+
book_sequence_strategy: "ignore",
|
|
388
|
+
osis_compaction_strategy: "bc",
|
|
389
|
+
captive_end_digits_strategy: "delete"
|
|
390
|
+
});
|
|
391
|
+
return p.include_apocrypha(true);
|
|
392
|
+
});
|
|
393
|
+
return it("should handle book: Josh (he)", function() {
|
|
394
|
+
|
|
395
|
+
expect(p.parse("יהושע 1:1").osis()).toEqual("Josh.1.1", "parsing: 'יהושע 1:1'")
|
|
396
|
+
expect(p.parse("Josh 1:1").osis()).toEqual("Josh.1.1", "parsing: 'Josh 1:1'")
|
|
397
|
+
p.include_apocrypha(false)
|
|
398
|
+
expect(p.parse("יהושע 1:1").osis()).toEqual("Josh.1.1", "parsing: 'יהושע 1:1'")
|
|
399
|
+
expect(p.parse("JOSH 1:1").osis()).toEqual("Josh.1.1", "parsing: 'JOSH 1:1'")
|
|
400
|
+
;
|
|
401
|
+
return true;
|
|
402
|
+
});
|
|
403
|
+
});
|
|
404
|
+
|
|
405
|
+
describe("Localized book Judg (he)", function() {
|
|
406
|
+
var p;
|
|
407
|
+
p = {};
|
|
408
|
+
beforeEach(function() {
|
|
409
|
+
p = new bcv_parser();
|
|
410
|
+
p.set_options({
|
|
411
|
+
book_alone_strategy: "ignore",
|
|
412
|
+
book_sequence_strategy: "ignore",
|
|
413
|
+
osis_compaction_strategy: "bc",
|
|
414
|
+
captive_end_digits_strategy: "delete"
|
|
415
|
+
});
|
|
416
|
+
return p.include_apocrypha(true);
|
|
417
|
+
});
|
|
418
|
+
return it("should handle book: Judg (he)", function() {
|
|
419
|
+
|
|
420
|
+
expect(p.parse("שופטים 1:1").osis()).toEqual("Judg.1.1", "parsing: 'שופטים 1:1'")
|
|
421
|
+
expect(p.parse("Judg 1:1").osis()).toEqual("Judg.1.1", "parsing: 'Judg 1:1'")
|
|
422
|
+
p.include_apocrypha(false)
|
|
423
|
+
expect(p.parse("שופטים 1:1").osis()).toEqual("Judg.1.1", "parsing: 'שופטים 1:1'")
|
|
424
|
+
expect(p.parse("JUDG 1:1").osis()).toEqual("Judg.1.1", "parsing: 'JUDG 1:1'")
|
|
425
|
+
;
|
|
426
|
+
return true;
|
|
427
|
+
});
|
|
428
|
+
});
|
|
429
|
+
|
|
430
|
+
describe("Localized book Ruth (he)", function() {
|
|
431
|
+
var p;
|
|
432
|
+
p = {};
|
|
433
|
+
beforeEach(function() {
|
|
434
|
+
p = new bcv_parser();
|
|
435
|
+
p.set_options({
|
|
436
|
+
book_alone_strategy: "ignore",
|
|
437
|
+
book_sequence_strategy: "ignore",
|
|
438
|
+
osis_compaction_strategy: "bc",
|
|
439
|
+
captive_end_digits_strategy: "delete"
|
|
440
|
+
});
|
|
441
|
+
return p.include_apocrypha(true);
|
|
442
|
+
});
|
|
443
|
+
return it("should handle book: Ruth (he)", function() {
|
|
444
|
+
|
|
445
|
+
expect(p.parse("Ruth 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'Ruth 1:1'")
|
|
446
|
+
expect(p.parse("רות 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'רות 1:1'")
|
|
447
|
+
p.include_apocrypha(false)
|
|
448
|
+
expect(p.parse("RUTH 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'RUTH 1:1'")
|
|
449
|
+
expect(p.parse("רות 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'רות 1:1'")
|
|
450
|
+
;
|
|
451
|
+
return true;
|
|
452
|
+
});
|
|
453
|
+
});
|
|
454
|
+
|
|
455
|
+
describe("Localized book 1Esd (he)", function() {
|
|
456
|
+
var p;
|
|
457
|
+
p = {};
|
|
458
|
+
beforeEach(function() {
|
|
459
|
+
p = new bcv_parser();
|
|
460
|
+
p.set_options({
|
|
461
|
+
book_alone_strategy: "ignore",
|
|
462
|
+
book_sequence_strategy: "ignore",
|
|
463
|
+
osis_compaction_strategy: "bc",
|
|
464
|
+
captive_end_digits_strategy: "delete"
|
|
465
|
+
});
|
|
466
|
+
return p.include_apocrypha(true);
|
|
467
|
+
});
|
|
468
|
+
return it("should handle book: 1Esd (he)", function() {
|
|
469
|
+
|
|
470
|
+
expect(p.parse("חזון עזרא 1:1").osis()).toEqual("1Esd.1.1", "parsing: 'חזון עזרא 1:1'")
|
|
471
|
+
expect(p.parse("1Esd 1:1").osis()).toEqual("1Esd.1.1", "parsing: '1Esd 1:1'")
|
|
472
|
+
;
|
|
473
|
+
return true;
|
|
474
|
+
});
|
|
475
|
+
});
|
|
476
|
+
|
|
477
|
+
describe("Localized book 2Esd (he)", function() {
|
|
478
|
+
var p;
|
|
479
|
+
p = {};
|
|
480
|
+
beforeEach(function() {
|
|
481
|
+
p = new bcv_parser();
|
|
482
|
+
p.set_options({
|
|
483
|
+
book_alone_strategy: "ignore",
|
|
484
|
+
book_sequence_strategy: "ignore",
|
|
485
|
+
osis_compaction_strategy: "bc",
|
|
486
|
+
captive_end_digits_strategy: "delete"
|
|
487
|
+
});
|
|
488
|
+
return p.include_apocrypha(true);
|
|
489
|
+
});
|
|
490
|
+
return it("should handle book: 2Esd (he)", function() {
|
|
491
|
+
|
|
492
|
+
expect(p.parse("עזרא החיצוני 1:1").osis()).toEqual("2Esd.1.1", "parsing: 'עזרא החיצוני 1:1'")
|
|
493
|
+
expect(p.parse("2Esd 1:1").osis()).toEqual("2Esd.1.1", "parsing: '2Esd 1:1'")
|
|
494
|
+
;
|
|
495
|
+
return true;
|
|
496
|
+
});
|
|
497
|
+
});
|
|
498
|
+
|
|
499
|
+
describe("Localized book Isa (he)", function() {
|
|
500
|
+
var p;
|
|
501
|
+
p = {};
|
|
502
|
+
beforeEach(function() {
|
|
503
|
+
p = new bcv_parser();
|
|
504
|
+
p.set_options({
|
|
505
|
+
book_alone_strategy: "ignore",
|
|
506
|
+
book_sequence_strategy: "ignore",
|
|
507
|
+
osis_compaction_strategy: "bc",
|
|
508
|
+
captive_end_digits_strategy: "delete"
|
|
509
|
+
});
|
|
510
|
+
return p.include_apocrypha(true);
|
|
511
|
+
});
|
|
512
|
+
return it("should handle book: Isa (he)", function() {
|
|
513
|
+
|
|
514
|
+
expect(p.parse("ישעיהו 1:1").osis()).toEqual("Isa.1.1", "parsing: 'ישעיהו 1:1'")
|
|
515
|
+
expect(p.parse("ישעיה 1:1").osis()).toEqual("Isa.1.1", "parsing: 'ישעיה 1:1'")
|
|
516
|
+
expect(p.parse("ישעה 1:1").osis()).toEqual("Isa.1.1", "parsing: 'ישעה 1:1'")
|
|
517
|
+
expect(p.parse("Isa 1:1").osis()).toEqual("Isa.1.1", "parsing: 'Isa 1:1'")
|
|
518
|
+
p.include_apocrypha(false)
|
|
519
|
+
expect(p.parse("ישעיהו 1:1").osis()).toEqual("Isa.1.1", "parsing: 'ישעיהו 1:1'")
|
|
520
|
+
expect(p.parse("ישעיה 1:1").osis()).toEqual("Isa.1.1", "parsing: 'ישעיה 1:1'")
|
|
521
|
+
expect(p.parse("ישעה 1:1").osis()).toEqual("Isa.1.1", "parsing: 'ישעה 1:1'")
|
|
522
|
+
expect(p.parse("ISA 1:1").osis()).toEqual("Isa.1.1", "parsing: 'ISA 1:1'")
|
|
523
|
+
;
|
|
524
|
+
return true;
|
|
525
|
+
});
|
|
526
|
+
});
|
|
527
|
+
|
|
528
|
+
describe("Localized book 2Sam (he)", function() {
|
|
529
|
+
var p;
|
|
530
|
+
p = {};
|
|
531
|
+
beforeEach(function() {
|
|
532
|
+
p = new bcv_parser();
|
|
533
|
+
p.set_options({
|
|
534
|
+
book_alone_strategy: "ignore",
|
|
535
|
+
book_sequence_strategy: "ignore",
|
|
536
|
+
osis_compaction_strategy: "bc",
|
|
537
|
+
captive_end_digits_strategy: "delete"
|
|
538
|
+
});
|
|
539
|
+
return p.include_apocrypha(true);
|
|
540
|
+
});
|
|
541
|
+
return it("should handle book: 2Sam (he)", function() {
|
|
542
|
+
|
|
543
|
+
expect(p.parse("שמואל ב' 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'שמואל ב' 1:1'")
|
|
544
|
+
expect(p.parse("שמואל ב’ 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'שמואל ב’ 1:1'")
|
|
545
|
+
expect(p.parse("שמואל ב 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'שמואל ב 1:1'")
|
|
546
|
+
expect(p.parse("2Sam 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2Sam 1:1'")
|
|
547
|
+
p.include_apocrypha(false)
|
|
548
|
+
expect(p.parse("שמואל ב' 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'שמואל ב' 1:1'")
|
|
549
|
+
expect(p.parse("שמואל ב’ 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'שמואל ב’ 1:1'")
|
|
550
|
+
expect(p.parse("שמואל ב 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'שמואל ב 1:1'")
|
|
551
|
+
expect(p.parse("2SAM 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2SAM 1:1'")
|
|
552
|
+
;
|
|
553
|
+
return true;
|
|
554
|
+
});
|
|
555
|
+
});
|
|
556
|
+
|
|
557
|
+
describe("Localized book 1Sam (he)", function() {
|
|
558
|
+
var p;
|
|
559
|
+
p = {};
|
|
560
|
+
beforeEach(function() {
|
|
561
|
+
p = new bcv_parser();
|
|
562
|
+
p.set_options({
|
|
563
|
+
book_alone_strategy: "ignore",
|
|
564
|
+
book_sequence_strategy: "ignore",
|
|
565
|
+
osis_compaction_strategy: "bc",
|
|
566
|
+
captive_end_digits_strategy: "delete"
|
|
567
|
+
});
|
|
568
|
+
return p.include_apocrypha(true);
|
|
569
|
+
});
|
|
570
|
+
return it("should handle book: 1Sam (he)", function() {
|
|
571
|
+
|
|
572
|
+
expect(p.parse("שמואל א' 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'שמואל א' 1:1'")
|
|
573
|
+
expect(p.parse("שמואל א’ 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'שמואל א’ 1:1'")
|
|
574
|
+
expect(p.parse("שמואל א 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'שמואל א 1:1'")
|
|
575
|
+
expect(p.parse("1Sam 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1Sam 1:1'")
|
|
576
|
+
p.include_apocrypha(false)
|
|
577
|
+
expect(p.parse("שמואל א' 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'שמואל א' 1:1'")
|
|
578
|
+
expect(p.parse("שמואל א’ 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'שמואל א’ 1:1'")
|
|
579
|
+
expect(p.parse("שמואל א 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'שמואל א 1:1'")
|
|
580
|
+
expect(p.parse("1SAM 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1SAM 1:1'")
|
|
581
|
+
;
|
|
582
|
+
return true;
|
|
583
|
+
});
|
|
584
|
+
});
|
|
585
|
+
|
|
586
|
+
describe("Localized book 2Kgs (he)", function() {
|
|
587
|
+
var p;
|
|
588
|
+
p = {};
|
|
589
|
+
beforeEach(function() {
|
|
590
|
+
p = new bcv_parser();
|
|
591
|
+
p.set_options({
|
|
592
|
+
book_alone_strategy: "ignore",
|
|
593
|
+
book_sequence_strategy: "ignore",
|
|
594
|
+
osis_compaction_strategy: "bc",
|
|
595
|
+
captive_end_digits_strategy: "delete"
|
|
596
|
+
});
|
|
597
|
+
return p.include_apocrypha(true);
|
|
598
|
+
});
|
|
599
|
+
return it("should handle book: 2Kgs (he)", function() {
|
|
600
|
+
|
|
601
|
+
expect(p.parse("מלכים ב' 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'מלכים ב' 1:1'")
|
|
602
|
+
expect(p.parse("מלכים ב’ 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'מלכים ב’ 1:1'")
|
|
603
|
+
expect(p.parse("מלכים ב 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'מלכים ב 1:1'")
|
|
604
|
+
expect(p.parse("2Kgs 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2Kgs 1:1'")
|
|
605
|
+
p.include_apocrypha(false)
|
|
606
|
+
expect(p.parse("מלכים ב' 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'מלכים ב' 1:1'")
|
|
607
|
+
expect(p.parse("מלכים ב’ 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'מלכים ב’ 1:1'")
|
|
608
|
+
expect(p.parse("מלכים ב 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'מלכים ב 1:1'")
|
|
609
|
+
expect(p.parse("2KGS 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2KGS 1:1'")
|
|
610
|
+
;
|
|
611
|
+
return true;
|
|
612
|
+
});
|
|
613
|
+
});
|
|
614
|
+
|
|
615
|
+
describe("Localized book 1Kgs (he)", function() {
|
|
616
|
+
var p;
|
|
617
|
+
p = {};
|
|
618
|
+
beforeEach(function() {
|
|
619
|
+
p = new bcv_parser();
|
|
620
|
+
p.set_options({
|
|
621
|
+
book_alone_strategy: "ignore",
|
|
622
|
+
book_sequence_strategy: "ignore",
|
|
623
|
+
osis_compaction_strategy: "bc",
|
|
624
|
+
captive_end_digits_strategy: "delete"
|
|
625
|
+
});
|
|
626
|
+
return p.include_apocrypha(true);
|
|
627
|
+
});
|
|
628
|
+
return it("should handle book: 1Kgs (he)", function() {
|
|
629
|
+
|
|
630
|
+
expect(p.parse("מלכים א' 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'מלכים א' 1:1'")
|
|
631
|
+
expect(p.parse("מלכים א’ 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'מלכים א’ 1:1'")
|
|
632
|
+
expect(p.parse("מלכים א 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'מלכים א 1:1'")
|
|
633
|
+
expect(p.parse("1Kgs 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1Kgs 1:1'")
|
|
634
|
+
p.include_apocrypha(false)
|
|
635
|
+
expect(p.parse("מלכים א' 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'מלכים א' 1:1'")
|
|
636
|
+
expect(p.parse("מלכים א’ 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'מלכים א’ 1:1'")
|
|
637
|
+
expect(p.parse("מלכים א 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'מלכים א 1:1'")
|
|
638
|
+
expect(p.parse("1KGS 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1KGS 1:1'")
|
|
639
|
+
;
|
|
640
|
+
return true;
|
|
641
|
+
});
|
|
642
|
+
});
|
|
643
|
+
|
|
644
|
+
describe("Localized book 2Chr (he)", function() {
|
|
645
|
+
var p;
|
|
646
|
+
p = {};
|
|
647
|
+
beforeEach(function() {
|
|
648
|
+
p = new bcv_parser();
|
|
649
|
+
p.set_options({
|
|
650
|
+
book_alone_strategy: "ignore",
|
|
651
|
+
book_sequence_strategy: "ignore",
|
|
652
|
+
osis_compaction_strategy: "bc",
|
|
653
|
+
captive_end_digits_strategy: "delete"
|
|
654
|
+
});
|
|
655
|
+
return p.include_apocrypha(true);
|
|
656
|
+
});
|
|
657
|
+
return it("should handle book: 2Chr (he)", function() {
|
|
658
|
+
|
|
659
|
+
expect(p.parse("דברי הימים ב' 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'דברי הימים ב' 1:1'")
|
|
660
|
+
expect(p.parse("דברי הימים ב’ 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'דברי הימים ב’ 1:1'")
|
|
661
|
+
expect(p.parse("דברי הימים ב 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'דברי הימים ב 1:1'")
|
|
662
|
+
expect(p.parse("2Chr 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2Chr 1:1'")
|
|
663
|
+
p.include_apocrypha(false)
|
|
664
|
+
expect(p.parse("דברי הימים ב' 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'דברי הימים ב' 1:1'")
|
|
665
|
+
expect(p.parse("דברי הימים ב’ 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'דברי הימים ב’ 1:1'")
|
|
666
|
+
expect(p.parse("דברי הימים ב 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'דברי הימים ב 1:1'")
|
|
667
|
+
expect(p.parse("2CHR 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2CHR 1:1'")
|
|
668
|
+
;
|
|
669
|
+
return true;
|
|
670
|
+
});
|
|
671
|
+
});
|
|
672
|
+
|
|
673
|
+
describe("Localized book 1Chr (he)", function() {
|
|
674
|
+
var p;
|
|
675
|
+
p = {};
|
|
676
|
+
beforeEach(function() {
|
|
677
|
+
p = new bcv_parser();
|
|
678
|
+
p.set_options({
|
|
679
|
+
book_alone_strategy: "ignore",
|
|
680
|
+
book_sequence_strategy: "ignore",
|
|
681
|
+
osis_compaction_strategy: "bc",
|
|
682
|
+
captive_end_digits_strategy: "delete"
|
|
683
|
+
});
|
|
684
|
+
return p.include_apocrypha(true);
|
|
685
|
+
});
|
|
686
|
+
return it("should handle book: 1Chr (he)", function() {
|
|
687
|
+
|
|
688
|
+
expect(p.parse("דברי הימים א' 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'דברי הימים א' 1:1'")
|
|
689
|
+
expect(p.parse("דברי הימים א’ 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'דברי הימים א’ 1:1'")
|
|
690
|
+
expect(p.parse("דברי הימים א 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'דברי הימים א 1:1'")
|
|
691
|
+
expect(p.parse("1Chr 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1Chr 1:1'")
|
|
692
|
+
p.include_apocrypha(false)
|
|
693
|
+
expect(p.parse("דברי הימים א' 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'דברי הימים א' 1:1'")
|
|
694
|
+
expect(p.parse("דברי הימים א’ 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'דברי הימים א’ 1:1'")
|
|
695
|
+
expect(p.parse("דברי הימים א 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'דברי הימים א 1:1'")
|
|
696
|
+
expect(p.parse("1CHR 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1CHR 1:1'")
|
|
697
|
+
;
|
|
698
|
+
return true;
|
|
699
|
+
});
|
|
700
|
+
});
|
|
701
|
+
|
|
702
|
+
describe("Localized book Ezra (he)", function() {
|
|
703
|
+
var p;
|
|
704
|
+
p = {};
|
|
705
|
+
beforeEach(function() {
|
|
706
|
+
p = new bcv_parser();
|
|
707
|
+
p.set_options({
|
|
708
|
+
book_alone_strategy: "ignore",
|
|
709
|
+
book_sequence_strategy: "ignore",
|
|
710
|
+
osis_compaction_strategy: "bc",
|
|
711
|
+
captive_end_digits_strategy: "delete"
|
|
712
|
+
});
|
|
713
|
+
return p.include_apocrypha(true);
|
|
714
|
+
});
|
|
715
|
+
return it("should handle book: Ezra (he)", function() {
|
|
716
|
+
|
|
717
|
+
expect(p.parse("Ezra 1:1").osis()).toEqual("Ezra.1.1", "parsing: 'Ezra 1:1'")
|
|
718
|
+
expect(p.parse("עזרא 1:1").osis()).toEqual("Ezra.1.1", "parsing: 'עזרא 1:1'")
|
|
719
|
+
p.include_apocrypha(false)
|
|
720
|
+
expect(p.parse("EZRA 1:1").osis()).toEqual("Ezra.1.1", "parsing: 'EZRA 1:1'")
|
|
721
|
+
expect(p.parse("עזרא 1:1").osis()).toEqual("Ezra.1.1", "parsing: 'עזרא 1:1'")
|
|
722
|
+
;
|
|
723
|
+
return true;
|
|
724
|
+
});
|
|
725
|
+
});
|
|
726
|
+
|
|
727
|
+
describe("Localized book Neh (he)", function() {
|
|
728
|
+
var p;
|
|
729
|
+
p = {};
|
|
730
|
+
beforeEach(function() {
|
|
731
|
+
p = new bcv_parser();
|
|
732
|
+
p.set_options({
|
|
733
|
+
book_alone_strategy: "ignore",
|
|
734
|
+
book_sequence_strategy: "ignore",
|
|
735
|
+
osis_compaction_strategy: "bc",
|
|
736
|
+
captive_end_digits_strategy: "delete"
|
|
737
|
+
});
|
|
738
|
+
return p.include_apocrypha(true);
|
|
739
|
+
});
|
|
740
|
+
return it("should handle book: Neh (he)", function() {
|
|
741
|
+
|
|
742
|
+
expect(p.parse("נחמיה 1:1").osis()).toEqual("Neh.1.1", "parsing: 'נחמיה 1:1'")
|
|
743
|
+
expect(p.parse("Neh 1:1").osis()).toEqual("Neh.1.1", "parsing: 'Neh 1:1'")
|
|
744
|
+
p.include_apocrypha(false)
|
|
745
|
+
expect(p.parse("נחמיה 1:1").osis()).toEqual("Neh.1.1", "parsing: 'נחמיה 1:1'")
|
|
746
|
+
expect(p.parse("NEH 1:1").osis()).toEqual("Neh.1.1", "parsing: 'NEH 1:1'")
|
|
747
|
+
;
|
|
748
|
+
return true;
|
|
749
|
+
});
|
|
750
|
+
});
|
|
751
|
+
|
|
752
|
+
describe("Localized book GkEsth (he)", function() {
|
|
753
|
+
var p;
|
|
754
|
+
p = {};
|
|
755
|
+
beforeEach(function() {
|
|
756
|
+
p = new bcv_parser();
|
|
757
|
+
p.set_options({
|
|
758
|
+
book_alone_strategy: "ignore",
|
|
759
|
+
book_sequence_strategy: "ignore",
|
|
760
|
+
osis_compaction_strategy: "bc",
|
|
761
|
+
captive_end_digits_strategy: "delete"
|
|
762
|
+
});
|
|
763
|
+
return p.include_apocrypha(true);
|
|
764
|
+
});
|
|
765
|
+
return it("should handle book: GkEsth (he)", function() {
|
|
766
|
+
|
|
767
|
+
expect(p.parse("תוספות למגילת אסתר 1:1").osis()).toEqual("GkEsth.1.1", "parsing: 'תוספות למגילת אסתר 1:1'")
|
|
768
|
+
expect(p.parse("GkEsth 1:1").osis()).toEqual("GkEsth.1.1", "parsing: 'GkEsth 1:1'")
|
|
769
|
+
;
|
|
770
|
+
return true;
|
|
771
|
+
});
|
|
772
|
+
});
|
|
773
|
+
|
|
774
|
+
describe("Localized book Esth (he)", function() {
|
|
775
|
+
var p;
|
|
776
|
+
p = {};
|
|
777
|
+
beforeEach(function() {
|
|
778
|
+
p = new bcv_parser();
|
|
779
|
+
p.set_options({
|
|
780
|
+
book_alone_strategy: "ignore",
|
|
781
|
+
book_sequence_strategy: "ignore",
|
|
782
|
+
osis_compaction_strategy: "bc",
|
|
783
|
+
captive_end_digits_strategy: "delete"
|
|
784
|
+
});
|
|
785
|
+
return p.include_apocrypha(true);
|
|
786
|
+
});
|
|
787
|
+
return it("should handle book: Esth (he)", function() {
|
|
788
|
+
|
|
789
|
+
expect(p.parse("אסתר, כולל פרקים גנוזים 1:1").osis()).toEqual("Esth.1.1", "parsing: 'אסתר, כולל פרקים גנוזים 1:1'")
|
|
790
|
+
expect(p.parse("Esth 1:1").osis()).toEqual("Esth.1.1", "parsing: 'Esth 1:1'")
|
|
791
|
+
expect(p.parse("אסתר 1:1").osis()).toEqual("Esth.1.1", "parsing: 'אסתר 1:1'")
|
|
792
|
+
p.include_apocrypha(false)
|
|
793
|
+
expect(p.parse("אסתר, כולל פרקים גנוזים 1:1").osis()).toEqual("Esth.1.1", "parsing: 'אסתר, כולל פרקים גנוזים 1:1'")
|
|
794
|
+
expect(p.parse("ESTH 1:1").osis()).toEqual("Esth.1.1", "parsing: 'ESTH 1:1'")
|
|
795
|
+
expect(p.parse("אסתר 1:1").osis()).toEqual("Esth.1.1", "parsing: 'אסתר 1:1'")
|
|
796
|
+
;
|
|
797
|
+
return true;
|
|
798
|
+
});
|
|
799
|
+
});
|
|
800
|
+
|
|
801
|
+
describe("Localized book Job (he)", function() {
|
|
802
|
+
var p;
|
|
803
|
+
p = {};
|
|
804
|
+
beforeEach(function() {
|
|
805
|
+
p = new bcv_parser();
|
|
806
|
+
p.set_options({
|
|
807
|
+
book_alone_strategy: "ignore",
|
|
808
|
+
book_sequence_strategy: "ignore",
|
|
809
|
+
osis_compaction_strategy: "bc",
|
|
810
|
+
captive_end_digits_strategy: "delete"
|
|
811
|
+
});
|
|
812
|
+
return p.include_apocrypha(true);
|
|
813
|
+
});
|
|
814
|
+
return it("should handle book: Job (he)", function() {
|
|
815
|
+
|
|
816
|
+
expect(p.parse("איוב 1:1").osis()).toEqual("Job.1.1", "parsing: 'איוב 1:1'")
|
|
817
|
+
expect(p.parse("Job 1:1").osis()).toEqual("Job.1.1", "parsing: 'Job 1:1'")
|
|
818
|
+
p.include_apocrypha(false)
|
|
819
|
+
expect(p.parse("איוב 1:1").osis()).toEqual("Job.1.1", "parsing: 'איוב 1:1'")
|
|
820
|
+
expect(p.parse("JOB 1:1").osis()).toEqual("Job.1.1", "parsing: 'JOB 1:1'")
|
|
821
|
+
;
|
|
822
|
+
return true;
|
|
823
|
+
});
|
|
824
|
+
});
|
|
825
|
+
|
|
826
|
+
describe("Localized book Ps (he)", function() {
|
|
827
|
+
var p;
|
|
828
|
+
p = {};
|
|
829
|
+
beforeEach(function() {
|
|
830
|
+
p = new bcv_parser();
|
|
831
|
+
p.set_options({
|
|
832
|
+
book_alone_strategy: "ignore",
|
|
833
|
+
book_sequence_strategy: "ignore",
|
|
834
|
+
osis_compaction_strategy: "bc",
|
|
835
|
+
captive_end_digits_strategy: "delete"
|
|
836
|
+
});
|
|
837
|
+
return p.include_apocrypha(true);
|
|
838
|
+
});
|
|
839
|
+
return it("should handle book: Ps (he)", function() {
|
|
840
|
+
|
|
841
|
+
expect(p.parse("מזמורים 1:1").osis()).toEqual("Ps.1.1", "parsing: 'מזמורים 1:1'")
|
|
842
|
+
expect(p.parse("תהילים 1:1").osis()).toEqual("Ps.1.1", "parsing: 'תהילים 1:1'")
|
|
843
|
+
expect(p.parse("Ps 1:1").osis()).toEqual("Ps.1.1", "parsing: 'Ps 1:1'")
|
|
844
|
+
p.include_apocrypha(false)
|
|
845
|
+
expect(p.parse("מזמורים 1:1").osis()).toEqual("Ps.1.1", "parsing: 'מזמורים 1:1'")
|
|
846
|
+
expect(p.parse("תהילים 1:1").osis()).toEqual("Ps.1.1", "parsing: 'תהילים 1:1'")
|
|
847
|
+
expect(p.parse("PS 1:1").osis()).toEqual("Ps.1.1", "parsing: 'PS 1:1'")
|
|
848
|
+
;
|
|
849
|
+
return true;
|
|
850
|
+
});
|
|
851
|
+
});
|
|
852
|
+
|
|
853
|
+
describe("Localized book PrAzar (he)", function() {
|
|
854
|
+
var p;
|
|
855
|
+
p = {};
|
|
856
|
+
beforeEach(function() {
|
|
857
|
+
p = new bcv_parser();
|
|
858
|
+
p.set_options({
|
|
859
|
+
book_alone_strategy: "ignore",
|
|
860
|
+
book_sequence_strategy: "ignore",
|
|
861
|
+
osis_compaction_strategy: "bc",
|
|
862
|
+
captive_end_digits_strategy: "delete"
|
|
863
|
+
});
|
|
864
|
+
return p.include_apocrypha(true);
|
|
865
|
+
});
|
|
866
|
+
return it("should handle book: PrAzar (he)", function() {
|
|
867
|
+
|
|
868
|
+
expect(p.parse("תפילת עזריה בתוך הכבשן 1:1").osis()).toEqual("PrAzar.1.1", "parsing: 'תפילת עזריה בתוך הכבשן 1:1'")
|
|
869
|
+
expect(p.parse("תפילת עזריה 1:1").osis()).toEqual("PrAzar.1.1", "parsing: 'תפילת עזריה 1:1'")
|
|
870
|
+
expect(p.parse("PrAzar 1:1").osis()).toEqual("PrAzar.1.1", "parsing: 'PrAzar 1:1'")
|
|
871
|
+
;
|
|
872
|
+
return true;
|
|
873
|
+
});
|
|
874
|
+
});
|
|
875
|
+
|
|
876
|
+
describe("Localized book Prov (he)", function() {
|
|
877
|
+
var p;
|
|
878
|
+
p = {};
|
|
879
|
+
beforeEach(function() {
|
|
880
|
+
p = new bcv_parser();
|
|
881
|
+
p.set_options({
|
|
882
|
+
book_alone_strategy: "ignore",
|
|
883
|
+
book_sequence_strategy: "ignore",
|
|
884
|
+
osis_compaction_strategy: "bc",
|
|
885
|
+
captive_end_digits_strategy: "delete"
|
|
886
|
+
});
|
|
887
|
+
return p.include_apocrypha(true);
|
|
888
|
+
});
|
|
889
|
+
return it("should handle book: Prov (he)", function() {
|
|
890
|
+
|
|
891
|
+
expect(p.parse("פתגמים 1:1").osis()).toEqual("Prov.1.1", "parsing: 'פתגמים 1:1'")
|
|
892
|
+
expect(p.parse("משלים 1:1").osis()).toEqual("Prov.1.1", "parsing: 'משלים 1:1'")
|
|
893
|
+
expect(p.parse("Prov 1:1").osis()).toEqual("Prov.1.1", "parsing: 'Prov 1:1'")
|
|
894
|
+
expect(p.parse("משלי 1:1").osis()).toEqual("Prov.1.1", "parsing: 'משלי 1:1'")
|
|
895
|
+
p.include_apocrypha(false)
|
|
896
|
+
expect(p.parse("פתגמים 1:1").osis()).toEqual("Prov.1.1", "parsing: 'פתגמים 1:1'")
|
|
897
|
+
expect(p.parse("משלים 1:1").osis()).toEqual("Prov.1.1", "parsing: 'משלים 1:1'")
|
|
898
|
+
expect(p.parse("PROV 1:1").osis()).toEqual("Prov.1.1", "parsing: 'PROV 1:1'")
|
|
899
|
+
expect(p.parse("משלי 1:1").osis()).toEqual("Prov.1.1", "parsing: 'משלי 1:1'")
|
|
900
|
+
;
|
|
901
|
+
return true;
|
|
902
|
+
});
|
|
903
|
+
});
|
|
904
|
+
|
|
905
|
+
describe("Localized book Eccl (he)", function() {
|
|
906
|
+
var p;
|
|
907
|
+
p = {};
|
|
908
|
+
beforeEach(function() {
|
|
909
|
+
p = new bcv_parser();
|
|
910
|
+
p.set_options({
|
|
911
|
+
book_alone_strategy: "ignore",
|
|
912
|
+
book_sequence_strategy: "ignore",
|
|
913
|
+
osis_compaction_strategy: "bc",
|
|
914
|
+
captive_end_digits_strategy: "delete"
|
|
915
|
+
});
|
|
916
|
+
return p.include_apocrypha(true);
|
|
917
|
+
});
|
|
918
|
+
return it("should handle book: Eccl (he)", function() {
|
|
919
|
+
|
|
920
|
+
expect(p.parse("המקהיל 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'המקהיל 1:1'")
|
|
921
|
+
expect(p.parse("המרצה 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'המרצה 1:1'")
|
|
922
|
+
expect(p.parse("Eccl 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'Eccl 1:1'")
|
|
923
|
+
expect(p.parse("קהלת 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'קהלת 1:1'")
|
|
924
|
+
p.include_apocrypha(false)
|
|
925
|
+
expect(p.parse("המקהיל 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'המקהיל 1:1'")
|
|
926
|
+
expect(p.parse("המרצה 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'המרצה 1:1'")
|
|
927
|
+
expect(p.parse("ECCL 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'ECCL 1:1'")
|
|
928
|
+
expect(p.parse("קהלת 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'קהלת 1:1'")
|
|
929
|
+
;
|
|
930
|
+
return true;
|
|
931
|
+
});
|
|
932
|
+
});
|
|
933
|
+
|
|
934
|
+
describe("Localized book SgThree (he)", function() {
|
|
935
|
+
var p;
|
|
936
|
+
p = {};
|
|
937
|
+
beforeEach(function() {
|
|
938
|
+
p = new bcv_parser();
|
|
939
|
+
p.set_options({
|
|
940
|
+
book_alone_strategy: "ignore",
|
|
941
|
+
book_sequence_strategy: "ignore",
|
|
942
|
+
osis_compaction_strategy: "bc",
|
|
943
|
+
captive_end_digits_strategy: "delete"
|
|
944
|
+
});
|
|
945
|
+
return p.include_apocrypha(true);
|
|
946
|
+
});
|
|
947
|
+
return it("should handle book: SgThree (he)", function() {
|
|
948
|
+
|
|
949
|
+
expect(p.parse("שירת שלושת הנערים בכבשן 1:1").osis()).toEqual("SgThree.1.1", "parsing: 'שירת שלושת הנערים בכבשן 1:1'")
|
|
950
|
+
expect(p.parse("SgThree 1:1").osis()).toEqual("SgThree.1.1", "parsing: 'SgThree 1:1'")
|
|
951
|
+
;
|
|
952
|
+
return true;
|
|
953
|
+
});
|
|
954
|
+
});
|
|
955
|
+
|
|
956
|
+
describe("Localized book Song (he)", function() {
|
|
957
|
+
var p;
|
|
958
|
+
p = {};
|
|
959
|
+
beforeEach(function() {
|
|
960
|
+
p = new bcv_parser();
|
|
961
|
+
p.set_options({
|
|
962
|
+
book_alone_strategy: "ignore",
|
|
963
|
+
book_sequence_strategy: "ignore",
|
|
964
|
+
osis_compaction_strategy: "bc",
|
|
965
|
+
captive_end_digits_strategy: "delete"
|
|
966
|
+
});
|
|
967
|
+
return p.include_apocrypha(true);
|
|
968
|
+
});
|
|
969
|
+
return it("should handle book: Song (he)", function() {
|
|
970
|
+
|
|
971
|
+
expect(p.parse("שיר השירים 1:1").osis()).toEqual("Song.1.1", "parsing: 'שיר השירים 1:1'")
|
|
972
|
+
expect(p.parse("שירי שלמה 1:1").osis()).toEqual("Song.1.1", "parsing: 'שירי שלמה 1:1'")
|
|
973
|
+
expect(p.parse("Song 1:1").osis()).toEqual("Song.1.1", "parsing: 'Song 1:1'")
|
|
974
|
+
p.include_apocrypha(false)
|
|
975
|
+
expect(p.parse("שיר השירים 1:1").osis()).toEqual("Song.1.1", "parsing: 'שיר השירים 1:1'")
|
|
976
|
+
expect(p.parse("שירי שלמה 1:1").osis()).toEqual("Song.1.1", "parsing: 'שירי שלמה 1:1'")
|
|
977
|
+
expect(p.parse("SONG 1:1").osis()).toEqual("Song.1.1", "parsing: 'SONG 1:1'")
|
|
978
|
+
;
|
|
979
|
+
return true;
|
|
980
|
+
});
|
|
981
|
+
});
|
|
982
|
+
|
|
983
|
+
describe("Localized book Jer (he)", function() {
|
|
984
|
+
var p;
|
|
985
|
+
p = {};
|
|
986
|
+
beforeEach(function() {
|
|
987
|
+
p = new bcv_parser();
|
|
988
|
+
p.set_options({
|
|
989
|
+
book_alone_strategy: "ignore",
|
|
990
|
+
book_sequence_strategy: "ignore",
|
|
991
|
+
osis_compaction_strategy: "bc",
|
|
992
|
+
captive_end_digits_strategy: "delete"
|
|
993
|
+
});
|
|
994
|
+
return p.include_apocrypha(true);
|
|
995
|
+
});
|
|
996
|
+
return it("should handle book: Jer (he)", function() {
|
|
997
|
+
|
|
998
|
+
expect(p.parse("ירמיהו 1:1").osis()).toEqual("Jer.1.1", "parsing: 'ירמיהו 1:1'")
|
|
999
|
+
expect(p.parse("ירמיה 1:1").osis()).toEqual("Jer.1.1", "parsing: 'ירמיה 1:1'")
|
|
1000
|
+
expect(p.parse("Jer 1:1").osis()).toEqual("Jer.1.1", "parsing: 'Jer 1:1'")
|
|
1001
|
+
p.include_apocrypha(false)
|
|
1002
|
+
expect(p.parse("ירמיהו 1:1").osis()).toEqual("Jer.1.1", "parsing: 'ירמיהו 1:1'")
|
|
1003
|
+
expect(p.parse("ירמיה 1:1").osis()).toEqual("Jer.1.1", "parsing: 'ירמיה 1:1'")
|
|
1004
|
+
expect(p.parse("JER 1:1").osis()).toEqual("Jer.1.1", "parsing: 'JER 1:1'")
|
|
1005
|
+
;
|
|
1006
|
+
return true;
|
|
1007
|
+
});
|
|
1008
|
+
});
|
|
1009
|
+
|
|
1010
|
+
describe("Localized book Ezek (he)", function() {
|
|
1011
|
+
var p;
|
|
1012
|
+
p = {};
|
|
1013
|
+
beforeEach(function() {
|
|
1014
|
+
p = new bcv_parser();
|
|
1015
|
+
p.set_options({
|
|
1016
|
+
book_alone_strategy: "ignore",
|
|
1017
|
+
book_sequence_strategy: "ignore",
|
|
1018
|
+
osis_compaction_strategy: "bc",
|
|
1019
|
+
captive_end_digits_strategy: "delete"
|
|
1020
|
+
});
|
|
1021
|
+
return p.include_apocrypha(true);
|
|
1022
|
+
});
|
|
1023
|
+
return it("should handle book: Ezek (he)", function() {
|
|
1024
|
+
|
|
1025
|
+
expect(p.parse("יחזקאל 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'יחזקאל 1:1'")
|
|
1026
|
+
expect(p.parse("Ezek 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'Ezek 1:1'")
|
|
1027
|
+
p.include_apocrypha(false)
|
|
1028
|
+
expect(p.parse("יחזקאל 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'יחזקאל 1:1'")
|
|
1029
|
+
expect(p.parse("EZEK 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'EZEK 1:1'")
|
|
1030
|
+
;
|
|
1031
|
+
return true;
|
|
1032
|
+
});
|
|
1033
|
+
});
|
|
1034
|
+
|
|
1035
|
+
describe("Localized book Dan (he)", function() {
|
|
1036
|
+
var p;
|
|
1037
|
+
p = {};
|
|
1038
|
+
beforeEach(function() {
|
|
1039
|
+
p = new bcv_parser();
|
|
1040
|
+
p.set_options({
|
|
1041
|
+
book_alone_strategy: "ignore",
|
|
1042
|
+
book_sequence_strategy: "ignore",
|
|
1043
|
+
osis_compaction_strategy: "bc",
|
|
1044
|
+
captive_end_digits_strategy: "delete"
|
|
1045
|
+
});
|
|
1046
|
+
return p.include_apocrypha(true);
|
|
1047
|
+
});
|
|
1048
|
+
return it("should handle book: Dan (he)", function() {
|
|
1049
|
+
|
|
1050
|
+
expect(p.parse("דניאל 1:1").osis()).toEqual("Dan.1.1", "parsing: 'דניאל 1:1'")
|
|
1051
|
+
expect(p.parse("Dan 1:1").osis()).toEqual("Dan.1.1", "parsing: 'Dan 1:1'")
|
|
1052
|
+
p.include_apocrypha(false)
|
|
1053
|
+
expect(p.parse("דניאל 1:1").osis()).toEqual("Dan.1.1", "parsing: 'דניאל 1:1'")
|
|
1054
|
+
expect(p.parse("DAN 1:1").osis()).toEqual("Dan.1.1", "parsing: 'DAN 1:1'")
|
|
1055
|
+
;
|
|
1056
|
+
return true;
|
|
1057
|
+
});
|
|
1058
|
+
});
|
|
1059
|
+
|
|
1060
|
+
describe("Localized book Hos (he)", function() {
|
|
1061
|
+
var p;
|
|
1062
|
+
p = {};
|
|
1063
|
+
beforeEach(function() {
|
|
1064
|
+
p = new bcv_parser();
|
|
1065
|
+
p.set_options({
|
|
1066
|
+
book_alone_strategy: "ignore",
|
|
1067
|
+
book_sequence_strategy: "ignore",
|
|
1068
|
+
osis_compaction_strategy: "bc",
|
|
1069
|
+
captive_end_digits_strategy: "delete"
|
|
1070
|
+
});
|
|
1071
|
+
return p.include_apocrypha(true);
|
|
1072
|
+
});
|
|
1073
|
+
return it("should handle book: Hos (he)", function() {
|
|
1074
|
+
|
|
1075
|
+
expect(p.parse("הושע 1:1").osis()).toEqual("Hos.1.1", "parsing: 'הושע 1:1'")
|
|
1076
|
+
expect(p.parse("Hos 1:1").osis()).toEqual("Hos.1.1", "parsing: 'Hos 1:1'")
|
|
1077
|
+
p.include_apocrypha(false)
|
|
1078
|
+
expect(p.parse("הושע 1:1").osis()).toEqual("Hos.1.1", "parsing: 'הושע 1:1'")
|
|
1079
|
+
expect(p.parse("HOS 1:1").osis()).toEqual("Hos.1.1", "parsing: 'HOS 1:1'")
|
|
1080
|
+
;
|
|
1081
|
+
return true;
|
|
1082
|
+
});
|
|
1083
|
+
});
|
|
1084
|
+
|
|
1085
|
+
describe("Localized book Joel (he)", function() {
|
|
1086
|
+
var p;
|
|
1087
|
+
p = {};
|
|
1088
|
+
beforeEach(function() {
|
|
1089
|
+
p = new bcv_parser();
|
|
1090
|
+
p.set_options({
|
|
1091
|
+
book_alone_strategy: "ignore",
|
|
1092
|
+
book_sequence_strategy: "ignore",
|
|
1093
|
+
osis_compaction_strategy: "bc",
|
|
1094
|
+
captive_end_digits_strategy: "delete"
|
|
1095
|
+
});
|
|
1096
|
+
return p.include_apocrypha(true);
|
|
1097
|
+
});
|
|
1098
|
+
return it("should handle book: Joel (he)", function() {
|
|
1099
|
+
|
|
1100
|
+
expect(p.parse("Joel 1:1").osis()).toEqual("Joel.1.1", "parsing: 'Joel 1:1'")
|
|
1101
|
+
expect(p.parse("יואל 1:1").osis()).toEqual("Joel.1.1", "parsing: 'יואל 1:1'")
|
|
1102
|
+
p.include_apocrypha(false)
|
|
1103
|
+
expect(p.parse("JOEL 1:1").osis()).toEqual("Joel.1.1", "parsing: 'JOEL 1:1'")
|
|
1104
|
+
expect(p.parse("יואל 1:1").osis()).toEqual("Joel.1.1", "parsing: 'יואל 1:1'")
|
|
1105
|
+
;
|
|
1106
|
+
return true;
|
|
1107
|
+
});
|
|
1108
|
+
});
|
|
1109
|
+
|
|
1110
|
+
describe("Localized book Amos (he)", function() {
|
|
1111
|
+
var p;
|
|
1112
|
+
p = {};
|
|
1113
|
+
beforeEach(function() {
|
|
1114
|
+
p = new bcv_parser();
|
|
1115
|
+
p.set_options({
|
|
1116
|
+
book_alone_strategy: "ignore",
|
|
1117
|
+
book_sequence_strategy: "ignore",
|
|
1118
|
+
osis_compaction_strategy: "bc",
|
|
1119
|
+
captive_end_digits_strategy: "delete"
|
|
1120
|
+
});
|
|
1121
|
+
return p.include_apocrypha(true);
|
|
1122
|
+
});
|
|
1123
|
+
return it("should handle book: Amos (he)", function() {
|
|
1124
|
+
|
|
1125
|
+
expect(p.parse("Amos 1:1").osis()).toEqual("Amos.1.1", "parsing: 'Amos 1:1'")
|
|
1126
|
+
expect(p.parse("עמוס 1:1").osis()).toEqual("Amos.1.1", "parsing: 'עמוס 1:1'")
|
|
1127
|
+
p.include_apocrypha(false)
|
|
1128
|
+
expect(p.parse("AMOS 1:1").osis()).toEqual("Amos.1.1", "parsing: 'AMOS 1:1'")
|
|
1129
|
+
expect(p.parse("עמוס 1:1").osis()).toEqual("Amos.1.1", "parsing: 'עמוס 1:1'")
|
|
1130
|
+
;
|
|
1131
|
+
return true;
|
|
1132
|
+
});
|
|
1133
|
+
});
|
|
1134
|
+
|
|
1135
|
+
describe("Localized book Obad (he)", function() {
|
|
1136
|
+
var p;
|
|
1137
|
+
p = {};
|
|
1138
|
+
beforeEach(function() {
|
|
1139
|
+
p = new bcv_parser();
|
|
1140
|
+
p.set_options({
|
|
1141
|
+
book_alone_strategy: "ignore",
|
|
1142
|
+
book_sequence_strategy: "ignore",
|
|
1143
|
+
osis_compaction_strategy: "bc",
|
|
1144
|
+
captive_end_digits_strategy: "delete"
|
|
1145
|
+
});
|
|
1146
|
+
return p.include_apocrypha(true);
|
|
1147
|
+
});
|
|
1148
|
+
return it("should handle book: Obad (he)", function() {
|
|
1149
|
+
|
|
1150
|
+
expect(p.parse("עובדיה 1:1").osis()).toEqual("Obad.1.1", "parsing: 'עובדיה 1:1'")
|
|
1151
|
+
expect(p.parse("עבדיה 1:1").osis()).toEqual("Obad.1.1", "parsing: 'עבדיה 1:1'")
|
|
1152
|
+
expect(p.parse("Obad 1:1").osis()).toEqual("Obad.1.1", "parsing: 'Obad 1:1'")
|
|
1153
|
+
p.include_apocrypha(false)
|
|
1154
|
+
expect(p.parse("עובדיה 1:1").osis()).toEqual("Obad.1.1", "parsing: 'עובדיה 1:1'")
|
|
1155
|
+
expect(p.parse("עבדיה 1:1").osis()).toEqual("Obad.1.1", "parsing: 'עבדיה 1:1'")
|
|
1156
|
+
expect(p.parse("OBAD 1:1").osis()).toEqual("Obad.1.1", "parsing: 'OBAD 1:1'")
|
|
1157
|
+
;
|
|
1158
|
+
return true;
|
|
1159
|
+
});
|
|
1160
|
+
});
|
|
1161
|
+
|
|
1162
|
+
describe("Localized book Jonah (he)", function() {
|
|
1163
|
+
var p;
|
|
1164
|
+
p = {};
|
|
1165
|
+
beforeEach(function() {
|
|
1166
|
+
p = new bcv_parser();
|
|
1167
|
+
p.set_options({
|
|
1168
|
+
book_alone_strategy: "ignore",
|
|
1169
|
+
book_sequence_strategy: "ignore",
|
|
1170
|
+
osis_compaction_strategy: "bc",
|
|
1171
|
+
captive_end_digits_strategy: "delete"
|
|
1172
|
+
});
|
|
1173
|
+
return p.include_apocrypha(true);
|
|
1174
|
+
});
|
|
1175
|
+
return it("should handle book: Jonah (he)", function() {
|
|
1176
|
+
|
|
1177
|
+
expect(p.parse("Jonah 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'Jonah 1:1'")
|
|
1178
|
+
expect(p.parse("יונה 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'יונה 1:1'")
|
|
1179
|
+
p.include_apocrypha(false)
|
|
1180
|
+
expect(p.parse("JONAH 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'JONAH 1:1'")
|
|
1181
|
+
expect(p.parse("יונה 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'יונה 1:1'")
|
|
1182
|
+
;
|
|
1183
|
+
return true;
|
|
1184
|
+
});
|
|
1185
|
+
});
|
|
1186
|
+
|
|
1187
|
+
describe("Localized book Mic (he)", function() {
|
|
1188
|
+
var p;
|
|
1189
|
+
p = {};
|
|
1190
|
+
beforeEach(function() {
|
|
1191
|
+
p = new bcv_parser();
|
|
1192
|
+
p.set_options({
|
|
1193
|
+
book_alone_strategy: "ignore",
|
|
1194
|
+
book_sequence_strategy: "ignore",
|
|
1195
|
+
osis_compaction_strategy: "bc",
|
|
1196
|
+
captive_end_digits_strategy: "delete"
|
|
1197
|
+
});
|
|
1198
|
+
return p.include_apocrypha(true);
|
|
1199
|
+
});
|
|
1200
|
+
return it("should handle book: Mic (he)", function() {
|
|
1201
|
+
|
|
1202
|
+
expect(p.parse("מיכה 1:1").osis()).toEqual("Mic.1.1", "parsing: 'מיכה 1:1'")
|
|
1203
|
+
expect(p.parse("Mic 1:1").osis()).toEqual("Mic.1.1", "parsing: 'Mic 1:1'")
|
|
1204
|
+
p.include_apocrypha(false)
|
|
1205
|
+
expect(p.parse("מיכה 1:1").osis()).toEqual("Mic.1.1", "parsing: 'מיכה 1:1'")
|
|
1206
|
+
expect(p.parse("MIC 1:1").osis()).toEqual("Mic.1.1", "parsing: 'MIC 1:1'")
|
|
1207
|
+
;
|
|
1208
|
+
return true;
|
|
1209
|
+
});
|
|
1210
|
+
});
|
|
1211
|
+
|
|
1212
|
+
describe("Localized book Nah (he)", function() {
|
|
1213
|
+
var p;
|
|
1214
|
+
p = {};
|
|
1215
|
+
beforeEach(function() {
|
|
1216
|
+
p = new bcv_parser();
|
|
1217
|
+
p.set_options({
|
|
1218
|
+
book_alone_strategy: "ignore",
|
|
1219
|
+
book_sequence_strategy: "ignore",
|
|
1220
|
+
osis_compaction_strategy: "bc",
|
|
1221
|
+
captive_end_digits_strategy: "delete"
|
|
1222
|
+
});
|
|
1223
|
+
return p.include_apocrypha(true);
|
|
1224
|
+
});
|
|
1225
|
+
return it("should handle book: Nah (he)", function() {
|
|
1226
|
+
|
|
1227
|
+
expect(p.parse("נחום 1:1").osis()).toEqual("Nah.1.1", "parsing: 'נחום 1:1'")
|
|
1228
|
+
expect(p.parse("Nah 1:1").osis()).toEqual("Nah.1.1", "parsing: 'Nah 1:1'")
|
|
1229
|
+
p.include_apocrypha(false)
|
|
1230
|
+
expect(p.parse("נחום 1:1").osis()).toEqual("Nah.1.1", "parsing: 'נחום 1:1'")
|
|
1231
|
+
expect(p.parse("NAH 1:1").osis()).toEqual("Nah.1.1", "parsing: 'NAH 1:1'")
|
|
1232
|
+
;
|
|
1233
|
+
return true;
|
|
1234
|
+
});
|
|
1235
|
+
});
|
|
1236
|
+
|
|
1237
|
+
describe("Localized book Hab (he)", function() {
|
|
1238
|
+
var p;
|
|
1239
|
+
p = {};
|
|
1240
|
+
beforeEach(function() {
|
|
1241
|
+
p = new bcv_parser();
|
|
1242
|
+
p.set_options({
|
|
1243
|
+
book_alone_strategy: "ignore",
|
|
1244
|
+
book_sequence_strategy: "ignore",
|
|
1245
|
+
osis_compaction_strategy: "bc",
|
|
1246
|
+
captive_end_digits_strategy: "delete"
|
|
1247
|
+
});
|
|
1248
|
+
return p.include_apocrypha(true);
|
|
1249
|
+
});
|
|
1250
|
+
return it("should handle book: Hab (he)", function() {
|
|
1251
|
+
|
|
1252
|
+
expect(p.parse("חבקוק 1:1").osis()).toEqual("Hab.1.1", "parsing: 'חבקוק 1:1'")
|
|
1253
|
+
expect(p.parse("Hab 1:1").osis()).toEqual("Hab.1.1", "parsing: 'Hab 1:1'")
|
|
1254
|
+
p.include_apocrypha(false)
|
|
1255
|
+
expect(p.parse("חבקוק 1:1").osis()).toEqual("Hab.1.1", "parsing: 'חבקוק 1:1'")
|
|
1256
|
+
expect(p.parse("HAB 1:1").osis()).toEqual("Hab.1.1", "parsing: 'HAB 1:1'")
|
|
1257
|
+
;
|
|
1258
|
+
return true;
|
|
1259
|
+
});
|
|
1260
|
+
});
|
|
1261
|
+
|
|
1262
|
+
describe("Localized book Zeph (he)", function() {
|
|
1263
|
+
var p;
|
|
1264
|
+
p = {};
|
|
1265
|
+
beforeEach(function() {
|
|
1266
|
+
p = new bcv_parser();
|
|
1267
|
+
p.set_options({
|
|
1268
|
+
book_alone_strategy: "ignore",
|
|
1269
|
+
book_sequence_strategy: "ignore",
|
|
1270
|
+
osis_compaction_strategy: "bc",
|
|
1271
|
+
captive_end_digits_strategy: "delete"
|
|
1272
|
+
});
|
|
1273
|
+
return p.include_apocrypha(true);
|
|
1274
|
+
});
|
|
1275
|
+
return it("should handle book: Zeph (he)", function() {
|
|
1276
|
+
|
|
1277
|
+
expect(p.parse("צפניה 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'צפניה 1:1'")
|
|
1278
|
+
expect(p.parse("Zeph 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'Zeph 1:1'")
|
|
1279
|
+
p.include_apocrypha(false)
|
|
1280
|
+
expect(p.parse("צפניה 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'צפניה 1:1'")
|
|
1281
|
+
expect(p.parse("ZEPH 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'ZEPH 1:1'")
|
|
1282
|
+
;
|
|
1283
|
+
return true;
|
|
1284
|
+
});
|
|
1285
|
+
});
|
|
1286
|
+
|
|
1287
|
+
describe("Localized book Hag (he)", function() {
|
|
1288
|
+
var p;
|
|
1289
|
+
p = {};
|
|
1290
|
+
beforeEach(function() {
|
|
1291
|
+
p = new bcv_parser();
|
|
1292
|
+
p.set_options({
|
|
1293
|
+
book_alone_strategy: "ignore",
|
|
1294
|
+
book_sequence_strategy: "ignore",
|
|
1295
|
+
osis_compaction_strategy: "bc",
|
|
1296
|
+
captive_end_digits_strategy: "delete"
|
|
1297
|
+
});
|
|
1298
|
+
return p.include_apocrypha(true);
|
|
1299
|
+
});
|
|
1300
|
+
return it("should handle book: Hag (he)", function() {
|
|
1301
|
+
|
|
1302
|
+
expect(p.parse("Hag 1:1").osis()).toEqual("Hag.1.1", "parsing: 'Hag 1:1'")
|
|
1303
|
+
expect(p.parse("חגי 1:1").osis()).toEqual("Hag.1.1", "parsing: 'חגי 1:1'")
|
|
1304
|
+
p.include_apocrypha(false)
|
|
1305
|
+
expect(p.parse("HAG 1:1").osis()).toEqual("Hag.1.1", "parsing: 'HAG 1:1'")
|
|
1306
|
+
expect(p.parse("חגי 1:1").osis()).toEqual("Hag.1.1", "parsing: 'חגי 1:1'")
|
|
1307
|
+
;
|
|
1308
|
+
return true;
|
|
1309
|
+
});
|
|
1310
|
+
});
|
|
1311
|
+
|
|
1312
|
+
describe("Localized book Zech (he)", function() {
|
|
1313
|
+
var p;
|
|
1314
|
+
p = {};
|
|
1315
|
+
beforeEach(function() {
|
|
1316
|
+
p = new bcv_parser();
|
|
1317
|
+
p.set_options({
|
|
1318
|
+
book_alone_strategy: "ignore",
|
|
1319
|
+
book_sequence_strategy: "ignore",
|
|
1320
|
+
osis_compaction_strategy: "bc",
|
|
1321
|
+
captive_end_digits_strategy: "delete"
|
|
1322
|
+
});
|
|
1323
|
+
return p.include_apocrypha(true);
|
|
1324
|
+
});
|
|
1325
|
+
return it("should handle book: Zech (he)", function() {
|
|
1326
|
+
|
|
1327
|
+
expect(p.parse("זכריה 1:1").osis()).toEqual("Zech.1.1", "parsing: 'זכריה 1:1'")
|
|
1328
|
+
expect(p.parse("Zech 1:1").osis()).toEqual("Zech.1.1", "parsing: 'Zech 1:1'")
|
|
1329
|
+
p.include_apocrypha(false)
|
|
1330
|
+
expect(p.parse("זכריה 1:1").osis()).toEqual("Zech.1.1", "parsing: 'זכריה 1:1'")
|
|
1331
|
+
expect(p.parse("ZECH 1:1").osis()).toEqual("Zech.1.1", "parsing: 'ZECH 1:1'")
|
|
1332
|
+
;
|
|
1333
|
+
return true;
|
|
1334
|
+
});
|
|
1335
|
+
});
|
|
1336
|
+
|
|
1337
|
+
describe("Localized book Mal (he)", function() {
|
|
1338
|
+
var p;
|
|
1339
|
+
p = {};
|
|
1340
|
+
beforeEach(function() {
|
|
1341
|
+
p = new bcv_parser();
|
|
1342
|
+
p.set_options({
|
|
1343
|
+
book_alone_strategy: "ignore",
|
|
1344
|
+
book_sequence_strategy: "ignore",
|
|
1345
|
+
osis_compaction_strategy: "bc",
|
|
1346
|
+
captive_end_digits_strategy: "delete"
|
|
1347
|
+
});
|
|
1348
|
+
return p.include_apocrypha(true);
|
|
1349
|
+
});
|
|
1350
|
+
return it("should handle book: Mal (he)", function() {
|
|
1351
|
+
|
|
1352
|
+
expect(p.parse("מלאכי 1:1").osis()).toEqual("Mal.1.1", "parsing: 'מלאכי 1:1'")
|
|
1353
|
+
expect(p.parse("Mal 1:1").osis()).toEqual("Mal.1.1", "parsing: 'Mal 1:1'")
|
|
1354
|
+
p.include_apocrypha(false)
|
|
1355
|
+
expect(p.parse("מלאכי 1:1").osis()).toEqual("Mal.1.1", "parsing: 'מלאכי 1:1'")
|
|
1356
|
+
expect(p.parse("MAL 1:1").osis()).toEqual("Mal.1.1", "parsing: 'MAL 1:1'")
|
|
1357
|
+
;
|
|
1358
|
+
return true;
|
|
1359
|
+
});
|
|
1360
|
+
});
|
|
1361
|
+
|
|
1362
|
+
describe("Localized book Matt (he)", function() {
|
|
1363
|
+
var p;
|
|
1364
|
+
p = {};
|
|
1365
|
+
beforeEach(function() {
|
|
1366
|
+
p = new bcv_parser();
|
|
1367
|
+
p.set_options({
|
|
1368
|
+
book_alone_strategy: "ignore",
|
|
1369
|
+
book_sequence_strategy: "ignore",
|
|
1370
|
+
osis_compaction_strategy: "bc",
|
|
1371
|
+
captive_end_digits_strategy: "delete"
|
|
1372
|
+
});
|
|
1373
|
+
return p.include_apocrypha(true);
|
|
1374
|
+
});
|
|
1375
|
+
return it("should handle book: Matt (he)", function() {
|
|
1376
|
+
|
|
1377
|
+
expect(p.parse("הבשורה הקדושה על-פי מתי 1:1").osis()).toEqual("Matt.1.1", "parsing: 'הבשורה הקדושה על-פי מתי 1:1'")
|
|
1378
|
+
expect(p.parse("הבשורה על פי מתי 1:1").osis()).toEqual("Matt.1.1", "parsing: 'הבשורה על פי מתי 1:1'")
|
|
1379
|
+
expect(p.parse("הבשורה על-פי מתי 1:1").osis()).toEqual("Matt.1.1", "parsing: 'הבשורה על-פי מתי 1:1'")
|
|
1380
|
+
expect(p.parse("הבשורה לפי מתי 1:1").osis()).toEqual("Matt.1.1", "parsing: 'הבשורה לפי מתי 1:1'")
|
|
1381
|
+
expect(p.parse("Matt 1:1").osis()).toEqual("Matt.1.1", "parsing: 'Matt 1:1'")
|
|
1382
|
+
expect(p.parse("מתי 1:1").osis()).toEqual("Matt.1.1", "parsing: 'מתי 1:1'")
|
|
1383
|
+
p.include_apocrypha(false)
|
|
1384
|
+
expect(p.parse("הבשורה הקדושה על-פי מתי 1:1").osis()).toEqual("Matt.1.1", "parsing: 'הבשורה הקדושה על-פי מתי 1:1'")
|
|
1385
|
+
expect(p.parse("הבשורה על פי מתי 1:1").osis()).toEqual("Matt.1.1", "parsing: 'הבשורה על פי מתי 1:1'")
|
|
1386
|
+
expect(p.parse("הבשורה על-פי מתי 1:1").osis()).toEqual("Matt.1.1", "parsing: 'הבשורה על-פי מתי 1:1'")
|
|
1387
|
+
expect(p.parse("הבשורה לפי מתי 1:1").osis()).toEqual("Matt.1.1", "parsing: 'הבשורה לפי מתי 1:1'")
|
|
1388
|
+
expect(p.parse("MATT 1:1").osis()).toEqual("Matt.1.1", "parsing: 'MATT 1:1'")
|
|
1389
|
+
expect(p.parse("מתי 1:1").osis()).toEqual("Matt.1.1", "parsing: 'מתי 1:1'")
|
|
1390
|
+
;
|
|
1391
|
+
return true;
|
|
1392
|
+
});
|
|
1393
|
+
});
|
|
1394
|
+
|
|
1395
|
+
describe("Localized book Mark (he)", function() {
|
|
1396
|
+
var p;
|
|
1397
|
+
p = {};
|
|
1398
|
+
beforeEach(function() {
|
|
1399
|
+
p = new bcv_parser();
|
|
1400
|
+
p.set_options({
|
|
1401
|
+
book_alone_strategy: "ignore",
|
|
1402
|
+
book_sequence_strategy: "ignore",
|
|
1403
|
+
osis_compaction_strategy: "bc",
|
|
1404
|
+
captive_end_digits_strategy: "delete"
|
|
1405
|
+
});
|
|
1406
|
+
return p.include_apocrypha(true);
|
|
1407
|
+
});
|
|
1408
|
+
return it("should handle book: Mark (he)", function() {
|
|
1409
|
+
|
|
1410
|
+
expect(p.parse("הבשורה על פי מרקוס 1:1").osis()).toEqual("Mark.1.1", "parsing: 'הבשורה על פי מרקוס 1:1'")
|
|
1411
|
+
expect(p.parse("הבשורה על-פי מרקוס 1:1").osis()).toEqual("Mark.1.1", "parsing: 'הבשורה על-פי מרקוס 1:1'")
|
|
1412
|
+
expect(p.parse("מרקוס 1:1").osis()).toEqual("Mark.1.1", "parsing: 'מרקוס 1:1'")
|
|
1413
|
+
expect(p.parse("Mark 1:1").osis()).toEqual("Mark.1.1", "parsing: 'Mark 1:1'")
|
|
1414
|
+
p.include_apocrypha(false)
|
|
1415
|
+
expect(p.parse("הבשורה על פי מרקוס 1:1").osis()).toEqual("Mark.1.1", "parsing: 'הבשורה על פי מרקוס 1:1'")
|
|
1416
|
+
expect(p.parse("הבשורה על-פי מרקוס 1:1").osis()).toEqual("Mark.1.1", "parsing: 'הבשורה על-פי מרקוס 1:1'")
|
|
1417
|
+
expect(p.parse("מרקוס 1:1").osis()).toEqual("Mark.1.1", "parsing: 'מרקוס 1:1'")
|
|
1418
|
+
expect(p.parse("MARK 1:1").osis()).toEqual("Mark.1.1", "parsing: 'MARK 1:1'")
|
|
1419
|
+
;
|
|
1420
|
+
return true;
|
|
1421
|
+
});
|
|
1422
|
+
});
|
|
1423
|
+
|
|
1424
|
+
describe("Localized book Luke (he)", function() {
|
|
1425
|
+
var p;
|
|
1426
|
+
p = {};
|
|
1427
|
+
beforeEach(function() {
|
|
1428
|
+
p = new bcv_parser();
|
|
1429
|
+
p.set_options({
|
|
1430
|
+
book_alone_strategy: "ignore",
|
|
1431
|
+
book_sequence_strategy: "ignore",
|
|
1432
|
+
osis_compaction_strategy: "bc",
|
|
1433
|
+
captive_end_digits_strategy: "delete"
|
|
1434
|
+
});
|
|
1435
|
+
return p.include_apocrypha(true);
|
|
1436
|
+
});
|
|
1437
|
+
return it("should handle book: Luke (he)", function() {
|
|
1438
|
+
|
|
1439
|
+
expect(p.parse("הבשורה על-פי לוקאס 1:1").osis()).toEqual("Luke.1.1", "parsing: 'הבשורה על-פי לוקאס 1:1'")
|
|
1440
|
+
expect(p.parse("הבשורה על פי לוקס 1:1").osis()).toEqual("Luke.1.1", "parsing: 'הבשורה על פי לוקס 1:1'")
|
|
1441
|
+
expect(p.parse("הבשורה על-פי לוקס 1:1").osis()).toEqual("Luke.1.1", "parsing: 'הבשורה על-פי לוקס 1:1'")
|
|
1442
|
+
expect(p.parse("Luke 1:1").osis()).toEqual("Luke.1.1", "parsing: 'Luke 1:1'")
|
|
1443
|
+
expect(p.parse("לוקס 1:1").osis()).toEqual("Luke.1.1", "parsing: 'לוקס 1:1'")
|
|
1444
|
+
p.include_apocrypha(false)
|
|
1445
|
+
expect(p.parse("הבשורה על-פי לוקאס 1:1").osis()).toEqual("Luke.1.1", "parsing: 'הבשורה על-פי לוקאס 1:1'")
|
|
1446
|
+
expect(p.parse("הבשורה על פי לוקס 1:1").osis()).toEqual("Luke.1.1", "parsing: 'הבשורה על פי לוקס 1:1'")
|
|
1447
|
+
expect(p.parse("הבשורה על-פי לוקס 1:1").osis()).toEqual("Luke.1.1", "parsing: 'הבשורה על-פי לוקס 1:1'")
|
|
1448
|
+
expect(p.parse("LUKE 1:1").osis()).toEqual("Luke.1.1", "parsing: 'LUKE 1:1'")
|
|
1449
|
+
expect(p.parse("לוקס 1:1").osis()).toEqual("Luke.1.1", "parsing: 'לוקס 1:1'")
|
|
1450
|
+
;
|
|
1451
|
+
return true;
|
|
1452
|
+
});
|
|
1453
|
+
});
|
|
1454
|
+
|
|
1455
|
+
describe("Localized book 1John (he)", function() {
|
|
1456
|
+
var p;
|
|
1457
|
+
p = {};
|
|
1458
|
+
beforeEach(function() {
|
|
1459
|
+
p = new bcv_parser();
|
|
1460
|
+
p.set_options({
|
|
1461
|
+
book_alone_strategy: "ignore",
|
|
1462
|
+
book_sequence_strategy: "ignore",
|
|
1463
|
+
osis_compaction_strategy: "bc",
|
|
1464
|
+
captive_end_digits_strategy: "delete"
|
|
1465
|
+
});
|
|
1466
|
+
return p.include_apocrypha(true);
|
|
1467
|
+
});
|
|
1468
|
+
return it("should handle book: 1John (he)", function() {
|
|
1469
|
+
|
|
1470
|
+
expect(p.parse("אגרתו הראשונה של יוחנן השליח 1:1").osis()).toEqual("1John.1.1", "parsing: 'אגרתו הראשונה של יוחנן השליח 1:1'")
|
|
1471
|
+
expect(p.parse("אגרתו הראשונה של יוחנן השלי 1:1").osis()).toEqual("1John.1.1", "parsing: 'אגרתו הראשונה של יוחנן השלי 1:1'")
|
|
1472
|
+
expect(p.parse("איגרת יוחנן הראשונה 1:1").osis()).toEqual("1John.1.1", "parsing: 'איגרת יוחנן הראשונה 1:1'")
|
|
1473
|
+
expect(p.parse("הראשונה יוחנן 1:1").osis()).toEqual("1John.1.1", "parsing: 'הראשונה יוחנן 1:1'")
|
|
1474
|
+
expect(p.parse("1John 1:1").osis()).toEqual("1John.1.1", "parsing: '1John 1:1'")
|
|
1475
|
+
p.include_apocrypha(false)
|
|
1476
|
+
expect(p.parse("אגרתו הראשונה של יוחנן השליח 1:1").osis()).toEqual("1John.1.1", "parsing: 'אגרתו הראשונה של יוחנן השליח 1:1'")
|
|
1477
|
+
expect(p.parse("אגרתו הראשונה של יוחנן השלי 1:1").osis()).toEqual("1John.1.1", "parsing: 'אגרתו הראשונה של יוחנן השלי 1:1'")
|
|
1478
|
+
expect(p.parse("איגרת יוחנן הראשונה 1:1").osis()).toEqual("1John.1.1", "parsing: 'איגרת יוחנן הראשונה 1:1'")
|
|
1479
|
+
expect(p.parse("הראשונה יוחנן 1:1").osis()).toEqual("1John.1.1", "parsing: 'הראשונה יוחנן 1:1'")
|
|
1480
|
+
expect(p.parse("1JOHN 1:1").osis()).toEqual("1John.1.1", "parsing: '1JOHN 1:1'")
|
|
1481
|
+
;
|
|
1482
|
+
return true;
|
|
1483
|
+
});
|
|
1484
|
+
});
|
|
1485
|
+
|
|
1486
|
+
describe("Localized book 2John (he)", function() {
|
|
1487
|
+
var p;
|
|
1488
|
+
p = {};
|
|
1489
|
+
beforeEach(function() {
|
|
1490
|
+
p = new bcv_parser();
|
|
1491
|
+
p.set_options({
|
|
1492
|
+
book_alone_strategy: "ignore",
|
|
1493
|
+
book_sequence_strategy: "ignore",
|
|
1494
|
+
osis_compaction_strategy: "bc",
|
|
1495
|
+
captive_end_digits_strategy: "delete"
|
|
1496
|
+
});
|
|
1497
|
+
return p.include_apocrypha(true);
|
|
1498
|
+
});
|
|
1499
|
+
return it("should handle book: 2John (he)", function() {
|
|
1500
|
+
|
|
1501
|
+
expect(p.parse("אגרתו השנייה של יוחנן השליח 1:1").osis()).toEqual("2John.1.1", "parsing: 'אגרתו השנייה של יוחנן השליח 1:1'")
|
|
1502
|
+
expect(p.parse("איגרת יוחנן השנייה 1:1").osis()).toEqual("2John.1.1", "parsing: 'איגרת יוחנן השנייה 1:1'")
|
|
1503
|
+
expect(p.parse("השנייה יוחנן 1:1").osis()).toEqual("2John.1.1", "parsing: 'השנייה יוחנן 1:1'")
|
|
1504
|
+
expect(p.parse("2John 1:1").osis()).toEqual("2John.1.1", "parsing: '2John 1:1'")
|
|
1505
|
+
p.include_apocrypha(false)
|
|
1506
|
+
expect(p.parse("אגרתו השנייה של יוחנן השליח 1:1").osis()).toEqual("2John.1.1", "parsing: 'אגרתו השנייה של יוחנן השליח 1:1'")
|
|
1507
|
+
expect(p.parse("איגרת יוחנן השנייה 1:1").osis()).toEqual("2John.1.1", "parsing: 'איגרת יוחנן השנייה 1:1'")
|
|
1508
|
+
expect(p.parse("השנייה יוחנן 1:1").osis()).toEqual("2John.1.1", "parsing: 'השנייה יוחנן 1:1'")
|
|
1509
|
+
expect(p.parse("2JOHN 1:1").osis()).toEqual("2John.1.1", "parsing: '2JOHN 1:1'")
|
|
1510
|
+
;
|
|
1511
|
+
return true;
|
|
1512
|
+
});
|
|
1513
|
+
});
|
|
1514
|
+
|
|
1515
|
+
describe("Localized book 3John (he)", function() {
|
|
1516
|
+
var p;
|
|
1517
|
+
p = {};
|
|
1518
|
+
beforeEach(function() {
|
|
1519
|
+
p = new bcv_parser();
|
|
1520
|
+
p.set_options({
|
|
1521
|
+
book_alone_strategy: "ignore",
|
|
1522
|
+
book_sequence_strategy: "ignore",
|
|
1523
|
+
osis_compaction_strategy: "bc",
|
|
1524
|
+
captive_end_digits_strategy: "delete"
|
|
1525
|
+
});
|
|
1526
|
+
return p.include_apocrypha(true);
|
|
1527
|
+
});
|
|
1528
|
+
return it("should handle book: 3John (he)", function() {
|
|
1529
|
+
|
|
1530
|
+
expect(p.parse("אגרתו השלישית של יוחנן השליח 1:1").osis()).toEqual("3John.1.1", "parsing: 'אגרתו השלישית של יוחנן השליח 1:1'")
|
|
1531
|
+
expect(p.parse("אגרתו השלישית של יוחנן השלי 1:1").osis()).toEqual("3John.1.1", "parsing: 'אגרתו השלישית של יוחנן השלי 1:1'")
|
|
1532
|
+
expect(p.parse("איגרת יוחנן השלישית 1:1").osis()).toEqual("3John.1.1", "parsing: 'איגרת יוחנן השלישית 1:1'")
|
|
1533
|
+
expect(p.parse("השלישית יוחנן 1:1").osis()).toEqual("3John.1.1", "parsing: 'השלישית יוחנן 1:1'")
|
|
1534
|
+
expect(p.parse("3John 1:1").osis()).toEqual("3John.1.1", "parsing: '3John 1:1'")
|
|
1535
|
+
p.include_apocrypha(false)
|
|
1536
|
+
expect(p.parse("אגרתו השלישית של יוחנן השליח 1:1").osis()).toEqual("3John.1.1", "parsing: 'אגרתו השלישית של יוחנן השליח 1:1'")
|
|
1537
|
+
expect(p.parse("אגרתו השלישית של יוחנן השלי 1:1").osis()).toEqual("3John.1.1", "parsing: 'אגרתו השלישית של יוחנן השלי 1:1'")
|
|
1538
|
+
expect(p.parse("איגרת יוחנן השלישית 1:1").osis()).toEqual("3John.1.1", "parsing: 'איגרת יוחנן השלישית 1:1'")
|
|
1539
|
+
expect(p.parse("השלישית יוחנן 1:1").osis()).toEqual("3John.1.1", "parsing: 'השלישית יוחנן 1:1'")
|
|
1540
|
+
expect(p.parse("3JOHN 1:1").osis()).toEqual("3John.1.1", "parsing: '3JOHN 1:1'")
|
|
1541
|
+
;
|
|
1542
|
+
return true;
|
|
1543
|
+
});
|
|
1544
|
+
});
|
|
1545
|
+
|
|
1546
|
+
describe("Localized book John (he)", function() {
|
|
1547
|
+
var p;
|
|
1548
|
+
p = {};
|
|
1549
|
+
beforeEach(function() {
|
|
1550
|
+
p = new bcv_parser();
|
|
1551
|
+
p.set_options({
|
|
1552
|
+
book_alone_strategy: "ignore",
|
|
1553
|
+
book_sequence_strategy: "ignore",
|
|
1554
|
+
osis_compaction_strategy: "bc",
|
|
1555
|
+
captive_end_digits_strategy: "delete"
|
|
1556
|
+
});
|
|
1557
|
+
return p.include_apocrypha(true);
|
|
1558
|
+
});
|
|
1559
|
+
return it("should handle book: John (he)", function() {
|
|
1560
|
+
|
|
1561
|
+
expect(p.parse("הבשורה על פי יוחנן 1:1").osis()).toEqual("John.1.1", "parsing: 'הבשורה על פי יוחנן 1:1'")
|
|
1562
|
+
expect(p.parse("הבשורה על-פי יוחנן 1:1").osis()).toEqual("John.1.1", "parsing: 'הבשורה על-פי יוחנן 1:1'")
|
|
1563
|
+
expect(p.parse("יוחנן 1:1").osis()).toEqual("John.1.1", "parsing: 'יוחנן 1:1'")
|
|
1564
|
+
expect(p.parse("John 1:1").osis()).toEqual("John.1.1", "parsing: 'John 1:1'")
|
|
1565
|
+
p.include_apocrypha(false)
|
|
1566
|
+
expect(p.parse("הבשורה על פי יוחנן 1:1").osis()).toEqual("John.1.1", "parsing: 'הבשורה על פי יוחנן 1:1'")
|
|
1567
|
+
expect(p.parse("הבשורה על-פי יוחנן 1:1").osis()).toEqual("John.1.1", "parsing: 'הבשורה על-פי יוחנן 1:1'")
|
|
1568
|
+
expect(p.parse("יוחנן 1:1").osis()).toEqual("John.1.1", "parsing: 'יוחנן 1:1'")
|
|
1569
|
+
expect(p.parse("JOHN 1:1").osis()).toEqual("John.1.1", "parsing: 'JOHN 1:1'")
|
|
1570
|
+
;
|
|
1571
|
+
return true;
|
|
1572
|
+
});
|
|
1573
|
+
});
|
|
1574
|
+
|
|
1575
|
+
describe("Localized book Acts (he)", function() {
|
|
1576
|
+
var p;
|
|
1577
|
+
p = {};
|
|
1578
|
+
beforeEach(function() {
|
|
1579
|
+
p = new bcv_parser();
|
|
1580
|
+
p.set_options({
|
|
1581
|
+
book_alone_strategy: "ignore",
|
|
1582
|
+
book_sequence_strategy: "ignore",
|
|
1583
|
+
osis_compaction_strategy: "bc",
|
|
1584
|
+
captive_end_digits_strategy: "delete"
|
|
1585
|
+
});
|
|
1586
|
+
return p.include_apocrypha(true);
|
|
1587
|
+
});
|
|
1588
|
+
return it("should handle book: Acts (he)", function() {
|
|
1589
|
+
|
|
1590
|
+
expect(p.parse("מעשי השליחים 1:1").osis()).toEqual("Acts.1.1", "parsing: 'מעשי השליחים 1:1'")
|
|
1591
|
+
expect(p.parse("Acts 1:1").osis()).toEqual("Acts.1.1", "parsing: 'Acts 1:1'")
|
|
1592
|
+
p.include_apocrypha(false)
|
|
1593
|
+
expect(p.parse("מעשי השליחים 1:1").osis()).toEqual("Acts.1.1", "parsing: 'מעשי השליחים 1:1'")
|
|
1594
|
+
expect(p.parse("ACTS 1:1").osis()).toEqual("Acts.1.1", "parsing: 'ACTS 1:1'")
|
|
1595
|
+
;
|
|
1596
|
+
return true;
|
|
1597
|
+
});
|
|
1598
|
+
});
|
|
1599
|
+
|
|
1600
|
+
describe("Localized book Rom (he)", function() {
|
|
1601
|
+
var p;
|
|
1602
|
+
p = {};
|
|
1603
|
+
beforeEach(function() {
|
|
1604
|
+
p = new bcv_parser();
|
|
1605
|
+
p.set_options({
|
|
1606
|
+
book_alone_strategy: "ignore",
|
|
1607
|
+
book_sequence_strategy: "ignore",
|
|
1608
|
+
osis_compaction_strategy: "bc",
|
|
1609
|
+
captive_end_digits_strategy: "delete"
|
|
1610
|
+
});
|
|
1611
|
+
return p.include_apocrypha(true);
|
|
1612
|
+
});
|
|
1613
|
+
return it("should handle book: Rom (he)", function() {
|
|
1614
|
+
|
|
1615
|
+
expect(p.parse("אגרת פולוס השליח אל-הרומיים 1:1").osis()).toEqual("Rom.1.1", "parsing: 'אגרת פולוס השליח אל-הרומיים 1:1'")
|
|
1616
|
+
expect(p.parse("האיגרת אל הרומאים 1:1").osis()).toEqual("Rom.1.1", "parsing: 'האיגרת אל הרומאים 1:1'")
|
|
1617
|
+
expect(p.parse("אל הרומאים 1:1").osis()).toEqual("Rom.1.1", "parsing: 'אל הרומאים 1:1'")
|
|
1618
|
+
expect(p.parse("אל הרומיים 1:1").osis()).toEqual("Rom.1.1", "parsing: 'אל הרומיים 1:1'")
|
|
1619
|
+
expect(p.parse("אל הרומים 1:1").osis()).toEqual("Rom.1.1", "parsing: 'אל הרומים 1:1'")
|
|
1620
|
+
expect(p.parse("Rom 1:1").osis()).toEqual("Rom.1.1", "parsing: 'Rom 1:1'")
|
|
1621
|
+
p.include_apocrypha(false)
|
|
1622
|
+
expect(p.parse("אגרת פולוס השליח אל-הרומיים 1:1").osis()).toEqual("Rom.1.1", "parsing: 'אגרת פולוס השליח אל-הרומיים 1:1'")
|
|
1623
|
+
expect(p.parse("האיגרת אל הרומאים 1:1").osis()).toEqual("Rom.1.1", "parsing: 'האיגרת אל הרומאים 1:1'")
|
|
1624
|
+
expect(p.parse("אל הרומאים 1:1").osis()).toEqual("Rom.1.1", "parsing: 'אל הרומאים 1:1'")
|
|
1625
|
+
expect(p.parse("אל הרומיים 1:1").osis()).toEqual("Rom.1.1", "parsing: 'אל הרומיים 1:1'")
|
|
1626
|
+
expect(p.parse("אל הרומים 1:1").osis()).toEqual("Rom.1.1", "parsing: 'אל הרומים 1:1'")
|
|
1627
|
+
expect(p.parse("ROM 1:1").osis()).toEqual("Rom.1.1", "parsing: 'ROM 1:1'")
|
|
1628
|
+
;
|
|
1629
|
+
return true;
|
|
1630
|
+
});
|
|
1631
|
+
});
|
|
1632
|
+
|
|
1633
|
+
describe("Localized book 2Cor (he)", function() {
|
|
1634
|
+
var p;
|
|
1635
|
+
p = {};
|
|
1636
|
+
beforeEach(function() {
|
|
1637
|
+
p = new bcv_parser();
|
|
1638
|
+
p.set_options({
|
|
1639
|
+
book_alone_strategy: "ignore",
|
|
1640
|
+
book_sequence_strategy: "ignore",
|
|
1641
|
+
osis_compaction_strategy: "bc",
|
|
1642
|
+
captive_end_digits_strategy: "delete"
|
|
1643
|
+
});
|
|
1644
|
+
return p.include_apocrypha(true);
|
|
1645
|
+
});
|
|
1646
|
+
return it("should handle book: 2Cor (he)", function() {
|
|
1647
|
+
|
|
1648
|
+
expect(p.parse("אגרת פולוס השנייה אל-הקורנתים 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'אגרת פולוס השנייה אל-הקורנתים 1:1'")
|
|
1649
|
+
expect(p.parse("אגרת פולוס השנייה אל-הקורינ 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'אגרת פולוס השנייה אל-הקורינ 1:1'")
|
|
1650
|
+
expect(p.parse("האיגרת השנייה אל הקורינתים 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'האיגרת השנייה אל הקורינתים 1:1'")
|
|
1651
|
+
expect(p.parse("השנייה אל הקורינתים 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'השנייה אל הקורינתים 1:1'")
|
|
1652
|
+
expect(p.parse("השנייה אל הקורנתים 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'השנייה אל הקורנתים 1:1'")
|
|
1653
|
+
expect(p.parse("2Cor 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2Cor 1:1'")
|
|
1654
|
+
p.include_apocrypha(false)
|
|
1655
|
+
expect(p.parse("אגרת פולוס השנייה אל-הקורנתים 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'אגרת פולוס השנייה אל-הקורנתים 1:1'")
|
|
1656
|
+
expect(p.parse("אגרת פולוס השנייה אל-הקורינ 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'אגרת פולוס השנייה אל-הקורינ 1:1'")
|
|
1657
|
+
expect(p.parse("האיגרת השנייה אל הקורינתים 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'האיגרת השנייה אל הקורינתים 1:1'")
|
|
1658
|
+
expect(p.parse("השנייה אל הקורינתים 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'השנייה אל הקורינתים 1:1'")
|
|
1659
|
+
expect(p.parse("השנייה אל הקורנתים 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'השנייה אל הקורנתים 1:1'")
|
|
1660
|
+
expect(p.parse("2COR 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2COR 1:1'")
|
|
1661
|
+
;
|
|
1662
|
+
return true;
|
|
1663
|
+
});
|
|
1664
|
+
});
|
|
1665
|
+
|
|
1666
|
+
describe("Localized book 1Cor (he)", function() {
|
|
1667
|
+
var p;
|
|
1668
|
+
p = {};
|
|
1669
|
+
beforeEach(function() {
|
|
1670
|
+
p = new bcv_parser();
|
|
1671
|
+
p.set_options({
|
|
1672
|
+
book_alone_strategy: "ignore",
|
|
1673
|
+
book_sequence_strategy: "ignore",
|
|
1674
|
+
osis_compaction_strategy: "bc",
|
|
1675
|
+
captive_end_digits_strategy: "delete"
|
|
1676
|
+
});
|
|
1677
|
+
return p.include_apocrypha(true);
|
|
1678
|
+
});
|
|
1679
|
+
return it("should handle book: 1Cor (he)", function() {
|
|
1680
|
+
|
|
1681
|
+
expect(p.parse("אגרת פולוס הראשונה אל-הקורנתים 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'אגרת פולוס הראשונה אל-הקורנתים 1:1'")
|
|
1682
|
+
expect(p.parse("אגרת פולוס הראשונה אל-הקורי 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'אגרת פולוס הראשונה אל-הקורי 1:1'")
|
|
1683
|
+
expect(p.parse("האיגרת הראשונה אל הקורינתים 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'האיגרת הראשונה אל הקורינתים 1:1'")
|
|
1684
|
+
expect(p.parse("הראשונה אל הקורינתים 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'הראשונה אל הקורינתים 1:1'")
|
|
1685
|
+
expect(p.parse("הראשונה אל הקורנתים 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'הראשונה אל הקורנתים 1:1'")
|
|
1686
|
+
expect(p.parse("1Cor 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1Cor 1:1'")
|
|
1687
|
+
p.include_apocrypha(false)
|
|
1688
|
+
expect(p.parse("אגרת פולוס הראשונה אל-הקורנתים 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'אגרת פולוס הראשונה אל-הקורנתים 1:1'")
|
|
1689
|
+
expect(p.parse("אגרת פולוס הראשונה אל-הקורי 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'אגרת פולוס הראשונה אל-הקורי 1:1'")
|
|
1690
|
+
expect(p.parse("האיגרת הראשונה אל הקורינתים 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'האיגרת הראשונה אל הקורינתים 1:1'")
|
|
1691
|
+
expect(p.parse("הראשונה אל הקורינתים 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'הראשונה אל הקורינתים 1:1'")
|
|
1692
|
+
expect(p.parse("הראשונה אל הקורנתים 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'הראשונה אל הקורנתים 1:1'")
|
|
1693
|
+
expect(p.parse("1COR 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1COR 1:1'")
|
|
1694
|
+
;
|
|
1695
|
+
return true;
|
|
1696
|
+
});
|
|
1697
|
+
});
|
|
1698
|
+
|
|
1699
|
+
describe("Localized book Gal (he)", function() {
|
|
1700
|
+
var p;
|
|
1701
|
+
p = {};
|
|
1702
|
+
beforeEach(function() {
|
|
1703
|
+
p = new bcv_parser();
|
|
1704
|
+
p.set_options({
|
|
1705
|
+
book_alone_strategy: "ignore",
|
|
1706
|
+
book_sequence_strategy: "ignore",
|
|
1707
|
+
osis_compaction_strategy: "bc",
|
|
1708
|
+
captive_end_digits_strategy: "delete"
|
|
1709
|
+
});
|
|
1710
|
+
return p.include_apocrypha(true);
|
|
1711
|
+
});
|
|
1712
|
+
return it("should handle book: Gal (he)", function() {
|
|
1713
|
+
|
|
1714
|
+
expect(p.parse("אגרת פולוס השליח אל-הגלטים 1:1").osis()).toEqual("Gal.1.1", "parsing: 'אגרת פולוס השליח אל-הגלטים 1:1'")
|
|
1715
|
+
expect(p.parse("האיגרת אל הגלטים 1:1").osis()).toEqual("Gal.1.1", "parsing: 'האיגרת אל הגלטים 1:1'")
|
|
1716
|
+
expect(p.parse("אל הגלטים 1:1").osis()).toEqual("Gal.1.1", "parsing: 'אל הגלטים 1:1'")
|
|
1717
|
+
expect(p.parse("Gal 1:1").osis()).toEqual("Gal.1.1", "parsing: 'Gal 1:1'")
|
|
1718
|
+
p.include_apocrypha(false)
|
|
1719
|
+
expect(p.parse("אגרת פולוס השליח אל-הגלטים 1:1").osis()).toEqual("Gal.1.1", "parsing: 'אגרת פולוס השליח אל-הגלטים 1:1'")
|
|
1720
|
+
expect(p.parse("האיגרת אל הגלטים 1:1").osis()).toEqual("Gal.1.1", "parsing: 'האיגרת אל הגלטים 1:1'")
|
|
1721
|
+
expect(p.parse("אל הגלטים 1:1").osis()).toEqual("Gal.1.1", "parsing: 'אל הגלטים 1:1'")
|
|
1722
|
+
expect(p.parse("GAL 1:1").osis()).toEqual("Gal.1.1", "parsing: 'GAL 1:1'")
|
|
1723
|
+
;
|
|
1724
|
+
return true;
|
|
1725
|
+
});
|
|
1726
|
+
});
|
|
1727
|
+
|
|
1728
|
+
describe("Localized book Eph (he)", function() {
|
|
1729
|
+
var p;
|
|
1730
|
+
p = {};
|
|
1731
|
+
beforeEach(function() {
|
|
1732
|
+
p = new bcv_parser();
|
|
1733
|
+
p.set_options({
|
|
1734
|
+
book_alone_strategy: "ignore",
|
|
1735
|
+
book_sequence_strategy: "ignore",
|
|
1736
|
+
osis_compaction_strategy: "bc",
|
|
1737
|
+
captive_end_digits_strategy: "delete"
|
|
1738
|
+
});
|
|
1739
|
+
return p.include_apocrypha(true);
|
|
1740
|
+
});
|
|
1741
|
+
return it("should handle book: Eph (he)", function() {
|
|
1742
|
+
|
|
1743
|
+
expect(p.parse("אגרת פולוס השליח אל האפסיים 1:1").osis()).toEqual("Eph.1.1", "parsing: 'אגרת פולוס השליח אל האפסיים 1:1'")
|
|
1744
|
+
expect(p.parse("אגרת פולוס השליח אל-האפסים 1:1").osis()).toEqual("Eph.1.1", "parsing: 'אגרת פולוס השליח אל-האפסים 1:1'")
|
|
1745
|
+
expect(p.parse("האיגרת אל האפסים 1:1").osis()).toEqual("Eph.1.1", "parsing: 'האיגרת אל האפסים 1:1'")
|
|
1746
|
+
expect(p.parse("השליח אל האפסיים 1:1").osis()).toEqual("Eph.1.1", "parsing: 'השליח אל האפסיים 1:1'")
|
|
1747
|
+
expect(p.parse("אל האפסים 1:1").osis()).toEqual("Eph.1.1", "parsing: 'אל האפסים 1:1'")
|
|
1748
|
+
expect(p.parse("Eph 1:1").osis()).toEqual("Eph.1.1", "parsing: 'Eph 1:1'")
|
|
1749
|
+
p.include_apocrypha(false)
|
|
1750
|
+
expect(p.parse("אגרת פולוס השליח אל האפסיים 1:1").osis()).toEqual("Eph.1.1", "parsing: 'אגרת פולוס השליח אל האפסיים 1:1'")
|
|
1751
|
+
expect(p.parse("אגרת פולוס השליח אל-האפסים 1:1").osis()).toEqual("Eph.1.1", "parsing: 'אגרת פולוס השליח אל-האפסים 1:1'")
|
|
1752
|
+
expect(p.parse("האיגרת אל האפסים 1:1").osis()).toEqual("Eph.1.1", "parsing: 'האיגרת אל האפסים 1:1'")
|
|
1753
|
+
expect(p.parse("השליח אל האפסיים 1:1").osis()).toEqual("Eph.1.1", "parsing: 'השליח אל האפסיים 1:1'")
|
|
1754
|
+
expect(p.parse("אל האפסים 1:1").osis()).toEqual("Eph.1.1", "parsing: 'אל האפסים 1:1'")
|
|
1755
|
+
expect(p.parse("EPH 1:1").osis()).toEqual("Eph.1.1", "parsing: 'EPH 1:1'")
|
|
1756
|
+
;
|
|
1757
|
+
return true;
|
|
1758
|
+
});
|
|
1759
|
+
});
|
|
1760
|
+
|
|
1761
|
+
describe("Localized book Phil (he)", function() {
|
|
1762
|
+
var p;
|
|
1763
|
+
p = {};
|
|
1764
|
+
beforeEach(function() {
|
|
1765
|
+
p = new bcv_parser();
|
|
1766
|
+
p.set_options({
|
|
1767
|
+
book_alone_strategy: "ignore",
|
|
1768
|
+
book_sequence_strategy: "ignore",
|
|
1769
|
+
osis_compaction_strategy: "bc",
|
|
1770
|
+
captive_end_digits_strategy: "delete"
|
|
1771
|
+
});
|
|
1772
|
+
return p.include_apocrypha(true);
|
|
1773
|
+
});
|
|
1774
|
+
return it("should handle book: Phil (he)", function() {
|
|
1775
|
+
|
|
1776
|
+
expect(p.parse("אגרת פולוס השליח אל-הפיליפיים 1:1").osis()).toEqual("Phil.1.1", "parsing: 'אגרת פולוס השליח אל-הפיליפיים 1:1'")
|
|
1777
|
+
expect(p.parse("אגרת פולוס השליח אל-הפיליפי 1:1").osis()).toEqual("Phil.1.1", "parsing: 'אגרת פולוס השליח אל-הפיליפי 1:1'")
|
|
1778
|
+
expect(p.parse("האיגרת אל הפיליפים 1:1").osis()).toEqual("Phil.1.1", "parsing: 'האיגרת אל הפיליפים 1:1'")
|
|
1779
|
+
expect(p.parse("אל הפיליפיים 1:1").osis()).toEqual("Phil.1.1", "parsing: 'אל הפיליפיים 1:1'")
|
|
1780
|
+
expect(p.parse("אל הפיליפים 1:1").osis()).toEqual("Phil.1.1", "parsing: 'אל הפיליפים 1:1'")
|
|
1781
|
+
expect(p.parse("Phil 1:1").osis()).toEqual("Phil.1.1", "parsing: 'Phil 1:1'")
|
|
1782
|
+
p.include_apocrypha(false)
|
|
1783
|
+
expect(p.parse("אגרת פולוס השליח אל-הפיליפיים 1:1").osis()).toEqual("Phil.1.1", "parsing: 'אגרת פולוס השליח אל-הפיליפיים 1:1'")
|
|
1784
|
+
expect(p.parse("אגרת פולוס השליח אל-הפיליפי 1:1").osis()).toEqual("Phil.1.1", "parsing: 'אגרת פולוס השליח אל-הפיליפי 1:1'")
|
|
1785
|
+
expect(p.parse("האיגרת אל הפיליפים 1:1").osis()).toEqual("Phil.1.1", "parsing: 'האיגרת אל הפיליפים 1:1'")
|
|
1786
|
+
expect(p.parse("אל הפיליפיים 1:1").osis()).toEqual("Phil.1.1", "parsing: 'אל הפיליפיים 1:1'")
|
|
1787
|
+
expect(p.parse("אל הפיליפים 1:1").osis()).toEqual("Phil.1.1", "parsing: 'אל הפיליפים 1:1'")
|
|
1788
|
+
expect(p.parse("PHIL 1:1").osis()).toEqual("Phil.1.1", "parsing: 'PHIL 1:1'")
|
|
1789
|
+
;
|
|
1790
|
+
return true;
|
|
1791
|
+
});
|
|
1792
|
+
});
|
|
1793
|
+
|
|
1794
|
+
describe("Localized book Col (he)", function() {
|
|
1795
|
+
var p;
|
|
1796
|
+
p = {};
|
|
1797
|
+
beforeEach(function() {
|
|
1798
|
+
p = new bcv_parser();
|
|
1799
|
+
p.set_options({
|
|
1800
|
+
book_alone_strategy: "ignore",
|
|
1801
|
+
book_sequence_strategy: "ignore",
|
|
1802
|
+
osis_compaction_strategy: "bc",
|
|
1803
|
+
captive_end_digits_strategy: "delete"
|
|
1804
|
+
});
|
|
1805
|
+
return p.include_apocrypha(true);
|
|
1806
|
+
});
|
|
1807
|
+
return it("should handle book: Col (he)", function() {
|
|
1808
|
+
|
|
1809
|
+
expect(p.parse("אגרת פולוס השליח אל-הקולוסים 1:1").osis()).toEqual("Col.1.1", "parsing: 'אגרת פולוס השליח אל-הקולוסים 1:1'")
|
|
1810
|
+
expect(p.parse("אגרת פולוס השליח אל-הקולוסי 1:1").osis()).toEqual("Col.1.1", "parsing: 'אגרת פולוס השליח אל-הקולוסי 1:1'")
|
|
1811
|
+
expect(p.parse("האיגרת אל הקולוסים 1:1").osis()).toEqual("Col.1.1", "parsing: 'האיגרת אל הקולוסים 1:1'")
|
|
1812
|
+
expect(p.parse("אל הקולוסים 1:1").osis()).toEqual("Col.1.1", "parsing: 'אל הקולוסים 1:1'")
|
|
1813
|
+
expect(p.parse("Col 1:1").osis()).toEqual("Col.1.1", "parsing: 'Col 1:1'")
|
|
1814
|
+
p.include_apocrypha(false)
|
|
1815
|
+
expect(p.parse("אגרת פולוס השליח אל-הקולוסים 1:1").osis()).toEqual("Col.1.1", "parsing: 'אגרת פולוס השליח אל-הקולוסים 1:1'")
|
|
1816
|
+
expect(p.parse("אגרת פולוס השליח אל-הקולוסי 1:1").osis()).toEqual("Col.1.1", "parsing: 'אגרת פולוס השליח אל-הקולוסי 1:1'")
|
|
1817
|
+
expect(p.parse("האיגרת אל הקולוסים 1:1").osis()).toEqual("Col.1.1", "parsing: 'האיגרת אל הקולוסים 1:1'")
|
|
1818
|
+
expect(p.parse("אל הקולוסים 1:1").osis()).toEqual("Col.1.1", "parsing: 'אל הקולוסים 1:1'")
|
|
1819
|
+
expect(p.parse("COL 1:1").osis()).toEqual("Col.1.1", "parsing: 'COL 1:1'")
|
|
1820
|
+
;
|
|
1821
|
+
return true;
|
|
1822
|
+
});
|
|
1823
|
+
});
|
|
1824
|
+
|
|
1825
|
+
describe("Localized book 2Thess (he)", function() {
|
|
1826
|
+
var p;
|
|
1827
|
+
p = {};
|
|
1828
|
+
beforeEach(function() {
|
|
1829
|
+
p = new bcv_parser();
|
|
1830
|
+
p.set_options({
|
|
1831
|
+
book_alone_strategy: "ignore",
|
|
1832
|
+
book_sequence_strategy: "ignore",
|
|
1833
|
+
osis_compaction_strategy: "bc",
|
|
1834
|
+
captive_end_digits_strategy: "delete"
|
|
1835
|
+
});
|
|
1836
|
+
return p.include_apocrypha(true);
|
|
1837
|
+
});
|
|
1838
|
+
return it("should handle book: 2Thess (he)", function() {
|
|
1839
|
+
|
|
1840
|
+
expect(p.parse("אגרת פולוס השנייה אל-התסלוניקים 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'אגרת פולוס השנייה אל-התסלוניקים 1:1'")
|
|
1841
|
+
expect(p.parse("אגרת פולוס השנייה אל-התסלונ 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'אגרת פולוס השנייה אל-התסלונ 1:1'")
|
|
1842
|
+
expect(p.parse("האיגרת השנייה אל התסלוניקים 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'האיגרת השנייה אל התסלוניקים 1:1'")
|
|
1843
|
+
expect(p.parse("השנייה אל התסלוניקים 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'השנייה אל התסלוניקים 1:1'")
|
|
1844
|
+
expect(p.parse("השנייה אל-התסלוניקים 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'השנייה אל-התסלוניקים 1:1'")
|
|
1845
|
+
expect(p.parse("2Thess 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2Thess 1:1'")
|
|
1846
|
+
p.include_apocrypha(false)
|
|
1847
|
+
expect(p.parse("אגרת פולוס השנייה אל-התסלוניקים 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'אגרת פולוס השנייה אל-התסלוניקים 1:1'")
|
|
1848
|
+
expect(p.parse("אגרת פולוס השנייה אל-התסלונ 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'אגרת פולוס השנייה אל-התסלונ 1:1'")
|
|
1849
|
+
expect(p.parse("האיגרת השנייה אל התסלוניקים 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'האיגרת השנייה אל התסלוניקים 1:1'")
|
|
1850
|
+
expect(p.parse("השנייה אל התסלוניקים 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'השנייה אל התסלוניקים 1:1'")
|
|
1851
|
+
expect(p.parse("השנייה אל-התסלוניקים 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'השנייה אל-התסלוניקים 1:1'")
|
|
1852
|
+
expect(p.parse("2THESS 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2THESS 1:1'")
|
|
1853
|
+
;
|
|
1854
|
+
return true;
|
|
1855
|
+
});
|
|
1856
|
+
});
|
|
1857
|
+
|
|
1858
|
+
describe("Localized book 1Thess (he)", function() {
|
|
1859
|
+
var p;
|
|
1860
|
+
p = {};
|
|
1861
|
+
beforeEach(function() {
|
|
1862
|
+
p = new bcv_parser();
|
|
1863
|
+
p.set_options({
|
|
1864
|
+
book_alone_strategy: "ignore",
|
|
1865
|
+
book_sequence_strategy: "ignore",
|
|
1866
|
+
osis_compaction_strategy: "bc",
|
|
1867
|
+
captive_end_digits_strategy: "delete"
|
|
1868
|
+
});
|
|
1869
|
+
return p.include_apocrypha(true);
|
|
1870
|
+
});
|
|
1871
|
+
return it("should handle book: 1Thess (he)", function() {
|
|
1872
|
+
|
|
1873
|
+
expect(p.parse("אגרת פולוס הראשונה אל-התסלוניקים 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'אגרת פולוס הראשונה אל-התסלוניקים 1:1'")
|
|
1874
|
+
expect(p.parse("האיגרת הראשונה אל התסלוניקים 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'האיגרת הראשונה אל התסלוניקים 1:1'")
|
|
1875
|
+
expect(p.parse("אגרת פולוס הראשונה אל-התסלו 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'אגרת פולוס הראשונה אל-התסלו 1:1'")
|
|
1876
|
+
expect(p.parse("הראשונה אל התסלוניקים 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'הראשונה אל התסלוניקים 1:1'")
|
|
1877
|
+
expect(p.parse("1Thess 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1Thess 1:1'")
|
|
1878
|
+
p.include_apocrypha(false)
|
|
1879
|
+
expect(p.parse("אגרת פולוס הראשונה אל-התסלוניקים 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'אגרת פולוס הראשונה אל-התסלוניקים 1:1'")
|
|
1880
|
+
expect(p.parse("האיגרת הראשונה אל התסלוניקים 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'האיגרת הראשונה אל התסלוניקים 1:1'")
|
|
1881
|
+
expect(p.parse("אגרת פולוס הראשונה אל-התסלו 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'אגרת פולוס הראשונה אל-התסלו 1:1'")
|
|
1882
|
+
expect(p.parse("הראשונה אל התסלוניקים 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'הראשונה אל התסלוניקים 1:1'")
|
|
1883
|
+
expect(p.parse("1THESS 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1THESS 1:1'")
|
|
1884
|
+
;
|
|
1885
|
+
return true;
|
|
1886
|
+
});
|
|
1887
|
+
});
|
|
1888
|
+
|
|
1889
|
+
describe("Localized book 2Tim (he)", function() {
|
|
1890
|
+
var p;
|
|
1891
|
+
p = {};
|
|
1892
|
+
beforeEach(function() {
|
|
1893
|
+
p = new bcv_parser();
|
|
1894
|
+
p.set_options({
|
|
1895
|
+
book_alone_strategy: "ignore",
|
|
1896
|
+
book_sequence_strategy: "ignore",
|
|
1897
|
+
osis_compaction_strategy: "bc",
|
|
1898
|
+
captive_end_digits_strategy: "delete"
|
|
1899
|
+
});
|
|
1900
|
+
return p.include_apocrypha(true);
|
|
1901
|
+
});
|
|
1902
|
+
return it("should handle book: 2Tim (he)", function() {
|
|
1903
|
+
|
|
1904
|
+
expect(p.parse("אגרת פולוס השנייה אל-טימותיוס 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'אגרת פולוס השנייה אל-טימותיוס 1:1'")
|
|
1905
|
+
expect(p.parse("אגרת פולוס השנייה אל-טימותי 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'אגרת פולוס השנייה אל-טימותי 1:1'")
|
|
1906
|
+
expect(p.parse("האיגרת השנייה אל טימותיוס 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'האיגרת השנייה אל טימותיוס 1:1'")
|
|
1907
|
+
expect(p.parse("השנייה אל טימותיאוס 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'השנייה אל טימותיאוס 1:1'")
|
|
1908
|
+
expect(p.parse("השנייה אל טימותיוס 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'השנייה אל טימותיוס 1:1'")
|
|
1909
|
+
expect(p.parse("2Tim 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2Tim 1:1'")
|
|
1910
|
+
p.include_apocrypha(false)
|
|
1911
|
+
expect(p.parse("אגרת פולוס השנייה אל-טימותיוס 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'אגרת פולוס השנייה אל-טימותיוס 1:1'")
|
|
1912
|
+
expect(p.parse("אגרת פולוס השנייה אל-טימותי 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'אגרת פולוס השנייה אל-טימותי 1:1'")
|
|
1913
|
+
expect(p.parse("האיגרת השנייה אל טימותיוס 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'האיגרת השנייה אל טימותיוס 1:1'")
|
|
1914
|
+
expect(p.parse("השנייה אל טימותיאוס 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'השנייה אל טימותיאוס 1:1'")
|
|
1915
|
+
expect(p.parse("השנייה אל טימותיוס 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'השנייה אל טימותיוס 1:1'")
|
|
1916
|
+
expect(p.parse("2TIM 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2TIM 1:1'")
|
|
1917
|
+
;
|
|
1918
|
+
return true;
|
|
1919
|
+
});
|
|
1920
|
+
});
|
|
1921
|
+
|
|
1922
|
+
describe("Localized book 1Tim (he)", function() {
|
|
1923
|
+
var p;
|
|
1924
|
+
p = {};
|
|
1925
|
+
beforeEach(function() {
|
|
1926
|
+
p = new bcv_parser();
|
|
1927
|
+
p.set_options({
|
|
1928
|
+
book_alone_strategy: "ignore",
|
|
1929
|
+
book_sequence_strategy: "ignore",
|
|
1930
|
+
osis_compaction_strategy: "bc",
|
|
1931
|
+
captive_end_digits_strategy: "delete"
|
|
1932
|
+
});
|
|
1933
|
+
return p.include_apocrypha(true);
|
|
1934
|
+
});
|
|
1935
|
+
return it("should handle book: 1Tim (he)", function() {
|
|
1936
|
+
|
|
1937
|
+
expect(p.parse("אגרת פולוס הראשונה אל-טימותיוס 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'אגרת פולוס הראשונה אל-טימותיוס 1:1'")
|
|
1938
|
+
expect(p.parse("אגרת פולוס הראשונה אל-טימות 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'אגרת פולוס הראשונה אל-טימות 1:1'")
|
|
1939
|
+
expect(p.parse("האיגרת הראשונה אל טימותיוס 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'האיגרת הראשונה אל טימותיוס 1:1'")
|
|
1940
|
+
expect(p.parse("הראשונה אל טימותיאוס 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'הראשונה אל טימותיאוס 1:1'")
|
|
1941
|
+
expect(p.parse("הראשונה אל טימותיוס 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'הראשונה אל טימותיוס 1:1'")
|
|
1942
|
+
expect(p.parse("1Tim 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1Tim 1:1'")
|
|
1943
|
+
p.include_apocrypha(false)
|
|
1944
|
+
expect(p.parse("אגרת פולוס הראשונה אל-טימותיוס 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'אגרת פולוס הראשונה אל-טימותיוס 1:1'")
|
|
1945
|
+
expect(p.parse("אגרת פולוס הראשונה אל-טימות 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'אגרת פולוס הראשונה אל-טימות 1:1'")
|
|
1946
|
+
expect(p.parse("האיגרת הראשונה אל טימותיוס 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'האיגרת הראשונה אל טימותיוס 1:1'")
|
|
1947
|
+
expect(p.parse("הראשונה אל טימותיאוס 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'הראשונה אל טימותיאוס 1:1'")
|
|
1948
|
+
expect(p.parse("הראשונה אל טימותיוס 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'הראשונה אל טימותיוס 1:1'")
|
|
1949
|
+
expect(p.parse("1TIM 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1TIM 1:1'")
|
|
1950
|
+
;
|
|
1951
|
+
return true;
|
|
1952
|
+
});
|
|
1953
|
+
});
|
|
1954
|
+
|
|
1955
|
+
describe("Localized book Titus (he)", function() {
|
|
1956
|
+
var p;
|
|
1957
|
+
p = {};
|
|
1958
|
+
beforeEach(function() {
|
|
1959
|
+
p = new bcv_parser();
|
|
1960
|
+
p.set_options({
|
|
1961
|
+
book_alone_strategy: "ignore",
|
|
1962
|
+
book_sequence_strategy: "ignore",
|
|
1963
|
+
osis_compaction_strategy: "bc",
|
|
1964
|
+
captive_end_digits_strategy: "delete"
|
|
1965
|
+
});
|
|
1966
|
+
return p.include_apocrypha(true);
|
|
1967
|
+
});
|
|
1968
|
+
return it("should handle book: Titus (he)", function() {
|
|
1969
|
+
|
|
1970
|
+
expect(p.parse("אגרת פולוס אל-טיטוס 1:1").osis()).toEqual("Titus.1.1", "parsing: 'אגרת פולוס אל-טיטוס 1:1'")
|
|
1971
|
+
expect(p.parse("האיגרת אל טיטוס 1:1").osis()).toEqual("Titus.1.1", "parsing: 'האיגרת אל טיטוס 1:1'")
|
|
1972
|
+
expect(p.parse("אל טיטוס 1:1").osis()).toEqual("Titus.1.1", "parsing: 'אל טיטוס 1:1'")
|
|
1973
|
+
expect(p.parse("Titus 1:1").osis()).toEqual("Titus.1.1", "parsing: 'Titus 1:1'")
|
|
1974
|
+
p.include_apocrypha(false)
|
|
1975
|
+
expect(p.parse("אגרת פולוס אל-טיטוס 1:1").osis()).toEqual("Titus.1.1", "parsing: 'אגרת פולוס אל-טיטוס 1:1'")
|
|
1976
|
+
expect(p.parse("האיגרת אל טיטוס 1:1").osis()).toEqual("Titus.1.1", "parsing: 'האיגרת אל טיטוס 1:1'")
|
|
1977
|
+
expect(p.parse("אל טיטוס 1:1").osis()).toEqual("Titus.1.1", "parsing: 'אל טיטוס 1:1'")
|
|
1978
|
+
expect(p.parse("TITUS 1:1").osis()).toEqual("Titus.1.1", "parsing: 'TITUS 1:1'")
|
|
1979
|
+
;
|
|
1980
|
+
return true;
|
|
1981
|
+
});
|
|
1982
|
+
});
|
|
1983
|
+
|
|
1984
|
+
describe("Localized book Phlm (he)", function() {
|
|
1985
|
+
var p;
|
|
1986
|
+
p = {};
|
|
1987
|
+
beforeEach(function() {
|
|
1988
|
+
p = new bcv_parser();
|
|
1989
|
+
p.set_options({
|
|
1990
|
+
book_alone_strategy: "ignore",
|
|
1991
|
+
book_sequence_strategy: "ignore",
|
|
1992
|
+
osis_compaction_strategy: "bc",
|
|
1993
|
+
captive_end_digits_strategy: "delete"
|
|
1994
|
+
});
|
|
1995
|
+
return p.include_apocrypha(true);
|
|
1996
|
+
});
|
|
1997
|
+
return it("should handle book: Phlm (he)", function() {
|
|
1998
|
+
|
|
1999
|
+
expect(p.parse("אגרת פולוס אל-פילימון 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'אגרת פולוס אל-פילימון 1:1'")
|
|
2000
|
+
expect(p.parse("האיגרת אל פילימון 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'האיגרת אל פילימון 1:1'")
|
|
2001
|
+
expect(p.parse("אל פילימון 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'אל פילימון 1:1'")
|
|
2002
|
+
expect(p.parse("Phlm 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'Phlm 1:1'")
|
|
2003
|
+
p.include_apocrypha(false)
|
|
2004
|
+
expect(p.parse("אגרת פולוס אל-פילימון 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'אגרת פולוס אל-פילימון 1:1'")
|
|
2005
|
+
expect(p.parse("האיגרת אל פילימון 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'האיגרת אל פילימון 1:1'")
|
|
2006
|
+
expect(p.parse("אל פילימון 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'אל פילימון 1:1'")
|
|
2007
|
+
expect(p.parse("PHLM 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'PHLM 1:1'")
|
|
2008
|
+
;
|
|
2009
|
+
return true;
|
|
2010
|
+
});
|
|
2011
|
+
});
|
|
2012
|
+
|
|
2013
|
+
describe("Localized book Heb (he)", function() {
|
|
2014
|
+
var p;
|
|
2015
|
+
p = {};
|
|
2016
|
+
beforeEach(function() {
|
|
2017
|
+
p = new bcv_parser();
|
|
2018
|
+
p.set_options({
|
|
2019
|
+
book_alone_strategy: "ignore",
|
|
2020
|
+
book_sequence_strategy: "ignore",
|
|
2021
|
+
osis_compaction_strategy: "bc",
|
|
2022
|
+
captive_end_digits_strategy: "delete"
|
|
2023
|
+
});
|
|
2024
|
+
return p.include_apocrypha(true);
|
|
2025
|
+
});
|
|
2026
|
+
return it("should handle book: Heb (he)", function() {
|
|
2027
|
+
|
|
2028
|
+
expect(p.parse("האיגרת אל העברים 1:1").osis()).toEqual("Heb.1.1", "parsing: 'האיגרת אל העברים 1:1'")
|
|
2029
|
+
expect(p.parse("האיגרת אל-העברים 1:1").osis()).toEqual("Heb.1.1", "parsing: 'האיגרת אל-העברים 1:1'")
|
|
2030
|
+
expect(p.parse("האגרת אל-העברים 1:1").osis()).toEqual("Heb.1.1", "parsing: 'האגרת אל-העברים 1:1'")
|
|
2031
|
+
expect(p.parse("אל העברים 1:1").osis()).toEqual("Heb.1.1", "parsing: 'אל העברים 1:1'")
|
|
2032
|
+
expect(p.parse("Heb 1:1").osis()).toEqual("Heb.1.1", "parsing: 'Heb 1:1'")
|
|
2033
|
+
p.include_apocrypha(false)
|
|
2034
|
+
expect(p.parse("האיגרת אל העברים 1:1").osis()).toEqual("Heb.1.1", "parsing: 'האיגרת אל העברים 1:1'")
|
|
2035
|
+
expect(p.parse("האיגרת אל-העברים 1:1").osis()).toEqual("Heb.1.1", "parsing: 'האיגרת אל-העברים 1:1'")
|
|
2036
|
+
expect(p.parse("האגרת אל-העברים 1:1").osis()).toEqual("Heb.1.1", "parsing: 'האגרת אל-העברים 1:1'")
|
|
2037
|
+
expect(p.parse("אל העברים 1:1").osis()).toEqual("Heb.1.1", "parsing: 'אל העברים 1:1'")
|
|
2038
|
+
expect(p.parse("HEB 1:1").osis()).toEqual("Heb.1.1", "parsing: 'HEB 1:1'")
|
|
2039
|
+
;
|
|
2040
|
+
return true;
|
|
2041
|
+
});
|
|
2042
|
+
});
|
|
2043
|
+
|
|
2044
|
+
describe("Localized book Jas (he)", function() {
|
|
2045
|
+
var p;
|
|
2046
|
+
p = {};
|
|
2047
|
+
beforeEach(function() {
|
|
2048
|
+
p = new bcv_parser();
|
|
2049
|
+
p.set_options({
|
|
2050
|
+
book_alone_strategy: "ignore",
|
|
2051
|
+
book_sequence_strategy: "ignore",
|
|
2052
|
+
osis_compaction_strategy: "bc",
|
|
2053
|
+
captive_end_digits_strategy: "delete"
|
|
2054
|
+
});
|
|
2055
|
+
return p.include_apocrypha(true);
|
|
2056
|
+
});
|
|
2057
|
+
return it("should handle book: Jas (he)", function() {
|
|
2058
|
+
|
|
2059
|
+
expect(p.parse("איגרת יעקב 1:1").osis()).toEqual("Jas.1.1", "parsing: 'איגרת יעקב 1:1'")
|
|
2060
|
+
expect(p.parse("אגרת יעקב 1:1").osis()).toEqual("Jas.1.1", "parsing: 'אגרת יעקב 1:1'")
|
|
2061
|
+
expect(p.parse("יעקב 1:1").osis()).toEqual("Jas.1.1", "parsing: 'יעקב 1:1'")
|
|
2062
|
+
expect(p.parse("Jas 1:1").osis()).toEqual("Jas.1.1", "parsing: 'Jas 1:1'")
|
|
2063
|
+
p.include_apocrypha(false)
|
|
2064
|
+
expect(p.parse("איגרת יעקב 1:1").osis()).toEqual("Jas.1.1", "parsing: 'איגרת יעקב 1:1'")
|
|
2065
|
+
expect(p.parse("אגרת יעקב 1:1").osis()).toEqual("Jas.1.1", "parsing: 'אגרת יעקב 1:1'")
|
|
2066
|
+
expect(p.parse("יעקב 1:1").osis()).toEqual("Jas.1.1", "parsing: 'יעקב 1:1'")
|
|
2067
|
+
expect(p.parse("JAS 1:1").osis()).toEqual("Jas.1.1", "parsing: 'JAS 1:1'")
|
|
2068
|
+
;
|
|
2069
|
+
return true;
|
|
2070
|
+
});
|
|
2071
|
+
});
|
|
2072
|
+
|
|
2073
|
+
describe("Localized book 2Pet (he)", function() {
|
|
2074
|
+
var p;
|
|
2075
|
+
p = {};
|
|
2076
|
+
beforeEach(function() {
|
|
2077
|
+
p = new bcv_parser();
|
|
2078
|
+
p.set_options({
|
|
2079
|
+
book_alone_strategy: "ignore",
|
|
2080
|
+
book_sequence_strategy: "ignore",
|
|
2081
|
+
osis_compaction_strategy: "bc",
|
|
2082
|
+
captive_end_digits_strategy: "delete"
|
|
2083
|
+
});
|
|
2084
|
+
return p.include_apocrypha(true);
|
|
2085
|
+
});
|
|
2086
|
+
return it("should handle book: 2Pet (he)", function() {
|
|
2087
|
+
|
|
2088
|
+
expect(p.parse("אגרתו השנייה של פטרוס השליח 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'אגרתו השנייה של פטרוס השליח 1:1'")
|
|
2089
|
+
expect(p.parse("איגרת פטרוס השנייה 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'איגרת פטרוס השנייה 1:1'")
|
|
2090
|
+
expect(p.parse("השנייה פטרוס 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'השנייה פטרוס 1:1'")
|
|
2091
|
+
expect(p.parse("2Pet 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2Pet 1:1'")
|
|
2092
|
+
p.include_apocrypha(false)
|
|
2093
|
+
expect(p.parse("אגרתו השנייה של פטרוס השליח 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'אגרתו השנייה של פטרוס השליח 1:1'")
|
|
2094
|
+
expect(p.parse("איגרת פטרוס השנייה 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'איגרת פטרוס השנייה 1:1'")
|
|
2095
|
+
expect(p.parse("השנייה פטרוס 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'השנייה פטרוס 1:1'")
|
|
2096
|
+
expect(p.parse("2PET 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2PET 1:1'")
|
|
2097
|
+
;
|
|
2098
|
+
return true;
|
|
2099
|
+
});
|
|
2100
|
+
});
|
|
2101
|
+
|
|
2102
|
+
describe("Localized book 1Pet (he)", function() {
|
|
2103
|
+
var p;
|
|
2104
|
+
p = {};
|
|
2105
|
+
beforeEach(function() {
|
|
2106
|
+
p = new bcv_parser();
|
|
2107
|
+
p.set_options({
|
|
2108
|
+
book_alone_strategy: "ignore",
|
|
2109
|
+
book_sequence_strategy: "ignore",
|
|
2110
|
+
osis_compaction_strategy: "bc",
|
|
2111
|
+
captive_end_digits_strategy: "delete"
|
|
2112
|
+
});
|
|
2113
|
+
return p.include_apocrypha(true);
|
|
2114
|
+
});
|
|
2115
|
+
return it("should handle book: 1Pet (he)", function() {
|
|
2116
|
+
|
|
2117
|
+
expect(p.parse("אגרתו הראשונה של פטרוס השליח 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'אגרתו הראשונה של פטרוס השליח 1:1'")
|
|
2118
|
+
expect(p.parse("אגרתו הראשונה של פטרוס השלי 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'אגרתו הראשונה של פטרוס השלי 1:1'")
|
|
2119
|
+
expect(p.parse("איגרת פטרוס הראשונה 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'איגרת פטרוס הראשונה 1:1'")
|
|
2120
|
+
expect(p.parse("הראשונה פטרוס 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'הראשונה פטרוס 1:1'")
|
|
2121
|
+
expect(p.parse("1Pet 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1Pet 1:1'")
|
|
2122
|
+
p.include_apocrypha(false)
|
|
2123
|
+
expect(p.parse("אגרתו הראשונה של פטרוס השליח 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'אגרתו הראשונה של פטרוס השליח 1:1'")
|
|
2124
|
+
expect(p.parse("אגרתו הראשונה של פטרוס השלי 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'אגרתו הראשונה של פטרוס השלי 1:1'")
|
|
2125
|
+
expect(p.parse("איגרת פטרוס הראשונה 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'איגרת פטרוס הראשונה 1:1'")
|
|
2126
|
+
expect(p.parse("הראשונה פטרוס 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'הראשונה פטרוס 1:1'")
|
|
2127
|
+
expect(p.parse("1PET 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1PET 1:1'")
|
|
2128
|
+
;
|
|
2129
|
+
return true;
|
|
2130
|
+
});
|
|
2131
|
+
});
|
|
2132
|
+
|
|
2133
|
+
describe("Localized book Jude (he)", function() {
|
|
2134
|
+
var p;
|
|
2135
|
+
p = {};
|
|
2136
|
+
beforeEach(function() {
|
|
2137
|
+
p = new bcv_parser();
|
|
2138
|
+
p.set_options({
|
|
2139
|
+
book_alone_strategy: "ignore",
|
|
2140
|
+
book_sequence_strategy: "ignore",
|
|
2141
|
+
osis_compaction_strategy: "bc",
|
|
2142
|
+
captive_end_digits_strategy: "delete"
|
|
2143
|
+
});
|
|
2144
|
+
return p.include_apocrypha(true);
|
|
2145
|
+
});
|
|
2146
|
+
return it("should handle book: Jude (he)", function() {
|
|
2147
|
+
|
|
2148
|
+
expect(p.parse("איגרת יהודה 1:1").osis()).toEqual("Jude.1.1", "parsing: 'איגרת יהודה 1:1'")
|
|
2149
|
+
expect(p.parse("אגרת יהודה 1:1").osis()).toEqual("Jude.1.1", "parsing: 'אגרת יהודה 1:1'")
|
|
2150
|
+
expect(p.parse("יהודה 1:1").osis()).toEqual("Jude.1.1", "parsing: 'יהודה 1:1'")
|
|
2151
|
+
expect(p.parse("Jude 1:1").osis()).toEqual("Jude.1.1", "parsing: 'Jude 1:1'")
|
|
2152
|
+
p.include_apocrypha(false)
|
|
2153
|
+
expect(p.parse("איגרת יהודה 1:1").osis()).toEqual("Jude.1.1", "parsing: 'איגרת יהודה 1:1'")
|
|
2154
|
+
expect(p.parse("אגרת יהודה 1:1").osis()).toEqual("Jude.1.1", "parsing: 'אגרת יהודה 1:1'")
|
|
2155
|
+
expect(p.parse("יהודה 1:1").osis()).toEqual("Jude.1.1", "parsing: 'יהודה 1:1'")
|
|
2156
|
+
expect(p.parse("JUDE 1:1").osis()).toEqual("Jude.1.1", "parsing: 'JUDE 1:1'")
|
|
2157
|
+
;
|
|
2158
|
+
return true;
|
|
2159
|
+
});
|
|
2160
|
+
});
|
|
2161
|
+
|
|
2162
|
+
describe("Localized book Tob (he)", function() {
|
|
2163
|
+
var p;
|
|
2164
|
+
p = {};
|
|
2165
|
+
beforeEach(function() {
|
|
2166
|
+
p = new bcv_parser();
|
|
2167
|
+
p.set_options({
|
|
2168
|
+
book_alone_strategy: "ignore",
|
|
2169
|
+
book_sequence_strategy: "ignore",
|
|
2170
|
+
osis_compaction_strategy: "bc",
|
|
2171
|
+
captive_end_digits_strategy: "delete"
|
|
2172
|
+
});
|
|
2173
|
+
return p.include_apocrypha(true);
|
|
2174
|
+
});
|
|
2175
|
+
return it("should handle book: Tob (he)", function() {
|
|
2176
|
+
|
|
2177
|
+
expect(p.parse("טוביה 1:1").osis()).toEqual("Tob.1.1", "parsing: 'טוביה 1:1'")
|
|
2178
|
+
expect(p.parse("Tob 1:1").osis()).toEqual("Tob.1.1", "parsing: 'Tob 1:1'")
|
|
2179
|
+
;
|
|
2180
|
+
return true;
|
|
2181
|
+
});
|
|
2182
|
+
});
|
|
2183
|
+
|
|
2184
|
+
describe("Localized book Jdt (he)", function() {
|
|
2185
|
+
var p;
|
|
2186
|
+
p = {};
|
|
2187
|
+
beforeEach(function() {
|
|
2188
|
+
p = new bcv_parser();
|
|
2189
|
+
p.set_options({
|
|
2190
|
+
book_alone_strategy: "ignore",
|
|
2191
|
+
book_sequence_strategy: "ignore",
|
|
2192
|
+
osis_compaction_strategy: "bc",
|
|
2193
|
+
captive_end_digits_strategy: "delete"
|
|
2194
|
+
});
|
|
2195
|
+
return p.include_apocrypha(true);
|
|
2196
|
+
});
|
|
2197
|
+
return it("should handle book: Jdt (he)", function() {
|
|
2198
|
+
|
|
2199
|
+
expect(p.parse("יהודית 1:1").osis()).toEqual("Jdt.1.1", "parsing: 'יהודית 1:1'")
|
|
2200
|
+
expect(p.parse("Jdt 1:1").osis()).toEqual("Jdt.1.1", "parsing: 'Jdt 1:1'")
|
|
2201
|
+
;
|
|
2202
|
+
return true;
|
|
2203
|
+
});
|
|
2204
|
+
});
|
|
2205
|
+
|
|
2206
|
+
describe("Localized book Bar (he)", function() {
|
|
2207
|
+
var p;
|
|
2208
|
+
p = {};
|
|
2209
|
+
beforeEach(function() {
|
|
2210
|
+
p = new bcv_parser();
|
|
2211
|
+
p.set_options({
|
|
2212
|
+
book_alone_strategy: "ignore",
|
|
2213
|
+
book_sequence_strategy: "ignore",
|
|
2214
|
+
osis_compaction_strategy: "bc",
|
|
2215
|
+
captive_end_digits_strategy: "delete"
|
|
2216
|
+
});
|
|
2217
|
+
return p.include_apocrypha(true);
|
|
2218
|
+
});
|
|
2219
|
+
return it("should handle book: Bar (he)", function() {
|
|
2220
|
+
|
|
2221
|
+
expect(p.parse("ספר ברוך 1:1").osis()).toEqual("Bar.1.1", "parsing: 'ספר ברוך 1:1'")
|
|
2222
|
+
expect(p.parse("ברוך 1:1").osis()).toEqual("Bar.1.1", "parsing: 'ברוך 1:1'")
|
|
2223
|
+
expect(p.parse("Bar 1:1").osis()).toEqual("Bar.1.1", "parsing: 'Bar 1:1'")
|
|
2224
|
+
;
|
|
2225
|
+
return true;
|
|
2226
|
+
});
|
|
2227
|
+
});
|
|
2228
|
+
|
|
2229
|
+
describe("Localized book Sus (he)", function() {
|
|
2230
|
+
var p;
|
|
2231
|
+
p = {};
|
|
2232
|
+
beforeEach(function() {
|
|
2233
|
+
p = new bcv_parser();
|
|
2234
|
+
p.set_options({
|
|
2235
|
+
book_alone_strategy: "ignore",
|
|
2236
|
+
book_sequence_strategy: "ignore",
|
|
2237
|
+
osis_compaction_strategy: "bc",
|
|
2238
|
+
captive_end_digits_strategy: "delete"
|
|
2239
|
+
});
|
|
2240
|
+
return p.include_apocrypha(true);
|
|
2241
|
+
});
|
|
2242
|
+
return it("should handle book: Sus (he)", function() {
|
|
2243
|
+
|
|
2244
|
+
expect(p.parse("שושנה 1:1").osis()).toEqual("Sus.1.1", "parsing: 'שושנה 1:1'")
|
|
2245
|
+
expect(p.parse("Sus 1:1").osis()).toEqual("Sus.1.1", "parsing: 'Sus 1:1'")
|
|
2246
|
+
;
|
|
2247
|
+
return true;
|
|
2248
|
+
});
|
|
2249
|
+
});
|
|
2250
|
+
|
|
2251
|
+
describe("Localized book 2Macc (he)", function() {
|
|
2252
|
+
var p;
|
|
2253
|
+
p = {};
|
|
2254
|
+
beforeEach(function() {
|
|
2255
|
+
p = new bcv_parser();
|
|
2256
|
+
p.set_options({
|
|
2257
|
+
book_alone_strategy: "ignore",
|
|
2258
|
+
book_sequence_strategy: "ignore",
|
|
2259
|
+
osis_compaction_strategy: "bc",
|
|
2260
|
+
captive_end_digits_strategy: "delete"
|
|
2261
|
+
});
|
|
2262
|
+
return p.include_apocrypha(true);
|
|
2263
|
+
});
|
|
2264
|
+
return it("should handle book: 2Macc (he)", function() {
|
|
2265
|
+
|
|
2266
|
+
expect(p.parse("ספר מקבים ב' 1:1").osis()).toEqual("2Macc.1.1", "parsing: 'ספר מקבים ב' 1:1'")
|
|
2267
|
+
expect(p.parse("ספר מקבים ב’ 1:1").osis()).toEqual("2Macc.1.1", "parsing: 'ספר מקבים ב’ 1:1'")
|
|
2268
|
+
expect(p.parse("חשמונאים ב' 1:1").osis()).toEqual("2Macc.1.1", "parsing: 'חשמונאים ב' 1:1'")
|
|
2269
|
+
expect(p.parse("חשמונאים ב’ 1:1").osis()).toEqual("2Macc.1.1", "parsing: 'חשמונאים ב’ 1:1'")
|
|
2270
|
+
expect(p.parse("מקבים ב 1:1").osis()).toEqual("2Macc.1.1", "parsing: 'מקבים ב 1:1'")
|
|
2271
|
+
expect(p.parse("2Macc 1:1").osis()).toEqual("2Macc.1.1", "parsing: '2Macc 1:1'")
|
|
2272
|
+
;
|
|
2273
|
+
return true;
|
|
2274
|
+
});
|
|
2275
|
+
});
|
|
2276
|
+
|
|
2277
|
+
describe("Localized book 3Macc (he)", function() {
|
|
2278
|
+
var p;
|
|
2279
|
+
p = {};
|
|
2280
|
+
beforeEach(function() {
|
|
2281
|
+
p = new bcv_parser();
|
|
2282
|
+
p.set_options({
|
|
2283
|
+
book_alone_strategy: "ignore",
|
|
2284
|
+
book_sequence_strategy: "ignore",
|
|
2285
|
+
osis_compaction_strategy: "bc",
|
|
2286
|
+
captive_end_digits_strategy: "delete"
|
|
2287
|
+
});
|
|
2288
|
+
return p.include_apocrypha(true);
|
|
2289
|
+
});
|
|
2290
|
+
return it("should handle book: 3Macc (he)", function() {
|
|
2291
|
+
|
|
2292
|
+
expect(p.parse("ספר מקבים ג' 1:1").osis()).toEqual("3Macc.1.1", "parsing: 'ספר מקבים ג' 1:1'")
|
|
2293
|
+
expect(p.parse("ספר מקבים ג’ 1:1").osis()).toEqual("3Macc.1.1", "parsing: 'ספר מקבים ג’ 1:1'")
|
|
2294
|
+
expect(p.parse("חשמונאים ג' 1:1").osis()).toEqual("3Macc.1.1", "parsing: 'חשמונאים ג' 1:1'")
|
|
2295
|
+
expect(p.parse("חשמונאים ג’ 1:1").osis()).toEqual("3Macc.1.1", "parsing: 'חשמונאים ג’ 1:1'")
|
|
2296
|
+
expect(p.parse("מקבים ג 1:1").osis()).toEqual("3Macc.1.1", "parsing: 'מקבים ג 1:1'")
|
|
2297
|
+
expect(p.parse("3Macc 1:1").osis()).toEqual("3Macc.1.1", "parsing: '3Macc 1:1'")
|
|
2298
|
+
;
|
|
2299
|
+
return true;
|
|
2300
|
+
});
|
|
2301
|
+
});
|
|
2302
|
+
|
|
2303
|
+
describe("Localized book 4Macc (he)", function() {
|
|
2304
|
+
var p;
|
|
2305
|
+
p = {};
|
|
2306
|
+
beforeEach(function() {
|
|
2307
|
+
p = new bcv_parser();
|
|
2308
|
+
p.set_options({
|
|
2309
|
+
book_alone_strategy: "ignore",
|
|
2310
|
+
book_sequence_strategy: "ignore",
|
|
2311
|
+
osis_compaction_strategy: "bc",
|
|
2312
|
+
captive_end_digits_strategy: "delete"
|
|
2313
|
+
});
|
|
2314
|
+
return p.include_apocrypha(true);
|
|
2315
|
+
});
|
|
2316
|
+
return it("should handle book: 4Macc (he)", function() {
|
|
2317
|
+
|
|
2318
|
+
expect(p.parse("ספר מקבים ד' 1:1").osis()).toEqual("4Macc.1.1", "parsing: 'ספר מקבים ד' 1:1'")
|
|
2319
|
+
expect(p.parse("ספר מקבים ד’ 1:1").osis()).toEqual("4Macc.1.1", "parsing: 'ספר מקבים ד’ 1:1'")
|
|
2320
|
+
expect(p.parse("חשמונאים ד' 1:1").osis()).toEqual("4Macc.1.1", "parsing: 'חשמונאים ד' 1:1'")
|
|
2321
|
+
expect(p.parse("חשמונאים ד’ 1:1").osis()).toEqual("4Macc.1.1", "parsing: 'חשמונאים ד’ 1:1'")
|
|
2322
|
+
expect(p.parse("מקבים ד 1:1").osis()).toEqual("4Macc.1.1", "parsing: 'מקבים ד 1:1'")
|
|
2323
|
+
expect(p.parse("4Macc 1:1").osis()).toEqual("4Macc.1.1", "parsing: '4Macc 1:1'")
|
|
2324
|
+
;
|
|
2325
|
+
return true;
|
|
2326
|
+
});
|
|
2327
|
+
});
|
|
2328
|
+
|
|
2329
|
+
describe("Localized book 1Macc (he)", function() {
|
|
2330
|
+
var p;
|
|
2331
|
+
p = {};
|
|
2332
|
+
beforeEach(function() {
|
|
2333
|
+
p = new bcv_parser();
|
|
2334
|
+
p.set_options({
|
|
2335
|
+
book_alone_strategy: "ignore",
|
|
2336
|
+
book_sequence_strategy: "ignore",
|
|
2337
|
+
osis_compaction_strategy: "bc",
|
|
2338
|
+
captive_end_digits_strategy: "delete"
|
|
2339
|
+
});
|
|
2340
|
+
return p.include_apocrypha(true);
|
|
2341
|
+
});
|
|
2342
|
+
return it("should handle book: 1Macc (he)", function() {
|
|
2343
|
+
|
|
2344
|
+
expect(p.parse("ספר מקבים א' 1:1").osis()).toEqual("1Macc.1.1", "parsing: 'ספר מקבים א' 1:1'")
|
|
2345
|
+
expect(p.parse("ספר מקבים א’ 1:1").osis()).toEqual("1Macc.1.1", "parsing: 'ספר מקבים א’ 1:1'")
|
|
2346
|
+
expect(p.parse("חשמונאים א' 1:1").osis()).toEqual("1Macc.1.1", "parsing: 'חשמונאים א' 1:1'")
|
|
2347
|
+
expect(p.parse("חשמונאים א’ 1:1").osis()).toEqual("1Macc.1.1", "parsing: 'חשמונאים א’ 1:1'")
|
|
2348
|
+
expect(p.parse("מקבים א 1:1").osis()).toEqual("1Macc.1.1", "parsing: 'מקבים א 1:1'")
|
|
2349
|
+
expect(p.parse("1Macc 1:1").osis()).toEqual("1Macc.1.1", "parsing: '1Macc 1:1'")
|
|
2350
|
+
;
|
|
2351
|
+
return true;
|
|
2352
|
+
});
|
|
2353
|
+
});
|
|
2354
|
+
|
|
2355
|
+
describe("Miscellaneous tests", function() {
|
|
2356
|
+
var p;
|
|
2357
|
+
p = {};
|
|
2358
|
+
beforeEach(function() {
|
|
2359
|
+
p = new bcv_parser();
|
|
2360
|
+
p.set_options({
|
|
2361
|
+
book_alone_strategy: "ignore",
|
|
2362
|
+
book_sequence_strategy: "ignore",
|
|
2363
|
+
osis_compaction_strategy: "bc",
|
|
2364
|
+
captive_end_digits_strategy: "delete"
|
|
2365
|
+
});
|
|
2366
|
+
return p.include_apocrypha(true);
|
|
2367
|
+
});
|
|
2368
|
+
it("should return the expected language", function() {
|
|
2369
|
+
return expect(p.languages).toEqual(["he"]);
|
|
2370
|
+
});
|
|
2371
|
+
it("should handle ranges (he)", function() {
|
|
2372
|
+
expect(p.parse("Titus 1:1 - 2").osis()).toEqual("Titus.1.1-Titus.1.2", "parsing: 'Titus 1:1 - 2'");
|
|
2373
|
+
expect(p.parse("Matt 1-2").osis()).toEqual("Matt.1-Matt.2", "parsing: 'Matt 1-2'");
|
|
2374
|
+
return expect(p.parse("Phlm 2 - 3").osis()).toEqual("Phlm.1.2-Phlm.1.3", "parsing: 'Phlm 2 - 3'");
|
|
2375
|
+
});
|
|
2376
|
+
it("should handle chapters (he)", function() {
|
|
2377
|
+
expect(p.parse("Titus 1:1, פרקים 2").osis()).toEqual("Titus.1.1,Titus.2", "parsing: 'Titus 1:1, פרקים 2'");
|
|
2378
|
+
expect(p.parse("Matt 3:4 פרקים 6").osis()).toEqual("Matt.3.4,Matt.6", "parsing: 'Matt 3:4 פרקים 6'");
|
|
2379
|
+
expect(p.parse("Titus 1:1, פרק 2").osis()).toEqual("Titus.1.1,Titus.2", "parsing: 'Titus 1:1, פרק 2'");
|
|
2380
|
+
return expect(p.parse("Matt 3:4 פרק 6").osis()).toEqual("Matt.3.4,Matt.6", "parsing: 'Matt 3:4 פרק 6'");
|
|
2381
|
+
});
|
|
2382
|
+
it("should handle verses (he)", function() {
|
|
2383
|
+
expect(p.parse("Exod 1:1 verse 3").osis()).toEqual("Exod.1.1,Exod.1.3", "parsing: 'Exod 1:1 verse 3'");
|
|
2384
|
+
return expect(p.parse("Phlm VERSE 6").osis()).toEqual("Phlm.1.6", "parsing: 'Phlm VERSE 6'");
|
|
2385
|
+
});
|
|
2386
|
+
it("should handle 'and' (he)", function() {
|
|
2387
|
+
expect(p.parse("Exod 1:1 and 3").osis()).toEqual("Exod.1.1,Exod.1.3", "parsing: 'Exod 1:1 and 3'");
|
|
2388
|
+
return expect(p.parse("Phlm 2 AND 6").osis()).toEqual("Phlm.1.2,Phlm.1.6", "parsing: 'Phlm 2 AND 6'");
|
|
2389
|
+
});
|
|
2390
|
+
it("should handle titles (he)", function() {
|
|
2391
|
+
expect(p.parse("Ps 3 title, 4:2, 5:title").osis()).toEqual("Ps.3.1,Ps.4.2,Ps.5.1", "parsing: 'Ps 3 title, 4:2, 5:title'");
|
|
2392
|
+
return expect(p.parse("PS 3 TITLE, 4:2, 5:TITLE").osis()).toEqual("Ps.3.1,Ps.4.2,Ps.5.1", "parsing: 'PS 3 TITLE, 4:2, 5:TITLE'");
|
|
2393
|
+
});
|
|
2394
|
+
it("should handle 'ff' (he)", function() {
|
|
2395
|
+
expect(p.parse("Rev 3ff, 4:2ff").osis()).toEqual("Rev.3-Rev.22,Rev.4.2-Rev.4.11", "parsing: 'Rev 3ff, 4:2ff'");
|
|
2396
|
+
return expect(p.parse("REV 3 FF, 4:2 FF").osis()).toEqual("Rev.3-Rev.22,Rev.4.2-Rev.4.11", "parsing: 'REV 3 FF, 4:2 FF'");
|
|
2397
|
+
});
|
|
2398
|
+
it("should handle translations (he)", function() {
|
|
2399
|
+
expect(p.parse("Lev 1 (WLC)").osis_and_translations()).toEqual([["Lev.1", "WLC"]]);
|
|
2400
|
+
return expect(p.parse("lev 1 wlc").osis_and_translations()).toEqual([["Lev.1", "WLC"]]);
|
|
2401
|
+
});
|
|
2402
|
+
return it("should handle boundaries (he)", function() {
|
|
2403
|
+
p.set_options({
|
|
2404
|
+
book_alone_strategy: "full"
|
|
2405
|
+
});
|
|
2406
|
+
expect(p.parse("\u2014Matt\u2014").osis()).toEqual("Matt.1-Matt.28", "parsing: '\u2014Matt\u2014'");
|
|
2407
|
+
return expect(p.parse("\u201cMatt 1:1\u201d").osis()).toEqual("Matt.1.1", "parsing: '\u201cMatt 1:1\u201d'");
|
|
2408
|
+
});
|
|
2409
|
+
});
|
|
2410
|
+
|
|
2411
|
+
}).call(this);
|