[sword-devel] osis2mod import issue

Mattias Põldaru mahfiaz at gmail.com
Wed Jun 3 10:36:23 MST 2009

Hi everybody.

It is nice to see you (DM, I suppose) got the osis2mod working in no
time at all. There is one more issue with preverse stuff. Some
whitespace gets counted as preverse on my file and I think this is
wrong, although it isn't that complicated at all to remove whitespace
from my source document. I paste a example here.

Here is the input osis file. Please correct me, if I have something
wrong here.
<!-- start of example clip -->
<div type="bookGroup">
        <title>Vana Testament</title>
        <div type="book" osisID="Gen" canonical="true">
                <title type="main">1. Moosese</title>
                        <div type="section" scope="Gen.1.1-Gen.2.3" >
                        <title>Maailma ja inimese loomine</title>
                        <chapter sID="Gen.1" osisID="Gen.1" />
                            <title type="chapter">1. peatükk</title>
                                <verse sID="Gen.1.1" osisID="Gen.1.1" />
Alguses lõi Jumal taevad ja maa.
                                <verse eID="Gen.1.1" />
                                <verse sID="Gen.1.2" osisID="Gen.1.2" />
Ja maa oli tühi ja paljas ja pimedus oli sügavuse peal ja Jumala Vaim
hõljus vete kohal.
                                <verse eID="Gen.1.2" />
<!-- end of example clip -->

And here is the corresponding module output. Please notice the one space
only preverse.
<!-- start of example clip -->
<div sID="gen1" type="bookGroup"/> <title>Vana Testament</title> <div
canonical="true" osisID="Gen" sID="gen2" type="book"/> <title
type="main">1. Moosese</title> <div sID="gen3" scope="Gen.1.1-Gen.2.3"
type="section"/> <title>Maailma ja inimese loomine</title> 
<chapter osisID="Gen.1" sID="Gen.1"/> <title type="chapter">1.
peatükk</title> <div sID="gen4" type="paragraph"/> 
Alguses lõi Jumal taevad ja maa.  <div eID="gen4" type="paragraph"/>
<div type="x-milestone" subType="x-preverse" sID="pv1"/><div sID="gen5"
type="paragraph"/> <div type="x-milestone" subType="x-preverse"
eID="pv1"/> Ja maa oli tühi ja paljas ja pimedus oli sügavuse peal ja
Jumala Vaim hõljus vete kohal.  <div eID="gen5" type="paragraph"/>
<!-- end of example clip -->

Thanks for your effort and good work.


More information about the sword-devel mailing list