Skip to content
Python scripts for converting USFM to OSIS XML
Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
usfm2osis
.coveragerc
.project
.pydevproject
.pypirc
.travis.yml
LICENSE
MANIFEST.in
README.rst
btest.sh
pylint.rc
setup.cfg
setup.py

README.rst

usfm2osis

Build Status Coverage Status PyPI Documentation Status

Tools for converting Bibles from USFM to OSIS XML

Usage: usfm2osis <osisWork> [OPTION] ...  <USFM filename|wildcard> ...
  -h, --help       print this usage information
  -d               debug mode (single-threaded, verbose output)
  -e ENCODING      input encoding override (default is to read the USFM file's
                     \ide value or assume UTF-8 encoding in its absence)
  -o FILENAME      output filename (default is: <osisWork>.osis.xml)
  -r               enable relaxed markup processing (for non-standard USFM)
  -s MODE          set book sorting mode: natural (default), alpha, canonical,
                     usfm, random, none
  -t NUM           set the number of separate processes to use (your maximum
                      thread count by default)
  -l LANG          set the language value to a BCP 47 code (\'und\' by default)
  -v               verbose feedback
  -x               disable XML validation

As an example, if you want to generate the osisWork <Bible.KJV> and your USFM
  are located in the ./KJV folder, enter:
    python usfm2osis Bible.KJV ./KJV/*.usfm
You can’t perform that action at this time.