[sword-svn] r1921 - trunk/src/modules/filters
scribe at crosswire.org
scribe at crosswire.org
Mon May 22 04:25:37 MST 2006
Author: scribe
Date: 2006-05-22 04:25:36 -0700 (Mon, 22 May 2006)
New Revision: 1921
Modified:
trunk/src/modules/filters/gbfwordjs.cpp
trunk/src/modules/filters/osiswordjs.cpp
trunk/src/modules/filters/thmlwordjs.cpp
Log:
Added support for source module name passing
Modified: trunk/src/modules/filters/gbfwordjs.cpp
===================================================================
--- trunk/src/modules/filters/gbfwordjs.cpp 2006-05-22 09:23:08 UTC (rev 1920)
+++ trunk/src/modules/filters/gbfwordjs.cpp 2006-05-22 11:25:36 UTC (rev 1921)
@@ -192,7 +192,7 @@
const char *m = strchr(morph.c_str(), ':');
if (m) m++;
else m = morph.c_str();
- spanStart.appendFormatted("<span class=\"clk\" onclick=\"p(\'%s\',\'%s\','%s','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m);
+ spanStart.appendFormatted("<span class=\"clk\" onclick=\"p('%s','%s','%s','%s','','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m, modName.c_str());
text.insert(textStr, spanStart);
lastAppendLen = spanStart.length();
}
@@ -273,7 +273,7 @@
const char *m = strchr(morph.c_str(), ':');
if (m) m++;
else m = morph.c_str();
- spanStart.appendFormatted("<span class=\"clk\" onclick=\"p(\'%s\',\'%s\','%s','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m);
+ spanStart.appendFormatted("<span class=\"clk\" onclick=\"p('%s','%s','%s','%s','','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m, modName.c_str());
text.insert(textStr, spanStart);
}
}
Modified: trunk/src/modules/filters/osiswordjs.cpp
===================================================================
--- trunk/src/modules/filters/osiswordjs.cpp 2006-05-22 09:23:08 UTC (rev 1920)
+++ trunk/src/modules/filters/osiswordjs.cpp 2006-05-22 11:25:36 UTC (rev 1921)
@@ -147,7 +147,7 @@
}
}
// 'p' = 'fillpop' to save bandwidth
- text.appendFormatted("<span class=\"clk\" onclick=\"p(\'%s\',\'%s\','%s','%s');\" >", lexName.c_str(), lemma.c_str(), wordID.c_str(), morph.c_str());
+ text.appendFormatted("<span class=\"clk\" onclick=\"p('%s','%s','%s','%s','','%s');\" >", lexName.c_str(), lemma.c_str(), wordID.c_str(), morph.c_str(), modName.c_str());
wordNum++;
}
if ((*token == '/') && (token[1] == 'w') && option) { // Word
Modified: trunk/src/modules/filters/thmlwordjs.cpp
===================================================================
--- trunk/src/modules/filters/thmlwordjs.cpp 2006-05-22 09:23:08 UTC (rev 1920)
+++ trunk/src/modules/filters/thmlwordjs.cpp 2006-05-22 11:25:36 UTC (rev 1921)
@@ -204,7 +204,7 @@
const char *m = strchr(morph.c_str(), ':');
if (m) m++;
else m = morph.c_str();
- spanStart.appendFormatted("<span class=\"clk\" onclick=\"p(\'%s\',\'%s\','%s','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m);
+ spanStart.appendFormatted("<span class=\"clk\" onclick=\"p('%s','%s','%s','%s','','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m, modName.c_str());
text.insert(textStr, spanStart);
lastAppendLen = spanStart.length();
}
@@ -285,7 +285,7 @@
const char *m = strchr(morph.c_str(), ':');
if (m) m++;
else m = morph.c_str();
- spanStart.appendFormatted("<span class=\"clk\" onclick=\"p(\'%s\',\'%s\','%s','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m);
+ spanStart.appendFormatted("<span class=\"clk\" onclick=\"p('%s','%s','%s','%s','','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m, modName.c_str());
text.insert(textStr, spanStart);
}
}
More information about the sword-cvs
mailing list