Filters::BT_ThMLHTML::BT_ThMLHTML() {
	setEscapeStringCaseSensitive(true);
	setPassThruUnknownEscapeString(true); //the HTML widget will render the HTML escape codes

	setTokenStart("<");
	setTokenEnd(">");
	setTokenCaseSensitive(true);

	addTokenSubstitute("/foreign", "</span>");

	removeTokenSubstitute("note");
	removeTokenSubstitute("/note");
}
Beispiel #2
0
TEIHTMLHREF::TEIHTMLHREF() {
	setTokenStart("<");
	setTokenEnd(">");

	setEscapeStart("&");
	setEscapeEnd(";");

	setEscapeStringCaseSensitive(true);

	addAllowedEscapeString("quot");
	addAllowedEscapeString("apos");
	addAllowedEscapeString("amp");
	addAllowedEscapeString("lt");
	addAllowedEscapeString("gt");
	
	setTokenCaseSensitive(true);
}
Beispiel #3
0
TEIRTF::TEIRTF() {
	setTokenStart("<");
	setTokenEnd(">");

	setEscapeStart("&");
	setEscapeEnd(";");

	setEscapeStringCaseSensitive(true);

	addEscapeStringSubstitute("amp", "&");
	addEscapeStringSubstitute("apos", "'");
	addEscapeStringSubstitute("lt", "<");
	addEscapeStringSubstitute("gt", ">");
	addEscapeStringSubstitute("quot", "\"");

	setTokenCaseSensitive(true);
}
Beispiel #4
0
SWORD_NAMESPACE_START

TEIPlain::TEIPlain() {
	setTokenStart("<");
	setTokenEnd(">");

	setEscapeStart("&");
	setEscapeEnd(";");

	setEscapeStringCaseSensitive(true);

	addEscapeStringSubstitute("amp", "&");
	addEscapeStringSubstitute("apos", "'");
	addEscapeStringSubstitute("lt", "<");
	addEscapeStringSubstitute("gt", ">");
	addEscapeStringSubstitute("quot", "\"");

	setTokenCaseSensitive(true);
}
Beispiel #5
0
TEIXHTML::TEIXHTML() {
	setTokenStart("<");
	setTokenEnd(">");

	setEscapeStart("&");
	setEscapeEnd(";");

	setEscapeStringCaseSensitive(true);

	addAllowedEscapeString("quot");
	addAllowedEscapeString("apos");
	addAllowedEscapeString("amp");
	addAllowedEscapeString("lt");
	addAllowedEscapeString("gt");

	setTokenCaseSensitive(true);

	renderNoteNumbers = false;
}
Beispiel #6
0
cpu_banks_t mca_allbanks;

/* Handle unconfigured int18 (should never happen) */
static void unexpected_machine_check(struct cpu_user_regs *regs, long error_code)
{
	printk(XENLOG_ERR "CPU#%d: Unexpected int18 (Machine Check).\n",
		smp_processor_id());
}


static x86_mce_vector_t _machine_check_vector = unexpected_machine_check;

void x86_mce_vector_register(x86_mce_vector_t hdlr)
{
	_machine_check_vector = hdlr;
	wmb();
}

/* Call the installed machine check handler for this CPU setup. */

