The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ThMLHTML Class Reference

#include <thmlhtml.h>

+ Inheritance diagram for ThMLHTML:
+ Collaboration diagram for ThMLHTML:

Classes

class  MyUserData
 

Public Member Functions

virtual const char * getHeader () const
 
virtual char processText (SWBuf &text, const SWKey *key=0, const SWModule *module=0)
 
 ThMLHTML ()
 

Protected Member Functions

void addAllowedEscapeString (const char *findString)
 
void addEscapeStringSubstitute (const char *findString, const char *replaceString)
 
void addTokenSubstitute (const char *findString, const char *replaceString)
 
void appendEscapeString (SWBuf &buf, const char *escString)
 
virtual BasicFilterUserDatacreateUserData (const SWModule *module, const SWKey *key)
 
virtual bool handleEscapeString (SWBuf &buf, const char *escString, BasicFilterUserData *userData)
 
virtual bool handleNumericEscapeString (SWBuf &buf, const char *escString)
 
virtual bool handleToken (SWBuf &buf, const char *token, BasicFilterUserData *userData)
 
bool passAllowedEscapeString (SWBuf &buf, const char *escString)
 
virtual bool processStage (char, SWBuf &, char *&, BasicFilterUserData *)
 
void removeAllowedEscapeString (const char *findString)
 
void removeEscapeStringSubstitute (const char *findString)
 
void removeTokenSubstitute (const char *findString)
 
void setEscapeEnd (const char *escEnd)
 
void setEscapeStart (const char *escStart)
 
void setEscapeStringCaseSensitive (bool val)
 
void setPassThruNumericEscapeString (bool val)
 
void setPassThruUnknownEscapeString (bool val)
 
void setPassThruUnknownToken (bool val)
 
virtual void setStageProcessing (char stages)
 
void setTokenCaseSensitive (bool val)
 
void setTokenEnd (const char *tokenEnd)
 
void setTokenStart (const char *tokenStart)
 
bool substituteEscapeString (SWBuf &buf, const char *escString)
 
bool substituteToken (SWBuf &buf, const char *token)
 

Static Protected Attributes

static const char FINALIZE = 8
 
static const char INITIALIZE = 1
 
static const char POSTCHAR = 4
 
static const char PRECHAR = 2
 

Detailed Description

this filter converts ThML text to HTML text

Definition at line 33 of file thmlhtml.h.

Constructor & Destructor Documentation

SWORD_NAMESPACE_START ThMLHTML::ThMLHTML ( )

Definition at line 32 of file thmlhtml.cpp.

