I happened to stumble across this discussion from a web developer who wants to figure out how to present Bible text (not references) on a website. There are a lot of reasons why this is a lot harder than one might think at first glance. Most Blogos readers will already know all this, but i thought it might be helpful to summarize some of the issues here for the next person who stops to think and google.
- The Good Book comprises a number of different books, each with their own special requirements and challenges. One size doesn’t usually fit all.
- Chapter, paragraph, and verse boundaries don’t always line up, so while a neatly nested hierarchy is tempting, it doesn’t work out well in practice.
- There are a lot of special formatting challenges in Scripture: here’s a list that’s almost certainly incomplete.
- Poetry
- Dialogue (including quotes inside quotes, like Jesus repeating a proverb in Luke 4:23)
- Chapter and verse numbers
- Many Bible versions include headings like “the Beatitudes” for Matt 5:2-12. While they’re not part of the text, they are part of the version.
- The convention of displaying the words of Christ in red (which presumes markup that distinguishes them)
- Footnotes (common in many Bible versions)
- The Psalms have some special requirements: there are actually five “books” (collections of Psalms) within the one Book of Psalms, and many of the Psalms have additional header material (e.g. Ps 73, which identifies Asaph as the psalm’s author)
- Certain passages (John 7:53-8:11 is a good example) are usually distinguished typographically along with an explanatory note, since they’re not included in all manuscripts.
- No matter what you think the One True Markup Style might be, it doesn’t do you any good unless you actually have a Bible text in that format, and that takes a lot of hard work.
So what’s a web developer to do? While i can’t solve the problem for you, i can point to some existing standards. Of course, different desktop applications (like Logos Bible Software) have their own (typically proprietary) internal markup systems (disclaimer: even though i work for Logos, i couldn’t begin to explain all the intricacies of their markup!).
OSIS is a very thorough (hence fairly heavy-weight) XML standard for Scripture markup. While they’ve covered most all the bases and then some, i don’t know of any complete Bible versions that are freely available in OSIS format. On top of that, the OSIS group doesn’t seem all that active these days.
The ESV website provides a web service with a rich API that also illustrates a numbers of the issues mentioned above. While their format is not a “standard” (in the “committee-approved” sense), it’s certainly a well-thought-out approach, with the additional benefit that you can actually retrieve text that’s already formatted coherently, rather than formatting it yourself.
PS: notice the bibleref markup here? I’ll bet you didn’t, but someday a smart web spider might! I typed it in by hand, just for the experience (apparently WordPress lets you enter HTML as text that gets converted to markup when you save), though a plugin makes it even easier.


There are quite a few OSIS texts and projects around. E.g.:
Some Bibles in the OSIS format can be found here:
http://crosswire.org/osis/docs/Bibles/
http://www.bibletechnologies.net/osistext/
All of the Bibles in The Bible Tool are OSIS texts.
I suppose my brush was a bit broad: while there are available full Bible texts and examples in OSIS, none are really very suitable for someone who wants to put arbitrary (English) Bible texts on a website. As far as i can tell, the only full English OSIS text at Crosswire that’s available for download is KJV: the others are in French, Chinese, etc. There used to be an RSV, but it disappeared from their download site some time ago: i suspect unresolved copyright issues caused them to take it down. What’s more, the OSIS schema namespace for these documents doesn’t resolve correctly any more: doubtless a minor detail, but perhaps that’s more evidence that the project isn’t thriving. (though i suppose the blame there, if any, belongs to Crosswire rather than OSIS).
The texts at http://www.bibletechnologies.net/osistext/ are fine for exemplifying OSIS markup, but they’re not complete Bibles, which doesn’t help someone who wants to put Bible texts on their websites.
The Bible Tool texts are fine if you want to read them on the Sword Project’s website: but again, they’re not directly reusable if you want to put them on your own website. It used to be the case that you could download Sword texts (in their own format), and then run a different tool to convert them to OSIS. Back when i was using Sword, i never had much luck with that, but perhaps things have improved. Of course, there are also copyright issues down that path.
OSIS is a very worthwhile endeavor, and i’d love to see it keep moving forward. I’m just pointing out that if your goal is to find an easy way to put Bible texts on your website, OSIS probably isn’t it, at least not today (one can always hope for tomorrow).
There are some tools available from Living Stones Ministry (that’s me) at http://www.lstones.com that try to make it easy to add Bible text capabilities to a website. That being said, I agree with all the challenges listed above and don’t claim that what we’ve provided solve all of them. But hopefully these can provide a great starting point.