[sword-svn] r2015 - trunk/src/modules/filters
tbiggs at www.crosswire.org
tbiggs at www.crosswire.org
Tue Nov 28 13:59:47 MST 2006
Author: tbiggs
Date: 2006-11-28 13:59:46 -0700 (Tue, 28 Nov 2006)
New Revision: 2015
Modified:
trunk/src/modules/filters/thmlhtmlhref.cpp
Log:
fixed a broken tag I hope
Modified: trunk/src/modules/filters/thmlhtmlhref.cpp
===================================================================
--- trunk/src/modules/filters/thmlhtmlhref.cpp 2006-11-25 22:05:30 UTC (rev 2014)
+++ trunk/src/modules/filters/thmlhtmlhref.cpp 2006-11-28 20:59:46 UTC (rev 2015)
@@ -50,108 +50,108 @@
addAllowedEscapeString("gt");
addAllowedEscapeString("nbsp");
- addAllowedEscapeString("brvbar"); // "¦"
- addAllowedEscapeString("sect"); // "§"
- addAllowedEscapeString("copy"); // "©"
- addAllowedEscapeString("laquo"); // "«"
- addAllowedEscapeString("reg"); // "®"
- addAllowedEscapeString("acute"); // "´"
- addAllowedEscapeString("para"); // "¶"
- addAllowedEscapeString("raquo"); // "»"
+ addAllowedEscapeString("brvbar"); // "Å "
+ addAllowedEscapeString("sect"); // "§"
+ addAllowedEscapeString("copy"); // "©"
+ addAllowedEscapeString("laquo"); // "«"
+ addAllowedEscapeString("reg"); // "®"
+ addAllowedEscapeString("acute"); // "Ž"
+ addAllowedEscapeString("para"); // "¶"
+ addAllowedEscapeString("raquo"); // "»"
- addAllowedEscapeString("Aacute"); // "Á"
- addAllowedEscapeString("Agrave"); // "À"
- addAllowedEscapeString("Acirc"); // "Â"
- addAllowedEscapeString("Auml"); // "Ä"
- addAllowedEscapeString("Atilde"); // "Ã"
- addAllowedEscapeString("Aring"); // "Å"
- 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("Aacute"); // "Ã"
+ addAllowedEscapeString("Agrave"); // "Ã"
+ addAllowedEscapeString("Acirc"); // "Ã"
+ addAllowedEscapeString("Auml"); // "Ã"
+ addAllowedEscapeString("Atilde"); // "Ã"
+ addAllowedEscapeString("Aring"); // "Ã
"
+ 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("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"); // "ø"
+ addAllowedEscapeString("micro"); // "µ"
+ addAllowedEscapeString("middot"); // "·"
+ addAllowedEscapeString("cedil"); // "ž"
+ addAllowedEscapeString("ordm"); // "º"
+ addAllowedEscapeString("times"); // "Ã"
+ addAllowedEscapeString("divide"); // "÷"
+ addAllowedEscapeString("oslash"); // "ø"
setTokenCaseSensitive(true);
- addTokenSubstitute("scripture", "<i> ");
+// addTokenSubstitute("scripture", "<i> ");
addTokenSubstitute("/scripture", "</i> ");
}
@@ -222,6 +222,10 @@
u->suspendTextPassThru = false;
}
}
+ else if (!strcmp(tag.getName(), "scripture")) {
+ if (!tag.isEndTag()) buf += "<i>";
+ if (tag.isEndTag()) buf += "</i>";
+ }
// <scripRef> tag
else if (!strcmp(tag.getName(), "scripRef")) {
if (!tag.isEndTag()) {
More information about the sword-cvs
mailing list