bible-ref-parse 3.0.8 → 3.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/ar-bcv-parser.min.js +1 -0
  2. package/dist/bg-bcv-parser.min.js +1 -0
  3. package/dist/ceb-bcv-parser.min.js +1 -0
  4. package/dist/cs-bcv-parser.min.js +1 -0
  5. package/dist/da-bcv-parser.min.js +1 -0
  6. package/dist/de-bcv-parser.min.js +1 -0
  7. package/dist/el-bcv-parser.min.js +1 -0
  8. package/dist/en-bcv-parser.js +3482 -3130
  9. package/dist/en-bcv-parser.min.js +1 -1
  10. package/dist/es-bcv-parser.min.js +1 -0
  11. package/dist/fa-bcv-parser.min.js +1 -0
  12. package/dist/fi-bcv-parser.min.js +1 -0
  13. package/dist/fr-bcv-parser.min.js +1 -0
  14. package/dist/he-bcv-parser.min.js +1 -0
  15. package/dist/hi-bcv-parser.min.js +1 -0
  16. package/dist/hr-bcv-parser.min.js +1 -0
  17. package/dist/ht-bcv-parser.min.js +1 -0
  18. package/dist/hu-bcv-parser.js +2767 -3065
  19. package/dist/hu-bcv-parser.min.js +1 -0
  20. package/dist/il-bcv-parser.js +7313 -0
  21. package/dist/il-bcv-parser.min.js +1 -0
  22. package/dist/is-bcv-parser.min.js +1 -0
  23. package/dist/it-bcv-parser.js +2862 -3180
  24. package/dist/it-bcv-parser.min.js +1 -0
  25. package/dist/ja-bcv-parser.min.js +1 -0
  26. package/dist/jv-bcv-parser.min.js +1 -0
  27. package/dist/ko-bcv-parser.min.js +1 -0
  28. package/dist/la-bcv-parser.min.js +1 -0
  29. package/dist/mk-bcv-parser.js +2607 -2914
  30. package/dist/mk-bcv-parser.min.js +1 -0
  31. package/dist/mr-bcv-parser.min.js +1 -0
  32. package/dist/ne-bcv-parser.min.js +1 -0
  33. package/dist/nl-bcv-parser.js +1 -1
  34. package/dist/nl-bcv-parser.min.js +1 -0
  35. package/dist/no-bcv-parser.min.js +1 -0
  36. package/dist/or-bcv-parser.min.js +1 -0
  37. package/dist/pa-bcv-parser.min.js +1 -0
  38. package/dist/pl-bcv-parser.min.js +1 -0
  39. package/dist/pt-bcv-parser.min.js +1 -0
  40. package/dist/ro-bcv-parser.min.js +1 -0
  41. package/dist/ru-bcv-parser.min.js +1 -0
  42. package/dist/sk-bcv-parser.min.js +1 -0
  43. package/dist/so-bcv-parser.min.js +1 -0
  44. package/dist/sq-bcv-parser.min.js +1 -0
  45. package/dist/sr-bcv-parser.js +17 -17
  46. package/dist/sr-bcv-parser.min.js +1 -0
  47. package/dist/sv-bcv-parser.min.js +1 -0
  48. package/dist/sw-bcv-parser.min.js +1 -0
  49. package/dist/ta-bcv-parser.min.js +1 -0
  50. package/dist/test/en.spec.js +11661 -11381
  51. package/dist/test/hu.spec.js +2318 -2570
  52. package/dist/test/il.spec.js +2123 -0
  53. package/dist/test/it.spec.js +1246 -1500
  54. package/dist/test/mk.spec.js +1449 -1703
  55. package/dist/test/nl.spec.js +2 -0
  56. package/dist/test/sr.spec.js +150 -0
  57. package/dist/th-bcv-parser.min.js +1 -0
  58. package/dist/tl-bcv-parser.min.js +1 -0
  59. package/dist/tr-bcv-parser.min.js +1 -0
  60. package/dist/uk-bcv-parser.min.js +1 -0
  61. package/dist/ur-bcv-parser.min.js +1 -0
  62. package/dist/vi-bcv-parser.min.js +1 -0
  63. package/dist/zh-bcv-parser.min.js +1 -0
  64. package/package.json +1 -1
