PDA

View Full Version : How to develope a Bibleworks module - Personal help


pasquale
12-17-2006, 12:42 AM
If you're going to create a Bibleworks Module you need some helps.
My personal attention points (I am not responsible for a bad use of this help):

For a complete help you must use Bibleworks help

Question = In what directory I must insert my project files?

Answer = To edit a Bibleworks module all files of your project must be in the same directory (only one directory).

Question = How to call my files?

Answer = Better is to have a progressive numbers, I generally use 10001.htm, 10002.htm and so on.
Why I use this names for my files?
Because when you Tags your files with Bibleworks tool Build Module Index, this tool tags every files (that are in your project directory) and make an index (file sdx) that Bibleworks need to link the Bible with your new module. The tool makes also another files with extension YourProjectName_idx.txt in this file to open with wordpad you can to look into what file are indexed, therefore if you use a progressive numbers you can to look if all files are indexed (Build Module index can jump some files).

Question: My files can be tagged normally?

Answer: No there Is a Javascript to put into the file, therefore open every html file and Edit your html file inserting after The title:

<title>YOUR TITLE</title>
<script language="JavaScript" src="bwjs.js"></script>
</head>
<BODY onkeypress="BwOnKeyPress()" onload="BwOnLoad()">

red is only for explanation

Advice: I have edited - with the BW scripts - 122 files in progressive numbers that I use for all my works. (you can rename it with a free tool LupasRename)

Question = What is Bwjs.js?
Answer: It is an essential script. There is in a zip file in the directory (where you have Bibleworks) generally c:\Program files\Bibleworks\sampleHTMLHelp.zip the file zip where into is bw.js. You must insert this bw.js in your project directory. (where are your html file, your work);


Question = What Bible references I must use?
Answer = You must use Roman digit and in this form: Three Bibleworks Book Name: Gen, Deu, Mat, Mar… et alia, Mat 1:1-4 and so on, don't use this reference Mat 1:1-2:4 but for the same reference use Mat 1:1-25 and Mat 2:1-4; don't use Deu 20, but use Deu 20:1-20.

Question Where are I put the file mymodule-books.txt?
Answer: renam it so YourProjectfileName-book.txt and put it in the same directory of the project. (At the bot of this help there are some notes how it works)


Question = When I must open Build Module Index?

