<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't part of a 'verse' (or even part of the div marking verse.0), I can remember the fact I'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'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'm exploiting something that wasn't by design, but something that makes parallel displays look so much better.</div>
<div><br></div><div>I'm open to ideas? I'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"><<a href="mailto:dmsmith@crosswire.org" target="_blank">dmsmith@crosswire.org</a>></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 "preverse" 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'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'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 <<a href="mailto:chris@burrell.me.uk">chris@burrell.me.uk</a>> wrote:<br>
<br>
> Hello<br>
><br>
> 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's part of verse 0.<br>
><br>
> <div><br>
> <title type="x-gen">Psalms 3:1</title><br>
> <div type="x-milestone" subType="x-preverse" sID="pv2789" /><br>
> <div sID="gen7559" type="section" /><br>
> <title>Save Me, O My God</title><br>
> <title canonical="true" type="psalm" subType="x-preverse"><br>
> A Psalm of David,<br>
> <note n="n" osisID="Ps.3.1!crossReference.n" osisRef="Ps.3.1" type="crossReference"><br>
> See<br>
> <reference osisRef="2Sam.15.14-2Sam.15.17">2 Sam. 15:14-17</reference><br>
> </note><br>
> when he fled from Absalom his son.<br>
> </title><br>
> <lg sID="gen7560" /><br>
> <div type="x-milestone" subType="x-preverse" eID="pv2789" /><br>
> <verse osisID="Ps.3.1"><br>
> ...<br>
> </div><br>
><br>
> Any ideas if this is a bug (perhaps this is similar to a thread I started yesterday).<br>
> 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>
> Chris<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
> <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
> Instructions to unsubscribe/change your settings at above page<br>
<br>
</div></div></blockquote></div><br></div>