@@ -0,0 +1,2123 @@
1
+ (function() {
2
+ var bcv_parser;
3
+
4
+ bcv_parser = require("../../dist/il-bcv-parser.js").bcv_parser;
5
+
6
+ describe("Parsing (il)", function() {
7
+ var p;
8
+ p = {};
9
+ beforeEach(function() {
10
+ p = new bcv_parser();
11
+ p.options.osis_compaction_strategy = "b";
12
+ 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;
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
+ for (i = 0, len = books.length; i < len; i++) {
21
+ book = books[i];
22
+ bc = book + ".1";
23
+ bcv = bc + ".1";
24
+ bcv_range = bcv + "-" + bc + ".2";
25
+ expect(p.parse(bc).osis()).toEqual(bc);
26
+ expect(p.parse(bcv).osis()).toEqual(bcv);
27
+ expect(p.parse(bcv_range).osis()).toEqual(bcv_range);
28
+ }
29
+ });
30
+ it("should round-trip OSIS Apocrypha references", function() {
31
+ var bc, bcv, bcv_range, book, books, i, j, len, len1;
32
+ p.set_options({
33
+ osis_compaction_strategy: "bc",
34
+ ps151_strategy: "b"
35
+ });
36
+ p.include_apocrypha(true);
37
+ books = ["Tob", "Jdt", "GkEsth", "Wis", "Sir", "Bar", "PrAzar", "Sus", "Bel", "SgThree", "EpJer", "1Macc", "2Macc", "3Macc", "4Macc", "1Esd", "2Esd", "PrMan", "Ps151"];
38
+ for (i = 0, len = books.length; i < len; i++) {
39
+ book = books[i];
40
+ bc = book + ".1";
41
+ bcv = bc + ".1";
42
+ bcv_range = bcv + "-" + bc + ".2";
43
+ expect(p.parse(bc).osis()).toEqual(bc);
44
+ expect(p.parse(bcv).osis()).toEqual(bcv);
45
+ expect(p.parse(bcv_range).osis()).toEqual(bcv_range);
46
+ }
47
+ p.set_options({
48
+ ps151_strategy: "bc"
49
+ });
50
+ expect(p.parse("Ps151.1").osis()).toEqual("Ps.151");
51
+ expect(p.parse("Ps151.1.1").osis()).toEqual("Ps.151.1");
52
+ expect(p.parse("Ps151.1-Ps151.2").osis()).toEqual("Ps.151.1-Ps.151.2");
53
+ p.include_apocrypha(false);
54
+ for (j = 0, len1 = books.length; j < len1; j++) {
55
+ book = books[j];
56
+ bc = book + ".1";
57
+ expect(p.parse(bc).osis()).toEqual("");
58
+ }
59
+ });
60
+ it("should handle a preceding character", function() {
61
+ expect(p.parse(" Gen 1").osis()).toEqual("Gen.1");
62
+ expect(p.parse("Matt5John3").osis()).toEqual("Matt.5,John.3");
63
+ expect(p.parse("1Ps 1").osis()).toEqual("");
64
+ expect(p.parse("11Sam 1").osis()).toEqual("");
65
+ });
66
+ });
67
+
68
+ describe("Localized book Gen (il)", function() {
69
+ var p;
70
+ p = {};
71
+ beforeEach(function() {
72
+ p = new bcv_parser();
73
+ p.set_options({
74
+ book_alone_strategy: "ignore",
75
+ book_sequence_strategy: "ignore",
76
+ osis_compaction_strategy: "bc",
77
+ captive_end_digits_strategy: "delete"
78
+ });
79
+ p.include_apocrypha(true);
80
+ });
81
+ it("should handle book: Gen (il)", function() {
82
+ expect(p.parse("Genesis 1:1").osis()).toEqual("Gen.1.1", "parsing: 'Genesis 1:1'");
83
+ expect(p.parse("Gen 1:1").osis()).toEqual("Gen.1.1", "parsing: 'Gen 1:1'");
84
+ p.include_apocrypha(false);
85
+ expect(p.parse("GENESIS 1:1").osis()).toEqual("Gen.1.1", "parsing: 'GENESIS 1:1'");
86
+ expect(p.parse("GEN 1:1").osis()).toEqual("Gen.1.1", "parsing: 'GEN 1:1'");
87
+ });
88
+ });
89
+
90
+ describe("Localized book Exod (il)", function() {
91
+ var p;
92
+ p = {};
93
+ beforeEach(function() {
94
+ p = new bcv_parser();
95
+ p.set_options({
96
+ book_alone_strategy: "ignore",
97
+ book_sequence_strategy: "ignore",
98
+ osis_compaction_strategy: "bc",
99
+ captive_end_digits_strategy: "delete"
100
+ });
101
+ p.include_apocrypha(true);
102
+ });
103
+ it("should handle book: Exod (il)", function() {
104
+ expect(p.parse("Exodo 1:1").osis()).toEqual("Exod.1.1", "parsing: 'Exodo 1:1'");
105
+ expect(p.parse("Exod 1:1").osis()).toEqual("Exod.1.1", "parsing: 'Exod 1:1'");
106
+ expect(p.parse("Exo 1:1").osis()).toEqual("Exod.1.1", "parsing: 'Exo 1:1'");
107
+ p.include_apocrypha(false);
108
+ expect(p.parse("EXODO 1:1").osis()).toEqual("Exod.1.1", "parsing: 'EXODO 1:1'");
109
+ expect(p.parse("EXOD 1:1").osis()).toEqual("Exod.1.1", "parsing: 'EXOD 1:1'");
110
+ expect(p.parse("EXO 1:1").osis()).toEqual("Exod.1.1", "parsing: 'EXO 1:1'");
111
+ });
112
+ });
113
+
114
+ describe("Localized book Bel (il)", function() {
115
+ var p;
116
+ p = {};
117
+ beforeEach(function() {
118
+ p = new bcv_parser();
119
+ p.set_options({
120
+ book_alone_strategy: "ignore",
121
+ book_sequence_strategy: "ignore",
122
+ osis_compaction_strategy: "bc",
123
+ captive_end_digits_strategy: "delete"
124
+ });
125
+ p.include_apocrypha(true);
126
+ });
127
+ it("should handle book: Bel (il)", function() {
128
+ expect(p.parse("Bel 1:1").osis()).toEqual("Bel.1.1", "parsing: 'Bel 1:1'");
129
+ });
130
+ });
131
+
132
+ describe("Localized book Lev (il)", function() {
133
+ var p;
134
+ p = {};
135
+ beforeEach(function() {
136
+ p = new bcv_parser();
137
+ p.set_options({
138
+ book_alone_strategy: "ignore",
139
+ book_sequence_strategy: "ignore",
140
+ osis_compaction_strategy: "bc",
141
+ captive_end_digits_strategy: "delete"
142
+ });
143
+ p.include_apocrypha(true);
144
+ });
145
+ it("should handle book: Lev (il)", function() {
146
+ expect(p.parse("Levitico 1:1").osis()).toEqual("Lev.1.1", "parsing: 'Levitico 1:1'");
147
+ expect(p.parse("Lev 1:1").osis()).toEqual("Lev.1.1", "parsing: 'Lev 1:1'");
148
+ p.include_apocrypha(false);
149
+ expect(p.parse("LEVITICO 1:1").osis()).toEqual("Lev.1.1", "parsing: 'LEVITICO 1:1'");
150
+ expect(p.parse("LEV 1:1").osis()).toEqual("Lev.1.1", "parsing: 'LEV 1:1'");
151
+ });
152
+ });
153
+
154
+ describe("Localized book Num (il)", function() {
155
+ var p;
156
+ p = {};
157
+ beforeEach(function() {
158
+ p = new bcv_parser();
159
+ p.set_options({
160
+ book_alone_strategy: "ignore",
161
+ book_sequence_strategy: "ignore",
162
+ osis_compaction_strategy: "bc",
163
+ captive_end_digits_strategy: "delete"
164
+ });
165
+ p.include_apocrypha(true);
166
+ });
167
+ it("should handle book: Num (il)", function() {
168
+ expect(p.parse("Numeros 1:1").osis()).toEqual("Num.1.1", "parsing: 'Numeros 1:1'");
169
+ expect(p.parse("Num 1:1").osis()).toEqual("Num.1.1", "parsing: 'Num 1:1'");
170
+ p.include_apocrypha(false);
171
+ expect(p.parse("NUMEROS 1:1").osis()).toEqual("Num.1.1", "parsing: 'NUMEROS 1:1'");
172
+ expect(p.parse("NUM 1:1").osis()).toEqual("Num.1.1", "parsing: 'NUM 1:1'");
173
+ });
174
+ });
175
+
176
+ describe("Localized book Wis (il)", function() {
177
+ var p;
178
+ p = {};
179
+ beforeEach(function() {
180
+ p = new bcv_parser();
181
+ p.set_options({
182
+ book_alone_strategy: "ignore",
183
+ book_sequence_strategy: "ignore",
184
+ osis_compaction_strategy: "bc",
185
+ captive_end_digits_strategy: "delete"
186
+ });
187
+ p.include_apocrypha(true);
188
+ });
189
+ it("should handle book: Wis (il)", function() {
190
+ expect(p.parse("Wis 1:1").osis()).toEqual("Wis.1.1", "parsing: 'Wis 1:1'");
191
+ });
192
+ });
193
+
194
+ describe("Localized book Lam (il)", function() {
195
+ var p;
196
+ p = {};
197
+ beforeEach(function() {
198
+ p = new bcv_parser();
199
+ p.set_options({
200
+ book_alone_strategy: "ignore",
201
+ book_sequence_strategy: "ignore",
202
+ osis_compaction_strategy: "bc",
203
+ captive_end_digits_strategy: "delete"
204
+ });
205
+ p.include_apocrypha(true);
206
+ });
207
+ it("should handle book: Lam (il)", function() {
208
+ expect(p.parse("Panagtaginayon 1:1").osis()).toEqual("Lam.1.1", "parsing: 'Panagtaginayon 1:1'");
209
+ expect(p.parse("Lam 1:1").osis()).toEqual("Lam.1.1", "parsing: 'Lam 1:1'");
210
+ expect(p.parse("Pan 1:1").osis()).toEqual("Lam.1.1", "parsing: 'Pan 1:1'");
211
+ p.include_apocrypha(false);
212
+ expect(p.parse("PANAGTAGINAYON 1:1").osis()).toEqual("Lam.1.1", "parsing: 'PANAGTAGINAYON 1:1'");
213
+ expect(p.parse("LAM 1:1").osis()).toEqual("Lam.1.1", "parsing: 'LAM 1:1'");
214
+ expect(p.parse("PAN 1:1").osis()).toEqual("Lam.1.1", "parsing: 'PAN 1:1'");
215
+ });
216
+ });
217
+
218
+ describe("Localized book Sir (il)", function() {
219
+ var p;
220
+ p = {};
221
+ beforeEach(function() {
222
+ p = new bcv_parser();
223
+ p.set_options({
224
+ book_alone_strategy: "ignore",
225
+ book_sequence_strategy: "ignore",
226
+ osis_compaction_strategy: "bc",
227
+ captive_end_digits_strategy: "delete"
228
+ });
229
+ p.include_apocrypha(true);
230
+ });
231
+ it("should handle book: Sir (il)", function() {
232
+ expect(p.parse("Sir 1:1").osis()).toEqual("Sir.1.1", "parsing: 'Sir 1:1'");
233
+ });
234
+ });
235
+
236
+ describe("Localized book EpJer (il)", function() {
237
+ var p;
238
+ p = {};
239
+ beforeEach(function() {
240
+ p = new bcv_parser();
241
+ p.set_options({
242
+ book_alone_strategy: "ignore",
243
+ book_sequence_strategy: "ignore",
244
+ osis_compaction_strategy: "bc",
245
+ captive_end_digits_strategy: "delete"
246
+ });
247
+ p.include_apocrypha(true);
248
+ });
249
+ it("should handle book: EpJer (il)", function() {
250
+ expect(p.parse("EpJer 1:1").osis()).toEqual("EpJer.1.1", "parsing: 'EpJer 1:1'");
251
+ });
252
+ });
253
+
254
+ describe("Localized book Rev (il)", function() {
255
+ var p;
256
+ p = {};
257
+ beforeEach(function() {
258
+ p = new bcv_parser();
259
+ p.set_options({
260
+ book_alone_strategy: "ignore",
261
+ book_sequence_strategy: "ignore",
262
+ osis_compaction_strategy: "bc",
263
+ captive_end_digits_strategy: "delete"
264
+ });
265
+ p.include_apocrypha(true);
266
+ });
267
+ it("should handle book: Rev (il)", function() {
268
+ expect(p.parse("Apocalipsis 1:1").osis()).toEqual("Rev.1.1", "parsing: 'Apocalipsis 1:1'");
269
+ expect(p.parse("Apo 1:1").osis()).toEqual("Rev.1.1", "parsing: 'Apo 1:1'");
270
+ expect(p.parse("Rev 1:1").osis()).toEqual("Rev.1.1", "parsing: 'Rev 1:1'");
271
+ p.include_apocrypha(false);
272
+ expect(p.parse("APOCALIPSIS 1:1").osis()).toEqual("Rev.1.1", "parsing: 'APOCALIPSIS 1:1'");
273
+ expect(p.parse("APO 1:1").osis()).toEqual("Rev.1.1", "parsing: 'APO 1:1'");
274
+ expect(p.parse("REV 1:1").osis()).toEqual("Rev.1.1", "parsing: 'REV 1:1'");
275
+ });
276
+ });
277
+
278
+ describe("Localized book PrMan (il)", function() {
279
+ var p;
280
+ p = {};
281
+ beforeEach(function() {
282
+ p = new bcv_parser();
283
+ p.set_options({
284
+ book_alone_strategy: "ignore",
285
+ book_sequence_strategy: "ignore",
286
+ osis_compaction_strategy: "bc",
287
+ captive_end_digits_strategy: "delete"
288
+ });
289
+ p.include_apocrypha(true);
290
+ });
291
+ it("should handle book: PrMan (il)", function() {
292
+ expect(p.parse("PrMan 1:1").osis()).toEqual("PrMan.1.1", "parsing: 'PrMan 1:1'");
293
+ });
294
+ });
295
+
296
+ describe("Localized book Deut (il)", function() {
297
+ var p;
298
+ p = {};
299
+ beforeEach(function() {
300
+ p = new bcv_parser();
301
+ p.set_options({
302
+ book_alone_strategy: "ignore",
303
+ book_sequence_strategy: "ignore",
304
+ osis_compaction_strategy: "bc",
305
+ captive_end_digits_strategy: "delete"
306
+ });
307
+ p.include_apocrypha(true);
308
+ });
309
+ it("should handle book: Deut (il)", function() {
310
+ expect(p.parse("Deuteronomio 1:1").osis()).toEqual("Deut.1.1", "parsing: 'Deuteronomio 1:1'");
311
+ expect(p.parse("Deut 1:1").osis()).toEqual("Deut.1.1", "parsing: 'Deut 1:1'");
312
+ p.include_apocrypha(false);
313
+ expect(p.parse("DEUTERONOMIO 1:1").osis()).toEqual("Deut.1.1", "parsing: 'DEUTERONOMIO 1:1'");
314
+ expect(p.parse("DEUT 1:1").osis()).toEqual("Deut.1.1", "parsing: 'DEUT 1:1'");
315
+ });
316
+ });
317
+
318
+ describe("Localized book Josh (il)", function() {
319
+ var p;
320
+ p = {};
321
+ beforeEach(function() {
322
+ p = new bcv_parser();
323
+ p.set_options({
324
+ book_alone_strategy: "ignore",
325
+ book_sequence_strategy: "ignore",
326
+ osis_compaction_strategy: "bc",
327
+ captive_end_digits_strategy: "delete"
328
+ });
329
+ p.include_apocrypha(true);
330
+ });
331
+ it("should handle book: Josh (il)", function() {
332
+ expect(p.parse("Josue 1:1").osis()).toEqual("Josh.1.1", "parsing: 'Josue 1:1'");
333
+ expect(p.parse("Josh 1:1").osis()).toEqual("Josh.1.1", "parsing: 'Josh 1:1'");
334
+ expect(p.parse("Jos 1:1").osis()).toEqual("Josh.1.1", "parsing: 'Jos 1:1'");
335
+ p.include_apocrypha(false);
336
+ expect(p.parse("JOSUE 1:1").osis()).toEqual("Josh.1.1", "parsing: 'JOSUE 1:1'");
337
+ expect(p.parse("JOSH 1:1").osis()).toEqual("Josh.1.1", "parsing: 'JOSH 1:1'");
338
+ expect(p.parse("JOS 1:1").osis()).toEqual("Josh.1.1", "parsing: 'JOS 1:1'");
339
+ });
340
+ });
341
+
342
+ describe("Localized book Judg (il)", function() {
343
+ var p;
344
+ p = {};
345
+ beforeEach(function() {
346
+ p = new bcv_parser();
347
+ p.set_options({
348
+ book_alone_strategy: "ignore",
349
+ book_sequence_strategy: "ignore",
350
+ osis_compaction_strategy: "bc",
351
+ captive_end_digits_strategy: "delete"
352
+ });
353
+ p.include_apocrypha(true);
354
+ });
355
+ it("should handle book: Judg (il)", function() {
356
+ expect(p.parse("Hukom 1:1").osis()).toEqual("Judg.1.1", "parsing: 'Hukom 1:1'");
357
+ expect(p.parse("Judg 1:1").osis()).toEqual("Judg.1.1", "parsing: 'Judg 1:1'");
358
+ expect(p.parse("Huk 1:1").osis()).toEqual("Judg.1.1", "parsing: 'Huk 1:1'");
359
+ p.include_apocrypha(false);
360
+ expect(p.parse("HUKOM 1:1").osis()).toEqual("Judg.1.1", "parsing: 'HUKOM 1:1'");
361
+ expect(p.parse("JUDG 1:1").osis()).toEqual("Judg.1.1", "parsing: 'JUDG 1:1'");
362
+ expect(p.parse("HUK 1:1").osis()).toEqual("Judg.1.1", "parsing: 'HUK 1:1'");
363
+ });
364
+ });
365
+
366
+ describe("Localized book Ruth (il)", function() {
367
+ var p;
368
+ p = {};
369
+ beforeEach(function() {
370
+ p = new bcv_parser();
371
+ p.set_options({
372
+ book_alone_strategy: "ignore",
373
+ book_sequence_strategy: "ignore",
374
+ osis_compaction_strategy: "bc",
375
+ captive_end_digits_strategy: "delete"
376
+ });
377
+ p.include_apocrypha(true);
378
+ });
379
+ it("should handle book: Ruth (il)", function() {
380
+ expect(p.parse("Ruth 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'Ruth 1:1'");
381
+ expect(p.parse("Rut 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'Rut 1:1'");
382
+ p.include_apocrypha(false);
383
+ expect(p.parse("RUTH 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'RUTH 1:1'");
384
+ expect(p.parse("RUT 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'RUT 1:1'");
385
+ });
386
+ });
387
+
388
+ describe("Localized book 1Esd (il)", function() {
389
+ var p;
390
+ p = {};
391
+ beforeEach(function() {
392
+ p = new bcv_parser();
393
+ p.set_options({
394
+ book_alone_strategy: "ignore",
395
+ book_sequence_strategy: "ignore",
396
+ osis_compaction_strategy: "bc",
397
+ captive_end_digits_strategy: "delete"
398
+ });
399
+ p.include_apocrypha(true);
400
+ });
401
+ it("should handle book: 1Esd (il)", function() {
402
+ expect(p.parse("1Esd 1:1").osis()).toEqual("1Esd.1.1", "parsing: '1Esd 1:1'");
403
+ });
404
+ });
405
+
406
+ describe("Localized book 2Esd (il)", function() {
407
+ var p;
408
+ p = {};
409
+ beforeEach(function() {
410
+ p = new bcv_parser();
411
+ p.set_options({
412
+ book_alone_strategy: "ignore",
413
+ book_sequence_strategy: "ignore",
414
+ osis_compaction_strategy: "bc",
415
+ captive_end_digits_strategy: "delete"
416
+ });
417
+ p.include_apocrypha(true);
418
+ });
419
+ it("should handle book: 2Esd (il)", function() {
420
+ expect(p.parse("2Esd 1:1").osis()).toEqual("2Esd.1.1", "parsing: '2Esd 1:1'");
421
+ });
422
+ });
423
+
424
+ describe("Localized book Isa (il)", function() {
425
+ var p;
426
+ p = {};
427
+ beforeEach(function() {
428
+ p = new bcv_parser();
429
+ p.set_options({
430
+ book_alone_strategy: "ignore",
431
+ book_sequence_strategy: "ignore",
432
+ osis_compaction_strategy: "bc",
433
+ captive_end_digits_strategy: "delete"
434
+ });
435
+ p.include_apocrypha(true);
436
+ });
437
+ it("should handle book: Isa (il)", function() {
438
+ expect(p.parse("Isaias 1:1").osis()).toEqual("Isa.1.1", "parsing: 'Isaias 1:1'");
439
+ expect(p.parse("Isa 1:1").osis()).toEqual("Isa.1.1", "parsing: 'Isa 1:1'");
440
+ p.include_apocrypha(false);
441
+ expect(p.parse("ISAIAS 1:1").osis()).toEqual("Isa.1.1", "parsing: 'ISAIAS 1:1'");
442
+ expect(p.parse("ISA 1:1").osis()).toEqual("Isa.1.1", "parsing: 'ISA 1:1'");
443
+ });
444
+ });
445
+
446
+ describe("Localized book 2Sam (il)", function() {
447
+ var p;
448
+ p = {};
449
+ beforeEach(function() {
450
+ p = new bcv_parser();
451
+ p.set_options({
452
+ book_alone_strategy: "ignore",
453
+ book_sequence_strategy: "ignore",
454
+ osis_compaction_strategy: "bc",
455
+ captive_end_digits_strategy: "delete"
456
+ });
457
+ p.include_apocrypha(true);
458
+ });
459
+ it("should handle book: 2Sam (il)", function() {
460
+ expect(p.parse("Maikadua Samuel 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'Maikadua Samuel 1:1'");
461
+ expect(p.parse("Maikadua Sámuel 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'Maikadua Sámuel 1:1'");
462
+ expect(p.parse("II. Samuel 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'II. Samuel 1:1'");
463
+ expect(p.parse("II. Sámuel 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'II. Sámuel 1:1'");
464
+ expect(p.parse("2. Samuel 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2. Samuel 1:1'");
465
+ expect(p.parse("2. Sámuel 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2. Sámuel 1:1'");
466
+ expect(p.parse("II Samuel 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'II Samuel 1:1'");
467
+ expect(p.parse("II Sámuel 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'II Sámuel 1:1'");
468
+ expect(p.parse("2 Samuel 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2 Samuel 1:1'");
469
+ expect(p.parse("2 Sámuel 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2 Sámuel 1:1'");
470
+ expect(p.parse("2Sam 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2Sam 1:1'");
471
+ p.include_apocrypha(false);
472
+ expect(p.parse("MAIKADUA SAMUEL 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'MAIKADUA SAMUEL 1:1'");
473
+ expect(p.parse("MAIKADUA SÁMUEL 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'MAIKADUA SÁMUEL 1:1'");
474
+ expect(p.parse("II. SAMUEL 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'II. SAMUEL 1:1'");
475
+ expect(p.parse("II. SÁMUEL 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'II. SÁMUEL 1:1'");
476
+ expect(p.parse("2. SAMUEL 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2. SAMUEL 1:1'");
477
+ expect(p.parse("2. SÁMUEL 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2. SÁMUEL 1:1'");
478
+ expect(p.parse("II SAMUEL 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'II SAMUEL 1:1'");
479
+ expect(p.parse("II SÁMUEL 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'II SÁMUEL 1:1'");
480
+ expect(p.parse("2 SAMUEL 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2 SAMUEL 1:1'");
481
+ expect(p.parse("2 SÁMUEL 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2 SÁMUEL 1:1'");
482
+ expect(p.parse("2SAM 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2SAM 1:1'");
483
+ });
484
+ });
485
+
486
+ describe("Localized book 1Sam (il)", function() {
487
+ var p;
488
+ p = {};
489
+ beforeEach(function() {
490
+ p = new bcv_parser();
491
+ p.set_options({
492
+ book_alone_strategy: "ignore",
493
+ book_sequence_strategy: "ignore",
494
+ osis_compaction_strategy: "bc",
495
+ captive_end_digits_strategy: "delete"
496
+ });
497
+ p.include_apocrypha(true);
498
+ });
499
+ it("should handle book: 1Sam (il)", function() {
500
+ expect(p.parse("Umuna Samuel 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'Umuna Samuel 1:1'");
501
+ expect(p.parse("1. Samuel 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1. Samuel 1:1'");
502
+ expect(p.parse("I. Samuel 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'I. Samuel 1:1'");
503
+ expect(p.parse("1 Samuel 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1 Samuel 1:1'");
504
+ expect(p.parse("I Samuel 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'I Samuel 1:1'");
505
+ expect(p.parse("1Sam 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1Sam 1:1'");
506
+ p.include_apocrypha(false);
507
+ expect(p.parse("UMUNA SAMUEL 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'UMUNA SAMUEL 1:1'");
508
+ expect(p.parse("1. SAMUEL 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1. SAMUEL 1:1'");
509
+ expect(p.parse("I. SAMUEL 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'I. SAMUEL 1:1'");
510
+ expect(p.parse("1 SAMUEL 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1 SAMUEL 1:1'");
511
+ expect(p.parse("I SAMUEL 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'I SAMUEL 1:1'");
512
+ expect(p.parse("1SAM 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1SAM 1:1'");
513
+ });
514
+ });
515
+
516
+ describe("Localized book 2Kgs (il)", function() {
517
+ var p;
518
+ p = {};
519
+ beforeEach(function() {
520
+ p = new bcv_parser();
521
+ p.set_options({
522
+ book_alone_strategy: "ignore",
523
+ book_sequence_strategy: "ignore",
524
+ osis_compaction_strategy: "bc",
525
+ captive_end_digits_strategy: "delete"
526
+ });
527
+ p.include_apocrypha(true);
528
+ });
529
+ it("should handle book: 2Kgs (il)", function() {
530
+ expect(p.parse("Maikadua Ari 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'Maikadua Ari 1:1'");
531
+ expect(p.parse("II. Ari 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'II. Ari 1:1'");
532
+ expect(p.parse("2. Ari 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2. Ari 1:1'");
533
+ expect(p.parse("II Ari 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'II Ari 1:1'");
534
+ expect(p.parse("2 Ari 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2 Ari 1:1'");
535
+ expect(p.parse("2Ari 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2Ari 1:1'");
536
+ expect(p.parse("2Kgs 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2Kgs 1:1'");
537
+ p.include_apocrypha(false);
538
+ expect(p.parse("MAIKADUA ARI 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'MAIKADUA ARI 1:1'");
539
+ expect(p.parse("II. ARI 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'II. ARI 1:1'");
540
+ expect(p.parse("2. ARI 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2. ARI 1:1'");
541
+ expect(p.parse("II ARI 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'II ARI 1:1'");
542
+ expect(p.parse("2 ARI 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2 ARI 1:1'");
543
+ expect(p.parse("2ARI 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2ARI 1:1'");
544
+ expect(p.parse("2KGS 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2KGS 1:1'");
545
+ });
546
+ });
547
+
548
+ describe("Localized book 1Kgs (il)", function() {
549
+ var p;
550
+ p = {};
551
+ beforeEach(function() {
552
+ p = new bcv_parser();
553
+ p.set_options({
554
+ book_alone_strategy: "ignore",
555
+ book_sequence_strategy: "ignore",
556
+ osis_compaction_strategy: "bc",
557
+ captive_end_digits_strategy: "delete"
558
+ });
559
+ p.include_apocrypha(true);
560
+ });
561
+ it("should handle book: 1Kgs (il)", function() {
562
+ expect(p.parse("Umuna Ari 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'Umuna Ari 1:1'");
563
+ expect(p.parse("1. Ari 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1. Ari 1:1'");
564
+ expect(p.parse("I. Ari 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'I. Ari 1:1'");
565
+ expect(p.parse("1 Ari 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1 Ari 1:1'");
566
+ expect(p.parse("I Ari 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'I Ari 1:1'");
567
+ expect(p.parse("1Ari 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1Ari 1:1'");
568
+ expect(p.parse("1Kgs 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1Kgs 1:1'");
569
+ p.include_apocrypha(false);
570
+ expect(p.parse("UMUNA ARI 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'UMUNA ARI 1:1'");
571
+ expect(p.parse("1. ARI 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1. ARI 1:1'");
572
+ expect(p.parse("I. ARI 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'I. ARI 1:1'");
573
+ expect(p.parse("1 ARI 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1 ARI 1:1'");
574
+ expect(p.parse("I ARI 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'I ARI 1:1'");
575
+ expect(p.parse("1ARI 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1ARI 1:1'");
576
+ expect(p.parse("1KGS 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1KGS 1:1'");
577
+ });
578
+ });
579
+
580
+ describe("Localized book 2Chr (il)", function() {
581
+ var p;
582
+ p = {};
583
+ beforeEach(function() {
584
+ p = new bcv_parser();
585
+ p.set_options({
586
+ book_alone_strategy: "ignore",
587
+ book_sequence_strategy: "ignore",
588
+ osis_compaction_strategy: "bc",
589
+ captive_end_digits_strategy: "delete"
590
+ });
591
+ p.include_apocrypha(true);
592
+ });
593
+ it("should handle book: 2Chr (il)", function() {
594
+ expect(p.parse("Maikadua Cronica 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'Maikadua Cronica 1:1'");
595
+ expect(p.parse("II. Cronica 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'II. Cronica 1:1'");
596
+ expect(p.parse("2. Cronica 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2. Cronica 1:1'");
597
+ expect(p.parse("II Cronica 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'II Cronica 1:1'");
598
+ expect(p.parse("2 Cronica 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2 Cronica 1:1'");
599
+ expect(p.parse("2Chr 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2Chr 1:1'");
600
+ expect(p.parse("2Cro 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2Cro 1:1'");
601
+ p.include_apocrypha(false);
602
+ expect(p.parse("MAIKADUA CRONICA 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'MAIKADUA CRONICA 1:1'");
603
+ expect(p.parse("II. CRONICA 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'II. CRONICA 1:1'");
604
+ expect(p.parse("2. CRONICA 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2. CRONICA 1:1'");
605
+ expect(p.parse("II CRONICA 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'II CRONICA 1:1'");
606
+ expect(p.parse("2 CRONICA 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2 CRONICA 1:1'");
607
+ expect(p.parse("2CHR 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2CHR 1:1'");
608
+ expect(p.parse("2CRO 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2CRO 1:1'");
609
+ });
610
+ });
611
+
612
+ describe("Localized book 1Chr (il)", function() {
613
+ var p;
614
+ p = {};
615
+ beforeEach(function() {
616
+ p = new bcv_parser();
617
+ p.set_options({
618
+ book_alone_strategy: "ignore",
619
+ book_sequence_strategy: "ignore",
620
+ osis_compaction_strategy: "bc",
621
+ captive_end_digits_strategy: "delete"
622
+ });
623
+ p.include_apocrypha(true);
624
+ });
625
+ it("should handle book: 1Chr (il)", function() {
626
+ expect(p.parse("Umuna Cronica 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'Umuna Cronica 1:1'");
627
+ expect(p.parse("1. Cronica 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1. Cronica 1:1'");
628
+ expect(p.parse("I. Cronica 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'I. Cronica 1:1'");
629
+ expect(p.parse("1 Cronica 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1 Cronica 1:1'");
630
+ expect(p.parse("I Cronica 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'I Cronica 1:1'");
631
+ expect(p.parse("1Chr 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1Chr 1:1'");
632
+ expect(p.parse("1Cro 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1Cro 1:1'");
633
+ p.include_apocrypha(false);
634
+ expect(p.parse("UMUNA CRONICA 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'UMUNA CRONICA 1:1'");
635
+ expect(p.parse("1. CRONICA 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1. CRONICA 1:1'");
636
+ expect(p.parse("I. CRONICA 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'I. CRONICA 1:1'");
637
+ expect(p.parse("1 CRONICA 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1 CRONICA 1:1'");
638
+ expect(p.parse("I CRONICA 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'I CRONICA 1:1'");
639
+ expect(p.parse("1CHR 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1CHR 1:1'");
640
+ expect(p.parse("1CRO 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1CRO 1:1'");
641
+ });
642
+ });
643
+
644
+ describe("Localized book Ezra (il)", 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
+ p.include_apocrypha(true);
656
+ });
657
+ it("should handle book: Ezra (il)", function() {
658
+ expect(p.parse("Ezra 1:1").osis()).toEqual("Ezra.1.1", "parsing: 'Ezra 1:1'");
659
+ expect(p.parse("Ezr 1:1").osis()).toEqual("Ezra.1.1", "parsing: 'Ezr 1:1'");
660
+ p.include_apocrypha(false);
661
+ expect(p.parse("EZRA 1:1").osis()).toEqual("Ezra.1.1", "parsing: 'EZRA 1:1'");
662
+ expect(p.parse("EZR 1:1").osis()).toEqual("Ezra.1.1", "parsing: 'EZR 1:1'");
663
+ });
664
+ });
665
+
666
+ describe("Localized book Neh (il)", function() {
667
+ var p;
668
+ p = {};
669
+ beforeEach(function() {
670
+ p = new bcv_parser();
671
+ p.set_options({
672
+ book_alone_strategy: "ignore",
673
+ book_sequence_strategy: "ignore",
674
+ osis_compaction_strategy: "bc",
675
+ captive_end_digits_strategy: "delete"
676
+ });
677
+ p.include_apocrypha(true);
678
+ });
679
+ it("should handle book: Neh (il)", function() {
680
+ expect(p.parse("Nehemias 1:1").osis()).toEqual("Neh.1.1", "parsing: 'Nehemias 1:1'");
681
+ expect(p.parse("Neh 1:1").osis()).toEqual("Neh.1.1", "parsing: 'Neh 1:1'");
682
+ p.include_apocrypha(false);
683
+ expect(p.parse("NEHEMIAS 1:1").osis()).toEqual("Neh.1.1", "parsing: 'NEHEMIAS 1:1'");
684
+ expect(p.parse("NEH 1:1").osis()).toEqual("Neh.1.1", "parsing: 'NEH 1:1'");
685
+ });
686
+ });
687
+
688
+ describe("Localized book GkEsth (il)", function() {
689
+ var p;
690
+ p = {};
691
+ beforeEach(function() {
692
+ p = new bcv_parser();
693
+ p.set_options({
694
+ book_alone_strategy: "ignore",
695
+ book_sequence_strategy: "ignore",
696
+ osis_compaction_strategy: "bc",
697
+ captive_end_digits_strategy: "delete"
698
+ });
699
+ p.include_apocrypha(true);
700
+ });
701
+ it("should handle book: GkEsth (il)", function() {
702
+ expect(p.parse("GkEsth 1:1").osis()).toEqual("GkEsth.1.1", "parsing: 'GkEsth 1:1'");
703
+ });
704
+ });
705
+
706
+ describe("Localized book Esth (il)", function() {
707
+ var p;
708
+ p = {};
709
+ beforeEach(function() {
710
+ p = new bcv_parser();
711
+ p.set_options({
712
+ book_alone_strategy: "ignore",
713
+ book_sequence_strategy: "ignore",
714
+ osis_compaction_strategy: "bc",
715
+ captive_end_digits_strategy: "delete"
716
+ });
717
+ p.include_apocrypha(true);
718
+ });
719
+ it("should handle book: Esth (il)", function() {
720
+ expect(p.parse("Esther 1:1").osis()).toEqual("Esth.1.1", "parsing: 'Esther 1:1'");
721
+ expect(p.parse("Esth 1:1").osis()).toEqual("Esth.1.1", "parsing: 'Esth 1:1'");
722
+ expect(p.parse("Est 1:1").osis()).toEqual("Esth.1.1", "parsing: 'Est 1:1'");
723
+ p.include_apocrypha(false);
724
+ expect(p.parse("ESTHER 1:1").osis()).toEqual("Esth.1.1", "parsing: 'ESTHER 1:1'");
725
+ expect(p.parse("ESTH 1:1").osis()).toEqual("Esth.1.1", "parsing: 'ESTH 1:1'");
726
+ expect(p.parse("EST 1:1").osis()).toEqual("Esth.1.1", "parsing: 'EST 1:1'");
727
+ });
728
+ });
729
+
730
+ describe("Localized book Job (il)", function() {
731
+ var p;
732
+ p = {};
733
+ beforeEach(function() {
734
+ p = new bcv_parser();
735
+ p.set_options({
736
+ book_alone_strategy: "ignore",
737
+ book_sequence_strategy: "ignore",
738
+ osis_compaction_strategy: "bc",
739
+ captive_end_digits_strategy: "delete"
740
+ });
741
+ p.include_apocrypha(true);
742
+ });
743
+ it("should handle book: Job (il)", function() {
744
+ expect(p.parse("Job 1:1").osis()).toEqual("Job.1.1", "parsing: 'Job 1:1'");
745
+ p.include_apocrypha(false);
746
+ expect(p.parse("JOB 1:1").osis()).toEqual("Job.1.1", "parsing: 'JOB 1:1'");
747
+ });
748
+ });
749
+
750
+ describe("Localized book Ps (il)", function() {
751
+ var p;
752
+ p = {};
753
+ beforeEach(function() {
754
+ p = new bcv_parser();
755
+ p.set_options({
756
+ book_alone_strategy: "ignore",
757
+ book_sequence_strategy: "ignore",
758
+ osis_compaction_strategy: "bc",
759
+ captive_end_digits_strategy: "delete"
760
+ });
761
+ p.include_apocrypha(true);
762
+ });
763
+ it("should handle book: Ps (il)", function() {
764
+ expect(p.parse("Salmo 1:1").osis()).toEqual("Ps.1.1", "parsing: 'Salmo 1:1'");
765
+ expect(p.parse("Sal 1:1").osis()).toEqual("Ps.1.1", "parsing: 'Sal 1:1'");
766
+ expect(p.parse("Ps 1:1").osis()).toEqual("Ps.1.1", "parsing: 'Ps 1:1'");
767
+ p.include_apocrypha(false);
768
+ expect(p.parse("SALMO 1:1").osis()).toEqual("Ps.1.1", "parsing: 'SALMO 1:1'");
769
+ expect(p.parse("SAL 1:1").osis()).toEqual("Ps.1.1", "parsing: 'SAL 1:1'");
770
+ expect(p.parse("PS 1:1").osis()).toEqual("Ps.1.1", "parsing: 'PS 1:1'");
771
+ });
772
+ });
773
+
774
+ describe("Localized book PrAzar (il)", 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
+ p.include_apocrypha(true);
786
+ });
787
+ it("should handle book: PrAzar (il)", function() {
788
+ expect(p.parse("PrAzar 1:1").osis()).toEqual("PrAzar.1.1", "parsing: 'PrAzar 1:1'");
789
+ });
790
+ });
791
+
792
+ describe("Localized book Prov (il)", function() {
793
+ var p;
794
+ p = {};
795
+ beforeEach(function() {
796
+ p = new bcv_parser();
797
+ p.set_options({
798
+ book_alone_strategy: "ignore",
799
+ book_sequence_strategy: "ignore",
800
+ osis_compaction_strategy: "bc",
801
+ captive_end_digits_strategy: "delete"
802
+ });
803
+ p.include_apocrypha(true);
804
+ });
805
+ it("should handle book: Prov (il)", function() {
806
+ expect(p.parse("Proberbios 1:1").osis()).toEqual("Prov.1.1", "parsing: 'Proberbios 1:1'");
807
+ expect(p.parse("Prov 1:1").osis()).toEqual("Prov.1.1", "parsing: 'Prov 1:1'");
808
+ expect(p.parse("Pro 1:1").osis()).toEqual("Prov.1.1", "parsing: 'Pro 1:1'");
809
+ p.include_apocrypha(false);
810
+ expect(p.parse("PROBERBIOS 1:1").osis()).toEqual("Prov.1.1", "parsing: 'PROBERBIOS 1:1'");
811
+ expect(p.parse("PROV 1:1").osis()).toEqual("Prov.1.1", "parsing: 'PROV 1:1'");
812
+ expect(p.parse("PRO 1:1").osis()).toEqual("Prov.1.1", "parsing: 'PRO 1:1'");
813
+ });
814
+ });
815
+
816
+ describe("Localized book Eccl (il)", function() {
817
+ var p;
818
+ p = {};
819
+ beforeEach(function() {
820
+ p = new bcv_parser();
821
+ p.set_options({
822
+ book_alone_strategy: "ignore",
823
+ book_sequence_strategy: "ignore",
824
+ osis_compaction_strategy: "bc",
825
+ captive_end_digits_strategy: "delete"
826
+ });
827
+ p.include_apocrypha(true);
828
+ });
829
+ it("should handle book: Eccl (il)", function() {
830
+ expect(p.parse("Eclesiastes 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'Eclesiastes 1:1'");
831
+ expect(p.parse("Eccl 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'Eccl 1:1'");
832
+ expect(p.parse("Ecl 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'Ecl 1:1'");
833
+ p.include_apocrypha(false);
834
+ expect(p.parse("ECLESIASTES 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'ECLESIASTES 1:1'");
835
+ expect(p.parse("ECCL 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'ECCL 1:1'");
836
+ expect(p.parse("ECL 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'ECL 1:1'");
837
+ });
838
+ });
839
+
840
+ describe("Localized book SgThree (il)", function() {
841
+ var p;
842
+ p = {};
843
+ beforeEach(function() {
844
+ p = new bcv_parser();
845
+ p.set_options({
846
+ book_alone_strategy: "ignore",
847
+ book_sequence_strategy: "ignore",
848
+ osis_compaction_strategy: "bc",
849
+ captive_end_digits_strategy: "delete"
850
+ });
851
+ p.include_apocrypha(true);
852
+ });
853
+ it("should handle book: SgThree (il)", function() {
854
+ expect(p.parse("SgThree 1:1").osis()).toEqual("SgThree.1.1", "parsing: 'SgThree 1:1'");
855
+ });
856
+ });
857
+
858
+ describe("Localized book Song (il)", function() {
859
+ var p;
860
+ p = {};
861
+ beforeEach(function() {
862
+ p = new bcv_parser();
863
+ p.set_options({
864
+ book_alone_strategy: "ignore",
865
+ book_sequence_strategy: "ignore",
866
+ osis_compaction_strategy: "bc",
867
+ captive_end_digits_strategy: "delete"
868
+ });
869
+ p.include_apocrypha(true);
870
+ });
871
+ it("should handle book: Song (il)", function() {
872
+ expect(p.parse("Canta ni Solomon 1:1").osis()).toEqual("Song.1.1", "parsing: 'Canta ni Solomon 1:1'");
873
+ expect(p.parse("Song 1:1").osis()).toEqual("Song.1.1", "parsing: 'Song 1:1'");
874
+ expect(p.parse("Can 1:1").osis()).toEqual("Song.1.1", "parsing: 'Can 1:1'");
875
+ p.include_apocrypha(false);
876
+ expect(p.parse("CANTA NI SOLOMON 1:1").osis()).toEqual("Song.1.1", "parsing: 'CANTA NI SOLOMON 1:1'");
877
+ expect(p.parse("SONG 1:1").osis()).toEqual("Song.1.1", "parsing: 'SONG 1:1'");
878
+ expect(p.parse("CAN 1:1").osis()).toEqual("Song.1.1", "parsing: 'CAN 1:1'");
879
+ });
880
+ });
881
+
882
+ describe("Localized book Jer (il)", function() {
883
+ var p;
884
+ p = {};
885
+ beforeEach(function() {
886
+ p = new bcv_parser();
887
+ p.set_options({
888
+ book_alone_strategy: "ignore",
889
+ book_sequence_strategy: "ignore",
890
+ osis_compaction_strategy: "bc",
891
+ captive_end_digits_strategy: "delete"
892
+ });
893
+ p.include_apocrypha(true);
894
+ });
895
+ it("should handle book: Jer (il)", function() {
896
+ expect(p.parse("Jeremias 1:1").osis()).toEqual("Jer.1.1", "parsing: 'Jeremias 1:1'");
897
+ expect(p.parse("Jer 1:1").osis()).toEqual("Jer.1.1", "parsing: 'Jer 1:1'");
898
+ p.include_apocrypha(false);
899
+ expect(p.parse("JEREMIAS 1:1").osis()).toEqual("Jer.1.1", "parsing: 'JEREMIAS 1:1'");
900
+ expect(p.parse("JER 1:1").osis()).toEqual("Jer.1.1", "parsing: 'JER 1:1'");
901
+ });
902
+ });
903
+
904
+ describe("Localized book Ezek (il)", function() {
905
+ var p;
906
+ p = {};
907
+ beforeEach(function() {
908
+ p = new bcv_parser();
909
+ p.set_options({
910
+ book_alone_strategy: "ignore",
911
+ book_sequence_strategy: "ignore",
912
+ osis_compaction_strategy: "bc",
913
+ captive_end_digits_strategy: "delete"
914
+ });
915
+ p.include_apocrypha(true);
916
+ });
917
+ it("should handle book: Ezek (il)", function() {
918
+ expect(p.parse("Ezekiel 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'Ezekiel 1:1'");
919
+ expect(p.parse("Ezek 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'Ezek 1:1'");
920
+ expect(p.parse("Eze 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'Eze 1:1'");
921
+ p.include_apocrypha(false);
922
+ expect(p.parse("EZEKIEL 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'EZEKIEL 1:1'");
923
+ expect(p.parse("EZEK 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'EZEK 1:1'");
924
+ expect(p.parse("EZE 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'EZE 1:1'");
925
+ });
926
+ });
927
+
928
+ describe("Localized book Dan (il)", function() {
929
+ var p;
930
+ p = {};
931
+ beforeEach(function() {
932
+ p = new bcv_parser();
933
+ p.set_options({
934
+ book_alone_strategy: "ignore",
935
+ book_sequence_strategy: "ignore",
936
+ osis_compaction_strategy: "bc",
937
+ captive_end_digits_strategy: "delete"
938
+ });
939
+ p.include_apocrypha(true);
940
+ });
941
+ it("should handle book: Dan (il)", function() {
942
+ expect(p.parse("Daniel 1:1").osis()).toEqual("Dan.1.1", "parsing: 'Daniel 1:1'");
943
+ expect(p.parse("Dan 1:1").osis()).toEqual("Dan.1.1", "parsing: 'Dan 1:1'");
944
+ p.include_apocrypha(false);
945
+ expect(p.parse("DANIEL 1:1").osis()).toEqual("Dan.1.1", "parsing: 'DANIEL 1:1'");
946
+ expect(p.parse("DAN 1:1").osis()).toEqual("Dan.1.1", "parsing: 'DAN 1:1'");
947
+ });
948
+ });
949
+
950
+ describe("Localized book Hos (il)", function() {
951
+ var p;
952
+ p = {};
953
+ beforeEach(function() {
954
+ p = new bcv_parser();
955
+ p.set_options({
956
+ book_alone_strategy: "ignore",
957
+ book_sequence_strategy: "ignore",
958
+ osis_compaction_strategy: "bc",
959
+ captive_end_digits_strategy: "delete"
960
+ });
961
+ p.include_apocrypha(true);
962
+ });
963
+ it("should handle book: Hos (il)", function() {
964
+ expect(p.parse("Oseas 1:1").osis()).toEqual("Hos.1.1", "parsing: 'Oseas 1:1'");
965
+ expect(p.parse("Hos 1:1").osis()).toEqual("Hos.1.1", "parsing: 'Hos 1:1'");
966
+ expect(p.parse("Ose 1:1").osis()).toEqual("Hos.1.1", "parsing: 'Ose 1:1'");
967
+ p.include_apocrypha(false);
968
+ expect(p.parse("OSEAS 1:1").osis()).toEqual("Hos.1.1", "parsing: 'OSEAS 1:1'");
969
+ expect(p.parse("HOS 1:1").osis()).toEqual("Hos.1.1", "parsing: 'HOS 1:1'");
970
+ expect(p.parse("OSE 1:1").osis()).toEqual("Hos.1.1", "parsing: 'OSE 1:1'");
971
+ });
972
+ });
973
+
974
+ describe("Localized book Joel (il)", function() {
975
+ var p;
976
+ p = {};
977
+ beforeEach(function() {
978
+ p = new bcv_parser();
979
+ p.set_options({
980
+ book_alone_strategy: "ignore",
981
+ book_sequence_strategy: "ignore",
982
+ osis_compaction_strategy: "bc",
983
+ captive_end_digits_strategy: "delete"
984
+ });
985
+ p.include_apocrypha(true);
986
+ });
987
+ it("should handle book: Joel (il)", function() {
988
+ expect(p.parse("Joel 1:1").osis()).toEqual("Joel.1.1", "parsing: 'Joel 1:1'");
989
+ p.include_apocrypha(false);
990
+ expect(p.parse("JOEL 1:1").osis()).toEqual("Joel.1.1", "parsing: 'JOEL 1:1'");
991
+ });
992
+ });
993
+
994
+ describe("Localized book Amos (il)", function() {
995
+ var p;
996
+ p = {};
997
+ beforeEach(function() {
998
+ p = new bcv_parser();
999
+ p.set_options({
1000
+ book_alone_strategy: "ignore",
1001
+ book_sequence_strategy: "ignore",
1002
+ osis_compaction_strategy: "bc",
1003
+ captive_end_digits_strategy: "delete"
1004
+ });
1005
+ p.include_apocrypha(true);
1006
+ });
1007
+ it("should handle book: Amos (il)", function() {
1008
+ expect(p.parse("Amos 1:1").osis()).toEqual("Amos.1.1", "parsing: 'Amos 1:1'");
1009
+ p.include_apocrypha(false);
1010
+ expect(p.parse("AMOS 1:1").osis()).toEqual("Amos.1.1", "parsing: 'AMOS 1:1'");
1011
+ });
1012
+ });
1013
+
1014
+ describe("Localized book Obad (il)", function() {
1015
+ var p;
1016
+ p = {};
1017
+ beforeEach(function() {
1018
+ p = new bcv_parser();
1019
+ p.set_options({
1020
+ book_alone_strategy: "ignore",
1021
+ book_sequence_strategy: "ignore",
1022
+ osis_compaction_strategy: "bc",
1023
+ captive_end_digits_strategy: "delete"
1024
+ });
1025
+ p.include_apocrypha(true);
1026
+ });
1027
+ it("should handle book: Obad (il)", function() {
1028
+ expect(p.parse("Obadias 1:1").osis()).toEqual("Obad.1.1", "parsing: 'Obadias 1:1'");
1029
+ expect(p.parse("Obad 1:1").osis()).toEqual("Obad.1.1", "parsing: 'Obad 1:1'");
1030
+ expect(p.parse("Oba 1:1").osis()).toEqual("Obad.1.1", "parsing: 'Oba 1:1'");
1031
+ p.include_apocrypha(false);
1032
+ expect(p.parse("OBADIAS 1:1").osis()).toEqual("Obad.1.1", "parsing: 'OBADIAS 1:1'");
1033
+ expect(p.parse("OBAD 1:1").osis()).toEqual("Obad.1.1", "parsing: 'OBAD 1:1'");
1034
+ expect(p.parse("OBA 1:1").osis()).toEqual("Obad.1.1", "parsing: 'OBA 1:1'");
1035
+ });
1036
+ });
1037
+
1038
+ describe("Localized book Jonah (il)", function() {
1039
+ var p;
1040
+ p = {};
1041
+ beforeEach(function() {
1042
+ p = new bcv_parser();
1043
+ p.set_options({
1044
+ book_alone_strategy: "ignore",
1045
+ book_sequence_strategy: "ignore",
1046
+ osis_compaction_strategy: "bc",
1047
+ captive_end_digits_strategy: "delete"
1048
+ });
1049
+ p.include_apocrypha(true);
1050
+ });
1051
+ it("should handle book: Jonah (il)", function() {
1052
+ expect(p.parse("Jonah 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'Jonah 1:1'");
1053
+ expect(p.parse("Jonas 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'Jonas 1:1'");
1054
+ expect(p.parse("Jon 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'Jon 1:1'");
1055
+ p.include_apocrypha(false);
1056
+ expect(p.parse("JONAH 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'JONAH 1:1'");
1057
+ expect(p.parse("JONAS 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'JONAS 1:1'");
1058
+ expect(p.parse("JON 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'JON 1:1'");
1059
+ });
1060
+ });
1061
+
1062
+ describe("Localized book Mic (il)", function() {
1063
+ var p;
1064
+ p = {};
1065
+ beforeEach(function() {
1066
+ p = new bcv_parser();
1067
+ p.set_options({
1068
+ book_alone_strategy: "ignore",
1069
+ book_sequence_strategy: "ignore",
1070
+ osis_compaction_strategy: "bc",
1071
+ captive_end_digits_strategy: "delete"
1072
+ });
1073
+ p.include_apocrypha(true);
1074
+ });
1075
+ it("should handle book: Mic (il)", function() {
1076
+ expect(p.parse("Miqueas 1:1").osis()).toEqual("Mic.1.1", "parsing: 'Miqueas 1:1'");
1077
+ expect(p.parse("Mic 1:1").osis()).toEqual("Mic.1.1", "parsing: 'Mic 1:1'");
1078
+ expect(p.parse("Mik 1:1").osis()).toEqual("Mic.1.1", "parsing: 'Mik 1:1'");
1079
+ p.include_apocrypha(false);
1080
+ expect(p.parse("MIQUEAS 1:1").osis()).toEqual("Mic.1.1", "parsing: 'MIQUEAS 1:1'");
1081
+ expect(p.parse("MIC 1:1").osis()).toEqual("Mic.1.1", "parsing: 'MIC 1:1'");
1082
+ expect(p.parse("MIK 1:1").osis()).toEqual("Mic.1.1", "parsing: 'MIK 1:1'");
1083
+ });
1084
+ });
1085
+
1086
+ describe("Localized book Nah (il)", function() {
1087
+ var p;
1088
+ p = {};
1089
+ beforeEach(function() {
1090
+ p = new bcv_parser();
1091
+ p.set_options({
1092
+ book_alone_strategy: "ignore",
1093
+ book_sequence_strategy: "ignore",
1094
+ osis_compaction_strategy: "bc",
1095
+ captive_end_digits_strategy: "delete"
1096
+ });
1097
+ p.include_apocrypha(true);
1098
+ });
1099
+ it("should handle book: Nah (il)", function() {
1100
+ expect(p.parse("Nahum 1:1").osis()).toEqual("Nah.1.1", "parsing: 'Nahum 1:1'");
1101
+ expect(p.parse("Nah 1:1").osis()).toEqual("Nah.1.1", "parsing: 'Nah 1:1'");
1102
+ p.include_apocrypha(false);
1103
+ expect(p.parse("NAHUM 1:1").osis()).toEqual("Nah.1.1", "parsing: 'NAHUM 1:1'");
1104
+ expect(p.parse("NAH 1:1").osis()).toEqual("Nah.1.1", "parsing: 'NAH 1:1'");
1105
+ });
1106
+ });
1107
+
1108
+ describe("Localized book Hab (il)", function() {
1109
+ var p;
1110
+ p = {};
1111
+ beforeEach(function() {
1112
+ p = new bcv_parser();
1113
+ p.set_options({
1114
+ book_alone_strategy: "ignore",
1115
+ book_sequence_strategy: "ignore",
1116
+ osis_compaction_strategy: "bc",
1117
+ captive_end_digits_strategy: "delete"
1118
+ });
1119
+ p.include_apocrypha(true);
1120
+ });
1121
+ it("should handle book: Hab (il)", function() {
1122
+ expect(p.parse("Habacuc 1:1").osis()).toEqual("Hab.1.1", "parsing: 'Habacuc 1:1'");
1123
+ expect(p.parse("Hab 1:1").osis()).toEqual("Hab.1.1", "parsing: 'Hab 1:1'");
1124
+ p.include_apocrypha(false);
1125
+ expect(p.parse("HABACUC 1:1").osis()).toEqual("Hab.1.1", "parsing: 'HABACUC 1:1'");
1126
+ expect(p.parse("HAB 1:1").osis()).toEqual("Hab.1.1", "parsing: 'HAB 1:1'");
1127
+ });
1128
+ });
1129
+
1130
+ describe("Localized book Zeph (il)", function() {
1131
+ var p;
1132
+ p = {};
1133
+ beforeEach(function() {
1134
+ p = new bcv_parser();
1135
+ p.set_options({
1136
+ book_alone_strategy: "ignore",
1137
+ book_sequence_strategy: "ignore",
1138
+ osis_compaction_strategy: "bc",
1139
+ captive_end_digits_strategy: "delete"
1140
+ });
1141
+ p.include_apocrypha(true);
1142
+ });
1143
+ it("should handle book: Zeph (il)", function() {
1144
+ expect(p.parse("Sofonias 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'Sofonias 1:1'");
1145
+ expect(p.parse("Zeph 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'Zeph 1:1'");
1146
+ expect(p.parse("Sof 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'Sof 1:1'");
1147
+ p.include_apocrypha(false);
1148
+ expect(p.parse("SOFONIAS 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'SOFONIAS 1:1'");
1149
+ expect(p.parse("ZEPH 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'ZEPH 1:1'");
1150
+ expect(p.parse("SOF 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'SOF 1:1'");
1151
+ });
1152
+ });
1153
+
1154
+ describe("Localized book Hag (il)", function() {
1155
+ var p;
1156
+ p = {};
1157
+ beforeEach(function() {
1158
+ p = new bcv_parser();
1159
+ p.set_options({
1160
+ book_alone_strategy: "ignore",
1161
+ book_sequence_strategy: "ignore",
1162
+ osis_compaction_strategy: "bc",
1163
+ captive_end_digits_strategy: "delete"
1164
+ });
1165
+ p.include_apocrypha(true);
1166
+ });
1167
+ it("should handle book: Hag (il)", function() {
1168
+ expect(p.parse("Hageo 1:1").osis()).toEqual("Hag.1.1", "parsing: 'Hageo 1:1'");
1169
+ expect(p.parse("Hag 1:1").osis()).toEqual("Hag.1.1", "parsing: 'Hag 1:1'");
1170
+ p.include_apocrypha(false);
1171
+ expect(p.parse("HAGEO 1:1").osis()).toEqual("Hag.1.1", "parsing: 'HAGEO 1:1'");
1172
+ expect(p.parse("HAG 1:1").osis()).toEqual("Hag.1.1", "parsing: 'HAG 1:1'");
1173
+ });
1174
+ });
1175
+
1176
+ describe("Localized book Zech (il)", function() {
1177
+ var p;
1178
+ p = {};
1179
+ beforeEach(function() {
1180
+ p = new bcv_parser();
1181
+ p.set_options({
1182
+ book_alone_strategy: "ignore",
1183
+ book_sequence_strategy: "ignore",
1184
+ osis_compaction_strategy: "bc",
1185
+ captive_end_digits_strategy: "delete"
1186
+ });
1187
+ p.include_apocrypha(true);
1188
+ });
1189
+ it("should handle book: Zech (il)", function() {
1190
+ expect(p.parse("Zacarias 1:1").osis()).toEqual("Zech.1.1", "parsing: 'Zacarias 1:1'");
1191
+ expect(p.parse("Zech 1:1").osis()).toEqual("Zech.1.1", "parsing: 'Zech 1:1'");
1192
+ expect(p.parse("Zac 1:1").osis()).toEqual("Zech.1.1", "parsing: 'Zac 1:1'");
1193
+ p.include_apocrypha(false);
1194
+ expect(p.parse("ZACARIAS 1:1").osis()).toEqual("Zech.1.1", "parsing: 'ZACARIAS 1:1'");
1195
+ expect(p.parse("ZECH 1:1").osis()).toEqual("Zech.1.1", "parsing: 'ZECH 1:1'");
1196
+ expect(p.parse("ZAC 1:1").osis()).toEqual("Zech.1.1", "parsing: 'ZAC 1:1'");
1197
+ });
1198
+ });
1199
+
1200
+ describe("Localized book Mal (il)", function() {
1201
+ var p;
1202
+ p = {};
1203
+ beforeEach(function() {
1204
+ p = new bcv_parser();
1205
+ p.set_options({
1206
+ book_alone_strategy: "ignore",
1207
+ book_sequence_strategy: "ignore",
1208
+ osis_compaction_strategy: "bc",
1209
+ captive_end_digits_strategy: "delete"
1210
+ });
1211
+ p.include_apocrypha(true);
1212
+ });
1213
+ it("should handle book: Mal (il)", function() {
1214
+ expect(p.parse("Malakias 1:1").osis()).toEqual("Mal.1.1", "parsing: 'Malakias 1:1'");
1215
+ expect(p.parse("Mal 1:1").osis()).toEqual("Mal.1.1", "parsing: 'Mal 1:1'");
1216
+ p.include_apocrypha(false);
1217
+ expect(p.parse("MALAKIAS 1:1").osis()).toEqual("Mal.1.1", "parsing: 'MALAKIAS 1:1'");
1218
+ expect(p.parse("MAL 1:1").osis()).toEqual("Mal.1.1", "parsing: 'MAL 1:1'");
1219
+ });
1220
+ });
1221
+
1222
+ describe("Localized book Matt (il)", function() {
1223
+ var p;
1224
+ p = {};
1225
+ beforeEach(function() {
1226
+ p = new bcv_parser();
1227
+ p.set_options({
1228
+ book_alone_strategy: "ignore",
1229
+ book_sequence_strategy: "ignore",
1230
+ osis_compaction_strategy: "bc",
1231
+ captive_end_digits_strategy: "delete"
1232
+ });
1233
+ p.include_apocrypha(true);
1234
+ });
1235
+ it("should handle book: Matt (il)", function() {
1236
+ expect(p.parse("Mateo 1:1").osis()).toEqual("Matt.1.1", "parsing: 'Mateo 1:1'");
1237
+ expect(p.parse("Matt 1:1").osis()).toEqual("Matt.1.1", "parsing: 'Matt 1:1'");
1238
+ expect(p.parse("Mat 1:1").osis()).toEqual("Matt.1.1", "parsing: 'Mat 1:1'");
1239
+ p.include_apocrypha(false);
1240
+ expect(p.parse("MATEO 1:1").osis()).toEqual("Matt.1.1", "parsing: 'MATEO 1:1'");
1241
+ expect(p.parse("MATT 1:1").osis()).toEqual("Matt.1.1", "parsing: 'MATT 1:1'");
1242
+ expect(p.parse("MAT 1:1").osis()).toEqual("Matt.1.1", "parsing: 'MAT 1:1'");
1243
+ });
1244
+ });
1245
+
1246
+ describe("Localized book Mark (il)", function() {
1247
+ var p;
1248
+ p = {};
1249
+ beforeEach(function() {
1250
+ p = new bcv_parser();
1251
+ p.set_options({
1252
+ book_alone_strategy: "ignore",
1253
+ book_sequence_strategy: "ignore",
1254
+ osis_compaction_strategy: "bc",
1255
+ captive_end_digits_strategy: "delete"
1256
+ });
1257
+ p.include_apocrypha(true);
1258
+ });
1259
+ it("should handle book: Mark (il)", function() {
1260
+ expect(p.parse("Marcos 1:1").osis()).toEqual("Mark.1.1", "parsing: 'Marcos 1:1'");
1261
+ expect(p.parse("Mark 1:1").osis()).toEqual("Mark.1.1", "parsing: 'Mark 1:1'");
1262
+ expect(p.parse("Mar 1:1").osis()).toEqual("Mark.1.1", "parsing: 'Mar 1:1'");
1263
+ p.include_apocrypha(false);
1264
+ expect(p.parse("MARCOS 1:1").osis()).toEqual("Mark.1.1", "parsing: 'MARCOS 1:1'");
1265
+ expect(p.parse("MARK 1:1").osis()).toEqual("Mark.1.1", "parsing: 'MARK 1:1'");
1266
+ expect(p.parse("MAR 1:1").osis()).toEqual("Mark.1.1", "parsing: 'MAR 1:1'");
1267
+ });
1268
+ });
1269
+
1270
+ describe("Localized book Luke (il)", function() {
1271
+ var p;
1272
+ p = {};
1273
+ beforeEach(function() {
1274
+ p = new bcv_parser();
1275
+ p.set_options({
1276
+ book_alone_strategy: "ignore",
1277
+ book_sequence_strategy: "ignore",
1278
+ osis_compaction_strategy: "bc",
1279
+ captive_end_digits_strategy: "delete"
1280
+ });
1281
+ p.include_apocrypha(true);
1282
+ });
1283
+ it("should handle book: Luke (il)", function() {
1284
+ expect(p.parse("Lucas 1:1").osis()).toEqual("Luke.1.1", "parsing: 'Lucas 1:1'");
1285
+ expect(p.parse("Luke 1:1").osis()).toEqual("Luke.1.1", "parsing: 'Luke 1:1'");
1286
+ expect(p.parse("Luc 1:1").osis()).toEqual("Luke.1.1", "parsing: 'Luc 1:1'");
1287
+ p.include_apocrypha(false);
1288
+ expect(p.parse("LUCAS 1:1").osis()).toEqual("Luke.1.1", "parsing: 'LUCAS 1:1'");
1289
+ expect(p.parse("LUKE 1:1").osis()).toEqual("Luke.1.1", "parsing: 'LUKE 1:1'");
1290
+ expect(p.parse("LUC 1:1").osis()).toEqual("Luke.1.1", "parsing: 'LUC 1:1'");
1291
+ });
1292
+ });
1293
+
1294
+ describe("Localized book 1John (il)", function() {
1295
+ var p;
1296
+ p = {};
1297
+ beforeEach(function() {
1298
+ p = new bcv_parser();
1299
+ p.set_options({
1300
+ book_alone_strategy: "ignore",
1301
+ book_sequence_strategy: "ignore",
1302
+ osis_compaction_strategy: "bc",
1303
+ captive_end_digits_strategy: "delete"
1304
+ });
1305
+ p.include_apocrypha(true);
1306
+ });
1307
+ it("should handle book: 1John (il)", function() {
1308
+ expect(p.parse("Umuna Juan 1:1").osis()).toEqual("1John.1.1", "parsing: 'Umuna Juan 1:1'");
1309
+ expect(p.parse("1. Juan 1:1").osis()).toEqual("1John.1.1", "parsing: '1. Juan 1:1'");
1310
+ expect(p.parse("I. Juan 1:1").osis()).toEqual("1John.1.1", "parsing: 'I. Juan 1:1'");
1311
+ expect(p.parse("1 Juan 1:1").osis()).toEqual("1John.1.1", "parsing: '1 Juan 1:1'");
1312
+ expect(p.parse("I Juan 1:1").osis()).toEqual("1John.1.1", "parsing: 'I Juan 1:1'");
1313
+ expect(p.parse("1John 1:1").osis()).toEqual("1John.1.1", "parsing: '1John 1:1'");
1314
+ expect(p.parse("1Jua 1:1").osis()).toEqual("1John.1.1", "parsing: '1Jua 1:1'");
1315
+ p.include_apocrypha(false);
1316
+ expect(p.parse("UMUNA JUAN 1:1").osis()).toEqual("1John.1.1", "parsing: 'UMUNA JUAN 1:1'");
1317
+ expect(p.parse("1. JUAN 1:1").osis()).toEqual("1John.1.1", "parsing: '1. JUAN 1:1'");
1318
+ expect(p.parse("I. JUAN 1:1").osis()).toEqual("1John.1.1", "parsing: 'I. JUAN 1:1'");
1319
+ expect(p.parse("1 JUAN 1:1").osis()).toEqual("1John.1.1", "parsing: '1 JUAN 1:1'");
1320
+ expect(p.parse("I JUAN 1:1").osis()).toEqual("1John.1.1", "parsing: 'I JUAN 1:1'");
1321
+ expect(p.parse("1JOHN 1:1").osis()).toEqual("1John.1.1", "parsing: '1JOHN 1:1'");
1322
+ expect(p.parse("1JUA 1:1").osis()).toEqual("1John.1.1", "parsing: '1JUA 1:1'");
1323
+ });
1324
+ });
1325
+
1326
+ describe("Localized book 2John (il)", function() {
1327
+ var p;
1328
+ p = {};
1329
+ beforeEach(function() {
1330
+ p = new bcv_parser();
1331
+ p.set_options({
1332
+ book_alone_strategy: "ignore",
1333
+ book_sequence_strategy: "ignore",
1334
+ osis_compaction_strategy: "bc",
1335
+ captive_end_digits_strategy: "delete"
1336
+ });
1337
+ p.include_apocrypha(true);
1338
+ });
1339
+ it("should handle book: 2John (il)", function() {
1340
+ expect(p.parse("Maikadua Juan 1:1").osis()).toEqual("2John.1.1", "parsing: 'Maikadua Juan 1:1'");
1341
+ expect(p.parse("II. Juan 1:1").osis()).toEqual("2John.1.1", "parsing: 'II. Juan 1:1'");
1342
+ expect(p.parse("2. Juan 1:1").osis()).toEqual("2John.1.1", "parsing: '2. Juan 1:1'");
1343
+ expect(p.parse("II Juan 1:1").osis()).toEqual("2John.1.1", "parsing: 'II Juan 1:1'");
1344
+ expect(p.parse("2 Juan 1:1").osis()).toEqual("2John.1.1", "parsing: '2 Juan 1:1'");
1345
+ expect(p.parse("2John 1:1").osis()).toEqual("2John.1.1", "parsing: '2John 1:1'");
1346
+ expect(p.parse("2Jua 1:1").osis()).toEqual("2John.1.1", "parsing: '2Jua 1:1'");
1347
+ p.include_apocrypha(false);
1348
+ expect(p.parse("MAIKADUA JUAN 1:1").osis()).toEqual("2John.1.1", "parsing: 'MAIKADUA JUAN 1:1'");
1349
+ expect(p.parse("II. JUAN 1:1").osis()).toEqual("2John.1.1", "parsing: 'II. JUAN 1:1'");
1350
+ expect(p.parse("2. JUAN 1:1").osis()).toEqual("2John.1.1", "parsing: '2. JUAN 1:1'");
1351
+ expect(p.parse("II JUAN 1:1").osis()).toEqual("2John.1.1", "parsing: 'II JUAN 1:1'");
1352
+ expect(p.parse("2 JUAN 1:1").osis()).toEqual("2John.1.1", "parsing: '2 JUAN 1:1'");
1353
+ expect(p.parse("2JOHN 1:1").osis()).toEqual("2John.1.1", "parsing: '2JOHN 1:1'");
1354
+ expect(p.parse("2JUA 1:1").osis()).toEqual("2John.1.1", "parsing: '2JUA 1:1'");
1355
+ });
1356
+ });
1357
+
1358
+ describe("Localized book 3John (il)", function() {
1359
+ var p;
1360
+ p = {};
1361
+ beforeEach(function() {
1362
+ p = new bcv_parser();
1363
+ p.set_options({
1364
+ book_alone_strategy: "ignore",
1365
+ book_sequence_strategy: "ignore",
1366
+ osis_compaction_strategy: "bc",
1367
+ captive_end_digits_strategy: "delete"
1368
+ });
1369
+ p.include_apocrypha(true);
1370
+ });
1371
+ it("should handle book: 3John (il)", function() {
1372
+ expect(p.parse("Maikatlo Juan 1:1").osis()).toEqual("3John.1.1", "parsing: 'Maikatlo Juan 1:1'");
1373
+ expect(p.parse("III. Juan 1:1").osis()).toEqual("3John.1.1", "parsing: 'III. Juan 1:1'");
1374
+ expect(p.parse("III Juan 1:1").osis()).toEqual("3John.1.1", "parsing: 'III Juan 1:1'");
1375
+ expect(p.parse("3. Juan 1:1").osis()).toEqual("3John.1.1", "parsing: '3. Juan 1:1'");
1376
+ expect(p.parse("3 Juan 1:1").osis()).toEqual("3John.1.1", "parsing: '3 Juan 1:1'");
1377
+ expect(p.parse("3John 1:1").osis()).toEqual("3John.1.1", "parsing: '3John 1:1'");
1378
+ expect(p.parse("3Jua 1:1").osis()).toEqual("3John.1.1", "parsing: '3Jua 1:1'");
1379
+ p.include_apocrypha(false);
1380
+ expect(p.parse("MAIKATLO JUAN 1:1").osis()).toEqual("3John.1.1", "parsing: 'MAIKATLO JUAN 1:1'");
1381
+ expect(p.parse("III. JUAN 1:1").osis()).toEqual("3John.1.1", "parsing: 'III. JUAN 1:1'");
1382
+ expect(p.parse("III JUAN 1:1").osis()).toEqual("3John.1.1", "parsing: 'III JUAN 1:1'");
1383
+ expect(p.parse("3. JUAN 1:1").osis()).toEqual("3John.1.1", "parsing: '3. JUAN 1:1'");
1384
+ expect(p.parse("3 JUAN 1:1").osis()).toEqual("3John.1.1", "parsing: '3 JUAN 1:1'");
1385
+ expect(p.parse("3JOHN 1:1").osis()).toEqual("3John.1.1", "parsing: '3JOHN 1:1'");
1386
+ expect(p.parse("3JUA 1:1").osis()).toEqual("3John.1.1", "parsing: '3JUA 1:1'");
1387
+ });
1388
+ });
1389
+
1390
+ describe("Localized book John (il)", function() {
1391
+ var p;
1392
+ p = {};
1393
+ beforeEach(function() {
1394
+ p = new bcv_parser();
1395
+ p.set_options({
1396
+ book_alone_strategy: "ignore",
1397
+ book_sequence_strategy: "ignore",
1398
+ osis_compaction_strategy: "bc",
1399
+ captive_end_digits_strategy: "delete"
1400
+ });
1401
+ p.include_apocrypha(true);
1402
+ });
1403
+ it("should handle book: John (il)", function() {
1404
+ expect(p.parse("John 1:1").osis()).toEqual("John.1.1", "parsing: 'John 1:1'");
1405
+ expect(p.parse("Juan 1:1").osis()).toEqual("John.1.1", "parsing: 'Juan 1:1'");
1406
+ expect(p.parse("Jua 1:1").osis()).toEqual("John.1.1", "parsing: 'Jua 1:1'");
1407
+ p.include_apocrypha(false);
1408
+ expect(p.parse("JOHN 1:1").osis()).toEqual("John.1.1", "parsing: 'JOHN 1:1'");
1409
+ expect(p.parse("JUAN 1:1").osis()).toEqual("John.1.1", "parsing: 'JUAN 1:1'");
1410
+ expect(p.parse("JUA 1:1").osis()).toEqual("John.1.1", "parsing: 'JUA 1:1'");
1411
+ });
1412
+ });
1413
+
1414
+ describe("Localized book Acts (il)", function() {
1415
+ var p;
1416
+ p = {};
1417
+ beforeEach(function() {
1418
+ p = new bcv_parser();
1419
+ p.set_options({
1420
+ book_alone_strategy: "ignore",
1421
+ book_sequence_strategy: "ignore",
1422
+ osis_compaction_strategy: "bc",
1423
+ captive_end_digits_strategy: "delete"
1424
+ });
1425
+ p.include_apocrypha(true);
1426
+ });
1427
+ it("should handle book: Acts (il)", function() {
1428
+ expect(p.parse("Aramid 1:1").osis()).toEqual("Acts.1.1", "parsing: 'Aramid 1:1'");
1429
+ expect(p.parse("Acts 1:1").osis()).toEqual("Acts.1.1", "parsing: 'Acts 1:1'");
1430
+ expect(p.parse("Ara 1:1").osis()).toEqual("Acts.1.1", "parsing: 'Ara 1:1'");
1431
+ p.include_apocrypha(false);
1432
+ expect(p.parse("ARAMID 1:1").osis()).toEqual("Acts.1.1", "parsing: 'ARAMID 1:1'");
1433
+ expect(p.parse("ACTS 1:1").osis()).toEqual("Acts.1.1", "parsing: 'ACTS 1:1'");
1434
+ expect(p.parse("ARA 1:1").osis()).toEqual("Acts.1.1", "parsing: 'ARA 1:1'");
1435
+ });
1436
+ });
1437
+
1438
+ describe("Localized book Rom (il)", function() {
1439
+ var p;
1440
+ p = {};
1441
+ beforeEach(function() {
1442
+ p = new bcv_parser();
1443
+ p.set_options({
1444
+ book_alone_strategy: "ignore",
1445
+ book_sequence_strategy: "ignore",
1446
+ osis_compaction_strategy: "bc",
1447
+ captive_end_digits_strategy: "delete"
1448
+ });
1449
+ p.include_apocrypha(true);
1450
+ });
1451
+ it("should handle book: Rom (il)", function() {
1452
+ expect(p.parse("Romano 1:1").osis()).toEqual("Rom.1.1", "parsing: 'Romano 1:1'");
1453
+ expect(p.parse("Rom 1:1").osis()).toEqual("Rom.1.1", "parsing: 'Rom 1:1'");
1454
+ p.include_apocrypha(false);
1455
+ expect(p.parse("ROMANO 1:1").osis()).toEqual("Rom.1.1", "parsing: 'ROMANO 1:1'");
1456
+ expect(p.parse("ROM 1:1").osis()).toEqual("Rom.1.1", "parsing: 'ROM 1:1'");
1457
+ });
1458
+ });
1459
+
1460
+ describe("Localized book 2Cor (il)", function() {
1461
+ var p;
1462
+ p = {};
1463
+ beforeEach(function() {
1464
+ p = new bcv_parser();
1465
+ p.set_options({
1466
+ book_alone_strategy: "ignore",
1467
+ book_sequence_strategy: "ignore",
1468
+ osis_compaction_strategy: "bc",
1469
+ captive_end_digits_strategy: "delete"
1470
+ });
1471
+ p.include_apocrypha(true);
1472
+ });
1473
+ it("should handle book: 2Cor (il)", function() {
1474
+ expect(p.parse("Maikadua Corinto 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'Maikadua Corinto 1:1'");
1475
+ expect(p.parse("II. Corinto 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'II. Corinto 1:1'");
1476
+ expect(p.parse("2. Corinto 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2. Corinto 1:1'");
1477
+ expect(p.parse("II Corinto 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'II Corinto 1:1'");
1478
+ expect(p.parse("2 Corinto 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2 Corinto 1:1'");
1479
+ expect(p.parse("2Cor 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2Cor 1:1'");
1480
+ p.include_apocrypha(false);
1481
+ expect(p.parse("MAIKADUA CORINTO 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'MAIKADUA CORINTO 1:1'");
1482
+ expect(p.parse("II. CORINTO 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'II. CORINTO 1:1'");
1483
+ expect(p.parse("2. CORINTO 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2. CORINTO 1:1'");
1484
+ expect(p.parse("II CORINTO 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'II CORINTO 1:1'");
1485
+ expect(p.parse("2 CORINTO 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2 CORINTO 1:1'");
1486
+ expect(p.parse("2COR 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2COR 1:1'");
1487
+ });
1488
+ });
1489
+
1490
+ describe("Localized book 1Cor (il)", function() {
1491
+ var p;
1492
+ p = {};
1493
+ beforeEach(function() {
1494
+ p = new bcv_parser();
1495
+ p.set_options({
1496
+ book_alone_strategy: "ignore",
1497
+ book_sequence_strategy: "ignore",
1498
+ osis_compaction_strategy: "bc",
1499
+ captive_end_digits_strategy: "delete"
1500
+ });
1501
+ p.include_apocrypha(true);
1502
+ });
1503
+ it("should handle book: 1Cor (il)", function() {
1504
+ expect(p.parse("Umuna Corinto 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'Umuna Corinto 1:1'");
1505
+ expect(p.parse("1. Corinto 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1. Corinto 1:1'");
1506
+ expect(p.parse("I. Corinto 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'I. Corinto 1:1'");
1507
+ expect(p.parse("1 Corinto 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1 Corinto 1:1'");
1508
+ expect(p.parse("I Corinto 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'I Corinto 1:1'");
1509
+ expect(p.parse("1Cor 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1Cor 1:1'");
1510
+ p.include_apocrypha(false);
1511
+ expect(p.parse("UMUNA CORINTO 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'UMUNA CORINTO 1:1'");
1512
+ expect(p.parse("1. CORINTO 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1. CORINTO 1:1'");
1513
+ expect(p.parse("I. CORINTO 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'I. CORINTO 1:1'");
1514
+ expect(p.parse("1 CORINTO 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1 CORINTO 1:1'");
1515
+ expect(p.parse("I CORINTO 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'I CORINTO 1:1'");
1516
+ expect(p.parse("1COR 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1COR 1:1'");
1517
+ });
1518
+ });
1519
+
1520
+ describe("Localized book Gal (il)", function() {
1521
+ var p;
1522
+ p = {};
1523
+ beforeEach(function() {
1524
+ p = new bcv_parser();
1525
+ p.set_options({
1526
+ book_alone_strategy: "ignore",
1527
+ book_sequence_strategy: "ignore",
1528
+ osis_compaction_strategy: "bc",
1529
+ captive_end_digits_strategy: "delete"
1530
+ });
1531
+ p.include_apocrypha(true);
1532
+ });
1533
+ it("should handle book: Gal (il)", function() {
1534
+ expect(p.parse("Galacia 1:1").osis()).toEqual("Gal.1.1", "parsing: 'Galacia 1:1'");
1535
+ expect(p.parse("Gal 1:1").osis()).toEqual("Gal.1.1", "parsing: 'Gal 1:1'");
1536
+ p.include_apocrypha(false);
1537
+ expect(p.parse("GALACIA 1:1").osis()).toEqual("Gal.1.1", "parsing: 'GALACIA 1:1'");
1538
+ expect(p.parse("GAL 1:1").osis()).toEqual("Gal.1.1", "parsing: 'GAL 1:1'");
1539
+ });
1540
+ });
1541
+
1542
+ describe("Localized book Eph (il)", function() {
1543
+ var p;
1544
+ p = {};
1545
+ beforeEach(function() {
1546
+ p = new bcv_parser();
1547
+ p.set_options({
1548
+ book_alone_strategy: "ignore",
1549
+ book_sequence_strategy: "ignore",
1550
+ osis_compaction_strategy: "bc",
1551
+ captive_end_digits_strategy: "delete"
1552
+ });
1553
+ p.include_apocrypha(true);
1554
+ });
1555
+ it("should handle book: Eph (il)", function() {
1556
+ expect(p.parse("Efeso 1:1").osis()).toEqual("Eph.1.1", "parsing: 'Efeso 1:1'");
1557
+ expect(p.parse("Efe 1:1").osis()).toEqual("Eph.1.1", "parsing: 'Efe 1:1'");
1558
+ expect(p.parse("Eph 1:1").osis()).toEqual("Eph.1.1", "parsing: 'Eph 1:1'");
1559
+ p.include_apocrypha(false);
1560
+ expect(p.parse("EFESO 1:1").osis()).toEqual("Eph.1.1", "parsing: 'EFESO 1:1'");
1561
+ expect(p.parse("EFE 1:1").osis()).toEqual("Eph.1.1", "parsing: 'EFE 1:1'");
1562
+ expect(p.parse("EPH 1:1").osis()).toEqual("Eph.1.1", "parsing: 'EPH 1:1'");
1563
+ });
1564
+ });
1565
+
1566
+ describe("Localized book Phil (il)", function() {
1567
+ var p;
1568
+ p = {};
1569
+ beforeEach(function() {
1570
+ p = new bcv_parser();
1571
+ p.set_options({
1572
+ book_alone_strategy: "ignore",
1573
+ book_sequence_strategy: "ignore",
1574
+ osis_compaction_strategy: "bc",
1575
+ captive_end_digits_strategy: "delete"
1576
+ });
1577
+ p.include_apocrypha(true);
1578
+ });
1579
+ it("should handle book: Phil (il)", function() {
1580
+ expect(p.parse("Filipos 1:1").osis()).toEqual("Phil.1.1", "parsing: 'Filipos 1:1'");
1581
+ expect(p.parse("Phil 1:1").osis()).toEqual("Phil.1.1", "parsing: 'Phil 1:1'");
1582
+ expect(p.parse("Fil 1:1").osis()).toEqual("Phil.1.1", "parsing: 'Fil 1:1'");
1583
+ p.include_apocrypha(false);
1584
+ expect(p.parse("FILIPOS 1:1").osis()).toEqual("Phil.1.1", "parsing: 'FILIPOS 1:1'");
1585
+ expect(p.parse("PHIL 1:1").osis()).toEqual("Phil.1.1", "parsing: 'PHIL 1:1'");
1586
+ expect(p.parse("FIL 1:1").osis()).toEqual("Phil.1.1", "parsing: 'FIL 1:1'");
1587
+ });
1588
+ });
1589
+
1590
+ describe("Localized book Col (il)", function() {
1591
+ var p;
1592
+ p = {};
1593
+ beforeEach(function() {
1594
+ p = new bcv_parser();
1595
+ p.set_options({
1596
+ book_alone_strategy: "ignore",
1597
+ book_sequence_strategy: "ignore",
1598
+ osis_compaction_strategy: "bc",
1599
+ captive_end_digits_strategy: "delete"
1600
+ });
1601
+ p.include_apocrypha(true);
1602
+ });
1603
+ it("should handle book: Col (il)", function() {
1604
+ expect(p.parse("Colosas 1:1").osis()).toEqual("Col.1.1", "parsing: 'Colosas 1:1'");
1605
+ expect(p.parse("Col 1:1").osis()).toEqual("Col.1.1", "parsing: 'Col 1:1'");
1606
+ p.include_apocrypha(false);
1607
+ expect(p.parse("COLOSAS 1:1").osis()).toEqual("Col.1.1", "parsing: 'COLOSAS 1:1'");
1608
+ expect(p.parse("COL 1:1").osis()).toEqual("Col.1.1", "parsing: 'COL 1:1'");
1609
+ });
1610
+ });
1611
+
1612
+ describe("Localized book 2Thess (il)", function() {
1613
+ var p;
1614
+ p = {};
1615
+ beforeEach(function() {
1616
+ p = new bcv_parser();
1617
+ p.set_options({
1618
+ book_alone_strategy: "ignore",
1619
+ book_sequence_strategy: "ignore",
1620
+ osis_compaction_strategy: "bc",
1621
+ captive_end_digits_strategy: "delete"
1622
+ });
1623
+ p.include_apocrypha(true);
1624
+ });
1625
+ it("should handle book: 2Thess (il)", function() {
1626
+ expect(p.parse("Maikadua Tesalonica 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'Maikadua Tesalonica 1:1'");
1627
+ expect(p.parse("II. Tesalonica 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'II. Tesalonica 1:1'");
1628
+ expect(p.parse("2. Tesalonica 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2. Tesalonica 1:1'");
1629
+ expect(p.parse("II Tesalonica 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'II Tesalonica 1:1'");
1630
+ expect(p.parse("2 Tesalonica 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2 Tesalonica 1:1'");
1631
+ expect(p.parse("2Thess 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2Thess 1:1'");
1632
+ expect(p.parse("2Tes 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2Tes 1:1'");
1633
+ p.include_apocrypha(false);
1634
+ expect(p.parse("MAIKADUA TESALONICA 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'MAIKADUA TESALONICA 1:1'");
1635
+ expect(p.parse("II. TESALONICA 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'II. TESALONICA 1:1'");
1636
+ expect(p.parse("2. TESALONICA 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2. TESALONICA 1:1'");
1637
+ expect(p.parse("II TESALONICA 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'II TESALONICA 1:1'");
1638
+ expect(p.parse("2 TESALONICA 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2 TESALONICA 1:1'");
1639
+ expect(p.parse("2THESS 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2THESS 1:1'");
1640
+ expect(p.parse("2TES 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2TES 1:1'");
1641
+ });
1642
+ });
1643
+
1644
+ describe("Localized book 1Thess (il)", function() {
1645
+ var p;
1646
+ p = {};
1647
+ beforeEach(function() {
1648
+ p = new bcv_parser();
1649
+ p.set_options({
1650
+ book_alone_strategy: "ignore",
1651
+ book_sequence_strategy: "ignore",
1652
+ osis_compaction_strategy: "bc",
1653
+ captive_end_digits_strategy: "delete"
1654
+ });
1655
+ p.include_apocrypha(true);
1656
+ });
1657
+ it("should handle book: 1Thess (il)", function() {
1658
+ expect(p.parse("Umuna Tesalonica 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'Umuna Tesalonica 1:1'");
1659
+ expect(p.parse("1. Tesalonica 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1. Tesalonica 1:1'");
1660
+ expect(p.parse("I. Tesalonica 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'I. Tesalonica 1:1'");
1661
+ expect(p.parse("1 Tesalonica 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1 Tesalonica 1:1'");
1662
+ expect(p.parse("I Tesalonica 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'I Tesalonica 1:1'");
1663
+ expect(p.parse("1Thess 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1Thess 1:1'");
1664
+ expect(p.parse("1Tes 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1Tes 1:1'");
1665
+ p.include_apocrypha(false);
1666
+ expect(p.parse("UMUNA TESALONICA 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'UMUNA TESALONICA 1:1'");
1667
+ expect(p.parse("1. TESALONICA 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1. TESALONICA 1:1'");
1668
+ expect(p.parse("I. TESALONICA 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'I. TESALONICA 1:1'");
1669
+ expect(p.parse("1 TESALONICA 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1 TESALONICA 1:1'");
1670
+ expect(p.parse("I TESALONICA 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'I TESALONICA 1:1'");
1671
+ expect(p.parse("1THESS 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1THESS 1:1'");
1672
+ expect(p.parse("1TES 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1TES 1:1'");
1673
+ });
1674
+ });
1675
+
1676
+ describe("Localized book 2Tim (il)", function() {
1677
+ var p;
1678
+ p = {};
1679
+ beforeEach(function() {
1680
+ p = new bcv_parser();
1681
+ p.set_options({
1682
+ book_alone_strategy: "ignore",
1683
+ book_sequence_strategy: "ignore",
1684
+ osis_compaction_strategy: "bc",
1685
+ captive_end_digits_strategy: "delete"
1686
+ });
1687
+ p.include_apocrypha(true);
1688
+ });
1689
+ it("should handle book: 2Tim (il)", function() {
1690
+ expect(p.parse("Maikadua Timoteo 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'Maikadua Timoteo 1:1'");
1691
+ expect(p.parse("II. Timoteo 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'II. Timoteo 1:1'");
1692
+ expect(p.parse("2. Timoteo 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2. Timoteo 1:1'");
1693
+ expect(p.parse("II Timoteo 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'II Timoteo 1:1'");
1694
+ expect(p.parse("2 Timoteo 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2 Timoteo 1:1'");
1695
+ expect(p.parse("2Tim 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2Tim 1:1'");
1696
+ p.include_apocrypha(false);
1697
+ expect(p.parse("MAIKADUA TIMOTEO 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'MAIKADUA TIMOTEO 1:1'");
1698
+ expect(p.parse("II. TIMOTEO 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'II. TIMOTEO 1:1'");
1699
+ expect(p.parse("2. TIMOTEO 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2. TIMOTEO 1:1'");
1700
+ expect(p.parse("II TIMOTEO 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'II TIMOTEO 1:1'");
1701
+ expect(p.parse("2 TIMOTEO 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2 TIMOTEO 1:1'");
1702
+ expect(p.parse("2TIM 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2TIM 1:1'");
1703
+ });
1704
+ });
1705
+
1706
+ describe("Localized book 1Tim (il)", function() {
1707
+ var p;
1708
+ p = {};
1709
+ beforeEach(function() {
1710
+ p = new bcv_parser();
1711
+ p.set_options({
1712
+ book_alone_strategy: "ignore",
1713
+ book_sequence_strategy: "ignore",
1714
+ osis_compaction_strategy: "bc",
1715
+ captive_end_digits_strategy: "delete"
1716
+ });
1717
+ p.include_apocrypha(true);
1718
+ });
1719
+ it("should handle book: 1Tim (il)", function() {
1720
+ expect(p.parse("Umuna Timoteo 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'Umuna Timoteo 1:1'");
1721
+ expect(p.parse("1. Timoteo 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1. Timoteo 1:1'");
1722
+ expect(p.parse("I. Timoteo 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'I. Timoteo 1:1'");
1723
+ expect(p.parse("1 Timoteo 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1 Timoteo 1:1'");
1724
+ expect(p.parse("I Timoteo 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'I Timoteo 1:1'");
1725
+ expect(p.parse("1Tim 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1Tim 1:1'");
1726
+ p.include_apocrypha(false);
1727
+ expect(p.parse("UMUNA TIMOTEO 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'UMUNA TIMOTEO 1:1'");
1728
+ expect(p.parse("1. TIMOTEO 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1. TIMOTEO 1:1'");
1729
+ expect(p.parse("I. TIMOTEO 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'I. TIMOTEO 1:1'");
1730
+ expect(p.parse("1 TIMOTEO 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1 TIMOTEO 1:1'");
1731
+ expect(p.parse("I TIMOTEO 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'I TIMOTEO 1:1'");
1732
+ expect(p.parse("1TIM 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1TIM 1:1'");
1733
+ });
1734
+ });
1735
+
1736
+ describe("Localized book Titus (il)", function() {
1737
+ var p;
1738
+ p = {};
1739
+ beforeEach(function() {
1740
+ p = new bcv_parser();
1741
+ p.set_options({
1742
+ book_alone_strategy: "ignore",
1743
+ book_sequence_strategy: "ignore",
1744
+ osis_compaction_strategy: "bc",
1745
+ captive_end_digits_strategy: "delete"
1746
+ });
1747
+ p.include_apocrypha(true);
1748
+ });
1749
+ it("should handle book: Titus (il)", function() {
1750
+ expect(p.parse("Titus 1:1").osis()).toEqual("Titus.1.1", "parsing: 'Titus 1:1'");
1751
+ expect(p.parse("Tito 1:1").osis()).toEqual("Titus.1.1", "parsing: 'Tito 1:1'");
1752
+ p.include_apocrypha(false);
1753
+ expect(p.parse("TITUS 1:1").osis()).toEqual("Titus.1.1", "parsing: 'TITUS 1:1'");
1754
+ expect(p.parse("TITO 1:1").osis()).toEqual("Titus.1.1", "parsing: 'TITO 1:1'");
1755
+ });
1756
+ });
1757
+
1758
+ describe("Localized book Phlm (il)", function() {
1759
+ var p;
1760
+ p = {};
1761
+ beforeEach(function() {
1762
+ p = new bcv_parser();
1763
+ p.set_options({
1764
+ book_alone_strategy: "ignore",
1765
+ book_sequence_strategy: "ignore",
1766
+ osis_compaction_strategy: "bc",
1767
+ captive_end_digits_strategy: "delete"
1768
+ });
1769
+ p.include_apocrypha(true);
1770
+ });
1771
+ it("should handle book: Phlm (il)", function() {
1772
+ expect(p.parse("Filemon 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'Filemon 1:1'");
1773
+ expect(p.parse("File 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'File 1:1'");
1774
+ expect(p.parse("Phlm 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'Phlm 1:1'");
1775
+ p.include_apocrypha(false);
1776
+ expect(p.parse("FILEMON 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'FILEMON 1:1'");
1777
+ expect(p.parse("FILE 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'FILE 1:1'");
1778
+ expect(p.parse("PHLM 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'PHLM 1:1'");
1779
+ });
1780
+ });
1781
+
1782
+ describe("Localized book Heb (il)", function() {
1783
+ var p;
1784
+ p = {};
1785
+ beforeEach(function() {
1786
+ p = new bcv_parser();
1787
+ p.set_options({
1788
+ book_alone_strategy: "ignore",
1789
+ book_sequence_strategy: "ignore",
1790
+ osis_compaction_strategy: "bc",
1791
+ captive_end_digits_strategy: "delete"
1792
+ });
1793
+ p.include_apocrypha(true);
1794
+ });
1795
+ it("should handle book: Heb (il)", function() {
1796
+ expect(p.parse("Hebreo 1:1").osis()).toEqual("Heb.1.1", "parsing: 'Hebreo 1:1'");
1797
+ expect(p.parse("Heb 1:1").osis()).toEqual("Heb.1.1", "parsing: 'Heb 1:1'");
1798
+ p.include_apocrypha(false);
1799
+ expect(p.parse("HEBREO 1:1").osis()).toEqual("Heb.1.1", "parsing: 'HEBREO 1:1'");
1800
+ expect(p.parse("HEB 1:1").osis()).toEqual("Heb.1.1", "parsing: 'HEB 1:1'");
1801
+ });
1802
+ });
1803
+
1804
+ describe("Localized book Jas (il)", function() {
1805
+ var p;
1806
+ p = {};
1807
+ beforeEach(function() {
1808
+ p = new bcv_parser();
1809
+ p.set_options({
1810
+ book_alone_strategy: "ignore",
1811
+ book_sequence_strategy: "ignore",
1812
+ osis_compaction_strategy: "bc",
1813
+ captive_end_digits_strategy: "delete"
1814
+ });
1815
+ p.include_apocrypha(true);
1816
+ });
1817
+ it("should handle book: Jas (il)", function() {
1818
+ expect(p.parse("Santiago 1:1").osis()).toEqual("Jas.1.1", "parsing: 'Santiago 1:1'");
1819
+ expect(p.parse("Jas 1:1").osis()).toEqual("Jas.1.1", "parsing: 'Jas 1:1'");
1820
+ expect(p.parse("San 1:1").osis()).toEqual("Jas.1.1", "parsing: 'San 1:1'");
1821
+ p.include_apocrypha(false);
1822
+ expect(p.parse("SANTIAGO 1:1").osis()).toEqual("Jas.1.1", "parsing: 'SANTIAGO 1:1'");
1823
+ expect(p.parse("JAS 1:1").osis()).toEqual("Jas.1.1", "parsing: 'JAS 1:1'");
1824
+ expect(p.parse("SAN 1:1").osis()).toEqual("Jas.1.1", "parsing: 'SAN 1:1'");
1825
+ });
1826
+ });
1827
+
1828
+ describe("Localized book 2Pet (il)", function() {
1829
+ var p;
1830
+ p = {};
1831
+ beforeEach(function() {
1832
+ p = new bcv_parser();
1833
+ p.set_options({
1834
+ book_alone_strategy: "ignore",
1835
+ book_sequence_strategy: "ignore",
1836
+ osis_compaction_strategy: "bc",
1837
+ captive_end_digits_strategy: "delete"
1838
+ });
1839
+ p.include_apocrypha(true);
1840
+ });
1841
+ it("should handle book: 2Pet (il)", function() {
1842
+ expect(p.parse("Maikadua Pedro 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'Maikadua Pedro 1:1'");
1843
+ expect(p.parse("II. Pedro 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'II. Pedro 1:1'");
1844
+ expect(p.parse("2. Pedro 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2. Pedro 1:1'");
1845
+ expect(p.parse("II Pedro 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'II Pedro 1:1'");
1846
+ expect(p.parse("2 Pedro 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2 Pedro 1:1'");
1847
+ expect(p.parse("2Ped 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2Ped 1:1'");
1848
+ expect(p.parse("2Pet 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2Pet 1:1'");
1849
+ p.include_apocrypha(false);
1850
+ expect(p.parse("MAIKADUA PEDRO 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'MAIKADUA PEDRO 1:1'");
1851
+ expect(p.parse("II. PEDRO 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'II. PEDRO 1:1'");
1852
+ expect(p.parse("2. PEDRO 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2. PEDRO 1:1'");
1853
+ expect(p.parse("II PEDRO 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'II PEDRO 1:1'");
1854
+ expect(p.parse("2 PEDRO 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2 PEDRO 1:1'");
1855
+ expect(p.parse("2PED 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2PED 1:1'");
1856
+ expect(p.parse("2PET 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2PET 1:1'");
1857
+ });
1858
+ });
1859
+
1860
+ describe("Localized book 1Pet (il)", function() {
1861
+ var p;
1862
+ p = {};
1863
+ beforeEach(function() {
1864
+ p = new bcv_parser();
1865
+ p.set_options({
1866
+ book_alone_strategy: "ignore",
1867
+ book_sequence_strategy: "ignore",
1868
+ osis_compaction_strategy: "bc",
1869
+ captive_end_digits_strategy: "delete"
1870
+ });
1871
+ p.include_apocrypha(true);
1872
+ });
1873
+ it("should handle book: 1Pet (il)", function() {
1874
+ expect(p.parse("Umuna Pedro 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'Umuna Pedro 1:1'");
1875
+ expect(p.parse("1. Pedro 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1. Pedro 1:1'");
1876
+ expect(p.parse("I. Pedro 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'I. Pedro 1:1'");
1877
+ expect(p.parse("1 Pedro 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1 Pedro 1:1'");
1878
+ expect(p.parse("I Pedro 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'I Pedro 1:1'");
1879
+ expect(p.parse("1Ped 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1Ped 1:1'");
1880
+ expect(p.parse("1Pet 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1Pet 1:1'");
1881
+ p.include_apocrypha(false);
1882
+ expect(p.parse("UMUNA PEDRO 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'UMUNA PEDRO 1:1'");
1883
+ expect(p.parse("1. PEDRO 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1. PEDRO 1:1'");
1884
+ expect(p.parse("I. PEDRO 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'I. PEDRO 1:1'");
1885
+ expect(p.parse("1 PEDRO 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1 PEDRO 1:1'");
1886
+ expect(p.parse("I PEDRO 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'I PEDRO 1:1'");
1887
+ expect(p.parse("1PED 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1PED 1:1'");
1888
+ expect(p.parse("1PET 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1PET 1:1'");
1889
+ });
1890
+ });
1891
+
1892
+ describe("Localized book Jude (il)", function() {
1893
+ var p;
1894
+ p = {};
1895
+ beforeEach(function() {
1896
+ p = new bcv_parser();
1897
+ p.set_options({
1898
+ book_alone_strategy: "ignore",
1899
+ book_sequence_strategy: "ignore",
1900
+ osis_compaction_strategy: "bc",
1901
+ captive_end_digits_strategy: "delete"
1902
+ });
1903
+ p.include_apocrypha(true);
1904
+ });
1905
+ it("should handle book: Jude (il)", function() {
1906
+ expect(p.parse("Judas 1:1").osis()).toEqual("Jude.1.1", "parsing: 'Judas 1:1'");
1907
+ expect(p.parse("Jude 1:1").osis()).toEqual("Jude.1.1", "parsing: 'Jude 1:1'");
1908
+ expect(p.parse("Jud 1:1").osis()).toEqual("Jude.1.1", "parsing: 'Jud 1:1'");
1909
+ p.include_apocrypha(false);
1910
+ expect(p.parse("JUDAS 1:1").osis()).toEqual("Jude.1.1", "parsing: 'JUDAS 1:1'");
1911
+ expect(p.parse("JUDE 1:1").osis()).toEqual("Jude.1.1", "parsing: 'JUDE 1:1'");
1912
+ expect(p.parse("JUD 1:1").osis()).toEqual("Jude.1.1", "parsing: 'JUD 1:1'");
1913
+ });
1914
+ });
1915
+
1916
+ describe("Localized book Tob (il)", function() {
1917
+ var p;
1918
+ p = {};
1919
+ beforeEach(function() {
1920
+ p = new bcv_parser();
1921
+ p.set_options({
1922
+ book_alone_strategy: "ignore",
1923
+ book_sequence_strategy: "ignore",
1924
+ osis_compaction_strategy: "bc",
1925
+ captive_end_digits_strategy: "delete"
1926
+ });
1927
+ p.include_apocrypha(true);
1928
+ });
1929
+ it("should handle book: Tob (il)", function() {
1930
+ expect(p.parse("Tob 1:1").osis()).toEqual("Tob.1.1", "parsing: 'Tob 1:1'");
1931
+ });
1932
+ });
1933
+
1934
+ describe("Localized book Jdt (il)", function() {
1935
+ var p;
1936
+ p = {};
1937
+ beforeEach(function() {
1938
+ p = new bcv_parser();
1939
+ p.set_options({
1940
+ book_alone_strategy: "ignore",
1941
+ book_sequence_strategy: "ignore",
1942
+ osis_compaction_strategy: "bc",
1943
+ captive_end_digits_strategy: "delete"
1944
+ });
1945
+ p.include_apocrypha(true);
1946
+ });
1947
+ it("should handle book: Jdt (il)", function() {
1948
+ expect(p.parse("Jdt 1:1").osis()).toEqual("Jdt.1.1", "parsing: 'Jdt 1:1'");
1949
+ });
1950
+ });
1951
+
1952
+ describe("Localized book Bar (il)", function() {
1953
+ var p;
1954
+ p = {};
1955
+ beforeEach(function() {
1956
+ p = new bcv_parser();
1957
+ p.set_options({
1958
+ book_alone_strategy: "ignore",
1959
+ book_sequence_strategy: "ignore",
1960
+ osis_compaction_strategy: "bc",
1961
+ captive_end_digits_strategy: "delete"
1962
+ });
1963
+ p.include_apocrypha(true);
1964
+ });
1965
+ it("should handle book: Bar (il)", function() {
1966
+ expect(p.parse("Bar 1:1").osis()).toEqual("Bar.1.1", "parsing: 'Bar 1:1'");
1967
+ });
1968
+ });
1969
+
1970
+ describe("Localized book Sus (il)", function() {
1971
+ var p;
1972
+ p = {};
1973
+ beforeEach(function() {
1974
+ p = new bcv_parser();
1975
+ p.set_options({
1976
+ book_alone_strategy: "ignore",
1977
+ book_sequence_strategy: "ignore",
1978
+ osis_compaction_strategy: "bc",
1979
+ captive_end_digits_strategy: "delete"
1980
+ });
1981
+ p.include_apocrypha(true);
1982
+ });
1983
+ it("should handle book: Sus (il)", function() {
1984
+ expect(p.parse("Sus 1:1").osis()).toEqual("Sus.1.1", "parsing: 'Sus 1:1'");
1985
+ });
1986
+ });
1987
+
1988
+ describe("Localized book 2Macc (il)", function() {
1989
+ var p;
1990
+ p = {};
1991
+ beforeEach(function() {
1992
+ p = new bcv_parser();
1993
+ p.set_options({
1994
+ book_alone_strategy: "ignore",
1995
+ book_sequence_strategy: "ignore",
1996
+ osis_compaction_strategy: "bc",
1997
+ captive_end_digits_strategy: "delete"
1998
+ });
1999
+ p.include_apocrypha(true);
2000
+ });
2001
+ it("should handle book: 2Macc (il)", function() {
2002
+ expect(p.parse("2Macc 1:1").osis()).toEqual("2Macc.1.1", "parsing: '2Macc 1:1'");
2003
+ });
2004
+ });
2005
+
2006
+ describe("Localized book 3Macc (il)", function() {
2007
+ var p;
2008
+ p = {};
2009
+ beforeEach(function() {
2010
+ p = new bcv_parser();
2011
+ p.set_options({
2012
+ book_alone_strategy: "ignore",
2013
+ book_sequence_strategy: "ignore",
2014
+ osis_compaction_strategy: "bc",
2015
+ captive_end_digits_strategy: "delete"
2016
+ });
2017
+ p.include_apocrypha(true);
2018
+ });
2019
+ it("should handle book: 3Macc (il)", function() {
2020
+ expect(p.parse("3Macc 1:1").osis()).toEqual("3Macc.1.1", "parsing: '3Macc 1:1'");
2021
+ });
2022
+ });
2023
+
2024
+ describe("Localized book 4Macc (il)", function() {
2025
+ var p;
2026
+ p = {};
2027
+ beforeEach(function() {
2028
+ p = new bcv_parser();
2029
+ p.set_options({
2030
+ book_alone_strategy: "ignore",
2031
+ book_sequence_strategy: "ignore",
2032
+ osis_compaction_strategy: "bc",
2033
+ captive_end_digits_strategy: "delete"
2034
+ });
2035
+ p.include_apocrypha(true);
2036
+ });
2037
+ it("should handle book: 4Macc (il)", function() {
2038
+ expect(p.parse("4Macc 1:1").osis()).toEqual("4Macc.1.1", "parsing: '4Macc 1:1'");
2039
+ });
2040
+ });
2041
+
2042
+ describe("Localized book 1Macc (il)", function() {
2043
+ var p;
2044
+ p = {};
2045
+ beforeEach(function() {
2046
+ p = new bcv_parser();
2047
+ p.set_options({
2048
+ book_alone_strategy: "ignore",
2049
+ book_sequence_strategy: "ignore",
2050
+ osis_compaction_strategy: "bc",
2051
+ captive_end_digits_strategy: "delete"
2052
+ });
2053
+ p.include_apocrypha(true);
2054
+ });
2055
+ it("should handle book: 1Macc (il)", function() {
2056
+ expect(p.parse("1Macc 1:1").osis()).toEqual("1Macc.1.1", "parsing: '1Macc 1:1'");
2057
+ });
2058
+ });
2059
+
2060
+ describe("Miscellaneous tests", function() {
2061
+ var p;
2062
+ p = {};
2063
+ beforeEach(function() {
2064
+ p = new bcv_parser();
2065
+ p.set_options({
2066
+ book_alone_strategy: "ignore",
2067
+ book_sequence_strategy: "ignore",
2068
+ osis_compaction_strategy: "bc",
2069
+ captive_end_digits_strategy: "delete"
2070
+ });
2071
+ p.include_apocrypha(true);
2072
+ });
2073
+ it("should return the expected language", function() {
2074
+ expect(p.languages).toEqual(["il"]);
2075
+ });
2076
+ it("should handle ranges (il)", function() {
2077
+ expect(p.parse("Titus 1:1 agingga iti 2").osis()).toEqual("Titus.1.1-Titus.1.2", "parsing: 'Titus 1:1 agingga iti 2'");
2078
+ expect(p.parse("Matt 1agingga iti2").osis()).toEqual("Matt.1-Matt.2", "parsing: 'Matt 1agingga iti2'");
2079
+ expect(p.parse("Phlm 2 AGINGGA ITI 3").osis()).toEqual("Phlm.1.2-Phlm.1.3", "parsing: 'Phlm 2 AGINGGA ITI 3'");
2080
+ });
2081
+ it("should handle chapters (il)", function() {
2082
+ expect(p.parse("Titus 1:1, Kapitulo 2").osis()).toEqual("Titus.1.1,Titus.2", "parsing: 'Titus 1:1, Kapitulo 2'");
2083
+ expect(p.parse("Matt 3:4 KAPITULO 6").osis()).toEqual("Matt.3.4,Matt.6", "parsing: 'Matt 3:4 KAPITULO 6'");
2084
+ });
2085
+ it("should handle verses (il)", function() {
2086
+ expect(p.parse("Exod 1:1 bersikulo 3").osis()).toEqual("Exod.1.1,Exod.1.3", "parsing: 'Exod 1:1 bersikulo 3'");
2087
+ expect(p.parse("Phlm BERSIKULO 6").osis()).toEqual("Phlm.1.6", "parsing: 'Phlm BERSIKULO 6'");
2088
+ expect(p.parse("Exod 1:1 verso 3").osis()).toEqual("Exod.1.1,Exod.1.3", "parsing: 'Exod 1:1 verso 3'");
2089
+ expect(p.parse("Phlm VERSO 6").osis()).toEqual("Phlm.1.6", "parsing: 'Phlm VERSO 6'");
2090
+ });
2091
+ it("should handle 'and' (il)", function() {
2092
+ expect(p.parse("Exod 1:1 ken 3").osis()).toEqual("Exod.1.1,Exod.1.3", "parsing: 'Exod 1:1 ken 3'");
2093
+ expect(p.parse("Phlm 2 KEN 6").osis()).toEqual("Phlm.1.2,Phlm.1.6", "parsing: 'Phlm 2 KEN 6'");
2094
+ });
2095
+ it("should handle titles (il)", function() {
2096
+ expect(p.parse("Ps 3 titulo, 4:2, 5:titulo").osis()).toEqual("Ps.3.1,Ps.4.2,Ps.5.1", "parsing: 'Ps 3 titulo, 4:2, 5:titulo'");
2097
+ expect(p.parse("PS 3 TITULO, 4:2, 5:TITULO").osis()).toEqual("Ps.3.1,Ps.4.2,Ps.5.1", "parsing: 'PS 3 TITULO, 4:2, 5:TITULO'");
2098
+ });
2099
+ it("should handle 'ff' (il)", function() {
2100
+ expect(p.parse("Rev 3ken sumaruno, 4:2ken sumaruno").osis()).toEqual("Rev.3-Rev.22,Rev.4.2-Rev.4.11", "parsing: 'Rev 3ken sumaruno, 4:2ken sumaruno'");
2101
+ expect(p.parse("REV 3 KEN SUMARUNO, 4:2 KEN SUMARUNO").osis()).toEqual("Rev.3-Rev.22,Rev.4.2-Rev.4.11", "parsing: 'REV 3 KEN SUMARUNO, 4:2 KEN SUMARUNO'");
2102
+ });
2103
+ it("should handle translations (il)", function() {
2104
+ expect(p.parse("Lev 1 (TB)").osis_and_translations()).toEqual([["Lev.1", "TB"]]);
2105
+ expect(p.parse("lev 1 tb").osis_and_translations()).toEqual([["Lev.1", "TB"]]);
2106
+ });
2107
+ it("should handle book ranges (il)", function() {
2108
+ p.set_options({
2109
+ book_alone_strategy: "full",
2110
+ book_range_strategy: "include"
2111
+ });
2112
+ expect(p.parse("Umuna agingga iti Maikatlo Juan").osis()).toEqual("1John.1-3John.1", "parsing: 'Umuna agingga iti Maikatlo Juan'");
2113
+ });
2114
+ return it("should handle boundaries (il)", function() {
2115
+ p.set_options({
2116
+ book_alone_strategy: "full"
2117
+ });
2118
+ expect(p.parse("\u2014Matt\u2014").osis()).toEqual("Matt.1-Matt.28", "parsing: '\u2014Matt\u2014'");
2119
+ expect(p.parse("\u201cMatt 1:1\u201d").osis()).toEqual("Matt.1.1", "parsing: '\u201cMatt 1:1\u201d'");
2120
+ });
2121
+ });
2122
+
2123
+ }).call(this);