Answer: After you have edited every project files, open Bibleworks, Tools Build Module Index, select your project directory and click on Tag and Build Index (if you works in different time – to day I tag some files, and tomorrow I want tag others files, it is not a good system, you must move your file already tagged in another directory and after Tag and Build index the new files. At the end of the works move all files in the same directory , open Bibleworks Tools Build Module index and cick on Build Index Only.

Now you have your files tagged to works with the scripts, you also have the file YourProjectName.sdx (it is the index), YourProjectName_idx.txt (to manage the file indexed). Now you must build your chm file (with HTML workshop or much easier with a chm compiler or creator et alia).

But before to have a good work you must open one by one your files in the browsers (internet explorer) to see and correct some bad o fake links. Bibleworks Build module Index there isn't perfect,

You must edited your modules, and after manually correct some fakes links (or not linked).
After editing you open still Bibleworks Tools Build Module index and click on Build Index Only. (Bibleworks build a new sdk).

Question = Now I have this file YourProjectName.chm, YourProjectName.sdx (the last edited), YourProjectName._idx.txt. I have finished?

Answer= No. Now you must create the file chd (advice, copy in your Project directory and open an existent chd (it is in Bibleworks databases directory and open it with notepad) and adapt it at your project and save it with YourProjectName.chd).

Finally copy in your Bibewors databases directory three file (the chm, the sdk and the chd), remember share it if it is in Public Domain or your personal write with other users from this forum or if copywrited use only for your personal use.

Tool:
1) An html editor;
2) from microsoft "HTML workshop" it is free;
3) Third tool for making a chm file easier a chm compiler/decompiler (search in internet a free chm creator or compiler or maker - it is free: Abee CHM Maker 1.0 - on Tucows - I don't know how it works it is to try).
4) Lupas rename free - for rename many files at the same time;
5) another tool that search and repalce (search words into the codex of html file (without open the file) and replace (without open the file) directly in the codex html with others words (search and replace into many files at the same time).

Question = How to develope a greek-another language dictionary module?

Answer = To develope a greek dictionary module - at the moment - you must create an html file for every word of the dictionary (5500 words=5500 files html) and in every html file you must insert the scripture reference concordace of the specific word, and the title inserted into the html codex must be it: <title>Word1</title>, <title>Word2</title> and so on.

Question = What is the font to use?
Answer = What you prefer, it is not indispensable a Bibleworks font.

Question = It is an hard work to develope a complete greek-another language dictionary?
Answer = It is a very very hard work......

Ciao Pasquale



How works mymodule-books.txt (before open the file with wordpad or notepad)

#BETWEEN_CHAPTER_VERSE_MARKERS :
Designates the characters that can appear between a chapter and verse reference. In the US, it is usually ':' (e.g. John 3:16, Rom 3:23). In the UK, it is usually '.' (e.g. John 3.16, Rom 3.23).

#BETWEEN_REF_MARKERS ;,
Designates the characters used between references. For example, in this example, "John 3:16; Rom 3:23", the ";" is used between references. For example, in this example, "John 3:16; Rom 3:23, 6:23", the ";" and "," are used between references.

#RANGE_MARKERS -
Designates the characters used to designate a range of verses or chapters (e.g. "-" denotes a range of verses in the text "Joh 1:1-13").

#CHAPTER_NUMS_CAN_BE_PARENNED n
When set to 'y', this identifies parenthetical references such as "(3:23)"
in the text.

#SKIP_TAGS n
When set to 'y', this ignores text surrounded by <>, such as "<verse ref val="joh 1">".

#PRINT_BR_TAG_BTN_LINES y
When generating HTML from the input file, setting this value to 'y' will insert a <br> tag between lines.

#USE_AGGRESSIVE_LOOKAHEAD n
When set to 'y', this can help identify references that are being missed. It may, however, introduce errors, depending on the content of the input file.

Michael Hanel
12-17-2006, 09:08 AM
5) another tool that search and repalce (search words into the codex of html file (without open the file) and replace (without open the file) directly in the codex html with others words (search and replace into many files at the same time).



Thanks, pasquale! Is this program the same as #4, that is, Lupas rename or do you use something else?

pasquale
12-17-2006, 12:12 PM
Hi Michael,
"search and replace" is a different tool, it isn't Lupas Rename.

pasquale

Michael Hanel
12-17-2006, 02:28 PM
Are these the programs you use then?
Search and Replace at: http://www.funduc.com/search_replace.htm
and
Lupas Rename at: http://www.azheavymetal.com/~lupasrename/news.php

Michael Hanel
12-17-2006, 02:55 PM
If a Bible verse reference is missed by the BWjs script, can you add the link yourself copying the formula? How does this effect the Scripture indexing? I noticed that in files, the Scripture references are indexed by number 1 2 3 4 etc. but if BW missed a reference somewhere between 3 and 4, should I add one a number like 12 or would that ruin the Scripture indexing?

Pasquale, you might not know the answer. Glenn or Mike can answer if that is the case.

pasquale
12-17-2006, 03:41 PM
Hi Michael,
you are wright the tool are :
1) Search and Replace at: http://www.funduc.com/search_replace.htm
and
2) Lupas Rename at: http://www.azheavymetal.com/~lupasrename/news.php (http://www.azheavymetal.com/%7Elupasrename/news.php)

1) For the reference when you edit manually the files htm already tagged, after your corrections you must open Build Module index and click on Build Index Only so Bibleworks build a new complete index including your corrections (the tool build a new and correct sdk file and a new idx file).
2) When the index Jump a file.htm (in sdk), can be that in the file there isn't link. Therefore it is correct to jump the file.
3) When Bibleworks shutdown when you try to tag and index a directory with your project files , the problem is no in Bibleworks tool, but into the file htm. Any html tags have any mistake (this is an hard problem to solve because Bibleworks build the index in the file sdk but jump the mistake files, so you opening the file YourProjectName_idx.txt and find the file jumped - therfore I use a progressive numbers to call my project files 10001.htm, 10002.htm and so on, so I find the jumped and not indexed file), therfore you must edit a new htm files (delete the mistaken file) move it in another directory, and tag and build index only this new file (or files) and again move it (now tagged) in your directory project and again click on Build Index Only (so the tool build a new complete sdk file and a new complete idx file including correct html).
pasquale

Michael Hanel
12-17-2006, 04:34 PM
I also found a quick little freeware program call TurboSR. It is not as good as the other program, but if you are not doing a lot of this, it is quick and simple.

pasquale
12-17-2006, 04:53 PM
TurboSr is a good free software.

thanks

pasquale

Michael Hanel
02-16-2007, 05:12 PM
I added a post at the BibleWorks blog (http://bibleworks.oldinthenew.org/2007/02/on-modules.html) that explains some of the features of the Custom HTML files. In the not to distant future I will try to explain more how to make one of the modules.