Running edit: The most recent version is v5, with an alternative approach in v7. And there is a mocked-up dream UI that I might not be able to implement, but which I would really like. at experiment1
Several discussions about bible-related TW content made me wonder how difficult it would be to put an entire version of the Christian bible into a TW wiki.
It turns out not too difficult. I found a JSON version of the King James bible online. (There are many of these.) Outside a little metadata, the content was just a list of verse records. I converted these to tiddlers, added Book and Chapter tiddlers, wrote a few templates and an overview page, and got this:
http://scott.sauyet.com/Tiddlywiki/Demo/KingJamesBible/v1/.
Feel free to use it, steal it, fold, spindle, and mutilate it as you like. If you want the raw data, see
http://scott.sauyet.com/Tiddlywiki/Demo/KingJamesBible/v1/sources/, with the following files
-
RAW-KJV.json
, which is what I downloaded originally. I canāt seem to recall where itās from; I will try to look at browser history next time Iām on that machine. (Edit: I found it. I downloaded from: biblesupersearch.) The records look like this:{ "book_name": "Genesis", "book": 1, "chapter": 1, "verse": 1, "text": "\u00b6 In the beginning God created the heaven and the earth." },
The ā
\u00b6
ā is the Unicode escape for the pilcrow, Ā¶, and it is used to represent where new paragraphs start. Italics are handled by wrapping the text in [square brackets] Thebook
property is just a sequence number to help sort the books. The other fields should be obvious. -
TW5-KJV.json
is the result of converting the above to tiddlers. It has records like:{ "title": "Genesis 1:1", "tags": "Verse [[Genesis 1]]", "created": "20240712215242831", "modified": "20240712215242831", "book": "Genesis", "chapter": "1", "verse": "1", "text": "In the beginning God created the heaven and the earth.", "new-para": "yes", "seq": "3" },
There are also interspersed tiddlers for Books and Chapters, with somewhat simpler formatting. If youāre interested in the JS code I used to convert this, itās at http://link.sauyet.com/kjv.
The
new-para
field just moves the paragraph handling from the text to a dedicated field. Andseq
is a sequence number that runs through all Book, Chapter, and Verse tiddlers. This can drastically simplify sorting. -
KJV_Extras.json
are just a very few templates and miscellaneous tiddlers to turn this into a minimally useful wiki.
You can add this bible to any wiki by dragging in the second file; you can give it usable default behavior by dragging in the third. Note that the data is large, almost 14MB, and will take ten seconds or so to show up in imports and at least five seconds to do the actual import.
The only template with any semblance of sophistication is $:/_/bible/procedures/chapter, which combines the verses into a whole chapter. While I mostly like the results, Iām not happy with the implementation. I may ask some questions about it in the next few days.
Note that although I did this for the King James version, we should be able to easily do it for other versions using the same techniquesā¦ assuming copyright protection laws donāt interfereā¦
As I said, do with this as you like. Have fun. Let me know of issues.