void machine_check_vector(struct cpu_user_regs *regs, long error_code)
{
Beispiel #7
0
OSISHTMLHREF::OSISHTMLHREF() {
	setTokenStart("<");
	setTokenEnd(">");

	setEscapeStart("&");
	setEscapeEnd(";");

	setEscapeStringCaseSensitive(true);
	setPassThruNumericEscapeString(true);

	addAllowedEscapeString("quot");
	addAllowedEscapeString("apos");
	addAllowedEscapeString("amp");
	addAllowedEscapeString("lt");
	addAllowedEscapeString("gt");

	setTokenCaseSensitive(true);
	
	//	addTokenSubstitute("lg",  "<br />");
	//	addTokenSubstitute("/lg", "<br />");

	morphFirst = false;
	renderNoteNumbers = false;
}
Beispiel #8
0
OSISXHTMLXS::OSISXHTMLXS() {
	setTokenStart("<");
	setTokenEnd(">");

	setEscapeStart("&");
	setEscapeEnd(";");

	setEscapeStringCaseSensitive(true);
	setPassThruNumericEscapeString(true);

	addAllowedEscapeString("quot");
	addAllowedEscapeString("apos");
	addAllowedEscapeString("amp");
	addAllowedEscapeString("lt");
	addAllowedEscapeString("gt");

	setTokenCaseSensitive(true);
	
	//	addTokenSubstitute("lg",  "<br />");
	//	addTokenSubstitute("/lg", "<br />");

	// unique to OSISXHTMLXS
	addAllowedEscapeString("nbsp");
}
Beispiel #9
0
SWORD_NAMESPACE_START

ThMLRTF::ThMLRTF() {
	setTokenStart("<");
	setTokenEnd(">");

	setEscapeStart("&");
	setEscapeEnd(";");

	setEscapeStringCaseSensitive(true);

     addEscapeStringSubstitute("nbsp", "\302\240");
	addEscapeStringSubstitute("apos", "'");
	addEscapeStringSubstitute("quot", "\"");
	addEscapeStringSubstitute("amp", "&");
	addEscapeStringSubstitute("lt", "<");
	addEscapeStringSubstitute("gt", ">");
	addEscapeStringSubstitute("brvbar", "І");
	addEscapeStringSubstitute("sect", "Ї");
	addEscapeStringSubstitute("copy", "Љ");
	addEscapeStringSubstitute("laquo", "Ћ");
	addEscapeStringSubstitute("reg", "Ў");
	addEscapeStringSubstitute("acute", "Д");
	addEscapeStringSubstitute("para", "Ж");
	addEscapeStringSubstitute("raquo", "Л");

	addEscapeStringSubstitute("Aacute", "С");
	addEscapeStringSubstitute("Agrave", "Р");
	addEscapeStringSubstitute("Acirc", "Т");
	addEscapeStringSubstitute("Auml", "Ф");
	addEscapeStringSubstitute("Atilde", "У");
	addEscapeStringSubstitute("Aring", "Х");
	addEscapeStringSubstitute("aacute", "с");
	addEscapeStringSubstitute("agrave", "р");
	addEscapeStringSubstitute("acirc", "т");
	addEscapeStringSubstitute("auml", "ф");
	addEscapeStringSubstitute("atilde", "у");
	addEscapeStringSubstitute("aring", "х");
	addEscapeStringSubstitute("Eacute", "Щ");
	addEscapeStringSubstitute("Egrave", "Ш");
	addEscapeStringSubstitute("Ecirc", "Ъ");
	addEscapeStringSubstitute("Euml", "Ы");
	addEscapeStringSubstitute("eacute", "щ");
	addEscapeStringSubstitute("egrave", "ш");
	addEscapeStringSubstitute("ecirc", "ъ");
	addEscapeStringSubstitute("euml", "ы");
	addEscapeStringSubstitute("Iacute", "Э");
	addEscapeStringSubstitute("Igrave", "Ь");
	addEscapeStringSubstitute("Icirc", "Ю");
	addEscapeStringSubstitute("Iuml", "Я");
	addEscapeStringSubstitute("iacute", "э");
	addEscapeStringSubstitute("igrave", "ь");
	addEscapeStringSubstitute("icirc", "ю");
	addEscapeStringSubstitute("iuml", "я");
	addEscapeStringSubstitute("Oacute", "г");
	addEscapeStringSubstitute("Ograve", "в");
	addEscapeStringSubstitute("Ocirc", "д");
	addEscapeStringSubstitute("Ouml", "ж");
	addEscapeStringSubstitute("Otilde", "е");
	addEscapeStringSubstitute("oacute", "ѓ");
	addEscapeStringSubstitute("ograve", "ђ");
	addEscapeStringSubstitute("ocirc", "є");
	addEscapeStringSubstitute("ouml", "і");
	addEscapeStringSubstitute("otilde", "ѕ");
	addEscapeStringSubstitute("Uacute", "к");
	addEscapeStringSubstitute("Ugrave", "й");
	addEscapeStringSubstitute("Ucirc", "л");
	addEscapeStringSubstitute("Uuml", "м");
	addEscapeStringSubstitute("uacute", "њ");
	addEscapeStringSubstitute("ugrave", "љ");
	addEscapeStringSubstitute("ucirc", "ћ");
	addEscapeStringSubstitute("uuml", "ќ");
	addEscapeStringSubstitute("Yacute", "н");
	addEscapeStringSubstitute("yacute", "§");
	addEscapeStringSubstitute("yuml", "џ");

	addEscapeStringSubstitute("deg", "А");
	addEscapeStringSubstitute("plusmn", "Б");
	addEscapeStringSubstitute("sup2", "В");
	addEscapeStringSubstitute("sup3", "Г");
	addEscapeStringSubstitute("sup1", "Й");
	addEscapeStringSubstitute("nbsp", "К");
	addEscapeStringSubstitute("pound", "Ѓ");
	addEscapeStringSubstitute("cent", "Ђ");
	addEscapeStringSubstitute("frac14", "М");
	addEscapeStringSubstitute("frac12", "Н");
	addEscapeStringSubstitute("frac34", "О");
	addEscapeStringSubstitute("iquest", "П");
	addEscapeStringSubstitute("iexcl", "Ё");
	addEscapeStringSubstitute("ETH", "а");
	addEscapeStringSubstitute("eth", "№");
	addEscapeStringSubstitute("THORN", "о");
	addEscapeStringSubstitute("thorn", "ў");
	addEscapeStringSubstitute("AElig", "Ц");
	addEscapeStringSubstitute("aelig", "ц");
	addEscapeStringSubstitute("Oslash", "и");
	addEscapeStringSubstitute("curren", "Є");
	addEscapeStringSubstitute("Ccedil", "Ч");
	addEscapeStringSubstitute("ccedil", "ч");
	addEscapeStringSubstitute("szlig", "п");
	addEscapeStringSubstitute("Ntilde", "б");
	addEscapeStringSubstitute("ntilde", "ё");
	addEscapeStringSubstitute("yen", "Ѕ");
	addEscapeStringSubstitute("not", "Ќ");
	addEscapeStringSubstitute("ordf", "Њ");
	addEscapeStringSubstitute("uml", "Ј");
	addEscapeStringSubstitute("shy", "­");
	addEscapeStringSubstitute("macr", "Џ");

	addEscapeStringSubstitute("micro",  "Е");
	addEscapeStringSubstitute("middot", "З");
	addEscapeStringSubstitute("cedil",  "И");
	addEscapeStringSubstitute("ordm",   "К");
	addEscapeStringSubstitute("times",  "з");
	addEscapeStringSubstitute("divide", "ї");
	addEscapeStringSubstitute("oslash", "ј");

	setTokenCaseSensitive(true);


	addTokenSubstitute("br", "\\line ");
	addTokenSubstitute("br /", "\\line ");
	addTokenSubstitute("i", "{\\i1 ");
	addTokenSubstitute("/i", "}");
	addTokenSubstitute("b", "{\\b1 ");
	addTokenSubstitute("/b", "}");
	addTokenSubstitute("p", "{\\fi200\\par}");
	addTokenSubstitute("p /", "\\pard\\par\\par ");

	//we need uppercase forms for the moment to support a few early ThML modules that aren't XHTML compliant
	addTokenSubstitute("BR", "\\line ");
	addTokenSubstitute("I", "{\\i1 ");
	addTokenSubstitute("/I", "}");
	addTokenSubstitute("B", "{\\b1 ");
	addTokenSubstitute("/B", "}");
	addTokenSubstitute("P", "\\par ");
	addTokenSubstitute("scripture", "{\\i1 ");
	addTokenSubstitute("/scripture", "}");
     addTokenSubstitute("center", "\\qc ");
     addTokenSubstitute("/center", "\\pard ");
}
Beispiel #10
0
ThMLXHTML::ThMLXHTML() {
	setTokenStart("<");
	setTokenEnd(">");

	setEscapeStart("&");
	setEscapeEnd(";");

	setEscapeStringCaseSensitive(true);
	setPassThruNumericEscapeString(true);

	addAllowedEscapeString("quot");
	addAllowedEscapeString("amp");
	addAllowedEscapeString("lt");
	addAllowedEscapeString("gt");

	addAllowedEscapeString("nbsp");
	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("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("scripture", "<i> ");
	addTokenSubstitute("/scripture", "</i> ");

	renderNoteNumbers = false;
}