Month: February 2004

  • Hyperlink Bible References using Scripturizer 1.3

    After almost a year of people emailing me and leaving comments, I’ve finally made the time to update my Scripturizer Perl Module. The changes aren’t big, but they provide dramatic relief to a series of annoyances that have encumbered some of you from adding more Scripture references to your blogs, church websites and other electronically distributed information. I apologize for taking so long to get around to such an important issue.

    Addition of Abbreviations:

    I think a comment by Werner Peters (no relation) on Rob Hulson’s blog sums up the need for this addition best when he writes:

    “It gets a little tedious writing out Deuteronomy every time!”

    Yeah, you’ve said a mouth full. So I’ve added various abbreviations to the new and improved version. I’ve done so a more hard-coded format than I like, but the regular expressions are complex enough. I want a novice to be able to look at the existing expressions for Books in the Bible and add or alter their own (expressions) as they need.

    This was a painstaking process I automated to some degree with some Perl to split book names after the first three characters, then again at the fourth or fifth character depending on the length and vowel placement. I then went through each of the expressions and added or subtracted based upon a list of common Bible queries over at the ESV Bible. Many thanks to Stephen Smith for directing my attention to this data, it was incredibly helpful!

    Finally, I took care of a small handful of typos, involving pluralization. I still need to write a “mop-up” option to weed-out typos such as “revalations” and “mathew.”

    Eliminate the addition of a space before non-white space bug.

    This bug is exceptionally annoying to those who like to encapsulate their scripture references between brackets or parenthesis, such as (1 John 1:9). So annoying that back last August, Jason Rust left a comment on my blog with a fix. A fix later tried and tested and nicely documented by Joseph Markey.

    Essentially, the bug was introduced when evaluating the space between a volume reference, e.g. 1 John 1:9, which in turn put a space in front of a non-volume reference such as John 1:9. The bug occurred when the character directly before the non-volume number scripture reference was anything other than a space.

    What the fix does is it pushes the evaluation for the space into a variable, then pushes it in front of the hyperlink. An approach that works much better than a hard-coded space as nothing before the reference is then accurately rendered as nothing just before the hyperlink.

    Eliminate the ‘c’ in the gcex modifier in the regular expression.

    This regular expression mode modifier did nothing in this context, except possibily eat up CPU and sometimes throw errors in the latest version of Perl.

    ESV Bible flip-flop

    The great people at the ESV Bible have been so helpful and responsive in the past, I figured why not say thanks in the form of directing those who select the English Standard Version option to the ESV online Bible website.

    In MovableType, that would be <$MTBodyEntry scripturize=”ESV”$>

    Using Scripturizer as a Perl Module, that would be print scripturize(”Phil. 4:6-7″, “ESV”).

    XHTML compliant hyperlinks

    Ampersands are now represented as &amp;

    Usage Notes

    Well, this is sorta a no-brainer. For those of you using the MovableType Scripturizer plug-in, leave the file /plugins/Scripturizer.pl alone.

    Replace the file /extlib/Sermonizer/Scripture.pm with the referenced code below. That should be it, but first make a backup of the old one just in case.

    Here is where I have it set-up on my PC for general purposes using ActiveState’s Perl Dev Kit: c:\perl\site\lib\Sermonizer\Scripturizer.pm.

    Future Iterations

    That’s pretty much it. If you can think of anything else, let me know and we’ll see about adding it.

    Otherwise, I’d like to work on something else Stephen Smith of ESV sent me, a routine that fetches a snippet via their webservice. His code works but I have some MT centric things I want to tackle when slicing-n-dicing an XML stream of Matthew 5. That and I feel a full-blown ESV.pm module coming on. Well, Stephen has already created one, but I’ve got these ideas … and this compiler … well, you get the picture.

    There is also a much needed death-blow to typos method subroutine that needs to be written. The question is, do I write it into the same pass, or do I run first a clean-up pass filter, then scripturize? Any thoughts would be appreciated.

    Again, thanks to everyone for their input. I couldn’t have done any of this without your valuable input. Even if I could, it wouldn’t have been as much fun.

    Download the PM … Sermonizer::Scripturizer.pm

    view it as text: Sermonizer::Scripturizer.pm

    Find a bug? Have a suggestion? Leave a comment. We’ll do our best to see it gets taken care of … quickly. Get it to me in the next couple of days and I’ll try to add it as an update to this article.

  • How To: The Scripturizer for Dummies

    A week or two ago, I had a friendly back-n-forth with Ted Olsen at Christianity Today over what’s “worthwhile” on the blogosphere. My perception is that what is trash to one reader, is treasure to another. That the beauty of the blogosphere, especially the Christian blogosphere, is that it represents the many varied and talented parts of the Body.

    “There are different kinds of gifts, but the same Spirit. There are different kinds of service, but the same Lord. There are different kinds of working, but the same God works all of them in all men. Now to each one the manifestation of the Spirit is given for the common good … The body is a unit, though it is made up of many parts; and though all its parts are many, they form one body. So it is with Christ.” – 1 Cor. 12:4-7,12

    Case in point: Rob Hulson’s blog

    While this blog may not be worthwhile to the overall CT demographic, yesterday’s post is certainly useful to those of us who are Christian, and blog … and/or run church websites. Especially those of us who like to hyperlink our Scripture references to online Bibles.

    This is why I wrote the Scripturizer module and MT-plug-in. And seeing a need for documentation, this is why Rob so generously offers us ‘How To: The Scripturizer for Dummies‘.

    So instead of one member of the Body tearing the other down, we sharpen each other as ‘iron sharpens iron’. In fact Rob along with a few others, have offered suggestions to improve and or fix Scripturizer. Changes that are needed. Changes I need to get make time for and publish. Changes I’m now inspired to make because of such good works like those of Rob!

    “A word fitly spoken is like apples of gold in a setting of silver. Like a gold ring or an ornament of gold is a wise reprover to a listening ear.” – Proverbs 25:11-12

    Thank you.

    Now go read his post, then come back after this weekend and bug me if I haven’t improved the Scripturizer based on your loving and constructive criticisms.

  • The Coolest Church WebSite, Ever!

    If your church doesn't have a spinning cross on its steeple, then why put one on your site?I love parody. Yes, even church-inspired parody. I even like it when I’m parodied, but only if it’s very well done. Case in point: The First Baptist Church of {unidentified}, one of the coolest of cool church websites. A site created some time ago by webservant Don A. Elbourne, who actually runs a very usable and accessible website for the Lakeshore Baptist Church, Lakeshore, Mississippi.

    What makes The First Baptist Church of {unidentified} parody so funny is that every element Don employs on the page represents a topic I’ve written about at one time or another. Here are just a few I could find in the short time between wiping the tears of laughter from my eyes and explaining to my youth pastorno really, this isn’t the way we want to go ….”

    Giggles and grins aside, this parody preaches an important point: anything that gets in your user’s way should be crucified.

    In fact, about the only things I can think that are missing from this hilariously good example of bad web design are:

    How about you? Did you find anything else on top or underneath that someone developing a church website should avoid so they don’t wind up creating ‘The Coolest Church WebSite, Ever!’