[sword-devel] How exactly is one supposed to handle the various different types of modules?

Aaron Rainbolt arraybolt3 at gmail.com
Sat Oct 5 14:41:11 EDT 2024


Background - trying (for the second time) to write my own SWORD
frontend. I tried once quite a bit ago, trying to make something
focused on writing Markdown, and failed rather miserably. I'm now
taking a second swing at it, aiming to make something a bit like
theWord but with a user interface closer to the old Logos Library
System (and yes, I'm talking about the *old* Logos Library System, I
have a copy of it around here with some material on it, some of which
is DRM-locked but oh well).

I have a decent Bible view implemented (well, mostly - still need to
figure out how to handle markup other than OSIS but at least OSIS
works), and am now figuring out what view to implement next. With that
in mind, I installed some extra modules and looked at how Xiphos
handled them and how they look internally using mod2imp... and quickly
learned that modules do not always behave like I expect. For instance
"Cult/Unorthodox" modules show up in Xiphos's Bible view, daily
devotions are treated as dictionaries, and commentaries are structured
by book, chapter, and verse just like Bible views but have their own
"kind" of module in the SWORD API.

Is there a good breakdown on how each kind of module is intended to be
treated in SWORD? Right now I think it's probably:

* Biblical Texts -> SWText
* Commentaries -> SWCom
* Dictionaries -> SWLD
* Glossaries -> SWLD
* Daily Devotionals -> SWLD
* General Bookx -> SWGenBook
* Maps -> ?
* Images -> ?
* Cult/Unorthodox -> SWText


More information about the sword-devel mailing list