Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seven1m/bible_parser
parse different bible formats with Ruby
https://github.com/seven1m/bible_parser
bible bible-verse ruby
Last synced: about 1 month ago
JSON representation
parse different bible formats with Ruby
- Host: GitHub
- URL: https://github.com/seven1m/bible_parser
- Owner: seven1m
- License: mit
- Created: 2015-04-30T01:59:48.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-05-13T23:45:36.000Z (9 months ago)
- Last Synced: 2025-01-03T01:39:38.094Z (about 1 month ago)
- Topics: bible, bible-verse, ruby
- Language: Ruby
- Homepage:
- Size: 170 KB
- Stars: 54
- Watchers: 6
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# BibleParser
[![Build](https://github.com/seven1m/bible_parser/actions/workflows/specs.yml/badge.svg)](https://github.com/seven1m/bible_parser/actions/workflows/specs.yml)
This is a Ruby library for parsing different bible XML formats.
We currently support:
- USFX (for USFM, see 'Other Tools' below)
- OSIS
- Zefania## Install
```
gem install bible_parser
```## Use
You can get a bible version in XML format [here](https://github.com/seven1m/open-bibles).
```ruby
require 'bible_parser'bible = BibleParser.new(File.open('web.usfx.xml'))
verse = bible.books.first.chapters.first.verses.first
# =>
verse.text
# => "In the beginning, God created the heavens and the earth.\n"
```## License
Copyright (c) Tim Morgan. Licensed MIT. See LICENSE file.
## Other Tools
- [u2o](https://github.com/adyeths/u2o) - Python script to convert from USFM (a format our library does not support) to OSIS (an XML format we do support)