View Full Version : Creating Bibleworks Modules from Word or HTML

01-03-2008, 04:09 PM
I realize this is a complicated process, and if I could make it simpler, I would. However, it does work.

Creating Bibleworks Modules from Word or HTML

Format the webpage in Word. Make sure you use styles (heading 1, heading 2, etc). These will become your table of contents.
Use msword2chm to convert the Word document to compiled help. You can get msword2chm for free from http://sourceforge.net/project/showfiles.php?group_id=195459.
Extract the chm using 7-zip, available at www.7-zip.org (http://www.7-zip.org/).
Use tidy to clean up the HTML. Tidy is available here: http://tidy.sourceforge.net/#binaries
From a DOS prompt, run the following command (just copy and paste to the DOS prompt)
for %f in (*.htm) do tidy i u w 999999 m %f
This will tidy all the htm files at once
Add the necessary javascript to each html file with the addBwJs.pl. You must have Perl installed for this to work. Perl can be downloaded from http://www.activestate.com/store/download.aspx?prdGUID=81fbce82-6bd5-49bc-a915-08d58c2648ca
Run addBwJs.pl in the directory with the htm files. They will all be edited automatically.
From the sampleHTMLHelp.zip file (c:\Program Files\Bibleworks 7\sampleHTMLHelp.zip), copy the files bw.js, mymodule.chd and mymodule-books.txt to the htm directory.
Use Bibleworks to tag the htm files
Tools | Build Module Index
Base Directory: Directory containing the htm files
Bookfile name: mymodule-books.txt
Base name: Name of the module
Click Build and Tag.
Use HTML Help Workshop to recompile the HTML. When you create a new project, note that you will already have the HTML files, the index, and the Table of Contents.
Edit mymodule.chd as directed in Bibleworks documentation
Copy *.chm, *.chd, and *.sdx to the databases directory and restart Bibleworks.

Michael Hanel
01-07-2008, 04:54 PM
Thanks Richard. I have also re-posted this and the file on the BibleWorks blog. (http://bibleworks.oldinthenew.org/2008/01/creating-bibleworks-modules-from-word.html)