#include <gbfrtf.h>
This filter converts GBF text into RTF text
Definition at line 33 of file gbfrtf.h.
virtual const char* SWFilter::getHeader |
( |
| ) |
const |
|
inlinevirtualinherited |
This method processes and appropriately modifies the text given it for a particular filter task
- Parameters
-
text | The text to be filtered/converted |
key | Current key That was used. |
module | Current module. |
- Returns
- 0
Implements SWFilter.
Definition at line 34 of file gbfrtf.cpp.
45 bool hideText =
false;
51 for (text =
""; *from; from++) {
65 if (!strncmp(token,
"note ", 5)) {
68 if (!strncmp(token,
"/note", 5)) {
77 num = strstr(token,
"lemma=\"x-Strongs:");
79 for (num+=17; ((*num) && (*num !=
'\"')); num++)
82 if (atoi((!isdigit(*val))?val+1:val) < 5627) {
84 strongnum +=
"{\\cf3 \\sub <";
85 for (tok = (!isdigit(*val))?val+1:val; *tok; tok++)
98 num = strstr(token,
"lemma=\"strong:");
100 for (num+=14; ((*num) && (*num !=
'\"')); num++)
103 if (atoi((!isdigit(*val))?val+1:val) < 5627) {
105 strongnum +=
"{\\cf3 \\sub <";
106 for (tok = (!isdigit(*val))?val+1:val; *tok; tok++)
120 num = strstr(token,
"morph=\"x-Robinson:");
122 for (num+=18; ((*num) && (*num !=
'\"')); num++)
126 strongtense +=
"{\\cf4 \\sub (";
127 for (tok = val; *tok; tok++)
134 if (token[1] ==
'w') {
135 if ((wordCount > 0) || (strongnum !=
"{\\cf3 \\sub <3588>}")) {
148 text +=
"{\\cf3 \\sub <";
149 for (tok = token + 2; *tok; tok++)
155 text +=
"{\\cf4 \\sub (";
156 bool separate =
false;
157 for (tok = token + 2; *tok; tok++) {
165 for (tok++; *tok; tok++) {
177 for (; *tok; tok++) {
189 text +=
"<a href=\"\">";
195 text +=
"{\\i1 \\sub [ ";
218 if (!
strnicmp(token+2,
"Symbol", 6))
220 if (!
strnicmp(token+2,
"Courier", 7))
263 text += (char)atoi(&token[2]);
288 text +=
"\\par {\\i1\\b1 ";
311 token[tokpos++] = *from;
const char * c_str() const
int strnicmp(const char *s1, const char *s2, int len)
The documentation for this class was generated from the following files: