[sword-devel] How exactly is one supposed to handle the various different types of modules?
Aaron Rainbolt
arraybolt3 at gmail.com
Sat Oct 5 15:43:16 EDT 2024
I may simply be blind, but I can't see how any of the examples there
show me how to treat various types of modules. I *did* however find a
snippet that showed how to much more easily render everything as HTML,
so that's quite handy.
On Sat, Oct 5, 2024 at 2:34 PM Peter von Kaehne <refdoc at gmx.net> wrote:
>
> Have you looked at the examples section in the code ?
>
> Sent from Outlook for iOS
>
> ________________________________
> From: sword-devel <sword-devel-bounces at crosswire.org> on behalf of Aaron Rainbolt <arraybolt3 at gmail.com>
> Sent: Saturday, October 5, 2024 7:41 PM
> To: SWORD Developers' Collaboration Forum <sword-devel at crosswire.org>
> Subject: [sword-devel] How exactly is one supposed to handle the various different types of modules?
>
> 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
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
>
> Sent from Outlook for iOS
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
More information about the sword-devel
mailing list