<span style="font-family: Arial;">Either versification or specific module<br><br>Sent from my HTC<br><br>----- Reply message -----<br>From: &quot;DM Smith&quot; &lt;dmsmith@crosswire.org&gt;<br>To: &quot;JSword Developers Mailing List&quot; &lt;jsword-devel@crosswire.org&gt;<br>Subject: [jsword-devel] Bookmarks<br>Date: Thu, Mar 28, 2013 17:37<br><br></span><br>On Mar 28, 2013, at 10:24 AM, Martin Denham &lt;mjdenham@gmail.com&gt; wrote:<br><br>&gt; I am struggling to think what to do with bookmarks wrt Versification since a Bookmark refers to all current Modules, possibly with different versifications.<br>&gt; <br>&gt; Bookmarked verses are saved to a bookmarks database table. &nbsp;When reloading bookmarks from the table a Versification must be specified.<br><br>I think we need to save the v11n along with the list of verses. If none is defined then assume KJV.<br><br><br>&gt; <br>&gt; To get it working most of the time I could just use the default versification as follows:<br>&gt; &nbsp; &nbsp;savedBookmarkKey = PassageKeyFactory.instance().getKey(Versifications.instance().getDefaultVersification(), verseReferenceFromDb);<br><br>Suggest: use Versifications.DEFAULT_V11N or SystemKJV.V11N_NAME as a param to getVersification(String).<br><br>&gt; <br>&gt; But I notice that AbstractPassage is tied to Versification and wonder if this will even work for simple cases like Jn 3:16.<br><br>I&#39;m not sure what you mean.<br><br>John 3:16 and most verses in the NT are rather fixed. The OT has the most variation from one V11N to another.<br><br>&gt; <br>&gt; Eventually I probably need to record the current versification when saving the bookmark, but even then I will have the correct versification for the key but can the restored bookmark be used with different versifications. &nbsp;I mean can a common Key/Verse like Jn 3:16 be used with different Versifications or do I have to generate a different Key for every Versification when viewing multiple modules with different Versifications.<br><br>The core optimization of a V11N is the &quot;ordinal&quot; value of a verse. Conversion from a text reference to an ordinal value is costly. The ordinal value should be thought of as unique to a v11n. That is you can&#39;t use the ordinal value from one v11n for a different one.<br><br>There is a significant need to map one v11n to another. Only then can we accurately put in parallel books with different v11n.<br><br>I&#39;m still trying to figure out what is the best way to handle parallel views prior to such a mapping. Several thoughts:<br>a) only allow parallel views for books having the same v11n.<br>b) warn the user when they pick different v11ns for parallel views.<br>c) don&#39;t do anything special other than limiting verse picks from the v11n of the first book (&quot;leftmost&quot; book).<br><br>I&#39;m leaning toward c because this is what a user would have to do today if they had paper copies of the book.<br><br>We might need a way of casting a Verse from one v11n to another. A verse is immutable and contains the v11n and the ordinal value for it.<br><br>&gt; <br>&gt; This might be because I am still a bit confused regarding the way Versifications are implemented.<br>&gt; <br>&gt; Martin<br>&gt; <br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; jsword-devel mailing list<br>&gt; jsword-devel@crosswire.org<br>&gt; http://www.crosswire.org/mailman/listinfo/jsword-devel<br><br><br>_______________________________________________<br>jsword-devel mailing list<br>jsword-devel@crosswire.org<br>http://www.crosswire.org/mailman/listinfo/jsword-devel<br>