Creating Custom Modules for Bible Analyzer
There are two steps involved in making a database module for Bible Analyzer.
1. Formatting the raw text
2. Converting the formatted text into the database format.
In this post we will look at formatting the raw text. Bible Analyzer version 3.7 will include a utility to convert the formatted text into a module.
Formatting Raw Text
Below we will deal with formatting each module type separately.
Bible texts are simple to format. Each line must contain a single reference and verse separated by a tab. Texts can also contain italics tags (<i>, </i>) and red-letter tags (<r>, </r>). Strong's numbers can be included with the number in brackets after the word. For instance,
(The [tab] represents a tab from the keyboard Tab key)
Gen 1:1[tab]In the beginning...
Gen 1:4[tab]And God saw the light, that <i>it was</i> good...
Mat 5:5[tab]<r>Blessed <i>are</i> the poor in spirit....</r>
Gen 1:1[tab]In the beginning God created  the heaven...
The book references must be the three letter abbreviation found in the Bible Tree in Bible Analyzer. There can not be more than 31102 lines/verses. The entire Bible does not have to be included, but it is best if divisions are between books or chapters. Also, it is best if the reference is still listed for omitted verses within a chapter.
Commentary texts are much the same except the comment is placed after the tab. Also, references can be for books or chapters alone, and can span verses.
Gen[tab]Comment for the whole book
Gen 1:[tab]Comment for the chapter
Gen 1:1[tab]This is commentary for a single verse...
Gen 1:2-4[tab]This comment spans a range of verses...
Dictionary texts are very similar. Format them like this, topic [tab] definition on a single line.
Abba [tab]The definition goes here.
Devotions should number 366 (one for each day) and be formatted as, month [tab] day [tab] devotion on a single line,
2[tab]29[tab]This is the devotion for February 29, leap day.
7[tab]4[tab]This is the devotion for July 4.
Library books are a little different. They do not need to be compiled into the Bible Analyzer database format. They are only slightly modified HTML files. Books of a single chapter need no modification except they must conform the the available tags listed below.
Multi-chapter books must have the chapter title and chapter body on a single line separated by a tab.
Chapter 1[tab]Chapter body goes here...
All texts must have a title within title tags,
<title>My book Title Goes Here</title>
Open any book included with Bible Analyzer in a text editor (Notepad++ is good) for an example.
List of Supported HTML Tags
(These can be used in all modules and books)
TARGET=[target window spec]
FACE=[comma-separated list of facenames]
Developer, Bible Analyzer
But to him that worketh not, but believeth on him that justifieth the ungodly, his faith is counted for righteousness. (Rom 4:5 AV)