0.03
Low commit activity in last 3 years
A long-lived project that still receives updates
Library for parsing the bible in various formats
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
= 3.2.0

Runtime

>= 1.6.0
 Project Readme

BibleParser

Build

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.

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.

Other Tools

  • u2o - Python script to convert from USFM (a format our library does not support) to OSIS (an XML format we do support)