35 return "\\usepackage{color}";
91 if (!strncmp(token,
"WG", 2)) {
93 buf +=
" \\swordstrong[Greek]{";
94 for (tok = token+2; *tok; tok++)
98 for (tok = token + 2; *tok; tok++)
103 else if (!strncmp(token,
"WH", 2)) {
104 buf +=
" \\swordstrong[Hebrew]{";
105 for (tok = token+2; *tok; tok++)
109 for (tok = token + 2; *tok; tok++)
114 else if (!strncmp(token,
"WTG", 3)) {
115 buf +=
" \\swordstrong[Greektense]{";
116 for (tok = token + 3; *tok; tok++)
120 for (tok = token + 3; *tok; tok++)
125 else if (!strncmp(token,
"WTH", 3)) {
126 buf +=
" \\swordstrong[Hebrewtense]{";
127 for (tok = token + 3; *tok; tok++)
131 for (tok = token + 3; *tok; tok++)
137 else if (!strncmp(token,
"WT", 2) && strncmp(token,
"WTH", 3) && strncmp(token,
"WTG", 3)) {
138 buf +=
" \\swordmorph{";
140 for (tok = token + 2; *tok; tok++)
144 for (tok = token + 2; *tok; tok++)
150 else if (!strcmp(tag.
getName(),
"RX")) {
151 buf +=
"\\swordxref{";
152 for (tok = token + 3; *tok; tok++) {
153 if(*tok !=
'<' && *tok+1 !=
'R' && *tok+2 !=
'x') {
162 else if (!strcmp(tag.
getName(),
"RF")) {
169 footnoteNumber.
c_str(),
175 else if (!strcmp(tag.
getName(),
"Rf")) {
179 else if (!strncmp(token,
"FN", 2)) {
180 buf +=
"\\swordfont{";
181 for (tok = token + 2; *tok; tok++)
187 else if (!strncmp(token,
"CA", 2)) {
188 buf += (char)atoi(&token[2]);
const char * getName() const
#define SWORD_NAMESPACE_START
SWBuf & appendFormatted(const char *format,...)
void setTokenEnd(const char *tokenEnd)
const char * getName() const
virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData)
void setTokenCaseSensitive(bool val)
bool substituteToken(SWBuf &buf, const char *token)
virtual const char * getText() const
void setTokenStart(const char *tokenStart)
const char * c_str() const
virtual const char * getHeader() const
MyUserData(const SWModule *module, const SWKey *key)
const char * getAttribute(const char *attribName, int partNum=-1, char partSplit= '|') const
void addTokenSubstitute(const char *findString, const char *replaceString)
#define SWORD_NAMESPACE_END