Monday, January 07, 2008

Creating Bibleworks Modules from Word or HTML

A BibleWorks user has offered more help on teaching other users how to made more user (HTML-based) modules for BibleWorks:

Creating Bibleworks Modules from Word or HTML
  1. Format the webpage in Word. Make sure you use styles (heading 1, heading 2, etc). These will become your table of contents.
  2. Use msword2chm to convert the Word document to compiled help. You can get msword2chm for free here.
  3. Extract the chm using 7-zip, available here.
  4. Use tidy to clean up the HTML. Tidy is available here:
    1. From a DOS prompt, run the following command (just copy and paste to the DOS prompt)
    2. for %f in (*.htm) do tidy –i –u –w 999999 –m %f
    3. This will tidy all the htm files at once
  5. Add the necessary javascript to each html file with the addBwJs.pl (DOWNLOAD file here!). You must have Perl installed for this to work. Perl can be downloaded from here.
    1. Run addBwJs.pl in the directory with the htm files. They will all be edited automatically.
  6. 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.
  7. Use Bibleworks to tag the htm files
    1. Tools | Build Module Index
    2. Base Directory: Directory containing the htm files
    3. Bookfile name: mymodule-books.txt
    4. Base name: Name of the module
    5. Click Build and Tag.
  8. 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.
  9. Edit mymodule.chd as directed in Bibleworks documentation
  10. Copy *.chm, *.chd, and *.sdx to the databases directory and restart Bibleworks.
NOTE: Be sure to DOWNLOAD this file if you use his process as it is needed in step #5.

Labels: , ,

2 Comments:

Blogger Tim Bulkeley said...

The comment about PERL makes it sound as if some of this needs to be done on a webserver and not on my local PC. This plus the rather terse instructions mean that many of us who are less than technical wizards may not be able to follow these instructions. This is potentially a really useful set of instructions that could help others of us produce useful material in BW format, but only if someone can write it in simple not very technical language so that I can follow step by step from home.

Wed Jan 09, 03:49:00 PM PST  
Anonymous Anonymous said...

As with Tim's comments, exactamongo! The instructions (if there even are any) on the tidy link are virtually useless. Where is the download link for this program? I went to the sourceforge site, they have only available from a 2000 or 2001 build: meaning a lot of what is said of further developments on the tidy page is not incorporated.

I have looked for years for ways around the horrendous MSWord html clutter, so I am very interested in this if it is actually a compiled program that NON-LINUX users can use (nothing ag. Linux, but half the isntructions I see on sourceforge sites -- I simply have no idea what to do with them, seen to only work with Linux, unless that is, you know how to use the force)

...

Wed Mar 12, 07:39:00 PM PDT  

Post a Comment

<< Home