[sword-devel] osis2mod debugging/titles
Peter von Kaehne
refdoc at gmx.net
Tue Nov 16 09:21:51 MST 2010
The whole concept of titles, types of titles and hierarchy of titles is
a bit like a book with 7 seals to me still - despite reading, thinking
and testing nothing else in the last couple of days.
I have looked at various modules for inspiration, but found that as
modules are from various ages the osis is not always the same, once it
is run through the import routine.
is mod2imp the very same stuff as produced by osis2mod prior to indexing
and packing tight?
is there a list of currently supported title types? It seems that some
types are only supported the first time but not necessarily subsequently
in a chapter - type="acrostic" being one of them
is osisheadings.cpp the filter which finally determines what goes where
and how - in terms of titles?
what does osis2mod touch and what not? I found some type attributes seem
to survive very well, others not. Specifically, on which titles is
Undesirable outcomes i have seen when I tried to get it right as a
result of not understanding titles:
1) only first title in a chapter is displayed
2) some titles are inline
3) some titles are included into the subsequent verse (i.e. after the
4) the verse number is above the verse text
To get it right on the module I just finalise I have heavily edited the
osis file, but I am not too proud of my work. I have the fear that too
much is in flux (or at least with me only partially understood), both in
osis2mod and the filters.
I have found the debug options on osis2mod useful - thanks to the person
who added these!
P.S.: Sometimes I wish we could forgo all the filters and work with raw
OSIS, XSLT and CSS... At least I could rapidly extend then "filters" to
get them to do what I want. :-)
More information about the sword-devel