32  {
33  setTokenStart("<");
34  setTokenEnd(">");
35 
36  setEscapeStart("&");
37  setEscapeEnd(";");
38 
41 
42  addAllowedEscapeString("quot");
46 
47  addAllowedEscapeString("nbsp");
48  addAllowedEscapeString("brvbar"); // "¦"
49  addAllowedEscapeString("sect"); // "§"
50  addAllowedEscapeString("copy"); // "©"
51  addAllowedEscapeString("laquo"); // "«"
52  addAllowedEscapeString("reg"); // "®"
53  addAllowedEscapeString("acute"); // "´"
54  addAllowedEscapeString("para"); // "¶"
55  addAllowedEscapeString("raquo"); // "»"
56 
57  addAllowedEscapeString("Aacute"); // "Á"
58  addAllowedEscapeString("Agrave"); // "À"
59  addAllowedEscapeString("Acirc"); // "Â"
60  addAllowedEscapeString("Auml"); // "Ä"
61  addAllowedEscapeString("Atilde"); // "Ã"
62  addAllowedEscapeString("Aring"); // "Å"
63  addAllowedEscapeString("aacute"); // "á" addAllowedEscapeString("agrave"); // "à" addAllowedEscapeString("acirc"); // "â" addAllowedEscapeString("auml"); // "ä" addAllowedEscapeString("atilde"); // "ã" addAllowedEscapeString("aring"); // "å" addAllowedEscapeString("Eacute"); // "É" addAllowedEscapeString("Egrave"); // "È" addAllowedEscapeString("Ecirc"); // "Ê" addAllowedEscapeString("Euml"); // "Ë" addAllowedEscapeString("eacute"); // "é" addAllowedEscapeString("egrave"); // "è" addAllowedEscapeString("ecirc"); // "ê" addAllowedEscapeString("euml"); // "ë" addAllowedEscapeString("Iacute"); // "Í" addAllowedEscapeString("Igrave"); // "Ì" addAllowedEscapeString("Icirc"); // "Î" addAllowedEscapeString("Iuml"); // "Ï" addAllowedEscapeString("iacute"); // "í" addAllowedEscapeString("igrave"); // "ì" addAllowedEscapeString("icirc"); // "î" addAllowedEscapeString("iuml"); // "ï" addAllowedEscapeString("Oacute"); // "Ó" addAllowedEscapeString("Ograve"); // "Ò" addAllowedEscapeString("Ocirc"); // "Ô" addAllowedEscapeString("Ouml"); // "Ö" addAllowedEscapeString("Otilde"); // "Õ" addAllowedEscapeString("oacute"); // "ó" addAllowedEscapeString("ograve"); // "ò" addAllowedEscapeString("ocirc"); // "ô" addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
64  addAllowedEscapeString("agrave"); // "à" addAllowedEscapeString("acirc"); // "â" addAllowedEscapeString("auml"); // "ä" addAllowedEscapeString("atilde"); // "ã" addAllowedEscapeString("aring"); // "å" addAllowedEscapeString("Eacute"); // "É" addAllowedEscapeString("Egrave"); // "È" addAllowedEscapeString("Ecirc"); // "Ê" addAllowedEscapeString("Euml"); // "Ë" addAllowedEscapeString("eacute"); // "é" addAllowedEscapeString("egrave"); // "è" addAllowedEscapeString("ecirc"); // "ê" addAllowedEscapeString("euml"); // "ë" addAllowedEscapeString("Iacute"); // "Í" addAllowedEscapeString("Igrave"); // "Ì" addAllowedEscapeString("Icirc"); // "Î" addAllowedEscapeString("Iuml"); // "Ï" addAllowedEscapeString("iacute"); // "í" addAllowedEscapeString("igrave"); // "ì" addAllowedEscapeString("icirc"); // "î" addAllowedEscapeString("iuml"); // "ï" addAllowedEscapeString("Oacute"); // "Ó" addAllowedEscapeString("Ograve"); // "Ò" addAllowedEscapeString("Ocirc"); // "Ô" addAllowedEscapeString("Ouml"); // "Ö" addAllowedEscapeString("Otilde"); // "Õ" addAllowedEscapeString("oacute"); // "ó" addAllowedEscapeString("ograve"); // "ò" addAllowedEscapeString("ocirc"); // "ô" addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
65  addAllowedEscapeString("acirc"); // "â" addAllowedEscapeString("auml"); // "ä" addAllowedEscapeString("atilde"); // "ã" addAllowedEscapeString("aring"); // "å" addAllowedEscapeString("Eacute"); // "É" addAllowedEscapeString("Egrave"); // "È" addAllowedEscapeString("Ecirc"); // "Ê" addAllowedEscapeString("Euml"); // "Ë" addAllowedEscapeString("eacute"); // "é" addAllowedEscapeString("egrave"); // "è" addAllowedEscapeString("ecirc"); // "ê" addAllowedEscapeString("euml"); // "ë" addAllowedEscapeString("Iacute"); // "Í" addAllowedEscapeString("Igrave"); // "Ì" addAllowedEscapeString("Icirc"); // "Î" addAllowedEscapeString("Iuml"); // "Ï" addAllowedEscapeString("iacute"); // "í" addAllowedEscapeString("igrave"); // "ì" addAllowedEscapeString("icirc"); // "î" addAllowedEscapeString("iuml"); // "ï" addAllowedEscapeString("Oacute"); // "Ó" addAllowedEscapeString("Ograve"); // "Ò" addAllowedEscapeString("Ocirc"); // "Ô" addAllowedEscapeString("Ouml"); // "Ö" addAllowedEscapeString("Otilde"); // "Õ" addAllowedEscapeString("oacute"); // "ó" addAllowedEscapeString("ograve"); // "ò" addAllowedEscapeString("ocirc"); // "ô" addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
66  addAllowedEscapeString("auml"); // "ä" addAllowedEscapeString("atilde"); // "ã" addAllowedEscapeString("aring"); // "å" addAllowedEscapeString("Eacute"); // "É" addAllowedEscapeString("Egrave"); // "È" addAllowedEscapeString("Ecirc"); // "Ê" addAllowedEscapeString("Euml"); // "Ë" addAllowedEscapeString("eacute"); // "é" addAllowedEscapeString("egrave"); // "è" addAllowedEscapeString("ecirc"); // "ê" addAllowedEscapeString("euml"); // "ë" addAllowedEscapeString("Iacute"); // "Í" addAllowedEscapeString("Igrave"); // "Ì" addAllowedEscapeString("Icirc"); // "Î" addAllowedEscapeString("Iuml"); // "Ï" addAllowedEscapeString("iacute"); // "í" addAllowedEscapeString("igrave"); // "ì" addAllowedEscapeString("icirc"); // "î" addAllowedEscapeString("iuml"); // "ï" addAllowedEscapeString("Oacute"); // "Ó" addAllowedEscapeString("Ograve"); // "Ò" addAllowedEscapeString("Ocirc"); // "Ô" addAllowedEscapeString("Ouml"); // "Ö" addAllowedEscapeString("Otilde"); // "Õ" addAllowedEscapeString("oacute"); // "ó" addAllowedEscapeString("ograve"); // "ò" addAllowedEscapeString("ocirc"); // "ô" addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
67  addAllowedEscapeString("atilde"); // "ã" addAllowedEscapeString("aring"); // "å" addAllowedEscapeString("Eacute"); // "É" addAllowedEscapeString("Egrave"); // "È" addAllowedEscapeString("Ecirc"); // "Ê" addAllowedEscapeString("Euml"); // "Ë" addAllowedEscapeString("eacute"); // "é" addAllowedEscapeString("egrave"); // "è" addAllowedEscapeString("ecirc"); // "ê" addAllowedEscapeString("euml"); // "ë" addAllowedEscapeString("Iacute"); // "Í" addAllowedEscapeString("Igrave"); // "Ì" addAllowedEscapeString("Icirc"); // "Î" addAllowedEscapeString("Iuml"); // "Ï" addAllowedEscapeString("iacute"); // "í" addAllowedEscapeString("igrave"); // "ì" addAllowedEscapeString("icirc"); // "î" addAllowedEscapeString("iuml"); // "ï" addAllowedEscapeString("Oacute"); // "Ó" addAllowedEscapeString("Ograve"); // "Ò" addAllowedEscapeString("Ocirc"); // "Ô" addAllowedEscapeString("Ouml"); // "Ö" addAllowedEscapeString("Otilde"); // "Õ" addAllowedEscapeString("oacute"); // "ó" addAllowedEscapeString("ograve"); // "ò" addAllowedEscapeString("ocirc"); // "ô" addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
68  addAllowedEscapeString("aring"); // "å" addAllowedEscapeString("Eacute"); // "É" addAllowedEscapeString("Egrave"); // "È" addAllowedEscapeString("Ecirc"); // "Ê" addAllowedEscapeString("Euml"); // "Ë" addAllowedEscapeString("eacute"); // "é" addAllowedEscapeString("egrave"); // "è" addAllowedEscapeString("ecirc"); // "ê" addAllowedEscapeString("euml"); // "ë" addAllowedEscapeString("Iacute"); // "Í" addAllowedEscapeString("Igrave"); // "Ì" addAllowedEscapeString("Icirc"); // "Î" addAllowedEscapeString("Iuml"); // "Ï" addAllowedEscapeString("iacute"); // "í" addAllowedEscapeString("igrave"); // "ì" addAllowedEscapeString("icirc"); // "î" addAllowedEscapeString("iuml"); // "ï" addAllowedEscapeString("Oacute"); // "Ó" addAllowedEscapeString("Ograve"); // "Ò" addAllowedEscapeString("Ocirc"); // "Ô" addAllowedEscapeString("Ouml"); // "Ö" addAllowedEscapeString("Otilde"); // "Õ" addAllowedEscapeString("oacute"); // "ó" addAllowedEscapeString("ograve"); // "ò" addAllowedEscapeString("ocirc"); // "ô" addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
69  addAllowedEscapeString("Eacute"); // "É"
70  addAllowedEscapeString("Egrave"); // "È"
71  addAllowedEscapeString("Ecirc"); // "Ê"
72  addAllowedEscapeString("Euml"); // "Ë"
73  addAllowedEscapeString("eacute"); // "é" addAllowedEscapeString("egrave"); // "è" addAllowedEscapeString("ecirc"); // "ê" addAllowedEscapeString("euml"); // "ë" addAllowedEscapeString("Iacute"); // "Í" addAllowedEscapeString("Igrave"); // "Ì" addAllowedEscapeString("Icirc"); // "Î" addAllowedEscapeString("Iuml"); // "Ï" addAllowedEscapeString("iacute"); // "í" addAllowedEscapeString("igrave"); // "ì" addAllowedEscapeString("icirc"); // "î" addAllowedEscapeString("iuml"); // "ï" addAllowedEscapeString("Oacute"); // "Ó" addAllowedEscapeString("Ograve"); // "Ò" addAllowedEscapeString("Ocirc"); // "Ô" addAllowedEscapeString("Ouml"); // "Ö" addAllowedEscapeString("Otilde"); // "Õ" addAllowedEscapeString("oacute"); // "ó" addAllowedEscapeString("ograve"); // "ò" addAllowedEscapeString("ocirc"); // "ô" addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
74  addAllowedEscapeString("egrave"); // "è" addAllowedEscapeString("ecirc"); // "ê" addAllowedEscapeString("euml"); // "ë" addAllowedEscapeString("Iacute"); // "Í" addAllowedEscapeString("Igrave"); // "Ì" addAllowedEscapeString("Icirc"); // "Î" addAllowedEscapeString("Iuml"); // "Ï" addAllowedEscapeString("iacute"); // "í" addAllowedEscapeString("igrave"); // "ì" addAllowedEscapeString("icirc"); // "î" addAllowedEscapeString("iuml"); // "ï" addAllowedEscapeString("Oacute"); // "Ó" addAllowedEscapeString("Ograve"); // "Ò" addAllowedEscapeString("Ocirc"); // "Ô" addAllowedEscapeString("Ouml"); // "Ö" addAllowedEscapeString("Otilde"); // "Õ" addAllowedEscapeString("oacute"); // "ó" addAllowedEscapeString("ograve"); // "ò" addAllowedEscapeString("ocirc"); // "ô" addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
75  addAllowedEscapeString("ecirc"); // "ê" addAllowedEscapeString("euml"); // "ë" addAllowedEscapeString("Iacute"); // "Í" addAllowedEscapeString("Igrave"); // "Ì" addAllowedEscapeString("Icirc"); // "Î" addAllowedEscapeString("Iuml"); // "Ï" addAllowedEscapeString("iacute"); // "í" addAllowedEscapeString("igrave"); // "ì" addAllowedEscapeString("icirc"); // "î" addAllowedEscapeString("iuml"); // "ï" addAllowedEscapeString("Oacute"); // "Ó" addAllowedEscapeString("Ograve"); // "Ò" addAllowedEscapeString("Ocirc"); // "Ô" addAllowedEscapeString("Ouml"); // "Ö" addAllowedEscapeString("Otilde"); // "Õ" addAllowedEscapeString("oacute"); // "ó" addAllowedEscapeString("ograve"); // "ò" addAllowedEscapeString("ocirc"); // "ô" addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
76  addAllowedEscapeString("euml"); // "ë" addAllowedEscapeString("Iacute"); // "Í" addAllowedEscapeString("Igrave"); // "Ì" addAllowedEscapeString("Icirc"); // "Î" addAllowedEscapeString("Iuml"); // "Ï" addAllowedEscapeString("iacute"); // "í" addAllowedEscapeString("igrave"); // "ì" addAllowedEscapeString("icirc"); // "î" addAllowedEscapeString("iuml"); // "ï" addAllowedEscapeString("Oacute"); // "Ó" addAllowedEscapeString("Ograve"); // "Ò" addAllowedEscapeString("Ocirc"); // "Ô" addAllowedEscapeString("Ouml"); // "Ö" addAllowedEscapeString("Otilde"); // "Õ" addAllowedEscapeString("oacute"); // "ó" addAllowedEscapeString("ograve"); // "ò" addAllowedEscapeString("ocirc"); // "ô" addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
77  addAllowedEscapeString("Iacute"); // "Í"
78  addAllowedEscapeString("Igrave"); // "Ì"
79  addAllowedEscapeString("Icirc"); // "Î"
80  addAllowedEscapeString("Iuml"); // "Ï"
81  addAllowedEscapeString("iacute"); // "í" addAllowedEscapeString("igrave"); // "ì" addAllowedEscapeString("icirc"); // "î" addAllowedEscapeString("iuml"); // "ï" addAllowedEscapeString("Oacute"); // "Ó" addAllowedEscapeString("Ograve"); // "Ò" addAllowedEscapeString("Ocirc"); // "Ô" addAllowedEscapeString("Ouml"); // "Ö" addAllowedEscapeString("Otilde"); // "Õ" addAllowedEscapeString("oacute"); // "ó" addAllowedEscapeString("ograve"); // "ò" addAllowedEscapeString("ocirc"); // "ô" addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
82  addAllowedEscapeString("igrave"); // "ì" addAllowedEscapeString("icirc"); // "î" addAllowedEscapeString("iuml"); // "ï" addAllowedEscapeString("Oacute"); // "Ó" addAllowedEscapeString("Ograve"); // "Ò" addAllowedEscapeString("Ocirc"); // "Ô" addAllowedEscapeString("Ouml"); // "Ö" addAllowedEscapeString("Otilde"); // "Õ" addAllowedEscapeString("oacute"); // "ó" addAllowedEscapeString("ograve"); // "ò" addAllowedEscapeString("ocirc"); // "ô" addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
83  addAllowedEscapeString("icirc"); // "î" addAllowedEscapeString("iuml"); // "ï" addAllowedEscapeString("Oacute"); // "Ó" addAllowedEscapeString("Ograve"); // "Ò" addAllowedEscapeString("Ocirc"); // "Ô" addAllowedEscapeString("Ouml"); // "Ö" addAllowedEscapeString("Otilde"); // "Õ" addAllowedEscapeString("oacute"); // "ó" addAllowedEscapeString("ograve"); // "ò" addAllowedEscapeString("ocirc"); // "ô" addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
84  addAllowedEscapeString("iuml"); // "ï" addAllowedEscapeString("Oacute"); // "Ó" addAllowedEscapeString("Ograve"); // "Ò" addAllowedEscapeString("Ocirc"); // "Ô" addAllowedEscapeString("Ouml"); // "Ö" addAllowedEscapeString("Otilde"); // "Õ" addAllowedEscapeString("oacute"); // "ó" addAllowedEscapeString("ograve"); // "ò" addAllowedEscapeString("ocirc"); // "ô" addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
85  addAllowedEscapeString("Oacute"); // "Ó"
86  addAllowedEscapeString("Ograve"); // "Ò"
87  addAllowedEscapeString("Ocirc"); // "Ô"
88  addAllowedEscapeString("Ouml"); // "Ö"
89  addAllowedEscapeString("Otilde"); // "Õ"
90  addAllowedEscapeString("oacute"); // "ó" addAllowedEscapeString("ograve"); // "ò" addAllowedEscapeString("ocirc"); // "ô" addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
91  addAllowedEscapeString("ograve"); // "ò" addAllowedEscapeString("ocirc"); // "ô" addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
92  addAllowedEscapeString("ocirc"); // "ô" addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
93  addAllowedEscapeString("ouml"); // "ö" addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
94  addAllowedEscapeString("otilde"); // "õ" addAllowedEscapeString("Uacute"); // "Ú" addAllowedEscapeString("Ugrave"); // "Ù" addAllowedEscapeString("Ucirc"); // "Û" addAllowedEscapeString("Uuml"); // "Ü" addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
95  addAllowedEscapeString("Uacute"); // "Ú"
96  addAllowedEscapeString("Ugrave"); // "Ù"
97  addAllowedEscapeString("Ucirc"); // "Û"
98  addAllowedEscapeString("Uuml"); // "Ü"
99  addAllowedEscapeString("uacute"); // "ú" addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
100  addAllowedEscapeString("ugrave"); // "ù" addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
101  addAllowedEscapeString("ucirc"); // "û" addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
102  addAllowedEscapeString("uuml"); // "ü" addAllowedEscapeString("Yacute"); // "Ý" addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
103  addAllowedEscapeString("Yacute"); // "Ý"
104  addAllowedEscapeString("yacute"); // "ý" addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
105  addAllowedEscapeString("yuml"); // "ÿ" addAllowedEscapeString("deg"); // "°" addAllowedEscapeString("plusmn"); // "±" addAllowedEscapeString("sup2"); // "²" addAllowedEscapeString("sup3"); // "³" addAllowedEscapeString("sup1"); // "¹" addAllowedEscapeString("nbsp"); // "º" addAllowedEscapeString("pound"); // "£" addAllowedEscapeString("cent"); // "¢" addAllowedEscapeString("frac14"); // "¼" addAllowedEscapeString("frac12"); // "½" addAllowedEscapeString("frac34"); // "¾" addAllowedEscapeString("iquest"); // "¿" addAllowedEscapeString("iexcl"); // "¡" addAllowedEscapeString("ETH"); // "Ð" addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
106 
107  addAllowedEscapeString("deg"); // "°"
108  addAllowedEscapeString("plusmn"); // "±"
109  addAllowedEscapeString("sup2"); // "²"
110  addAllowedEscapeString("sup3"); // "³"
111  addAllowedEscapeString("sup1"); // "¹"
112  addAllowedEscapeString("nbsp"); // "º"
113  addAllowedEscapeString("pound"); // "£"
114  addAllowedEscapeString("cent"); // "¢"
115  addAllowedEscapeString("frac14"); // "¼"
116  addAllowedEscapeString("frac12"); // "½"
117  addAllowedEscapeString("frac34"); // "¾"
118  addAllowedEscapeString("iquest"); // "¿"
119  addAllowedEscapeString("iexcl"); // "¡"
120  addAllowedEscapeString("ETH"); // "Ð"
121  addAllowedEscapeString("eth"); // "ð" addAllowedEscapeString("THORN"); // "Þ" addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
122  addAllowedEscapeString("THORN"); // "Þ"
123  addAllowedEscapeString("thorn"); // "þ" addAllowedEscapeString("AElig"); // "Æ" addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
124  addAllowedEscapeString("AElig"); // "Æ"
125  addAllowedEscapeString("aelig"); // "æ" addAllowedEscapeString("Oslash"); // "Ø" addAllowedEscapeString("curren"); // "¤" addAllowedEscapeString("Ccedil"); // "Ç" addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
126  addAllowedEscapeString("Oslash"); // "Ø"
127  addAllowedEscapeString("curren"); // "¤"
128  addAllowedEscapeString("Ccedil"); // "Ç"
129  addAllowedEscapeString("ccedil"); // "ç" addAllowedEscapeString("szlig"); // "ß" addAllowedEscapeString("Ntilde"); // "Ñ" addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
130  addAllowedEscapeString("szlig"); // "ß"
131  addAllowedEscapeString("Ntilde"); // "Ñ"
132  addAllowedEscapeString("ntilde"); // "ñ" addAllowedEscapeString("yen"); // "¥" addAllowedEscapeString("not"); // "¬" addAllowedEscapeString("ordf"); // "ª" addAllowedEscapeString("uml"); // "¨" addAllowedEscapeString("shy"); // "­" addAllowedEscapeString("macr"); // "¯" addAllowedEscapeString("micro"); // "µ" addAllowedEscapeString("middot"); // "·" addAllowedEscapeString("cedil"); // "¸" addAllowedEscapeString("ordm"); // "º" addAllowedEscapeString("times"); // "×" addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
133  addAllowedEscapeString("yen"); // "¥"
134  addAllowedEscapeString("not"); // "¬"
135  addAllowedEscapeString("ordf"); // "ª"
136  addAllowedEscapeString("uml"); // "¨"
137  addAllowedEscapeString("shy"); // "­"
138  addAllowedEscapeString("macr"); // "¯"
139 
140  addAllowedEscapeString("micro"); // "µ"
141  addAllowedEscapeString("middot"); // "·"
142  addAllowedEscapeString("cedil"); // "¸"
143  addAllowedEscapeString("ordm"); // "º"
144  addAllowedEscapeString("times"); // "×"
145  addAllowedEscapeString("divide"); // "÷" addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
146  addAllowedEscapeString("oslash"); // "ø" setTokenCaseSensitive(true); addTokenSubstitute("note", " <font color=\"#800000\"><small>("); addTokenSubstitute("/note", ")</small></font> "); }
147 
148  setTokenCaseSensitive(true);
149 
150  addTokenSubstitute("note", " <font color=\"#800000\"><small>(");
151  addTokenSubstitute("/note", ")</small></font> ");
152 }
void setTokenEnd(const char *tokenEnd)
void addAllowedEscapeString(const char *findString)
void setTokenCaseSensitive(bool val)
void setEscapeStart(const char *escStart)
void setTokenStart(const char *tokenStart)
void setPassThruNumericEscapeString(bool val)
void setEscapeStringCaseSensitive(bool val)
void addTokenSubstitute(const char *findString, const char *replaceString)
void setEscapeEnd(const char *escEnd)

