[jsword-devel] [JIRA] Created: (JS-184) Change BibleNames to be an enum

DM Smith (JIRA) jira at crosswire.org
Mon Mar 28 14:33:00 MST 2011


Change BibleNames to be an enum
-------------------------------

                 Key: JS-184
                 URL: http://www.crosswire.org/bugs/browse/JS-184
             Project: JSword
          Issue Type: Sub-task
    Affects Versions: 1.6
            Reporter: DM Smith
            Assignee: DM Smith
             Fix For: 1.6.1


BibleNames currently is a set of constants numbering the books of the Bible from 1 to 66, from Genesis to Revelation.
This poses two problems to alternate versification:
* These numbers are often used as indexes into arrays. This presumes that the KJV ordering of the books is what every v11n uses. Not so.
* The range precludes apocryphal/deuterocanonical books.
For details, see: http://crosswire.org/wiki/OSIS_Book_Abbreviations

The av11n implementation in SWORD allows for books to be in any order and for "additional" books to be in either the OT or NT data files. It did not add a third set of data files.

By having an enum of the books we can pass around a BibleBook object.

The impact of this change is significant. Probably the most significant is the Verse class.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jsword-devel mailing list