[sword-svn] r3311 - branches/sword-1-7-x/utilities
greg.hellings at crosswire.org
greg.hellings at crosswire.org
Tue Dec 23 23:07:20 MST 2014
Author: greg.hellings
Date: 2014-12-23 23:07:19 -0700 (Tue, 23 Dec 2014)
New Revision: 3311
Modified:
branches/sword-1-7-x/utilities/osis2mod.cpp
Log:
Greg Helling's patch to osis2mod for majorSections
Modified: branches/sword-1-7-x/utilities/osis2mod.cpp
===================================================================
--- branches/sword-1-7-x/utilities/osis2mod.cpp 2014-12-17 14:02:43 UTC (rev 3310)
+++ branches/sword-1-7-x/utilities/osis2mod.cpp 2014-12-24 06:07:19 UTC (rev 3311)
@@ -852,6 +852,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