parse different bible formats with Ruby
Switch branches/tags
Nothing to show
Clone or download
Latest commit 5b3f817 Nov 16, 2018

README.md

BibleParser

Build Status

This is a Ruby library for parsing different bible XML formats.

For now, it only supports USFX, OSIS and Zefania, but I hope to add support for other formats also.

Install

gem install bible_parser

Use

You can get the a bible in XML format here.

require 'bible_parser'

bible = BibleParser.new(File.open('web.usfx.xml'))
verse = bible.books.first.chapters.first.verses.first
# => <Genesis 1:1>
verse.text
# => "In the beginning, God created the heavens and the earth.\n"

License

Copyright (c) Tim Morgan. Licensed MIT. See LICENSE file.