@v-bible/js-sdk
v1.0.16
Published
JavaScript SDK for v-bible
Downloads
17
Readme
:notebook_with_decorative_cover: Table of Contents
:toolbox: Getting Started
:bangbang: Prerequisites
This project uses pnpm as package manager:
npm install --global pnpm:running: Run Locally
Clone the project:
git clone https://github.com/v-bible/js-sdk.gitGo to the project directory:
cd js-sdkInstall dependencies:
pnpm install:eyes: Usage
Utils
Process Verse
Convert verse data to markdown and HTML format.
[!NOTE] For markdown format, your markdown processor SHOULD support GFM footnotes.
Verse Parse
This util comply with the Biblical References: Format, Examples, History format.
You can use function NormalizeQueryUs or NormalizeQueryEu to normalize query
to smaller chapters, ensuring each chapters will have start and end verse. The
* means taking all verses. For example:
| American Abbr. | NormalizeQueryUs | Biblical Passage | European Abbr. | NormalizeQueryEu | |-----------------------------------------|----------------------------------------|-----------------------------------------------------------------------------------------------------------|-------------------------|----------------------------------------| | John 9 | 9:*-* | The Gospel according to John, chapter 9 | John 9 | 9,*-* | | John 9, 12 | 9:*-*;12:*-* | John, chapters 9 and 12 (two chapters only) | John 9; 12 | 9,*-*;12,*-* | | John 9--12 | 9:*-*;10:*-*;11:*-*;12:*-* | John, chapters 9 through 12 (four chaps. total) | John 9--12 | 9,*-*;10,*-*;11,*-*;12,*-* | | John 9:12 | 9:12-12 | John, chapter 9, verse 12 (only one verse) | John 9,12 | 9,12-12 | | John 9:12b | 9:12b-12b | John, chapter 9, only the second part of verse 12 | John 9,12b | 9,12b-12b | | John 9:1, 12 | 9:1-1;9:12-12 | John, chapter 9, verses 1 and 12 only | John 9,1.12 | 9,1-1;9,12-12 | | John 9:1-12 | 9:1-12 | John, chapter 9, the passage from verse 1 to verse 12 | John 9,1-12 | 9,1-12 | | John 9:1-12, 36 | 9:1-12;9:36-36 | John, chapter 9, from verse 1 to verse 12, and verse 36 | John 9,1-12.36 | 9,1-12;9,36-36 | | John 9:1; 12:36 | 9:1-1;12:36-36 | John, only the two verses 9:1 and 12:36 | John 9,1; 12,36 | 9,1-1;12,36-36 | | John 9:1--12:36 | 9:1-*;10:*-*;11:*-*;12:*-36 | John, the whole section from 9:1 to 12:36 | John 9,1--12,36 | 9,1-*;10,*-*;11,*-*;12,*-36 | | John 9:1-12; 12:3-6 | 9:1-12;12:3-6 | John, the two passages 9:1-12 and 12:3-6 | John 9,1-12; 12,3-6 | 9,1-12;12,3-6 | | John 9:1-3, 6-12; 12:3-6 | 9:1-3;9:6-12;12:3-6 | three passages: John 9:1-3; and 9:6-12; and John 12:3-6 | John 9,1-3.6-12; 12,3-6 | 9,1-3;9,6-12;12,3-6 | | John 9:1-3, 6-12--12:3-6 (Additional) | 9:1-3;9:6-*;10:*-*;11:*-*;12:*-6 | John, passage 9:1-3, whole section from 9:6 to 12:6 | John 9,1-3.6-12--12,3-6 | 9,1-3;9,6-*;10,*-*;11,*-*;12,*-6 | | John 9:12-13 | 9:12-13 | John, chapter 9, verses 12 and 13 ("12 and following") | John 9,12f | Not supported | | not used; better to list exact verse #s | Not supported | John, chapter 9, verse 12 "and the following verses"; but how many? the end of the text is not specified! | John 9,12ff | Not supported |
[!NOTE] For chapter range, you MUST use
--(two hyphens) not special characters, the same for verse range-.
For parsing verses:
- Each verses will have
NumberandOrder, withOrderstarts from0fora,1forb,2forc, etc. *is converted toNumber:-1andOrder:-1.9:12bis convertedNumber:12andOrder:1.
:compass: Roadmap
- [ ] ktcgkpv: Add footnotes for proper names.
- [ ] Add tests.
:wave: Contributing
Contributions are always welcome!
Please read the contribution guidelines.
:scroll: Code of Conduct
Please read the Code of Conduct.
:warning: License
This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License.
See the LICENSE.md file for full details.
:handshake: Contact
Duong Vinh - [email protected]
Project Link: https://github.com/v-bible/js-sdk.
:gem: Acknowledgements
Here are useful resources and libraries that we have used in our projects:
- The Lectionary for Mass (1998/2002 USA Edition): compiled by Felix Just, S.J., Ph.D.
- Electronic New Testament Educational Resources: compiled by Felix Just, S.J., Ph.D.
- Biblical Book Names & Abbreviations: compiled by Felix Just, S.J., Ph.D.
- Calendar of Lectionary Cycles and Movable Liturgical Feasts (1969 – 2100): compiled by Felix Just, S.J., Ph.D.
- Biblical References: Format, Examples, History: compiled by Felix Just, S.J., Ph.D.
- Basic Texts for the Roman Catholic Eucharist - THE ORDER OF MASS: compiled by Felix Just, S.J., Ph.D.
- Liturgical Ordo 2023 – 2024: from Liturgical Office England & Wales.
- Liturgical Calendar for the Dioceses of the United States of America.

