Home

Awesome

Offene Bibel Parser

Building

To build the project:

The results reside in the install/ folder. To run the converter install/bin/exporter.sh --help.

The converter will download the translation from the Offene Bibel and create two .osis files in the install/results/ folder. The exporter caches all files it downloads to install/tmp/pageCache/. They won't be redownloaded. To redownload a file, just delete it in the cache.

There is also a convenience script that creates two sword modules, copies them to ~/.sword and creates a .zip archive: install/bin/swordConverter.sh.

And then there is the validator that checks a given Wiki page for validity. You can run it as follows: install/bin/validator.sh --help.

More format converters

The remaining formats can be created by calling different Main classes. Most of these tools do not take any command line arguments, but will just read their input files (OSIS or Zefania XML) and write output files. I run them on Windows since most of the post-processing tools run on Windows as well, but the converters should run as well on Linux (just that there are no individual shell scripts for them).

Web viewer file generation

The parser can generate files suitable as input for the Offene Bibel Web Viewer. It generates a file structure as follows:

webResults/Matthäus_12_lf
webResults/Matthäus_12_sf
webResults/Matthäus_12_ls
webResults/generated.index

Multiple runs will overwrite both, chapter files and the status file. The generated.index file will have a comment at the start indicating the date and parameters used for generation.

AST layout

Important types:

Other *Node types:

Verses have no children. They are markers.

The basic page and AST layout is:

chapter
  chapterNotes
  fassung
    [text]
    fassungNotes
  fassung
    [text]
    fassungNotes

[text] is a mostly unconstrained mixture of the following elements: