[sword-svn] r3307 - trunk/utilities
dmsmith at crosswire.org
dmsmith at crosswire.org
Mon Dec 15 08:15:33 MST 2014
Author: dmsmith
Date: 2014-12-15 08:15:32 -0700 (Mon, 15 Dec 2014)
New Revision: 3307
Modified:
trunk/utilities/osis2mod.cpp
Log:
Greg Helling's patch to osis2mod for majorSections
Modified: trunk/utilities/osis2mod.cpp
===================================================================
--- trunk/utilities/osis2mod.cpp 2014-12-15 07:07:04 UTC (rev 3306)
+++ trunk/utilities/osis2mod.cpp 2014-12-15 15:15:32 UTC (rev 3307)
@@ -883,6 +883,36 @@
// Now consider everything else.
+ // "majorSection" is code for the Book 1-5 of Psalms
+ if (tokenName == "div" && typeAttr == "majorSection") {
+ if (inBookIntro) {
+ if (debug & DEBUG_TITLE) {
+ cout << "DEBUG(TITLE): " << currentOsisID << ": BOOK INTRO "<< text << endl;
+ }
+ writeEntry(text);
+ }
+
+ if (debug & DEBUG_OTHER) {
+ cout << "DEBUG(FOUND): majorSection found " << currentVerse.getOSISRef() << endl;
+ }
+
+ strcpy(currentOsisID, currentVerse.getOSISRef());
+
+ inChapter = false;
+ inVerse = false;
+ inPreVerse = false;
+ inBookIntro = false;
+ inChapterIntro = true;
+
+ if (debug & DEBUG_TITLE) {
+ cout << "DEBUG(TITLE): " << currentOsisID << ": Looking for chapter introduction" << endl;
+ }
+
+ verseDepth = 0;
+
+ return false;
+ }
+
// Handle WOC quotes.
// Note this requires transformBSP to make them into milestones
// Otherwise have to do it here
More information about the sword-cvs
mailing list