[sword-svn] r3346 - trunk/src/modules/filters
refdoc at crosswire.org
refdoc at crosswire.org
Sat Mar 14 11:25:45 MST 2015
Author: refdoc
Date: 2015-03-14 11:25:45 -0700 (Sat, 14 Mar 2015)
New Revision: 3346
Modified:
trunk/src/modules/filters/osishtmlhref.cpp
trunk/src/modules/filters/osisrtf.cpp
trunk/src/modules/filters/osiswebif.cpp
trunk/src/modules/filters/osisxhtml.cpp
Log:
reverted last change
Modified: trunk/src/modules/filters/osishtmlhref.cpp
===================================================================
--- trunk/src/modules/filters/osishtmlhref.cpp 2015-03-14 16:17:42 UTC (rev 3345)
+++ trunk/src/modules/filters/osishtmlhref.cpp 2015-03-14 18:25:45 UTC (rev 3346)
@@ -202,7 +202,9 @@
outText("<ruby><rb>", buf, u);
outText(lastText, buf, u);
outText("</rb><rp>(</rp><rt>", buf, u);
- outText(attrib, buf, u);
+ val = strchr(attrib, ':');
+ val = (val) ? (val + 1) : attrib;
+ outText(val, buf, u);
outText("</rt><rp>)</rp></ruby>", buf, u);
}
if (!morphFirst) {
Modified: trunk/src/modules/filters/osisrtf.cpp
===================================================================
--- trunk/src/modules/filters/osisrtf.cpp 2015-03-14 16:17:42 UTC (rev 3345)
+++ trunk/src/modules/filters/osisrtf.cpp 2015-03-14 18:25:45 UTC (rev 3346)
@@ -178,7 +178,9 @@
outText(scratch.c_str(), buf, u);
}
if ((attrib = tag.getAttribute("gloss"))) {
- scratch.setFormatted(" {\\fs15 <%s>}", attrib);
+ val = strchr(attrib, ':');
+ val = (val) ? (val + 1) : attrib;
+ scratch.setFormatted(" {\\fs15 <%s>}", val);
outText(scratch.c_str(), buf, u);
}
if ((attrib = tag.getAttribute("lemma"))) {
Modified: trunk/src/modules/filters/osiswebif.cpp
===================================================================
--- trunk/src/modules/filters/osiswebif.cpp 2015-03-14 16:17:42 UTC (rev 3345)
+++ trunk/src/modules/filters/osiswebif.cpp 2015-03-14 18:25:45 UTC (rev 3346)
@@ -81,7 +81,9 @@
// buf.appendFormatted(" %s", val);
}
if ((attrib = tag.getAttribute("gloss"))) {
- buf.appendFormatted(" %s", attrib);
+ val = strchr(attrib, ':');
+ val = (val) ? (val + 1) : attrib;
+// buf.appendFormatted(" %s", val);
}
if ((attrib = tag.getAttribute("lemma"))) {
int count = tag.getAttributePartCount("lemma", ' ');
Modified: trunk/src/modules/filters/osisxhtml.cpp
===================================================================
--- trunk/src/modules/filters/osisxhtml.cpp 2015-03-14 16:17:42 UTC (rev 3345)
+++ trunk/src/modules/filters/osisxhtml.cpp 2015-03-14 18:25:45 UTC (rev 3346)
@@ -236,7 +236,9 @@
outText("<ruby><rb>", buf, u);
outText(lastText, buf, u);
outText("</rb><rp>(</rp><rt>", buf, u);
- outText(attrib, buf, u);
+ val = strchr(attrib, ':');
+ val = (val) ? (val + 1) : attrib;
+ outText(val, buf, u);
outText("</rt><rp>)</rp></ruby>", buf, u);
}
if (!morphFirst) {
More information about the sword-cvs
mailing list