I think from a user's point of view, he doesn't know about verse 0, so the reference of verse 0 should never be shown.<div><br></div><div>When he enters the references of a whole chapter, he probably wants the whole chapter, even if he specifies verse numbers. So if you start at verse 1, I would be tempted to include verse 0 in the lookup. The problem that I see is that verse 0 isn't really a verse from a semantics sense. The user knows about "intros" so perhaps having an option to toggle the intro on/off would then include/exclude verse 0. </div>
<div><br></div><div>For scenario 1, this probably doesn't change. You can store based on the "intro" option whether or not to include verse 0. Scenario 2 can then leverage this "option", in that the user has specifically chosen to show or not show this in the passages he is looking up, and therefore the search happens on the same context. Same applies to blurring, in that we show verse 0 if selected.</div>
<div><br></div><div>Perhaps that just means a bit of clever logic in the xslt that BibleDesktop uses? in the same way headers, etc. are specified...</div><div><br></div><div>Chris</div><div><br></div><div><br></div><div><br>
<br><div class="gmail_quote">On 3 July 2012 00:42, 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">
<div style="word-wrap:break-word">Sorry for the empty post. Was going to muse whether Chapter n:1 should implicitly include all verse 0 before it.<div><div class="h5"><div><br></div><div><br><div><div>On Jul 2, 2012, at 7:39 PM, DM Smith wrote:</div>
<br><blockquote type="cite"><div style="word-wrap:break-word"><br><div><div>On Jul 2, 2012, at 12:54 PM, DM Smith wrote:</div><br><blockquote type="cite">
<div text="#000000" bgcolor="#FFFFFF">
<div>The work is done by
VerseRange.getName() which calls VerseRange.getName(Verse base)
which ultimately calls VerseRange doGetName(Verse base).<br>
<br>
The purpose of this routine is to get a user friendly
representation of the VerseRange. It is used in more places than
just x-gen titles. Here are a few more scenarios:<br>
<br>
First scenario:<br>
It is used in a bi-directional context. That is the user can input
Gen 1:1-31, which is not the same as Gen 1, since Gen 1 can
include intros if present.<br>
<br>
So in BibleDesktop, we allow a user to input verses freeform and
we try to figure out the best we can what they mean.<br>
<br>
In preferences they can either preserve original values in which
case we only show them what they type, but behind the scenes we
store it as we see fit.<br>
<br>
Or they can choose to have their input normalized into their
preferred form. This will result in calls to
VerseRange.getName(Verse base).<br>
<br>
This normalized form is then used to do whatever work is needed.
So the normalized form needs to be equivalent to what the user
originally specified.<br>
<br>
Second scenario:<br>
The user performs a search and the answer is included in verse 0.
Should 0 be shown to the user?<br>
<br>
Third scenario:<br>
Blurring: The user has Gen 1:4 in their list and blurs it by 10
verses, which results in Gen 1:0-14. Should it show 0? Should it
show the intro?<br>
<br>
In each of these scenarios, the output is the textual
representation of a bit map. They need to match.<br>
<br>
There may be others, but I know of these off the top of my head.<br>
<br>
So how do we change it for your scenario? What should we do for
the other scenarios?<br>
<br>
In Him,<br>
DM<br>
<br>
<br>
On 07/02/2012 12:18 PM, Chris Burrell wrote:<br>
</div>
<blockquote type="cite">Hi DM
<div><br>
</div>
<div>The problem is that a user may type in Exodus 3-4:17 and
somehow from his point of view gets verse 0 for chapter 4 (and
no 0 for chapter 3 (note the slight difference from before -
same symptoms/results with Ex 3-... and Ex 3:1-... Verse 0 is
omitted for this chapter).</div>
<div><br>
</div>
<div>From a user's point of view, he doesn't know about a verse 0
and so verse 0 should never be in a title. Or at least, that's
my take...</div>
<div>Chris</div>
<div><br>
<div><br>
<div class="gmail_quote">
On 2 July 2012 17:11, 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">
<div text="#000000" bgcolor="#FFFFFF">
<div>
<div>
<div>On 07/02/2012 11:53 AM, Chris Burrell wrote:<br>
</div>
<blockquote type="cite">Hi
<div><br>
</div>
<div>With the introduction of verse 0, the xgen
titles sometimes now contain this. I used to use
this to display the demarcations between
passages if multiple passages are being entered.
However, this now gives the following xgen
titles: </div>
<div><br>
</div>
<div><title type="x-gen">Exodus
3:1-22</title></div>
<div><title type="x-gen">Exodus
4:0-17</title></div>
<div><br>
</div>
<div>The above example is for "Exodus 3:1-4:17". </div>
<div><br>
</div>
<div>I was just wondering if this <b><i>expected
</i></b>behaviour. If so, I'll code something
to work around this. It doesn't however happen
for "Exodus 3-4"<br>
</div>
</blockquote>
</div>
</div>
I'm not sure how it should work. It is certainly the way
it is coded. Chapter 0 and Verse 0 are full fledged
references.<br>
<br>
That is for Genesis<br>
Gen.0.0 is the Book intro/title<br>
Gen.1.0 is the Chapter intro/title<br>
<br>
In your example, Exodus 3:1-4:17 explicitly excludes the
Chapter 3 intro, if present, but explicitly includes it
for chapter 4, if present.<br>
<br>
So if you want all of Genesis, chapter 1, do you want
the title as well? Then Gen.1 will work. But if you
don't and headings are turned on, what then?
Gen.1.1-Gen.1.21?<br>
<br>
If you want part of the chapter, say the first 10
verses, what do you want? Gen.1.0-Gen.1.10 or
Gen.1.1-Gen.1.10?<br>
<br>
Right now, the code makes no distinction between one
chapter number and another or one verse number and
another. Should it?<br>
<br>
If not, what should it do?<br>
<br>
In Him,<br>
DM<br>
<br>
</div>
<br>
_______________________________________________<br>
jsword-devel mailing list<br>
<a href="mailto:jsword-devel@crosswire.org" target="_blank">jsword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/jsword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
jsword-devel mailing list
<a href="mailto:jsword-devel@crosswire.org" target="_blank">jsword-devel@crosswire.org</a>
<a href="http://www.crosswire.org/mailman/listinfo/jsword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/jsword-devel</a>
</pre>
</blockquote>
<br>
<br>
</div>
_______________________________________________<br>jsword-devel mailing list<br><a href="mailto:jsword-devel@crosswire.org" target="_blank">jsword-devel@crosswire.org</a><br><a href="http://www.crosswire.org/mailman/listinfo/jsword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br>
</blockquote></div><br></div>_______________________________________________<br>jsword-devel mailing list<br><a href="mailto:jsword-devel@crosswire.org" target="_blank">jsword-devel@crosswire.org</a><br><a href="http://www.crosswire.org/mailman/listinfo/jsword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br>
</blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
jsword-devel mailing list<br>
<a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/jsword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br>
<br></blockquote></div><br></div>