Member Function Documentation

void SWBasicFilter::addAllowedEscapeString ( const char *  findString)
protectedinherited

Registers an esc control sequence that can pass unchanged

Definition at line 156 of file swbasicfilter.cpp.

156  {
157  char *buf = 0;
158 
159  if (!escStringCaseSensitive) {
160  stdstr(&buf, findString);
161  toupperstr(buf);
162  p->escPassSet.insert(StringSet::value_type(buf));
163  delete [] buf;
164  }
165  else p->escPassSet.insert(StringSet::value_type(findString));
166 }
SWORD_NAMESPACE_START char * stdstr(char **ipstr, const char *istr, unsigned int memPadFactor=1)
Definition: utilstr.h:44
bool escStringCaseSensitive
Definition: swbasicfilter.h:74
char * toupperstr(char *t, unsigned int max=0)
Definition: stringmgr.h:107
Private * p
Definition: swbasicfilter.h:82
void SWBasicFilter::addEscapeStringSubstitute ( const char *  findString,
const char *  replaceString 
)
protectedinherited

Registers an esc control sequence

Definition at line 176 of file swbasicfilter.cpp.

176  {
177  char *buf = 0;
178 
179  if (!escStringCaseSensitive) {
180  stdstr(&buf, findString);
181  toupperstr(buf);
182  p->escSubMap.insert(DualStringMap::value_type(buf, replaceString));
183  delete [] buf;
184  }
185  else p->escSubMap.insert(DualStringMap::value_type(findString, replaceString));
186 }
SWORD_NAMESPACE_START char * stdstr(char **ipstr, const char *istr, unsigned int memPadFactor=1)
Definition: utilstr.h:44
bool escStringCaseSensitive
Definition: swbasicfilter.h:74
char * toupperstr(char *t, unsigned int max=0)
Definition: stringmgr.h:107
Private * p
Definition: swbasicfilter.h:82
void SWBasicFilter::addTokenSubstitute ( const char *  findString,
const char *  replaceString 
)
protectedinherited

