[sword-devel] Major change to osis2mod - Module, NT & OT introductions and bug fixes

DM Smith dmsmith at crosswire.org
Fri Aug 8 12:29:25 EDT 2025


I just checked in the following:

MODTOOLS-111 osis2mod - Added module and testament introductions.
 * Made div of type bookGroup or book the demarcation between Module Introduction and module content.
 * From John Austin, changed the demarcation of chapter introductions and pre-verse,
   from a section div to a section, subSection or majorSection div when the subType isn't x-introduction.
   ** MODTOOLS-94 subSection pre-verse titles are not recognized
   ** MODTOOLS-95 majorSection titles are not always imported properly- and sometimes drops text
 * Removed old commented out code for majorSection 
 * Added two more exit codes EXIT_BAD_COMMENT and EXIT_BAD_ENTITY to replace misuse of EXIT_BAD_NESTING.
 * Reformatted diagnostic messages to be more readable.
 * Used global v11n rather than calling currentVerse.getVersificationSystem().
 * Changed 1 and 0 to true and false where the argument is bool.
 * If the module has module or testament introductions, prepend the revision to the first one, otherwise do as before.
 * Fixed bug where New Testament content is appended to Malachi. 
   ** MODTOOLS-4  osis2mod: bug in handling preverse material
   ** MODTOOLS-8  osis2mod does not place the New Testament bookGroup title in the correct place
   ** MODTOOLS-93 New Testament introduction is appended to end of Malachi
 * Rather than generating an sID/eID pair for book, chapter or verse, use the osisID value.
 * updated osis testcases to pass


More information about the sword-devel mailing list