[sword-devel] osis2mod import issue

DM Smith dmsmith at crosswire.org
Sat May 30 04:47:45 MST 2009


On May 28, 2009, at 8:58 PM, Ryan wrote:

> I'm experiencing problems generating a bible module with the newer
> versions of osis2mod (from 1.6.0 and latest svn). Seems that  
> everywhere
> in my osis files where a paragraph ends and a new paragraph starts the
> verse immediately following get lost in the new bible module.
>
> Here is a short snippet of the first part of Genesis in the kjv osis
> file I created...
>
>
> <div type="book" osisID="Gen">
> <p>
> <title type="main">The First Book of Moses, called Genesis</title>
> <chapter osisID="Gen.1" sID="Gen.1" />
> <verse osisID="Gen.1.1" sID="Gen.1.1" />In the beginning God created  
> the
> heaven and the earth.  <verse osisID="Gen.1.1" eID="Gen.1.1" />
> <verse osisID="Gen.1.2" sID="Gen.1.2" />And the earth was without  
> form,
> and void; and darkness <transChange>was</transChange> upon the face of
> the deep. And the Spirit of God moved upon the face of the waters.
> <verse osisID="Gen.1.2" eID="Gen.1.2" />
> </p><p>
> <verse osisID="Gen.1.3" sID="Gen.1.3" />And God said, Let there be
> light: and there was light.  <verse osisID="Gen.1.3" eID="Gen.1.3" />
> <verse osisID="Gen.1.4" sID="Gen.1.4" />And God saw the light, that
> <transChange>it was</transChange> good: and God divided the light from
> the darkness.  <verse osisID="Gen.1.4" eID="Gen.1.4" />

I appended <p><chapter eID="Gen.1" osisID="Gen.1"/></div> to make it  
be a valid fragment.

The above fragment is not good OSIS. The opening <p> should be within  
the chapter.

Here is the result of osis2mod on your fragment, running with -d 2 to  
debug verses:
I'm running version 2420.

<div osisID="Gen" sID="gen29" type="book"/> <div sID="gen30"  
type="paragraph"/> <title type="main">The First Book of Moses, called  
Genesis</title>
<chapter osisID="Gen.1" sID="Gen.1"/>
<milestone osisID="Gen.1.1" resp="v" sID="Gen.1.1"/>In the beginning  
God created the heaven and the earth. <milestone eID="Gen.1.1"  
osisID="Gen.1.1" resp="v"/>
<milestone osisID="Gen.1.2" resp="v" sID="Gen.1.2"/>And the earth was  
without form, and void; and darkness <transChange>was</transChange>  
upon the face of the deep. And the Spirit of God moved upon the face  
of the waters. <milestone eID="Gen.1.2" osisID="Gen.1.2" resp="v"/>  
<div eID="gen30" type="paragraph"/>
<div type="x-milestone" subType="x-preverse" sID="pv7"/><div  
sID="gen31" type="paragraph"/> <div type="x-milestone" subType="x- 
preverse" eID="pv8"/><milestone osisID="Gen.1.3" resp="v" sID="Gen. 
1.3"/>And God said, Let there be light: and there was light.  
<milestone eID="Gen.1.3" osisID="Gen.1.3" resp="v"/>
<milestone osisID="Gen.1.4" resp="v" sID="Gen.1.4"/>And God saw the  
light, that <transChange>it was</transChange> good: and God divided  
the light from the darkness. <milestone eID="Gen.1.4" osisID="Gen.1.4"  
resp="v"/> <div eID="gen31" type="paragraph"/> <chapter eID="Gen.1"  
osisID="Gen.1"/> <div eID="gen29" osisID="Gen" type="book"/>

I cannot see your problem. Here is what I see:

In Gen 0:0, The paragraph precedes the title.

In Gen 1:0, It merely contains the chapter element.

In Gen 1:1, It only has the verse content.

In Gen 1:2, It has the verse content and the closing paragraph is  
appended to the verse.

In Gen 1:3, It starts with a milestoned x-preverse div containing the  
opening paragraph and is followed by the verse content.

In Gen 1:4, It starts with the verse content and then finishes the  
paragraph, chapter and div (book).

It appears that the module contains everything from your input.

>
>
>
> ... the module I create from this document with the newer versions of
> osis2mod have genesis 1.3 being completely blank, as well as any other
> verse immediately following the closing and opening paragraph markers
> between verses. Genesis 1.2 and 1:4 are fine however. It works fine  
> with
> the version of osis2mod from 1.5.11

When you say it doesn't "work", what do you mean? Are you looking at  
the module file to see whether it is present or not? Or are you not  
seeing the verse in some front-end? If so, which are you using?

In Him,
	DM





More information about the sword-devel mailing list