bible-ref-parse 2.1.17 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +1 -14
- package/package.json +56 -41
- package/js/ar_bcv_parser.js +0 -6892
- package/js/ascii_bcv_parser.js +0 -7811
- package/js/bg_bcv_parser.js +0 -7566
- package/js/ceb_bcv_parser.js +0 -6910
- package/js/cs_bcv_parser.js +0 -7611
- package/js/da_bcv_parser.js +0 -6977
- package/js/de_bcv_parser.js +0 -8404
- package/js/el_bcv_parser.js +0 -7339
- package/js/en_bcv_parser.d.ts +0 -5
- package/js/en_bcv_parser.js +0 -8402
- package/js/en_bcv_parser.min.js +0 -221
- package/js/es_bcv_parser.js +0 -7554
- package/js/eu/Readme.md +0 -20
- package/js/fa_bcv_parser.d.ts +0 -5
- package/js/fa_bcv_parser.js +0 -7601
- package/js/fi_bcv_parser.js +0 -7047
- package/js/fr_bcv_parser.js +0 -7267
- package/js/full_bcv_parser.d.ts +0 -5
- package/js/full_bcv_parser.js +0 -8497
- package/js/he_bcv_parser.js +0 -6513
- package/js/hi_bcv_parser.js +0 -7478
- package/js/hr_bcv_parser.js +0 -7498
- package/js/ht_bcv_parser.js +0 -6938
- package/js/hu_bcv_parser.js +0 -7783
- package/js/is_bcv_parser.js +0 -6970
- package/js/it_bcv_parser.js +0 -7873
- package/js/ja_bcv_parser.js +0 -7526
- package/js/jv_bcv_parser.js +0 -6901
- package/js/ko_bcv_parser.js +0 -6940
- package/js/la_bcv_parser.js +0 -7146
- package/js/mk_bcv_parser.js +0 -7505
- package/js/mr_bcv_parser.js +0 -6892
- package/js/ne_bcv_parser.js +0 -6890
- package/js/nl_bcv_parser.js +0 -7748
- package/js/no_bcv_parser.js +0 -7050
- package/js/or_bcv_parser.js +0 -6892
- package/js/pa_bcv_parser.js +0 -6890
- package/js/pl_bcv_parser.js +0 -7327
- package/js/pt_bcv_parser.js +0 -7412
- package/js/ro_bcv_parser.js +0 -7185
- package/js/ru_bcv_parser.js +0 -7600
- package/js/sk_bcv_parser.js +0 -7130
- package/js/so_bcv_parser.js +0 -6896
- package/js/sq_bcv_parser.js +0 -6890
- package/js/sr_bcv_parser.js +0 -7508
- package/js/sv_bcv_parser.js +0 -6981
- package/js/sw_bcv_parser.js +0 -7538
- package/js/ta_bcv_parser.js +0 -7512
- package/js/th_bcv_parser.js +0 -7476
- package/js/tl_bcv_parser.js +0 -6965
- package/js/tr_bcv_parser.js +0 -7085
- package/js/uk_bcv_parser.js +0 -7539
- package/js/ur_bcv_parser.js +0 -6976
- package/js/vi_bcv_parser.js +0 -6892
- package/js/zh_bcv_parser.js +0 -7000
package/Readme.md
CHANGED
|
@@ -498,7 +498,7 @@ Most of these languages are in [Google Translate](https://translate.google.com/)
|
|
|
498
498
|
<tr><td>el</td><td>Greek (mostly ancient)</td></tr>
|
|
499
499
|
<tr><td>en</td><td>English</td></tr>
|
|
500
500
|
<tr><td>es</td><td>Spanish</td></tr>
|
|
501
|
-
<tr><td>fa</td><td>Farsi / Persian
|
|
501
|
+
<tr><td>fa</td><td>Farsi / Persian</td></tr>
|
|
502
502
|
<tr><td>fi</td><td>Finnish</td></tr>
|
|
503
503
|
<tr><td>fr</td><td>French</td></tr>
|
|
504
504
|
<tr><td>he</td><td>Hebrew</td></tr>
|
|
@@ -547,19 +547,6 @@ When using `<script>`s on the web, be sure to serve them with the `utf-8` charac
|
|
|
547
547
|
<script src="en_bcv_parser.min.js" charset="UTF-8"></script>
|
|
548
548
|
```
|
|
549
549
|
|
|
550
|
-
### Cross-Language Support
|
|
551
|
-
|
|
552
|
-
Two files in [`/js`](https://github.com/bibleutils/bible-ref-parse/tree/master/js) provide support for identifying translations in multiple languages at one time (e.g., "Matthew 2, Juan 1"). You can use this support if you don't know ahead of time what language someone might be using.
|
|
553
|
-
|
|
554
|
-
The files are:
|
|
555
|
-
|
|
556
|
-
1. `ascii_bcv_parser.js`. Only supports characters in the set `[\x00-\x7f\u2000-\u206F]` (ASCII characters and certain punctuation marks like em-dashes). It runs about 4% slower than just the `en` file, parsing around 122KB per second in the fuzz tester.
|
|
557
|
-
1. `full_bcv_parser.js`. Parse book names across all languages. It runs about 6% slower than the `en` file, parsing around 120KB per second in the fuzz tester.
|
|
558
|
-
|
|
559
|
-
Some features, such as psalm titles, are still English-only, even in these cross-language files.
|
|
560
|
-
|
|
561
|
-
Executing `bin/add_cross_lang.pl full` or `bin/add_cross_lang.pl ascii` will recompile the needed source files. You can then compile the files as usual using the [build instructions](#building).
|
|
562
|
-
|
|
563
550
|
## Compatibility
|
|
564
551
|
|
|
565
552
|
I've specifically tested the following browsers, but it should work in any modern browser. If not, please feel free to open an issue.
|
package/package.json
CHANGED
|
@@ -1,43 +1,58 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
2
|
+
"name": "bible-ref-parse",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "Identifies and parses Bible references (like John 3:16) in over 40 languages.",
|
|
5
|
+
"main": "js/",
|
|
6
|
+
"directories": {
|
|
7
|
+
"lib": "lib",
|
|
8
|
+
"test": "test"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"js/",
|
|
12
|
+
"Readme.md"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git://github.com/bibleutils/bible-ref-parse.git"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"bible",
|
|
20
|
+
"verses",
|
|
21
|
+
"passage"
|
|
22
|
+
],
|
|
23
|
+
"author": "Bible Utils",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/bibleutils/bible-ref-parse/issues"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://github.com/bibleutils/bible-ref-parse",
|
|
29
|
+
"scripts": {
|
|
30
|
+
"add-language-legacy": "cd bin && perl 01.add_lang.pl",
|
|
31
|
+
"add-language": "cd bin && tsx 01.add-lang.ts",
|
|
32
|
+
"compile-language-legacy": "cd bin && perl 02.compile.pl",
|
|
33
|
+
"compile-language": "cd bin && npx tsx 02.compile.ts",
|
|
34
|
+
"build": "node build.js",
|
|
35
|
+
"build-legacy": "bash -c 'npm run add-language-legacy $0 && npm run compile-language-legacy $0'",
|
|
36
|
+
"test-language": "bash -c 'npx jasmine-node dist/test/$0.spec.js'",
|
|
37
|
+
"test-language:all": "jasmine-node dist/test/*.spec.js",
|
|
38
|
+
"test": "(find test/js -name *.spec.ts | xargs -I % sh -c 'echo %; npx jasmine-node %';) || exit 1;"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/base-64": "^1.0.2",
|
|
42
|
+
"@types/jest": "^29.5.12",
|
|
43
|
+
"@types/node": "^22.5.1",
|
|
44
|
+
"coffeescript": "^2.7.0",
|
|
45
|
+
"jasmine-node": "^1.16.2",
|
|
46
|
+
"pegjs": "^0.10.0",
|
|
47
|
+
"regexgen": "^1.3.0",
|
|
48
|
+
"typescript": "^5.5.4",
|
|
49
|
+
"yargs": "^17.7.2"
|
|
50
|
+
},
|
|
51
|
+
"packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447",
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"base-64": "^1.0.0",
|
|
54
|
+
"json5": "^2.2.3",
|
|
55
|
+
"tsx": "^4.19.0",
|
|
56
|
+
"xregexp": "^5.1.1"
|
|
57
|
+
}
|
|
43
58
|
}
|