<div dir="ltr">With split screens I try to map all verses in the left v11n to whatever the right v11n is and just display 'Not found in document' if the verse is not in the right v11n but I am having a problem with this approach because the verses not in the right v11n are currently being mapped to 'Bible Introduction 0:0'.<div>
<br></div><div>This test hopefully shows the problem:</div><div><div><br></div><div> final VersificationsMapper mapper = VersificationsMapper.instance();</div><div> Verse CathSir1_1 = new Verse(CATHOLIC, BibleBook.SIR, 1, 1);</div>
<div> // map Sirach.1.1 to KJV where it obviously does not exist<br></div><div> Key kjvSir1_1 = mapper.mapVerse(CathSir1_1, KJV);</div><div> // In the debugger the returned RangedPassage appears to contain Sir.1.1<br>
</div><div> // but however I try to get the verse it gets changed to Bible Introduction 0:0<br></div><div> Verse verse1 = KeyUtil.getVerse(kjvSir1_1);</div><div> System.out.println(verse1); // PROBLEM: Bible Introduction 0:0 (not Sir.1.1)</div>
</div><div><br></div><div>Am I trying to do something that can't be done? </div><div><br></div><div>I notice that the v11n mapping code uses QualifiedKey.reversify which has the warning:</div><div><div> /**</div><div>
* Convert this QualifiedKey from one Versification to another.</div><div> * This is a potentially dangerous operation that does no mapping</div><div> * from one versification to another. Use it only when it is known</div>
<div> * to be safe.</div></div><div> */</div><div><br></div><div>Thanks</div><div>Martin</div></div>