76 if (!strncmp(token,
"note ", 5)) {
81 else if (!strncmp(token,
"/note", 5)) {
85 else if (!strncmp(token,
"w", 1)) {
88 num = strstr(token,
"lemma=\"x-Strongs:");
90 for (num+=17; ((*num) && (*num !=
'\"')); num++)
93 if (atoi((!isdigit(*val))?val+1:val) < 5627) {
94 buf +=
" <small><em><";
95 for (tok = (!isdigit(*val))?val+1:val; *tok; tok++)
97 buf +=
"></em></small> ";
100 num = strstr(token,
"lemma=\"strong:");
102 for (num+=14; ((*num) && (*num !=
'\"')); num++)
105 if (atoi((!isdigit(*val))?val+1:val) < 5627) {
106 buf +=
" <small><em><";
107 for (tok = (!isdigit(*val))?val+1:val; *tok; tok++)
109 buf +=
"></em></small> ";
114 num = strstr(token,
"morph=\"x-Robinson:");
116 for (num+=18; ((*num) && (*num !=
'\"')); num++)
120 buf +=
" <small><em>(";
121 for (tok = val; *tok; tok++)
123 buf +=
")</em></small> ";
127 else if (!strncmp(token,
"WG", 2) || !strncmp(token,
"WH", 2)) {
128 buf +=
" <small><em><";
129 for (tok = token + 2; *tok; tok++)
131 buf +=
"></em></small> ";
134 else if (!strncmp(token,
"WTG", 3) || !strncmp(token,
"WTH", 3)) {
135 buf +=
" <small><em><";
136 for (tok = token + 3; *tok; tok++)
139 buf +=
")</em></small> ";
142 else if (!strncmp(token,
"RX", 2)) {
144 for (tok = token + 3; *tok; tok++) {
145 if(*tok !=
'<' && *tok+1 !=
'R' && *tok+2 !=
'x') {
155 else if (!strncmp(token,
"RB", 2)) {
160 else if (!strncmp(token,
"RF", 2)) {
165 buf +=
"<font color=\"#800000\"><small> (";
168 else if (!strncmp(token,
"FN", 2)) {
169 buf +=
"<font face=\"";
170 for (tok = token + 2; *tok; tok++)
176 else if (!strncmp(token,
"CA", 2)) {
177 buf += (char)atoi(&token[2]);
virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData)
#define SWORD_NAMESPACE_START
void setTokenEnd(const char *tokenEnd)
void setTokenCaseSensitive(bool val)
bool substituteToken(SWBuf &buf, const char *token)
void setTokenStart(const char *tokenStart)
void addTokenSubstitute(const char *findString, const char *replaceString)
#define SWORD_NAMESPACE_END