Registers a simple token substitutions. Usually called from the c-tor of a subclass

Definition at line 136 of file swbasicfilter.cpp.

136  {
137  char *buf = 0;
138 
139  if (!tokenCaseSensitive) {
140  stdstr(&buf, findString);
141  toupperstr(buf);
142  p->tokenSubMap[buf] = replaceString;
143  delete [] buf;
144  }
145  else p->tokenSubMap[findString] = replaceString;
146 }
SWORD_NAMESPACE_START char * stdstr(char **ipstr, const char *istr, unsigned int memPadFactor=1)
Definition: utilstr.h:44
bool tokenCaseSensitive
Definition: swbasicfilter.h:75
DualStringMap tokenSubMap
char * toupperstr(char *t, unsigned int max=0)
Definition: stringmgr.h:107
Private * p
Definition: swbasicfilter.h:82
void SWBasicFilter::appendEscapeString ( SWBuf buf,
const char *  escString 
)
protectedinherited

This appends escString to buf as an entity

Definition at line 216 of file swbasicfilter.cpp.

216  {
217  buf += escStart;
218  buf += escString;
219  buf += escEnd;
220 }
virtual BasicFilterUserData* ThMLHTML::createUserData ( const SWModule module,
const SWKey key 
)
inlineprotectedvirtual

