[sword-devel] howto: mod2osis

DM Smith dmsmith555 at yahoo.com
Tue May 30 10:54:02 MST 2006


You can see the source for mod2osis here (It may have changed since 
1.5.8 was released):
http://www.crosswire.org/svn/sword/trunk/utilities/mod2osis.cpp

In reading it I noticed a couple of things:
I think that the text is being filtered from whatever internal format 
into OSIS. So if it is originally GBF or ThML markup then it becomes OSIS.
The module is assumed to be a Bible as that is hard coded into the OSIS 
type statement in the osisWork element.
The code further assumes that the module is arranged as Book, Chapter 
and Verse (BCV). This is true of Bibles and some commentaries. But not 
of other works.


So, if I am reading this correctly, mod2osis is not the right mechanism 
to get OSIS out of a GenBook.


Greg Hellings wrote:
> This does present an interesting question:
>
> Ought mod2osis support all types of modules?  If the attempt is to
> move all modules into being used in OSIS format as originals, then why
> not extend the functionality of mod2osis so that it properly works for
> all types of modules?
>
> --Greg
>
> On 5/29/06, Jónatas Ferreira <jonatas at gmail.com> wrote:
>> > Sorry. I didn't think about using Bundles for modules on the Mac. ;)
>> > Thought you have installed the modules the "normal" way.
>>
>> Is there another way to install it on the Mac? I didn't know about
>> that. How is it?
>>
>> > Joachim is right, you have to go into every Bundle directory.
>> > "mods.d" and "modules" folders should be in the current directory
>> > when you use mod2osis.
>>
>> Yes, I already tried that. And now I also know that I can't use
>> mod2osis in this kind of modules, it is only useful for bibles or
>> commentaries.
>>
>> Thank you,
>> Jónatas
>> _______________________________________________
>> 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
>>
>
> _______________________________________________
> 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
>


More information about the sword-devel mailing list