Have you looked at the examples section in the code ? 

Sent from Outlook for iOS
 

From: sword-devel <sword-devel-boun...@crosswire.org> on behalf of Aaron Rainbolt <arraybo...@gmail.com>
Sent: Saturday, October 5, 2024 7:41 PM
To: SWORD Developers' Collaboration Forum <sword-devel@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@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@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to