Reimplemented from SWBasicFilter.

Definition at line 42 of file thmlhtml.h.

42  {
43  return new MyUserData(module, key);
44  }
virtual const char* SWFilter::getHeader ( ) const
inlinevirtualinherited

This method can supply a header associated with the processing done with this filter. A typical example is a suggested CSS style block for classed containers.

Reimplemented in OSISLaTeX, OSISXHTML, ThMLLaTeX, ThMLXHTML, TEIXHTML, GBFLaTeX, and GBFXHTML.

Definition at line 62 of file swfilter.h.

62 { return ""; }
bool SWBasicFilter::handleEscapeString ( SWBuf buf,
const char *  escString,
BasicFilterUserData userData 
)
protectedvirtualinherited

This function is called for every escape sequence encountered in the input text.

Parameters
bufthe output buffer
escStringthe escape sequence (e.g. "amp" for &amp;)
userDatauser storage space for data transient to 1 full buffer parse
Returns
false if was not handled and should be handled in
subclasses should return true if they handled the esc seq, or false if they did not.

Definition at line 286 of file swbasicfilter.cpp.

286  {
287  return substituteEscapeString(buf, escString);
288 }
bool substituteEscapeString(SWBuf &buf, const char *escString)
bool SWBasicFilter::handleNumericEscapeString ( SWBuf buf,
const char *  escString 
)
protectedvirtualinherited

This function is called for all numeric escape sequences. If passThrough

Parameters
bufthe output buffer
escStringthe escape sequence (e.g. "#235" for &235;)
Returns
subclasses should return true if they handled the esc seq, or false if they did not.

Definition at line 244 of file swbasicfilter.cpp.

244  {
245  if (passThruNumericEsc) {
246  appendEscapeString(buf, escString);
247  return true;
248  }
249  return false;
250 }
bool passThruNumericEsc
Definition: swbasicfilter.h:78
void appendEscapeString(SWBuf &buf, const char *escString)
bool ThMLHTML::handleToken ( SWBuf buf,
const char *  token,
BasicFilterUserData userData 
)
protectedvirtual

