Skip to content

jimbob88/bible-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Jimbob88's Bible Maker

This is a piece of software to help you generate your own copy of the bible!

Initial setup

pip install -r requirements.txt

Using a zip - Guide

  1. Download the copy of your bible from Crosswire's Module Database. I personally chose: GerBoLut
  2. Save the location of [bible_id].zip
  3. Execute main.py
python -m bible_maker --module [bible_id].zip
  1. Compile the generate.tex file. For example:
latexmk -pvc -pdf -xelatex -interaction=nonstopmode generate.tex 

or

latexmk -pdflatex=lualatex -pdf .\generate.tex

Using a Diff - Guide (Alternative Method)

  1. Download the copy of your bible from Crosswire's Module Database. I personally chose: GerBoLut
  2. Download a copy of schierlm's BibleMultiConverter. I'd recommend BibleMultiConverter-AllInOneEdition-0.0.8.zip (this is the current version available as of 29/08/2022)
  3. Unzip your copy of BibleMultiConverter. This created the directory C:\Users\black\Downloads\BibleMultiConverter-AllInOneEdition-0.0.8 on my system.
  4. Unzip your Bible from crosswire into a folder of the same name GerBoLut.zip -> .\GerBoLut. Move this folder into the same folder as BibleMultiConverter (WARNING: This is not the correct method as of 16/01/2022, you need to install this bible as a module, to do this easily download a copy of Bible Time and install your bible from there) Extract from the downloaded zip (i.e. gerbolut.zip): /modules/texts/ztext/. For GerBoLut this meant I now had a file called GerBoLut containing both ot and nt files (i.e. nt.bzz)
  5. Open a commandline window in the directory which contains BibleMultiConverter-AllInOneEdition.jar. ( Shift+Right-Click Open PowerShell window here)
  6. Generate a "Diffable" file: For example, if I was doing this for GerBoLut:
> java -jar .\BibleMultiConverter-AllInOneEdition.jar SWORD .\GerBoLut\ Diffable .\gerbolut.txt

The general form would be:

> java -jar .\BibleMultiConverter-AllInOneEdition.jar SWORD .\<FOLDER CONTAINING modules DIRECTORY>\ Diffable .\<any text file name>.txt
  1. Download a copy of my bible maker!
  2. Copy your text file to the same directory and open a new powershell window here (as seen in 5.)
  3. Open the template.tex file and change the author, date, name as you like!
  4. Generate your bible tex file:
> python -m bible_maker -b .\<the name of your text file>.txt
  1. Compile your .tex file in any way you like! For example:
> pdflatex .\generate.tex

Known Issues

  • You can't mess and change the names of the books in the bible, because the paragrapher relies on these names to be the same, this could cause any number of issues if you start fiddling with stuff! This should be fixed sometime in the future!
  • If you don't have much memory pdflatex can sometimes fail

Screenshots

Genesis in GerBoLut

You may be wondering how this version of the bible has convenient breaks throughout the text (not in the PSALMS though), this is using the sister project Carriage Return Bible Versifier (also developed by me). After you have generated your first bible without these convenient line breaks, consider going over there and checking it out!

Credits

Usage

usage: __main__.py [-h] [--paragrapher PARAGRAPHER] (--module MODULE | --bibletxt BIBLETXT)

A software for generating bibles

options:
  -h, --help            show this help message and exit
  --paragrapher PARAGRAPHER, -p PARAGRAPHER
                        select where the paragraphing json is
  --module MODULE, -m MODULE
                        Choose which bible SWORD module zip to use
  --bibletxt BIBLETXT, -b BIBLETXT
                        Choose which bible DIFFABLE you will use