<p dir="ltr">Agreed on all your points below around sword and files and flexibility. </p>
<p dir="ltr">Splits are only used to refer to the master system. They are not necessary but they add resolution to the mapping lookups. Here's the reason. If a and b split verses in a similar way we would like to be able to go from a to b without ending up with a bigger chunk of text. </p>
<p dir="ltr">Gen.1.1=Gen.1.1a<br>
Gen.1.2=Gen.1.1b</p>
<p dir="ltr">If both versifications define the above we can go from gen.1.1 in one versification to the equivalent in the target. Without the split, the intermediate master resolves to gen.1.1 which in turn resolves to Gen.1.1 and Gen.1.2</p>
<p dir="ltr">In your kjv example chapter 4, I'd like to introduce new ids instead of extending the kjv verses (e.g. Dan.4e.5. Where e means extra and can be in middle, at the beginning so long as we adopt a convention for naming them but the id can be completely different say songofchildren.1 if we're referring to extra bits in Daniel). </p>
<p dir="ltr">People know the kjv so when working on a mapping I think it's important to have the ids refer to a well known system. It also means that you can use the normal ids and look it up straight away to see what content belongs to it in the kjv. The extra ids and splits can be documented. The benefit of this system is that the master reference only needs to be documented not coded although it could be if we wanted to. The other problem with modifying the kjv is that due to one versification being slightly odd, you affect all the other ones as they then have to cope with the shift of 7 verses. Introducing a new versification becomes harder. Splits and new ids cater for this. </p>
<p dir="ltr">For absent verses we could diet define a absent section in the file, maybe that is an array of properties:<br>
absent=gen.1.1<br>
absent=gen.*<br>
...</p>
<p dir="ltr">Just a few thoughts. <br>
Chris</p>
<div class="gmail_quote">On 15 Mar 2013 01:10, "DM Smith" <<a href="mailto:dmsmith@crosswire.org">dmsmith@crosswire.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">When searching the archives use the word "mapping", there are some pertinent discussions.<div><br></div><div>If you come up with a mapping that works that's great! If our data structure is very clear and can be migrated to C++ (by someone else) that's even better. If we can externalize it as a file that can be loaded by JSword, then SWORD can use it directly.</div>
<div><br></div><div>BTW, I hope to be able to externalize the V11N so that a module can supply one. With mapping (patching) another file would need to be supplied.</div><div><br></div><div>The representation of a mapping in Java is a lot easier (as you have described) than getting the data correct.</div>
<div><br></div><div>Some embedded comments below:</div><div><br><div><div>On Mar 14, 2013, at 7:03 PM, Chris Burrell <<a href="mailto:chris@burrell.me.uk" target="_blank">chris@burrell.me.uk</a>> wrote:</div><br><blockquote type="cite">
<div dir="ltr">I will wait to see if anyone responds, but I thought I'd emailed a few months ago and got no response (although I can't find my original email). While I understand that support for versification as a whole might be tricky, I'm not sure I agree with the fact that patching from one to another is tricky as well.<div>
<br></div><div>If you allow you master versification to be able to have split verses, then everything becomes rather trivial</div><div><br></div><div><b>2 verse in the original, 1 verse in the KJV-based master</b></div>
<div>Gen.1.1=Gen.1.1</div><div>Gen.1.2=Gen.1.1</div></div></blockquote><div><br></div>Right.<br><blockquote type="cite"><div dir="ltr"><div><br></div><div><b>1 verse in the original, 2 verses in the master</b></div><div>
Gen.1.1=Gen.1.1-Gen.1.2</div></div></blockquote>Is there a good representation that the rest of the verses are off by one?</div><div><br><blockquote type="cite"><div dir="ltr"><div><br></div><div>
<b>Using splits, so that 2 separate versifications can refer to the same parts of verses</b></div><div>Gen.1.1=Gen.1.1a</div><div>Gen.1.2=Gen.1.1b</div><div>Gen.1.3=Gen.1.1.c</div></div></blockquote><div><br></div>I'm not sure that splits should be represented. The modules certainly wouldn't mark the division between a, b, c, ....</div>
<div><br><blockquote type="cite"><div dir="ltr"><div><br></div><div>
Then another versification can also refer to the same parts. It would become necessary to keep track of what the parts are, such that they can be easily re-used when approrpriate. For example, a second versification might be mapped as follows:</div>
<div><br></div><div>Gen.1.1=Gen.1.1a-Gen.1.1b</div><div>Gen.1.2=Gen.1.c</div><div><br></div><div><b>No mapping</b></div><div>Osis IDs mean the same thing.</div><div><br></div></div></blockquote>yes.</div><div><br><blockquote type="cite">
<div dir="ltr"><div>
I think the above covers, "Split verse", "Merged verse", Different verse boundaries.</div><div><br></div><div><b>Chapter boundaries can be mapped equally the same:</b></div><div>Gen.1.1=Gen.1.1</div>
<div>Gen.1.2=Gen.2.1</div></div></blockquote><div><br></div><div>Having a compact representation for the resulting shift would be good.</div><br><blockquote type="cite"><div dir="ltr"><div><br></div><div>indicates that that Genesis 1:2 can be found in Gen 2:1 in the master.</div>
<div><br></div><div><b>Extra verses</b></div><div>We simply introduce some identified ids (osis ids, or other form of unique identifier) in the master to identify the content of these verses</div>
<div><br></div><div>Additional verses within a chapter can be represented using the above.</div></div></blockquote><div><br></div>So, the KJV has a chapter 4 with 20 verses. A v11n B differs from the KJV in that B has 6-11 that are not in the KJV and 12 to the end of the chapter in B is the same as 6-20 in the KJV.<br>
<div><br></div>So then the KJV is not the base, but a modified representation of the KJV that has 7 more verses in chapter 4. This modified representation is what I was calling the "rosetta stone".</div><div><br>
</div><div>I think a mapping has to be bi-directional.</div><div><div><br></div><div>Missing verses</div>A v11n might leave out something in the middle of a KJV chapter. (The ESV has this, but shrewdly has a note in those verses explaining that the verse is not Biblical).</div>
<div><br></div><div>You said that if a mapping is not present then the verses are the same between the two. How do you represent a hole?<br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra">
<b>Psalm headings:</b></div><div class="gmail_extra">
Ps.53.1=Ps.53.1 (not required, or required if map it to 'nothing' or '0')</div><div class="gmail_extra">Ps.53.2=Ps.53.1</div><div class="gmail_extra">Ps.53.3=Ps.53.2</div><div class="gmail_extra">
<br></div><div class="gmail_extra">We can reduce this to if we want to introduce a less verbose way of mapping things.</div><div class="gmail_extra">Ps.53.2-7-=Ps.53.1-+1 (where minus simply indicates that there is an offset of 1 compared to the master)</div>
</div></blockquote>I hadn't noticed this when I asked about a compact representation.</div><div><br><blockquote type="cite"><div dir="ltr">
<div class="gmail_extra"><br></div><div class="gmail_extra">I don't think we need to introduce splits on the left hand-side. The reason being, you can't do anything with an OSIS id of Gen.1.1a, since you're going to retrieve a whole verse anyway, so we can keep things with splits only-ever on the right hand side.</div>
<div class="gmail_extra"><br></div></div></blockquote><div><br></div>I don't think we need splits on either side.</div><div><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra">For verse ranges, we can expand out to its list of verses contained in the source versification first. Then there needs to be a choice by the user/software of whether we're attempting to compare a contiguous section in the target versification, or verses of the same content..</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">---</div><div class="gmail_extra"><br></div><div class="gmail_extra">I saw some posts on the archives, but not a lot. One by Greg H, whom I agree with, in that the KJV versification should be the master + extended bits from the apocrypha. That makes it easier for people to write mappings.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">I agree with your last point, that coming up with the mappings can be hard, and it will take someone to understand where the verses really different in content. But I think the above system is pretty simple.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">I disagree with the idea of having a master versification being "the rosetta stone", if by that we mean inflexible to change. </div></div></blockquote>
<div><br></div>I didn't mean it should be inflexible to change. It may be resistant to change.</div><div><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra">There are bound to be changes (new/custom versifications, bug fixes, oversights, etc.) We can easily provide a tool that inserts splits and rewrites all the mappings safely for that.</div>
</div></blockquote><div><br></div>Yes.</div><div><br><blockquote type="cite"><div dir="ltr">
<div class="gmail_extra"><br></div><div class="gmail_extra">I'm happy to work with others if they want to work on this, but I've found most of the posts on the lists about this are rather old. I'll wait and see what comes of my post, but on the other hand, STEP needs this rather quickly (doing text comparisons, parallel texts and interlinears). I have the mappings for the Masoretic Text which would solve most of STEP's interlinear issues when using 1 or more ancient texts. And there's nothing to say that we don't put in the mappings one by one, especially if we provide a tool that can do that.</div>
</div></blockquote><div><br></div>Go for it.</div><div><br><blockquote type="cite"><div dir="ltr">
<div class="gmail_extra"><br></div><div class="gmail_extra">To be clear, I'm not trying to solve your last point of "In each of these it is important to determine what will be represented by a v11n". </div>
</div></blockquote><div><br></div>My point was that the granularity of a split would never be represented in the data structures of a v11n or in a module, so it can safely be ignored.</div><div><br><blockquote type="cite">
<div dir="ltr"><div class="gmail_extra">This someone else can do when they come up with a different v11n. The problem of mapping them is distinctively separate and the one I'm trying to address.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Maybe I'm missing something?</div></div></blockquote><div><br></div>Be ready for surprises. I don't know anything that's missing.</div><div><br><blockquote type="cite">
<div dir="ltr"><div class="gmail_extra">Chris</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On 13 March 2013 22:46, 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="word-wrap:break-word">The work has started. And it is very hard. Not trying to discourage you, but it'd be better to work with others. Give it some time. Perhaps search the sword-devel archives for discussions regarding the difficulties and the work that needs to go into it.<div>
Harry Plantinga (over at CCEL) has done some work on this, too. (Hope I have his name right.)</div><div><br></div><div>Here are some of the issues of comparing one version to another:</div><div><ul><li>Split verse. This causes an increase in the number of verses in one chapter.</li>
<li>Merged verses. This causes a decrease in the number of verses in one chapter.</li><li>Different verse boundaries. This causes no change in the number of verses in one chapter. (E.g. Some Greek NT have then end of John 1:3 as the start of John 1:4)</li>
<li>Split chapters. This causes the reduction of the number of verses in one chapter and the increase in the number of chatpers in a book. (The German tradition splits the last chapter of Malachi)</li><li>Different chapter boundaries. This causes the number of verses in one chapter to increase(decrease) and in the next to decrease(increase). (The Greek NT's sometimes put the last few verses of one chapter into the beginning of the other. or the first few verses of one chapter at the end of the prior).</li>
<li>Additional or fewer verses at the end of a chapter. (Mark 16:9-20 which some regard as an apocryphal addition to the NT.)</li><li>Additional or fewer verses in the middle of a chapter. (The placement of the samaritan woman at the well differs by tradition.)</li>
<li>Additional or fewer chapters in the middle of a book.</li><li>Psalms having the canonical introduction to the Psalm being verse 1.</li><li>The Apocrypha is a mess of inconsistencies. In some versifications, the apocrypha is inserted into canonical books of the Bible. E.g. Esther, Daniel.</li>
</ul></div><div><br></div><div>In each of these it is important to determine what will be represented by a v11n. For example, verses that have different verse boundaries would not be represented by different v11ns.</div>
<div>
<br></div><div>I think Chris Little was working on a new v11n that basically took all (many?) of the different traditions and merged them together. Then this would be the rosetta stone. I don't know how far along he is on that. Or whether it is still in ideation.</div>
<div><br></div><div>With the "super" v11n, it would be used transitively to line up the different verses.</div><div><br></div><div>Some v11ns are traditions by language. E.g. Germans and Russians each have their own particular v11ns. It'd be reasonable for a bi-lingual user to view books in parallel from different v11ns. I wonder whether native speakers will be needed to help figure out the mapping.</div>
<div><br></div><div>While I have studied English, French, Italian, Spanish, German, Greek and Hebrew and have a Masters of Divinity, I don't feel competent to tackle this. (code wise yes, but not the actual mapping) Also, there are other things that more readily occupy my frontal lobes.</div>
<span><font color="#888888"><div><br></div><div>-- DM</div></font></span><div><div><div><br></div><div><br></div><div><div><div>On Mar 13, 2013, at 5:54 PM, Chris Burrell <<a href="mailto:chris@burrell.me.uk" target="_blank">chris@burrell.me.uk</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr">Hi DM<div><br></div><div>I'm wondering about doing some of the work to convert from one v11n to another, especially if I don't hear back on the sword-devel.</div><div><br>
</div><div>I'm thinking of doing the following :</div>
<div>- create a converter that goes through to a "master" versification as you suggested. We define the mappings for those OsisIDs that don't match. The master version is based on the KJV versification (for ease of being able to create new mappings) + the books that aren't in the KJV.</div>
<div><br></div><div>- mappings include just the bits that don't match up.</div><div><br></div><div>- mappings can be define for sets of verses with offset, e.g. Psalm 51:1-5=Psalm 51:1+1 (where +1 indicates an offset of 1 to be applied to the source.</div>
<div><br></div><div>- Have the concept of split verses (i.e. Rom 1:1a, Rom 1:1b, etc.)</div><div><br></div><div>- A tool to create a split in the master versification, which rewrites all the current versifications, such that when someone writes a mapping and needs to split a verse, they can introduce the split without adversely affecting every other mapping.</div>
<div><br></div><div>- the lookup process takes an String (OSIS ID) with a source and target versification. (also overload that with Key/Verse). It then queries the master mapping, which returns 1 or more entries (an entry being a whole verse, or set of split verses). Then goes to reverse mappings for the target versification and does the same. For incomplete verses on one side or the other, we round up the closest verse.</div>
<div><br></div><div>- The reason for basing the versification on KJV (or some other English versification), is that's it easy to work against. The alternative would be to go for the most split versification ever found, but that becomes painful in the future if someone decides to split another verse in 2 parts.</div>
<div><br></div><div>- When introducing a split, we would want to record what the split actually refers to (i.e. what content). This wouldn't be used by the library, but instead be useful for people coming along and writing new mappings.</div>
<div><br></div><div>Those are some of my thoughts so far.</div><div>Chris</div><div><br></div></div>
</blockquote></div><br></div></div></div></div></blockquote></div><br></div></div>
</blockquote></div><br></div></div></blockquote></div>