This function is called for every token encountered in the input text.

Parameters
bufthe output buffer
tokenthe token (e.g. "p align='left'"
userDatauser storage space for data transient to 1 full buffer parse
Returns
subclasses should return true if they handled the token, or false if they did not.

Reimplemented from SWBasicFilter.

Definition at line 155 of file thmlhtml.cpp.

155  {
156  if (!substituteToken(buf, token)) { // manually process if it wasn't a simple substitution
157  MyUserData *u = (MyUserData *)userData;
158  XMLTag tag(token);
159  if (!strcmp(tag.getName(), "sync")) {
160  if (tag.getAttribute("type") && tag.getAttribute("value") && !strcmp(tag.getAttribute("type"), "Strongs")) {
161  const char* value = tag.getAttribute("value");
162  if (*value == 'H' || *value == 'G' || *value == 'A') {
163  value++;
164  buf += "<small><em>";
165  buf += value;
166  buf += "</em></small>";
167  }
168  else if (*value == 'T') {
169  value += 2;
170 
171  buf += "<small><i>";
172  buf += value;
173  buf += "</i></small>";
174  }
175  }
176  else if (tag.getAttribute("type") && tag.getAttribute("value") && !strcmp(tag.getAttribute("type"), "morph")) {
177  buf += "<small><em>";
178  buf += tag.getAttribute("value");
179  buf += "</em></small>";
180  }
181  else if (tag.getAttribute("type") && tag.getAttribute("value") && !strcmp(tag.getAttribute("type"), "lemma")) {
182  buf += "<small><em>(";
183  buf += tag.getAttribute("value");
184  buf += ")</em></small>";
185  }
186  }
187  else if (!strcmp(tag.getName(), "div")) {
188  if (tag.isEndTag() && (u->inSecHead)) {
189  buf += "</i></b><br />";
190  u->inSecHead = false;
191  }
192  else if (tag.getAttribute("class")) {
193  if (!strcmp(tag.getAttribute("class"), "sechead")) {
194  u->inSecHead = true;
195  buf += "<br /><b><i>";
196  }
197  else if (!strcmp(tag.getAttribute("class"), "title")) {
198  u->inSecHead = true;
199  buf += "<br /><b><i>";
200  }
201  }
202  }
203  else if (!strcmp(tag.getName(), "img")) {
204  const char *src = strstr(token, "src");
205  if (!src) // assert we have a src attribute
206  return false;
207 
208  buf += '<';
209  for (const char *c = token; *c; c++) {
210  if (c == src) {
211  for (;((*c) && (*c != '"')); c++)
212  buf += *c;
213 
214  if (!*c) { c--; continue; }
215 
216  buf += '"';
217  if (*(c+1) == '/') {
218  buf += "file:";
219  buf += userData->module->getConfigEntry("AbsoluteDataPath");
220  if (buf[buf.length()-2] == '/')
221  c++; // skip '/'
222  }
223  continue;
224  }
225  buf += *c;
226  }
227  buf += '>';
228  }
229  else if (!strcmp(tag.getName(), "scripRef")) { //do nothing with scrip refs, we leave them out
230 
231  }
232  else {
233  buf += '<';
234  buf += token;
235  buf += '>';
236 
237 // return false; // we still didn't handle token
238  }
239  }
240  return true;
241 }
unsigned long length() const
Definition: swbuf.h:197
virtual const char * getConfigEntry(const char *key) const
Definition: swmodule.cpp:1159
const SWModule * module
Definition: swbasicfilter.h:42
Definition: utilxml.h:38
bool substituteToken(SWBuf &buf, const char *token)
bool SWBasicFilter::passAllowedEscapeString ( SWBuf buf,
const char *  escString 
)
protectedinherited

This passes allowed escapeStrings

Definition at line 223 of file swbasicfilter.cpp.

223  {
224  StringSet::iterator it;
225 
226  if (!escStringCaseSensitive) {
227  char *tmp = 0;
228  stdstr(&tmp, escString);
229  toupperstr(tmp);
230  it = p->escPassSet.find(tmp);
231  delete [] tmp;
232  } else
233  it = p->escPassSet.find(escString);
234 
235  if (it != p->escPassSet.end()) {
236  appendEscapeString(buf, escString);
237  return true;
238  }
239 
240  return false;
241 }
SWORD_NAMESPACE_START char * stdstr(char **ipstr, const char *istr, unsigned int memPadFactor=1)
Definition: utilstr.h:44
bool escStringCaseSensitive
Definition: swbasicfilter.h:74
char * toupperstr(char *t, unsigned int max=0)
Definition: stringmgr.h:107
Private * p
Definition: swbasicfilter.h:82
void appendEscapeString(SWBuf &buf, const char *escString)
virtual bool SWBasicFilter::processStage ( char  ,
SWBuf ,
char *&  ,
BasicFilterUserData  
)
inlineprotectedvirtualinherited

Reimplemented in OSISPlain.

Definition at line 185 of file swbasicfilter.h.

185 { return false; }
char SWBasicFilter::processText ( SWBuf text,
const SWKey key = 0,
const SWModule module = 0 
)
virtualinherited

This method processes and appropriately modifies the text given it for a particular filter task

Parameters
textThe text to be filtered/converted
keyCurrent key That was used.
moduleCurrent module.
Returns
0

Implements SWFilter.

Reimplemented in ThMLRTF, OSISOSIS, and OSISRTF.

Definition at line 315 of file swbasicfilter.cpp.

315  {
316  char *from;
317  char token[4096];
318  int tokpos = 0;
319  bool intoken = false;
320  bool inEsc = false;
321  int escStartPos = 0, escEndPos = 0;
322  int tokenStartPos = 0, tokenEndPos = 0;
323  SWBuf lastTextNode;
324  BasicFilterUserData *userData = createUserData(module, key);
325 
326  SWBuf orig = text;
327  from = orig.getRawData();
328  text = "";
329 
330  if (processStages & INITIALIZE) {
331  if (processStage(INITIALIZE, text, from, userData)) { // processStage handled it all
332  delete userData;
333  return 0;
334  }
335  }
336 
337  for (;*from; from++) {
338 
339  if (processStages & PRECHAR) {
340  if (processStage(PRECHAR, text, from, userData)) // processStage handled this char
341  continue;
342  }
343 
344  if (*from == tokenStart[tokenStartPos]) {
345  if (tokenStartPos == (tokenStartLen - 1)) {
346  intoken = true;
347  tokpos = 0;
348  token[0] = 0;
349  token[1] = 0;
350  token[2] = 0;
351  inEsc = false;
352  }
353  else tokenStartPos++;
354  continue;
355  }
356 
357  if (*from == escStart[escStartPos]) {
358  if (escStartPos == (escStartLen - 1)) {
359  intoken = true;
360  tokpos = 0;
361  token[0] = 0;
362  token[1] = 0;
363  token[2] = 0;
364  inEsc = true;
365  }
366  else escStartPos++;
367  continue;
368  }
369 
370  if (inEsc) {
371  if (*from == escEnd[escEndPos]) {
372  if (escEndPos == (escEndLen - 1)) {
373  intoken = inEsc = false;
374  userData->lastTextNode = lastTextNode;
375 
376  if (!userData->suspendTextPassThru) { //if text through is disabled no tokens should pass, too
377  if ((!handleEscapeString(text, token, userData)) && (passThruUnknownEsc)) {
378  appendEscapeString(text, token);
379  }
380  }
381  escEndPos = escStartPos = tokenEndPos = tokenStartPos = 0;
382  lastTextNode = "";
383  continue;
384  }
385  }
386  }
387 
388  if (!inEsc) {
389  if (*from == tokenEnd[tokenEndPos]) {
390  if (tokenEndPos == (tokenEndLen - 1)) {
391  intoken = false;
392  userData->lastTextNode = lastTextNode;
393  if ((!handleToken(text, token, userData)) && (passThruUnknownToken)) {
394  text += tokenStart;
395  text += token;
396  text += tokenEnd;
397  }
398  escEndPos = escStartPos = tokenEndPos = tokenStartPos = 0;
399  lastTextNode = "";
400  if (!userData->suspendTextPassThru) {
401  userData->lastSuspendSegment.size(0);
402  }
403  continue;
404  }
405  }
406  }
407 
408  if (intoken) {
409  if (tokpos < 4090) {
410  token[tokpos++] = *from;
411  token[tokpos+2] = 0;
412  }
413  }
414  else {
415  if ((!userData->supressAdjacentWhitespace) || (*from != ' ')) {
416  if (!userData->suspendTextPassThru) {
417  text.append(*from);
418  }
419  else userData->lastSuspendSegment.append(*from);
420  lastTextNode.append(*from);
421  }
422  userData->supressAdjacentWhitespace = false;
423  }
424 
425  if (processStages & POSTCHAR)
426  processStage(POSTCHAR, text, from, userData);
427 
428  }
429 
430  if (processStages & FINALIZE)
431  processStage(FINALIZE, text, from, userData);
432 
433  delete userData;
434  return 0;
435 }
static const char PRECHAR
Definition: swbasicfilter.h:97
Definition: swbuf.h:47
static const char POSTCHAR
Definition: swbasicfilter.h:98
char * tokenStart
Definition: swbasicfilter.h:64
virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData)
bool passThruUnknownEsc
Definition: swbasicfilter.h:77
virtual bool handleEscapeString(SWBuf &buf, const char *escString, BasicFilterUserData *userData)
bool passThruUnknownToken
Definition: swbasicfilter.h:76
static const char FINALIZE
Definition: swbasicfilter.h:99
char * getRawData()
Definition: swbuf.h:379
SWBuf & append(const char *str, long max=-1)
Definition: swbuf.h:274
virtual bool processStage(char, SWBuf &, char *&, BasicFilterUserData *)
virtual BasicFilterUserData * createUserData(const SWModule *module, const SWKey *key)
Definition: swbasicfilter.h:91
unsigned long size() const
Definition: swbuf.h:185
static const char INITIALIZE
Definition: swbasicfilter.h:96
void appendEscapeString(SWBuf &buf, const char *escString)
void SWBasicFilter::removeAllowedEscapeString ( const char *  findString)
protectedinherited

