Text Format of Various Modules
Posted: Sat Apr 11, 2009 6:03 am
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.
Bibles
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[7225] God[430] created[853] [1254] the heaven[8064]...
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.
Act 8:37[tab](Omitted)
Commentaries
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...
Dictionaries
Dictionary texts are very similar. Format them like this, topic [tab] definition on a single line.
Abba [tab]The definition goes here.
Devotions
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.
Books
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)
A NAME=[string]
HREF=[url]
TARGET=[target window spec]
ADDRESS
AREA SHAPE=POLY
SHAPE=CIRCLE
SHAPE=RECT
COORDS=[coords]
HREF=[url]
B
BIG
BLOCKQUOTE
BODY TEXT=[color]
LINK=[color]
BGCOLOR=[color]
BR ALIGN=[alignment]
CENTER
CITE
CODE
DD
DIV ALIGN=[alignment]
DL
DT
EM
FONT COLOR=[color]
SIZE=[fontsize]
FACE=[comma-separated list of facenames]
HR ALIGN=[alignment]
SIZE=[pixels]
WIDTH=[percent|pixels]
NOSHADE
H1
H2
H3
H4
H5
H6
I
IMG SRC=[url]
WIDTH=[pixels]
HEIGHT=[pixels]
ALIGN=TEXTTOP
ALIGN=CENTER
ALIGN=ABSCENTER
ALIGN=BOTTOM
USEMAP=[url]
KBD
LI
MAP NAME=[string]
META HTTP-EQUIV="Content-Type"
CONTENT=[string]
OL
P ALIGN=[alignment]
PRE
SAMP
SMALL
STRIKE
STRONG
SUB
SUP
TABLE ALIGN=[alignment]
WIDTH=[percent|pixels]
BORDER=[pixels]
VALIGN=[v_alignment]
BGCOLOR=[color]
CELLSPACING=[pixels]
CELLPADDING=[pixels]
TD ALIGN=[alignment]
VALIGN=[v_alignment]
BGCOLOR=[color]
WIDTH=[percent|pixels]
COLSPAN=[pixels]
ROWSPAN=[pixels]
NOWRAP
TH ALIGN=[alignment]
VALIGN=[v_alignment]
BGCOLOR=[color]
WIDTH=[percent|pixels]
COLSPAN=[pixels]
ROWSPAN=[pixels]
TITLE
TR ALIGN=[alignment]
VALIGN=[v_alignment]
BGCOLOR=[color]
TT
U
UL
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.
Bibles
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[7225] God[430] created[853] [1254] the heaven[8064]...
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.
Act 8:37[tab](Omitted)
Commentaries
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...
Dictionaries
Dictionary texts are very similar. Format them like this, topic [tab] definition on a single line.
Abba [tab]The definition goes here.
Devotions
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.
Books
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)
A NAME=[string]
HREF=[url]
TARGET=[target window spec]
ADDRESS
AREA SHAPE=POLY
SHAPE=CIRCLE
SHAPE=RECT
COORDS=[coords]
HREF=[url]
B
BIG
BLOCKQUOTE
BODY TEXT=[color]
LINK=[color]
BGCOLOR=[color]
BR ALIGN=[alignment]
CENTER
CITE
CODE
DD
DIV ALIGN=[alignment]
DL
DT
EM
FONT COLOR=[color]
SIZE=[fontsize]
FACE=[comma-separated list of facenames]
HR ALIGN=[alignment]
SIZE=[pixels]
WIDTH=[percent|pixels]
NOSHADE
H1
H2
H3
H4
H5
H6
I
IMG SRC=[url]
WIDTH=[pixels]
HEIGHT=[pixels]
ALIGN=TEXTTOP
ALIGN=CENTER
ALIGN=ABSCENTER
ALIGN=BOTTOM
USEMAP=[url]
KBD
LI
MAP NAME=[string]
META HTTP-EQUIV="Content-Type"
CONTENT=[string]
OL
P ALIGN=[alignment]
PRE
SAMP
SMALL
STRIKE
STRONG
SUB
SUP
TABLE ALIGN=[alignment]
WIDTH=[percent|pixels]
BORDER=[pixels]
VALIGN=[v_alignment]
BGCOLOR=[color]
CELLSPACING=[pixels]
CELLPADDING=[pixels]
TD ALIGN=[alignment]
VALIGN=[v_alignment]
BGCOLOR=[color]
WIDTH=[percent|pixels]
COLSPAN=[pixels]
ROWSPAN=[pixels]
NOWRAP
TH ALIGN=[alignment]
VALIGN=[v_alignment]
BGCOLOR=[color]
WIDTH=[percent|pixels]
COLSPAN=[pixels]
ROWSPAN=[pixels]
TITLE
TR ALIGN=[alignment]
VALIGN=[v_alignment]
BGCOLOR=[color]
TT
U
UL