[bt-devel] sample modules
Chris Little
chrislit at crosswire.org
Wed May 26 12:01:01 MST 2004
Luke Plant wrote:
> 1) Are there some example modules in each of the different formats (GBF,
> OSIS, ThML, plain) that I could use for testing?
Supplementing Daniel's message: There are actually quite a few modules
still in plaintext. BBE, Diaglott, and Cro are a few that come to mind.
They're mostly Bibles. But they have no markup and thus nothing to
filter.
It sounds like you plan to write your own output filters for GBF, OSIS,
& ThML sources. This is a really bad idea, if there is any way to avoid
it. You'll have to make changes to your filters (particularly the OSIS
filter) as we make use of additional features of source formats. If at
all possible, I would use the HTMLHREF filter, given your target.
> 2) The main areas I have still to sort out are things like strongs
> numbers, morphological tags, lemmas (are these the same as Strongs?) and
> cross references. Are they any docs on what form these will take in the
> different markup formats? I've been copying BibleTime for some of these
> things, but it would be nice to know what I'm doing!
A lemma is, essentially, the dictionary form of a word. Strong's
numbers, of course, refer to a dictionary entry for a particular word.
So there is overlap. Strong's numbers are references to lemmas, so they
are encoded using a lemma attribute in OSIS. But many other types of
lemmas (e.g. G/K numbers, TWOT numbers, and the dictionary form of the
word itself) are not Strong's numbers. Sword treats Strong's numbers
differently from other lemmas, so toggling lemma display never toggles
Strong's display.
There are no docs specifically addressing what you're looking for,
except perhaps for the ThML spec. In any case, the specifications for
GBF, OSIS, and ThML are what we rely on and you can dig through them for
the information you're after. We also use the format "#(ref)|" in some
plaintext modules and possibly in some GBF modules to encode
cross-references.
--Chris
More information about the bt-devel
mailing list