Unregisters an esc control sequence that can pass unchanged

Definition at line 169 of file swbasicfilter.cpp.

169  {
170  if (p->escPassSet.find(findString) != p->escPassSet.end()) {
171  p->escPassSet.erase( p->escPassSet.find(findString) );
172  }
173 }
Private * p
Definition: swbasicfilter.h:82
void SWBasicFilter::removeEscapeStringSubstitute ( const char *  findString)
protectedinherited

Unregisters an esc control sequence

Definition at line 189 of file swbasicfilter.cpp.

189  {
190  if (p->escSubMap.find(findString) != p->escSubMap.end()) {
191  p->escSubMap.erase( p->escSubMap.find(findString) );
192  }
193 }
Private * p
Definition: swbasicfilter.h:82
void SWBasicFilter::removeTokenSubstitute ( const char *  findString)
protectedinherited

Unregisters a simple token substitute

Definition at line 149 of file swbasicfilter.cpp.

149  {
150  if (p->tokenSubMap.find(findString) != p->tokenSubMap.end()) {
151  p->tokenSubMap.erase( p->tokenSubMap.find(findString) );
152  }
153 }
DualStringMap tokenSubMap
Private * p
Definition: swbasicfilter.h:82
void SWBasicFilter::setEscapeEnd ( const char *  escEnd)
protectedinherited

Sets the end of escape sequence (by default ";").

Definition at line 297 of file swbasicfilter.cpp.

297  {
298  stdstr(&(this->escEnd), escEnd);
299  escEndLen = strlen(escEnd);
300 }
SWORD_NAMESPACE_START char * stdstr(char **ipstr, const char *istr, unsigned int memPadFactor=1)
Definition: utilstr.h:44
void SWBasicFilter::setEscapeStart ( const char *  escStart)
protectedinherited

Sets the beginning of escape sequence (by default "&").

Definition at line 291 of file swbasicfilter.cpp.

291  {
292  stdstr(&(this->escStart), escStart);
293  escStartLen = strlen(escStart);
294 }
SWORD_NAMESPACE_START char * stdstr(char **ipstr, const char *istr, unsigned int memPadFactor=1)
Definition: utilstr.h:44
void SWBasicFilter::setEscapeStringCaseSensitive ( bool  val)
protectedinherited

