Saturday, June 17, 2006

More on HTML-RTF for English BIble

There's an improved version available with fewer bugs: at

Changes include better handling of paragraphing and curly quotes (although mdash still needs some work for RTF).

What does the program illustrate? Two things, primarily:

(1) How to retrieve HTML code for a Web page at a certain URL, how to extract data from the Web page, and how to create HTML code for a new Web page making use of that extracted data.

(2) How to create an RTF file.

The latter doesn't really "create" an RTF file from scratch: It simply modifies an existing RTF file, inserting text, superscripts, etc., where appropriate.

Using this approach, you can get by without really understanding the details of RTF (which can be a Good Thing).

Thus the beginning and the end of the RTF file that is created is taken from an already-existing RTF file. (If you'd like, say, a different font, then either modify the code appropriately or use WordPad to create what you want and save that as an RTF file to use as your starting point.)

Right now I'm working on a program which - if you provide an address (street, city, state, and zip) - will give you the latitude and longitude for that location. When finished, I expect (as usual) to make it available to readers of this blog.

You may have little use for such information, but the point is that the program is another sample program illustrating how to use REALbasic to retrieve information from the Web.

It so happens that I do have a practical use for such a program, but even a useless program has its usefulness if it can be used as a sample program from which one can build a more useful program.

I'd be interested in hearing about (or seeing other examples of) how people are putting HTMLViewer and HTTPSocket to use in their programs.

Barry Traver

P.S. Here's a list of what the abbreviations stand for in the Bible translations mentioned last time: KJV - King James Version, NASB - New American Standard Bible, NIV - New International Version, NKJV - New King James Version, and ESV - English Standard Version.


Post a Comment

<< Home