[sword-devel] osis2mod debugging/titles

Greg Hellings greg.hellings at gmail.com
Tue Nov 16 09:31:17 MST 2010

For better or worse, no one with both the knowledge of the engine and the
time to contribute extensively likes using DOM or XSLT nor established XML
libraries.  You are far from the first person to suggest this route.

In other news, JSword converts all modules to OSIS XML and then processes
them through XSL to produce HTML for display.

On Nov 16, 2010 10:23 AM, "Peter von Kaehne" <refdoc at gmx.net> wrote:
> 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.
> So, questions:
> 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
> 'subType="x-preverse"' appended?
> 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
> verse number
> 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!
> Peter
> 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. :-)
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20101116/6fcb8665/attachment-0001.html>

More information about the sword-devel mailing list