[osis-core] Suggestions for encoding and in favor of keeping <p> and <div> as they were.

Todd Tillinghast osis-core@bibletechnologieswg.org
Fri, 19 Apr 2002 00:31:36 -0500


I have two perspectives on the apparent problem with <p> and <div>.

In my recollection (it seems I don't have a printed copy of King Jimmy's
version and formatted the machine with SWORD software on it) that both
the printed and electronically rendered texts have paragraph breaks.  So
even if the data is not available in the data set you have
electronically, the data does exist.  With this in mind there is not a
problem with requiring the various elements to be a child of <p> and NOT
a child of <div>.  The fact that is not easy to generate a OSIS
compliant document not a function of a problem with the spec but rather
a problem of missing data.

On the other hand the requirement that <p> elements MUST exist implies a
predisposition toward a single view of how the text should be logically
viewed.  The view that Troy seems to be coming from is a
Book/Chapter/Verse view.  In order to allow data to be encoded using
this model, I would suggest the following encoding strategy, if the data
needed to create paragraph elements as they occur in the printed version
are not available.

IF THE PARAGRAPH DATA IS JUST NOT AVAILABLE THEN THE FOLLOWING:
(NOTE: I am suggesting putting a type in verse equal to type="x-BCV" to
indicate that the <p> element is not being used to indicate a real
paragraph just as a verse element in a BCV heirachy.)
<text refWork="Bible.KJV">
      <front>
           <title>
                <titlePart>King James Version of 1611 w/ Strongs
Numbers</titlePart>
           </title>
      </front>
      <body refStart="Gen" refEnd="Rev">
	      <div type="x-canon" refStart="Gen" refEnd="Hab">
			<div type="book" refStart="Gen">
				<bookStart MID="Gen" />
				<div type="chapter" refStart="Gen.1">
					<chapterStart MID="Gen.1" />
						<p type="x-BCV"
refStart="Gen.1.1"><verseStart MID="Gen.1.1" />In the beginning God
created the heaven and the earth.<verseEnd MIDREF="Gen.1.1" /></p>
						<p type="x-BCV"
refStart="Gen.1.2"><verseStart MID="Gen.1.2" />And the earth was without
form, and void; and darkness was upon the face of the deep. And the
Spirit of God moved upon the face of the waters.<verseEnd
MIDREF="Gen.1.2" /></p>
						<p type="x-BCV"
refStart="Gen.1.3"><verseStart MID="Gen.1.3" />And God said, Let there
be light: and therewas light.<verseEnd MIDREF="Gen.1.3" /></p>
						<p type="x-BCV"
refStart="Gen.1.4"><verseStart MID="Gen.1.4" />And God saw the light,
that it was good: and God divided the light from the darkness. <verseEnd
MIDREF="Gen.1.4" /></p>
......
				<chapterEnd MIDREF="Gen.1"/>
			</div>
		<bookStart MID="Gen" />
		</div>
	</div>
	</body>
</text>


HOWEVER, I THINK that somethink like the following is probably more like
what the translators intended.  (Remember I am not a scholar just a
Bible use.  At least this is what I would expect as a everyday Bible
user.)  

--- I don't know what form your source data is in.  Does it have "line
feed" 
--- characters in the text itself?  If it does then you could start a
new 
--- <p> at every "line feed" character and get the paragraphs that way.

<text refWork="Bible.KJV">
      <front>
           <title>
                <titlePart>King James Version of 1611 w/ Strongs
Numbers</titlePart>
           </title>
      </front>
      <body refStart="Gen" refEnd="Rev">
	      <div type="x-canon" refStart="Gen" refEnd="Hab">
			<div type="book" refStart="Gen">
				<bookStart MID="Gen" />
				<div type="chapter" refStart="Gen.1">
					<chapterStart MID="Gen.1" />
						<p refStart="Gen.1.1"
refEnd="Gen.1.2"><verseStart MID="Gen.1.1" />In the beginning God
created the heaven and the earth.<verseEnd MIDREF="Gen.1.1"
/><verseStart MID="Gen.1.2" />And the earth was without form, and void;
and darkness was upon the face of the deep. And the Spirit of God moved
upon the face of the waters.<verseEnd MIDREF="Gen.1.2" /></p>
						<p refStart="Gen.1.3"
refEnd="Gen.1.5"><verseStart MID="Gen.1.3" />And God said, Let there be
light: and therewas light.<verseEnd MIDREF="Gen.1.3" /><verseStart
MID="Gen.1.4" />And God saw the light, that it was good: and God divided
the light from the darkness. <verseEnd MIDREF="Gen.1.4" /><verseStart
MID="Gen.1.5"/>TEXT OF VERSE FIVE<verseEnd MIDREF="Gen.1.5"/></p>
						<p refStart="Gen.1.6"
refEnd="Gen.1.8"><verseStart MID="Gen.1.6"/>TEXT OF VERSE SIX<verseEnd
MIDREF="Gen.1.6/><verseStart MID="Gen.1.7"/>TEXT OF VERSE SIX<verseEnd
MIDREF="Gen.1.7/><verseStart MID="Gen.1.8">TEXT OF VERSE SEVEN<verseEnd
MIDREF="Gen.1.8/>
......
				<chapterEnd MIDREF="Gen.1"/>
			</div>
		<bookStart MID="Gen" />
		</div>
	</div>
	</body>
</text>

Does this help any?

I am still in favor of KEEPING <p> and <div> as they were.

Todd

> PS.  The current <p> is there so it works, but is what I would like to
> remove as it does not correctly or meaningfully define a 'paragraph'.
> 
> 
> 
> "Troy A. Griffitts" wrote:
> >
> > here's the beginning of something exemplary of all our texts from
the
> > filter we're working on.
> >
> > <text xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
> > xsi:noNamespaceSchemaLocation="osisScripture_01096.xsd"
> > refWork="Bible.KJV" lang="en"  >
> >
> >      <front>
> >           <title>
> >                <titlePart>King James Version of 1611 w/ Strongs
> > Numbers</titlePart>
> >           </title>
> >      </front>
> >
> >      <body>
> >      <div type="x-canon"><bookStart MID="Gen" /><p>
> > <chapterStart MID="Gen.1" /><verseStart MID="Gen.1.1" />In the
beginning
> > God created the heaven and the earth.<verseEnd MIDREF="Gen.1.1" />
> > <verseStart MID="Gen.1.2" />And the earth was without form, and
void;
> > and darkness was upon the face of the deep. And the Spirit of God
moved
> > upon the face of the waters.<verseEnd MIDREF="Gen.1.2" />
> > <verseStart MID="Gen.1.3" />And God said, Let there be light: and
there
> > was light.<verseEnd MIDREF="Gen.1.3" />
> > <verseStart MID="Gen.1.4" />And God saw the light, that it was good:
and
> > God divided the light from the darkness. <verseEnd MIDREF="Gen.1.4"
/>
> >
> > Patrick Durusau wrote:
> > >
> > > Troy,
> > >
> > > Can you post a larger text with the problem?
> > >
> > > Patrick
> > >
> > > --
> > > Patrick Durusau
> > > Director of Research and Development
> > > Society of Biblical Literature
> > > pdurusau@emory.edu