70 if (!strcmp(tag.
getName(),
"p")) {
85 else if (!strcmp(tag.
getName(),
"hi")) {
90 if (rend ==
"italic" || rend ==
"ital")
92 else if (rend ==
"bold")
94 else if (rend ==
"super" || rend ==
"sup")
96 else if (rend ==
"sub")
98 else if (rend ==
"overline")
99 buf +=
"<span style=\"text-decoration:overline\">";
103 if (rend ==
"italic" || rend ==
"ital")
105 else if (rend ==
"bold")
107 else if (rend ==
"super" || rend ==
"sup")
109 else if (rend ==
"sub")
111 else if (rend ==
"overline")
117 else if (!strcmp(tag.
getName(),
"entryFree")) {
129 else if (!strcmp(tag.
getName(),
"sense")) {
141 else if (!strcmp(tag.
getName(),
"div")) {
151 else if (!strcmp(tag.
getName(),
"lb")) {
156 else if (!strcmp(tag.
getName(),
"pos") ||
157 !strcmp(tag.
getName(),
"gen") ||
158 !strcmp(tag.
getName(),
"case") ||
159 !strcmp(tag.
getName(),
"gram") ||
160 !strcmp(tag.
getName(),
"number") ||
172 else if (!strcmp(tag.
getName(),
"tr")) {
182 else if (!strcmp(tag.
getName(),
"orth")) {
192 else if (!strcmp(tag.
getName(),
"etym") ||
193 !strcmp(tag.
getName(),
"usg")) {
196 else if (!strcmp(tag.
getName(),
"ref")) {
203 int was_osisref =
false;
214 const char* the_ref = strchr(target,
':');
231 buf.
appendFormatted(
"<a href=\"passagestudy.jsp?action=showRef&type=scripRef&value=%s&module=%s\">",
259 else if (!strcmp(tag.
getName(),
"note")) {
269 buf.
appendFormatted(
"<a href=\"passagestudy.jsp?action=showNote&type=n&value=%s&module=%s&passage=%s\"><small><sup class=\"n\">*n%s</sup></small></a>",
279 else if (!strcmp(tag.
getName(),
"graphic")) {
285 if ((filepath.
size()) && (filepath[filepath.
size()-1] !=
'/') && (url[0] !=
'/'))
290 buf.
appendFormatted(
"<a href=\"passagestudy.jsp?action=showImage&value=%s&module=%s\"><img src=\"file:%s\" border=\"0\" /></a>",
298 else if (!strcmp(tag.
getName(),
"table")) {
300 buf +=
"<table><tbody>\n";
303 buf +=
"</tbody></table>\n";
308 else if (!strcmp(tag.
getName(),
"row")) {
316 else if (!strcmp(tag.
getName(),
"cell")) {
326 else if (!strcmp(tag.
getName(),
"list")) {
332 if (rend ==
"numbered") {
335 else if (rend ==
"lettered") {
336 buf +=
"<ol type=\"A\">\n";
338 else if (rend ==
"bulleted") {
342 buf +=
"<ul class=\"list ";
349 if (rend ==
"numbered") {
352 else if (rend ==
"lettered") {
355 else if (rend ==
"bulleted") {
364 else if (!strcmp(tag.
getName(),
"item")) {
const char * getName() const
#define SWORD_NAMESPACE_START
SWBuf & appendFormatted(const char *format,...)
void setTokenEnd(const char *tokenEnd)
void addAllowedEscapeString(const char *findString)
const char * getType() const
virtual const char * getConfigEntry(const char *key) const
const char * getName() const
void setTokenCaseSensitive(bool val)
void setEscapeStart(const char *escStart)
bool substituteToken(SWBuf &buf, const char *token)
virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData)
virtual const char * getText() const
void setTokenStart(const char *tokenStart)
const char * c_str() const
MyUserData(const SWModule *module, const SWKey *key)
unsigned long size() const
const char * getAttribute(const char *attribName, int partNum=-1, char partSplit= '|') const
bool supressAdjacentWhitespace
void setEscapeStringCaseSensitive(bool val)
bool isEndTag(const char *eID=0) const
void setEscapeEnd(const char *escEnd)
#define SWORD_NAMESPACE_END
static const SWBuf encode(const char *urlText)
void setSize(unsigned long len)