[sword-cvs] sword/src/modules/filters osisstrongs.cpp,1.12,1.13

sword@www.crosswire.org sword@www.crosswire.org
Thu, 19 Feb 2004 10:33:15 -0700


Update of /cvs/core/sword/src/modules/filters
In directory www:/tmp/cvs-serv17259

Modified Files:
	osisstrongs.cpp 
Log Message:
Added entry attributes word number to the <w> tag


Index: osisstrongs.cpp
===================================================================
RCS file: /cvs/core/sword/src/modules/filters/osisstrongs.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- osisstrongs.cpp	19 Feb 2004 12:02:02 -0000	1.12
+++ osisstrongs.cpp	19 Feb 2004 17:33:13 -0000	1.13
@@ -63,6 +63,7 @@
 		if (*from == '>') {	// process tokens
 			intoken = false;
 			if ((*token == 'w') && (token[1] == ' ')) {	// Word
+				*wordstr = 0;
 				if (module->isProcessEntryAttributes()) {
 					valto = val;
 					char *num = strstr(token, "lemma=\"x-Strongs:");					
@@ -103,6 +104,11 @@
 							module->getEntryAttributes()["Word"][wordstr]["Morph"] = val;
 						}
 					}
+				}
+				if (wordstr) {
+					strcat(token, " wn=\"");
+					strcat(token, wordstr);
+					strcat(token, "\"");
 				}
 				if (!option) {
 					char *num = strstr(token, "lemma=\"x-Strongs:");