[sword-svn] r3327 - trunk/src/modules/filters
refdoc at crosswire.org
refdoc at crosswire.org
Sun Mar 8 16:33:48 MST 2015
Author: refdoc
Date: 2015-03-08 16:33:48 -0700 (Sun, 08 Mar 2015)
New Revision: 3327
Modified:
trunk/src/modules/filters/gbflatex.cpp
Log:
more LaTeX work
Modified: trunk/src/modules/filters/gbflatex.cpp
===================================================================
--- trunk/src/modules/filters/gbflatex.cpp 2015-02-18 08:16:52 UTC (rev 3326)
+++ trunk/src/modules/filters/gbflatex.cpp 2015-03-08 23:33:48 UTC (rev 3327)
@@ -90,69 +90,69 @@
if (!strncmp(token, "WG", 2)) { // strong's numbers
//buf += " <small><em><<a href=\"type=Strongs value=";
- buf += " <small><em class=\"strongs\"><<a href=\"passagestudy.jsp?action=showStrongs&type=Greek&value=";
+ buf += " \\swordstrong{";
for (tok = token+2; *tok; tok++)
//if(token[i] != '\"')
buf += *tok;
- buf += "\" class=\"strongs\">";
+ buf += ", ";
for (tok = token + 2; *tok; tok++)
//if(token[i] != '\"')
buf += *tok;
- buf += "</a>></em></small>";
+ buf += "}";
}
else if (!strncmp(token, "WH", 2)) { // strong's numbers
//buf += " <small><em><<a href=\"type=Strongs value=";
- buf += " <small><em class=\"strongs\"><<a href=\"passagestudy.jsp?action=showStrongs&type=Hebrew&value=";
+ buf += " \\swordstrong[Hebrew]{";
for (tok = token+2; *tok; tok++)
//if(token[i] != '\"')
buf += *tok;
- buf += "\" class=\"strongs\">";
+ buf += ", ";
for (tok = token + 2; *tok; tok++)
//if(token[i] != '\"')
buf += *tok;
- buf += "</a>></em></small>";
+ buf += "}";
}
else if (!strncmp(token, "WTG", 3)) { // strong's numbers tense
//buf += " <small><em>(<a href=\"type=Strongs value=";
- buf += " <small><em class=\"strongs\">(<a href=\"passagestudy.jsp?action=showStrongs&type=Greek&value=";
+ buf += " \\swordstrong[Greektense]{";
for (tok = token + 3; *tok; tok++)
if(*tok != '\"')
buf += *tok;
- buf += "\" class=\"strongs\">";
+ buf += ", ";
for (tok = token + 3; *tok; tok++)
if(*tok != '\"')
buf += *tok;
- buf += "</a>)</em></small>";
+ buf += "}";
}
else if (!strncmp(token, "WTH", 3)) { // strong's numbers tense
//buf += " <small><em>(<a href=\"type=Strongs value=";
- buf += " <small><em class=\"strongs\">(<a href=\"passagestudy.jsp?action=showStrongs&type=Hebrew&value=";
+ buf += " \\swordstrong[Hebrewtense]{";
for (tok = token + 3; *tok; tok++)
if(*tok != '\"')
buf += *tok;
- buf += "\" class=\"strongs\">";
+ buf += ",";
for (tok = token + 3; *tok; tok++)
if(*tok != '\"')
buf += *tok;
- buf += "</a>)</em></small>";
+ buf += "}";
}
else if (!strncmp(token, "WT", 2) && strncmp(token, "WTH", 3) && strncmp(token, "WTG", 3)) { // morph tags
//buf += " <small><em>(<a href=\"type=morph class=none value=";
- buf += " <small><em class=\"morph\">(<a href=\"passagestudy.jsp?action=showMorph&type=Greek&value=";
+ buf += " \\swordmorph{";
for (tok = token + 2; *tok; tok++)
if(*tok != '\"')
buf += *tok;
- buf += "\" class=\"morph\">";
+ buf += ", >";
for (tok = token + 2; *tok; tok++)
if(*tok != '\"')
buf += *tok;
- buf += "</a>)</em></small>";
+ buf += "}";
}
else if (!strcmp(tag.getName(), "RX")) {
- buf += "<a href=\"";
+ buf += "\\swordxref{";
for (tok = token + 3; *tok; tok++) {
if(*tok != '<' && *tok+1 != 'R' && *tok+2 != 'x') {
buf += *tok;
@@ -161,7 +161,7 @@
break;
}
}
- buf += "\">";
+ buf += "}";
}
else if (!strcmp(tag.getName(), "RF")) {
SWBuf type = tag.getAttribute("type");
@@ -211,11 +211,11 @@
}
*/
else if (!strncmp(token, "FN", 2)) {
- buf += "<font face=\"";
+ buf += "\\swordfont{";
for (tok = token + 2; *tok; tok++)
if(*tok != '\"')
buf += *tok;
- buf += "\">";
+ buf += "}";
}
else if (!strncmp(token, "CA", 2)) { // ASCII value
More information about the sword-cvs
mailing list