<div dir="ltr">This affects me in quite a number of different ways. All of which have to do with parallel displaying, comparing, interlinears, etc.<div><br></div><div>I had assumed that Psalm titles should fall under the verse 0 construct. And as a result it meant I could map verse 0 in the NRSV versification to 0 (via the KJV) to verse 1 in the Leningrad versification. My pre-supposition was that anything from chapter-start to verse 1 should fall under the verse 0 construct.<div>
<div><br></div><div><b>So, if I ask for a full chapter, </b>although the canonical content isn&#39;t part of a &#39;verse&#39; (or even part of the div marking verse.0), I can remember the fact I&#39;ve seen verse 0, and therefore consider anything before verse 1 (like the Psalm heading) to be in verse 0. This then means that we get very nice mappings from Psalms headers to Leningrad verse 1.</div>
<div><br></div><div><b>For a single verse, </b>there is no osisID on any fragment before the verse, and therefore I&#39;d have to write (ugly?) code to try and map it to the Leningrad verse 1.</div><div><br></div><div>From the sounds of it, I&#39;m exploiting something that wasn&#39;t by design, but something that makes parallel displays look so much better.</div>
<div><br></div><div>I&#39;m open to ideas? I&#39;d like to get to a position when we can address pre-verse content separately to the verse it is contained in.</div><div>Chris</div><div><br></div></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 14 July 2013 20:13, DM Smith <span dir="ltr">&lt;<a href="mailto:dmsmith@crosswire.org" target="_blank">dmsmith@crosswire.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is in reply to this and another thread on the same subject. And cross-posting to JSword-devel to which this and the other post belong.<br>
<br>
First, Verse 0 is a SWORD construct indicating non-canonical material standing before the first verse, whether of the testament, book or chapter. It should never have canonical material in it. It was originally used for just headings and typically only has one or more titles, but more generally applies to any introductory material. It is possible for an author of OSIS to mark introductory material as canonical. However that is a bad practice.<br>

<br>
To my knowledge, Psalm headings/titles and book colophons are the only canonical material outside of verses. The difference between the two is that the Psalm title needs to appear before the verse number. We use a special construct for this called the &quot;preverse&quot; div, which is prepended to the canonical verse content. The attributes on the title element are taken from the OSIS source. This  preverse div is part of the stored entry for the verse.<br>

<br>
A colophon merely appears after the last verse of the book and has no specific delineation from the last verse. They are merely appended to that verse when the OSIS is converted to a module.<br>
<br>
I could modify osis2mod to have an osisID, based upon the verse that it precedes. But the reason that you don&#39;t find an osisID on the material that stands before the verse is that the authored OSIS does not have one.<br>

<br>
BTW, in the sample below the wrapping div, the x-gen entries and the verse begin/end are created by JSword, but otherwise the content is exactly what comes out of the OSIS module.<br>
<br>
I&#39;m not clear on where you are going with this line of questions. It might help if we knew what you were trying to accomplish.<br>
<br>
In Him,<br>
        DM<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Jul 14, 2013, at 5:28 AM, Chris Burrell &lt;<a href="mailto:chris@burrell.me.uk">chris@burrell.me.uk</a>&gt; wrote:<br>
<br>
&gt; Hello<br>
&gt;<br>
&gt; In the ESV, if we simply look up one verse, we get the canonical title. However, the canonical title is not attached to any verse. There is also no previous osisID in the fragment for which we can determine the fact it&#39;s part of verse 0.<br>

&gt;<br>
&gt; &lt;div&gt;<br>
&gt;   &lt;title type=&quot;x-gen&quot;&gt;Psalms 3:1&lt;/title&gt;<br>
&gt;   &lt;div type=&quot;x-milestone&quot; subType=&quot;x-preverse&quot; sID=&quot;pv2789&quot; /&gt;<br>
&gt;   &lt;div sID=&quot;gen7559&quot; type=&quot;section&quot; /&gt;<br>
&gt;   &lt;title&gt;Save Me, O My God&lt;/title&gt;<br>
&gt;   &lt;title canonical=&quot;true&quot; type=&quot;psalm&quot; subType=&quot;x-preverse&quot;&gt;<br>
&gt;     A Psalm of David,<br>
&gt;     &lt;note n=&quot;n&quot; osisID=&quot;Ps.3.1!crossReference.n&quot; osisRef=&quot;Ps.3.1&quot; type=&quot;crossReference&quot;&gt;<br>
&gt;       See<br>
&gt;       &lt;reference osisRef=&quot;2Sam.15.14-2Sam.15.17&quot;&gt;2 Sam. 15:14-17&lt;/reference&gt;<br>
&gt;     &lt;/note&gt;<br>
&gt;     when he fled from Absalom his son.<br>
&gt;   &lt;/title&gt;<br>
&gt;   &lt;lg sID=&quot;gen7560&quot; /&gt;<br>
&gt;   &lt;div type=&quot;x-milestone&quot; subType=&quot;x-preverse&quot; eID=&quot;pv2789&quot; /&gt;<br>
&gt;   &lt;verse osisID=&quot;Ps.3.1&quot;&gt;<br>
&gt; ...<br>
&gt; &lt;/div&gt;<br>
&gt;<br>
&gt; Any ideas if this is a bug (perhaps this is similar to a thread I started yesterday).<br>
&gt; Presumably the canonical should not be output, or it should be output but within a Psalm.3.0 div (or at least in proximity of a div Psalm.3.0 tag)<br>
&gt; Chris<br>
&gt;<br>
</div></div><div class="HOEnZb"><div class="h5">&gt; _______________________________________________<br>
&gt; sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
&gt; <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
&gt; Instructions to unsubscribe/change your settings at above page<br>
<br>
</div></div></blockquote></div><br></div>