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")
108 else if (!strcmp(tag.
getName(),
"entryFree")) {
112 buf +=
"\\teiEntryFree{";
120 else if (!strcmp(tag.
getName(),
"sense")) {
124 buf +=
"\n\\teiSense{";
132 else if (!strcmp(tag.
getName(),
"div")) {
142 else if (!strcmp(tag.
getName(),
"lb")) {
147 else if (!strcmp(tag.
getName(),
"pos") ||
148 !strcmp(tag.
getName(),
"gen") ||
149 !strcmp(tag.
getName(),
"case") ||
150 !strcmp(tag.
getName(),
"gram") ||
151 !strcmp(tag.
getName(),
"number") ||
152 !strcmp(tag.
getName(),
"pron") ||
153 !strcmp(tag.
getName(),
"tr") ||
154 !strcmp(tag.
getName(),
"orth") ||
155 !strcmp(tag.
getName(),
"etym") ||
156 !strcmp(tag.
getName(),
"usg") ||
159 !strcmp(tag.
getName(),
"def")) {
170 else if (!strcmp(tag.
getName(),
"ref")) {
177 int was_osisref =
false;
188 const char* the_ref = strchr(target,
':');
206 (ref) ? ref.
c_str() :
"",
214 (ref) ? ref.
c_str() :
""
233 else if (!strcmp(tag.
getName(),
"note")) {
242 SWBuf footnoteBody =
"";
248 footnoteNumber.
c_str(),
260 else if (!strcmp(tag.
getName(),
"graphic")) {
266 if ((filepath.
size()) && (filepath[filepath.
size()-1] !=
'/') && (url[0] !=
'/'))
279 else if (!strcmp(tag.
getName(),
"table")) {
281 buf +=
"\n\\begin{tabular}";
284 buf +=
"\n\\end{tabular}";
290 else if (!strcmp(tag.
getName(),
"row")) {
301 else if (!strcmp(tag.
getName(),
"cell")) {
315 else if (!strcmp(tag.
getName(),
"list")) {
321 if (rend ==
"numbered") {
322 buf +=
"\\begin{enumerate}\n";
324 else if (rend ==
"bulleted") {
325 buf +=
"\\begin{itemize}\n";
328 buf +=
"\\begin{list-";
335 if (rend ==
"numbered") {
336 buf +=
"\\end{enumerate}\n>";
338 else if (rend ==
"bulleted") {
339 buf +=
"\\end{itemize}\n";
343 buf +=
"\\end{list-";
350 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)
SWBuf renderText(const char *buf, int len=-1, bool render=true) const
bool substituteToken(SWBuf &buf, const char *token)
virtual const char * getText() const
void setTokenStart(const char *tokenStart)
const char * c_str() const
virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData)
unsigned long size() const
virtual AttributeTypeList & getEntryAttributes() 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
MyUserData(const SWModule *module, const SWKey *key)
void setSize(unsigned long len)