Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated NL parser to support "Jacobus" #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,674 changes: 2,630 additions & 2,044 deletions js/nl_bcv_parser.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/nl/book_names.txt
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@ Isa Jesaja
Isa Isa
Isa Jes
Isa Js
Jas Jacobus
Jas Jakobus
Jas Jak
Jas Jas
Expand Down
4 changes: 2 additions & 2 deletions src/nl/data.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Col [CK]olossenzen [CK]ol
Titus Titus Tit
Phlm Filémon File?m
Heb Hebreeën Hebr?
Jas Jakobus Jak
Jas Jakobus Jacobus Jak
1Pet $FIRST Petrus $FIRST Petr? 1 Pe
2Pet $SECOND Petrus $SECOND Petr? 2 Pe
1John $FIRST Johannes $FIRST Joh
Expand Down Expand Up @@ -253,7 +253,7 @@ Ezek,Ezra Ez
*Titus Titus Tit
*Phlm Filemon Filem Film
*Heb Hebreeën Hebr Heb
*Jas Jakobus Jak
*Jas Jakobus Jacobus Jak
*1Pet 1 Petrus 1 Petr 1 Pe
*2Pet 2 Petrus 2 Petr 2 Pe
*1John 1 Johannes 1 Joh
Expand Down
78 changes: 39 additions & 39 deletions src/nl/regexps.coffee

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/nl/spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2540,10 +2540,12 @@ describe "Localized book Jas (nl)", ->
p.include_apocrypha true
it "should handle book: Jas (nl)", ->
`
expect(p.parse("Jacobus 1:1").osis()).toEqual("Jas.1.1")
expect(p.parse("Jakobus 1:1").osis()).toEqual("Jas.1.1")
expect(p.parse("Jak 1:1").osis()).toEqual("Jas.1.1")
expect(p.parse("Jas 1:1").osis()).toEqual("Jas.1.1")
p.include_apocrypha(false)
expect(p.parse("JACOBUS 1:1").osis()).toEqual("Jas.1.1")
expect(p.parse("JAKOBUS 1:1").osis()).toEqual("Jas.1.1")
expect(p.parse("JAK 1:1").osis()).toEqual("Jas.1.1")
expect(p.parse("JAS 1:1").osis()).toEqual("Jas.1.1")
Expand Down
2 changes: 1 addition & 1 deletion src/nl/translations.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# When adding a new translation, add it both here and bcv_parser::translations.aliases
bcv_parser::regexps.translations = ///(?:
(?:NB(?:G51|V)|SV77|WV95|NB|SV|GNB96)
(?:NB(?:G51|V)|GNB96|WV95|SV77|SV|NB)
)\b///gi
bcv_parser::translations =
aliases:
Expand Down
Loading