[sword-svn] r1777 - trunk/src/modules/filters

chrislit at crosswire.org chrislit at crosswire.org
Sat Apr 16 07:32:22 MST 2005


Author: chrislit
Date: 2005-04-16 07:32:21 -0700 (Sat, 16 Apr 2005)
New Revision: 1777

Modified:
   trunk/src/modules/filters/osisrtf.cpp
Log:
added basic <catchWord> & <rdg> support

Modified: trunk/src/modules/filters/osisrtf.cpp
===================================================================
--- trunk/src/modules/filters/osisrtf.cpp	2005-04-16 14:31:06 UTC (rev 1776)
+++ trunk/src/modules/filters/osisrtf.cpp	2005-04-16 14:32:21 UTC (rev 1777)
@@ -223,6 +223,16 @@
 			}
 		}
 
+		// <catchWord> & <rdg> tags (italicize)
+		else if (!strcmp(tag.getName(), "rdg") || !strcmp(tag.getName(), "catchWord")) {
+			if ((!tag.isEndTag()) && (!tag.isEmpty())) {
+				buf += "{\i1 ";
+			}
+			else if (tag.isEndTag()) {
+				buf += "}";
+			}
+		}
+
 		// <hi>
 		else if (!strcmp(tag.getName(), "hi")) {
 			SWBuf type = tag.getAttribute("type");



More information about the sword-cvs mailing list