• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

debian/H07-May-2022-826566

MakefileH A D25-Jun-201113.9 KiB483260

README.bibleH A D25-Jun-20116.7 KiB165123

README.ftpH A D25-Jun-20111.6 KiB4231

README.linuxH A D25-Jun-2011577 2112

TAGSH A D25-Jun-201112.6 KiB441423

bible.1H A D25-Jun-201110.6 KiB412370

bible.cH A D25-Jun-201127.8 KiB986482

bible.hH A D25-Jun-20111.2 KiB4234

bible.lsmH A D25-Jun-2011487 1514

bible.pkgH A D25-Jun-20114.4 KiB144124

bible.rawtextH A D25-Jun-20114.2 MiB31,10431,103

bible.stopwordsH A D25-Jun-20112.4 KiB150145

brl-index.cH A D25-Jun-20113.5 KiB982

brl.cH A D04-Jul-201132.3 KiB1,179644

brl.hH A D25-Jun-20113.3 KiB9525

buildcmp.cH A D25-Jun-20114.4 KiB15266

cmp.hH A D25-Jun-2011352 1611

compresslib.cH A D25-Jun-201117.3 KiB633315

makeconc.plH A D03-May-20223.3 KiB10436

makeconcfile.cH A D25-Jun-201111.8 KiB405200

makeconcordanceH A D25-Jun-20114.2 KiB12043

makeindex.cH A D18-Feb-20164 KiB13941

makeindex2H A D03-May-20226 KiB19678

squish.cH A D25-Jun-201142.4 KiB1,586990

squish.hH A D25-Jun-20113.2 KiB149110

testallH A D25-Jun-20113.9 KiB189108

tsl.cH A D12-May-201823.2 KiB730337

tsl.hH A D25-Jun-20115.9 KiB16942

util.cH A D25-Jun-20115.3 KiB20756

util.hH A D25-Jun-20112.1 KiB7111

version.hH A D25-Jun-20112.7 KiB761

README.bible

1
2	README.bible
3	Bible Retrieval System
4	Chip Chapin, Hewlett Packard Company
5	Initial release, September 5, 1989
6	Last Updated: April 26, 1993
7
8
9The Bible Retrieval System (BRS) consists of a textual database of the
10Authorized ("King James") Version of the Old and New Testaments, a set
11of libraries for finding and retrieving text, and a program ("bible")
12which uses the libraries to retrieve Bible passages given references
13on the command line or from standard input.  A built-in Concordance
14(word search facility) is also supported.  A man page is provided.
15
16While the raw Bible text consumes over 4.4 megabytes, the BRS stores
17it in a special compressed form, requiring less than 1.8 megabytes.
18Despite the compression, retrieval is very fast, and a buffer caching
19scheme makes second and following references to a particular region of
20the text almost instantaneous.
21
22The concordance facility requires an additional datafile of less than
230.9 megabytes, which provides a pre-computed list of each verse in
24which a word appears.  The current implementation provides a very
25simple but effective way to logically combine the results of word
26searches to narrow a selection.
27
28
29
30INSTALLATION (building from source)
31
32You probably have two files:
33
34    bible.data.tar	Tar file containing the two data files.
35    bible.tar.Z		BRS program source distribution, including
36    	    	    	READMEs and man page.
37
38Create a directory to work in, then "cd" to it and extract files from
39the distribution archives as follows:
40
41    	    	$ tar xvf bible.data.tar
42    	    	$ zcat bible.tar.Z | tar xvf -
43
44Now execute "make" and wait for a while.
45
46		$ make
47
48When make has completed, you should be able to start up the bible
49program for interactive use:
50
51    	    	$ bible
52	or  	$ ./bible
53
54Type "?" for a summary of commands.  "Q" quits the program.
55Review the man page:
56
57    	    	$ nroff bible.1 | more
58
59If you wish to install the program, data, and man files into
60system-wide locations ("/usr/local/..."), and you have the proper
61permissions, type:
62
63		$ make install
64
65If you wish to install them somewhere else, either edit the Makefile
66and change the DEST variable, or just install the files by hand.  If
67you install the data files anywhere besides /usr/local/lib, you may
68want to edit "bible.c" to assign an initial value to "dfpath",
69otherwise use the program's "-p" option (see man page).
70
71
72
73THE LIBRARIES
74
75The Bible Retrieval System is intended to be more than just the
76"bible" retrieval program.  Two libraries of routines are provided in
77the BRS that may be used to construct other applications.
78
79The "Text Storage Library" (TSL) routines could be used for *any*
80textual data file; they are entirely independent of the structure of
81the Bible.  They support the use of the windowed compression scheme on
82any text, with fast retrieval of any particular line of the text.  The
83concordance facility is also completely generic and should work with
84any text.  For this release, no separate documentation is provided for
85the TSL, but comments in the files tsl.c, tsl.h, makeindex.c, and
86makeconcfile.c are fairly extensive.
87
88The "Bible Retrieval Library" (BRL) includes routines that are
89specifically oriented to the Book-Chapter-Verse structure of the Bible
90text, however they are independent of the storage structure of the
91textual data, leaving that to the TSL.  The BRL routines make
92retrieval programs such as "bible" extremely simple.  For this release
93no separate documentation is provided for the BRL -- see brl.c, brl.h,
94brl-index.c and bible.c.
95
96Actually, there's also a third library of sorts.  "Compresslib"
97contains a routine which may be called to uncompress a buffer of
98LZW-compressed data.
99
100
101THE COMPRESSION SCHEME
102
103The text is compressed using a modified version of the
104Lempel-Ziv-Welch "compress" program.  The modification is very simple,
105and consists merely of forcing compress to emit checkpoints after a
106fixed number of input bytes which I call a "window".  One can thus
107easily determine which compressed "window" contains a particular byte
108of the original text.  By keeping track of the locations of the
109checkpoints in the compressed data, it is then possible to uncompress
110only the windows that are needed.  By the way, the uncompression is
111done by a subroutine within the library -- no exec's or temporary
112files are used.
113
114Compression windows can be any size -- the size is stored in the data
115file and the retrieval routines treat the file accordingly.  In the
116default configuration, the windows are 64Kbytes, which was shown by
117experiment to offer a reasonable compromise between efficient
118compression and efficient buffer management.  If you want to
119experiment, you can change the window size by editing the argument to
120"squish" in the Makefile.
121
122
123Some Personal Notes...
124
125In 1979, as the owner of "Chapin Associates" in San Diego, I started a
126project to create an affordable computer-based retrieval system for
127Bible text.  Working in UCSD Pascal on a PDP-11/03 with 60Kbytes of
128memory and two 500Kbyte RX02 floppy drives, with my associates Neil
129Fraser and Jan Denser, we succeeded in prototyping a system that used
130word-level Huffman-coding for the text of the New Testament.
131Unfortunately, pressed between economics and the limitations of the
132available hardware, I wound up abandoning the effort in 1980.
133
134In early 1989 I gained access to one of the available freeware Bible
135retrieval programs for the PC.  I immediately decided that the time
136had come to "close the loop" on this particular personal dream, with
137Unix as the target environment.  There really aren't any serious
138technical challenges any more to producing an acceptable Bible
139retrieval implementation for Unix systems.  So I snatched the Bible
140text, spent a few weekends and evenings at my workstation, and here it
141is.  The LZW compression scheme is much simpler than the word-level
142Huffman coding, though the compression is not as good.  And it's great
143being able to count memory and disk storage in MBytes instead of
144KBytes.  Even so, I've really tried to keep the system's use of
145resources to a minimum.  But I don't think 1.7+ megabytes of data is
146too high a price to pay nowadays in most Unix environments.
147
148So... I hope others find these tools useful.
149
150Chip Chapin
151Hewlett Packard Company
152September 5, 1989
153
154--------------------------------------------------------------------
155Chip Chapin, Hewlett-Packard Company, California Language Lab
156            (HP/CSO/STG/STD/CLO/CLL)
157Internet:  chip@cup.hp.com             HPDesk: Chip Chapin/hp4700/um
158uucp:      ... {allegra,decvax,ihnp4,ucbvax} !hplabs!hpclbis!chip
159	or ... uunet!hp-sde!hpclbis!chip
160USMail:    MS42U5; 11000 Wolfe Road; Cupertino, CA  95014-9804;  USA
161Phone:     408/447-5735    Fax: 408/447-4924    HPTelnet: 1-447-5735
162--------------------------------------------------------------------
163
164
165