Are escapeStrings case sensitive or not? Call this function before addEscapeStingSubstitute()

Definition at line 131 of file swbasicfilter.cpp.

131  {
133 }
bool escStringCaseSensitive
Definition: swbasicfilter.h:74
void SWBasicFilter::setPassThruNumericEscapeString ( bool  val)
protectedinherited

Sets whether to pass thru a numeric escape sequence unchanged or allow it to be handled otherwise. Default is false.

Definition at line 121 of file swbasicfilter.cpp.

121  {
122  passThruUnknownEsc = val;
123 }
bool passThruUnknownEsc
Definition: swbasicfilter.h:77
void SWBasicFilter::setPassThruUnknownEscapeString ( bool  val)
protectedinherited

Sets whether to pass thru an unknown escape sequence unchanged or just remove it. Default is false.

Definition at line 116 of file swbasicfilter.cpp.

116  {
117  passThruUnknownEsc = val;
118 }
bool passThruUnknownEsc
Definition: swbasicfilter.h:77
void SWBasicFilter::setPassThruUnknownToken ( bool  val)
protectedinherited

Sets whether to pass thru an unknown token unchanged or just remove it. Default is false.

Definition at line 111 of file swbasicfilter.cpp.

111  {
112  passThruUnknownToken = val;
113 }
bool passThruUnknownToken
Definition: swbasicfilter.h:76
virtual void SWBasicFilter::setStageProcessing ( char  stages)
inlineprotectedvirtualinherited

Definition at line 186 of file swbasicfilter.h.

186 { processStages = stages; } // see STATICs up above
void SWBasicFilter::setTokenCaseSensitive ( bool  val)
protectedinherited

Are tokens case sensitive (like in GBF) or not? Call this function before addTokenSubstitute()

Definition at line 126 of file swbasicfilter.cpp.

126  {
127  tokenCaseSensitive = val;
128 }
bool tokenCaseSensitive
Definition: swbasicfilter.h:75
void SWBasicFilter::setTokenEnd ( const char *  tokenEnd)
protectedinherited

Sets the end of token start sequence (by default ">").

Definition at line 309 of file swbasicfilter.cpp.

309  {
310  stdstr(&(this->tokenEnd), tokenEnd);
311  tokenEndLen = strlen(tokenEnd);
312 }
SWORD_NAMESPACE_START char * stdstr(char **ipstr, const char *istr, unsigned int memPadFactor=1)
Definition: utilstr.h:44
void SWBasicFilter::setTokenStart ( const char *  tokenStart)
protectedinherited

Sets the beginning of token start sequence (by default "<").

Definition at line 303 of file swbasicfilter.cpp.

303  {
304  stdstr(&(this->tokenStart), tokenStart);
305  tokenStartLen = strlen(tokenStart);
306 }
char * tokenStart
Definition: swbasicfilter.h:64
SWORD_NAMESPACE_START char * stdstr(char **ipstr, const char *istr, unsigned int memPadFactor=1)
Definition: utilstr.h:44
bool SWBasicFilter::substituteEscapeString ( SWBuf buf,
const char *  escString 
)
protectedinherited

This function performs the substitution of escapeStrings

Definition at line 253 of file swbasicfilter.cpp.

253  {
254  DualStringMap::iterator it;
255 
256  if (*escString == '#') {
257  return handleNumericEscapeString(buf, escString);
258  }
259 
260  if (passAllowedEscapeString(buf, escString)) {
261  return true;
262  }
263 
264  if (!escStringCaseSensitive) {
265  char *tmp = 0;
266  stdstr(&tmp, escString);
267  toupperstr(tmp);
268  it = p->escSubMap.find(tmp);
269  delete [] tmp;
270  } else
271  it = p->escSubMap.find(escString);
272 
273  if (it != p->escSubMap.end()) {
274  buf += it->second.c_str();
275  return true;
276  }
277  return false;
278 }
virtual bool handleNumericEscapeString(SWBuf &buf, const char *escString)
SWORD_NAMESPACE_START char * stdstr(char **ipstr, const char *istr, unsigned int memPadFactor=1)
Definition: utilstr.h:44
const char * c_str() const
Definition: swbuf.h:158
bool escStringCaseSensitive
Definition: swbasicfilter.h:74
bool passAllowedEscapeString(SWBuf &buf, const char *escString)
char * toupperstr(char *t, unsigned int max=0)
Definition: stringmgr.h:107
Private * p
Definition: swbasicfilter.h:82
bool SWBasicFilter::substituteToken ( SWBuf buf,
const char *  token 
)
protectedinherited

This function performs the substitution of tokens

Definition at line 196 of file swbasicfilter.cpp.

196  {
197  DualStringMap::iterator it;
198 
199  if (!tokenCaseSensitive) {
200  char *tmp = 0;
201  stdstr(&tmp, token);
202  toupperstr(tmp);
203  it = p->tokenSubMap.find(tmp);
204  delete [] tmp;
205  } else
206  it = p->tokenSubMap.find(token);
207 
208  if (it != p->tokenSubMap.end()) {
209  buf += it->second.c_str();
210  return true;
211  }
212  return false;
213 }
SWORD_NAMESPACE_START char * stdstr(char **ipstr, const char *istr, unsigned int memPadFactor=1)
Definition: utilstr.h:44
const char * c_str() const
Definition: swbuf.h:158
bool tokenCaseSensitive
Definition: swbasicfilter.h:75
DualStringMap tokenSubMap
char * toupperstr(char *t, unsigned int max=0)
Definition: stringmgr.h:107
Private * p
Definition: swbasicfilter.h:82

Member Data Documentation

const char SWBasicFilter::FINALIZE = 8
staticprotectedinherited

Definition at line 99 of file swbasicfilter.h.

const char SWBasicFilter::INITIALIZE = 1
staticprotectedinherited

Definition at line 96 of file swbasicfilter.h.

const char SWBasicFilter::POSTCHAR = 4
staticprotectedinherited

Definition at line 98 of file swbasicfilter.h.

const char SWBasicFilter::PRECHAR = 2
staticprotectedinherited

Definition at line 97 of file swbasicfilter.h.


The documentation for this class was generated from the following files: