bible-ref-parse 2.1.18 → 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.
Files changed (57) hide show
  1. package/Readme.md +1 -14
  2. package/package.json +56 -41
  3. package/js/ar_bcv_parser.js +0 -6892
  4. package/js/ascii_bcv_parser.js +0 -7811
  5. package/js/bg_bcv_parser.js +0 -7566
  6. package/js/ceb_bcv_parser.js +0 -6910
  7. package/js/cs_bcv_parser.js +0 -7611
  8. package/js/da_bcv_parser.js +0 -6977
  9. package/js/de_bcv_parser.js +0 -8404
  10. package/js/el_bcv_parser.js +0 -7339
  11. package/js/en_bcv_parser.d.ts +0 -5
  12. package/js/en_bcv_parser.js +0 -8402
  13. package/js/en_bcv_parser.min.js +0 -221
  14. package/js/es_bcv_parser.js +0 -7554
  15. package/js/eu/Readme.md +0 -20
  16. package/js/fa_bcv_parser.d.ts +0 -5
  17. package/js/fa_bcv_parser.js +0 -7601
  18. package/js/fi_bcv_parser.js +0 -7047
  19. package/js/fr_bcv_parser.js +0 -7267
  20. package/js/full_bcv_parser.d.ts +0 -5
  21. package/js/full_bcv_parser.js +0 -8497
  22. package/js/he_bcv_parser.js +0 -6513
  23. package/js/hi_bcv_parser.js +0 -7478
  24. package/js/hr_bcv_parser.js +0 -7498
  25. package/js/ht_bcv_parser.js +0 -6938
  26. package/js/hu_bcv_parser.js +0 -7783
  27. package/js/is_bcv_parser.js +0 -6970
  28. package/js/it_bcv_parser.js +0 -7873
  29. package/js/ja_bcv_parser.js +0 -7526
  30. package/js/jv_bcv_parser.js +0 -6901
  31. package/js/ko_bcv_parser.js +0 -6940
  32. package/js/la_bcv_parser.js +0 -7146
  33. package/js/mk_bcv_parser.js +0 -7505
  34. package/js/mr_bcv_parser.js +0 -6892
  35. package/js/ne_bcv_parser.js +0 -6890
  36. package/js/nl_bcv_parser.js +0 -7748
  37. package/js/no_bcv_parser.js +0 -7050
  38. package/js/or_bcv_parser.js +0 -6892
  39. package/js/pa_bcv_parser.js +0 -6890
  40. package/js/pl_bcv_parser.js +0 -7327
  41. package/js/pt_bcv_parser.js +0 -7412
  42. package/js/ro_bcv_parser.js +0 -7185
  43. package/js/ru_bcv_parser.js +0 -7600
  44. package/js/sk_bcv_parser.js +0 -7130
  45. package/js/so_bcv_parser.js +0 -6896
  46. package/js/sq_bcv_parser.js +0 -6890
  47. package/js/sr_bcv_parser.js +0 -7508
  48. package/js/sv_bcv_parser.js +0 -6981
  49. package/js/sw_bcv_parser.js +0 -7538
  50. package/js/ta_bcv_parser.js +0 -7512
  51. package/js/th_bcv_parser.js +0 -7476
  52. package/js/tl_bcv_parser.js +0 -7553
  53. package/js/tr_bcv_parser.js +0 -7085
  54. package/js/uk_bcv_parser.js +0 -7539
  55. package/js/ur_bcv_parser.js +0 -6976
  56. package/js/vi_bcv_parser.js +0 -6892
  57. 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 (but it is not part of `full` build yet)</td></tr>
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
- "name": "bible-ref-parse",
3
- "version": "2.1.18",
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": "cd bin && perl 01.add_lang.pl",
31
- "compile-language": "cd bin && perl 02.compile.pl",
32
- "build-language": "bash -c 'npm run add-language $0 && npm run compile-language $0'",
33
- "test-language": "bash -c 'jasmine-node test/js/$0.spec.js'",
34
- "test": "(find test/js -name *.spec.js | xargs -I % sh -c 'echo %; jasmine-node %';) || exit 1;"
35
- },
36
- "devDependencies": {
37
- "coffeescript": "^2.7.0",
38
- "jasmine-node": "^1.15.0",
39
- "pegjs": "^0.10.0",
40
- "regexgen": "^1.3.0"
41
- },
42
- "packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
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
  }