README.ftp

1~ftp/pub/bible/README.ftp
2    	    	    	       Last Updated: 930426 (release 4.00)
3
4This file describes the various files comprising a full distribution
5of the Bible Retrieval System (BRS).  It is intended primarily to
6describe the contents of the public ftp directory, but it is also
7included in the distribution and may be helpful in unraveling certain
8mysteries.  You do NOT actually need to have all these files present
9on your system for an installation.
10
11
12Files:
13
14README.ftp		What you're reading now.
15README.bible		BRS description and installation notes.
16bible.1.Z		Man page for the "bible" program.
17bible.data		Bible text data file.
18bible.data.conc		Bible concordance data file.
19bible.data.tar		Tar file containing bible.data and bible.data.conc
20bible.tar.Z		BRS program source distribution.
21bible.hp-s300		bible: HP series 300/400 executable.
22bible.hp-s800		bible: HP series 800/700 executable.
23bible-tools.tar.Z	BRS tools sources.  Only useful for hackers.
24bible.rawtext.Z	    	Unprocessed KJV bible text.  Mostly useful for hackers.
25
26For a typical FTP installation, to build the program from source, you
27ONLY need the following TWO files:
28
29    bible.data.tar	Tar file containing bible.data and bible.data.conc
30    bible.tar.Z		BRS program source distribution, including
31    	    	    	READMEs and man page.
32
33Extract from them with the following commands:
34
35    tar xvf bible.data.tar
36    zcat bible.tar.Z | tar xvf -
37
38Then type "make".  If all goes well, you can then execute "bible".
39Use the on-line help and the man page.  For more info see README.bible.
40
41-- Chip Chapin  chip@cup.hp.com
42

README.linux

1Installation (disregard any other instructions);
2
31. Unpack archive (which you appearantly have already done...)
4
52. make -> all program are made
6
73. make install -> installs the brs on your system.....
8
94. man bible  -> read information
10
115. bible -> use bible
12
13Enjoy....
14
15  Christoph Lameter, clameter@netcom.com
16
17P.S. Porting was quite easy. Had to adjust some options in the Makefile and
18changed one place in the source so that the location of the data-files can
19be defined in the Makefile. You can get the original from
20ftp.funet.fi:/pub/doc/religion/christian/Bible/unix.
21