awoken-bible / reference Goto Github PK
View Code? Open in Web Editor NEWNPM package for bible verse reference parsing, formating and meta data
License: MIT License
NPM package for bible verse reference parsing, formating and meta data
License: MIT License
This example is given in the docs: GEN1.1-2; EXO3:4 - DEU5v6,10; Revelation 22
https://awoken-bible.github.io/reference/globals.html#parse
However, it fails to parse on version 3.0.0
This library uses the KJV versification scheme, compared to this:
ESV (and others?) split 3 John 1:14 of KJV in two, adding a new verse 3 John 1:15 (see
CEV (and others?) split Rev 12:17 into two, adding a new verse Rev 12:18
Using this library to generate a list of verses therefore misses out these - which can cause errors if we iterate over two data sources (one generated based on verses from this library, and other based on verses actually present in a translation).
We should fix outstanding versification issues (such as #1) - then I think the default versification should be a "superset" which would generate all verses in all reasonable translations. This prevents this source of bugs where we miss out data.
We should export specifiic versification schemes for KJV / ESV / CEV as well.
This would (probably?) be a breaking change, so would require a major version bump.
index.ts
parses the Versification scheme in use to various modules, but not to printer
or parser
, hence these functions always use the default Versificiation scheme
I'd like a chapter_separator
format option so I can specify '; ' instead of ', '. In other words, "Isaiah 1:1; 2:2", rather than "Isaiah 1:1, 2:2"
https://awoken-bible.github.io/reference/interfaces/formatoptions.html
Example: Prv -> Proverbs.
Aliases should be incorporated in the parser, but this doesn't work when using a custom versification
I'd like a range_separator
format option so I can specify an en-dash or hyphen instead of ' - '.
https://awoken-bible.github.io/reference/interfaces/formatoptions.html
I would expect "1-2 Kings" to parse.
As a single book or in ranges that cross chapter division, "Psalm" should format to "Psalms".
Examples:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.