[jsword-devel] Heads up Verse change

Chris Burrell chris at burrell.me.uk
Sun Feb 17 01:12:44 MST 2013


Thanks for letting me know about verse 0 changes.  I'll wait till you're
done because step has special logic to work out whether something is the
beginning of a chapter
On 17 Feb 2013 05:22, "DM Smith" <dmsmith at crosswire.org> wrote:

> Lots of changes to 35 files (including tests) in support of Alternate
> Versification.
> You can see it, play with it and comment on it at:
> https://github.com/crosswire/jsword/pull/35/files
>
> I've tried to make verse 0 not show up quite as much. So Chapter 0 and 1
> are both considered as the start of a book. Likewise, verse 0 and 1 are the
> start of a chapter.
>
> This has an annoying side-effect. Two verse ranges may have the same
> "name" but be different internally. That is Gen 0:0-50:26, Gen 1:0-50:26
> and Gen 1:1-50:26 are different but all have the name "Gen"
>
> Will work on that tomorrow.
>
> Together in His Service,
>         DM
>
> On Feb 16, 2013, at 1:46 PM, DM Smith <dmsmith at crosswire.org> wrote:
>
> > I'm going to have to change Verse to take a versification. Was hoping
> not to do that.
> >
> > The fundamental reason is that we have too much code that allows for
> Verse to be in a container that requires Verse to be Comparable.
> >
> > I could do a brain dead ordering of book, chapter, verse. This works for
> chapter and verse, but not for book. Books are not ordered alphabetically,
> but in versification order.
> >
> > Right now, compareTo is deprecated (to see what needs to change), but it
> also means that I'd have to remove "implements Comparable" as well.
> >
> > Anyway, there's a patch for this in Jira and it passes all tests. Thanks
> John for the patch.
> >
> > In Him,
> >       DM
> > _______________________________________________
> > jsword-devel mailing list
> > jsword-devel at crosswire.org
> > http://www.crosswire.org/mailman/listinfo/jsword-devel
>
>
> _______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20130217/73b6ea51/attachment.html>


More information about the jsword-devel mailing list