gtkmathview-0.8.0/0000777000175000017500000000000010704625473011066 500000000000000gtkmathview-0.8.0/auto/0000777000175000017500000000000010704625451012032 500000000000000gtkmathview-0.8.0/auto/token.def0000644000175000017500000001407510704610655013555 00000000000000 { T_ACCENT, "accent" }, { T_ACCENTUNDER, "accentunder" }, { T_ACTIONTYPE, "actiontype" }, { T_ACTUARIAL, "actuarial" }, { T_ALIGN, "align" }, { T_ALIGNMENTSCOPE, "alignmentscope" }, { T_ALT, "alt" }, { T_AQUA, "aqua" }, { T_AUTO, "auto" }, { T_AXIS, "axis" }, { T_BACKGROUND, "background" }, { T_BADBREAK, "badbreak" }, { T_BASELINE, "baseline" }, { T_BEVELLED, "bevelled" }, { T_BIG, "big" }, { T_BLACK, "black" }, { T_BLOCK, "block" }, { T_BLUE, "blue" }, { T_BOLD, "bold" }, { T_BOLD_FRAKTUR, "bold-fraktur" }, { T_BOLD_ITALIC, "bold-italic" }, { T_BOLD_SANS_SERIF, "bold-sans-serif" }, { T_BOLD_SCRIPT, "bold-script" }, { T_BOTTOM, "bottom" }, { T_BSPACE, "bspace" }, { T_CENTER, "center" }, { T_CLASS, "class" }, { T_CLOSE, "close" }, { T_CM, "cm" }, { T_COLOR, "color" }, { T_COLUMNALIGN, "columnalign" }, { T_COLUMNLINES, "columnlines" }, { T_COLUMNSPACING, "columnspacing" }, { T_COLUMNSPAN, "columnspan" }, { T_COLUMNWIDTH, "columnwidth" }, { T_DASHED, "dashed" }, { T_DECIMALPOINT, "decimalpoint" }, { T_DENOMALIGN, "denomalign" }, { T_DEPTH, "depth" }, { T_DISPLAY, "display" }, { T_DISPLAYSTYLE, "displaystyle" }, { T_DOCUMENT, "document" }, { T_DOUBLE_STRUCK, "double-struck" }, { T_DUMMY, "dummy" }, { T_EDGE, "edge" }, { T_EM, "em" }, { T_EQUALCOLUMNS, "equalcolumns" }, { T_EQUALROWS, "equalrows" }, { T_EX, "ex" }, { T_FALSE, "false" }, { T_FENCE, "fence" }, { T_FIT, "fit" }, { T_FONTFAMILY, "fontfamily" }, { T_FONTSIZE, "fontsize" }, { T_FONTSTYLE, "fontstyle" }, { T_FONTWEIGHT, "fontweight" }, { T_FORM, "form" }, { T_FRAKTUR, "fraktur" }, { T_FRAME, "frame" }, { T_FRAMESPACING, "framespacing" }, { T_FUCHSIA, "fuchsia" }, { T_GOODBREAK, "goodbreak" }, { T_GRAY, "gray" }, { T_GREEN, "green" }, { T_GROUPALIGN, "groupalign" }, { T_HEIGHT, "height" }, { T_ID, "id" }, { T_IN, "in" }, { T_INDENTINGNEWLINE, "indentingnewline" }, { T_INDEX, "index" }, { T_INFINITY, "infinity" }, { T_INFIX, "infix" }, { T_INLINE, "inline" }, { T_ITALIC, "italic" }, { T_LARGEOP, "largeop" }, { T__LBRACE, "{" }, { T_LEFT, "left" }, { T_LEFTOVERLAP, "leftoverlap" }, { T_LIME, "lime" }, { T_LINEBREAK, "linebreak" }, { T_LINETHICKNESS, "linethickness" }, { T_LONGDIV, "longdiv" }, { T_LQUOTE, "lquote" }, { T_LSPACE, "lspace" }, { T_MACTION, "maction" }, { T_MALIGNGROUP, "maligngroup" }, { T_MALIGNMARK, "malignmark" }, { T_MAROON, "maroon" }, { T_MATH, "math" }, { T_MATHBACKGROUND, "mathbackground" }, { T_MATHCOLOR, "mathcolor" }, { T_MATHSIZE, "mathsize" }, { T_MATHVARIANT, "mathvariant" }, { T_MAXSIZE, "maxsize" }, { T_MCHAR, "mchar" }, { T_MEDIUM, "medium" }, { T_MEDIUMMATHSPACE, "mediummathspace" }, { T_MENCLOSE, "menclose" }, { T_MERROR, "merror" }, { T_MFENCED, "mfenced" }, { T_MFRAC, "mfrac" }, { T_MGLYPH, "mglyph" }, { T_MI, "mi" }, { T_MINLABELSPACING, "minlabelspacing" }, { T_MINSIZE, "minsize" }, { T__MINUS, "-" }, { T_MLABELEDTR, "mlabeledtr" }, { T_MM, "mm" }, { T_MMULTISCRIPTS, "mmultiscripts" }, { T_MN, "mn" }, { T_MO, "mo" }, { T_MODE, "mode" }, { T_MONOSPACE, "monospace" }, { T_MOVABLELIMITS, "movablelimits" }, { T_MOVER, "mover" }, { T_MPADDED, "mpadded" }, { T_MPHANTOM, "mphantom" }, { T_MPRESCRIPTS, "mprescripts" }, { T_MROOT, "mroot" }, { T_MROW, "mrow" }, { T_MS, "ms" }, { T_MSPACE, "mspace" }, { T_MSQRT, "msqrt" }, { T_MSTYLE, "mstyle" }, { T_MSUB, "msub" }, { T_MSUBSUP, "msubsup" }, { T_MSUP, "msup" }, { T_MTABLE, "mtable" }, { T_MTD, "mtd" }, { T_MTEXT, "mtext" }, { T_MTR, "mtr" }, { T_MUNDER, "munder" }, { T_MUNDEROVER, "munderover" }, { T_NAME, "name" }, { T_NAVY, "navy" }, { T_NEGATIVEMEDIUMMATHSPACE, "negativemediummathspace" }, { T_NEGATIVETHICKMATHSPACE, "negativethickmathspace" }, { T_NEGATIVETHINMATHSPACE, "negativethinmathspace" }, { T_NEGATIVEVERYTHICKMATHSPACE, "negativeverythickmathspace" }, { T_NEGATIVEVERYTHINMATHSPACE, "negativeverythinmathspace" }, { T_NEGATIVEVERYVERYTHICKMATHSPACE, "negativeveryverythickmathspace" }, { T_NEGATIVEVERYVERYTHINMATHSPACE, "negativeveryverythinmathspace" }, { T_NEWLINE, "newline" }, { T_NOBREAK, "nobreak" }, { T_NONE, "none" }, { T_NORMAL, "normal" }, { T_NOTATION, "notation" }, { T_NUMALIGN, "numalign" }, { T_OLIVE, "olive" }, { T_OPEN, "open" }, { T_OTHER, "other" }, { T_PC, "pc" }, { T__PERCENTAGE, "%" }, { T__PLUS, "+" }, { T_POSTFIX, "postfix" }, { T_PREFIX, "prefix" }, { T_PT, "pt" }, { T_PURPLE, "purple" }, { T_PX, "px" }, { T_RADICAL, "radical" }, { T__RBRACE, "}" }, { T_RED, "red" }, { T_RIGHT, "right" }, { T_RIGHTOVERLAP, "rightoverlap" }, { T_ROWALIGN, "rowalign" }, { T_ROWLINES, "rowlines" }, { T_ROWSPACING, "rowspacing" }, { T_ROWSPAN, "rowspan" }, { T_RQUOTE, "rquote" }, { T_RSPACE, "rspace" }, { T_SANS_SERIF, "sans-serif" }, { T_SANS_SERIF_BOLD_ITALIC, "sans-serif-bold-italic" }, { T_SANS_SERIF_ITALIC, "sans-serif-italic" }, { T_SCRIPT, "script" }, { T_SCRIPTLEVEL, "scriptlevel" }, { T_SCRIPTMINSIZE, "scriptminsize" }, { T_SCRIPTSIZEMULTIPLIER, "scriptsizemultiplier" }, { T_SELECTION, "selection" }, { T_SEMANTICS, "semantics" }, { T_SEPARATOR, "separator" }, { T_SEPARATORS, "separators" }, { T_SIDE, "side" }, { T_SILVER, "silver" }, { T_SMALL, "small" }, { T_SOLID, "solid" }, { T_STRETCHY, "stretchy" }, { T_STYLE, "style" }, { T_SUBSCRIPTSHIFT, "subscriptshift" }, { T_SUPERSCRIPTSHIFT, "superscriptshift" }, { T_SYMMETRIC, "symmetric" }, { T_TEAL, "teal" }, { T_THICK, "thick" }, { T_THICKMATHSPACE, "thickmathspace" }, { T_THIN, "thin" }, { T_THINMATHSPACE, "thinmathspace" }, { T_TOP, "top" }, { T_TRANSPARENT, "transparent" }, { T_TRUE, "true" }, { T_TSPACE, "tspace" }, { T_VERYTHICKMATHSPACE, "verythickmathspace" }, { T_VERYTHINMATHSPACE, "verythinmathspace" }, { T_VERYVERYTHICKMATHSPACE, "veryverythickmathspace" }, { T_VERYVERYTHINMATHSPACE, "veryverythinmathspace" }, { T_WHITE, "white" }, { T_WIDTH, "width" }, { T_YELLOW, "yellow" }, gtkmathview-0.8.0/auto/dumpEntitiesTable.cc0000644000175000017500000000370610661271106015701 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "config.h" #include // for exit(...) #include #if defined(HAVE_GMETADOM) #include "gmetadom.hh" bool dump(const char* fileName) { DOM::DOMImplementation di; try { DOM::Document doc = di.createDocumentFromURI(fileName, 0); if (!doc) return false; DOM::Element root = doc.get_documentElement(); if (!root) return false; for (DOM::Node p = root.get_firstChild(); p; p = p.get_nextSibling()) { if (p.get_nodeType() == DOM::Node::ELEMENT_NODE) { DOM::Element elem(p); std::string name = elem.getAttribute("name"); DOM::GdomeString value = elem.getAttribute("value"); if (!name.empty() && !value.empty()) { DOM::UTF8String s_value = value; printf("{ \"%s\", \"", name.c_str()); for (unsigned i = 0; i < s_value.length(); i++) printf("\\x%02x", s_value[i] & 0xff); printf("\\x00\", 0, 0 },\n"); } } } return true; } catch (DOM::DOMException) { return false; } } #endif int main(int argc, char* argv[]) { if (argc != 2) { fprintf(stderr, "Usage: dumpEntitiesTable \n"); exit(1); } dump(argv[1]); return 0; } gtkmathview-0.8.0/auto/list-to-dec.xsl0000644000175000017500000000047310613606773014633 00000000000000 T_, gtkmathview-0.8.0/auto/entitiesTable.inc0000644000175000017500000024445410704611230015240 00000000000000{ "Aacute", "\xc3\x81\x00", 0, 0 }, { "aacute", "\xc3\xa1\x00", 0, 0 }, { "Abreve", "\xc4\x82\x00", 0, 0 }, { "abreve", "\xc4\x83\x00", 0, 0 }, { "ac", "\xe2\x88\xbe\x00", 0, 0 }, { "acd", "\xe2\x88\xbf\x00", 0, 0 }, { "acE", "\xe2\x88\xbe\xcc\xb3\x00", 0, 0 }, { "Acirc", "\xc3\x82\x00", 0, 0 }, { "acirc", "\xc3\xa2\x00", 0, 0 }, { "acute", "\xc2\xb4\x00", 0, 0 }, { "Acy", "\xd0\x90\x00", 0, 0 }, { "acy", "\xd0\xb0\x00", 0, 0 }, { "AElig", "\xc3\x86\x00", 0, 0 }, { "aelig", "\xc3\xa6\x00", 0, 0 }, { "af", "\xe2\x81\xa1\x00", 0, 0 }, { "Afr", "\xf0\x9d\x94\x84\x00", 0, 0 }, { "afr", "\xf0\x9d\x94\x9e\x00", 0, 0 }, { "Agrave", "\xc3\x80\x00", 0, 0 }, { "agrave", "\xc3\xa0\x00", 0, 0 }, { "aleph", "\xe2\x84\xb5\x00", 0, 0 }, { "alpha", "\xce\xb1\x00", 0, 0 }, { "Amacr", "\xc4\x80\x00", 0, 0 }, { "amacr", "\xc4\x81\x00", 0, 0 }, { "amalg", "\xe2\xa8\xbf\x00", 0, 0 }, { "amp", "\x26\x00", 0, 0 }, { "And", "\xe2\xa9\x93\x00", 0, 0 }, { "and", "\xe2\x88\xa7\x00", 0, 0 }, { "andand", "\xe2\xa9\x95\x00", 0, 0 }, { "andd", "\xe2\xa9\x9c\x00", 0, 0 }, { "andslope", "\xe2\xa9\x98\x00", 0, 0 }, { "andv", "\xe2\xa9\x9a\x00", 0, 0 }, { "ang", "\xe2\x88\xa0\x00", 0, 0 }, { "ange", "\xe2\xa6\xa4\x00", 0, 0 }, { "angle", "\xe2\x88\xa0\x00", 0, 0 }, { "angmsd", "\xe2\x88\xa1\x00", 0, 0 }, { "angmsdaa", "\xe2\xa6\xa8\x00", 0, 0 }, { "angmsdab", "\xe2\xa6\xa9\x00", 0, 0 }, { "angmsdac", "\xe2\xa6\xaa\x00", 0, 0 }, { "angmsdad", "\xe2\xa6\xab\x00", 0, 0 }, { "angmsdae", "\xe2\xa6\xac\x00", 0, 0 }, { "angmsdaf", "\xe2\xa6\xad\x00", 0, 0 }, { "angmsdag", "\xe2\xa6\xae\x00", 0, 0 }, { "angmsdah", "\xe2\xa6\xaf\x00", 0, 0 }, { "angrt", "\xe2\x88\x9f\x00", 0, 0 }, { "angrtvb", "\xe2\x8a\xbe\x00", 0, 0 }, { "angrtvbd", "\xe2\xa6\x9d\x00", 0, 0 }, { "angsph", "\xe2\x88\xa2\x00", 0, 0 }, { "angst", "\xe2\x84\xab\x00", 0, 0 }, { "angzarr", "\xe2\x8d\xbc\x00", 0, 0 }, { "Aogon", "\xc4\x84\x00", 0, 0 }, { "aogon", "\xc4\x85\x00", 0, 0 }, { "Aopf", "\xf0\x9d\x94\xb8\x00", 0, 0 }, { "aopf", "\xf0\x9d\x95\x92\x00", 0, 0 }, { "ap", "\xe2\x89\x88\x00", 0, 0 }, { "apacir", "\xe2\xa9\xaf\x00", 0, 0 }, { "apE", "\xe2\xa9\xb0\x00", 0, 0 }, { "ape", "\xe2\x89\x8a\x00", 0, 0 }, { "apid", "\xe2\x89\x8b\x00", 0, 0 }, { "apos", "\x27\x00", 0, 0 }, { "ApplyFunction", "\xe2\x81\xa1\x00", 0, 0 }, { "approx", "\xe2\x89\x88\x00", 0, 0 }, { "approxeq", "\xe2\x89\x8a\x00", 0, 0 }, { "Aring", "\xc3\x85\x00", 0, 0 }, { "aring", "\xc3\xa5\x00", 0, 0 }, { "Ascr", "\xf0\x9d\x92\x9c\x00", 0, 0 }, { "ascr", "\xf0\x9d\x92\xb6\x00", 0, 0 }, { "Assign", "\xe2\x89\x94\x00", 0, 0 }, { "ast", "\x2a\x00", 0, 0 }, { "asymp", "\xe2\x89\x88\x00", 0, 0 }, { "asympeq", "\xe2\x89\x8d\x00", 0, 0 }, { "Atilde", "\xc3\x83\x00", 0, 0 }, { "atilde", "\xc3\xa3\x00", 0, 0 }, { "Auml", "\xc3\x84\x00", 0, 0 }, { "auml", "\xc3\xa4\x00", 0, 0 }, { "awconint", "\xe2\x88\xb3\x00", 0, 0 }, { "awint", "\xe2\xa8\x91\x00", 0, 0 }, { "backcong", "\xe2\x89\x8c\x00", 0, 0 }, { "backepsilon", "\xcf\xb6\x00", 0, 0 }, { "backprime", "\xe2\x80\xb5\x00", 0, 0 }, { "backsim", "\xe2\x88\xbd\x00", 0, 0 }, { "backsimeq", "\xe2\x8b\x8d\x00", 0, 0 }, { "Backslash", "\xe2\x88\x96\x00", 0, 0 }, { "Barv", "\xe2\xab\xa7\x00", 0, 0 }, { "barvee", "\xe2\x8a\xbd\x00", 0, 0 }, { "Barwed", "\xe2\x8c\x86\x00", 0, 0 }, { "barwed", "\xe2\x8c\x85\x00", 0, 0 }, { "barwedge", "\xe2\x8c\x85\x00", 0, 0 }, { "bbrk", "\xe2\x8e\xb5\x00", 0, 0 }, { "bbrktbrk", "\xe2\x8e\xb6\x00", 0, 0 }, { "bcong", "\xe2\x89\x8c\x00", 0, 0 }, { "Bcy", "\xd0\x91\x00", 0, 0 }, { "bcy", "\xd0\xb1\x00", 0, 0 }, { "becaus", "\xe2\x88\xb5\x00", 0, 0 }, { "Because", "\xe2\x88\xb5\x00", 0, 0 }, { "because", "\xe2\x88\xb5\x00", 0, 0 }, { "bemptyv", "\xe2\xa6\xb0\x00", 0, 0 }, { "bepsi", "\xcf\xb6\x00", 0, 0 }, { "bernou", "\xe2\x84\xac\x00", 0, 0 }, { "Bernoullis", "\xe2\x84\xac\x00", 0, 0 }, { "beta", "\xce\xb2\x00", 0, 0 }, { "beth", "\xe2\x84\xb6\x00", 0, 0 }, { "between", "\xe2\x89\xac\x00", 0, 0 }, { "Bfr", "\xf0\x9d\x94\x85\x00", 0, 0 }, { "bfr", "\xf0\x9d\x94\x9f\x00", 0, 0 }, { "bigcap", "\xe2\x8b\x82\x00", 0, 0 }, { "bigcirc", "\xe2\x97\xaf\x00", 0, 0 }, { "bigcup", "\xe2\x8b\x83\x00", 0, 0 }, { "bigodot", "\xe2\xa8\x80\x00", 0, 0 }, { "bigoplus", "\xe2\xa8\x81\x00", 0, 0 }, { "bigotimes", "\xe2\xa8\x82\x00", 0, 0 }, { "bigsqcup", "\xe2\xa8\x86\x00", 0, 0 }, { "bigstar", "\xe2\x98\x85\x00", 0, 0 }, { "bigtriangledown", "\xe2\x96\xbd\x00", 0, 0 }, { "bigtriangleup", "\xe2\x96\xb3\x00", 0, 0 }, { "biguplus", "\xe2\xa8\x84\x00", 0, 0 }, { "bigvee", "\xe2\x8b\x81\x00", 0, 0 }, { "bigwedge", "\xe2\x8b\x80\x00", 0, 0 }, { "bkarow", "\xe2\xa4\x8d\x00", 0, 0 }, { "blacklozenge", "\xe2\xa7\xab\x00", 0, 0 }, { "blacksquare", "\xe2\x96\xaa\x00", 0, 0 }, { "blacktriangle", "\xe2\x96\xb4\x00", 0, 0 }, { "blacktriangledown", "\xe2\x96\xbe\x00", 0, 0 }, { "blacktriangleleft", "\xe2\x97\x82\x00", 0, 0 }, { "blacktriangleright", "\xe2\x96\xb8\x00", 0, 0 }, { "blank", "\xe2\x90\xa3\x00", 0, 0 }, { "blk12", "\xe2\x96\x92\x00", 0, 0 }, { "blk14", "\xe2\x96\x91\x00", 0, 0 }, { "blk34", "\xe2\x96\x93\x00", 0, 0 }, { "block", "\xe2\x96\x88\x00", 0, 0 }, { "bne", "\x3d\xe2\x83\xa5\x00", 0, 0 }, { "bnequiv", "\xe2\x89\xa1\xe2\x83\xa5\x00", 0, 0 }, { "bNot", "\xe2\xab\xad\x00", 0, 0 }, { "bnot", "\xe2\x8c\x90\x00", 0, 0 }, { "Bopf", "\xf0\x9d\x94\xb9\x00", 0, 0 }, { "bopf", "\xf0\x9d\x95\x93\x00", 0, 0 }, { "bot", "\xe2\x8a\xa5\x00", 0, 0 }, { "bottom", "\xe2\x8a\xa5\x00", 0, 0 }, { "bowtie", "\xe2\x8b\x88\x00", 0, 0 }, { "boxbox", "\xe2\xa7\x89\x00", 0, 0 }, { "boxDL", "\xe2\x95\x97\x00", 0, 0 }, { "boxDl", "\xe2\x95\x96\x00", 0, 0 }, { "boxdL", "\xe2\x95\x95\x00", 0, 0 }, { "boxdl", "\xe2\x94\x90\x00", 0, 0 }, { "boxDR", "\xe2\x95\x94\x00", 0, 0 }, { "boxDr", "\xe2\x95\x93\x00", 0, 0 }, { "boxdR", "\xe2\x95\x92\x00", 0, 0 }, { "boxdr", "\xe2\x94\x8c\x00", 0, 0 }, { "boxH", "\xe2\x95\x90\x00", 0, 0 }, { "boxh", "\xe2\x94\x80\x00", 0, 0 }, { "boxHD", "\xe2\x95\xa6\x00", 0, 0 }, { "boxHd", "\xe2\x95\xa4\x00", 0, 0 }, { "boxhD", "\xe2\x95\xa5\x00", 0, 0 }, { "boxhd", "\xe2\x94\xac\x00", 0, 0 }, { "boxHU", "\xe2\x95\xa9\x00", 0, 0 }, { "boxHu", "\xe2\x95\xa7\x00", 0, 0 }, { "boxhU", "\xe2\x95\xa8\x00", 0, 0 }, { "boxhu", "\xe2\x94\xb4\x00", 0, 0 }, { "boxminus", "\xe2\x8a\x9f\x00", 0, 0 }, { "boxplus", "\xe2\x8a\x9e\x00", 0, 0 }, { "boxtimes", "\xe2\x8a\xa0\x00", 0, 0 }, { "boxUL", "\xe2\x95\x9d\x00", 0, 0 }, { "boxUl", "\xe2\x95\x9c\x00", 0, 0 }, { "boxuL", "\xe2\x95\x9b\x00", 0, 0 }, { "boxul", "\xe2\x94\x98\x00", 0, 0 }, { "boxUR", "\xe2\x95\x9a\x00", 0, 0 }, { "boxUr", "\xe2\x95\x99\x00", 0, 0 }, { "boxuR", "\xe2\x95\x98\x00", 0, 0 }, { "boxur", "\xe2\x94\x94\x00", 0, 0 }, { "boxV", "\xe2\x95\x91\x00", 0, 0 }, { "boxv", "\xe2\x94\x82\x00", 0, 0 }, { "boxVH", "\xe2\x95\xac\x00", 0, 0 }, { "boxVh", "\xe2\x95\xab\x00", 0, 0 }, { "boxvH", "\xe2\x95\xaa\x00", 0, 0 }, { "boxvh", "\xe2\x94\xbc\x00", 0, 0 }, { "boxVL", "\xe2\x95\xa3\x00", 0, 0 }, { "boxVl", "\xe2\x95\xa2\x00", 0, 0 }, { "boxvL", "\xe2\x95\xa1\x00", 0, 0 }, { "boxvl", "\xe2\x94\xa4\x00", 0, 0 }, { "boxVR", "\xe2\x95\xa0\x00", 0, 0 }, { "boxVr", "\xe2\x95\x9f\x00", 0, 0 }, { "boxvR", "\xe2\x95\x9e\x00", 0, 0 }, { "boxvr", "\xe2\x94\x9c\x00", 0, 0 }, { "bprime", "\xe2\x80\xb5\x00", 0, 0 }, { "Breve", "\xcb\x98\x00", 0, 0 }, { "breve", "\xcb\x98\x00", 0, 0 }, { "brvbar", "\xc2\xa6\x00", 0, 0 }, { "Bscr", "\xe2\x84\xac\x00", 0, 0 }, { "bscr", "\xf0\x9d\x92\xb7\x00", 0, 0 }, { "bsemi", "\xe2\x81\x8f\x00", 0, 0 }, { "bsim", "\xe2\x88\xbd\x00", 0, 0 }, { "bsime", "\xe2\x8b\x8d\x00", 0, 0 }, { "bsol", "\x5c\x00", 0, 0 }, { "bsolb", "\xe2\xa7\x85\x00", 0, 0 }, { "bsolhsub", "\x5c\xe2\x8a\x82\x00", 0, 0 }, { "bull", "\xe2\x80\xa2\x00", 0, 0 }, { "bullet", "\xe2\x80\xa2\x00", 0, 0 }, { "bump", "\xe2\x89\x8e\x00", 0, 0 }, { "bumpE", "\xe2\xaa\xae\x00", 0, 0 }, { "bumpe", "\xe2\x89\x8f\x00", 0, 0 }, { "Bumpeq", "\xe2\x89\x8e\x00", 0, 0 }, { "bumpeq", "\xe2\x89\x8f\x00", 0, 0 }, { "Cacute", "\xc4\x86\x00", 0, 0 }, { "cacute", "\xc4\x87\x00", 0, 0 }, { "Cap", "\xe2\x8b\x92\x00", 0, 0 }, { "cap", "\xe2\x88\xa9\x00", 0, 0 }, { "capand", "\xe2\xa9\x84\x00", 0, 0 }, { "capbrcup", "\xe2\xa9\x89\x00", 0, 0 }, { "capcap", "\xe2\xa9\x8b\x00", 0, 0 }, { "capcup", "\xe2\xa9\x87\x00", 0, 0 }, { "capdot", "\xe2\xa9\x80\x00", 0, 0 }, { "CapitalDifferentialD", "\xe2\x85\x85\x00", 0, 0 }, { "caps", "\xe2\x88\xa9\xef\xb8\x80\x00", 0, 0 }, { "caret", "\xe2\x81\x81\x00", 0, 0 }, { "caron", "\xcb\x87\x00", 0, 0 }, { "Cayleys", "\xe2\x84\xad\x00", 0, 0 }, { "ccaps", "\xe2\xa9\x8d\x00", 0, 0 }, { "Ccaron", "\xc4\x8c\x00", 0, 0 }, { "ccaron", "\xc4\x8d\x00", 0, 0 }, { "Ccedil", "\xc3\x87\x00", 0, 0 }, { "ccedil", "\xc3\xa7\x00", 0, 0 }, { "Ccirc", "\xc4\x88\x00", 0, 0 }, { "ccirc", "\xc4\x89\x00", 0, 0 }, { "Cconint", "\xe2\x88\xb0\x00", 0, 0 }, { "ccups", "\xe2\xa9\x8c\x00", 0, 0 }, { "ccupssm", "\xe2\xa9\x90\x00", 0, 0 }, { "Cdot", "\xc4\x8a\x00", 0, 0 }, { "cdot", "\xc4\x8b\x00", 0, 0 }, { "cedil", "\xc2\xb8\x00", 0, 0 }, { "Cedilla", "\xc2\xb8\x00", 0, 0 }, { "cemptyv", "\xe2\xa6\xb2\x00", 0, 0 }, { "cent", "\xc2\xa2\x00", 0, 0 }, { "CenterDot", "\xc2\xb7\x00", 0, 0 }, { "centerdot", "\xc2\xb7\x00", 0, 0 }, { "Cfr", "\xe2\x84\xad\x00", 0, 0 }, { "cfr", "\xf0\x9d\x94\xa0\x00", 0, 0 }, { "CHcy", "\xd0\xa7\x00", 0, 0 }, { "chcy", "\xd1\x87\x00", 0, 0 }, { "check", "\xe2\x9c\x93\x00", 0, 0 }, { "checkmark", "\xe2\x9c\x93\x00", 0, 0 }, { "chi", "\xcf\x87\x00", 0, 0 }, { "cir", "\xe2\x97\x8b\x00", 0, 0 }, { "circ", "\xcb\x86\x00", 0, 0 }, { "circeq", "\xe2\x89\x97\x00", 0, 0 }, { "circlearrowleft", "\xe2\x86\xba\x00", 0, 0 }, { "circlearrowright", "\xe2\x86\xbb\x00", 0, 0 }, { "circledast", "\xe2\x8a\x9b\x00", 0, 0 }, { "circledcirc", "\xe2\x8a\x9a\x00", 0, 0 }, { "circleddash", "\xe2\x8a\x9d\x00", 0, 0 }, { "CircleDot", "\xe2\x8a\x99\x00", 0, 0 }, { "circledR", "\xc2\xae\x00", 0, 0 }, { "circledS", "\xe2\x93\x88\x00", 0, 0 }, { "CircleMinus", "\xe2\x8a\x96\x00", 0, 0 }, { "CirclePlus", "\xe2\x8a\x95\x00", 0, 0 }, { "CircleTimes", "\xe2\x8a\x97\x00", 0, 0 }, { "cirE", "\xe2\xa7\x83\x00", 0, 0 }, { "cire", "\xe2\x89\x97\x00", 0, 0 }, { "cirfnint", "\xe2\xa8\x90\x00", 0, 0 }, { "cirmid", "\xe2\xab\xaf\x00", 0, 0 }, { "cirscir", "\xe2\xa7\x82\x00", 0, 0 }, { "ClockwiseContourIntegral", "\xe2\x88\xb2\x00", 0, 0 }, { "CloseCurlyDoubleQuote", "\xe2\x80\x9d\x00", 0, 0 }, { "CloseCurlyQuote", "\xe2\x80\x99\x00", 0, 0 }, { "clubs", "\xe2\x99\xa3\x00", 0, 0 }, { "clubsuit", "\xe2\x99\xa3\x00", 0, 0 }, { "Colon", "\xe2\x88\xb7\x00", 0, 0 }, { "colon", "\x3a\x00", 0, 0 }, { "Colone", "\xe2\xa9\xb4\x00", 0, 0 }, { "colone", "\xe2\x89\x94\x00", 0, 0 }, { "coloneq", "\xe2\x89\x94\x00", 0, 0 }, { "comma", "\x2c\x00", 0, 0 }, { "commat", "\x40\x00", 0, 0 }, { "comp", "\xe2\x88\x81\x00", 0, 0 }, { "compfn", "\xe2\x88\x98\x00", 0, 0 }, { "complement", "\xe2\x88\x81\x00", 0, 0 }, { "complexes", "\xe2\x84\x82\x00", 0, 0 }, { "cong", "\xe2\x89\x85\x00", 0, 0 }, { "congdot", "\xe2\xa9\xad\x00", 0, 0 }, { "Congruent", "\xe2\x89\xa1\x00", 0, 0 }, { "Conint", "\xe2\x88\xaf\x00", 0, 0 }, { "conint", "\xe2\x88\xae\x00", 0, 0 }, { "ContourIntegral", "\xe2\x88\xae\x00", 0, 0 }, { "Copf", "\xe2\x84\x82\x00", 0, 0 }, { "copf", "\xf0\x9d\x95\x94\x00", 0, 0 }, { "coprod", "\xe2\x88\x90\x00", 0, 0 }, { "Coproduct", "\xe2\x88\x90\x00", 0, 0 }, { "copy", "\xc2\xa9\x00", 0, 0 }, { "copysr", "\xe2\x84\x97\x00", 0, 0 }, { "CounterClockwiseContourIntegral", "\xe2\x88\xb3\x00", 0, 0 }, { "Cross", "\xe2\xa8\xaf\x00", 0, 0 }, { "cross", "\xe2\x9c\x97\x00", 0, 0 }, { "Cscr", "\xf0\x9d\x92\x9e\x00", 0, 0 }, { "cscr", "\xf0\x9d\x92\xb8\x00", 0, 0 }, { "csub", "\xe2\xab\x8f\x00", 0, 0 }, { "csube", "\xe2\xab\x91\x00", 0, 0 }, { "csup", "\xe2\xab\x90\x00", 0, 0 }, { "csupe", "\xe2\xab\x92\x00", 0, 0 }, { "ctdot", "\xe2\x8b\xaf\x00", 0, 0 }, { "cudarrl", "\xe2\xa4\xb8\x00", 0, 0 }, { "cudarrr", "\xe2\xa4\xb5\x00", 0, 0 }, { "cuepr", "\xe2\x8b\x9e\x00", 0, 0 }, { "cuesc", "\xe2\x8b\x9f\x00", 0, 0 }, { "cularr", "\xe2\x86\xb6\x00", 0, 0 }, { "cularrp", "\xe2\xa4\xbd\x00", 0, 0 }, { "Cup", "\xe2\x8b\x93\x00", 0, 0 }, { "cup", "\xe2\x88\xaa\x00", 0, 0 }, { "cupbrcap", "\xe2\xa9\x88\x00", 0, 0 }, { "CupCap", "\xe2\x89\x8d\x00", 0, 0 }, { "cupcap", "\xe2\xa9\x86\x00", 0, 0 }, { "cupcup", "\xe2\xa9\x8a\x00", 0, 0 }, { "cupdot", "\xe2\x8a\x8d\x00", 0, 0 }, { "cupor", "\xe2\xa9\x85\x00", 0, 0 }, { "cups", "\xe2\x88\xaa\xef\xb8\x80\x00", 0, 0 }, { "curarr", "\xe2\x86\xb7\x00", 0, 0 }, { "curarrm", "\xe2\xa4\xbc\x00", 0, 0 }, { "curlyeqprec", "\xe2\x8b\x9e\x00", 0, 0 }, { "curlyeqsucc", "\xe2\x8b\x9f\x00", 0, 0 }, { "curlyvee", "\xe2\x8b\x8e\x00", 0, 0 }, { "curlywedge", "\xe2\x8b\x8f\x00", 0, 0 }, { "curren", "\xc2\xa4\x00", 0, 0 }, { "curvearrowleft", "\xe2\x86\xb6\x00", 0, 0 }, { "curvearrowright", "\xe2\x86\xb7\x00", 0, 0 }, { "cuvee", "\xe2\x8b\x8e\x00", 0, 0 }, { "cuwed", "\xe2\x8b\x8f\x00", 0, 0 }, { "cwconint", "\xe2\x88\xb2\x00", 0, 0 }, { "cwint", "\xe2\x88\xb1\x00", 0, 0 }, { "cylcty", "\xe2\x8c\xad\x00", 0, 0 }, { "Dagger", "\xe2\x80\xa1\x00", 0, 0 }, { "Dagger", "\xe2\x80\xa1\x00", 0, 0 }, { "dagger", "\xe2\x80\xa0\x00", 0, 0 }, { "dagger", "\xe2\x80\xa0\x00", 0, 0 }, { "daleth", "\xe2\x84\xb8\x00", 0, 0 }, { "Darr", "\xe2\x86\xa1\x00", 0, 0 }, { "dArr", "\xe2\x87\x93\x00", 0, 0 }, { "darr", "\xe2\x86\x93\x00", 0, 0 }, { "dash", "\xe2\x80\x90\x00", 0, 0 }, { "Dashv", "\xe2\xab\xa4\x00", 0, 0 }, { "dashv", "\xe2\x8a\xa3\x00", 0, 0 }, { "dbkarow", "\xe2\xa4\x8f\x00", 0, 0 }, { "dblac", "\xcb\x9d\x00", 0, 0 }, { "Dcaron", "\xc4\x8e\x00", 0, 0 }, { "dcaron", "\xc4\x8f\x00", 0, 0 }, { "Dcy", "\xd0\x94\x00", 0, 0 }, { "dcy", "\xd0\xb4\x00", 0, 0 }, { "DD", "\xe2\x85\x85\x00", 0, 0 }, { "dd", "\xe2\x85\x86\x00", 0, 0 }, { "ddagger", "\xe2\x80\xa1\x00", 0, 0 }, { "ddarr", "\xe2\x87\x8a\x00", 0, 0 }, { "DDotrahd", "\xe2\xa4\x91\x00", 0, 0 }, { "ddotseq", "\xe2\xa9\xb7\x00", 0, 0 }, { "deg", "\xc2\xb0\x00", 0, 0 }, { "Del", "\xe2\x88\x87\x00", 0, 0 }, { "Delta", "\xce\x94\x00", 0, 0 }, { "delta", "\xce\xb4\x00", 0, 0 }, { "demptyv", "\xe2\xa6\xb1\x00", 0, 0 }, { "dfisht", "\xe2\xa5\xbf\x00", 0, 0 }, { "Dfr", "\xf0\x9d\x94\x87\x00", 0, 0 }, { "dfr", "\xf0\x9d\x94\xa1\x00", 0, 0 }, { "dHar", "\xe2\xa5\xa5\x00", 0, 0 }, { "dharl", "\xe2\x87\x83\x00", 0, 0 }, { "dharr", "\xe2\x87\x82\x00", 0, 0 }, { "DiacriticalAcute", "\xc2\xb4\x00", 0, 0 }, { "DiacriticalDot", "\xcb\x99\x00", 0, 0 }, { "DiacriticalDoubleAcute", "\xcb\x9d\x00", 0, 0 }, { "DiacriticalGrave", "\x60\x00", 0, 0 }, { "DiacriticalTilde", "\xcb\x9c\x00", 0, 0 }, { "diam", "\xe2\x8b\x84\x00", 0, 0 }, { "Diamond", "\xe2\x8b\x84\x00", 0, 0 }, { "diamond", "\xe2\x8b\x84\x00", 0, 0 }, { "diamondsuit", "\xe2\x99\xa6\x00", 0, 0 }, { "diams", "\xe2\x99\xa6\x00", 0, 0 }, { "die", "\xc2\xa8\x00", 0, 0 }, { "DifferentialD", "\xe2\x85\x86\x00", 0, 0 }, { "digamma", "\xcf\x9d\x00", 0, 0 }, { "disin", "\xe2\x8b\xb2\x00", 0, 0 }, { "div", "\xc3\xb7\x00", 0, 0 }, { "divide", "\xc3\xb7\x00", 0, 0 }, { "divideontimes", "\xe2\x8b\x87\x00", 0, 0 }, { "divonx", "\xe2\x8b\x87\x00", 0, 0 }, { "DJcy", "\xd0\x82\x00", 0, 0 }, { "djcy", "\xd1\x92\x00", 0, 0 }, { "dlcorn", "\xe2\x8c\x9e\x00", 0, 0 }, { "dlcrop", "\xe2\x8c\x8d\x00", 0, 0 }, { "dollar", "\x24\x00", 0, 0 }, { "Dopf", "\xf0\x9d\x94\xbb\x00", 0, 0 }, { "dopf", "\xf0\x9d\x95\x95\x00", 0, 0 }, { "Dot", "\xc2\xa8\x00", 0, 0 }, { "dot", "\xcb\x99\x00", 0, 0 }, { "DotDot", "\xe2\x83\x9c\x00", 0, 0 }, { "doteq", "\xe2\x89\x90\x00", 0, 0 }, { "doteqdot", "\xe2\x89\x91\x00", 0, 0 }, { "DotEqual", "\xe2\x89\x90\x00", 0, 0 }, { "dotminus", "\xe2\x88\xb8\x00", 0, 0 }, { "dotplus", "\xe2\x88\x94\x00", 0, 0 }, { "dotsquare", "\xe2\x8a\xa1\x00", 0, 0 }, { "doublebarwedge", "\xe2\x8c\x86\x00", 0, 0 }, { "DoubleContourIntegral", "\xe2\x88\xaf\x00", 0, 0 }, { "DoubleDot", "\xc2\xa8\x00", 0, 0 }, { "DoubleDownArrow", "\xe2\x87\x93\x00", 0, 0 }, { "DoubleLeftArrow", "\xe2\x87\x90\x00", 0, 0 }, { "DoubleLeftRightArrow", "\xe2\x87\x94\x00", 0, 0 }, { "DoubleLeftTee", "\xe2\xab\xa4\x00", 0, 0 }, { "DoubleLongLeftArrow", "\xe2\x9f\xb8\x00", 0, 0 }, { "DoubleLongLeftRightArrow", "\xe2\x9f\xba\x00", 0, 0 }, { "DoubleLongRightArrow", "\xe2\x9f\xb9\x00", 0, 0 }, { "DoubleRightArrow", "\xe2\x87\x92\x00", 0, 0 }, { "DoubleRightTee", "\xe2\x8a\xa8\x00", 0, 0 }, { "DoubleUpArrow", "\xe2\x87\x91\x00", 0, 0 }, { "DoubleUpDownArrow", "\xe2\x87\x95\x00", 0, 0 }, { "DoubleVerticalBar", "\xe2\x88\xa5\x00", 0, 0 }, { "DownArrow", "\xe2\x86\x93\x00", 0, 0 }, { "Downarrow", "\xe2\x87\x93\x00", 0, 0 }, { "downarrow", "\xe2\x86\x93\x00", 0, 0 }, { "DownArrowBar", "\xe2\xa4\x93\x00", 0, 0 }, { "DownArrowUpArrow", "\xe2\x87\xb5\x00", 0, 0 }, { "DownBreve", "\xcc\x91\x00", 0, 0 }, { "downdownarrows", "\xe2\x87\x8a\x00", 0, 0 }, { "downharpoonleft", "\xe2\x87\x83\x00", 0, 0 }, { "downharpoonright", "\xe2\x87\x82\x00", 0, 0 }, { "DownLeftRightVector", "\xe2\xa5\x90\x00", 0, 0 }, { "DownLeftTeeVector", "\xe2\xa5\x9e\x00", 0, 0 }, { "DownLeftVector", "\xe2\x86\xbd\x00", 0, 0 }, { "DownLeftVectorBar", "\xe2\xa5\x96\x00", 0, 0 }, { "DownRightTeeVector", "\xe2\xa5\x9f\x00", 0, 0 }, { "DownRightVector", "\xe2\x87\x81\x00", 0, 0 }, { "DownRightVectorBar", "\xe2\xa5\x97\x00", 0, 0 }, { "DownTee", "\xe2\x8a\xa4\x00", 0, 0 }, { "DownTeeArrow", "\xe2\x86\xa7\x00", 0, 0 }, { "drbkarow", "\xe2\xa4\x90\x00", 0, 0 }, { "drcorn", "\xe2\x8c\x9f\x00", 0, 0 }, { "drcrop", "\xe2\x8c\x8c\x00", 0, 0 }, { "Dscr", "\xf0\x9d\x92\x9f\x00", 0, 0 }, { "dscr", "\xf0\x9d\x92\xb9\x00", 0, 0 }, { "DScy", "\xd0\x85\x00", 0, 0 }, { "dscy", "\xd1\x95\x00", 0, 0 }, { "dsol", "\xe2\xa7\xb6\x00", 0, 0 }, { "Dstrok", "\xc4\x90\x00", 0, 0 }, { "dstrok", "\xc4\x91\x00", 0, 0 }, { "dtdot", "\xe2\x8b\xb1\x00", 0, 0 }, { "dtri", "\xe2\x96\xbf\x00", 0, 0 }, { "dtrif", "\xe2\x96\xbe\x00", 0, 0 }, { "duarr", "\xe2\x87\xb5\x00", 0, 0 }, { "duhar", "\xe2\xa5\xaf\x00", 0, 0 }, { "dwangle", "\xe2\xa6\xa6\x00", 0, 0 }, { "DZcy", "\xd0\x8f\x00", 0, 0 }, { "dzcy", "\xd1\x9f\x00", 0, 0 }, { "dzigrarr", "\xe2\x9f\xbf\x00", 0, 0 }, { "Eacute", "\xc3\x89\x00", 0, 0 }, { "eacute", "\xc3\xa9\x00", 0, 0 }, { "easter", "\xe2\xa9\xae\x00", 0, 0 }, { "Ecaron", "\xc4\x9a\x00", 0, 0 }, { "ecaron", "\xc4\x9b\x00", 0, 0 }, { "ecir", "\xe2\x89\x96\x00", 0, 0 }, { "Ecirc", "\xc3\x8a\x00", 0, 0 }, { "ecirc", "\xc3\xaa\x00", 0, 0 }, { "ecolon", "\xe2\x89\x95\x00", 0, 0 }, { "Ecy", "\xd0\xad\x00", 0, 0 }, { "ecy", "\xd1\x8d\x00", 0, 0 }, { "eDDot", "\xe2\xa9\xb7\x00", 0, 0 }, { "Edot", "\xc4\x96\x00", 0, 0 }, { "eDot", "\xe2\x89\x91\x00", 0, 0 }, { "edot", "\xc4\x97\x00", 0, 0 }, { "ee", "\xe2\x85\x87\x00", 0, 0 }, { "efDot", "\xe2\x89\x92\x00", 0, 0 }, { "Efr", "\xf0\x9d\x94\x88\x00", 0, 0 }, { "efr", "\xf0\x9d\x94\xa2\x00", 0, 0 }, { "eg", "\xe2\xaa\x9a\x00", 0, 0 }, { "Egrave", "\xc3\x88\x00", 0, 0 }, { "egrave", "\xc3\xa8\x00", 0, 0 }, { "egs", "\xe2\xaa\x96\x00", 0, 0 }, { "egsdot", "\xe2\xaa\x98\x00", 0, 0 }, { "el", "\xe2\xaa\x99\x00", 0, 0 }, { "Element", "\xe2\x88\x88\x00", 0, 0 }, { "elinters", "\xef\xbf\xbd\x00", 0, 0 }, { "ell", "\xe2\x84\x93\x00", 0, 0 }, { "els", "\xe2\xaa\x95\x00", 0, 0 }, { "elsdot", "\xe2\xaa\x97\x00", 0, 0 }, { "Emacr", "\xc4\x92\x00", 0, 0 }, { "emacr", "\xc4\x93\x00", 0, 0 }, { "empty", "\xe2\x88\x85\x00", 0, 0 }, { "emptyset", "\xe2\x88\x85\x00", 0, 0 }, { "EmptySmallSquare", "\xe2\x97\xbb\x00", 0, 0 }, { "emptyv", "\xe2\x88\x85\x00", 0, 0 }, { "EmptyVerySmallSquare", "\xe2\x96\xab\x00", 0, 0 }, { "emsp", "\xe2\x80\x83\x00", 0, 0 }, { "emsp13", "\xe2\x80\x84\x00", 0, 0 }, { "emsp14", "\xe2\x80\x85\x00", 0, 0 }, { "ENG", "\xc5\x8a\x00", 0, 0 }, { "eng", "\xc5\x8b\x00", 0, 0 }, { "ensp", "\xe2\x80\x82\x00", 0, 0 }, { "Eogon", "\xc4\x98\x00", 0, 0 }, { "eogon", "\xc4\x99\x00", 0, 0 }, { "Eopf", "\xf0\x9d\x94\xbc\x00", 0, 0 }, { "eopf", "\xf0\x9d\x95\x96\x00", 0, 0 }, { "epar", "\xe2\x8b\x95\x00", 0, 0 }, { "eparsl", "\xe2\xa7\xa3\x00", 0, 0 }, { "eplus", "\xe2\xa9\xb1\x00", 0, 0 }, { "epsi", "\xcf\xb5\x00", 0, 0 }, { "epsiv", "\xce\xb5\x00", 0, 0 }, { "eqcirc", "\xe2\x89\x96\x00", 0, 0 }, { "eqcolon", "\xe2\x89\x95\x00", 0, 0 }, { "eqsim", "\xe2\x89\x82\x00", 0, 0 }, { "eqslantgtr", "\xe2\xaa\x96\x00", 0, 0 }, { "eqslantless", "\xe2\xaa\x95\x00", 0, 0 }, { "Equal", "\xe2\xa9\xb5\x00", 0, 0 }, { "equals", "\x3d\x00", 0, 0 }, { "EqualTilde", "\xe2\x89\x82\x00", 0, 0 }, { "equest", "\xe2\x89\x9f\x00", 0, 0 }, { "Equilibrium", "\xe2\x87\x8c\x00", 0, 0 }, { "equiv", "\xe2\x89\xa1\x00", 0, 0 }, { "equivDD", "\xe2\xa9\xb8\x00", 0, 0 }, { "eqvparsl", "\xe2\xa7\xa5\x00", 0, 0 }, { "erarr", "\xe2\xa5\xb1\x00", 0, 0 }, { "erDot", "\xe2\x89\x93\x00", 0, 0 }, { "Escr", "\xe2\x84\xb0\x00", 0, 0 }, { "escr", "\xe2\x84\xaf\x00", 0, 0 }, { "esdot", "\xe2\x89\x90\x00", 0, 0 }, { "Esim", "\xe2\xa9\xb3\x00", 0, 0 }, { "esim", "\xe2\x89\x82\x00", 0, 0 }, { "eta", "\xce\xb7\x00", 0, 0 }, { "ETH", "\xc3\x90\x00", 0, 0 }, { "eth", "\xc3\xb0\x00", 0, 0 }, { "Euml", "\xc3\x8b\x00", 0, 0 }, { "euml", "\xc3\xab\x00", 0, 0 }, { "excl", "\x21\x00", 0, 0 }, { "exist", "\xe2\x88\x83\x00", 0, 0 }, { "Exists", "\xe2\x88\x83\x00", 0, 0 }, { "expectation", "\xe2\x84\xb0\x00", 0, 0 }, { "ExponentialE", "\xe2\x85\x87\x00", 0, 0 }, { "exponentiale", "\xe2\x85\x87\x00", 0, 0 }, { "fallingdotseq", "\xe2\x89\x92\x00", 0, 0 }, { "Fcy", "\xd0\xa4\x00", 0, 0 }, { "fcy", "\xd1\x84\x00", 0, 0 }, { "female", "\xe2\x99\x80\x00", 0, 0 }, { "ffilig", "\xef\xac\x83\x00", 0, 0 }, { "fflig", "\xef\xac\x80\x00", 0, 0 }, { "ffllig", "\xef\xac\x84\x00", 0, 0 }, { "Ffr", "\xf0\x9d\x94\x89\x00", 0, 0 }, { "ffr", "\xf0\x9d\x94\xa3\x00", 0, 0 }, { "filig", "\xef\xac\x81\x00", 0, 0 }, { "FilledSmallSquare", "\xe2\x97\xbc\x00", 0, 0 }, { "FilledVerySmallSquare", "\xe2\x96\xaa\x00", 0, 0 }, { "flat", "\xe2\x99\xad\x00", 0, 0 }, { "fllig", "\xef\xac\x82\x00", 0, 0 }, { "fltns", "\xe2\x96\xb1\x00", 0, 0 }, { "fnof", "\xc6\x92\x00", 0, 0 }, { "Fopf", "\xf0\x9d\x94\xbd\x00", 0, 0 }, { "fopf", "\xf0\x9d\x95\x97\x00", 0, 0 }, { "ForAll", "\xe2\x88\x80\x00", 0, 0 }, { "forall", "\xe2\x88\x80\x00", 0, 0 }, { "fork", "\xe2\x8b\x94\x00", 0, 0 }, { "forkv", "\xe2\xab\x99\x00", 0, 0 }, { "Fouriertrf", "\xe2\x84\xb1\x00", 0, 0 }, { "fpartint", "\xe2\xa8\x8d\x00", 0, 0 }, { "frac12", "\xc2\xbd\x00", 0, 0 }, { "frac13", "\xe2\x85\x93\x00", 0, 0 }, { "frac14", "\xc2\xbc\x00", 0, 0 }, { "frac15", "\xe2\x85\x95\x00", 0, 0 }, { "frac16", "\xe2\x85\x99\x00", 0, 0 }, { "frac18", "\xe2\x85\x9b\x00", 0, 0 }, { "frac23", "\xe2\x85\x94\x00", 0, 0 }, { "frac25", "\xe2\x85\x96\x00", 0, 0 }, { "frac34", "\xc2\xbe\x00", 0, 0 }, { "frac35", "\xe2\x85\x97\x00", 0, 0 }, { "frac38", "\xe2\x85\x9c\x00", 0, 0 }, { "frac45", "\xe2\x85\x98\x00", 0, 0 }, { "frac56", "\xe2\x85\x9a\x00", 0, 0 }, { "frac58", "\xe2\x85\x9d\x00", 0, 0 }, { "frac78", "\xe2\x85\x9e\x00", 0, 0 }, { "frown", "\xe2\x8c\xa2\x00", 0, 0 }, { "Fscr", "\xe2\x84\xb1\x00", 0, 0 }, { "fscr", "\xf0\x9d\x92\xbb\x00", 0, 0 }, { "gacute", "\xc7\xb5\x00", 0, 0 }, { "Gamma", "\xce\x93\x00", 0, 0 }, { "gamma", "\xce\xb3\x00", 0, 0 }, { "Gammad", "\xcf\x9c\x00", 0, 0 }, { "gammad", "\xcf\x9d\x00", 0, 0 }, { "gap", "\xe2\xaa\x86\x00", 0, 0 }, { "Gbreve", "\xc4\x9e\x00", 0, 0 }, { "gbreve", "\xc4\x9f\x00", 0, 0 }, { "Gcedil", "\xc4\xa2\x00", 0, 0 }, { "Gcirc", "\xc4\x9c\x00", 0, 0 }, { "gcirc", "\xc4\x9d\x00", 0, 0 }, { "Gcy", "\xd0\x93\x00", 0, 0 }, { "gcy", "\xd0\xb3\x00", 0, 0 }, { "Gdot", "\xc4\xa0\x00", 0, 0 }, { "gdot", "\xc4\xa1\x00", 0, 0 }, { "gE", "\xe2\x89\xa7\x00", 0, 0 }, { "ge", "\xe2\x89\xa5\x00", 0, 0 }, { "gEl", "\xe2\xaa\x8c\x00", 0, 0 }, { "gel", "\xe2\x8b\x9b\x00", 0, 0 }, { "geq", "\xe2\x89\xa5\x00", 0, 0 }, { "geqq", "\xe2\x89\xa7\x00", 0, 0 }, { "geqslant", "\xe2\xa9\xbe\x00", 0, 0 }, { "ges", "\xe2\xa9\xbe\x00", 0, 0 }, { "gescc", "\xe2\xaa\xa9\x00", 0, 0 }, { "gesdot", "\xe2\xaa\x80\x00", 0, 0 }, { "gesdoto", "\xe2\xaa\x82\x00", 0, 0 }, { "gesdotol", "\xe2\xaa\x84\x00", 0, 0 }, { "gesl", "\xe2\x8b\x9b\xef\xb8\x80\x00", 0, 0 }, { "gesles", "\xe2\xaa\x94\x00", 0, 0 }, { "Gfr", "\xf0\x9d\x94\x8a\x00", 0, 0 }, { "gfr", "\xf0\x9d\x94\xa4\x00", 0, 0 }, { "Gg", "\xe2\x8b\x99\x00", 0, 0 }, { "gg", "\xe2\x89\xab\x00", 0, 0 }, { "ggg", "\xe2\x8b\x99\x00", 0, 0 }, { "gimel", "\xe2\x84\xb7\x00", 0, 0 }, { "GJcy", "\xd0\x83\x00", 0, 0 }, { "gjcy", "\xd1\x93\x00", 0, 0 }, { "gl", "\xe2\x89\xb7\x00", 0, 0 }, { "gla", "\xe2\xaa\xa5\x00", 0, 0 }, { "glE", "\xe2\xaa\x92\x00", 0, 0 }, { "glj", "\xe2\xaa\xa4\x00", 0, 0 }, { "gnap", "\xe2\xaa\x8a\x00", 0, 0 }, { "gnapprox", "\xe2\xaa\x8a\x00", 0, 0 }, { "gnE", "\xe2\x89\xa9\x00", 0, 0 }, { "gne", "\xe2\xaa\x88\x00", 0, 0 }, { "gneq", "\xe2\xaa\x88\x00", 0, 0 }, { "gneqq", "\xe2\x89\xa9\x00", 0, 0 }, { "gnsim", "\xe2\x8b\xa7\x00", 0, 0 }, { "Gopf", "\xf0\x9d\x94\xbe\x00", 0, 0 }, { "gopf", "\xf0\x9d\x95\x98\x00", 0, 0 }, { "grave", "\x60\x00", 0, 0 }, { "GreaterEqual", "\xe2\x89\xa5\x00", 0, 0 }, { "GreaterEqualLess", "\xe2\x8b\x9b\x00", 0, 0 }, { "GreaterFullEqual", "\xe2\x89\xa7\x00", 0, 0 }, { "GreaterGreater", "\xe2\xaa\xa2\x00", 0, 0 }, { "GreaterLess", "\xe2\x89\xb7\x00", 0, 0 }, { "GreaterSlantEqual", "\xe2\xa9\xbe\x00", 0, 0 }, { "GreaterTilde", "\xe2\x89\xb3\x00", 0, 0 }, { "Gscr", "\xf0\x9d\x92\xa2\x00", 0, 0 }, { "gscr", "\xe2\x84\x8a\x00", 0, 0 }, { "gsim", "\xe2\x89\xb3\x00", 0, 0 }, { "gsime", "\xe2\xaa\x8e\x00", 0, 0 }, { "gsiml", "\xe2\xaa\x90\x00", 0, 0 }, { "Gt", "\xe2\x89\xab\x00", 0, 0 }, { "gt", "\x3e\x00", 0, 0 }, { "gtcc", "\xe2\xaa\xa7\x00", 0, 0 }, { "gtcir", "\xe2\xa9\xba\x00", 0, 0 }, { "gtdot", "\xe2\x8b\x97\x00", 0, 0 }, { "gtlPar", "\xe2\xa6\x95\x00", 0, 0 }, { "gtquest", "\xe2\xa9\xbc\x00", 0, 0 }, { "gtrapprox", "\xe2\xaa\x86\x00", 0, 0 }, { "gtrarr", "\xe2\xa5\xb8\x00", 0, 0 }, { "gtrdot", "\xe2\x8b\x97\x00", 0, 0 }, { "gtreqless", "\xe2\x8b\x9b\x00", 0, 0 }, { "gtreqqless", "\xe2\xaa\x8c\x00", 0, 0 }, { "gtrless", "\xe2\x89\xb7\x00", 0, 0 }, { "gtrsim", "\xe2\x89\xb3\x00", 0, 0 }, { "gvertneqq", "\xe2\x89\xa9\xef\xb8\x80\x00", 0, 0 }, { "gvnE", "\xe2\x89\xa9\xef\xb8\x80\x00", 0, 0 }, { "Hacek", "\xcb\x87\x00", 0, 0 }, { "hairsp", "\xe2\x80\x8a\x00", 0, 0 }, { "half", "\xc2\xbd\x00", 0, 0 }, { "hamilt", "\xe2\x84\x8b\x00", 0, 0 }, { "HARDcy", "\xd0\xaa\x00", 0, 0 }, { "hardcy", "\xd1\x8a\x00", 0, 0 }, { "hArr", "\xe2\x87\x94\x00", 0, 0 }, { "harr", "\xe2\x86\x94\x00", 0, 0 }, { "harrcir", "\xe2\xa5\x88\x00", 0, 0 }, { "harrw", "\xe2\x86\xad\x00", 0, 0 }, { "Hat", "\x5e\x00", 0, 0 }, { "hbar", "\xe2\x84\x8f\x00", 0, 0 }, { "Hcirc", "\xc4\xa4\x00", 0, 0 }, { "hcirc", "\xc4\xa5\x00", 0, 0 }, { "hearts", "\xe2\x99\xa5\x00", 0, 0 }, { "heartsuit", "\xe2\x99\xa5\x00", 0, 0 }, { "hellip", "\xe2\x80\xa6\x00", 0, 0 }, { "hercon", "\xe2\x8a\xb9\x00", 0, 0 }, { "Hfr", "\xe2\x84\x8c\x00", 0, 0 }, { "hfr", "\xf0\x9d\x94\xa5\x00", 0, 0 }, { "HilbertSpace", "\xe2\x84\x8b\x00", 0, 0 }, { "hksearow", "\xe2\xa4\xa5\x00", 0, 0 }, { "hkswarow", "\xe2\xa4\xa6\x00", 0, 0 }, { "hoarr", "\xe2\x87\xbf\x00", 0, 0 }, { "homtht", "\xe2\x88\xbb\x00", 0, 0 }, { "hookleftarrow", "\xe2\x86\xa9\x00", 0, 0 }, { "hookrightarrow", "\xe2\x86\xaa\x00", 0, 0 }, { "Hopf", "\xe2\x84\x8d\x00", 0, 0 }, { "hopf", "\xf0\x9d\x95\x99\x00", 0, 0 }, { "horbar", "\xe2\x80\x95\x00", 0, 0 }, { "HorizontalLine", "\xe2\x94\x80\x00", 0, 0 }, { "Hscr", "\xe2\x84\x8b\x00", 0, 0 }, { "hscr", "\xf0\x9d\x92\xbd\x00", 0, 0 }, { "hslash", "\xe2\x84\x8f\x00", 0, 0 }, { "Hstrok", "\xc4\xa6\x00", 0, 0 }, { "hstrok", "\xc4\xa7\x00", 0, 0 }, { "HumpDownHump", "\xe2\x89\x8e\x00", 0, 0 }, { "HumpEqual", "\xe2\x89\x8f\x00", 0, 0 }, { "hybull", "\xe2\x81\x83\x00", 0, 0 }, { "hyphen", "\xe2\x80\x90\x00", 0, 0 }, { "Iacute", "\xc3\x8d\x00", 0, 0 }, { "iacute", "\xc3\xad\x00", 0, 0 }, { "ic", "\xe2\x81\xa3\x00", 0, 0 }, { "Icirc", "\xc3\x8e\x00", 0, 0 }, { "icirc", "\xc3\xae\x00", 0, 0 }, { "Icy", "\xd0\x98\x00", 0, 0 }, { "icy", "\xd0\xb8\x00", 0, 0 }, { "Idot", "\xc4\xb0\x00", 0, 0 }, { "IEcy", "\xd0\x95\x00", 0, 0 }, { "iecy", "\xd0\xb5\x00", 0, 0 }, { "iexcl", "\xc2\xa1\x00", 0, 0 }, { "iff", "\xe2\x87\x94\x00", 0, 0 }, { "Ifr", "\xe2\x84\x91\x00", 0, 0 }, { "ifr", "\xf0\x9d\x94\xa6\x00", 0, 0 }, { "Igrave", "\xc3\x8c\x00", 0, 0 }, { "igrave", "\xc3\xac\x00", 0, 0 }, { "ii", "\xe2\x85\x88\x00", 0, 0 }, { "iiiint", "\xe2\xa8\x8c\x00", 0, 0 }, { "iiint", "\xe2\x88\xad\x00", 0, 0 }, { "iinfin", "\xe2\xa7\x9c\x00", 0, 0 }, { "iiota", "\xe2\x84\xa9\x00", 0, 0 }, { "IJlig", "\xc4\xb2\x00", 0, 0 }, { "ijlig", "\xc4\xb3\x00", 0, 0 }, { "Im", "\xe2\x84\x91\x00", 0, 0 }, { "Imacr", "\xc4\xaa\x00", 0, 0 }, { "imacr", "\xc4\xab\x00", 0, 0 }, { "image", "\xe2\x84\x91\x00", 0, 0 }, { "ImaginaryI", "\xe2\x85\x88\x00", 0, 0 }, { "imagline", "\xe2\x84\x90\x00", 0, 0 }, { "imagpart", "\xe2\x84\x91\x00", 0, 0 }, { "imath", "\xc4\xb1\x00", 0, 0 }, { "imof", "\xe2\x8a\xb7\x00", 0, 0 }, { "imped", "\xc6\xb5\x00", 0, 0 }, { "Implies", "\xe2\x87\x92\x00", 0, 0 }, { "in", "\xe2\x88\x88\x00", 0, 0 }, { "incare", "\xe2\x84\x85\x00", 0, 0 }, { "infin", "\xe2\x88\x9e\x00", 0, 0 }, { "infintie", "\xe2\xa7\x9d\x00", 0, 0 }, { "inodot", "\xc4\xb1\x00", 0, 0 }, { "Int", "\xe2\x88\xac\x00", 0, 0 }, { "int", "\xe2\x88\xab\x00", 0, 0 }, { "intcal", "\xe2\x8a\xba\x00", 0, 0 }, { "integers", "\xe2\x84\xa4\x00", 0, 0 }, { "Integral", "\xe2\x88\xab\x00", 0, 0 }, { "intercal", "\xe2\x8a\xba\x00", 0, 0 }, { "Intersection", "\xe2\x8b\x82\x00", 0, 0 }, { "intlarhk", "\xe2\xa8\x97\x00", 0, 0 }, { "intprod", "\xe2\xa8\xbc\x00", 0, 0 }, { "InvisibleComma", "\xe2\x81\xa3\x00", 0, 0 }, { "InvisibleTimes", "\xe2\x81\xa2\x00", 0, 0 }, { "IOcy", "\xd0\x81\x00", 0, 0 }, { "iocy", "\xd1\x91\x00", 0, 0 }, { "Iogon", "\xc4\xae\x00", 0, 0 }, { "iogon", "\xc4\xaf\x00", 0, 0 }, { "Iopf", "\xf0\x9d\x95\x80\x00", 0, 0 }, { "iopf", "\xf0\x9d\x95\x9a\x00", 0, 0 }, { "iota", "\xce\xb9\x00", 0, 0 }, { "iprod", "\xe2\xa8\xbc\x00", 0, 0 }, { "iquest", "\xc2\xbf\x00", 0, 0 }, { "Iscr", "\xe2\x84\x90\x00", 0, 0 }, { "iscr", "\xf0\x9d\x92\xbe\x00", 0, 0 }, { "isin", "\xe2\x88\x88\x00", 0, 0 }, { "isindot", "\xe2\x8b\xb5\x00", 0, 0 }, { "isinE", "\xe2\x8b\xb9\x00", 0, 0 }, { "isins", "\xe2\x8b\xb4\x00", 0, 0 }, { "isinsv", "\xe2\x8b\xb3\x00", 0, 0 }, { "isinv", "\xe2\x88\x88\x00", 0, 0 }, { "it", "\xe2\x81\xa2\x00", 0, 0 }, { "Itilde", "\xc4\xa8\x00", 0, 0 }, { "itilde", "\xc4\xa9\x00", 0, 0 }, { "Iukcy", "\xd0\x86\x00", 0, 0 }, { "iukcy", "\xd1\x96\x00", 0, 0 }, { "Iuml", "\xc3\x8f\x00", 0, 0 }, { "iuml", "\xc3\xaf\x00", 0, 0 }, { "Jcirc", "\xc4\xb4\x00", 0, 0 }, { "jcirc", "\xc4\xb5\x00", 0, 0 }, { "Jcy", "\xd0\x99\x00", 0, 0 }, { "jcy", "\xd0\xb9\x00", 0, 0 }, { "Jfr", "\xf0\x9d\x94\x8d\x00", 0, 0 }, { "jfr", "\xf0\x9d\x94\xa7\x00", 0, 0 }, { "jmath", "\x6a\x00", 0, 0 }, { "Jopf", "\xf0\x9d\x95\x81\x00", 0, 0 }, { "jopf", "\xf0\x9d\x95\x9b\x00", 0, 0 }, { "Jscr", "\xf0\x9d\x92\xa5\x00", 0, 0 }, { "jscr", "\xf0\x9d\x92\xbf\x00", 0, 0 }, { "Jsercy", "\xd0\x88\x00", 0, 0 }, { "jsercy", "\xd1\x98\x00", 0, 0 }, { "Jukcy", "\xd0\x84\x00", 0, 0 }, { "jukcy", "\xd1\x94\x00", 0, 0 }, { "kappa", "\xce\xba\x00", 0, 0 }, { "kappav", "\xcf\xb0\x00", 0, 0 }, { "Kcedil", "\xc4\xb6\x00", 0, 0 }, { "kcedil", "\xc4\xb7\x00", 0, 0 }, { "Kcy", "\xd0\x9a\x00", 0, 0 }, { "kcy", "\xd0\xba\x00", 0, 0 }, { "Kfr", "\xf0\x9d\x94\x8e\x00", 0, 0 }, { "kfr", "\xf0\x9d\x94\xa8\x00", 0, 0 }, { "kgreen", "\xc4\xb8\x00", 0, 0 }, { "KHcy", "\xd0\xa5\x00", 0, 0 }, { "khcy", "\xd1\x85\x00", 0, 0 }, { "KJcy", "\xd0\x8c\x00", 0, 0 }, { "kjcy", "\xd1\x9c\x00", 0, 0 }, { "Kopf", "\xf0\x9d\x95\x82\x00", 0, 0 }, { "kopf", "\xf0\x9d\x95\x9c\x00", 0, 0 }, { "Kscr", "\xf0\x9d\x92\xa6\x00", 0, 0 }, { "kscr", "\xf0\x9d\x93\x80\x00", 0, 0 }, { "lAarr", "\xe2\x87\x9a\x00", 0, 0 }, { "Lacute", "\xc4\xb9\x00", 0, 0 }, { "lacute", "\xc4\xba\x00", 0, 0 }, { "laemptyv", "\xe2\xa6\xb4\x00", 0, 0 }, { "lagran", "\xe2\x84\x92\x00", 0, 0 }, { "Lambda", "\xce\x9b\x00", 0, 0 }, { "lambda", "\xce\xbb\x00", 0, 0 }, { "Lang", "\xe3\x80\x8a\x00", 0, 0 }, { "lang", "\xe2\x8c\xa9\x00", 0, 0 }, { "langd", "\xe2\xa6\x91\x00", 0, 0 }, { "langle", "\xe2\x8c\xa9\x00", 0, 0 }, { "lap", "\xe2\xaa\x85\x00", 0, 0 }, { "Laplacetrf", "\xe2\x84\x92\x00", 0, 0 }, { "laquo", "\xc2\xab\x00", 0, 0 }, { "Larr", "\xe2\x86\x9e\x00", 0, 0 }, { "lArr", "\xe2\x87\x90\x00", 0, 0 }, { "larr", "\xe2\x86\x90\x00", 0, 0 }, { "larrb", "\xe2\x87\xa4\x00", 0, 0 }, { "larrbfs", "\xe2\xa4\x9f\x00", 0, 0 }, { "larrfs", "\xe2\xa4\x9d\x00", 0, 0 }, { "larrhk", "\xe2\x86\xa9\x00", 0, 0 }, { "larrlp", "\xe2\x86\xab\x00", 0, 0 }, { "larrpl", "\xe2\xa4\xb9\x00", 0, 0 }, { "larrsim", "\xe2\xa5\xb3\x00", 0, 0 }, { "larrtl", "\xe2\x86\xa2\x00", 0, 0 }, { "lat", "\xe2\xaa\xab\x00", 0, 0 }, { "lAtail", "\xe2\xa4\x9b\x00", 0, 0 }, { "latail", "\xe2\xa4\x99\x00", 0, 0 }, { "late", "\xe2\xaa\xad\x00", 0, 0 }, { "lates", "\xe2\xaa\xad\xef\xb8\x80\x00", 0, 0 }, { "lBarr", "\xe2\xa4\x8e\x00", 0, 0 }, { "lbarr", "\xe2\xa4\x8c\x00", 0, 0 }, { "lbbrk", "\xe3\x80\x94\x00", 0, 0 }, { "lbrace", "\x7b\x00", 0, 0 }, { "lbrack", "\x5b\x00", 0, 0 }, { "lbrke", "\xe2\xa6\x8b\x00", 0, 0 }, { "lbrksld", "\xe2\xa6\x8f\x00", 0, 0 }, { "lbrkslu", "\xe2\xa6\x8d\x00", 0, 0 }, { "Lcaron", "\xc4\xbd\x00", 0, 0 }, { "lcaron", "\xc4\xbe\x00", 0, 0 }, { "Lcedil", "\xc4\xbb\x00", 0, 0 }, { "lcedil", "\xc4\xbc\x00", 0, 0 }, { "lceil", "\xe2\x8c\x88\x00", 0, 0 }, { "lcub", "\x7b\x00", 0, 0 }, { "Lcy", "\xd0\x9b\x00", 0, 0 }, { "lcy", "\xd0\xbb\x00", 0, 0 }, { "ldca", "\xe2\xa4\xb6\x00", 0, 0 }, { "ldquo", "\xe2\x80\x9c\x00", 0, 0 }, { "ldquor", "\xe2\x80\x9e\x00", 0, 0 }, { "ldrdhar", "\xe2\xa5\xa7\x00", 0, 0 }, { "ldrushar", "\xe2\xa5\x8b\x00", 0, 0 }, { "ldsh", "\xe2\x86\xb2\x00", 0, 0 }, { "lE", "\xe2\x89\xa6\x00", 0, 0 }, { "le", "\xe2\x89\xa4\x00", 0, 0 }, { "LeftAngleBracket", "\xe2\x8c\xa9\x00", 0, 0 }, { "LeftArrow", "\xe2\x86\x90\x00", 0, 0 }, { "Leftarrow", "\xe2\x87\x90\x00", 0, 0 }, { "leftarrow", "\xe2\x86\x90\x00", 0, 0 }, { "LeftArrowBar", "\xe2\x87\xa4\x00", 0, 0 }, { "LeftArrowRightArrow", "\xe2\x87\x86\x00", 0, 0 }, { "leftarrowtail", "\xe2\x86\xa2\x00", 0, 0 }, { "LeftCeiling", "\xe2\x8c\x88\x00", 0, 0 }, { "LeftDoubleBracket", "\xe3\x80\x9a\x00", 0, 0 }, { "LeftDownTeeVector", "\xe2\xa5\xa1\x00", 0, 0 }, { "LeftDownVector", "\xe2\x87\x83\x00", 0, 0 }, { "LeftDownVectorBar", "\xe2\xa5\x99\x00", 0, 0 }, { "LeftFloor", "\xe2\x8c\x8a\x00", 0, 0 }, { "leftharpoondown", "\xe2\x86\xbd\x00", 0, 0 }, { "leftharpoonup", "\xe2\x86\xbc\x00", 0, 0 }, { "leftleftarrows", "\xe2\x87\x87\x00", 0, 0 }, { "LeftRightArrow", "\xe2\x86\x94\x00", 0, 0 }, { "Leftrightarrow", "\xe2\x87\x94\x00", 0, 0 }, { "leftrightarrow", "\xe2\x86\x94\x00", 0, 0 }, { "leftrightarrows", "\xe2\x87\x86\x00", 0, 0 }, { "leftrightharpoons", "\xe2\x87\x8b\x00", 0, 0 }, { "leftrightsquigarrow", "\xe2\x86\xad\x00", 0, 0 }, { "LeftRightVector", "\xe2\xa5\x8e\x00", 0, 0 }, { "LeftTee", "\xe2\x8a\xa3\x00", 0, 0 }, { "LeftTeeArrow", "\xe2\x86\xa4\x00", 0, 0 }, { "LeftTeeVector", "\xe2\xa5\x9a\x00", 0, 0 }, { "leftthreetimes", "\xe2\x8b\x8b\x00", 0, 0 }, { "LeftTriangle", "\xe2\x8a\xb2\x00", 0, 0 }, { "LeftTriangleBar", "\xe2\xa7\x8f\x00", 0, 0 }, { "LeftTriangleEqual", "\xe2\x8a\xb4\x00", 0, 0 }, { "LeftUpDownVector", "\xe2\xa5\x91\x00", 0, 0 }, { "LeftUpTeeVector", "\xe2\xa5\xa0\x00", 0, 0 }, { "LeftUpVector", "\xe2\x86\xbf\x00", 0, 0 }, { "LeftUpVectorBar", "\xe2\xa5\x98\x00", 0, 0 }, { "LeftVector", "\xe2\x86\xbc\x00", 0, 0 }, { "LeftVectorBar", "\xe2\xa5\x92\x00", 0, 0 }, { "lEg", "\xe2\xaa\x8b\x00", 0, 0 }, { "leg", "\xe2\x8b\x9a\x00", 0, 0 }, { "leq", "\xe2\x89\xa4\x00", 0, 0 }, { "leqq", "\xe2\x89\xa6\x00", 0, 0 }, { "leqslant", "\xe2\xa9\xbd\x00", 0, 0 }, { "les", "\xe2\xa9\xbd\x00", 0, 0 }, { "lescc", "\xe2\xaa\xa8\x00", 0, 0 }, { "lesdot", "\xe2\xa9\xbf\x00", 0, 0 }, { "lesdoto", "\xe2\xaa\x81\x00", 0, 0 }, { "lesdotor", "\xe2\xaa\x83\x00", 0, 0 }, { "lesg", "\xe2\x8b\x9a\xef\xb8\x80\x00", 0, 0 }, { "lesges", "\xe2\xaa\x93\x00", 0, 0 }, { "lessapprox", "\xe2\xaa\x85\x00", 0, 0 }, { "lessdot", "\xe2\x8b\x96\x00", 0, 0 }, { "lesseqgtr", "\xe2\x8b\x9a\x00", 0, 0 }, { "lesseqqgtr", "\xe2\xaa\x8b\x00", 0, 0 }, { "LessEqualGreater", "\xe2\x8b\x9a\x00", 0, 0 }, { "LessFullEqual", "\xe2\x89\xa6\x00", 0, 0 }, { "LessGreater", "\xe2\x89\xb6\x00", 0, 0 }, { "lessgtr", "\xe2\x89\xb6\x00", 0, 0 }, { "LessLess", "\xe2\xaa\xa1\x00", 0, 0 }, { "lesssim", "\xe2\x89\xb2\x00", 0, 0 }, { "LessSlantEqual", "\xe2\xa9\xbd\x00", 0, 0 }, { "LessTilde", "\xe2\x89\xb2\x00", 0, 0 }, { "lfisht", "\xe2\xa5\xbc\x00", 0, 0 }, { "lfloor", "\xe2\x8c\x8a\x00", 0, 0 }, { "Lfr", "\xf0\x9d\x94\x8f\x00", 0, 0 }, { "lfr", "\xf0\x9d\x94\xa9\x00", 0, 0 }, { "lg", "\xe2\x89\xb6\x00", 0, 0 }, { "lgE", "\xe2\xaa\x91\x00", 0, 0 }, { "lHar", "\xe2\xa5\xa2\x00", 0, 0 }, { "lhard", "\xe2\x86\xbd\x00", 0, 0 }, { "lharu", "\xe2\x86\xbc\x00", 0, 0 }, { "lharul", "\xe2\xa5\xaa\x00", 0, 0 }, { "lhblk", "\xe2\x96\x84\x00", 0, 0 }, { "LJcy", "\xd0\x89\x00", 0, 0 }, { "ljcy", "\xd1\x99\x00", 0, 0 }, { "Ll", "\xe2\x8b\x98\x00", 0, 0 }, { "ll", "\xe2\x89\xaa\x00", 0, 0 }, { "llarr", "\xe2\x87\x87\x00", 0, 0 }, { "llcorner", "\xe2\x8c\x9e\x00", 0, 0 }, { "Lleftarrow", "\xe2\x87\x9a\x00", 0, 0 }, { "llhard", "\xe2\xa5\xab\x00", 0, 0 }, { "lltri", "\xe2\x97\xba\x00", 0, 0 }, { "Lmidot", "\xc4\xbf\x00", 0, 0 }, { "lmidot", "\xc5\x80\x00", 0, 0 }, { "lmoust", "\xe2\x8e\xb0\x00", 0, 0 }, { "lmoustache", "\xe2\x8e\xb0\x00", 0, 0 }, { "lnap", "\xe2\xaa\x89\x00", 0, 0 }, { "lnapprox", "\xe2\xaa\x89\x00", 0, 0 }, { "lnE", "\xe2\x89\xa8\x00", 0, 0 }, { "lne", "\xe2\xaa\x87\x00", 0, 0 }, { "lneq", "\xe2\xaa\x87\x00", 0, 0 }, { "lneqq", "\xe2\x89\xa8\x00", 0, 0 }, { "lnsim", "\xe2\x8b\xa6\x00", 0, 0 }, { "loang", "\xe3\x80\x98\x00", 0, 0 }, { "loarr", "\xe2\x87\xbd\x00", 0, 0 }, { "lobrk", "\xe3\x80\x9a\x00", 0, 0 }, { "LongLeftArrow", "\xe2\x9f\xb5\x00", 0, 0 }, { "Longleftarrow", "\xe2\x9f\xb8\x00", 0, 0 }, { "longleftarrow", "\xe2\x9f\xb5\x00", 0, 0 }, { "LongLeftRightArrow", "\xe2\x9f\xb7\x00", 0, 0 }, { "Longleftrightarrow", "\xe2\x9f\xba\x00", 0, 0 }, { "longleftrightarrow", "\xe2\x9f\xb7\x00", 0, 0 }, { "longmapsto", "\xe2\x9f\xbc\x00", 0, 0 }, { "LongRightArrow", "\xe2\x9f\xb6\x00", 0, 0 }, { "Longrightarrow", "\xe2\x9f\xb9\x00", 0, 0 }, { "longrightarrow", "\xe2\x9f\xb6\x00", 0, 0 }, { "looparrowleft", "\xe2\x86\xab\x00", 0, 0 }, { "looparrowright", "\xe2\x86\xac\x00", 0, 0 }, { "lopar", "\xe2\xa6\x85\x00", 0, 0 }, { "Lopf", "\xf0\x9d\x95\x83\x00", 0, 0 }, { "lopf", "\xf0\x9d\x95\x9d\x00", 0, 0 }, { "loplus", "\xe2\xa8\xad\x00", 0, 0 }, { "lotimes", "\xe2\xa8\xb4\x00", 0, 0 }, { "lowast", "\xe2\x88\x97\x00", 0, 0 }, { "lowbar", "\x5f\x00", 0, 0 }, { "LowerLeftArrow", "\xe2\x86\x99\x00", 0, 0 }, { "LowerRightArrow", "\xe2\x86\x98\x00", 0, 0 }, { "loz", "\xe2\x97\x8a\x00", 0, 0 }, { "lozenge", "\xe2\x97\x8a\x00", 0, 0 }, { "lozf", "\xe2\xa7\xab\x00", 0, 0 }, { "lpar", "\x28\x00", 0, 0 }, { "lparlt", "\xe2\xa6\x93\x00", 0, 0 }, { "lrarr", "\xe2\x87\x86\x00", 0, 0 }, { "lrcorner", "\xe2\x8c\x9f\x00", 0, 0 }, { "lrhar", "\xe2\x87\x8b\x00", 0, 0 }, { "lrhard", "\xe2\xa5\xad\x00", 0, 0 }, { "lrtri", "\xe2\x8a\xbf\x00", 0, 0 }, { "Lscr", "\xe2\x84\x92\x00", 0, 0 }, { "lscr", "\xf0\x9d\x93\x81\x00", 0, 0 }, { "Lsh", "\xe2\x86\xb0\x00", 0, 0 }, { "lsh", "\xe2\x86\xb0\x00", 0, 0 }, { "lsim", "\xe2\x89\xb2\x00", 0, 0 }, { "lsime", "\xe2\xaa\x8d\x00", 0, 0 }, { "lsimg", "\xe2\xaa\x8f\x00", 0, 0 }, { "lsqb", "\x5b\x00", 0, 0 }, { "lsquo", "\xe2\x80\x98\x00", 0, 0 }, { "lsquor", "\xe2\x80\x9a\x00", 0, 0 }, { "Lstrok", "\xc5\x81\x00", 0, 0 }, { "lstrok", "\xc5\x82\x00", 0, 0 }, { "Lt", "\xe2\x89\xaa\x00", 0, 0 }, { "lt", "\x3c\x00", 0, 0 }, { "ltcc", "\xe2\xaa\xa6\x00", 0, 0 }, { "ltcir", "\xe2\xa9\xb9\x00", 0, 0 }, { "ltdot", "\xe2\x8b\x96\x00", 0, 0 }, { "lthree", "\xe2\x8b\x8b\x00", 0, 0 }, { "ltimes", "\xe2\x8b\x89\x00", 0, 0 }, { "ltlarr", "\xe2\xa5\xb6\x00", 0, 0 }, { "ltquest", "\xe2\xa9\xbb\x00", 0, 0 }, { "ltri", "\xe2\x97\x83\x00", 0, 0 }, { "ltrie", "\xe2\x8a\xb4\x00", 0, 0 }, { "ltrif", "\xe2\x97\x82\x00", 0, 0 }, { "ltrPar", "\xe2\xa6\x96\x00", 0, 0 }, { "lurdshar", "\xe2\xa5\x8a\x00", 0, 0 }, { "luruhar", "\xe2\xa5\xa6\x00", 0, 0 }, { "lvertneqq", "\xe2\x89\xa8\xef\xb8\x80\x00", 0, 0 }, { "lvnE", "\xe2\x89\xa8\xef\xb8\x80\x00", 0, 0 }, { "macr", "\xc2\xaf\x00", 0, 0 }, { "male", "\xe2\x99\x82\x00", 0, 0 }, { "malt", "\xe2\x9c\xa0\x00", 0, 0 }, { "maltese", "\xe2\x9c\xa0\x00", 0, 0 }, { "Map", "\xe2\xa4\x85\x00", 0, 0 }, { "map", "\xe2\x86\xa6\x00", 0, 0 }, { "mapsto", "\xe2\x86\xa6\x00", 0, 0 }, { "mapstodown", "\xe2\x86\xa7\x00", 0, 0 }, { "mapstoleft", "\xe2\x86\xa4\x00", 0, 0 }, { "mapstoup", "\xe2\x86\xa5\x00", 0, 0 }, { "marker", "\xe2\x96\xae\x00", 0, 0 }, { "mcomma", "\xe2\xa8\xa9\x00", 0, 0 }, { "Mcy", "\xd0\x9c\x00", 0, 0 }, { "mcy", "\xd0\xbc\x00", 0, 0 }, { "mdash", "\xe2\x80\x94\x00", 0, 0 }, { "mDDot", "\xe2\x88\xba\x00", 0, 0 }, { "measuredangle", "\xe2\x88\xa1\x00", 0, 0 }, { "MediumSpace", "\xe2\x81\x9f\x00", 0, 0 }, { "Mellintrf", "\xe2\x84\xb3\x00", 0, 0 }, { "Mfr", "\xf0\x9d\x94\x90\x00", 0, 0 }, { "mfr", "\xf0\x9d\x94\xaa\x00", 0, 0 }, { "mho", "\xe2\x84\xa7\x00", 0, 0 }, { "micro", "\xc2\xb5\x00", 0, 0 }, { "mid", "\xe2\x88\xa3\x00", 0, 0 }, { "midast", "\x2a\x00", 0, 0 }, { "midcir", "\xe2\xab\xb0\x00", 0, 0 }, { "middot", "\xc2\xb7\x00", 0, 0 }, { "minus", "\xe2\x88\x92\x00", 0, 0 }, { "minusb", "\xe2\x8a\x9f\x00", 0, 0 }, { "minusd", "\xe2\x88\xb8\x00", 0, 0 }, { "minusdu", "\xe2\xa8\xaa\x00", 0, 0 }, { "MinusPlus", "\xe2\x88\x93\x00", 0, 0 }, { "mlcp", "\xe2\xab\x9b\x00", 0, 0 }, { "mldr", "\xe2\x80\xa6\x00", 0, 0 }, { "mnplus", "\xe2\x88\x93\x00", 0, 0 }, { "models", "\xe2\x8a\xa7\x00", 0, 0 }, { "Mopf", "\xf0\x9d\x95\x84\x00", 0, 0 }, { "mopf", "\xf0\x9d\x95\x9e\x00", 0, 0 }, { "mp", "\xe2\x88\x93\x00", 0, 0 }, { "Mscr", "\xe2\x84\xb3\x00", 0, 0 }, { "mscr", "\xf0\x9d\x93\x82\x00", 0, 0 }, { "mstpos", "\xe2\x88\xbe\x00", 0, 0 }, { "mu", "\xce\xbc\x00", 0, 0 }, { "multimap", "\xe2\x8a\xb8\x00", 0, 0 }, { "mumap", "\xe2\x8a\xb8\x00", 0, 0 }, { "nabla", "\xe2\x88\x87\x00", 0, 0 }, { "Nacute", "\xc5\x83\x00", 0, 0 }, { "nacute", "\xc5\x84\x00", 0, 0 }, { "nang", "\xe2\x88\xa0\xe2\x83\x92\x00", 0, 0 }, { "nap", "\xe2\x89\x89\x00", 0, 0 }, { "napE", "\xe2\xa9\xb0\xcc\xb8\x00", 0, 0 }, { "napid", "\xe2\x89\x8b\xcc\xb8\x00", 0, 0 }, { "napos", "\xc5\x89\x00", 0, 0 }, { "napprox", "\xe2\x89\x89\x00", 0, 0 }, { "natur", "\xe2\x99\xae\x00", 0, 0 }, { "natural", "\xe2\x99\xae\x00", 0, 0 }, { "naturals", "\xe2\x84\x95\x00", 0, 0 }, { "nbsp", "\xc2\xa0\x00", 0, 0 }, { "nbump", "\xe2\x89\x8e\xcc\xb8\x00", 0, 0 }, { "nbumpe", "\xe2\x89\x8f\xcc\xb8\x00", 0, 0 }, { "ncap", "\xe2\xa9\x83\x00", 0, 0 }, { "Ncaron", "\xc5\x87\x00", 0, 0 }, { "ncaron", "\xc5\x88\x00", 0, 0 }, { "Ncedil", "\xc5\x85\x00", 0, 0 }, { "ncedil", "\xc5\x86\x00", 0, 0 }, { "ncong", "\xe2\x89\x87\x00", 0, 0 }, { "ncongdot", "\xe2\xa9\xad\xcc\xb8\x00", 0, 0 }, { "ncup", "\xe2\xa9\x82\x00", 0, 0 }, { "Ncy", "\xd0\x9d\x00", 0, 0 }, { "ncy", "\xd0\xbd\x00", 0, 0 }, { "ndash", "\xe2\x80\x93\x00", 0, 0 }, { "ne", "\xe2\x89\xa0\x00", 0, 0 }, { "nearhk", "\xe2\xa4\xa4\x00", 0, 0 }, { "neArr", "\xe2\x87\x97\x00", 0, 0 }, { "nearr", "\xe2\x86\x97\x00", 0, 0 }, { "nearrow", "\xe2\x86\x97\x00", 0, 0 }, { "nedot", "\xe2\x89\x90\xcc\xb8\x00", 0, 0 }, { "NegativeMediumSpace", "\xe2\x80\x8b\x00", 0, 0 }, { "NegativeThickSpace", "\xe2\x80\x8b\x00", 0, 0 }, { "NegativeThinSpace", "\xe2\x80\x8b\x00", 0, 0 }, { "NegativeVeryThinSpace", "\xe2\x80\x8b\x00", 0, 0 }, { "nequiv", "\xe2\x89\xa2\x00", 0, 0 }, { "nesear", "\xe2\xa4\xa8\x00", 0, 0 }, { "nesim", "\xe2\x89\x82\xcc\xb8\x00", 0, 0 }, { "NestedGreaterGreater", "\xe2\x89\xab\x00", 0, 0 }, { "NestedLessLess", "\xe2\x89\xaa\x00", 0, 0 }, { "nexist", "\xe2\x88\x84\x00", 0, 0 }, { "nexists", "\xe2\x88\x84\x00", 0, 0 }, { "Nfr", "\xf0\x9d\x94\x91\x00", 0, 0 }, { "nfr", "\xf0\x9d\x94\xab\x00", 0, 0 }, { "ngE", "\xe2\x89\xa7\xcc\xb8\x00", 0, 0 }, { "nge", "\xe2\x89\xb1\x00", 0, 0 }, { "ngeq", "\xe2\x89\xb1\x00", 0, 0 }, { "ngeqq", "\xe2\x89\xa7\xcc\xb8\x00", 0, 0 }, { "ngeqslant", "\xe2\xa9\xbe\xcc\xb8\x00", 0, 0 }, { "nges", "\xe2\xa9\xbe\xcc\xb8\x00", 0, 0 }, { "nGg", "\xe2\x8b\x99\xcc\xb8\x00", 0, 0 }, { "ngsim", "\xe2\x89\xb5\x00", 0, 0 }, { "nGt", "\xe2\x89\xab\xe2\x83\x92\x00", 0, 0 }, { "ngt", "\xe2\x89\xaf\x00", 0, 0 }, { "ngtr", "\xe2\x89\xaf\x00", 0, 0 }, { "nGtv", "\xe2\x89\xab\xcc\xb8\x00", 0, 0 }, { "nhArr", "\xe2\x87\x8e\x00", 0, 0 }, { "nharr", "\xe2\x86\xae\x00", 0, 0 }, { "nhpar", "\xe2\xab\xb2\x00", 0, 0 }, { "ni", "\xe2\x88\x8b\x00", 0, 0 }, { "nis", "\xe2\x8b\xbc\x00", 0, 0 }, { "nisd", "\xe2\x8b\xba\x00", 0, 0 }, { "niv", "\xe2\x88\x8b\x00", 0, 0 }, { "NJcy", "\xd0\x8a\x00", 0, 0 }, { "njcy", "\xd1\x9a\x00", 0, 0 }, { "nlArr", "\xe2\x87\x8d\x00", 0, 0 }, { "nlarr", "\xe2\x86\x9a\x00", 0, 0 }, { "nldr", "\xe2\x80\xa5\x00", 0, 0 }, { "nlE", "\xe2\x89\xa6\xcc\xb8\x00", 0, 0 }, { "nle", "\xe2\x89\xb0\x00", 0, 0 }, { "nLeftarrow", "\xe2\x87\x8d\x00", 0, 0 }, { "nleftarrow", "\xe2\x86\x9a\x00", 0, 0 }, { "nLeftrightarrow", "\xe2\x87\x8e\x00", 0, 0 }, { "nleftrightarrow", "\xe2\x86\xae\x00", 0, 0 }, { "nleq", "\xe2\x89\xb0\x00", 0, 0 }, { "nleqq", "\xe2\x89\xa6\xcc\xb8\x00", 0, 0 }, { "nleqslant", "\xe2\xa9\xbd\xcc\xb8\x00", 0, 0 }, { "nles", "\xe2\xa9\xbd\xcc\xb8\x00", 0, 0 }, { "nless", "\xe2\x89\xae\x00", 0, 0 }, { "nLl", "\xe2\x8b\x98\xcc\xb8\x00", 0, 0 }, { "nlsim", "\xe2\x89\xb4\x00", 0, 0 }, { "nLt", "\xe2\x89\xaa\xe2\x83\x92\x00", 0, 0 }, { "nlt", "\xe2\x89\xae\x00", 0, 0 }, { "nltri", "\xe2\x8b\xaa\x00", 0, 0 }, { "nltrie", "\xe2\x8b\xac\x00", 0, 0 }, { "nLtv", "\xe2\x89\xaa\xcc\xb8\x00", 0, 0 }, { "nmid", "\xe2\x88\xa4\x00", 0, 0 }, { "NoBreak", "\xe2\x81\xa0\x00", 0, 0 }, { "NonBreakingSpace", "\xc2\xa0\x00", 0, 0 }, { "Nopf", "\xe2\x84\x95\x00", 0, 0 }, { "nopf", "\xf0\x9d\x95\x9f\x00", 0, 0 }, { "Not", "\xe2\xab\xac\x00", 0, 0 }, { "not", "\xc2\xac\x00", 0, 0 }, { "NotCongruent", "\xe2\x89\xa2\x00", 0, 0 }, { "NotCupCap", "\xe2\x89\xad\x00", 0, 0 }, { "NotDoubleVerticalBar", "\xe2\x88\xa6\x00", 0, 0 }, { "NotElement", "\xe2\x88\x89\x00", 0, 0 }, { "NotEqual", "\xe2\x89\xa0\x00", 0, 0 }, { "NotEqualTilde", "\xe2\x89\x82\xcc\xb8\x00", 0, 0 }, { "NotExists", "\xe2\x88\x84\x00", 0, 0 }, { "NotGreater", "\xe2\x89\xaf\x00", 0, 0 }, { "NotGreaterEqual", "\xe2\x89\xb1\x00", 0, 0 }, { "NotGreaterFullEqual", "\xe2\x89\xa6\xcc\xb8\x00", 0, 0 }, { "NotGreaterGreater", "\xe2\x89\xab\xcc\xb8\x00", 0, 0 }, { "NotGreaterLess", "\xe2\x89\xb9\x00", 0, 0 }, { "NotGreaterSlantEqual", "\xe2\xa9\xbe\xcc\xb8\x00", 0, 0 }, { "NotGreaterTilde", "\xe2\x89\xb5\x00", 0, 0 }, { "NotHumpDownHump", "\xe2\x89\x8e\xcc\xb8\x00", 0, 0 }, { "NotHumpEqual", "\xe2\x89\x8f\xcc\xb8\x00", 0, 0 }, { "notin", "\xe2\x88\x89\x00", 0, 0 }, { "notindot", "\xe2\x8b\xb5\xcc\xb8\x00", 0, 0 }, { "notinE", "\xe2\x8b\xb9\xcc\xb8\x00", 0, 0 }, { "notinva", "\xe2\x88\x89\x00", 0, 0 }, { "notinvb", "\xe2\x8b\xb7\x00", 0, 0 }, { "notinvc", "\xe2\x8b\xb6\x00", 0, 0 }, { "NotLeftTriangle", "\xe2\x8b\xaa\x00", 0, 0 }, { "NotLeftTriangleBar", "\xe2\xa7\x8f\xcc\xb8\x00", 0, 0 }, { "NotLeftTriangleEqual", "\xe2\x8b\xac\x00", 0, 0 }, { "NotLess", "\xe2\x89\xae\x00", 0, 0 }, { "NotLessEqual", "\xe2\x89\xb0\x00", 0, 0 }, { "NotLessGreater", "\xe2\x89\xb8\x00", 0, 0 }, { "NotLessLess", "\xe2\x89\xaa\xcc\xb8\x00", 0, 0 }, { "NotLessSlantEqual", "\xe2\xa9\xbd\xcc\xb8\x00", 0, 0 }, { "NotLessTilde", "\xe2\x89\xb4\x00", 0, 0 }, { "NotNestedGreaterGreater", "\xe2\xaa\xa2\xcc\xb8\x00", 0, 0 }, { "NotNestedLessLess", "\xe2\xaa\xa1\xcc\xb8\x00", 0, 0 }, { "notni", "\xe2\x88\x8c\x00", 0, 0 }, { "notniva", "\xe2\x88\x8c\x00", 0, 0 }, { "notnivb", "\xe2\x8b\xbe\x00", 0, 0 }, { "notnivc", "\xe2\x8b\xbd\x00", 0, 0 }, { "NotPrecedes", "\xe2\x8a\x80\x00", 0, 0 }, { "NotPrecedesEqual", "\xe2\xaa\xaf\xcc\xb8\x00", 0, 0 }, { "NotPrecedesSlantEqual", "\xe2\x8b\xa0\x00", 0, 0 }, { "NotReverseElement", "\xe2\x88\x8c\x00", 0, 0 }, { "NotRightTriangle", "\xe2\x8b\xab\x00", 0, 0 }, { "NotRightTriangleBar", "\xe2\xa7\x90\xcc\xb8\x00", 0, 0 }, { "NotRightTriangleEqual", "\xe2\x8b\xad\x00", 0, 0 }, { "NotSquareSubset", "\xe2\x8a\x8f\xcc\xb8\x00", 0, 0 }, { "NotSquareSubsetEqual", "\xe2\x8b\xa2\x00", 0, 0 }, { "NotSquareSuperset", "\xe2\x8a\x90\xcc\xb8\x00", 0, 0 }, { "NotSquareSupersetEqual", "\xe2\x8b\xa3\x00", 0, 0 }, { "NotSubset", "\xe2\x8a\x82\xe2\x83\x92\x00", 0, 0 }, { "NotSubsetEqual", "\xe2\x8a\x88\x00", 0, 0 }, { "NotSucceeds", "\xe2\x8a\x81\x00", 0, 0 }, { "NotSucceedsEqual", "\xe2\xaa\xb0\xcc\xb8\x00", 0, 0 }, { "NotSucceedsSlantEqual", "\xe2\x8b\xa1\x00", 0, 0 }, { "NotSucceedsTilde", "\xe2\x89\xbf\xcc\xb8\x00", 0, 0 }, { "NotSuperset", "\xe2\x8a\x83\xe2\x83\x92\x00", 0, 0 }, { "NotSupersetEqual", "\xe2\x8a\x89\x00", 0, 0 }, { "NotTilde", "\xe2\x89\x81\x00", 0, 0 }, { "NotTildeEqual", "\xe2\x89\x84\x00", 0, 0 }, { "NotTildeFullEqual", "\xe2\x89\x87\x00", 0, 0 }, { "NotTildeTilde", "\xe2\x89\x89\x00", 0, 0 }, { "NotVerticalBar", "\xe2\x88\xa4\x00", 0, 0 }, { "npar", "\xe2\x88\xa6\x00", 0, 0 }, { "nparallel", "\xe2\x88\xa6\x00", 0, 0 }, { "nparsl", "\xe2\xab\xbd\xe2\x83\xa5\x00", 0, 0 }, { "npart", "\xe2\x88\x82\xcc\xb8\x00", 0, 0 }, { "npolint", "\xe2\xa8\x94\x00", 0, 0 }, { "npr", "\xe2\x8a\x80\x00", 0, 0 }, { "nprcue", "\xe2\x8b\xa0\x00", 0, 0 }, { "npre", "\xe2\xaa\xaf\xcc\xb8\x00", 0, 0 }, { "nprec", "\xe2\x8a\x80\x00", 0, 0 }, { "npreceq", "\xe2\xaa\xaf\xcc\xb8\x00", 0, 0 }, { "nrArr", "\xe2\x87\x8f\x00", 0, 0 }, { "nrarr", "\xe2\x86\x9b\x00", 0, 0 }, { "nrarrc", "\xe2\xa4\xb3\xcc\xb8\x00", 0, 0 }, { "nrarrw", "\xe2\x86\x9d\xcc\xb8\x00", 0, 0 }, { "nRightarrow", "\xe2\x87\x8f\x00", 0, 0 }, { "nrightarrow", "\xe2\x86\x9b\x00", 0, 0 }, { "nrtri", "\xe2\x8b\xab\x00", 0, 0 }, { "nrtrie", "\xe2\x8b\xad\x00", 0, 0 }, { "nsc", "\xe2\x8a\x81\x00", 0, 0 }, { "nsccue", "\xe2\x8b\xa1\x00", 0, 0 }, { "nsce", "\xe2\xaa\xb0\xcc\xb8\x00", 0, 0 }, { "Nscr", "\xf0\x9d\x92\xa9\x00", 0, 0 }, { "nscr", "\xf0\x9d\x93\x83\x00", 0, 0 }, { "nshortmid", "\xe2\x88\xa4\x00", 0, 0 }, { "nshortparallel", "\xe2\x88\xa6\x00", 0, 0 }, { "nsim", "\xe2\x89\x81\x00", 0, 0 }, { "nsime", "\xe2\x89\x84\x00", 0, 0 }, { "nsimeq", "\xe2\x89\x84\x00", 0, 0 }, { "nsmid", "\xe2\x88\xa4\x00", 0, 0 }, { "nspar", "\xe2\x88\xa6\x00", 0, 0 }, { "nsqsube", "\xe2\x8b\xa2\x00", 0, 0 }, { "nsqsupe", "\xe2\x8b\xa3\x00", 0, 0 }, { "nsub", "\xe2\x8a\x84\x00", 0, 0 }, { "nsubE", "\xe2\xab\x85\xcc\xb8\x00", 0, 0 }, { "nsube", "\xe2\x8a\x88\x00", 0, 0 }, { "nsubset", "\xe2\x8a\x82\xe2\x83\x92\x00", 0, 0 }, { "nsubseteq", "\xe2\x8a\x88\x00", 0, 0 }, { "nsubseteqq", "\xe2\xab\x85\xcc\xb8\x00", 0, 0 }, { "nsucc", "\xe2\x8a\x81\x00", 0, 0 }, { "nsucceq", "\xe2\xaa\xb0\xcc\xb8\x00", 0, 0 }, { "nsup", "\xe2\x8a\x85\x00", 0, 0 }, { "nsupE", "\xe2\xab\x86\xcc\xb8\x00", 0, 0 }, { "nsupe", "\xe2\x8a\x89\x00", 0, 0 }, { "nsupset", "\xe2\x8a\x83\xe2\x83\x92\x00", 0, 0 }, { "nsupseteq", "\xe2\x8a\x89\x00", 0, 0 }, { "nsupseteqq", "\xe2\xab\x86\xcc\xb8\x00", 0, 0 }, { "ntgl", "\xe2\x89\xb9\x00", 0, 0 }, { "Ntilde", "\xc3\x91\x00", 0, 0 }, { "ntilde", "\xc3\xb1\x00", 0, 0 }, { "ntlg", "\xe2\x89\xb8\x00", 0, 0 }, { "ntriangleleft", "\xe2\x8b\xaa\x00", 0, 0 }, { "ntrianglelefteq", "\xe2\x8b\xac\x00", 0, 0 }, { "ntriangleright", "\xe2\x8b\xab\x00", 0, 0 }, { "ntrianglerighteq", "\xe2\x8b\xad\x00", 0, 0 }, { "nu", "\xce\xbd\x00", 0, 0 }, { "num", "\x23\x00", 0, 0 }, { "numero", "\xe2\x84\x96\x00", 0, 0 }, { "numsp", "\xe2\x80\x87\x00", 0, 0 }, { "nvap", "\xe2\x89\x8d\xe2\x83\x92\x00", 0, 0 }, { "nVDash", "\xe2\x8a\xaf\x00", 0, 0 }, { "nVdash", "\xe2\x8a\xae\x00", 0, 0 }, { "nvDash", "\xe2\x8a\xad\x00", 0, 0 }, { "nvdash", "\xe2\x8a\xac\x00", 0, 0 }, { "nvge", "\xe2\x89\xa5\xe2\x83\x92\x00", 0, 0 }, { "nvgt", "\x3e\xe2\x83\x92\x00", 0, 0 }, { "nvHarr", "\xe2\xa4\x84\x00", 0, 0 }, { "nvinfin", "\xe2\xa7\x9e\x00", 0, 0 }, { "nvlArr", "\xe2\xa4\x82\x00", 0, 0 }, { "nvle", "\xe2\x89\xa4\xe2\x83\x92\x00", 0, 0 }, { "nvlt", "\x3c\xe2\x83\x92\x00", 0, 0 }, { "nvltrie", "\xe2\x8a\xb4\xe2\x83\x92\x00", 0, 0 }, { "nvrArr", "\xe2\xa4\x83\x00", 0, 0 }, { "nvrtrie", "\xe2\x8a\xb5\xe2\x83\x92\x00", 0, 0 }, { "nvsim", "\xe2\x88\xbc\xe2\x83\x92\x00", 0, 0 }, { "nwarhk", "\xe2\xa4\xa3\x00", 0, 0 }, { "nwArr", "\xe2\x87\x96\x00", 0, 0 }, { "nwarr", "\xe2\x86\x96\x00", 0, 0 }, { "nwarrow", "\xe2\x86\x96\x00", 0, 0 }, { "nwnear", "\xe2\xa4\xa7\x00", 0, 0 }, { "Oacute", "\xc3\x93\x00", 0, 0 }, { "oacute", "\xc3\xb3\x00", 0, 0 }, { "oast", "\xe2\x8a\x9b\x00", 0, 0 }, { "ocir", "\xe2\x8a\x9a\x00", 0, 0 }, { "Ocirc", "\xc3\x94\x00", 0, 0 }, { "ocirc", "\xc3\xb4\x00", 0, 0 }, { "Ocy", "\xd0\x9e\x00", 0, 0 }, { "ocy", "\xd0\xbe\x00", 0, 0 }, { "odash", "\xe2\x8a\x9d\x00", 0, 0 }, { "Odblac", "\xc5\x90\x00", 0, 0 }, { "odblac", "\xc5\x91\x00", 0, 0 }, { "odiv", "\xe2\xa8\xb8\x00", 0, 0 }, { "odot", "\xe2\x8a\x99\x00", 0, 0 }, { "odsold", "\xe2\xa6\xbc\x00", 0, 0 }, { "OElig", "\xc5\x92\x00", 0, 0 }, { "oelig", "\xc5\x93\x00", 0, 0 }, { "ofcir", "\xe2\xa6\xbf\x00", 0, 0 }, { "Ofr", "\xf0\x9d\x94\x92\x00", 0, 0 }, { "ofr", "\xf0\x9d\x94\xac\x00", 0, 0 }, { "ogon", "\xcb\x9b\x00", 0, 0 }, { "Ograve", "\xc3\x92\x00", 0, 0 }, { "ograve", "\xc3\xb2\x00", 0, 0 }, { "ogt", "\xe2\xa7\x81\x00", 0, 0 }, { "ohbar", "\xe2\xa6\xb5\x00", 0, 0 }, { "ohm", "\xe2\x84\xa6\x00", 0, 0 }, { "oint", "\xe2\x88\xae\x00", 0, 0 }, { "olarr", "\xe2\x86\xba\x00", 0, 0 }, { "olcir", "\xe2\xa6\xbe\x00", 0, 0 }, { "olcross", "\xe2\xa6\xbb\x00", 0, 0 }, { "olt", "\xe2\xa7\x80\x00", 0, 0 }, { "Omacr", "\xc5\x8c\x00", 0, 0 }, { "omacr", "\xc5\x8d\x00", 0, 0 }, { "Omega", "\xce\xa9\x00", 0, 0 }, { "omega", "\xcf\x89\x00", 0, 0 }, { "omid", "\xe2\xa6\xb6\x00", 0, 0 }, { "ominus", "\xe2\x8a\x96\x00", 0, 0 }, { "Oopf", "\xf0\x9d\x95\x86\x00", 0, 0 }, { "oopf", "\xf0\x9d\x95\xa0\x00", 0, 0 }, { "opar", "\xe2\xa6\xb7\x00", 0, 0 }, { "OpenCurlyDoubleQuote", "\xe2\x80\x9c\x00", 0, 0 }, { "OpenCurlyQuote", "\xe2\x80\x98\x00", 0, 0 }, { "operp", "\xe2\xa6\xb9\x00", 0, 0 }, { "oplus", "\xe2\x8a\x95\x00", 0, 0 }, { "Or", "\xe2\xa9\x94\x00", 0, 0 }, { "or", "\xe2\x88\xa8\x00", 0, 0 }, { "orarr", "\xe2\x86\xbb\x00", 0, 0 }, { "ord", "\xe2\xa9\x9d\x00", 0, 0 }, { "order", "\xe2\x84\xb4\x00", 0, 0 }, { "orderof", "\xe2\x84\xb4\x00", 0, 0 }, { "ordf", "\xc2\xaa\x00", 0, 0 }, { "ordm", "\xc2\xba\x00", 0, 0 }, { "origof", "\xe2\x8a\xb6\x00", 0, 0 }, { "oror", "\xe2\xa9\x96\x00", 0, 0 }, { "orslope", "\xe2\xa9\x97\x00", 0, 0 }, { "orv", "\xe2\xa9\x9b\x00", 0, 0 }, { "oS", "\xe2\x93\x88\x00", 0, 0 }, { "Oscr", "\xf0\x9d\x92\xaa\x00", 0, 0 }, { "oscr", "\xe2\x84\xb4\x00", 0, 0 }, { "Oslash", "\xc3\x98\x00", 0, 0 }, { "oslash", "\xc3\xb8\x00", 0, 0 }, { "osol", "\xe2\x8a\x98\x00", 0, 0 }, { "Otilde", "\xc3\x95\x00", 0, 0 }, { "otilde", "\xc3\xb5\x00", 0, 0 }, { "Otimes", "\xe2\xa8\xb7\x00", 0, 0 }, { "otimes", "\xe2\x8a\x97\x00", 0, 0 }, { "otimesas", "\xe2\xa8\xb6\x00", 0, 0 }, { "Ouml", "\xc3\x96\x00", 0, 0 }, { "ouml", "\xc3\xb6\x00", 0, 0 }, { "ovbar", "\xe2\x8c\xbd\x00", 0, 0 }, { "OverBar", "\xc2\xaf\x00", 0, 0 }, { "OverBrace", "\xef\xb8\xb7\x00", 0, 0 }, { "OverBracket", "\xe2\x8e\xb4\x00", 0, 0 }, { "OverParenthesis", "\xef\xb8\xb5\x00", 0, 0 }, { "par", "\xe2\x88\xa5\x00", 0, 0 }, { "para", "\xc2\xb6\x00", 0, 0 }, { "parallel", "\xe2\x88\xa5\x00", 0, 0 }, { "parsim", "\xe2\xab\xb3\x00", 0, 0 }, { "parsl", "\xe2\xab\xbd\x00", 0, 0 }, { "part", "\xe2\x88\x82\x00", 0, 0 }, { "PartialD", "\xe2\x88\x82\x00", 0, 0 }, { "Pcy", "\xd0\x9f\x00", 0, 0 }, { "pcy", "\xd0\xbf\x00", 0, 0 }, { "percnt", "\x25\x00", 0, 0 }, { "period", "\x2e\x00", 0, 0 }, { "permil", "\xe2\x80\xb0\x00", 0, 0 }, { "perp", "\xe2\x8a\xa5\x00", 0, 0 }, { "pertenk", "\xe2\x80\xb1\x00", 0, 0 }, { "Pfr", "\xf0\x9d\x94\x93\x00", 0, 0 }, { "pfr", "\xf0\x9d\x94\xad\x00", 0, 0 }, { "Phi", "\xce\xa6\x00", 0, 0 }, { "phi", "\xcf\x95\x00", 0, 0 }, { "phiv", "\xcf\x86\x00", 0, 0 }, { "phmmat", "\xe2\x84\xb3\x00", 0, 0 }, { "phone", "\xe2\x98\x8e\x00", 0, 0 }, { "Pi", "\xce\xa0\x00", 0, 0 }, { "pi", "\xcf\x80\x00", 0, 0 }, { "pitchfork", "\xe2\x8b\x94\x00", 0, 0 }, { "piv", "\xcf\x96\x00", 0, 0 }, { "planck", "\xe2\x84\x8f\x00", 0, 0 }, { "planckh", "\xe2\x84\x8e\x00", 0, 0 }, { "plankv", "\xe2\x84\x8f\x00", 0, 0 }, { "plus", "\x2b\x00", 0, 0 }, { "plusacir", "\xe2\xa8\xa3\x00", 0, 0 }, { "plusb", "\xe2\x8a\x9e\x00", 0, 0 }, { "pluscir", "\xe2\xa8\xa2\x00", 0, 0 }, { "plusdo", "\xe2\x88\x94\x00", 0, 0 }, { "plusdu", "\xe2\xa8\xa5\x00", 0, 0 }, { "pluse", "\xe2\xa9\xb2\x00", 0, 0 }, { "PlusMinus", "\xc2\xb1\x00", 0, 0 }, { "plusmn", "\xc2\xb1\x00", 0, 0 }, { "plussim", "\xe2\xa8\xa6\x00", 0, 0 }, { "plustwo", "\xe2\xa8\xa7\x00", 0, 0 }, { "pm", "\xc2\xb1\x00", 0, 0 }, { "Poincareplane", "\xe2\x84\x8c\x00", 0, 0 }, { "pointint", "\xe2\xa8\x95\x00", 0, 0 }, { "Popf", "\xe2\x84\x99\x00", 0, 0 }, { "popf", "\xf0\x9d\x95\xa1\x00", 0, 0 }, { "pound", "\xc2\xa3\x00", 0, 0 }, { "Pr", "\xe2\xaa\xbb\x00", 0, 0 }, { "pr", "\xe2\x89\xba\x00", 0, 0 }, { "prap", "\xe2\xaa\xb7\x00", 0, 0 }, { "prcue", "\xe2\x89\xbc\x00", 0, 0 }, { "prE", "\xe2\xaa\xb3\x00", 0, 0 }, { "pre", "\xe2\xaa\xaf\x00", 0, 0 }, { "prec", "\xe2\x89\xba\x00", 0, 0 }, { "precapprox", "\xe2\xaa\xb7\x00", 0, 0 }, { "preccurlyeq", "\xe2\x89\xbc\x00", 0, 0 }, { "Precedes", "\xe2\x89\xba\x00", 0, 0 }, { "PrecedesEqual", "\xe2\xaa\xaf\x00", 0, 0 }, { "PrecedesSlantEqual", "\xe2\x89\xbc\x00", 0, 0 }, { "PrecedesTilde", "\xe2\x89\xbe\x00", 0, 0 }, { "preceq", "\xe2\xaa\xaf\x00", 0, 0 }, { "precnapprox", "\xe2\xaa\xb9\x00", 0, 0 }, { "precneqq", "\xe2\xaa\xb5\x00", 0, 0 }, { "precnsim", "\xe2\x8b\xa8\x00", 0, 0 }, { "precsim", "\xe2\x89\xbe\x00", 0, 0 }, { "Prime", "\xe2\x80\xb3\x00", 0, 0 }, { "prime", "\xe2\x80\xb2\x00", 0, 0 }, { "primes", "\xe2\x84\x99\x00", 0, 0 }, { "prnap", "\xe2\xaa\xb9\x00", 0, 0 }, { "prnE", "\xe2\xaa\xb5\x00", 0, 0 }, { "prnsim", "\xe2\x8b\xa8\x00", 0, 0 }, { "prod", "\xe2\x88\x8f\x00", 0, 0 }, { "Product", "\xe2\x88\x8f\x00", 0, 0 }, { "profalar", "\xe2\x8c\xae\x00", 0, 0 }, { "profline", "\xe2\x8c\x92\x00", 0, 0 }, { "profsurf", "\xe2\x8c\x93\x00", 0, 0 }, { "prop", "\xe2\x88\x9d\x00", 0, 0 }, { "Proportion", "\xe2\x88\xb7\x00", 0, 0 }, { "Proportional", "\xe2\x88\x9d\x00", 0, 0 }, { "propto", "\xe2\x88\x9d\x00", 0, 0 }, { "prsim", "\xe2\x89\xbe\x00", 0, 0 }, { "prurel", "\xe2\x8a\xb0\x00", 0, 0 }, { "Pscr", "\xf0\x9d\x92\xab\x00", 0, 0 }, { "pscr", "\xf0\x9d\x93\x85\x00", 0, 0 }, { "Psi", "\xce\xa8\x00", 0, 0 }, { "psi", "\xcf\x88\x00", 0, 0 }, { "puncsp", "\xe2\x80\x88\x00", 0, 0 }, { "Qfr", "\xf0\x9d\x94\x94\x00", 0, 0 }, { "qfr", "\xf0\x9d\x94\xae\x00", 0, 0 }, { "qint", "\xe2\xa8\x8c\x00", 0, 0 }, { "Qopf", "\xe2\x84\x9a\x00", 0, 0 }, { "qopf", "\xf0\x9d\x95\xa2\x00", 0, 0 }, { "qprime", "\xe2\x81\x97\x00", 0, 0 }, { "Qscr", "\xf0\x9d\x92\xac\x00", 0, 0 }, { "qscr", "\xf0\x9d\x93\x86\x00", 0, 0 }, { "quaternions", "\xe2\x84\x8d\x00", 0, 0 }, { "quatint", "\xe2\xa8\x96\x00", 0, 0 }, { "quest", "\x3f\x00", 0, 0 }, { "questeq", "\xe2\x89\x9f\x00", 0, 0 }, { "quot", "\x22\x00", 0, 0 }, { "rAarr", "\xe2\x87\x9b\x00", 0, 0 }, { "race", "\xe2\xa7\x9a\x00", 0, 0 }, { "Racute", "\xc5\x94\x00", 0, 0 }, { "racute", "\xc5\x95\x00", 0, 0 }, { "radic", "\xe2\x88\x9a\x00", 0, 0 }, { "raemptyv", "\xe2\xa6\xb3\x00", 0, 0 }, { "Rang", "\xe3\x80\x8b\x00", 0, 0 }, { "rang", "\xe2\x8c\xaa\x00", 0, 0 }, { "rangd", "\xe2\xa6\x92\x00", 0, 0 }, { "range", "\xe2\xa6\xa5\x00", 0, 0 }, { "rangle", "\xe2\x8c\xaa\x00", 0, 0 }, { "raquo", "\xc2\xbb\x00", 0, 0 }, { "Rarr", "\xe2\x86\xa0\x00", 0, 0 }, { "rArr", "\xe2\x87\x92\x00", 0, 0 }, { "rarr", "\xe2\x86\x92\x00", 0, 0 }, { "rarrap", "\xe2\xa5\xb5\x00", 0, 0 }, { "rarrb", "\xe2\x87\xa5\x00", 0, 0 }, { "rarrbfs", "\xe2\xa4\xa0\x00", 0, 0 }, { "rarrc", "\xe2\xa4\xb3\x00", 0, 0 }, { "rarrfs", "\xe2\xa4\x9e\x00", 0, 0 }, { "rarrhk", "\xe2\x86\xaa\x00", 0, 0 }, { "rarrlp", "\xe2\x86\xac\x00", 0, 0 }, { "rarrpl", "\xe2\xa5\x85\x00", 0, 0 }, { "rarrsim", "\xe2\xa5\xb4\x00", 0, 0 }, { "Rarrtl", "\xe2\xa4\x96\x00", 0, 0 }, { "rarrtl", "\xe2\x86\xa3\x00", 0, 0 }, { "rarrw", "\xe2\x86\x9d\x00", 0, 0 }, { "rAtail", "\xe2\xa4\x9c\x00", 0, 0 }, { "ratail", "\xe2\xa4\x9a\x00", 0, 0 }, { "ratio", "\xe2\x88\xb6\x00", 0, 0 }, { "rationals", "\xe2\x84\x9a\x00", 0, 0 }, { "RBarr", "\xe2\xa4\x90\x00", 0, 0 }, { "rBarr", "\xe2\xa4\x8f\x00", 0, 0 }, { "rbarr", "\xe2\xa4\x8d\x00", 0, 0 }, { "rbbrk", "\xe3\x80\x95\x00", 0, 0 }, { "rbrace", "\x7d\x00", 0, 0 }, { "rbrack", "\x5d\x00", 0, 0 }, { "rbrke", "\xe2\xa6\x8c\x00", 0, 0 }, { "rbrksld", "\xe2\xa6\x8e\x00", 0, 0 }, { "rbrkslu", "\xe2\xa6\x90\x00", 0, 0 }, { "Rcaron", "\xc5\x98\x00", 0, 0 }, { "rcaron", "\xc5\x99\x00", 0, 0 }, { "Rcedil", "\xc5\x96\x00", 0, 0 }, { "rcedil", "\xc5\x97\x00", 0, 0 }, { "rceil", "\xe2\x8c\x89\x00", 0, 0 }, { "rcub", "\x7d\x00", 0, 0 }, { "Rcy", "\xd0\xa0\x00", 0, 0 }, { "rcy", "\xd1\x80\x00", 0, 0 }, { "rdca", "\xe2\xa4\xb7\x00", 0, 0 }, { "rdldhar", "\xe2\xa5\xa9\x00", 0, 0 }, { "rdquo", "\xe2\x80\x9d\x00", 0, 0 }, { "rdquor", "\xe2\x80\x9d\x00", 0, 0 }, { "rdsh", "\xe2\x86\xb3\x00", 0, 0 }, { "Re", "\xe2\x84\x9c\x00", 0, 0 }, { "real", "\xe2\x84\x9c\x00", 0, 0 }, { "realine", "\xe2\x84\x9b\x00", 0, 0 }, { "realpart", "\xe2\x84\x9c\x00", 0, 0 }, { "reals", "\xe2\x84\x9d\x00", 0, 0 }, { "rect", "\xe2\x96\xad\x00", 0, 0 }, { "reg", "\xc2\xae\x00", 0, 0 }, { "ReverseElement", "\xe2\x88\x8b\x00", 0, 0 }, { "ReverseEquilibrium", "\xe2\x87\x8b\x00", 0, 0 }, { "ReverseUpEquilibrium", "\xe2\xa5\xaf\x00", 0, 0 }, { "rfisht", "\xe2\xa5\xbd\x00", 0, 0 }, { "rfloor", "\xe2\x8c\x8b\x00", 0, 0 }, { "Rfr", "\xe2\x84\x9c\x00", 0, 0 }, { "rfr", "\xf0\x9d\x94\xaf\x00", 0, 0 }, { "rHar", "\xe2\xa5\xa4\x00", 0, 0 }, { "rhard", "\xe2\x87\x81\x00", 0, 0 }, { "rharu", "\xe2\x87\x80\x00", 0, 0 }, { "rharul", "\xe2\xa5\xac\x00", 0, 0 }, { "rho", "\xcf\x81\x00", 0, 0 }, { "rhov", "\xcf\xb1\x00", 0, 0 }, { "RightAngleBracket", "\xe2\x8c\xaa\x00", 0, 0 }, { "RightArrow", "\xe2\x86\x92\x00", 0, 0 }, { "Rightarrow", "\xe2\x87\x92\x00", 0, 0 }, { "rightarrow", "\xe2\x86\x92\x00", 0, 0 }, { "RightArrowBar", "\xe2\x87\xa5\x00", 0, 0 }, { "RightArrowLeftArrow", "\xe2\x87\x84\x00", 0, 0 }, { "rightarrowtail", "\xe2\x86\xa3\x00", 0, 0 }, { "RightCeiling", "\xe2\x8c\x89\x00", 0, 0 }, { "RightDoubleBracket", "\xe3\x80\x9b\x00", 0, 0 }, { "RightDownTeeVector", "\xe2\xa5\x9d\x00", 0, 0 }, { "RightDownVector", "\xe2\x87\x82\x00", 0, 0 }, { "RightDownVectorBar", "\xe2\xa5\x95\x00", 0, 0 }, { "RightFloor", "\xe2\x8c\x8b\x00", 0, 0 }, { "rightharpoondown", "\xe2\x87\x81\x00", 0, 0 }, { "rightharpoonup", "\xe2\x87\x80\x00", 0, 0 }, { "rightleftarrows", "\xe2\x87\x84\x00", 0, 0 }, { "rightleftharpoons", "\xe2\x87\x8c\x00", 0, 0 }, { "rightrightarrows", "\xe2\x87\x89\x00", 0, 0 }, { "rightsquigarrow", "\xe2\x86\x9d\x00", 0, 0 }, { "RightTee", "\xe2\x8a\xa2\x00", 0, 0 }, { "RightTeeArrow", "\xe2\x86\xa6\x00", 0, 0 }, { "RightTeeVector", "\xe2\xa5\x9b\x00", 0, 0 }, { "rightthreetimes", "\xe2\x8b\x8c\x00", 0, 0 }, { "RightTriangle", "\xe2\x8a\xb3\x00", 0, 0 }, { "RightTriangleBar", "\xe2\xa7\x90\x00", 0, 0 }, { "RightTriangleEqual", "\xe2\x8a\xb5\x00", 0, 0 }, { "RightUpDownVector", "\xe2\xa5\x8f\x00", 0, 0 }, { "RightUpTeeVector", "\xe2\xa5\x9c\x00", 0, 0 }, { "RightUpVector", "\xe2\x86\xbe\x00", 0, 0 }, { "RightUpVectorBar", "\xe2\xa5\x94\x00", 0, 0 }, { "RightVector", "\xe2\x87\x80\x00", 0, 0 }, { "RightVectorBar", "\xe2\xa5\x93\x00", 0, 0 }, { "ring", "\xcb\x9a\x00", 0, 0 }, { "risingdotseq", "\xe2\x89\x93\x00", 0, 0 }, { "rlarr", "\xe2\x87\x84\x00", 0, 0 }, { "rlhar", "\xe2\x87\x8c\x00", 0, 0 }, { "rmoust", "\xe2\x8e\xb1\x00", 0, 0 }, { "rmoustache", "\xe2\x8e\xb1\x00", 0, 0 }, { "rnmid", "\xe2\xab\xae\x00", 0, 0 }, { "roang", "\xe3\x80\x99\x00", 0, 0 }, { "roarr", "\xe2\x87\xbe\x00", 0, 0 }, { "robrk", "\xe3\x80\x9b\x00", 0, 0 }, { "ropar", "\xe2\xa6\x86\x00", 0, 0 }, { "Ropf", "\xe2\x84\x9d\x00", 0, 0 }, { "ropf", "\xf0\x9d\x95\xa3\x00", 0, 0 }, { "roplus", "\xe2\xa8\xae\x00", 0, 0 }, { "rotimes", "\xe2\xa8\xb5\x00", 0, 0 }, { "RoundImplies", "\xe2\xa5\xb0\x00", 0, 0 }, { "rpar", "\x29\x00", 0, 0 }, { "rpargt", "\xe2\xa6\x94\x00", 0, 0 }, { "rppolint", "\xe2\xa8\x92\x00", 0, 0 }, { "rrarr", "\xe2\x87\x89\x00", 0, 0 }, { "Rrightarrow", "\xe2\x87\x9b\x00", 0, 0 }, { "Rscr", "\xe2\x84\x9b\x00", 0, 0 }, { "rscr", "\xf0\x9d\x93\x87\x00", 0, 0 }, { "Rsh", "\xe2\x86\xb1\x00", 0, 0 }, { "rsh", "\xe2\x86\xb1\x00", 0, 0 }, { "rsqb", "\x5d\x00", 0, 0 }, { "rsquo", "\xe2\x80\x99\x00", 0, 0 }, { "rsquor", "\xe2\x80\x99\x00", 0, 0 }, { "rthree", "\xe2\x8b\x8c\x00", 0, 0 }, { "rtimes", "\xe2\x8b\x8a\x00", 0, 0 }, { "rtri", "\xe2\x96\xb9\x00", 0, 0 }, { "rtrie", "\xe2\x8a\xb5\x00", 0, 0 }, { "rtrif", "\xe2\x96\xb8\x00", 0, 0 }, { "rtriltri", "\xe2\xa7\x8e\x00", 0, 0 }, { "RuleDelayed", "\xe2\xa7\xb4\x00", 0, 0 }, { "ruluhar", "\xe2\xa5\xa8\x00", 0, 0 }, { "rx", "\xe2\x84\x9e\x00", 0, 0 }, { "Sacute", "\xc5\x9a\x00", 0, 0 }, { "sacute", "\xc5\x9b\x00", 0, 0 }, { "Sc", "\xe2\xaa\xbc\x00", 0, 0 }, { "sc", "\xe2\x89\xbb\x00", 0, 0 }, { "scap", "\xe2\xaa\xb8\x00", 0, 0 }, { "Scaron", "\xc5\xa0\x00", 0, 0 }, { "scaron", "\xc5\xa1\x00", 0, 0 }, { "sccue", "\xe2\x89\xbd\x00", 0, 0 }, { "scE", "\xe2\xaa\xb4\x00", 0, 0 }, { "sce", "\xe2\xaa\xb0\x00", 0, 0 }, { "Scedil", "\xc5\x9e\x00", 0, 0 }, { "scedil", "\xc5\x9f\x00", 0, 0 }, { "Scirc", "\xc5\x9c\x00", 0, 0 }, { "scirc", "\xc5\x9d\x00", 0, 0 }, { "scnap", "\xe2\xaa\xba\x00", 0, 0 }, { "scnE", "\xe2\xaa\xb6\x00", 0, 0 }, { "scnsim", "\xe2\x8b\xa9\x00", 0, 0 }, { "scpolint", "\xe2\xa8\x93\x00", 0, 0 }, { "scsim", "\xe2\x89\xbf\x00", 0, 0 }, { "Scy", "\xd0\xa1\x00", 0, 0 }, { "scy", "\xd1\x81\x00", 0, 0 }, { "sdot", "\xe2\x8b\x85\x00", 0, 0 }, { "sdotb", "\xe2\x8a\xa1\x00", 0, 0 }, { "sdote", "\xe2\xa9\xa6\x00", 0, 0 }, { "searhk", "\xe2\xa4\xa5\x00", 0, 0 }, { "seArr", "\xe2\x87\x98\x00", 0, 0 }, { "searr", "\xe2\x86\x98\x00", 0, 0 }, { "searrow", "\xe2\x86\x98\x00", 0, 0 }, { "sect", "\xc2\xa7\x00", 0, 0 }, { "semi", "\x3b\x00", 0, 0 }, { "seswar", "\xe2\xa4\xa9\x00", 0, 0 }, { "setminus", "\xe2\x88\x96\x00", 0, 0 }, { "setmn", "\xe2\x88\x96\x00", 0, 0 }, { "sext", "\xe2\x9c\xb6\x00", 0, 0 }, { "Sfr", "\xf0\x9d\x94\x96\x00", 0, 0 }, { "sfr", "\xf0\x9d\x94\xb0\x00", 0, 0 }, { "sfrown", "\xe2\x8c\xa2\x00", 0, 0 }, { "sharp", "\xe2\x99\xaf\x00", 0, 0 }, { "SHCHcy", "\xd0\xa9\x00", 0, 0 }, { "shchcy", "\xd1\x89\x00", 0, 0 }, { "SHcy", "\xd0\xa8\x00", 0, 0 }, { "shcy", "\xd1\x88\x00", 0, 0 }, { "ShortDownArrow", "\xe2\x86\x93\x00", 0, 0 }, { "ShortLeftArrow", "\xe2\x86\x90\x00", 0, 0 }, { "shortmid", "\xe2\x88\xa3\x00", 0, 0 }, { "shortparallel", "\xe2\x88\xa5\x00", 0, 0 }, { "ShortRightArrow", "\xe2\x86\x92\x00", 0, 0 }, { "ShortUpArrow", "\xe2\x86\x91\x00", 0, 0 }, { "shy", "\xc2\xad\x00", 0, 0 }, { "Sigma", "\xce\xa3\x00", 0, 0 }, { "sigma", "\xcf\x83\x00", 0, 0 }, { "sigmav", "\xcf\x82\x00", 0, 0 }, { "sim", "\xe2\x88\xbc\x00", 0, 0 }, { "simdot", "\xe2\xa9\xaa\x00", 0, 0 }, { "sime", "\xe2\x89\x83\x00", 0, 0 }, { "simeq", "\xe2\x89\x83\x00", 0, 0 }, { "simg", "\xe2\xaa\x9e\x00", 0, 0 }, { "simgE", "\xe2\xaa\xa0\x00", 0, 0 }, { "siml", "\xe2\xaa\x9d\x00", 0, 0 }, { "simlE", "\xe2\xaa\x9f\x00", 0, 0 }, { "simne", "\xe2\x89\x86\x00", 0, 0 }, { "simplus", "\xe2\xa8\xa4\x00", 0, 0 }, { "simrarr", "\xe2\xa5\xb2\x00", 0, 0 }, { "slarr", "\xe2\x86\x90\x00", 0, 0 }, { "SmallCircle", "\xe2\x88\x98\x00", 0, 0 }, { "smallsetminus", "\xe2\x88\x96\x00", 0, 0 }, { "smashp", "\xe2\xa8\xb3\x00", 0, 0 }, { "smeparsl", "\xe2\xa7\xa4\x00", 0, 0 }, { "smid", "\xe2\x88\xa3\x00", 0, 0 }, { "smile", "\xe2\x8c\xa3\x00", 0, 0 }, { "smt", "\xe2\xaa\xaa\x00", 0, 0 }, { "smte", "\xe2\xaa\xac\x00", 0, 0 }, { "smtes", "\xe2\xaa\xac\xef\xb8\x80\x00", 0, 0 }, { "SOFTcy", "\xd0\xac\x00", 0, 0 }, { "softcy", "\xd1\x8c\x00", 0, 0 }, { "sol", "\x2f\x00", 0, 0 }, { "solb", "\xe2\xa7\x84\x00", 0, 0 }, { "solbar", "\xe2\x8c\xbf\x00", 0, 0 }, { "Sopf", "\xf0\x9d\x95\x8a\x00", 0, 0 }, { "sopf", "\xf0\x9d\x95\xa4\x00", 0, 0 }, { "spades", "\xe2\x99\xa0\x00", 0, 0 }, { "spadesuit", "\xe2\x99\xa0\x00", 0, 0 }, { "spar", "\xe2\x88\xa5\x00", 0, 0 }, { "sqcap", "\xe2\x8a\x93\x00", 0, 0 }, { "sqcaps", "\xe2\x8a\x93\xef\xb8\x80\x00", 0, 0 }, { "sqcup", "\xe2\x8a\x94\x00", 0, 0 }, { "sqcups", "\xe2\x8a\x94\xef\xb8\x80\x00", 0, 0 }, { "Sqrt", "\xe2\x88\x9a\x00", 0, 0 }, { "sqsub", "\xe2\x8a\x8f\x00", 0, 0 }, { "sqsube", "\xe2\x8a\x91\x00", 0, 0 }, { "sqsubset", "\xe2\x8a\x8f\x00", 0, 0 }, { "sqsubseteq", "\xe2\x8a\x91\x00", 0, 0 }, { "sqsup", "\xe2\x8a\x90\x00", 0, 0 }, { "sqsupe", "\xe2\x8a\x92\x00", 0, 0 }, { "sqsupset", "\xe2\x8a\x90\x00", 0, 0 }, { "sqsupseteq", "\xe2\x8a\x92\x00", 0, 0 }, { "squ", "\xe2\x96\xa1\x00", 0, 0 }, { "Square", "\xe2\x96\xa1\x00", 0, 0 }, { "square", "\xe2\x96\xa1\x00", 0, 0 }, { "SquareIntersection", "\xe2\x8a\x93\x00", 0, 0 }, { "SquareSubset", "\xe2\x8a\x8f\x00", 0, 0 }, { "SquareSubsetEqual", "\xe2\x8a\x91\x00", 0, 0 }, { "SquareSuperset", "\xe2\x8a\x90\x00", 0, 0 }, { "SquareSupersetEqual", "\xe2\x8a\x92\x00", 0, 0 }, { "SquareUnion", "\xe2\x8a\x94\x00", 0, 0 }, { "squarf", "\xe2\x96\xaa\x00", 0, 0 }, { "squf", "\xe2\x96\xaa\x00", 0, 0 }, { "srarr", "\xe2\x86\x92\x00", 0, 0 }, { "Sscr", "\xf0\x9d\x92\xae\x00", 0, 0 }, { "sscr", "\xf0\x9d\x93\x88\x00", 0, 0 }, { "ssetmn", "\xe2\x88\x96\x00", 0, 0 }, { "ssmile", "\xe2\x8c\xa3\x00", 0, 0 }, { "sstarf", "\xe2\x8b\x86\x00", 0, 0 }, { "Star", "\xe2\x8b\x86\x00", 0, 0 }, { "star", "\xe2\x98\x86\x00", 0, 0 }, { "starf", "\xe2\x98\x85\x00", 0, 0 }, { "straightepsilon", "\xcf\xb5\x00", 0, 0 }, { "straightphi", "\xcf\x95\x00", 0, 0 }, { "strns", "\xc2\xaf\x00", 0, 0 }, { "Sub", "\xe2\x8b\x90\x00", 0, 0 }, { "sub", "\xe2\x8a\x82\x00", 0, 0 }, { "subdot", "\xe2\xaa\xbd\x00", 0, 0 }, { "subE", "\xe2\xab\x85\x00", 0, 0 }, { "sube", "\xe2\x8a\x86\x00", 0, 0 }, { "subedot", "\xe2\xab\x83\x00", 0, 0 }, { "submult", "\xe2\xab\x81\x00", 0, 0 }, { "subnE", "\xe2\xab\x8b\x00", 0, 0 }, { "subne", "\xe2\x8a\x8a\x00", 0, 0 }, { "subplus", "\xe2\xaa\xbf\x00", 0, 0 }, { "subrarr", "\xe2\xa5\xb9\x00", 0, 0 }, { "Subset", "\xe2\x8b\x90\x00", 0, 0 }, { "subset", "\xe2\x8a\x82\x00", 0, 0 }, { "subseteq", "\xe2\x8a\x86\x00", 0, 0 }, { "subseteqq", "\xe2\xab\x85\x00", 0, 0 }, { "SubsetEqual", "\xe2\x8a\x86\x00", 0, 0 }, { "subsetneq", "\xe2\x8a\x8a\x00", 0, 0 }, { "subsetneqq", "\xe2\xab\x8b\x00", 0, 0 }, { "subsim", "\xe2\xab\x87\x00", 0, 0 }, { "subsub", "\xe2\xab\x95\x00", 0, 0 }, { "subsup", "\xe2\xab\x93\x00", 0, 0 }, { "succ", "\xe2\x89\xbb\x00", 0, 0 }, { "succapprox", "\xe2\xaa\xb8\x00", 0, 0 }, { "succcurlyeq", "\xe2\x89\xbd\x00", 0, 0 }, { "Succeeds", "\xe2\x89\xbb\x00", 0, 0 }, { "SucceedsEqual", "\xe2\xaa\xb0\x00", 0, 0 }, { "SucceedsSlantEqual", "\xe2\x89\xbd\x00", 0, 0 }, { "SucceedsTilde", "\xe2\x89\xbf\x00", 0, 0 }, { "succeq", "\xe2\xaa\xb0\x00", 0, 0 }, { "succnapprox", "\xe2\xaa\xba\x00", 0, 0 }, { "succneqq", "\xe2\xaa\xb6\x00", 0, 0 }, { "succnsim", "\xe2\x8b\xa9\x00", 0, 0 }, { "succsim", "\xe2\x89\xbf\x00", 0, 0 }, { "SuchThat", "\xe2\x88\x8b\x00", 0, 0 }, { "Sum", "\xe2\x88\x91\x00", 0, 0 }, { "sum", "\xe2\x88\x91\x00", 0, 0 }, { "sung", "\xe2\x99\xaa\x00", 0, 0 }, { "Sup", "\xe2\x8b\x91\x00", 0, 0 }, { "sup", "\xe2\x8a\x83\x00", 0, 0 }, { "sup1", "\xc2\xb9\x00", 0, 0 }, { "sup2", "\xc2\xb2\x00", 0, 0 }, { "sup3", "\xc2\xb3\x00", 0, 0 }, { "supdot", "\xe2\xaa\xbe\x00", 0, 0 }, { "supdsub", "\xe2\xab\x98\x00", 0, 0 }, { "supE", "\xe2\xab\x86\x00", 0, 0 }, { "supe", "\xe2\x8a\x87\x00", 0, 0 }, { "supedot", "\xe2\xab\x84\x00", 0, 0 }, { "Superset", "\xe2\x8a\x83\x00", 0, 0 }, { "SupersetEqual", "\xe2\x8a\x87\x00", 0, 0 }, { "suphsol", "\xe2\x8a\x83\x2f\x00", 0, 0 }, { "suphsub", "\xe2\xab\x97\x00", 0, 0 }, { "suplarr", "\xe2\xa5\xbb\x00", 0, 0 }, { "supmult", "\xe2\xab\x82\x00", 0, 0 }, { "supnE", "\xe2\xab\x8c\x00", 0, 0 }, { "supne", "\xe2\x8a\x8b\x00", 0, 0 }, { "supplus", "\xe2\xab\x80\x00", 0, 0 }, { "Supset", "\xe2\x8b\x91\x00", 0, 0 }, { "supset", "\xe2\x8a\x83\x00", 0, 0 }, { "supseteq", "\xe2\x8a\x87\x00", 0, 0 }, { "supseteqq", "\xe2\xab\x86\x00", 0, 0 }, { "supsetneq", "\xe2\x8a\x8b\x00", 0, 0 }, { "supsetneqq", "\xe2\xab\x8c\x00", 0, 0 }, { "supsim", "\xe2\xab\x88\x00", 0, 0 }, { "supsub", "\xe2\xab\x94\x00", 0, 0 }, { "supsup", "\xe2\xab\x96\x00", 0, 0 }, { "swarhk", "\xe2\xa4\xa6\x00", 0, 0 }, { "swArr", "\xe2\x87\x99\x00", 0, 0 }, { "swarr", "\xe2\x86\x99\x00", 0, 0 }, { "swarrow", "\xe2\x86\x99\x00", 0, 0 }, { "swnwar", "\xe2\xa4\xaa\x00", 0, 0 }, { "szlig", "\xc3\x9f\x00", 0, 0 }, { "target", "\xe2\x8c\x96\x00", 0, 0 }, { "tau", "\xcf\x84\x00", 0, 0 }, { "tbrk", "\xe2\x8e\xb4\x00", 0, 0 }, { "Tcaron", "\xc5\xa4\x00", 0, 0 }, { "tcaron", "\xc5\xa5\x00", 0, 0 }, { "Tcedil", "\xc5\xa2\x00", 0, 0 }, { "tcedil", "\xc5\xa3\x00", 0, 0 }, { "Tcy", "\xd0\xa2\x00", 0, 0 }, { "tcy", "\xd1\x82\x00", 0, 0 }, { "tdot", "\xe2\x83\x9b\x00", 0, 0 }, { "telrec", "\xe2\x8c\x95\x00", 0, 0 }, { "Tfr", "\xf0\x9d\x94\x97\x00", 0, 0 }, { "tfr", "\xf0\x9d\x94\xb1\x00", 0, 0 }, { "there4", "\xe2\x88\xb4\x00", 0, 0 }, { "Therefore", "\xe2\x88\xb4\x00", 0, 0 }, { "therefore", "\xe2\x88\xb4\x00", 0, 0 }, { "Theta", "\xce\x98\x00", 0, 0 }, { "theta", "\xce\xb8\x00", 0, 0 }, { "thetav", "\xcf\x91\x00", 0, 0 }, { "thickapprox", "\xe2\x89\x88\x00", 0, 0 }, { "thicksim", "\xe2\x88\xbc\x00", 0, 0 }, { "ThickSpace", "\xe2\x80\x89\xe2\x80\x8a\xe2\x80\x8a\x00", 0, 0 }, { "thinsp", "\xe2\x80\x89\x00", 0, 0 }, { "ThinSpace", "\xe2\x80\x89\x00", 0, 0 }, { "thkap", "\xe2\x89\x88\x00", 0, 0 }, { "thksim", "\xe2\x88\xbc\x00", 0, 0 }, { "THORN", "\xc3\x9e\x00", 0, 0 }, { "thorn", "\xc3\xbe\x00", 0, 0 }, { "Tilde", "\xe2\x88\xbc\x00", 0, 0 }, { "tilde", "\xcb\x9c\x00", 0, 0 }, { "TildeEqual", "\xe2\x89\x83\x00", 0, 0 }, { "TildeFullEqual", "\xe2\x89\x85\x00", 0, 0 }, { "TildeTilde", "\xe2\x89\x88\x00", 0, 0 }, { "times", "\xc3\x97\x00", 0, 0 }, { "timesb", "\xe2\x8a\xa0\x00", 0, 0 }, { "timesbar", "\xe2\xa8\xb1\x00", 0, 0 }, { "timesd", "\xe2\xa8\xb0\x00", 0, 0 }, { "tint", "\xe2\x88\xad\x00", 0, 0 }, { "toea", "\xe2\xa4\xa8\x00", 0, 0 }, { "top", "\xe2\x8a\xa4\x00", 0, 0 }, { "topbot", "\xe2\x8c\xb6\x00", 0, 0 }, { "topcir", "\xe2\xab\xb1\x00", 0, 0 }, { "Topf", "\xf0\x9d\x95\x8b\x00", 0, 0 }, { "topf", "\xf0\x9d\x95\xa5\x00", 0, 0 }, { "topfork", "\xe2\xab\x9a\x00", 0, 0 }, { "tosa", "\xe2\xa4\xa9\x00", 0, 0 }, { "tprime", "\xe2\x80\xb4\x00", 0, 0 }, { "trade", "\xe2\x84\xa2\x00", 0, 0 }, { "triangle", "\xe2\x96\xb5\x00", 0, 0 }, { "triangledown", "\xe2\x96\xbf\x00", 0, 0 }, { "triangleleft", "\xe2\x97\x83\x00", 0, 0 }, { "trianglelefteq", "\xe2\x8a\xb4\x00", 0, 0 }, { "triangleq", "\xe2\x89\x9c\x00", 0, 0 }, { "triangleright", "\xe2\x96\xb9\x00", 0, 0 }, { "trianglerighteq", "\xe2\x8a\xb5\x00", 0, 0 }, { "tridot", "\xe2\x97\xac\x00", 0, 0 }, { "trie", "\xe2\x89\x9c\x00", 0, 0 }, { "triminus", "\xe2\xa8\xba\x00", 0, 0 }, { "TripleDot", "\xe2\x83\x9b\x00", 0, 0 }, { "triplus", "\xe2\xa8\xb9\x00", 0, 0 }, { "trisb", "\xe2\xa7\x8d\x00", 0, 0 }, { "tritime", "\xe2\xa8\xbb\x00", 0, 0 }, { "trpezium", "\xef\xbf\xbd\x00", 0, 0 }, { "Tscr", "\xf0\x9d\x92\xaf\x00", 0, 0 }, { "tscr", "\xf0\x9d\x93\x89\x00", 0, 0 }, { "TScy", "\xd0\xa6\x00", 0, 0 }, { "tscy", "\xd1\x86\x00", 0, 0 }, { "TSHcy", "\xd0\x8b\x00", 0, 0 }, { "tshcy", "\xd1\x9b\x00", 0, 0 }, { "Tstrok", "\xc5\xa6\x00", 0, 0 }, { "tstrok", "\xc5\xa7\x00", 0, 0 }, { "twixt", "\xe2\x89\xac\x00", 0, 0 }, { "twoheadleftarrow", "\xe2\x86\x9e\x00", 0, 0 }, { "twoheadrightarrow", "\xe2\x86\xa0\x00", 0, 0 }, { "Uacute", "\xc3\x9a\x00", 0, 0 }, { "uacute", "\xc3\xba\x00", 0, 0 }, { "Uarr", "\xe2\x86\x9f\x00", 0, 0 }, { "uArr", "\xe2\x87\x91\x00", 0, 0 }, { "uarr", "\xe2\x86\x91\x00", 0, 0 }, { "Uarrocir", "\xe2\xa5\x89\x00", 0, 0 }, { "Ubrcy", "\xd0\x8e\x00", 0, 0 }, { "ubrcy", "\xd1\x9e\x00", 0, 0 }, { "Ubreve", "\xc5\xac\x00", 0, 0 }, { "ubreve", "\xc5\xad\x00", 0, 0 }, { "Ucirc", "\xc3\x9b\x00", 0, 0 }, { "ucirc", "\xc3\xbb\x00", 0, 0 }, { "Ucy", "\xd0\xa3\x00", 0, 0 }, { "ucy", "\xd1\x83\x00", 0, 0 }, { "udarr", "\xe2\x87\x85\x00", 0, 0 }, { "Udblac", "\xc5\xb0\x00", 0, 0 }, { "udblac", "\xc5\xb1\x00", 0, 0 }, { "udhar", "\xe2\xa5\xae\x00", 0, 0 }, { "ufisht", "\xe2\xa5\xbe\x00", 0, 0 }, { "Ufr", "\xf0\x9d\x94\x98\x00", 0, 0 }, { "ufr", "\xf0\x9d\x94\xb2\x00", 0, 0 }, { "Ugrave", "\xc3\x99\x00", 0, 0 }, { "ugrave", "\xc3\xb9\x00", 0, 0 }, { "uHar", "\xe2\xa5\xa3\x00", 0, 0 }, { "uharl", "\xe2\x86\xbf\x00", 0, 0 }, { "uharr", "\xe2\x86\xbe\x00", 0, 0 }, { "uhblk", "\xe2\x96\x80\x00", 0, 0 }, { "ulcorn", "\xe2\x8c\x9c\x00", 0, 0 }, { "ulcorner", "\xe2\x8c\x9c\x00", 0, 0 }, { "ulcrop", "\xe2\x8c\x8f\x00", 0, 0 }, { "ultri", "\xe2\x97\xb8\x00", 0, 0 }, { "Umacr", "\xc5\xaa\x00", 0, 0 }, { "umacr", "\xc5\xab\x00", 0, 0 }, { "uml", "\xc2\xa8\x00", 0, 0 }, { "UnderBar", "\xcc\xb2\x00", 0, 0 }, { "UnderBrace", "\xef\xb8\xb8\x00", 0, 0 }, { "UnderBracket", "\xe2\x8e\xb5\x00", 0, 0 }, { "UnderParenthesis", "\xef\xb8\xb6\x00", 0, 0 }, { "Union", "\xe2\x8b\x83\x00", 0, 0 }, { "UnionPlus", "\xe2\x8a\x8e\x00", 0, 0 }, { "Uogon", "\xc5\xb2\x00", 0, 0 }, { "uogon", "\xc5\xb3\x00", 0, 0 }, { "Uopf", "\xf0\x9d\x95\x8c\x00", 0, 0 }, { "uopf", "\xf0\x9d\x95\xa6\x00", 0, 0 }, { "UpArrow", "\xe2\x86\x91\x00", 0, 0 }, { "Uparrow", "\xe2\x87\x91\x00", 0, 0 }, { "uparrow", "\xe2\x86\x91\x00", 0, 0 }, { "UpArrowBar", "\xe2\xa4\x92\x00", 0, 0 }, { "UpArrowDownArrow", "\xe2\x87\x85\x00", 0, 0 }, { "UpDownArrow", "\xe2\x86\x95\x00", 0, 0 }, { "Updownarrow", "\xe2\x87\x95\x00", 0, 0 }, { "updownarrow", "\xe2\x86\x95\x00", 0, 0 }, { "UpEquilibrium", "\xe2\xa5\xae\x00", 0, 0 }, { "upharpoonleft", "\xe2\x86\xbf\x00", 0, 0 }, { "upharpoonright", "\xe2\x86\xbe\x00", 0, 0 }, { "uplus", "\xe2\x8a\x8e\x00", 0, 0 }, { "UpperLeftArrow", "\xe2\x86\x96\x00", 0, 0 }, { "UpperRightArrow", "\xe2\x86\x97\x00", 0, 0 }, { "Upsi", "\xcf\x92\x00", 0, 0 }, { "upsi", "\xcf\x85\x00", 0, 0 }, { "Upsilon", "\xce\xa5\x00", 0, 0 }, { "upsilon", "\xcf\x85\x00", 0, 0 }, { "UpTee", "\xe2\x8a\xa5\x00", 0, 0 }, { "UpTeeArrow", "\xe2\x86\xa5\x00", 0, 0 }, { "upuparrows", "\xe2\x87\x88\x00", 0, 0 }, { "urcorn", "\xe2\x8c\x9d\x00", 0, 0 }, { "urcorner", "\xe2\x8c\x9d\x00", 0, 0 }, { "urcrop", "\xe2\x8c\x8e\x00", 0, 0 }, { "Uring", "\xc5\xae\x00", 0, 0 }, { "uring", "\xc5\xaf\x00", 0, 0 }, { "urtri", "\xe2\x97\xb9\x00", 0, 0 }, { "Uscr", "\xf0\x9d\x92\xb0\x00", 0, 0 }, { "uscr", "\xf0\x9d\x93\x8a\x00", 0, 0 }, { "utdot", "\xe2\x8b\xb0\x00", 0, 0 }, { "Utilde", "\xc5\xa8\x00", 0, 0 }, { "utilde", "\xc5\xa9\x00", 0, 0 }, { "utri", "\xe2\x96\xb5\x00", 0, 0 }, { "utrif", "\xe2\x96\xb4\x00", 0, 0 }, { "uuarr", "\xe2\x87\x88\x00", 0, 0 }, { "Uuml", "\xc3\x9c\x00", 0, 0 }, { "uuml", "\xc3\xbc\x00", 0, 0 }, { "uwangle", "\xe2\xa6\xa7\x00", 0, 0 }, { "vangrt", "\xe2\xa6\x9c\x00", 0, 0 }, { "varepsilon", "\xce\xb5\x00", 0, 0 }, { "varkappa", "\xcf\xb0\x00", 0, 0 }, { "varnothing", "\xe2\x88\x85\x00", 0, 0 }, { "varphi", "\xcf\x86\x00", 0, 0 }, { "varpi", "\xcf\x96\x00", 0, 0 }, { "varpropto", "\xe2\x88\x9d\x00", 0, 0 }, { "vArr", "\xe2\x87\x95\x00", 0, 0 }, { "varr", "\xe2\x86\x95\x00", 0, 0 }, { "varrho", "\xcf\xb1\x00", 0, 0 }, { "varsigma", "\xcf\x82\x00", 0, 0 }, { "varsubsetneq", "\xe2\x8a\x8a\xef\xb8\x80\x00", 0, 0 }, { "varsubsetneqq", "\xe2\xab\x8b\xef\xb8\x80\x00", 0, 0 }, { "varsupsetneq", "\xe2\x8a\x8b\xef\xb8\x80\x00", 0, 0 }, { "varsupsetneqq", "\xe2\xab\x8c\xef\xb8\x80\x00", 0, 0 }, { "vartheta", "\xcf\x91\x00", 0, 0 }, { "vartriangleleft", "\xe2\x8a\xb2\x00", 0, 0 }, { "vartriangleright", "\xe2\x8a\xb3\x00", 0, 0 }, { "Vbar", "\xe2\xab\xab\x00", 0, 0 }, { "vBar", "\xe2\xab\xa8\x00", 0, 0 }, { "vBarv", "\xe2\xab\xa9\x00", 0, 0 }, { "Vcy", "\xd0\x92\x00", 0, 0 }, { "vcy", "\xd0\xb2\x00", 0, 0 }, { "VDash", "\xe2\x8a\xab\x00", 0, 0 }, { "Vdash", "\xe2\x8a\xa9\x00", 0, 0 }, { "vDash", "\xe2\x8a\xa8\x00", 0, 0 }, { "vdash", "\xe2\x8a\xa2\x00", 0, 0 }, { "Vdashl", "\xe2\xab\xa6\x00", 0, 0 }, { "Vee", "\xe2\x8b\x81\x00", 0, 0 }, { "vee", "\xe2\x88\xa8\x00", 0, 0 }, { "veebar", "\xe2\x8a\xbb\x00", 0, 0 }, { "veeeq", "\xe2\x89\x9a\x00", 0, 0 }, { "vellip", "\xe2\x8b\xae\x00", 0, 0 }, { "Verbar", "\xe2\x80\x96\x00", 0, 0 }, { "verbar", "\x7c\x00", 0, 0 }, { "Vert", "\xe2\x80\x96\x00", 0, 0 }, { "vert", "\x7c\x00", 0, 0 }, { "VerticalBar", "\xe2\x88\xa3\x00", 0, 0 }, { "VerticalLine", "\x7c\x00", 0, 0 }, { "VerticalSeparator", "\xe2\x9d\x98\x00", 0, 0 }, { "VerticalTilde", "\xe2\x89\x80\x00", 0, 0 }, { "VeryThinSpace", "\xe2\x80\x8a\x00", 0, 0 }, { "Vfr", "\xf0\x9d\x94\x99\x00", 0, 0 }, { "vfr", "\xf0\x9d\x94\xb3\x00", 0, 0 }, { "vltri", "\xe2\x8a\xb2\x00", 0, 0 }, { "vnsub", "\xe2\x8a\x82\xe2\x83\x92\x00", 0, 0 }, { "vnsup", "\xe2\x8a\x83\xe2\x83\x92\x00", 0, 0 }, { "Vopf", "\xf0\x9d\x95\x8d\x00", 0, 0 }, { "vopf", "\xf0\x9d\x95\xa7\x00", 0, 0 }, { "vprop", "\xe2\x88\x9d\x00", 0, 0 }, { "vrtri", "\xe2\x8a\xb3\x00", 0, 0 }, { "Vscr", "\xf0\x9d\x92\xb1\x00", 0, 0 }, { "vscr", "\xf0\x9d\x93\x8b\x00", 0, 0 }, { "vsubnE", "\xe2\xab\x8b\xef\xb8\x80\x00", 0, 0 }, { "vsubne", "\xe2\x8a\x8a\xef\xb8\x80\x00", 0, 0 }, { "vsupnE", "\xe2\xab\x8c\xef\xb8\x80\x00", 0, 0 }, { "vsupne", "\xe2\x8a\x8b\xef\xb8\x80\x00", 0, 0 }, { "Vvdash", "\xe2\x8a\xaa\x00", 0, 0 }, { "vzigzag", "\xe2\xa6\x9a\x00", 0, 0 }, { "Wcirc", "\xc5\xb4\x00", 0, 0 }, { "wcirc", "\xc5\xb5\x00", 0, 0 }, { "wedbar", "\xe2\xa9\x9f\x00", 0, 0 }, { "Wedge", "\xe2\x8b\x80\x00", 0, 0 }, { "wedge", "\xe2\x88\xa7\x00", 0, 0 }, { "wedgeq", "\xe2\x89\x99\x00", 0, 0 }, { "weierp", "\xe2\x84\x98\x00", 0, 0 }, { "Wfr", "\xf0\x9d\x94\x9a\x00", 0, 0 }, { "wfr", "\xf0\x9d\x94\xb4\x00", 0, 0 }, { "Wopf", "\xf0\x9d\x95\x8e\x00", 0, 0 }, { "wopf", "\xf0\x9d\x95\xa8\x00", 0, 0 }, { "wp", "\xe2\x84\x98\x00", 0, 0 }, { "wr", "\xe2\x89\x80\x00", 0, 0 }, { "wreath", "\xe2\x89\x80\x00", 0, 0 }, { "Wscr", "\xf0\x9d\x92\xb2\x00", 0, 0 }, { "wscr", "\xf0\x9d\x93\x8c\x00", 0, 0 }, { "xcap", "\xe2\x8b\x82\x00", 0, 0 }, { "xcirc", "\xe2\x97\xaf\x00", 0, 0 }, { "xcup", "\xe2\x8b\x83\x00", 0, 0 }, { "xdtri", "\xe2\x96\xbd\x00", 0, 0 }, { "Xfr", "\xf0\x9d\x94\x9b\x00", 0, 0 }, { "xfr", "\xf0\x9d\x94\xb5\x00", 0, 0 }, { "xhArr", "\xe2\x9f\xba\x00", 0, 0 }, { "xharr", "\xe2\x9f\xb7\x00", 0, 0 }, { "Xi", "\xce\x9e\x00", 0, 0 }, { "xi", "\xce\xbe\x00", 0, 0 }, { "xlArr", "\xe2\x9f\xb8\x00", 0, 0 }, { "xlarr", "\xe2\x9f\xb5\x00", 0, 0 }, { "xmap", "\xe2\x9f\xbc\x00", 0, 0 }, { "xnis", "\xe2\x8b\xbb\x00", 0, 0 }, { "xodot", "\xe2\xa8\x80\x00", 0, 0 }, { "Xopf", "\xf0\x9d\x95\x8f\x00", 0, 0 }, { "xopf", "\xf0\x9d\x95\xa9\x00", 0, 0 }, { "xoplus", "\xe2\xa8\x81\x00", 0, 0 }, { "xotime", "\xe2\xa8\x82\x00", 0, 0 }, { "xrArr", "\xe2\x9f\xb9\x00", 0, 0 }, { "xrarr", "\xe2\x9f\xb6\x00", 0, 0 }, { "Xscr", "\xf0\x9d\x92\xb3\x00", 0, 0 }, { "xscr", "\xf0\x9d\x93\x8d\x00", 0, 0 }, { "xsqcup", "\xe2\xa8\x86\x00", 0, 0 }, { "xuplus", "\xe2\xa8\x84\x00", 0, 0 }, { "xutri", "\xe2\x96\xb3\x00", 0, 0 }, { "xvee", "\xe2\x8b\x81\x00", 0, 0 }, { "xwedge", "\xe2\x8b\x80\x00", 0, 0 }, { "Yacute", "\xc3\x9d\x00", 0, 0 }, { "yacute", "\xc3\xbd\x00", 0, 0 }, { "YAcy", "\xd0\xaf\x00", 0, 0 }, { "yacy", "\xd1\x8f\x00", 0, 0 }, { "Ycirc", "\xc5\xb6\x00", 0, 0 }, { "ycirc", "\xc5\xb7\x00", 0, 0 }, { "Ycy", "\xd0\xab\x00", 0, 0 }, { "ycy", "\xd1\x8b\x00", 0, 0 }, { "yen", "\xc2\xa5\x00", 0, 0 }, { "Yfr", "\xf0\x9d\x94\x9c\x00", 0, 0 }, { "yfr", "\xf0\x9d\x94\xb6\x00", 0, 0 }, { "YIcy", "\xd0\x87\x00", 0, 0 }, { "yicy", "\xd1\x97\x00", 0, 0 }, { "Yopf", "\xf0\x9d\x95\x90\x00", 0, 0 }, { "yopf", "\xf0\x9d\x95\xaa\x00", 0, 0 }, { "Yscr", "\xf0\x9d\x92\xb4\x00", 0, 0 }, { "yscr", "\xf0\x9d\x93\x8e\x00", 0, 0 }, { "YUcy", "\xd0\xae\x00", 0, 0 }, { "yucy", "\xd1\x8e\x00", 0, 0 }, { "Yuml", "\xc5\xb8\x00", 0, 0 }, { "yuml", "\xc3\xbf\x00", 0, 0 }, { "Zacute", "\xc5\xb9\x00", 0, 0 }, { "zacute", "\xc5\xba\x00", 0, 0 }, { "Zcaron", "\xc5\xbd\x00", 0, 0 }, { "zcaron", "\xc5\xbe\x00", 0, 0 }, { "Zcy", "\xd0\x97\x00", 0, 0 }, { "zcy", "\xd0\xb7\x00", 0, 0 }, { "Zdot", "\xc5\xbb\x00", 0, 0 }, { "zdot", "\xc5\xbc\x00", 0, 0 }, { "zeetrf", "\xe2\x84\xa8\x00", 0, 0 }, { "ZeroWidthSpace", "\xe2\x80\x8b\x00", 0, 0 }, { "zeta", "\xce\xb6\x00", 0, 0 }, { "Zfr", "\xe2\x84\xa8\x00", 0, 0 }, { "zfr", "\xf0\x9d\x94\xb7\x00", 0, 0 }, { "ZHcy", "\xd0\x96\x00", 0, 0 }, { "zhcy", "\xd0\xb6\x00", 0, 0 }, { "zigrarr", "\xe2\x87\x9d\x00", 0, 0 }, { "Zopf", "\xe2\x84\xa4\x00", 0, 0 }, { "zopf", "\xf0\x9d\x95\xab\x00", 0, 0 }, { "Zscr", "\xf0\x9d\x92\xb5\x00", 0, 0 }, { "zscr", "\xf0\x9d\x93\x8f\x00", 0, 0 }, gtkmathview-0.8.0/auto/config.dirs0000644000175000017500000000014510704610655014076 00000000000000#define PKGDATADIR "/usr/local/share/gtkmathview" #define PKGSYSCONFDIR "/usr/local/etc/gtkmathview" gtkmathview-0.8.0/auto/token.dec0000644000175000017500000000605610704610655013552 00000000000000 T_ACCENT, T_ACCENTUNDER, T_ACTIONTYPE, T_ACTUARIAL, T_ALIGN, T_ALIGNMENTSCOPE, T_ALT, T_AQUA, T_AUTO, T_AXIS, T_BACKGROUND, T_BADBREAK, T_BASELINE, T_BEVELLED, T_BIG, T_BLACK, T_BLOCK, T_BLUE, T_BOLD, T_BOLD_FRAKTUR, T_BOLD_ITALIC, T_BOLD_SANS_SERIF, T_BOLD_SCRIPT, T_BOTTOM, T_BSPACE, T_CENTER, T_CLASS, T_CLOSE, T_CM, T_COLOR, T_COLUMNALIGN, T_COLUMNLINES, T_COLUMNSPACING, T_COLUMNSPAN, T_COLUMNWIDTH, T_DASHED, T_DECIMALPOINT, T_DENOMALIGN, T_DEPTH, T_DISPLAY, T_DISPLAYSTYLE, T_DOCUMENT, T_DOUBLE_STRUCK, T_DUMMY, T_EDGE, T_EM, T_EQUALCOLUMNS, T_EQUALROWS, T_EX, T_FALSE, T_FENCE, T_FIT, T_FONTFAMILY, T_FONTSIZE, T_FONTSTYLE, T_FONTWEIGHT, T_FORM, T_FRAKTUR, T_FRAME, T_FRAMESPACING, T_FUCHSIA, T_GOODBREAK, T_GRAY, T_GREEN, T_GROUPALIGN, T_HEIGHT, T_ID, T_IN, T_INDENTINGNEWLINE, T_INDEX, T_INFINITY, T_INFIX, T_INLINE, T_ITALIC, T_LARGEOP, T__LBRACE, T_LEFT, T_LEFTOVERLAP, T_LIME, T_LINEBREAK, T_LINETHICKNESS, T_LONGDIV, T_LQUOTE, T_LSPACE, T_MACTION, T_MALIGNGROUP, T_MALIGNMARK, T_MAROON, T_MATH, T_MATHBACKGROUND, T_MATHCOLOR, T_MATHSIZE, T_MATHVARIANT, T_MAXSIZE, T_MCHAR, T_MEDIUM, T_MEDIUMMATHSPACE, T_MENCLOSE, T_MERROR, T_MFENCED, T_MFRAC, T_MGLYPH, T_MI, T_MINLABELSPACING, T_MINSIZE, T__MINUS, T_MLABELEDTR, T_MM, T_MMULTISCRIPTS, T_MN, T_MO, T_MODE, T_MONOSPACE, T_MOVABLELIMITS, T_MOVER, T_MPADDED, T_MPHANTOM, T_MPRESCRIPTS, T_MROOT, T_MROW, T_MS, T_MSPACE, T_MSQRT, T_MSTYLE, T_MSUB, T_MSUBSUP, T_MSUP, T_MTABLE, T_MTD, T_MTEXT, T_MTR, T_MUNDER, T_MUNDEROVER, T_NAME, T_NAVY, T_NEGATIVEMEDIUMMATHSPACE, T_NEGATIVETHICKMATHSPACE, T_NEGATIVETHINMATHSPACE, T_NEGATIVEVERYTHICKMATHSPACE, T_NEGATIVEVERYTHINMATHSPACE, T_NEGATIVEVERYVERYTHICKMATHSPACE, T_NEGATIVEVERYVERYTHINMATHSPACE, T_NEWLINE, T_NOBREAK, T_NONE, T_NORMAL, T_NOTATION, T_NUMALIGN, T_OLIVE, T_OPEN, T_OTHER, T_PC, T__PERCENTAGE, T__PLUS, T_POSTFIX, T_PREFIX, T_PT, T_PURPLE, T_PX, T_RADICAL, T__RBRACE, T_RED, T_RIGHT, T_RIGHTOVERLAP, T_ROWALIGN, T_ROWLINES, T_ROWSPACING, T_ROWSPAN, T_RQUOTE, T_RSPACE, T_SANS_SERIF, T_SANS_SERIF_BOLD_ITALIC, T_SANS_SERIF_ITALIC, T_SCRIPT, T_SCRIPTLEVEL, T_SCRIPTMINSIZE, T_SCRIPTSIZEMULTIPLIER, T_SELECTION, T_SEMANTICS, T_SEPARATOR, T_SEPARATORS, T_SIDE, T_SILVER, T_SMALL, T_SOLID, T_STRETCHY, T_STYLE, T_SUBSCRIPTSHIFT, T_SUPERSCRIPTSHIFT, T_SYMMETRIC, T_TEAL, T_THICK, T_THICKMATHSPACE, T_THIN, T_THINMATHSPACE, T_TOP, T_TRANSPARENT, T_TRUE, T_TSPACE, T_VERYTHICKMATHSPACE, T_VERYTHINMATHSPACE, T_VERYVERYTHICKMATHSPACE, T_VERYVERYTHINMATHSPACE, T_WHITE, T_WIDTH, T_YELLOW, gtkmathview-0.8.0/auto/list-to-def.xsl0000644000175000017500000000054310613606773014634 00000000000000 { T_, "" }, gtkmathview-0.8.0/auto/entitiesTable.inc_0000644000175000017500000024416110613606773015411 00000000000000{ "aacute", "\xc3\xa1\x00", 0, 0 }, { "Aacute", "\xc3\x81\x00", 0, 0 }, { "abreve", "\xc4\x83\x00", 0, 0 }, { "Abreve", "\xc4\x82\x00", 0, 0 }, { "ac", "\xe2\xa4\x8f\x00", 0, 0 }, { "acd", "\xe2\x88\xbf\x00", 0, 0 }, { "acE", "\xe2\xa7\x9b\x00", 0, 0 }, { "acirc", "\xc3\xa2\x00", 0, 0 }, { "Acirc", "\xc3\x82\x00", 0, 0 }, { "acute", "\xc2\xb4\x00", 0, 0 }, { "acy", "\xd0\xb0\x00", 0, 0 }, { "Acy", "\xd0\x90\x00", 0, 0 }, { "aelig", "\xc3\xa6\x00", 0, 0 }, { "AElig", "\xc3\x86\x00", 0, 0 }, { "af", "\xe2\x81\xa1\x00", 0, 0 }, { "afr", "\xf0\x9d\x94\x9e\x00", 0, 0 }, { "Afr", "\xf0\x9d\x94\x84\x00", 0, 0 }, { "agrave", "\xc3\xa0\x00", 0, 0 }, { "Agrave", "\xc3\x80\x00", 0, 0 }, { "aleph", "\xe2\x84\xb5\x00", 0, 0 }, { "alpha", "\xce\xb1\x00", 0, 0 }, { "amacr", "\xc4\x81\x00", 0, 0 }, { "Amacr", "\xc4\x80\x00", 0, 0 }, { "amalg", "\xe2\xa8\xbf\x00", 0, 0 }, { "amp", "\x26\x00", 0, 0 }, { "and", "\xe2\x88\xa7\x00", 0, 0 }, { "And", "\xe2\xa9\x93\x00", 0, 0 }, { "andand", "\xe2\xa9\x95\x00", 0, 0 }, { "andd", "\xe2\xa9\x9c\x00", 0, 0 }, { "andslope", "\xe2\xa9\x98\x00", 0, 0 }, { "andv", "\xe2\xa9\x9a\x00", 0, 0 }, { "ang", "\xe2\x88\xa0\x00", 0, 0 }, { "ange", "\xe2\xa6\xa4\x00", 0, 0 }, { "angle", "\xe2\x88\xa0\x00", 0, 0 }, { "angmsd", "\xe2\x88\xa1\x00", 0, 0 }, { "angmsdaa", "\xe2\xa6\xa8\x00", 0, 0 }, { "angmsdab", "\xe2\xa6\xa9\x00", 0, 0 }, { "angmsdac", "\xe2\xa6\xaa\x00", 0, 0 }, { "angmsdad", "\xe2\xa6\xab\x00", 0, 0 }, { "angmsdae", "\xe2\xa6\xac\x00", 0, 0 }, { "angmsdaf", "\xe2\xa6\xad\x00", 0, 0 }, { "angmsdag", "\xe2\xa6\xae\x00", 0, 0 }, { "angmsdah", "\xe2\xa6\xaf\x00", 0, 0 }, { "angrt", "\xe2\x88\x9f\x00", 0, 0 }, { "angrtvb", "\xe2\xa6\x9d\xef\xb8\x80\x00", 0, 0 }, { "angrtvbd", "\xe2\xa6\x9d\x00", 0, 0 }, { "angsph", "\xe2\x88\xa2\x00", 0, 0 }, { "angst", "\xe2\x84\xab\x00", 0, 0 }, { "angzarr", "\xe2\x8d\xbc\x00", 0, 0 }, { "aogon", "\xc4\x85\x00", 0, 0 }, { "Aogon", "\xc4\x84\x00", 0, 0 }, { "aopf", "\xf0\x9d\x95\x92\x00", 0, 0 }, { "Aopf", "\xf0\x9d\x94\xb8\x00", 0, 0 }, { "ap", "\xe2\x89\x88\x00", 0, 0 }, { "apacir", "\xe2\xa9\xaf\x00", 0, 0 }, { "ape", "\xe2\x89\x8a\x00", 0, 0 }, { "apE", "\xe2\x89\x8a\x00", 0, 0 }, { "apid", "\xe2\x89\x8b\x00", 0, 0 }, { "apos", "\x27\x00", 0, 0 }, { "ApplyFunction", "\xe2\x81\xa1\x00", 0, 0 }, { "approx", "\xe2\x89\x88\x00", 0, 0 }, { "approxeq", "\xe2\x89\x8a\x00", 0, 0 }, { "aring", "\xc3\xa5\x00", 0, 0 }, { "Aring", "\xc3\x85\x00", 0, 0 }, { "ascr", "\xf0\x9d\x92\xb6\x00", 0, 0 }, { "Ascr", "\xf0\x9d\x92\x9c\x00", 0, 0 }, { "Assign", "\xe2\x89\x94\x00", 0, 0 }, { "ast", "\x2a\x00", 0, 0 }, { "asymp", "\xe2\x89\x8d\x00", 0, 0 }, { "atilde", "\xc3\xa3\x00", 0, 0 }, { "Atilde", "\xc3\x83\x00", 0, 0 }, { "auml", "\xc3\xa4\x00", 0, 0 }, { "Auml", "\xc3\x84\x00", 0, 0 }, { "awconint", "\xe2\x88\xb3\x00", 0, 0 }, { "awint", "\xe2\xa8\x91\x00", 0, 0 }, { "backcong", "\xe2\x89\x8c\x00", 0, 0 }, { "backepsilon", "\xcf\xb6\x00", 0, 0 }, { "backprime", "\xe2\x80\xb5\x00", 0, 0 }, { "backsim", "\xe2\x88\xbd\x00", 0, 0 }, { "backsimeq", "\xe2\x8b\x8d\x00", 0, 0 }, { "Backslash", "\xe2\x88\x96\x00", 0, 0 }, { "Barv", "\xe2\xab\xa7\x00", 0, 0 }, { "barvee", "\xe2\x8a\xbd\x00", 0, 0 }, { "barwed", "\xe2\x8a\xbc\x00", 0, 0 }, { "Barwed", "\xe2\x8c\x86\x00", 0, 0 }, { "barwedge", "\xe2\x8a\xbc\x00", 0, 0 }, { "bbrk", "\xe2\x8e\xb5\x00", 0, 0 }, { "bcong", "\xe2\x89\x8c\x00", 0, 0 }, { "bcy", "\xd0\xb1\x00", 0, 0 }, { "Bcy", "\xd0\x91\x00", 0, 0 }, { "becaus", "\xe2\x88\xb5\x00", 0, 0 }, { "because", "\xe2\x88\xb5\x00", 0, 0 }, { "Because", "\xe2\x88\xb5\x00", 0, 0 }, { "bemptyv", "\xe2\xa6\xb0\x00", 0, 0 }, { "bepsi", "\xcf\xb6\x00", 0, 0 }, { "bernou", "\xe2\x84\xac\x00", 0, 0 }, { "Bernoullis", "\xe2\x84\xac\x00", 0, 0 }, { "beta", "\xce\xb2\x00", 0, 0 }, { "beth", "\xe2\x84\xb6\x00", 0, 0 }, { "between", "\xe2\x89\xac\x00", 0, 0 }, { "bfr", "\xf0\x9d\x94\x9f\x00", 0, 0 }, { "Bfr", "\xf0\x9d\x94\x85\x00", 0, 0 }, { "bigcap", "\xe2\x8b\x82\x00", 0, 0 }, { "bigcirc", "\xe2\x97\xaf\x00", 0, 0 }, { "bigcup", "\xe2\x8b\x83\x00", 0, 0 }, { "bigodot", "\xe2\x8a\x99\x00", 0, 0 }, { "bigoplus", "\xe2\x8a\x95\x00", 0, 0 }, { "bigotimes", "\xe2\x8a\x97\x00", 0, 0 }, { "bigsqcup", "\xe2\x8a\x94\x00", 0, 0 }, { "bigstar", "\xe2\x98\x85\x00", 0, 0 }, { "bigtriangledown", "\xe2\x96\xbd\x00", 0, 0 }, { "bigtriangleup", "\xe2\x96\xb3\x00", 0, 0 }, { "biguplus", "\xe2\x8a\x8e\x00", 0, 0 }, { "bigvee", "\xe2\x8b\x81\x00", 0, 0 }, { "bigwedge", "\xe2\x8b\x80\x00", 0, 0 }, { "bkarow", "\xe2\xa4\x8d\x00", 0, 0 }, { "blacklozenge", "\xe2\xa7\xab\x00", 0, 0 }, { "blacksquare", "\xe2\x96\xaa\x00", 0, 0 }, { "blacktriangle", "\xe2\x96\xb4\x00", 0, 0 }, { "blacktriangledown", "\xe2\x96\xbe\x00", 0, 0 }, { "blacktriangleleft", "\xe2\x97\x82\x00", 0, 0 }, { "blacktriangleright", "\xe2\x96\xb8\x00", 0, 0 }, { "blank", "\xe2\x90\xa3\x00", 0, 0 }, { "blk12", "\xe2\x96\x92\x00", 0, 0 }, { "blk14", "\xe2\x96\x91\x00", 0, 0 }, { "blk34", "\xe2\x96\x93\x00", 0, 0 }, { "block", "\xe2\x96\x88\x00", 0, 0 }, { "bne", "\x3d\xe2\x83\xa5\x00", 0, 0 }, { "bnequiv", "\xe2\x89\xa1\xe2\x83\xa5\x00", 0, 0 }, { "bnot", "\xe2\x8c\x90\x00", 0, 0 }, { "bNot", "\xe2\xab\xad\x00", 0, 0 }, { "bopf", "\xf0\x9d\x95\x93\x00", 0, 0 }, { "Bopf", "\xf0\x9d\x94\xb9\x00", 0, 0 }, { "bot", "\xe2\x8a\xa5\x00", 0, 0 }, { "bottom", "\xe2\x8a\xa5\x00", 0, 0 }, { "bowtie", "\xe2\x8b\x88\x00", 0, 0 }, { "boxbox", "\xe2\xa7\x89\x00", 0, 0 }, { "boxdl", "\xe2\x94\x90\x00", 0, 0 }, { "boxdL", "\xe2\x95\x95\x00", 0, 0 }, { "boxDl", "\xe2\x95\x96\x00", 0, 0 }, { "boxDL", "\xe2\x95\x97\x00", 0, 0 }, { "boxdr", "\xe2\x94\x8c\x00", 0, 0 }, { "boxdR", "\xe2\x95\x92\x00", 0, 0 }, { "boxDr", "\xe2\x95\x93\x00", 0, 0 }, { "boxDR", "\xe2\x95\x94\x00", 0, 0 }, { "boxh", "\xe2\x94\x80\x00", 0, 0 }, { "boxH", "\xe2\x95\x90\x00", 0, 0 }, { "boxhd", "\xe2\x94\xac\x00", 0, 0 }, { "boxhD", "\xe2\x95\xa5\x00", 0, 0 }, { "boxHd", "\xe2\x95\xa4\x00", 0, 0 }, { "boxHD", "\xe2\x95\xa6\x00", 0, 0 }, { "boxhu", "\xe2\x94\xb4\x00", 0, 0 }, { "boxhU", "\xe2\x95\xa8\x00", 0, 0 }, { "boxHu", "\xe2\x95\xa7\x00", 0, 0 }, { "boxHU", "\xe2\x95\xa9\x00", 0, 0 }, { "boxminus", "\xe2\x8a\x9f\x00", 0, 0 }, { "boxplus", "\xe2\x8a\x9e\x00", 0, 0 }, { "boxtimes", "\xe2\x8a\xa0\x00", 0, 0 }, { "boxul", "\xe2\x94\x98\x00", 0, 0 }, { "boxuL", "\xe2\x95\x9b\x00", 0, 0 }, { "boxUl", "\xe2\x95\x9c\x00", 0, 0 }, { "boxUL", "\xe2\x95\x9d\x00", 0, 0 }, { "boxur", "\xe2\x94\x94\x00", 0, 0 }, { "boxuR", "\xe2\x95\x98\x00", 0, 0 }, { "boxUr", "\xe2\x95\x99\x00", 0, 0 }, { "boxUR", "\xe2\x95\x9a\x00", 0, 0 }, { "boxv", "\xe2\x94\x82\x00", 0, 0 }, { "boxV", "\xe2\x95\x91\x00", 0, 0 }, { "boxvh", "\xe2\x94\xbc\x00", 0, 0 }, { "boxvH", "\xe2\x95\xaa\x00", 0, 0 }, { "boxVh", "\xe2\x95\xab\x00", 0, 0 }, { "boxVH", "\xe2\x95\xac\x00", 0, 0 }, { "boxvl", "\xe2\x94\xa4\x00", 0, 0 }, { "boxvL", "\xe2\x95\xa1\x00", 0, 0 }, { "boxVl", "\xe2\x95\xa2\x00", 0, 0 }, { "boxVL", "\xe2\x95\xa3\x00", 0, 0 }, { "boxvr", "\xe2\x94\x9c\x00", 0, 0 }, { "boxvR", "\xe2\x95\x9e\x00", 0, 0 }, { "boxVr", "\xe2\x95\x9f\x00", 0, 0 }, { "boxVR", "\xe2\x95\xa0\x00", 0, 0 }, { "bprime", "\xe2\x80\xb5\x00", 0, 0 }, { "breve", "\xcb\x98\x00", 0, 0 }, { "Breve", "\xcb\x98\x00", 0, 0 }, { "brvbar", "\xc2\xa6\x00", 0, 0 }, { "bscr", "\xf0\x9d\x92\xb7\x00", 0, 0 }, { "Bscr", "\xe2\x84\xac\x00", 0, 0 }, { "bsemi", "\xe2\x81\x8f\x00", 0, 0 }, { "bsim", "\xe2\x88\xbd\x00", 0, 0 }, { "bsime", "\xe2\x8b\x8d\x00", 0, 0 }, { "bsol", "\x5c\x00", 0, 0 }, { "bsolb", "\xe2\xa7\x85\x00", 0, 0 }, { "bsolhsub", "\x5c\xe2\x8a\x82\x00", 0, 0 }, { "bull", "\xe2\x80\xa2\x00", 0, 0 }, { "bullet", "\xe2\x80\xa2\x00", 0, 0 }, { "bump", "\xe2\x89\x8e\x00", 0, 0 }, { "bumpe", "\xe2\x89\x8f\x00", 0, 0 }, { "bumpE", "\xe2\xaa\xae\x00", 0, 0 }, { "bumpeq", "\xe2\x89\x8f\x00", 0, 0 }, { "Bumpeq", "\xe2\x89\x8e\x00", 0, 0 }, { "cacute", "\xc4\x87\x00", 0, 0 }, { "Cacute", "\xc4\x86\x00", 0, 0 }, { "cap", "\xe2\x88\xa9\x00", 0, 0 }, { "Cap", "\xe2\x8b\x92\x00", 0, 0 }, { "capand", "\xe2\xa9\x84\x00", 0, 0 }, { "capbrcup", "\xe2\xa9\x89\x00", 0, 0 }, { "capcap", "\xe2\xa9\x8b\x00", 0, 0 }, { "capcup", "\xe2\xa9\x87\x00", 0, 0 }, { "capdot", "\xe2\xa9\x80\x00", 0, 0 }, { "CapitalDifferentialD", "\xe2\x85\x85\x00", 0, 0 }, { "caps", "\xe2\x88\xa9\xef\xb8\x80\x00", 0, 0 }, { "caret", "\xe2\x81\x81\x00", 0, 0 }, { "caron", "\xcb\x87\x00", 0, 0 }, { "Cayleys", "\xe2\x84\xad\x00", 0, 0 }, { "ccaps", "\xe2\xa9\x8d\x00", 0, 0 }, { "ccaron", "\xc4\x8d\x00", 0, 0 }, { "Ccaron", "\xc4\x8c\x00", 0, 0 }, { "ccedil", "\xc3\xa7\x00", 0, 0 }, { "Ccedil", "\xc3\x87\x00", 0, 0 }, { "ccirc", "\xc4\x89\x00", 0, 0 }, { "Ccirc", "\xc4\x88\x00", 0, 0 }, { "Cconint", "\xe2\x88\xb0\x00", 0, 0 }, { "ccups", "\xe2\xa9\x8c\x00", 0, 0 }, { "ccupssm", "\xe2\xa9\x90\x00", 0, 0 }, { "cdot", "\xc4\x8b\x00", 0, 0 }, { "Cdot", "\xc4\x8a\x00", 0, 0 }, { "cedil", "\xc2\xb8\x00", 0, 0 }, { "Cedilla", "\xc2\xb8\x00", 0, 0 }, { "cemptyv", "\xe2\xa6\xb2\x00", 0, 0 }, { "cent", "\xc2\xa2\x00", 0, 0 }, { "centerdot", "\xc2\xb7\x00", 0, 0 }, { "CenterDot", "\xc2\xb7\x00", 0, 0 }, { "cfr", "\xf0\x9d\x94\xa0\x00", 0, 0 }, { "Cfr", "\xe2\x84\xad\x00", 0, 0 }, { "chcy", "\xd1\x87\x00", 0, 0 }, { "CHcy", "\xd0\xa7\x00", 0, 0 }, { "check", "\xe2\x9c\x93\x00", 0, 0 }, { "checkmark", "\xe2\x9c\x93\x00", 0, 0 }, { "chi", "\xcf\x87\x00", 0, 0 }, { "cir", "\xe2\x97\x8b\x00", 0, 0 }, { "circ", "\x5e\x00", 0, 0 }, { "circeq", "\xe2\x89\x97\x00", 0, 0 }, { "circlearrowleft", "\xe2\x86\xba\x00", 0, 0 }, { "circlearrowright", "\xe2\x86\xbb\x00", 0, 0 }, { "circledast", "\xe2\x8a\x9b\x00", 0, 0 }, { "circledcirc", "\xe2\x8a\x9a\x00", 0, 0 }, { "circleddash", "\xe2\x8a\x9d\x00", 0, 0 }, { "CircleDot", "\xe2\x8a\x99\x00", 0, 0 }, { "circledR", "\xc2\xae\x00", 0, 0 }, { "circledS", "\xe2\x93\x88\x00", 0, 0 }, { "CircleMinus", "\xe2\x8a\x96\x00", 0, 0 }, { "CirclePlus", "\xe2\x8a\x95\x00", 0, 0 }, { "CircleTimes", "\xe2\x8a\x97\x00", 0, 0 }, { "cire", "\xe2\x89\x97\x00", 0, 0 }, { "cirE", "\xe2\xa7\x83\x00", 0, 0 }, { "cirfnint", "\xe2\xa8\x90\x00", 0, 0 }, { "cirmid", "\xe2\xab\xaf\x00", 0, 0 }, { "cirscir", "\xe2\xa7\x82\x00", 0, 0 }, { "ClockwiseContourIntegral", "\xe2\x88\xb2\x00", 0, 0 }, { "CloseCurlyDoubleQuote", "\xe2\x80\x9d\x00", 0, 0 }, { "CloseCurlyQuote", "\xe2\x80\x99\x00", 0, 0 }, { "clubs", "\xe2\x99\xa3\x00", 0, 0 }, { "clubsuit", "\xe2\x99\xa3\x00", 0, 0 }, { "colon", "\x3a\x00", 0, 0 }, { "Colon", "\xe2\x88\xb7\x00", 0, 0 }, { "colone", "\xe2\x89\x94\x00", 0, 0 }, { "Colone", "\xe2\xa9\xb4\x00", 0, 0 }, { "coloneq", "\xe2\x89\x94\x00", 0, 0 }, { "comma", "\x2c\x00", 0, 0 }, { "commat", "\x40\x00", 0, 0 }, { "comp", "\xe2\x88\x81\x00", 0, 0 }, { "compfn", "\xe2\x88\x98\x00", 0, 0 }, { "complement", "\xe2\x88\x81\x00", 0, 0 }, { "complexes", "\xe2\x84\x82\x00", 0, 0 }, { "cong", "\xe2\x89\x85\x00", 0, 0 }, { "congdot", "\xe2\xa9\xad\x00", 0, 0 }, { "Congruent", "\xe2\x89\xa1\x00", 0, 0 }, { "conint", "\xe2\x88\xae\x00", 0, 0 }, { "Conint", "\xe2\x88\xaf\x00", 0, 0 }, { "ContourIntegral", "\xe2\x88\xae\x00", 0, 0 }, { "copf", "\xf0\x9d\x95\x94\x00", 0, 0 }, { "Copf", "\xe2\x84\x82\x00", 0, 0 }, { "coprod", "\xe2\x88\x90\x00", 0, 0 }, { "Coproduct", "\xe2\x88\x90\x00", 0, 0 }, { "copy", "\xc2\xa9\x00", 0, 0 }, { "copysr", "\xe2\x84\x97\x00", 0, 0 }, { "CounterClockwiseContourIntegral", "\xe2\x88\xb3\x00", 0, 0 }, { "cross", "\xe2\x9c\x97\x00", 0, 0 }, { "Cross", "\xe2\xa8\xaf\x00", 0, 0 }, { "cscr", "\xf0\x9d\x92\xb8\x00", 0, 0 }, { "Cscr", "\xf0\x9d\x92\x9e\x00", 0, 0 }, { "csub", "\xe2\xab\x8f\x00", 0, 0 }, { "csube", "\xe2\xab\x91\x00", 0, 0 }, { "csup", "\xe2\xab\x90\x00", 0, 0 }, { "csupe", "\xe2\xab\x92\x00", 0, 0 }, { "ctdot", "\xe2\x8b\xaf\x00", 0, 0 }, { "cudarrl", "\xe2\xa4\xb8\x00", 0, 0 }, { "cudarrr", "\xe2\xa4\xb5\x00", 0, 0 }, { "cuepr", "\xe2\x8b\x9e\x00", 0, 0 }, { "cuesc", "\xe2\x8b\x9f\x00", 0, 0 }, { "cularr", "\xe2\x86\xb6\x00", 0, 0 }, { "cularrp", "\xe2\xa4\xbd\x00", 0, 0 }, { "cup", "\xe2\x88\xaa\x00", 0, 0 }, { "Cup", "\xe2\x8b\x93\x00", 0, 0 }, { "cupbrcap", "\xe2\xa9\x88\x00", 0, 0 }, { "cupcap", "\xe2\xa9\x86\x00", 0, 0 }, { "CupCap", "\xe2\x89\x8d\x00", 0, 0 }, { "cupcup", "\xe2\xa9\x8a\x00", 0, 0 }, { "cupdot", "\xe2\x8a\x8d\x00", 0, 0 }, { "cupor", "\xe2\xa9\x85\x00", 0, 0 }, { "cups", "\xe2\x88\xaa\xef\xb8\x80\x00", 0, 0 }, { "curarr", "\xe2\x86\xb7\x00", 0, 0 }, { "curarrm", "\xe2\xa4\xbc\x00", 0, 0 }, { "curlyeqprec", "\xe2\x8b\x9e\x00", 0, 0 }, { "curlyeqsucc", "\xe2\x8b\x9f\x00", 0, 0 }, { "curlyvee", "\xe2\x8b\x8e\x00", 0, 0 }, { "curlywedge", "\xe2\x8b\x8f\x00", 0, 0 }, { "curren", "\xc2\xa4\x00", 0, 0 }, { "curvearrowleft", "\xe2\x86\xb6\x00", 0, 0 }, { "curvearrowright", "\xe2\x86\xb7\x00", 0, 0 }, { "cuvee", "\xe2\x8b\x8e\x00", 0, 0 }, { "cuwed", "\xe2\x8b\x8f\x00", 0, 0 }, { "cwconint", "\xe2\x88\xb2\x00", 0, 0 }, { "cwint", "\xe2\x88\xb1\x00", 0, 0 }, { "cylcty", "\xe2\x8c\xad\x00", 0, 0 }, { "dagger", "\xe2\x80\xa0\x00", 0, 0 }, { "dagger", "\xe2\x80\xa0\x00", 0, 0 }, { "Dagger", "\xe2\x80\xa1\x00", 0, 0 }, { "Dagger", "\xe2\x80\xa1\x00", 0, 0 }, { "daleth", "\xe2\x84\xb8\x00", 0, 0 }, { "darr", "\xe2\x86\x93\x00", 0, 0 }, { "dArr", "\xe2\x87\x93\x00", 0, 0 }, { "Darr", "\xe2\x86\xa1\x00", 0, 0 }, { "dash", "\xe2\x80\x90\x00", 0, 0 }, { "dashv", "\xe2\x8a\xa3\x00", 0, 0 }, { "Dashv", "\xe2\xab\xa4\x00", 0, 0 }, { "dbkarow", "\xe2\xa4\x8f\x00", 0, 0 }, { "dblac", "\xcb\x9d\x00", 0, 0 }, { "dcaron", "\xc4\x8f\x00", 0, 0 }, { "Dcaron", "\xc4\x8e\x00", 0, 0 }, { "dcy", "\xd0\xb4\x00", 0, 0 }, { "Dcy", "\xd0\x94\x00", 0, 0 }, { "dd", "\xe2\x85\x86\x00", 0, 0 }, { "DD", "\xe2\x85\x85\x00", 0, 0 }, { "ddagger", "\xe2\x80\xa1\x00", 0, 0 }, { "ddarr", "\xe2\x87\x8a\x00", 0, 0 }, { "DDotrahd", "\xe2\xa4\x91\x00", 0, 0 }, { "ddotseq", "\xe2\xa9\xb7\x00", 0, 0 }, { "deg", "\xc2\xb0\x00", 0, 0 }, { "Del", "\xe2\x88\x87\x00", 0, 0 }, { "delta", "\xce\xb4\x00", 0, 0 }, { "Delta", "\xce\x94\x00", 0, 0 }, { "demptyv", "\xe2\xa6\xb1\x00", 0, 0 }, { "dfisht", "\xe2\xa5\xbf\x00", 0, 0 }, { "dfr", "\xf0\x9d\x94\xa1\x00", 0, 0 }, { "Dfr", "\xf0\x9d\x94\x87\x00", 0, 0 }, { "dHar", "\xe2\xa5\xa5\x00", 0, 0 }, { "dharl", "\xe2\x87\x83\x00", 0, 0 }, { "dharr", "\xe2\x87\x82\x00", 0, 0 }, { "DiacriticalAcute", "\xc2\xb4\x00", 0, 0 }, { "DiacriticalDot", "\xcb\x99\x00", 0, 0 }, { "DiacriticalDoubleAcute", "\xcb\x9d\x00", 0, 0 }, { "DiacriticalGrave", "\x60\x00", 0, 0 }, { "DiacriticalTilde", "\xcb\x9c\x00", 0, 0 }, { "diam", "\xe2\x8b\x84\x00", 0, 0 }, { "diamond", "\xe2\x8b\x84\x00", 0, 0 }, { "Diamond", "\xe2\x8b\x84\x00", 0, 0 }, { "diamondsuit", "\xe2\x99\xa6\x00", 0, 0 }, { "diams", "\xe2\x99\xa6\x00", 0, 0 }, { "die", "\xc2\xa8\x00", 0, 0 }, { "DifferentialD", "\xe2\x85\x86\x00", 0, 0 }, { "digamma", "\xcf\x9c\x00", 0, 0 }, { "disin", "\xe2\x8b\xb2\x00", 0, 0 }, { "div", "\xc3\xb7\x00", 0, 0 }, { "divide", "\xc3\xb7\x00", 0, 0 }, { "divideontimes", "\xe2\x8b\x87\x00", 0, 0 }, { "divonx", "\xe2\x8b\x87\x00", 0, 0 }, { "djcy", "\xd1\x92\x00", 0, 0 }, { "DJcy", "\xd0\x82\x00", 0, 0 }, { "dlcorn", "\xe2\x8c\x9e\x00", 0, 0 }, { "dlcrop", "\xe2\x8c\x8d\x00", 0, 0 }, { "dollar", "\x24\x00", 0, 0 }, { "dopf", "\xf0\x9d\x95\x95\x00", 0, 0 }, { "Dopf", "\xf0\x9d\x94\xbb\x00", 0, 0 }, { "dot", "\xcb\x99\x00", 0, 0 }, { "Dot", "\xc2\xa8\x00", 0, 0 }, { "DotDot", "\xe2\x83\x9c\x00", 0, 0 }, { "doteq", "\xe2\x89\x90\x00", 0, 0 }, { "doteqdot", "\xe2\x89\x91\x00", 0, 0 }, { "DotEqual", "\xe2\x89\x90\x00", 0, 0 }, { "dotminus", "\xe2\x88\xb8\x00", 0, 0 }, { "dotplus", "\xe2\x88\x94\x00", 0, 0 }, { "dotsquare", "\xe2\x8a\xa1\x00", 0, 0 }, { "doublebarwedge", "\xe2\x8c\x86\x00", 0, 0 }, { "DoubleContourIntegral", "\xe2\x88\xaf\x00", 0, 0 }, { "DoubleDot", "\xc2\xa8\x00", 0, 0 }, { "DoubleDownArrow", "\xe2\x87\x93\x00", 0, 0 }, { "DoubleLeftArrow", "\xe2\x87\x90\x00", 0, 0 }, { "DoubleLeftRightArrow", "\xe2\x87\x94\x00", 0, 0 }, { "DoubleLeftTee", "\xe2\xab\xa4\x00", 0, 0 }, { "DoubleLongLeftArrow", "\xef\x95\xb9\x00", 0, 0 }, { "DoubleLongLeftRightArrow", "\xef\x95\xbb\x00", 0, 0 }, { "DoubleLongRightArrow", "\xef\x95\xba\x00", 0, 0 }, { "DoubleRightArrow", "\xe2\x87\x92\x00", 0, 0 }, { "DoubleRightTee", "\xe2\x8a\xa8\x00", 0, 0 }, { "DoubleUpArrow", "\xe2\x87\x91\x00", 0, 0 }, { "DoubleUpDownArrow", "\xe2\x87\x95\x00", 0, 0 }, { "DoubleVerticalBar", "\xe2\x88\xa5\x00", 0, 0 }, { "downarrow", "\xe2\x86\x93\x00", 0, 0 }, { "Downarrow", "\xe2\x87\x93\x00", 0, 0 }, { "DownArrow", "\xe2\x86\x93\x00", 0, 0 }, { "DownArrowBar", "\xe2\xa4\x93\x00", 0, 0 }, { "DownArrowUpArrow", "\xe2\x87\xb5\x00", 0, 0 }, { "DownBreve", "\xcc\x91\x00", 0, 0 }, { "downdownarrows", "\xe2\x87\x8a\x00", 0, 0 }, { "downharpoonleft", "\xe2\x87\x83\x00", 0, 0 }, { "downharpoonright", "\xe2\x87\x82\x00", 0, 0 }, { "DownLeftRightVector", "\xe2\xa5\x90\x00", 0, 0 }, { "DownLeftTeeVector", "\xe2\xa5\x9e\x00", 0, 0 }, { "DownLeftVector", "\xe2\x86\xbd\x00", 0, 0 }, { "DownLeftVectorBar", "\xe2\xa5\x96\x00", 0, 0 }, { "DownRightTeeVector", "\xe2\xa5\x9f\x00", 0, 0 }, { "DownRightVector", "\xe2\x87\x81\x00", 0, 0 }, { "DownRightVectorBar", "\xe2\xa5\x97\x00", 0, 0 }, { "DownTee", "\xe2\x8a\xa4\x00", 0, 0 }, { "DownTeeArrow", "\xe2\x86\xa7\x00", 0, 0 }, { "drbkarow", "\xe2\xa4\x90\x00", 0, 0 }, { "drcorn", "\xe2\x8c\x9f\x00", 0, 0 }, { "drcrop", "\xe2\x8c\x8c\x00", 0, 0 }, { "dscr", "\xf0\x9d\x92\xb9\x00", 0, 0 }, { "Dscr", "\xf0\x9d\x92\x9f\x00", 0, 0 }, { "dscy", "\xd1\x95\x00", 0, 0 }, { "DScy", "\xd0\x85\x00", 0, 0 }, { "dsol", "\xe2\xa7\xb6\x00", 0, 0 }, { "dstrok", "\xc4\x91\x00", 0, 0 }, { "Dstrok", "\xc4\x90\x00", 0, 0 }, { "dtdot", "\xe2\x8b\xb1\x00", 0, 0 }, { "dtri", "\xe2\x96\xbf\x00", 0, 0 }, { "dtrif", "\xe2\x96\xbe\x00", 0, 0 }, { "duarr", "\xe2\x87\xb5\x00", 0, 0 }, { "duhar", "\xe2\xa5\xaf\x00", 0, 0 }, { "dwangle", "\xe2\xa6\xa6\x00", 0, 0 }, { "dzcy", "\xd1\x9f\x00", 0, 0 }, { "DZcy", "\xd0\x8f\x00", 0, 0 }, { "dzigrarr", "\xef\x96\xa2\x00", 0, 0 }, { "eacute", "\xc3\xa9\x00", 0, 0 }, { "Eacute", "\xc3\x89\x00", 0, 0 }, { "easter", "\xe2\x89\x9b\x00", 0, 0 }, { "ecaron", "\xc4\x9b\x00", 0, 0 }, { "Ecaron", "\xc4\x9a\x00", 0, 0 }, { "ecir", "\xe2\x89\x96\x00", 0, 0 }, { "ecirc", "\xc3\xaa\x00", 0, 0 }, { "Ecirc", "\xc3\x8a\x00", 0, 0 }, { "ecolon", "\xe2\x89\x95\x00", 0, 0 }, { "ecy", "\xd1\x8d\x00", 0, 0 }, { "Ecy", "\xd0\xad\x00", 0, 0 }, { "eDDot", "\xe2\xa9\xb7\x00", 0, 0 }, { "edot", "\xc4\x97\x00", 0, 0 }, { "eDot", "\xe2\x89\x91\x00", 0, 0 }, { "Edot", "\xc4\x96\x00", 0, 0 }, { "ee", "\xe2\x85\x87\x00", 0, 0 }, { "efDot", "\xe2\x89\x92\x00", 0, 0 }, { "efr", "\xf0\x9d\x94\xa2\x00", 0, 0 }, { "Efr", "\xf0\x9d\x94\x88\x00", 0, 0 }, { "eg", "\xe2\xaa\x9a\x00", 0, 0 }, { "egrave", "\xc3\xa8\x00", 0, 0 }, { "Egrave", "\xc3\x88\x00", 0, 0 }, { "egs", "\xe2\x8b\x9d\x00", 0, 0 }, { "egsdot", "\xe2\xaa\x98\x00", 0, 0 }, { "el", "\xe2\xaa\x99\x00", 0, 0 }, { "Element", "\xe2\x88\x88\x00", 0, 0 }, { "ell", "\xe2\x84\x93\x00", 0, 0 }, { "els", "\xe2\x8b\x9c\x00", 0, 0 }, { "elsdot", "\xe2\xaa\x97\x00", 0, 0 }, { "emacr", "\xc4\x93\x00", 0, 0 }, { "Emacr", "\xc4\x92\x00", 0, 0 }, { "empty", "\xe2\x88\x85\xef\xb8\x80\x00", 0, 0 }, { "emptyset", "\xe2\x88\x85\xef\xb8\x80\x00", 0, 0 }, { "EmptySmallSquare", "\xe2\x97\xbd\x00", 0, 0 }, { "emptyv", "\xe2\x88\x85\x00", 0, 0 }, { "EmptyVerySmallSquare", "\xef\x96\x9c\x00", 0, 0 }, { "emsp", "\xe2\x80\x83\x00", 0, 0 }, { "emsp13", "\xe2\x80\x84\x00", 0, 0 }, { "emsp14", "\xe2\x80\x85\x00", 0, 0 }, { "eng", "\xc5\x8b\x00", 0, 0 }, { "ENG", "\xc5\x8a\x00", 0, 0 }, { "ensp", "\xe2\x80\x82\x00", 0, 0 }, { "eogon", "\xc4\x99\x00", 0, 0 }, { "Eogon", "\xc4\x98\x00", 0, 0 }, { "eopf", "\xf0\x9d\x95\x96\x00", 0, 0 }, { "Eopf", "\xf0\x9d\x94\xbc\x00", 0, 0 }, { "epar", "\xe2\x8b\x95\x00", 0, 0 }, { "eparsl", "\xe2\xa7\xa3\x00", 0, 0 }, { "eplus", "\xe2\xa9\xb1\x00", 0, 0 }, { "epsi", "\xce\xb5\x00", 0, 0 }, { "epsiv", "\xc9\x9b\x00", 0, 0 }, { "eqcirc", "\xe2\x89\x96\x00", 0, 0 }, { "eqcolon", "\xe2\x89\x95\x00", 0, 0 }, { "eqsim", "\xe2\x89\x82\x00", 0, 0 }, { "eqslantgtr", "\xe2\x8b\x9d\x00", 0, 0 }, { "eqslantless", "\xe2\x8b\x9c\x00", 0, 0 }, { "Equal", "\xe2\xa9\xb5\x00", 0, 0 }, { "equals", "\x3d\x00", 0, 0 }, { "EqualTilde", "\xe2\x89\x82\x00", 0, 0 }, { "equest", "\xe2\x89\x9f\x00", 0, 0 }, { "Equilibrium", "\xe2\x87\x8c\x00", 0, 0 }, { "equiv", "\xe2\x89\xa1\x00", 0, 0 }, { "equivDD", "\xe2\xa9\xb8\x00", 0, 0 }, { "eqvparsl", "\xe2\xa7\xa5\x00", 0, 0 }, { "erarr", "\xe2\xa5\xb1\x00", 0, 0 }, { "erDot", "\xe2\x89\x93\x00", 0, 0 }, { "escr", "\xe2\x84\xaf\x00", 0, 0 }, { "Escr", "\xe2\x84\xb0\x00", 0, 0 }, { "esdot", "\xe2\x89\x90\x00", 0, 0 }, { "esim", "\xe2\x89\x82\x00", 0, 0 }, { "Esim", "\xe2\xa9\xb3\x00", 0, 0 }, { "eta", "\xce\xb7\x00", 0, 0 }, { "eth", "\xc3\xb0\x00", 0, 0 }, { "ETH", "\xc3\x90\x00", 0, 0 }, { "euml", "\xc3\xab\x00", 0, 0 }, { "Euml", "\xc3\x8b\x00", 0, 0 }, { "excl", "\x21\x00", 0, 0 }, { "exist", "\xe2\x88\x83\x00", 0, 0 }, { "Exists", "\xe2\x88\x83\x00", 0, 0 }, { "expectation", "\xe2\x84\xb0\x00", 0, 0 }, { "exponentiale", "\xe2\x85\x87\x00", 0, 0 }, { "ExponentialE", "\xe2\x85\x87\x00", 0, 0 }, { "fallingdotseq", "\xe2\x89\x92\x00", 0, 0 }, { "fcy", "\xd1\x84\x00", 0, 0 }, { "Fcy", "\xd0\xa4\x00", 0, 0 }, { "female", "\xe2\x99\x80\x00", 0, 0 }, { "ffilig", "\xef\xac\x83\x00", 0, 0 }, { "fflig", "\xef\xac\x80\x00", 0, 0 }, { "ffllig", "\xef\xac\x84\x00", 0, 0 }, { "ffr", "\xf0\x9d\x94\xa3\x00", 0, 0 }, { "Ffr", "\xf0\x9d\x94\x89\x00", 0, 0 }, { "filig", "\xef\xac\x81\x00", 0, 0 }, { "FilledSmallSquare", "\xe2\x97\xbe\x00", 0, 0 }, { "FilledVerySmallSquare", "\xef\x96\x9b\x00", 0, 0 }, { "flat", "\xe2\x99\xad\x00", 0, 0 }, { "fllig", "\xef\xac\x82\x00", 0, 0 }, { "fnof", "\xc6\x92\x00", 0, 0 }, { "fopf", "\xf0\x9d\x95\x97\x00", 0, 0 }, { "Fopf", "\xf0\x9d\x94\xbd\x00", 0, 0 }, { "forall", "\xe2\x88\x80\x00", 0, 0 }, { "ForAll", "\xe2\x88\x80\x00", 0, 0 }, { "fork", "\xe2\x8b\x94\x00", 0, 0 }, { "forkv", "\xe2\xab\x99\x00", 0, 0 }, { "Fouriertrf", "\xe2\x84\xb1\x00", 0, 0 }, { "fpartint", "\xe2\xa8\x8d\x00", 0, 0 }, { "frac12", "\xc2\xbd\x00", 0, 0 }, { "frac13", "\xe2\x85\x93\x00", 0, 0 }, { "frac14", "\xc2\xbc\x00", 0, 0 }, { "frac15", "\xe2\x85\x95\x00", 0, 0 }, { "frac16", "\xe2\x85\x99\x00", 0, 0 }, { "frac18", "\xe2\x85\x9b\x00", 0, 0 }, { "frac23", "\xe2\x85\x94\x00", 0, 0 }, { "frac25", "\xe2\x85\x96\x00", 0, 0 }, { "frac34", "\xc2\xbe\x00", 0, 0 }, { "frac35", "\xe2\x85\x97\x00", 0, 0 }, { "frac38", "\xe2\x85\x9c\x00", 0, 0 }, { "frac45", "\xe2\x85\x98\x00", 0, 0 }, { "frac56", "\xe2\x85\x9a\x00", 0, 0 }, { "frac58", "\xe2\x85\x9d\x00", 0, 0 }, { "frac78", "\xe2\x85\x9e\x00", 0, 0 }, { "frown", "\xe2\x8c\xa2\x00", 0, 0 }, { "fscr", "\xf0\x9d\x92\xbb\x00", 0, 0 }, { "Fscr", "\xe2\x84\xb1\x00", 0, 0 }, { "gacute", "\xc7\xb5\x00", 0, 0 }, { "gamma", "\xce\xb3\x00", 0, 0 }, { "Gamma", "\xce\x93\x00", 0, 0 }, { "gammad", "\xcf\x9c\x00", 0, 0 }, { "Gammad", "\xcf\x9c\x00", 0, 0 }, { "gap", "\xe2\x89\xb3\x00", 0, 0 }, { "gbreve", "\xc4\x9f\x00", 0, 0 }, { "Gbreve", "\xc4\x9e\x00", 0, 0 }, { "Gcedil", "\xc4\xa2\x00", 0, 0 }, { "gcirc", "\xc4\x9d\x00", 0, 0 }, { "Gcirc", "\xc4\x9c\x00", 0, 0 }, { "gcy", "\xd0\xb3\x00", 0, 0 }, { "Gcy", "\xd0\x93\x00", 0, 0 }, { "gdot", "\xc4\xa1\x00", 0, 0 }, { "Gdot", "\xc4\xa0\x00", 0, 0 }, { "ge", "\xe2\x89\xa5\x00", 0, 0 }, { "gE", "\xe2\x89\xa7\x00", 0, 0 }, { "gel", "\xe2\x8b\x9b\x00", 0, 0 }, { "gEl", "\xe2\x8b\x9b\x00", 0, 0 }, { "geq", "\xe2\x89\xa5\x00", 0, 0 }, { "geqq", "\xe2\x89\xa7\x00", 0, 0 }, { "geqslant", "\xe2\xa9\xbe\x00", 0, 0 }, { "ges", "\xe2\xa9\xbe\x00", 0, 0 }, { "gescc", "\xe2\xaa\xa9\x00", 0, 0 }, { "gesdot", "\xe2\xaa\x80\x00", 0, 0 }, { "gesdoto", "\xe2\xaa\x82\x00", 0, 0 }, { "gesdotol", "\xe2\xaa\x84\x00", 0, 0 }, { "gesl", "\xe2\x8b\x9b\xef\xb8\x80\x00", 0, 0 }, { "gesles", "\xe2\xaa\x94\x00", 0, 0 }, { "gfr", "\xf0\x9d\x94\xa4\x00", 0, 0 }, { "Gfr", "\xf0\x9d\x94\x8a\x00", 0, 0 }, { "gg", "\xe2\x89\xab\x00", 0, 0 }, { "Gg", "\xe2\x8b\x99\x00", 0, 0 }, { "ggg", "\xe2\x8b\x99\x00", 0, 0 }, { "gimel", "\xe2\x84\xb7\x00", 0, 0 }, { "gjcy", "\xd1\x93\x00", 0, 0 }, { "GJcy", "\xd0\x83\x00", 0, 0 }, { "gl", "\xe2\x89\xb7\x00", 0, 0 }, { "gla", "\xe2\xaa\xa5\x00", 0, 0 }, { "glE", "\xe2\xaa\x92\x00", 0, 0 }, { "glj", "\xe2\xaa\xa4\x00", 0, 0 }, { "gnap", "\xe2\xaa\x8a\x00", 0, 0 }, { "gnapprox", "\xe2\xaa\x8a\x00", 0, 0 }, { "gne", "\xe2\x89\xa9\x00", 0, 0 }, { "gnE", "\xe2\x89\xa9\x00", 0, 0 }, { "gneq", "\xe2\x89\xa9\x00", 0, 0 }, { "gneqq", "\xe2\x89\xa9\x00", 0, 0 }, { "gnsim", "\xe2\x8b\xa7\x00", 0, 0 }, { "gopf", "\xf0\x9d\x95\x98\x00", 0, 0 }, { "Gopf", "\xf0\x9d\x94\xbe\x00", 0, 0 }, { "grave", "\x60\x00", 0, 0 }, { "GreaterEqual", "\xe2\x89\xa5\x00", 0, 0 }, { "GreaterEqualLess", "\xe2\x8b\x9b\x00", 0, 0 }, { "GreaterFullEqual", "\xe2\x89\xa7\x00", 0, 0 }, { "GreaterGreater", "\xe2\xaa\xa2\x00", 0, 0 }, { "GreaterLess", "\xe2\x89\xb7\x00", 0, 0 }, { "GreaterSlantEqual", "\xe2\xa9\xbe\x00", 0, 0 }, { "GreaterTilde", "\xe2\x89\xb3\x00", 0, 0 }, { "gscr", "\xe2\x84\x8a\x00", 0, 0 }, { "Gscr", "\xf0\x9d\x92\xa2\x00", 0, 0 }, { "gsim", "\xe2\x89\xb3\x00", 0, 0 }, { "gsime", "\xe2\xaa\x8e\x00", 0, 0 }, { "gsiml", "\xe2\xaa\x90\x00", 0, 0 }, { "gt", "\x3e\x00", 0, 0 }, { "Gt", "\xe2\x89\xab\x00", 0, 0 }, { "gtcc", "\xe2\xaa\xa7\x00", 0, 0 }, { "gtcir", "\xe2\xa9\xba\x00", 0, 0 }, { "gtdot", "\xe2\x8b\x97\x00", 0, 0 }, { "gtlPar", "\xe2\xa6\x95\x00", 0, 0 }, { "gtquest", "\xe2\xa9\xbc\x00", 0, 0 }, { "gtrapprox", "\xe2\x89\xb3\x00", 0, 0 }, { "gtrarr", "\xe2\xa5\xb8\x00", 0, 0 }, { "gtrdot", "\xe2\x8b\x97\x00", 0, 0 }, { "gtreqless", "\xe2\x8b\x9b\x00", 0, 0 }, { "gtreqqless", "\xe2\x8b\x9b\x00", 0, 0 }, { "gtrless", "\xe2\x89\xb7\x00", 0, 0 }, { "gtrsim", "\xe2\x89\xb3\x00", 0, 0 }, { "gvertneqq", "\xe2\x89\xa9\xef\xb8\x80\x00", 0, 0 }, { "gvnE", "\xe2\x89\xa9\xef\xb8\x80\x00", 0, 0 }, { "Hacek", "\xcb\x87\x00", 0, 0 }, { "hairsp", "\xe2\x80\x8a\x00", 0, 0 }, { "half", "\xc2\xbd\x00", 0, 0 }, { "hamilt", "\xe2\x84\x8b\x00", 0, 0 }, { "hardcy", "\xd1\x8a\x00", 0, 0 }, { "HARDcy", "\xd0\xaa\x00", 0, 0 }, { "harr", "\xe2\x86\x94\x00", 0, 0 }, { "hArr", "\xe2\x87\x94\x00", 0, 0 }, { "harrcir", "\xe2\xa5\x88\x00", 0, 0 }, { "harrw", "\xe2\x86\xad\x00", 0, 0 }, { "Hat", "\xcc\x82\x00", 0, 0 }, { "hbar", "\xe2\x84\x8f\xef\xb8\x80\x00", 0, 0 }, { "hcirc", "\xc4\xa5\x00", 0, 0 }, { "Hcirc", "\xc4\xa4\x00", 0, 0 }, { "heartsuit", "\xe2\x99\xa1\x00", 0, 0 }, { "hellip", "\xe2\x80\xa6\x00", 0, 0 }, { "hercon", "\xe2\x8a\xb9\x00", 0, 0 }, { "hfr", "\xf0\x9d\x94\xa5\x00", 0, 0 }, { "Hfr", "\xe2\x84\x8c\x00", 0, 0 }, { "HilbertSpace", "\xe2\x84\x8b\x00", 0, 0 }, { "hksearow", "\xe2\xa4\xa5\x00", 0, 0 }, { "hkswarow", "\xe2\xa4\xa6\x00", 0, 0 }, { "hoarr", "\xe2\x87\xbf\x00", 0, 0 }, { "homtht", "\xe2\x88\xbb\x00", 0, 0 }, { "hookleftarrow", "\xe2\x86\xa9\x00", 0, 0 }, { "hookrightarrow", "\xe2\x86\xaa\x00", 0, 0 }, { "hopf", "\xf0\x9d\x95\x99\x00", 0, 0 }, { "Hopf", "\xe2\x84\x8d\x00", 0, 0 }, { "horbar", "\xe2\x80\x95\x00", 0, 0 }, { "HorizontalLine", "\xe2\x94\x80\x00", 0, 0 }, { "hscr", "\xf0\x9d\x92\xbd\x00", 0, 0 }, { "Hscr", "\xe2\x84\x8b\x00", 0, 0 }, { "hslash", "\xe2\x84\x8f\x00", 0, 0 }, { "hstrok", "\xc4\xa7\x00", 0, 0 }, { "Hstrok", "\xc4\xa6\x00", 0, 0 }, { "HumpDownHump", "\xe2\x89\x8e\x00", 0, 0 }, { "HumpEqual", "\xe2\x89\x8f\x00", 0, 0 }, { "hybull", "\xe2\x81\x83\x00", 0, 0 }, { "hyphen", "\xe2\x80\x90\x00", 0, 0 }, { "iacute", "\xc3\xad\x00", 0, 0 }, { "Iacute", "\xc3\x8d\x00", 0, 0 }, { "ic", "\xe2\x80\x8b\x00", 0, 0 }, { "icirc", "\xc3\xae\x00", 0, 0 }, { "Icirc", "\xc3\x8e\x00", 0, 0 }, { "icy", "\xd0\xb8\x00", 0, 0 }, { "Icy", "\xd0\x98\x00", 0, 0 }, { "Idot", "\xc4\xb0\x00", 0, 0 }, { "iecy", "\xd0\xb5\x00", 0, 0 }, { "IEcy", "\xd0\x95\x00", 0, 0 }, { "iexcl", "\xc2\xa1\x00", 0, 0 }, { "iff", "\xe2\x87\x94\x00", 0, 0 }, { "ifr", "\xf0\x9d\x94\xa6\x00", 0, 0 }, { "Ifr", "\xe2\x84\x91\x00", 0, 0 }, { "igrave", "\xc3\xac\x00", 0, 0 }, { "Igrave", "\xc3\x8c\x00", 0, 0 }, { "ii", "\xe2\x85\x88\x00", 0, 0 }, { "iiiint", "\xe2\xa8\x8c\x00", 0, 0 }, { "iiint", "\xe2\x88\xad\x00", 0, 0 }, { "iinfin", "\xe2\xa7\x9c\x00", 0, 0 }, { "iiota", "\xe2\x84\xa9\x00", 0, 0 }, { "ijlig", "\xc4\xb3\x00", 0, 0 }, { "IJlig", "\xc4\xb2\x00", 0, 0 }, { "Im", "\xe2\x84\x91\x00", 0, 0 }, { "imacr", "\xc4\xab\x00", 0, 0 }, { "Imacr", "\xc4\xaa\x00", 0, 0 }, { "image", "\xe2\x84\x91\x00", 0, 0 }, { "ImaginaryI", "\xe2\x85\x88\x00", 0, 0 }, { "imagline", "\xe2\x84\x90\x00", 0, 0 }, { "imagpart", "\xe2\x84\x91\x00", 0, 0 }, { "imath", "\xc4\xb1\x00", 0, 0 }, { "imof", "\xe2\x8a\xb7\x00", 0, 0 }, { "imped", "\xf0\x9d\x95\x83\x00", 0, 0 }, { "Implies", "\xe2\x87\x92\x00", 0, 0 }, { "in", "\xe2\x88\x88\x00", 0, 0 }, { "incare", "\xe2\x84\x85\x00", 0, 0 }, { "infin", "\xe2\x88\x9e\x00", 0, 0 }, { "inodot", "\xc4\xb1\x00", 0, 0 }, { "int", "\xe2\x88\xab\x00", 0, 0 }, { "Int", "\xe2\x88\xac\x00", 0, 0 }, { "intcal", "\xe2\x8a\xba\x00", 0, 0 }, { "integers", "\xe2\x84\xa4\x00", 0, 0 }, { "Integral", "\xe2\x88\xab\x00", 0, 0 }, { "intercal", "\xe2\x8a\xba\x00", 0, 0 }, { "Intersection", "\xe2\x8b\x82\x00", 0, 0 }, { "intlarhk", "\xe2\xa8\x97\x00", 0, 0 }, { "intprod", "\xe2\xa8\xbc\x00", 0, 0 }, { "InvisibleComma", "\xe2\x80\x8b\x00", 0, 0 }, { "InvisibleTimes", "\xe2\x81\xa2\x00", 0, 0 }, { "iocy", "\xd1\x91\x00", 0, 0 }, { "IOcy", "\xd0\x81\x00", 0, 0 }, { "iogon", "\xc4\xaf\x00", 0, 0 }, { "Iogon", "\xc4\xae\x00", 0, 0 }, { "iopf", "\xf0\x9d\x95\x9a\x00", 0, 0 }, { "Iopf", "\xf0\x9d\x95\x80\x00", 0, 0 }, { "iota", "\xce\xb9\x00", 0, 0 }, { "iprod", "\xe2\xa8\xbc\x00", 0, 0 }, { "iquest", "\xc2\xbf\x00", 0, 0 }, { "iscr", "\xf0\x9d\x92\xbe\x00", 0, 0 }, { "Iscr", "\xe2\x84\x90\x00", 0, 0 }, { "isin", "\xe2\x88\x88\x00", 0, 0 }, { "isindot", "\xe2\x8b\xb5\x00", 0, 0 }, { "isinE", "\xe2\x8b\xb9\x00", 0, 0 }, { "isins", "\xe2\x8b\xb4\x00", 0, 0 }, { "isinsv", "\xe2\x8b\xb3\x00", 0, 0 }, { "isinv", "\xe2\x88\x88\x00", 0, 0 }, { "it", "\xe2\x81\xa2\x00", 0, 0 }, { "itilde", "\xc4\xa9\x00", 0, 0 }, { "Itilde", "\xc4\xa8\x00", 0, 0 }, { "iukcy", "\xd1\x96\x00", 0, 0 }, { "Iukcy", "\xd0\x86\x00", 0, 0 }, { "iuml", "\xc3\xaf\x00", 0, 0 }, { "Iuml", "\xc3\x8f\x00", 0, 0 }, { "jcirc", "\xc4\xb5\x00", 0, 0 }, { "Jcirc", "\xc4\xb4\x00", 0, 0 }, { "jcy", "\xd0\xb9\x00", 0, 0 }, { "Jcy", "\xd0\x99\x00", 0, 0 }, { "jfr", "\xf0\x9d\x94\xa7\x00", 0, 0 }, { "Jfr", "\xf0\x9d\x94\x8d\x00", 0, 0 }, { "jmath", "\x6a\xef\xb8\x80\x00", 0, 0 }, { "jopf", "\xf0\x9d\x95\x9b\x00", 0, 0 }, { "Jopf", "\xf0\x9d\x95\x81\x00", 0, 0 }, { "jscr", "\xf0\x9d\x92\xbf\x00", 0, 0 }, { "Jscr", "\xf0\x9d\x92\xa5\x00", 0, 0 }, { "jsercy", "\xd1\x98\x00", 0, 0 }, { "Jsercy", "\xd0\x88\x00", 0, 0 }, { "jukcy", "\xd1\x94\x00", 0, 0 }, { "Jukcy", "\xd0\x84\x00", 0, 0 }, { "kappa", "\xce\xba\x00", 0, 0 }, { "kappav", "\xcf\xb0\x00", 0, 0 }, { "kcedil", "\xc4\xb7\x00", 0, 0 }, { "Kcedil", "\xc4\xb6\x00", 0, 0 }, { "kcy", "\xd0\xba\x00", 0, 0 }, { "Kcy", "\xd0\x9a\x00", 0, 0 }, { "kfr", "\xf0\x9d\x94\xa8\x00", 0, 0 }, { "Kfr", "\xf0\x9d\x94\x8e\x00", 0, 0 }, { "kgreen", "\xc4\xb8\x00", 0, 0 }, { "khcy", "\xd1\x85\x00", 0, 0 }, { "KHcy", "\xd0\xa5\x00", 0, 0 }, { "kjcy", "\xd1\x9c\x00", 0, 0 }, { "KJcy", "\xd0\x8c\x00", 0, 0 }, { "kopf", "\xf0\x9d\x95\x9c\x00", 0, 0 }, { "Kopf", "\xf0\x9d\x95\x82\x00", 0, 0 }, { "kscr", "\xf0\x9d\x93\x80\x00", 0, 0 }, { "Kscr", "\xf0\x9d\x92\xa6\x00", 0, 0 }, { "lAarr", "\xe2\x87\x9a\x00", 0, 0 }, { "lacute", "\xc4\xba\x00", 0, 0 }, { "Lacute", "\xc4\xb9\x00", 0, 0 }, { "laemptyv", "\xe2\xa6\xb4\x00", 0, 0 }, { "lagran", "\xe2\x84\x92\x00", 0, 0 }, { "lambda", "\xce\xbb\x00", 0, 0 }, { "Lambda", "\xce\x9b\x00", 0, 0 }, { "lang", "\xe2\x8c\xa9\x00", 0, 0 }, { "Lang", "\xe3\x80\x8a\x00", 0, 0 }, { "langd", "\xe2\xa6\x91\x00", 0, 0 }, { "langle", "\xe2\x8c\xa9\x00", 0, 0 }, { "lap", "\xe2\x89\xb2\x00", 0, 0 }, { "Laplacetrf", "\xe2\x84\x92\x00", 0, 0 }, { "laquo", "\xc2\xab\x00", 0, 0 }, { "larr", "\xe2\x86\x90\x00", 0, 0 }, { "lArr", "\xe2\x87\x90\x00", 0, 0 }, { "Larr", "\xe2\x86\x9e\x00", 0, 0 }, { "larrb", "\xe2\x87\xa4\x00", 0, 0 }, { "larrbfs", "\xe2\xa4\x9f\x00", 0, 0 }, { "larrfs", "\xe2\xa4\x9d\x00", 0, 0 }, { "larrhk", "\xe2\x86\xa9\x00", 0, 0 }, { "larrlp", "\xe2\x86\xab\x00", 0, 0 }, { "larrpl", "\xe2\xa4\xb9\x00", 0, 0 }, { "larrsim", "\xe2\xa5\xb3\x00", 0, 0 }, { "larrtl", "\xe2\x86\xa2\x00", 0, 0 }, { "lat", "\xe2\xaa\xab\x00", 0, 0 }, { "latail", "\xe2\xa4\x99\x00", 0, 0 }, { "lAtail", "\xe2\xa4\x9b\x00", 0, 0 }, { "late", "\xe2\xaa\xad\x00", 0, 0 }, { "lates", "\xe2\xaa\xad\xef\xb8\x80\x00", 0, 0 }, { "lbarr", "\xe2\xa4\x8c\x00", 0, 0 }, { "lBarr", "\xe2\xa4\x8e\x00", 0, 0 }, { "lbbrk", "\xe3\x80\x94\x00", 0, 0 }, { "lbrace", "\x7b\x00", 0, 0 }, { "lbrack", "\x5b\x00", 0, 0 }, { "lbrke", "\xe2\xa6\x8b\x00", 0, 0 }, { "lbrksld", "\xe2\xa6\x8f\x00", 0, 0 }, { "lbrkslu", "\xe2\xa6\x8d\x00", 0, 0 }, { "lcaron", "\xc4\xbe\x00", 0, 0 }, { "Lcaron", "\xc4\xbd\x00", 0, 0 }, { "lcedil", "\xc4\xbc\x00", 0, 0 }, { "Lcedil", "\xc4\xbb\x00", 0, 0 }, { "lceil", "\xe2\x8c\x88\x00", 0, 0 }, { "lcub", "\x7b\x00", 0, 0 }, { "lcy", "\xd0\xbb\x00", 0, 0 }, { "Lcy", "\xd0\x9b\x00", 0, 0 }, { "ldca", "\xe2\xa4\xb6\x00", 0, 0 }, { "ldquo", "\xe2\x80\x9c\x00", 0, 0 }, { "ldquor", "\xe2\x80\x9e\x00", 0, 0 }, { "ldrdhar", "\xe2\xa5\xa7\x00", 0, 0 }, { "ldrushar", "\xe2\xa5\x8b\x00", 0, 0 }, { "ldsh", "\xe2\x86\xb2\x00", 0, 0 }, { "le", "\xe2\x89\xa4\x00", 0, 0 }, { "lE", "\xe2\x89\xa6\x00", 0, 0 }, { "LeftAngleBracket", "\xe2\x8c\xa9\x00", 0, 0 }, { "leftarrow", "\xe2\x86\x90\x00", 0, 0 }, { "Leftarrow", "\xe2\x87\x90\x00", 0, 0 }, { "LeftArrow", "\xe2\x86\x90\x00", 0, 0 }, { "LeftArrowBar", "\xe2\x87\xa4\x00", 0, 0 }, { "LeftArrowRightArrow", "\xe2\x87\x86\x00", 0, 0 }, { "leftarrowtail", "\xe2\x86\xa2\x00", 0, 0 }, { "LeftCeiling", "\xe2\x8c\x88\x00", 0, 0 }, { "LeftDoubleBracket", "\xe3\x80\x9a\x00", 0, 0 }, { "LeftDownTeeVector", "\xe2\xa5\xa1\x00", 0, 0 }, { "LeftDownVector", "\xe2\x87\x83\x00", 0, 0 }, { "LeftDownVectorBar", "\xe2\xa5\x99\x00", 0, 0 }, { "LeftFloor", "\xe2\x8c\x8a\x00", 0, 0 }, { "leftharpoondown", "\xe2\x86\xbd\x00", 0, 0 }, { "leftharpoonup", "\xe2\x86\xbc\x00", 0, 0 }, { "leftleftarrows", "\xe2\x87\x87\x00", 0, 0 }, { "leftrightarrow", "\xe2\x86\x94\x00", 0, 0 }, { "Leftrightarrow", "\xe2\x87\x94\x00", 0, 0 }, { "LeftRightArrow", "\xe2\x86\x94\x00", 0, 0 }, { "leftrightarrows", "\xe2\x87\x86\x00", 0, 0 }, { "leftrightharpoons", "\xe2\x87\x8b\x00", 0, 0 }, { "leftrightsquigarrow", "\xe2\x86\xad\x00", 0, 0 }, { "LeftRightVector", "\xe2\xa5\x8e\x00", 0, 0 }, { "LeftTee", "\xe2\x8a\xa3\x00", 0, 0 }, { "LeftTeeArrow", "\xe2\x86\xa4\x00", 0, 0 }, { "LeftTeeVector", "\xe2\xa5\x9a\x00", 0, 0 }, { "leftthreetimes", "\xe2\x8b\x8b\x00", 0, 0 }, { "LeftTriangle", "\xe2\x8a\xb2\x00", 0, 0 }, { "LeftTriangleBar", "\xe2\xa7\x8f\x00", 0, 0 }, { "LeftTriangleEqual", "\xe2\x8a\xb4\x00", 0, 0 }, { "LeftUpDownVector", "\xe2\xa5\x91\x00", 0, 0 }, { "LeftUpTeeVector", "\xe2\xa5\xa0\x00", 0, 0 }, { "LeftUpVector", "\xe2\x86\xbf\x00", 0, 0 }, { "LeftUpVectorBar", "\xe2\xa5\x98\x00", 0, 0 }, { "LeftVector", "\xe2\x86\xbc\x00", 0, 0 }, { "LeftVectorBar", "\xe2\xa5\x92\x00", 0, 0 }, { "leg", "\xe2\x8b\x9a\x00", 0, 0 }, { "lEg", "\xe2\x8b\x9a\x00", 0, 0 }, { "leq", "\xe2\x89\xa4\x00", 0, 0 }, { "leqq", "\xe2\x89\xa6\x00", 0, 0 }, { "leqslant", "\xe2\xa9\xbd\x00", 0, 0 }, { "les", "\xe2\xa9\xbd\x00", 0, 0 }, { "lescc", "\xe2\xaa\xa8\x00", 0, 0 }, { "lesdot", "\xe2\xa9\xbf\x00", 0, 0 }, { "lesdoto", "\xe2\xaa\x81\x00", 0, 0 }, { "lesdotor", "\xe2\xaa\x83\x00", 0, 0 }, { "lesg", "\xe2\x8b\x9a\xef\xb8\x80\x00", 0, 0 }, { "lesges", "\xe2\xaa\x93\x00", 0, 0 }, { "lessapprox", "\xe2\x89\xb2\x00", 0, 0 }, { "lessdot", "\xe2\x8b\x96\x00", 0, 0 }, { "lesseqgtr", "\xe2\x8b\x9a\x00", 0, 0 }, { "lesseqqgtr", "\xe2\x8b\x9a\x00", 0, 0 }, { "LessEqualGreater", "\xe2\x8b\x9a\x00", 0, 0 }, { "LessFullEqual", "\xe2\x89\xa6\x00", 0, 0 }, { "LessGreater", "\xe2\x89\xb6\x00", 0, 0 }, { "lessgtr", "\xe2\x89\xb6\x00", 0, 0 }, { "LessLess", "\xe2\xaa\xa1\x00", 0, 0 }, { "lesssim", "\xe2\x89\xb2\x00", 0, 0 }, { "LessSlantEqual", "\xe2\xa9\xbd\x00", 0, 0 }, { "LessTilde", "\xe2\x89\xb2\x00", 0, 0 }, { "lfisht", "\xe2\xa5\xbc\x00", 0, 0 }, { "lfloor", "\xe2\x8c\x8a\x00", 0, 0 }, { "lfr", "\xf0\x9d\x94\xa9\x00", 0, 0 }, { "Lfr", "\xf0\x9d\x94\x8f\x00", 0, 0 }, { "lg", "\xe2\x89\xb6\x00", 0, 0 }, { "lgE", "\xe2\xaa\x91\x00", 0, 0 }, { "lHar", "\xe2\xa5\xa2\x00", 0, 0 }, { "lhard", "\xe2\x86\xbd\x00", 0, 0 }, { "lharu", "\xe2\x86\xbc\x00", 0, 0 }, { "lharul", "\xe2\xa5\xaa\x00", 0, 0 }, { "lhblk", "\xe2\x96\x84\x00", 0, 0 }, { "ljcy", "\xd1\x99\x00", 0, 0 }, { "LJcy", "\xd0\x89\x00", 0, 0 }, { "ll", "\xe2\x89\xaa\x00", 0, 0 }, { "Ll", "\xe2\x8b\x98\x00", 0, 0 }, { "llarr", "\xe2\x87\x87\x00", 0, 0 }, { "llcorner", "\xe2\x8c\x9e\x00", 0, 0 }, { "Lleftarrow", "\xe2\x87\x9a\x00", 0, 0 }, { "llhard", "\xe2\xa5\xab\x00", 0, 0 }, { "lltri", "\xe2\x97\xba\x00", 0, 0 }, { "lmidot", "\xc5\x80\x00", 0, 0 }, { "Lmidot", "\xc4\xbf\x00", 0, 0 }, { "lmoust", "\xe2\x8e\xb0\x00", 0, 0 }, { "lmoustache", "\xe2\x8e\xb0\x00", 0, 0 }, { "lnap", "\xe2\xaa\x89\x00", 0, 0 }, { "lnapprox", "\xe2\xaa\x89\x00", 0, 0 }, { "lne", "\xe2\x89\xa8\x00", 0, 0 }, { "lnE", "\xe2\x89\xa8\x00", 0, 0 }, { "lneq", "\xe2\x89\xa8\x00", 0, 0 }, { "lneqq", "\xe2\x89\xa8\x00", 0, 0 }, { "lnsim", "\xe2\x8b\xa6\x00", 0, 0 }, { "loang", "\xef\x95\x98\x00", 0, 0 }, { "loarr", "\xe2\x87\xbd\x00", 0, 0 }, { "lobrk", "\xe3\x80\x9a\x00", 0, 0 }, { "longleftarrow", "\xef\x95\xb6\x00", 0, 0 }, { "Longleftarrow", "\xef\x95\xb9\x00", 0, 0 }, { "LongLeftArrow", "\xef\x95\xb6\x00", 0, 0 }, { "longleftrightarrow", "\xef\x95\xb8\x00", 0, 0 }, { "Longleftrightarrow", "\xef\x95\xbb\x00", 0, 0 }, { "LongLeftRightArrow", "\xef\x95\xb8\x00", 0, 0 }, { "longmapsto", "\xef\x95\xbd\x00", 0, 0 }, { "longrightarrow", "\xef\x95\xb7\x00", 0, 0 }, { "Longrightarrow", "\xef\x95\xba\x00", 0, 0 }, { "LongRightArrow", "\xef\x95\xb7\x00", 0, 0 }, { "looparrowleft", "\xe2\x86\xab\x00", 0, 0 }, { "looparrowright", "\xe2\x86\xac\x00", 0, 0 }, { "lopar", "\xe3\x80\x98\x00", 0, 0 }, { "lopf", "\xf0\x9d\x95\x9d\x00", 0, 0 }, { "Lopf", "\xf0\x9d\x95\x83\x00", 0, 0 }, { "loplus", "\xe2\xa8\xad\x00", 0, 0 }, { "lotimes", "\xe2\xa8\xb4\x00", 0, 0 }, { "lowast", "\xe2\x88\x97\x00", 0, 0 }, { "lowbar", "\x5f\x00", 0, 0 }, { "LowerLeftArrow", "\xe2\x86\x99\x00", 0, 0 }, { "LowerRightArrow", "\xe2\x86\x98\x00", 0, 0 }, { "loz", "\xe2\x97\x8a\x00", 0, 0 }, { "lozenge", "\xe2\x97\x8a\x00", 0, 0 }, { "lozf", "\xe2\xa7\xab\x00", 0, 0 }, { "lpar", "\x28\x00", 0, 0 }, { "lparlt", "\xe2\xa6\x93\x00", 0, 0 }, { "lrarr", "\xe2\x87\x86\x00", 0, 0 }, { "lrcorner", "\xe2\x8c\x9f\x00", 0, 0 }, { "lrhar", "\xe2\x87\x8b\x00", 0, 0 }, { "lrhard", "\xe2\xa5\xad\x00", 0, 0 }, { "lrtri", "\xe2\x8a\xbf\x00", 0, 0 }, { "lscr", "\xe2\x84\x93\x00", 0, 0 }, { "Lscr", "\xe2\x84\x92\x00", 0, 0 }, { "lsh", "\xe2\x86\xb0\x00", 0, 0 }, { "Lsh", "\xe2\x86\xb0\x00", 0, 0 }, { "lsim", "\xe2\x89\xb2\x00", 0, 0 }, { "lsime", "\xe2\xaa\x8d\x00", 0, 0 }, { "lsimg", "\xe2\xaa\x8f\x00", 0, 0 }, { "lsqb", "\x5b\x00", 0, 0 }, { "lsquo", "\xe2\x80\x98\x00", 0, 0 }, { "lsquor", "\xe2\x80\x9a\x00", 0, 0 }, { "lstrok", "\xc5\x82\x00", 0, 0 }, { "Lstrok", "\xc5\x81\x00", 0, 0 }, { "lt", "\x3c\x00", 0, 0 }, { "Lt", "\xe2\x89\xaa\x00", 0, 0 }, { "ltcc", "\xe2\xaa\xa6\x00", 0, 0 }, { "ltcir", "\xe2\xa9\xb9\x00", 0, 0 }, { "ltdot", "\xe2\x8b\x96\x00", 0, 0 }, { "lthree", "\xe2\x8b\x8b\x00", 0, 0 }, { "ltimes", "\xe2\x8b\x89\x00", 0, 0 }, { "ltlarr", "\xe2\xa5\xb6\x00", 0, 0 }, { "ltquest", "\xe2\xa9\xbb\x00", 0, 0 }, { "ltri", "\xe2\x97\x83\x00", 0, 0 }, { "ltrie", "\xe2\x8a\xb4\x00", 0, 0 }, { "ltrif", "\xe2\x97\x82\x00", 0, 0 }, { "ltrPar", "\xe2\xa6\x96\x00", 0, 0 }, { "lurdshar", "\xe2\xa5\x8a\x00", 0, 0 }, { "luruhar", "\xe2\xa5\xa6\x00", 0, 0 }, { "lvertneqq", "\xe2\x89\xa8\xef\xb8\x80\x00", 0, 0 }, { "lvnE", "\xe2\x89\xa8\xef\xb8\x80\x00", 0, 0 }, { "macr", "\xc2\xaf\x00", 0, 0 }, { "male", "\xe2\x99\x82\x00", 0, 0 }, { "malt", "\xe2\x9c\xa0\x00", 0, 0 }, { "maltese", "\xe2\x9c\xa0\x00", 0, 0 }, { "map", "\xe2\x86\xa6\x00", 0, 0 }, { "Map", "\xe2\xa4\x85\x00", 0, 0 }, { "mapsto", "\xe2\x86\xa6\x00", 0, 0 }, { "mapstodown", "\xe2\x86\xa7\x00", 0, 0 }, { "mapstoleft", "\xe2\x86\xa4\x00", 0, 0 }, { "mapstoup", "\xe2\x86\xa5\x00", 0, 0 }, { "marker", "\xe2\x96\xae\x00", 0, 0 }, { "mcomma", "\xe2\xa8\xa9\x00", 0, 0 }, { "mcy", "\xd0\xbc\x00", 0, 0 }, { "Mcy", "\xd0\x9c\x00", 0, 0 }, { "mdash", "\xe2\x80\x94\x00", 0, 0 }, { "mDDot", "\xe2\x88\xba\x00", 0, 0 }, { "measuredangle", "\xe2\x88\xa1\x00", 0, 0 }, { "MediumSpace", "\xe2\x81\x9f\x00", 0, 0 }, { "Mellintrf", "\xe2\x84\xb3\x00", 0, 0 }, { "mfr", "\xf0\x9d\x94\xaa\x00", 0, 0 }, { "Mfr", "\xf0\x9d\x94\x90\x00", 0, 0 }, { "mho", "\xe2\x84\xa7\x00", 0, 0 }, { "micro", "\xc2\xb5\x00", 0, 0 }, { "mid", "\xe2\x88\xa3\x00", 0, 0 }, { "midast", "\x2a\x00", 0, 0 }, { "midcir", "\xe2\xab\xb0\x00", 0, 0 }, { "middot", "\xc2\xb7\x00", 0, 0 }, { "minus", "\xe2\x88\x92\x00", 0, 0 }, { "minusb", "\xe2\x8a\x9f\x00", 0, 0 }, { "minusd", "\xe2\x88\xb8\x00", 0, 0 }, { "minusdu", "\xe2\xa8\xaa\x00", 0, 0 }, { "MinusPlus", "\xe2\x88\x93\x00", 0, 0 }, { "mlcp", "\xe2\xab\x9b\x00", 0, 0 }, { "mldr", "\xe2\x80\xa6\x00", 0, 0 }, { "mnplus", "\xe2\x88\x93\x00", 0, 0 }, { "models", "\xe2\x8a\xa7\x00", 0, 0 }, { "mopf", "\xf0\x9d\x95\x9e\x00", 0, 0 }, { "Mopf", "\xf0\x9d\x95\x84\x00", 0, 0 }, { "mp", "\xe2\x88\x93\x00", 0, 0 }, { "mscr", "\xf0\x9d\x93\x82\x00", 0, 0 }, { "Mscr", "\xe2\x84\xb3\x00", 0, 0 }, { "mstpos", "\xe2\x88\xbe\x00", 0, 0 }, { "mu", "\xce\xbc\x00", 0, 0 }, { "multimap", "\xe2\x8a\xb8\x00", 0, 0 }, { "mumap", "\xe2\x8a\xb8\x00", 0, 0 }, { "nabla", "\xe2\x88\x87\x00", 0, 0 }, { "nacute", "\xc5\x84\x00", 0, 0 }, { "Nacute", "\xc5\x83\x00", 0, 0 }, { "nang", "\xe2\x88\xa0\xcc\xb8\x00", 0, 0 }, { "nap", "\xe2\x89\x89\x00", 0, 0 }, { "napE", "\xe2\xa9\xb0\xcc\xb8\x00", 0, 0 }, { "napid", "\xe2\x89\x8b\xcc\xb8\x00", 0, 0 }, { "napos", "\xc5\x89\x00", 0, 0 }, { "napprox", "\xe2\x89\x89\x00", 0, 0 }, { "natur", "\xe2\x99\xae\x00", 0, 0 }, { "natural", "\xe2\x99\xae\x00", 0, 0 }, { "naturals", "\xe2\x84\x95\x00", 0, 0 }, { "nbsp", "\xc2\xa0\x00", 0, 0 }, { "nbump", "\xe2\x89\x8e\xcc\xb8\x00", 0, 0 }, { "nbumpe", "\xe2\x89\x8f\xcc\xb8\x00", 0, 0 }, { "ncap", "\xe2\xa9\x83\x00", 0, 0 }, { "ncaron", "\xc5\x88\x00", 0, 0 }, { "Ncaron", "\xc5\x87\x00", 0, 0 }, { "ncedil", "\xc5\x86\x00", 0, 0 }, { "Ncedil", "\xc5\x85\x00", 0, 0 }, { "ncong", "\xe2\x89\x87\x00", 0, 0 }, { "ncongdot", "\xe2\xa9\xad\xcc\xb8\x00", 0, 0 }, { "ncup", "\xe2\xa9\x82\x00", 0, 0 }, { "ncy", "\xd0\xbd\x00", 0, 0 }, { "Ncy", "\xd0\x9d\x00", 0, 0 }, { "ndash", "\xe2\x80\x93\x00", 0, 0 }, { "ne", "\xe2\x89\xa0\x00", 0, 0 }, { "nearhk", "\xe2\xa4\xa4\x00", 0, 0 }, { "nearr", "\xe2\x86\x97\x00", 0, 0 }, { "neArr", "\xe2\x87\x97\x00", 0, 0 }, { "nearrow", "\xe2\x86\x97\x00", 0, 0 }, { "nedot", "\xe2\x89\xa0\xef\xb8\x80\x00", 0, 0 }, { "NegativeMediumSpace", "\xe2\x81\x9f\xef\xb8\x80\x00", 0, 0 }, { "NegativeThickSpace", "\xe2\x80\x85\xef\xb8\x80\x00", 0, 0 }, { "NegativeThinSpace", "\xe2\x80\x89\xef\xb8\x80\x00", 0, 0 }, { "NegativeVeryThinSpace", "\xe2\x80\x8a\xef\xb8\x80\x00", 0, 0 }, { "nequiv", "\xe2\x89\xa2\x00", 0, 0 }, { "nesear", "\xe2\xa4\xa8\x00", 0, 0 }, { "nesim", "\xe2\x89\x82\xcc\xb8\x00", 0, 0 }, { "NestedGreaterGreater", "\xe2\x89\xab\x00", 0, 0 }, { "NestedLessLess", "\xe2\x89\xaa\x00", 0, 0 }, { "nexist", "\xe2\x88\x84\x00", 0, 0 }, { "nexists", "\xe2\x88\x84\x00", 0, 0 }, { "nfr", "\xf0\x9d\x94\xab\x00", 0, 0 }, { "Nfr", "\xf0\x9d\x94\x91\x00", 0, 0 }, { "nge", "\xe2\x89\xb1\xe2\x83\xa5\x00", 0, 0 }, { "ngE", "\xe2\x89\xb1\x00", 0, 0 }, { "ngeq", "\xe2\x89\xb1\xe2\x83\xa5\x00", 0, 0 }, { "ngeqq", "\xe2\x89\xb1\x00", 0, 0 }, { "ngeqslant", "\xe2\x89\xb1\x00", 0, 0 }, { "nges", "\xe2\x89\xb1\x00", 0, 0 }, { "nGg", "\xe2\x8b\x99\xcc\xb8\x00", 0, 0 }, { "ngsim", "\xe2\x89\xb5\x00", 0, 0 }, { "ngt", "\xe2\x89\xaf\x00", 0, 0 }, { "nGt", "\xe2\x89\xab\xcc\xb8\x00", 0, 0 }, { "ngtr", "\xe2\x89\xaf\x00", 0, 0 }, { "nGtv", "\xe2\x89\xab\xcc\xb8\xef\xb8\x80\x00", 0, 0 }, { "nharr", "\xe2\x86\xae\x00", 0, 0 }, { "nhArr", "\xe2\x87\x8e\x00", 0, 0 }, { "nhpar", "\xe2\xab\xb2\x00", 0, 0 }, { "ni", "\xe2\x88\x8b\x00", 0, 0 }, { "nis", "\xe2\x8b\xbc\x00", 0, 0 }, { "nisd", "\xe2\x8b\xba\x00", 0, 0 }, { "niv", "\xe2\x88\x8b\x00", 0, 0 }, { "njcy", "\xd1\x9a\x00", 0, 0 }, { "NJcy", "\xd0\x8a\x00", 0, 0 }, { "nlarr", "\xe2\x86\x9a\x00", 0, 0 }, { "nlArr", "\xe2\x87\x8d\x00", 0, 0 }, { "nldr", "\xe2\x80\xa5\x00", 0, 0 }, { "nle", "\xe2\x89\xb0\xe2\x83\xa5\x00", 0, 0 }, { "nlE", "\xe2\x89\xb0\x00", 0, 0 }, { "nleftarrow", "\xe2\x86\x9a\x00", 0, 0 }, { "nLeftarrow", "\xe2\x87\x8d\x00", 0, 0 }, { "nleftrightarrow", "\xe2\x86\xae\x00", 0, 0 }, { "nLeftrightarrow", "\xe2\x87\x8e\x00", 0, 0 }, { "nleq", "\xe2\x89\xb0\xe2\x83\xa5\x00", 0, 0 }, { "nleqq", "\xe2\x89\xb0\x00", 0, 0 }, { "nleqslant", "\xe2\x89\xb0\x00", 0, 0 }, { "nles", "\xe2\x89\xb0\x00", 0, 0 }, { "nless", "\xe2\x89\xae\x00", 0, 0 }, { "nLl", "\xe2\x8b\x98\xcc\xb8\x00", 0, 0 }, { "nlsim", "\xe2\x89\xb4\x00", 0, 0 }, { "nlt", "\xe2\x89\xae\x00", 0, 0 }, { "nLt", "\xe2\x89\xaa\xcc\xb8\x00", 0, 0 }, { "nltri", "\xe2\x8b\xaa\x00", 0, 0 }, { "nltrie", "\xe2\x8b\xac\x00", 0, 0 }, { "nLtv", "\xe2\x89\xaa\xcc\xb8\xef\xb8\x80\x00", 0, 0 }, { "nmid", "\xe2\x88\xa4\x00", 0, 0 }, { "NoBreak", "\xef\xbb\xbf\x00", 0, 0 }, { "NonBreakingSpace", "\xc2\xa0\x00", 0, 0 }, { "nopf", "\xf0\x9d\x95\x9f\x00", 0, 0 }, { "Nopf", "\xe2\x84\x95\x00", 0, 0 }, { "not", "\xc2\xac\x00", 0, 0 }, { "Not", "\xe2\xab\xac\x00", 0, 0 }, { "NotCongruent", "\xe2\x89\xa2\x00", 0, 0 }, { "NotCupCap", "\xe2\x89\xad\x00", 0, 0 }, { "NotDoubleVerticalBar", "\xe2\x88\xa6\x00", 0, 0 }, { "NotElement", "\xe2\x88\x89\x00", 0, 0 }, { "NotEqual", "\xe2\x89\xa0\x00", 0, 0 }, { "NotEqualTilde", "\xe2\x89\x82\xcc\xb8\x00", 0, 0 }, { "NotExists", "\xe2\x88\x84\x00", 0, 0 }, { "NotGreater", "\xe2\x89\xaf\x00", 0, 0 }, { "NotGreaterEqual", "\xe2\x89\xb1\xe2\x83\xa5\x00", 0, 0 }, { "NotGreaterFullEqual", "\xe2\x89\xb0\x00", 0, 0 }, { "NotGreaterGreater", "\xe2\x89\xab\xcc\xb8\xef\xb8\x80\x00", 0, 0 }, { "NotGreaterLess", "\xe2\x89\xb9\x00", 0, 0 }, { "NotGreaterSlantEqual", "\xe2\x89\xb1\x00", 0, 0 }, { "NotGreaterTilde", "\xe2\x89\xb5\x00", 0, 0 }, { "NotHumpDownHump", "\xe2\x89\x8e\xcc\xb8\x00", 0, 0 }, { "NotHumpEqual", "\xe2\x89\x8f\xcc\xb8\x00", 0, 0 }, { "notin", "\xe2\x88\x89\x00", 0, 0 }, { "notindot", "\xe2\x8b\xb6\xef\xb8\x80\x00", 0, 0 }, { "notinva", "\xe2\x88\x89\xcc\xb8\x00", 0, 0 }, { "notinvb", "\xe2\x8b\xb7\x00", 0, 0 }, { "notinvc", "\xe2\x8b\xb6\x00", 0, 0 }, { "NotLeftTriangle", "\xe2\x8b\xaa\x00", 0, 0 }, { "NotLeftTriangleBar", "\xe2\xa7\x8f\xcc\xb8\x00", 0, 0 }, { "NotLeftTriangleEqual", "\xe2\x8b\xac\x00", 0, 0 }, { "NotLess", "\xe2\x89\xae\x00", 0, 0 }, { "NotLessEqual", "\xe2\x89\xb0\xe2\x83\xa5\x00", 0, 0 }, { "NotLessGreater", "\xe2\x89\xb8\x00", 0, 0 }, { "NotLessLess", "\xe2\x89\xaa\xcc\xb8\xef\xb8\x80\x00", 0, 0 }, { "NotLessSlantEqual", "\xe2\x89\xb0\x00", 0, 0 }, { "NotLessTilde", "\xe2\x89\xb4\x00", 0, 0 }, { "NotNestedGreaterGreater", "\xe2\x92\xa2\xcc\xb8\x00", 0, 0 }, { "NotNestedLessLess", "\xe2\x92\xa1\xcc\xb8\x00", 0, 0 }, { "notni", "\xe2\x88\x8c\x00", 0, 0 }, { "notniva", "\xe2\x88\x8c\x00", 0, 0 }, { "notnivb", "\xe2\x8b\xbe\x00", 0, 0 }, { "notnivc", "\xe2\x8b\xbd\x00", 0, 0 }, { "NotPrecedes", "\xe2\x8a\x80\x00", 0, 0 }, { "NotPrecedesEqual", "\xe2\xaa\xaf\xcc\xb8\x00", 0, 0 }, { "NotPrecedesSlantEqual", "\xe2\x8b\xa0\x00", 0, 0 }, { "NotReverseElement", "\xe2\x88\x8c\x00", 0, 0 }, { "NotRightTriangle", "\xe2\x8b\xab\x00", 0, 0 }, { "NotRightTriangleBar", "\xe2\xa7\x90\xcc\xb8\x00", 0, 0 }, { "NotRightTriangleEqual", "\xe2\x8b\xad\x00", 0, 0 }, { "NotSquareSubset", "\xe2\x8a\x8f\xcc\xb8\x00", 0, 0 }, { "NotSquareSubsetEqual", "\xe2\x8b\xa2\x00", 0, 0 }, { "NotSquareSuperset", "\xe2\x8a\x90\xcc\xb8\x00", 0, 0 }, { "NotSquareSupersetEqual", "\xe2\x8b\xa3\x00", 0, 0 }, { "NotSubset", "\xe2\x8a\x84\x00", 0, 0 }, { "NotSubsetEqual", "\xe2\x8a\x88\x00", 0, 0 }, { "NotSucceeds", "\xe2\x8a\x81\x00", 0, 0 }, { "NotSucceedsEqual", "\xe2\xaa\xb0\xcc\xb8\x00", 0, 0 }, { "NotSucceedsSlantEqual", "\xe2\x8b\xa1\x00", 0, 0 }, { "NotSucceedsTilde", "\xe2\x89\xbf\xcc\xb8\x00", 0, 0 }, { "NotSuperset", "\xe2\x8a\x85\x00", 0, 0 }, { "NotSupersetEqual", "\xe2\x8a\x89\x00", 0, 0 }, { "NotTilde", "\xe2\x89\x81\x00", 0, 0 }, { "NotTildeEqual", "\xe2\x89\x84\x00", 0, 0 }, { "NotTildeFullEqual", "\xe2\x89\x87\x00", 0, 0 }, { "NotTildeTilde", "\xe2\x89\x89\x00", 0, 0 }, { "NotVerticalBar", "\xe2\x88\xa4\x00", 0, 0 }, { "npar", "\xe2\x88\xa6\x00", 0, 0 }, { "nparallel", "\xe2\x88\xa6\x00", 0, 0 }, { "nparsl", "\xe2\x88\xa5\xef\xb8\x80\xe2\x83\xa5\x00", 0, 0 }, { "npart", "\xe2\x88\x82\xcc\xb8\x00", 0, 0 }, { "npolint", "\xe2\xa8\x94\x00", 0, 0 }, { "npr", "\xe2\x8a\x80\x00", 0, 0 }, { "nprcue", "\xe2\x8b\xa0\x00", 0, 0 }, { "npre", "\xe2\xaa\xaf\xcc\xb8\x00", 0, 0 }, { "nprec", "\xe2\x8a\x80\x00", 0, 0 }, { "npreceq", "\xe2\xaa\xaf\xcc\xb8\x00", 0, 0 }, { "nrarr", "\xe2\x86\x9b\x00", 0, 0 }, { "nrArr", "\xe2\x87\x8f\x00", 0, 0 }, { "nrarrc", "\xe2\xa4\xb3\xcc\xb8\x00", 0, 0 }, { "nrarrw", "\xe2\x86\x9d\xcc\xb8\x00", 0, 0 }, { "nrightarrow", "\xe2\x86\x9b\x00", 0, 0 }, { "nRightarrow", "\xe2\x87\x8f\x00", 0, 0 }, { "nrtri", "\xe2\x8b\xab\x00", 0, 0 }, { "nrtrie", "\xe2\x8b\xad\x00", 0, 0 }, { "nsc", "\xe2\x8a\x81\x00", 0, 0 }, { "nsccue", "\xe2\x8b\xa1\x00", 0, 0 }, { "nsce", "\xe2\xaa\xb0\xcc\xb8\x00", 0, 0 }, { "nscr", "\xf0\x9d\x93\x83\x00", 0, 0 }, { "Nscr", "\xf0\x9d\x92\xa9\x00", 0, 0 }, { "nshortmid", "\xe2\x88\xa4\xef\xb8\x80\x00", 0, 0 }, { "nshortparallel", "\xe2\x88\xa6\xef\xb8\x80\x00", 0, 0 }, { "nsim", "\xe2\x89\x81\x00", 0, 0 }, { "nsime", "\xe2\x89\x84\x00", 0, 0 }, { "nsimeq", "\xe2\x89\x84\x00", 0, 0 }, { "nsmid", "\xe2\x88\xa4\xef\xb8\x80\x00", 0, 0 }, { "nspar", "\xe2\x88\xa6\xef\xb8\x80\x00", 0, 0 }, { "nsqsube", "\xe2\x8b\xa2\x00", 0, 0 }, { "nsqsupe", "\xe2\x8b\xa3\x00", 0, 0 }, { "nsub", "\xe2\x8a\x84\x00", 0, 0 }, { "nsube", "\xe2\x8a\x88\x00", 0, 0 }, { "nsubE", "\xe2\x8a\x88\x00", 0, 0 }, { "nsubset", "\xe2\x8a\x84\x00", 0, 0 }, { "nsubseteq", "\xe2\x8a\x88\x00", 0, 0 }, { "nsubseteqq", "\xe2\x8a\x88\x00", 0, 0 }, { "nsucc", "\xe2\x8a\x81\x00", 0, 0 }, { "nsucceq", "\xe2\xaa\xb0\xcc\xb8\x00", 0, 0 }, { "nsup", "\xe2\x8a\x85\x00", 0, 0 }, { "nsupe", "\xe2\x8a\x89\x00", 0, 0 }, { "nsupE", "\xe2\x8a\x89\x00", 0, 0 }, { "nsupset", "\xe2\x8a\x85\x00", 0, 0 }, { "nsupseteq", "\xe2\x8a\x89\x00", 0, 0 }, { "nsupseteqq", "\xe2\x8a\x89\x00", 0, 0 }, { "ntgl", "\xe2\x89\xb9\x00", 0, 0 }, { "ntilde", "\xc3\xb1\x00", 0, 0 }, { "Ntilde", "\xc3\x91\x00", 0, 0 }, { "ntlg", "\xe2\x89\xb8\x00", 0, 0 }, { "ntriangleleft", "\xe2\x8b\xaa\x00", 0, 0 }, { "ntrianglelefteq", "\xe2\x8b\xac\x00", 0, 0 }, { "ntriangleright", "\xe2\x8b\xab\x00", 0, 0 }, { "ntrianglerighteq", "\xe2\x8b\xad\x00", 0, 0 }, { "nu", "\xce\xbd\x00", 0, 0 }, { "num", "\x23\x00", 0, 0 }, { "numero", "\xe2\x84\x96\x00", 0, 0 }, { "numsp", "\xe2\x80\x87\x00", 0, 0 }, { "nvap", "\xe2\x89\x89\xcc\xb8\x00", 0, 0 }, { "nvdash", "\xe2\x8a\xac\x00", 0, 0 }, { "nvDash", "\xe2\x8a\xad\x00", 0, 0 }, { "nVdash", "\xe2\x8a\xae\x00", 0, 0 }, { "nVDash", "\xe2\x8a\xaf\x00", 0, 0 }, { "nvge", "\xe2\x89\xb1\x00", 0, 0 }, { "nvgt", "\xe2\x89\xaf\x00", 0, 0 }, { "nvHarr", "\xe2\x87\x8e\x00", 0, 0 }, { "nvinfin", "\xe2\xa7\x9e\x00", 0, 0 }, { "nvlArr", "\xe2\x87\x8d\x00", 0, 0 }, { "nvle", "\xe2\x89\xb0\x00", 0, 0 }, { "nvlt", "\xe2\x89\xae\x00", 0, 0 }, { "nvltrie", "\xe2\x8b\xac\xcc\xb8\x00", 0, 0 }, { "nvrArr", "\xe2\x87\x8f\x00", 0, 0 }, { "nvrtrie", "\xe2\x8b\xad\xcc\xb8\x00", 0, 0 }, { "nvsim", "\xe2\x89\x81\xcc\xb8\x00", 0, 0 }, { "nwarhk", "\xe2\xa4\xa3\x00", 0, 0 }, { "nwarr", "\xe2\x86\x96\x00", 0, 0 }, { "nwArr", "\xe2\x87\x96\x00", 0, 0 }, { "nwarrow", "\xe2\x86\x96\x00", 0, 0 }, { "nwnear", "\xe2\xa4\xa7\x00", 0, 0 }, { "oacute", "\xc3\xb3\x00", 0, 0 }, { "Oacute", "\xc3\x93\x00", 0, 0 }, { "oast", "\xe2\x8a\x9b\x00", 0, 0 }, { "ocir", "\xe2\x8a\x9a\x00", 0, 0 }, { "ocirc", "\xc3\xb4\x00", 0, 0 }, { "Ocirc", "\xc3\x94\x00", 0, 0 }, { "ocy", "\xd0\xbe\x00", 0, 0 }, { "Ocy", "\xd0\x9e\x00", 0, 0 }, { "odash", "\xe2\x8a\x9d\x00", 0, 0 }, { "odblac", "\xc5\x91\x00", 0, 0 }, { "Odblac", "\xc5\x90\x00", 0, 0 }, { "odiv", "\xe2\xa8\xb8\x00", 0, 0 }, { "odot", "\xe2\x8a\x99\x00", 0, 0 }, { "odsold", "\xe2\xa6\xbc\x00", 0, 0 }, { "oelig", "\xc5\x93\x00", 0, 0 }, { "OElig", "\xc5\x92\x00", 0, 0 }, { "ofcir", "\xe2\xa6\xbf\x00", 0, 0 }, { "ofr", "\xf0\x9d\x94\xac\x00", 0, 0 }, { "Ofr", "\xf0\x9d\x94\x92\x00", 0, 0 }, { "ogon", "\xcb\x9b\x00", 0, 0 }, { "ograve", "\xc3\xb2\x00", 0, 0 }, { "Ograve", "\xc3\x92\x00", 0, 0 }, { "ogt", "\xe2\xa7\x81\x00", 0, 0 }, { "ohbar", "\xe2\xa6\xb5\x00", 0, 0 }, { "ohm", "\xe2\x84\xa6\x00", 0, 0 }, { "oint", "\xe2\x88\xae\x00", 0, 0 }, { "olarr", "\xe2\x86\xba\x00", 0, 0 }, { "olcir", "\xe2\xa6\xbe\x00", 0, 0 }, { "olcross", "\xe2\xa6\xbb\x00", 0, 0 }, { "olt", "\xe2\xa7\x80\x00", 0, 0 }, { "omacr", "\xc5\x8d\x00", 0, 0 }, { "Omacr", "\xc5\x8c\x00", 0, 0 }, { "omega", "\xcf\x89\x00", 0, 0 }, { "Omega", "\xce\xa9\x00", 0, 0 }, { "omid", "\xe2\xa6\xb6\x00", 0, 0 }, { "ominus", "\xe2\x8a\x96\x00", 0, 0 }, { "oopf", "\xf0\x9d\x95\xa0\x00", 0, 0 }, { "Oopf", "\xf0\x9d\x95\x86\x00", 0, 0 }, { "opar", "\xe2\xa6\xb7\x00", 0, 0 }, { "OpenCurlyDoubleQuote", "\xe2\x80\x9c\x00", 0, 0 }, { "OpenCurlyQuote", "\xe2\x80\x98\x00", 0, 0 }, { "operp", "\xe2\xa6\xb9\x00", 0, 0 }, { "oplus", "\xe2\x8a\x95\x00", 0, 0 }, { "or", "\xe2\x88\xa8\x00", 0, 0 }, { "Or", "\xe2\xa9\x94\x00", 0, 0 }, { "orarr", "\xe2\x86\xbb\x00", 0, 0 }, { "ord", "\xe2\xa9\x9d\x00", 0, 0 }, { "order", "\xe2\x84\xb4\x00", 0, 0 }, { "orderof", "\xe2\x84\xb4\x00", 0, 0 }, { "ordf", "\xc2\xaa\x00", 0, 0 }, { "ordm", "\xc2\xba\x00", 0, 0 }, { "origof", "\xe2\x8a\xb6\x00", 0, 0 }, { "oror", "\xe2\xa9\x96\x00", 0, 0 }, { "orslope", "\xe2\xa9\x97\x00", 0, 0 }, { "orv", "\xe2\xa9\x9b\x00", 0, 0 }, { "oS", "\xe2\x93\x88\x00", 0, 0 }, { "oscr", "\xe2\x84\xb4\x00", 0, 0 }, { "Oscr", "\xf0\x9d\x92\xaa\x00", 0, 0 }, { "oslash", "\xc3\xb8\x00", 0, 0 }, { "Oslash", "\xc3\x98\x00", 0, 0 }, { "osol", "\xe2\x8a\x98\x00", 0, 0 }, { "otilde", "\xc3\xb5\x00", 0, 0 }, { "Otilde", "\xc3\x95\x00", 0, 0 }, { "otimes", "\xe2\x8a\x97\x00", 0, 0 }, { "Otimes", "\xe2\xa8\xb7\x00", 0, 0 }, { "otimesas", "\xe2\xa8\xb6\x00", 0, 0 }, { "ouml", "\xc3\xb6\x00", 0, 0 }, { "Ouml", "\xc3\x96\x00", 0, 0 }, { "ovbar", "\xe2\x8c\xbd\x00", 0, 0 }, { "OverBar", "\xc2\xaf\x00", 0, 0 }, { "OverBrace", "\xef\xb8\xb7\x00", 0, 0 }, { "OverBracket", "\xe2\x8e\xb4\x00", 0, 0 }, { "OverParenthesis", "\xef\xb8\xb5\x00", 0, 0 }, { "par", "\xe2\x88\xa5\x00", 0, 0 }, { "para", "\xc2\xb6\x00", 0, 0 }, { "parallel", "\xe2\x88\xa5\x00", 0, 0 }, { "parsim", "\xe2\xab\xb3\x00", 0, 0 }, { "parsl", "\xe2\x88\xa5\xef\xb8\x80\x00", 0, 0 }, { "part", "\xe2\x88\x82\x00", 0, 0 }, { "PartialD", "\xe2\x88\x82\x00", 0, 0 }, { "pcy", "\xd0\xbf\x00", 0, 0 }, { "Pcy", "\xd0\x9f\x00", 0, 0 }, { "percnt", "\x25\x00", 0, 0 }, { "period", "\x2e\x00", 0, 0 }, { "permil", "\xe2\x80\xb0\x00", 0, 0 }, { "perp", "\xe2\x8a\xa5\x00", 0, 0 }, { "pertenk", "\xe2\x80\xb1\x00", 0, 0 }, { "pfr", "\xf0\x9d\x94\xad\x00", 0, 0 }, { "Pfr", "\xf0\x9d\x94\x93\x00", 0, 0 }, { "phi", "\xcf\x86\x00", 0, 0 }, { "Phi", "\xce\xa6\x00", 0, 0 }, { "phiv", "\xcf\x95\x00", 0, 0 }, { "phmmat", "\xe2\x84\xb3\x00", 0, 0 }, { "phone", "\xe2\x98\x8e\x00", 0, 0 }, { "pi", "\xcf\x80\x00", 0, 0 }, { "Pi", "\xce\xa0\x00", 0, 0 }, { "pitchfork", "\xe2\x8b\x94\x00", 0, 0 }, { "piv", "\xcf\x96\x00", 0, 0 }, { "planck", "\xe2\x84\x8f\xef\xb8\x80\x00", 0, 0 }, { "planckh", "\xe2\x84\x8e\x00", 0, 0 }, { "plankv", "\xe2\x84\x8f\x00", 0, 0 }, { "plus", "\x2b\x00", 0, 0 }, { "plusacir", "\xe2\xa8\xa3\x00", 0, 0 }, { "plusb", "\xe2\x8a\x9e\x00", 0, 0 }, { "pluscir", "\xe2\xa8\xa2\x00", 0, 0 }, { "plusdo", "\xe2\x88\x94\x00", 0, 0 }, { "plusdu", "\xe2\xa8\xa5\x00", 0, 0 }, { "pluse", "\xe2\xa9\xb2\x00", 0, 0 }, { "PlusMinus", "\xc2\xb1\x00", 0, 0 }, { "plusmn", "\xc2\xb1\x00", 0, 0 }, { "plussim", "\xe2\xa8\xa6\x00", 0, 0 }, { "plustwo", "\xe2\xa8\xa7\x00", 0, 0 }, { "pm", "\xc2\xb1\x00", 0, 0 }, { "Poincareplane", "\xe2\x84\x8c\x00", 0, 0 }, { "pointint", "\xe2\xa8\x95\x00", 0, 0 }, { "popf", "\xf0\x9d\x95\xa1\x00", 0, 0 }, { "Popf", "\xe2\x84\x99\x00", 0, 0 }, { "pound", "\xc2\xa3\x00", 0, 0 }, { "pr", "\xe2\x89\xba\x00", 0, 0 }, { "Pr", "\xe2\xaa\xbb\x00", 0, 0 }, { "prap", "\xe2\x89\xbe\x00", 0, 0 }, { "prcue", "\xe2\x89\xbc\x00", 0, 0 }, { "pre", "\xe2\xaa\xaf\x00", 0, 0 }, { "prE", "\xe2\xaa\xaf\x00", 0, 0 }, { "prec", "\xe2\x89\xba\x00", 0, 0 }, { "precapprox", "\xe2\x89\xbe\x00", 0, 0 }, { "preccurlyeq", "\xe2\x89\xbc\x00", 0, 0 }, { "Precedes", "\xe2\x89\xba\x00", 0, 0 }, { "PrecedesEqual", "\xe2\xaa\xaf\x00", 0, 0 }, { "PrecedesSlantEqual", "\xe2\x89\xbc\x00", 0, 0 }, { "PrecedesTilde", "\xe2\x89\xbe\x00", 0, 0 }, { "preceq", "\xe2\xaa\xaf\x00", 0, 0 }, { "precnapprox", "\xe2\x8b\xa8\x00", 0, 0 }, { "precneqq", "\xe2\xaa\xb5\x00", 0, 0 }, { "precnsim", "\xe2\x8b\xa8\x00", 0, 0 }, { "precsim", "\xe2\x89\xbe\x00", 0, 0 }, { "prime", "\xe2\x80\xb2\x00", 0, 0 }, { "Prime", "\xe2\x80\xb3\x00", 0, 0 }, { "primes", "\xe2\x84\x99\x00", 0, 0 }, { "prnap", "\xe2\x8b\xa8\x00", 0, 0 }, { "prnE", "\xe2\xaa\xb5\x00", 0, 0 }, { "prnsim", "\xe2\x8b\xa8\x00", 0, 0 }, { "prod", "\xe2\x88\x8f\x00", 0, 0 }, { "Product", "\xe2\x88\x8f\x00", 0, 0 }, { "profalar", "\xe2\x8c\xae\x00", 0, 0 }, { "profline", "\xe2\x8c\x92\x00", 0, 0 }, { "profsurf", "\xe2\x8c\x93\x00", 0, 0 }, { "prop", "\xe2\x88\x9d\x00", 0, 0 }, { "Proportion", "\xe2\x88\xb7\x00", 0, 0 }, { "Proportional", "\xe2\x88\x9d\x00", 0, 0 }, { "propto", "\xe2\x88\x9d\x00", 0, 0 }, { "prsim", "\xe2\x89\xbe\x00", 0, 0 }, { "prurel", "\xe2\x8a\xb0\x00", 0, 0 }, { "pscr", "\xf0\x9d\x93\x85\x00", 0, 0 }, { "Pscr", "\xf0\x9d\x92\xab\x00", 0, 0 }, { "psi", "\xcf\x88\x00", 0, 0 }, { "Psi", "\xce\xa8\x00", 0, 0 }, { "puncsp", "\xe2\x80\x88\x00", 0, 0 }, { "qfr", "\xf0\x9d\x94\xae\x00", 0, 0 }, { "Qfr", "\xf0\x9d\x94\x94\x00", 0, 0 }, { "qint", "\xe2\xa8\x8c\x00", 0, 0 }, { "qopf", "\xf0\x9d\x95\xa2\x00", 0, 0 }, { "Qopf", "\xe2\x84\x9a\x00", 0, 0 }, { "qprime", "\xe2\x81\x97\x00", 0, 0 }, { "qscr", "\xf0\x9d\x93\x86\x00", 0, 0 }, { "Qscr", "\xf0\x9d\x92\xac\x00", 0, 0 }, { "quaternions", "\xe2\x84\x8d\x00", 0, 0 }, { "quatint", "\xe2\xa8\x96\x00", 0, 0 }, { "quest", "\x3f\x00", 0, 0 }, { "questeq", "\xe2\x89\x9f\x00", 0, 0 }, { "quot", "\x22\x00", 0, 0 }, { "rAarr", "\xe2\x87\x9b\x00", 0, 0 }, { "race", "\xe2\xa7\x9a\x00", 0, 0 }, { "racute", "\xc5\x95\x00", 0, 0 }, { "Racute", "\xc5\x94\x00", 0, 0 }, { "radic", "\xe2\x88\x9a\x00", 0, 0 }, { "raemptyv", "\xe2\xa6\xb3\x00", 0, 0 }, { "rang", "\xe2\x8c\xaa\x00", 0, 0 }, { "Rang", "\xe3\x80\x8b\x00", 0, 0 }, { "rangd", "\xe2\xa6\x92\x00", 0, 0 }, { "range", "\xe2\xa6\xa5\x00", 0, 0 }, { "rangle", "\xe2\x8c\xaa\x00", 0, 0 }, { "raquo", "\xc2\xbb\x00", 0, 0 }, { "rarr", "\xe2\x86\x92\x00", 0, 0 }, { "rArr", "\xe2\x87\x92\x00", 0, 0 }, { "Rarr", "\xe2\x86\xa0\x00", 0, 0 }, { "rarrap", "\xe2\xa5\xb5\x00", 0, 0 }, { "rarrb", "\xe2\x87\xa5\x00", 0, 0 }, { "rarrbfs", "\xe2\xa4\xa0\x00", 0, 0 }, { "rarrc", "\xe2\xa4\xb3\x00", 0, 0 }, { "rarrfs", "\xe2\xa4\x9e\x00", 0, 0 }, { "rarrhk", "\xe2\x86\xaa\x00", 0, 0 }, { "rarrlp", "\xe2\x86\xac\x00", 0, 0 }, { "rarrpl", "\xe2\xa5\x85\x00", 0, 0 }, { "rarrsim", "\xe2\xa5\xb4\x00", 0, 0 }, { "rarrtl", "\xe2\x86\xa3\x00", 0, 0 }, { "Rarrtl", "\xe2\xa4\x96\x00", 0, 0 }, { "rarrw", "\xe2\x86\x9d\x00", 0, 0 }, { "ratail", "\xe2\x86\xa3\x00", 0, 0 }, { "rAtail", "\xe2\xa4\x9c\x00", 0, 0 }, { "ratio", "\xe2\x88\xb6\x00", 0, 0 }, { "rationals", "\xe2\x84\x9a\x00", 0, 0 }, { "rbarr", "\xe2\xa4\x8d\x00", 0, 0 }, { "rBarr", "\xe2\xa4\x8f\x00", 0, 0 }, { "RBarr", "\xe2\xa4\x90\x00", 0, 0 }, { "rbbrk", "\xe3\x80\x95\x00", 0, 0 }, { "rbrace", "\x7d\x00", 0, 0 }, { "rbrack", "\x5d\x00", 0, 0 }, { "rbrke", "\xe2\xa6\x8c\x00", 0, 0 }, { "rbrksld", "\xe2\xa6\x8e\x00", 0, 0 }, { "rbrkslu", "\xe2\xa6\x90\x00", 0, 0 }, { "rcaron", "\xc5\x99\x00", 0, 0 }, { "Rcaron", "\xc5\x98\x00", 0, 0 }, { "rcedil", "\xc5\x97\x00", 0, 0 }, { "Rcedil", "\xc5\x96\x00", 0, 0 }, { "rceil", "\xe2\x8c\x89\x00", 0, 0 }, { "rcub", "\x7d\x00", 0, 0 }, { "rcy", "\xd1\x80\x00", 0, 0 }, { "Rcy", "\xd0\xa0\x00", 0, 0 }, { "rdca", "\xe2\xa4\xb7\x00", 0, 0 }, { "rdldhar", "\xe2\xa5\xa9\x00", 0, 0 }, { "rdquo", "\xe2\x80\x9d\x00", 0, 0 }, { "rdquor", "\xe2\x80\x9d\x00", 0, 0 }, { "rdsh", "\xe2\x86\xb3\x00", 0, 0 }, { "Re", "\xe2\x84\x9c\x00", 0, 0 }, { "real", "\xe2\x84\x9c\x00", 0, 0 }, { "realine", "\xe2\x84\x9b\x00", 0, 0 }, { "realpart", "\xe2\x84\x9c\x00", 0, 0 }, { "reals", "\xe2\x84\x9d\x00", 0, 0 }, { "rect", "\xe2\x96\xad\x00", 0, 0 }, { "reg", "\xc2\xae\x00", 0, 0 }, { "ReverseElement", "\xe2\x88\x8b\x00", 0, 0 }, { "ReverseEquilibrium", "\xe2\x87\x8b\x00", 0, 0 }, { "ReverseUpEquilibrium", "\xe2\xa5\xaf\x00", 0, 0 }, { "rfisht", "\xe2\xa5\xbd\x00", 0, 0 }, { "rfloor", "\xe2\x8c\x8b\x00", 0, 0 }, { "rfr", "\xf0\x9d\x94\xaf\x00", 0, 0 }, { "Rfr", "\xe2\x84\x9c\x00", 0, 0 }, { "rHar", "\xe2\xa5\xa4\x00", 0, 0 }, { "rhard", "\xe2\x87\x81\x00", 0, 0 }, { "rharu", "\xe2\x87\x80\x00", 0, 0 }, { "rharul", "\xe2\xa5\xac\x00", 0, 0 }, { "rho", "\xcf\x81\x00", 0, 0 }, { "rhov", "\xcf\xb1\x00", 0, 0 }, { "RightAngleBracket", "\xe2\x8c\xaa\x00", 0, 0 }, { "rightarrow", "\xe2\x86\x92\x00", 0, 0 }, { "Rightarrow", "\xe2\x87\x92\x00", 0, 0 }, { "RightArrow", "\xe2\x86\x92\x00", 0, 0 }, { "RightArrowBar", "\xe2\x87\xa5\x00", 0, 0 }, { "RightArrowLeftArrow", "\xe2\x87\x84\x00", 0, 0 }, { "rightarrowtail", "\xe2\x86\xa3\x00", 0, 0 }, { "RightCeiling", "\xe2\x8c\x89\x00", 0, 0 }, { "RightDoubleBracket", "\xe3\x80\x9b\x00", 0, 0 }, { "RightDownTeeVector", "\xe2\xa5\x9d\x00", 0, 0 }, { "RightDownVector", "\xe2\x87\x82\x00", 0, 0 }, { "RightDownVectorBar", "\xe2\xa5\x95\x00", 0, 0 }, { "RightFloor", "\xe2\x8c\x8b\x00", 0, 0 }, { "rightharpoondown", "\xe2\x87\x81\x00", 0, 0 }, { "rightharpoonup", "\xe2\x87\x80\x00", 0, 0 }, { "rightleftarrows", "\xe2\x87\x84\x00", 0, 0 }, { "rightleftharpoons", "\xe2\x87\x8c\x00", 0, 0 }, { "rightrightarrows", "\xe2\x87\x89\x00", 0, 0 }, { "rightsquigarrow", "\xe2\x86\x9d\x00", 0, 0 }, { "RightTee", "\xe2\x8a\xa2\x00", 0, 0 }, { "RightTeeArrow", "\xe2\x86\xa6\x00", 0, 0 }, { "RightTeeVector", "\xe2\xa5\x9b\x00", 0, 0 }, { "rightthreetimes", "\xe2\x8b\x8c\x00", 0, 0 }, { "RightTriangle", "\xe2\x8a\xb3\x00", 0, 0 }, { "RightTriangleBar", "\xe2\xa7\x90\x00", 0, 0 }, { "RightTriangleEqual", "\xe2\x8a\xb5\x00", 0, 0 }, { "RightUpDownVector", "\xe2\xa5\x8f\x00", 0, 0 }, { "RightUpTeeVector", "\xe2\xa5\x9c\x00", 0, 0 }, { "RightUpVector", "\xe2\x86\xbe\x00", 0, 0 }, { "RightUpVectorBar", "\xe2\xa5\x94\x00", 0, 0 }, { "RightVector", "\xe2\x87\x80\x00", 0, 0 }, { "RightVectorBar", "\xe2\xa5\x93\x00", 0, 0 }, { "ring", "\xcb\x9a\x00", 0, 0 }, { "risingdotseq", "\xe2\x89\x93\x00", 0, 0 }, { "rlarr", "\xe2\x87\x84\x00", 0, 0 }, { "rlhar", "\xe2\x87\x8c\x00", 0, 0 }, { "rmoust", "\xe2\x8e\xb1\x00", 0, 0 }, { "rmoustache", "\xe2\x8e\xb1\x00", 0, 0 }, { "rnmid", "\xe2\xab\xae\x00", 0, 0 }, { "roang", "\xef\x95\x99\x00", 0, 0 }, { "roarr", "\xe2\x87\xbe\x00", 0, 0 }, { "robrk", "\xe3\x80\x9b\x00", 0, 0 }, { "ropar", "\xe3\x80\x99\x00", 0, 0 }, { "ropf", "\xf0\x9d\x95\xa3\x00", 0, 0 }, { "Ropf", "\xe2\x84\x9d\x00", 0, 0 }, { "roplus", "\xe2\xa8\xae\x00", 0, 0 }, { "rotimes", "\xe2\xa8\xb5\x00", 0, 0 }, { "RoundImplies", "\xe2\xa5\xb0\x00", 0, 0 }, { "rpar", "\x29\x00", 0, 0 }, { "rpargt", "\xe2\xa6\x94\x00", 0, 0 }, { "rppolint", "\xe2\xa8\x92\x00", 0, 0 }, { "rrarr", "\xe2\x87\x89\x00", 0, 0 }, { "Rrightarrow", "\xe2\x87\x9b\x00", 0, 0 }, { "rscr", "\xf0\x9d\x93\x87\x00", 0, 0 }, { "Rscr", "\xe2\x84\x9b\x00", 0, 0 }, { "rsh", "\xe2\x86\xb1\x00", 0, 0 }, { "Rsh", "\xe2\x86\xb1\x00", 0, 0 }, { "rsqb", "\x5d\x00", 0, 0 }, { "rsquo", "\xe2\x80\x99\x00", 0, 0 }, { "rsquor", "\xe2\x80\x99\x00", 0, 0 }, { "rthree", "\xe2\x8b\x8c\x00", 0, 0 }, { "rtimes", "\xe2\x8b\x8a\x00", 0, 0 }, { "rtri", "\xe2\x96\xb9\x00", 0, 0 }, { "rtrie", "\xe2\x8a\xb5\x00", 0, 0 }, { "rtrif", "\xe2\x96\xb8\x00", 0, 0 }, { "rtriltri", "\xe2\xa7\x8e\x00", 0, 0 }, { "RuleDelayed", "\xe2\xa7\xb4\x00", 0, 0 }, { "ruluhar", "\xe2\xa5\xa8\x00", 0, 0 }, { "rx", "\xe2\x84\x9e\x00", 0, 0 }, { "sacute", "\xc5\x9b\x00", 0, 0 }, { "Sacute", "\xc5\x9a\x00", 0, 0 }, { "sc", "\xe2\x89\xbb\x00", 0, 0 }, { "Sc", "\xe2\xaa\xbc\x00", 0, 0 }, { "scap", "\xe2\x89\xbf\x00", 0, 0 }, { "scaron", "\xc5\xa1\x00", 0, 0 }, { "Scaron", "\xc5\xa0\x00", 0, 0 }, { "sccue", "\xe2\x89\xbd\x00", 0, 0 }, { "sce", "\xe2\x89\xbd\x00", 0, 0 }, { "scE", "\xe2\x89\xbe\x00", 0, 0 }, { "scedil", "\xc5\x9f\x00", 0, 0 }, { "Scedil", "\xc5\x9e\x00", 0, 0 }, { "scirc", "\xc5\x9d\x00", 0, 0 }, { "Scirc", "\xc5\x9c\x00", 0, 0 }, { "scnap", "\xe2\x8b\xa9\x00", 0, 0 }, { "scnE", "\xe2\xaa\xb6\x00", 0, 0 }, { "scnsim", "\xe2\x8b\xa9\x00", 0, 0 }, { "scpolint", "\xe2\xa8\x93\x00", 0, 0 }, { "scsim", "\xe2\x89\xbf\x00", 0, 0 }, { "scy", "\xd1\x81\x00", 0, 0 }, { "Scy", "\xd0\xa1\x00", 0, 0 }, { "sdot", "\xe2\x8b\x85\x00", 0, 0 }, { "sdotb", "\xe2\x8a\xa1\x00", 0, 0 }, { "sdote", "\xe2\xa9\xa6\x00", 0, 0 }, { "searhk", "\xe2\xa4\xa5\x00", 0, 0 }, { "searr", "\xe2\x86\x98\x00", 0, 0 }, { "seArr", "\xe2\x87\x98\x00", 0, 0 }, { "searrow", "\xe2\x86\x98\x00", 0, 0 }, { "sect", "\xc2\xa7\x00", 0, 0 }, { "semi", "\x3b\x00", 0, 0 }, { "seswar", "\xe2\xa4\xa9\x00", 0, 0 }, { "setminus", "\xe2\x88\x96\x00", 0, 0 }, { "setmn", "\xe2\x88\x96\x00", 0, 0 }, { "sext", "\xe2\x9c\xb6\x00", 0, 0 }, { "sfr", "\xf0\x9d\x94\xb0\x00", 0, 0 }, { "Sfr", "\xf0\x9d\x94\x96\x00", 0, 0 }, { "sharp", "\xe2\x99\xaf\x00", 0, 0 }, { "shchcy", "\xd1\x89\x00", 0, 0 }, { "SHCHcy", "\xd0\xa9\x00", 0, 0 }, { "shcy", "\xd1\x88\x00", 0, 0 }, { "SHcy", "\xd0\xa8\x00", 0, 0 }, { "ShortDownArrow", "\xe2\x8c\x84\xef\xb8\x80\x00", 0, 0 }, { "ShortLeftArrow", "\xe2\x86\x90\xef\xb8\x80\x00", 0, 0 }, { "shortmid", "\xe2\x88\xa3\xef\xb8\x80\x00", 0, 0 }, { "shortparallel", "\xe2\x88\xa5\xef\xb8\x80\x00", 0, 0 }, { "ShortRightArrow", "\xe2\x86\x92\xef\xb8\x80\x00", 0, 0 }, { "ShortUpArrow", "\xe2\x8c\x83\xef\xb8\x80\x00", 0, 0 }, { "shy", "\xc2\xad\x00", 0, 0 }, { "sigma", "\xcf\x83\x00", 0, 0 }, { "Sigma", "\xce\xa3\x00", 0, 0 }, { "sigmav", "\xcf\x82\x00", 0, 0 }, { "sim", "\xe2\x88\xbc\x00", 0, 0 }, { "simdot", "\xe2\xa9\xaa\x00", 0, 0 }, { "sime", "\xe2\x89\x83\x00", 0, 0 }, { "simeq", "\xe2\x89\x83\x00", 0, 0 }, { "simg", "\xe2\xaa\x9e\x00", 0, 0 }, { "simgE", "\xe2\xaa\xa0\x00", 0, 0 }, { "siml", "\xe2\xaa\x9d\x00", 0, 0 }, { "simlE", "\xe2\xaa\x9f\x00", 0, 0 }, { "simne", "\xe2\x89\x86\x00", 0, 0 }, { "simplus", "\xe2\xa8\xa4\x00", 0, 0 }, { "simrarr", "\xe2\xa5\xb2\x00", 0, 0 }, { "slarr", "\xe2\x86\x90\xef\xb8\x80\x00", 0, 0 }, { "SmallCircle", "\xe2\x88\x98\x00", 0, 0 }, { "smallsetminus", "\xe2\x88\x96\xef\xb8\x80\x00", 0, 0 }, { "smashp", "\xe2\xa8\xb3\x00", 0, 0 }, { "smeparsl", "\xe2\xa7\xa4\x00", 0, 0 }, { "smid", "\xe2\x88\xa3\xef\xb8\x80\x00", 0, 0 }, { "smile", "\xe2\x8c\xa3\x00", 0, 0 }, { "smt", "\xe2\xaa\xaa\x00", 0, 0 }, { "smte", "\xe2\xaa\xac\x00", 0, 0 }, { "smtes", "\xe2\xaa\xac\xef\xb8\x80\x00", 0, 0 }, { "softcy", "\xd1\x8c\x00", 0, 0 }, { "SOFTcy", "\xd0\xac\x00", 0, 0 }, { "sol", "\x2f\x00", 0, 0 }, { "solb", "\xe2\xa7\x84\x00", 0, 0 }, { "solbar", "\xe2\x8c\xbf\x00", 0, 0 }, { "sopf", "\xf0\x9d\x95\xa4\x00", 0, 0 }, { "Sopf", "\xf0\x9d\x95\x8a\x00", 0, 0 }, { "spades", "\xe2\x99\xa0\x00", 0, 0 }, { "spadesuit", "\xe2\x99\xa0\x00", 0, 0 }, { "spar", "\xe2\x88\xa5\xef\xb8\x80\x00", 0, 0 }, { "sqcap", "\xe2\x8a\x93\x00", 0, 0 }, { "sqcaps", "\xe2\x8a\x93\xef\xb8\x80\x00", 0, 0 }, { "sqcup", "\xe2\x8a\x94\x00", 0, 0 }, { "sqcups", "\xe2\x8a\x94\xef\xb8\x80\x00", 0, 0 }, { "Sqrt", "\xe2\x88\x9a\x00", 0, 0 }, { "sqsub", "\xe2\x8a\x8f\x00", 0, 0 }, { "sqsube", "\xe2\x8a\x91\x00", 0, 0 }, { "sqsubset", "\xe2\x8a\x8f\x00", 0, 0 }, { "sqsubseteq", "\xe2\x8a\x91\x00", 0, 0 }, { "sqsup", "\xe2\x8a\x90\x00", 0, 0 }, { "sqsupe", "\xe2\x8a\x92\x00", 0, 0 }, { "sqsupset", "\xe2\x8a\x90\x00", 0, 0 }, { "sqsupseteq", "\xe2\x8a\x92\x00", 0, 0 }, { "squ", "\xe2\x96\xa1\x00", 0, 0 }, { "square", "\xe2\x96\xa1\x00", 0, 0 }, { "Square", "\xe2\x96\xa1\x00", 0, 0 }, { "SquareIntersection", "\xe2\x8a\x93\x00", 0, 0 }, { "SquareSubset", "\xe2\x8a\x8f\x00", 0, 0 }, { "SquareSubsetEqual", "\xe2\x8a\x91\x00", 0, 0 }, { "SquareSuperset", "\xe2\x8a\x90\x00", 0, 0 }, { "SquareSupersetEqual", "\xe2\x8a\x92\x00", 0, 0 }, { "SquareUnion", "\xe2\x8a\x94\x00", 0, 0 }, { "squarf", "\xe2\x96\xaa\x00", 0, 0 }, { "squf", "\xe2\x96\xaa\x00", 0, 0 }, { "srarr", "\xe2\x86\x92\xef\xb8\x80\x00", 0, 0 }, { "sscr", "\xf0\x9d\x93\x88\x00", 0, 0 }, { "Sscr", "\xf0\x9d\x92\xae\x00", 0, 0 }, { "ssetmn", "\xe2\x88\x96\xef\xb8\x80\x00", 0, 0 }, { "sstarf", "\xe2\x8b\x86\x00", 0, 0 }, { "star", "\xe2\x8b\x86\x00", 0, 0 }, { "Star", "\xe2\x8b\x86\x00", 0, 0 }, { "starf", "\xe2\x98\x85\x00", 0, 0 }, { "straightepsilon", "\xce\xb5\x00", 0, 0 }, { "straightphi", "\xcf\x86\x00", 0, 0 }, { "sub", "\xe2\x8a\x82\x00", 0, 0 }, { "Sub", "\xe2\x8b\x90\x00", 0, 0 }, { "subdot", "\xe2\xaa\xbd\x00", 0, 0 }, { "sube", "\xe2\x8a\x86\x00", 0, 0 }, { "subE", "\xe2\x8a\x86\x00", 0, 0 }, { "subedot", "\xe2\xab\x83\x00", 0, 0 }, { "submult", "\xe2\xab\x81\x00", 0, 0 }, { "subne", "\xe2\x8a\x8a\x00", 0, 0 }, { "subnE", "\xe2\x8a\x8a\x00", 0, 0 }, { "subplus", "\xe2\xaa\xbf\x00", 0, 0 }, { "subrarr", "\xe2\xa5\xb9\x00", 0, 0 }, { "subset", "\xe2\x8a\x82\x00", 0, 0 }, { "Subset", "\xe2\x8b\x90\x00", 0, 0 }, { "subseteq", "\xe2\x8a\x86\x00", 0, 0 }, { "subseteqq", "\xe2\x8a\x86\x00", 0, 0 }, { "SubsetEqual", "\xe2\x8a\x86\x00", 0, 0 }, { "subsetneq", "\xe2\x8a\x8a\x00", 0, 0 }, { "subsetneqq", "\xe2\x8a\x8a\x00", 0, 0 }, { "subsim", "\xe2\xab\x87\x00", 0, 0 }, { "subsub", "\xe2\xab\x95\x00", 0, 0 }, { "subsup", "\xe2\xab\x93\x00", 0, 0 }, { "succ", "\xe2\x89\xbb\x00", 0, 0 }, { "succapprox", "\xe2\x89\xbf\x00", 0, 0 }, { "succcurlyeq", "\xe2\x89\xbd\x00", 0, 0 }, { "Succeeds", "\xe2\x89\xbb\x00", 0, 0 }, { "SucceedsEqual", "\xe2\x89\xbd\x00", 0, 0 }, { "SucceedsSlantEqual", "\xe2\x89\xbd\x00", 0, 0 }, { "SucceedsTilde", "\xe2\x89\xbf\x00", 0, 0 }, { "succeq", "\xe2\x89\xbd\x00", 0, 0 }, { "succnapprox", "\xe2\x8b\xa9\x00", 0, 0 }, { "succneqq", "\xe2\xaa\xb6\x00", 0, 0 }, { "succnsim", "\xe2\x8b\xa9\x00", 0, 0 }, { "succsim", "\xe2\x89\xbf\x00", 0, 0 }, { "SuchThat", "\xe2\x88\x8b\x00", 0, 0 }, { "sum", "\xe2\x88\x91\x00", 0, 0 }, { "Sum", "\xe2\x88\x91\x00", 0, 0 }, { "sung", "\xe2\x99\xaa\x00", 0, 0 }, { "sup", "\xe2\x8a\x83\x00", 0, 0 }, { "Sup", "\xe2\x8b\x91\x00", 0, 0 }, { "sup1", "\xc2\xb9\x00", 0, 0 }, { "sup2", "\xc2\xb2\x00", 0, 0 }, { "sup3", "\xc2\xb3\x00", 0, 0 }, { "supdot", "\xe2\xaa\xbe\x00", 0, 0 }, { "supdsub", "\xe2\xab\x98\x00", 0, 0 }, { "supe", "\xe2\x8a\x87\x00", 0, 0 }, { "supE", "\xe2\x8a\x87\x00", 0, 0 }, { "supedot", "\xe2\xab\x84\x00", 0, 0 }, { "Superset", "\xe2\x8a\x83\x00", 0, 0 }, { "SupersetEqual", "\xe2\x8a\x87\x00", 0, 0 }, { "suphsol", "\xe2\x8a\x83\x2f\x00", 0, 0 }, { "suphsub", "\xe2\xab\x97\x00", 0, 0 }, { "suplarr", "\xe2\xa5\xbb\x00", 0, 0 }, { "supmult", "\xe2\xab\x82\x00", 0, 0 }, { "supne", "\xe2\x8a\x8b\x00", 0, 0 }, { "supnE", "\xe2\x8a\x8b\x00", 0, 0 }, { "supplus", "\xe2\xab\x80\x00", 0, 0 }, { "supset", "\xe2\x8a\x83\x00", 0, 0 }, { "Supset", "\xe2\x8b\x91\x00", 0, 0 }, { "supseteq", "\xe2\x8a\x87\x00", 0, 0 }, { "supseteqq", "\xe2\x8a\x87\x00", 0, 0 }, { "supsetneq", "\xe2\x8a\x8b\x00", 0, 0 }, { "supsetneqq", "\xe2\x8a\x8b\x00", 0, 0 }, { "supsim", "\xe2\xab\x88\x00", 0, 0 }, { "supsub", "\xe2\xab\x94\x00", 0, 0 }, { "supsup", "\xe2\xab\x96\x00", 0, 0 }, { "swarhk", "\xe2\xa4\xa6\x00", 0, 0 }, { "swarr", "\xe2\x86\x99\x00", 0, 0 }, { "swArr", "\xe2\x87\x99\x00", 0, 0 }, { "swarrow", "\xe2\x86\x99\x00", 0, 0 }, { "swnwar", "\xe2\xa4\xaa\x00", 0, 0 }, { "szlig", "\xc3\x9f\x00", 0, 0 }, { "target", "\xe2\x8c\x96\x00", 0, 0 }, { "tau", "\xcf\x84\x00", 0, 0 }, { "tbrk", "\xe2\x8e\xb4\x00", 0, 0 }, { "tcaron", "\xc5\xa5\x00", 0, 0 }, { "Tcaron", "\xc5\xa4\x00", 0, 0 }, { "tcedil", "\xc5\xa3\x00", 0, 0 }, { "Tcedil", "\xc5\xa2\x00", 0, 0 }, { "tcy", "\xd1\x82\x00", 0, 0 }, { "Tcy", "\xd0\xa2\x00", 0, 0 }, { "tdot", "\xe2\x83\x9b\x00", 0, 0 }, { "telrec", "\xe2\x8c\x95\x00", 0, 0 }, { "tfr", "\xf0\x9d\x94\xb1\x00", 0, 0 }, { "Tfr", "\xf0\x9d\x94\x97\x00", 0, 0 }, { "there4", "\xe2\x88\xb4\x00", 0, 0 }, { "therefore", "\xe2\x88\xb4\x00", 0, 0 }, { "Therefore", "\xe2\x88\xb4\x00", 0, 0 }, { "theta", "\xce\xb8\x00", 0, 0 }, { "Theta", "\xce\x98\x00", 0, 0 }, { "thetav", "\xcf\x91\x00", 0, 0 }, { "thickapprox", "\xe2\x89\x88\xef\xb8\x80\x00", 0, 0 }, { "thicksim", "\xe2\x88\xbc\xef\xb8\x80\x00", 0, 0 }, { "ThickSpace", "\xe2\x80\x89\xe2\x80\x8a\xe2\x80\x8a\x00", 0, 0 }, { "thinsp", "\xe2\x80\x89\x00", 0, 0 }, { "ThinSpace", "\xe2\x80\x89\x00", 0, 0 }, { "thkap", "\xe2\x89\x88\xef\xb8\x80\x00", 0, 0 }, { "thksim", "\xe2\x88\xbc\xef\xb8\x80\x00", 0, 0 }, { "thorn", "\xc3\xbe\x00", 0, 0 }, { "THORN", "\xc3\x9e\x00", 0, 0 }, { "tilde", "\xcb\x9c\x00", 0, 0 }, { "Tilde", "\xe2\x88\xbc\x00", 0, 0 }, { "TildeEqual", "\xe2\x89\x83\x00", 0, 0 }, { "TildeFullEqual", "\xe2\x89\x85\x00", 0, 0 }, { "TildeTilde", "\xe2\x89\x88\x00", 0, 0 }, { "times", "\xc3\x97\x00", 0, 0 }, { "timesb", "\xe2\x8a\xa0\x00", 0, 0 }, { "timesbar", "\xe2\xa8\xb1\x00", 0, 0 }, { "timesd", "\xe2\xa8\xb0\x00", 0, 0 }, { "tint", "\xe2\x88\xad\x00", 0, 0 }, { "toea", "\xe2\xa4\xa8\x00", 0, 0 }, { "top", "\xe2\x8a\xa4\x00", 0, 0 }, { "topbot", "\xe2\x8c\xb6\x00", 0, 0 }, { "topcir", "\xe2\xab\xb1\x00", 0, 0 }, { "topf", "\xf0\x9d\x95\xa5\x00", 0, 0 }, { "Topf", "\xf0\x9d\x95\x8b\x00", 0, 0 }, { "topfork", "\xe2\xab\x9a\x00", 0, 0 }, { "tosa", "\xe2\xa4\xa9\x00", 0, 0 }, { "tprime", "\xe2\x80\xb4\x00", 0, 0 }, { "trade", "\xe2\x84\xa2\x00", 0, 0 }, { "triangle", "\xe2\x96\xb5\x00", 0, 0 }, { "triangledown", "\xe2\x96\xbf\x00", 0, 0 }, { "triangleleft", "\xe2\x97\x83\x00", 0, 0 }, { "trianglelefteq", "\xe2\x8a\xb4\x00", 0, 0 }, { "triangleq", "\xe2\x89\x9c\x00", 0, 0 }, { "triangleright", "\xe2\x96\xb9\x00", 0, 0 }, { "trianglerighteq", "\xe2\x8a\xb5\x00", 0, 0 }, { "tridot", "\xe2\x97\xac\x00", 0, 0 }, { "trie", "\xe2\x89\x9c\x00", 0, 0 }, { "triminus", "\xe2\xa8\xba\x00", 0, 0 }, { "TripleDot", "\xe2\x83\x9b\x00", 0, 0 }, { "triplus", "\xe2\xa8\xb9\x00", 0, 0 }, { "trisb", "\xe2\xa7\x8d\x00", 0, 0 }, { "tritime", "\xe2\xa8\xbb\x00", 0, 0 }, { "tscr", "\xf0\x9d\x93\x89\x00", 0, 0 }, { "Tscr", "\xf0\x9d\x92\xaf\x00", 0, 0 }, { "tscy", "\xd1\x86\x00", 0, 0 }, { "TScy", "\xd0\xa6\x00", 0, 0 }, { "tshcy", "\xd1\x9b\x00", 0, 0 }, { "TSHcy", "\xd0\x8b\x00", 0, 0 }, { "tstrok", "\xc5\xa7\x00", 0, 0 }, { "Tstrok", "\xc5\xa6\x00", 0, 0 }, { "twixt", "\xe2\x89\xac\x00", 0, 0 }, { "twoheadleftarrow", "\xe2\x86\x9e\x00", 0, 0 }, { "twoheadrightarrow", "\xe2\x86\xa0\x00", 0, 0 }, { "uacute", "\xc3\xba\x00", 0, 0 }, { "Uacute", "\xc3\x9a\x00", 0, 0 }, { "uarr", "\xe2\x86\x91\x00", 0, 0 }, { "uArr", "\xe2\x87\x91\x00", 0, 0 }, { "Uarr", "\xe2\x86\x9f\x00", 0, 0 }, { "Uarrocir", "\xe2\xa5\x89\x00", 0, 0 }, { "ubrcy", "\xd1\x9e\x00", 0, 0 }, { "Ubrcy", "\xd0\x8e\x00", 0, 0 }, { "ubreve", "\xc5\xad\x00", 0, 0 }, { "Ubreve", "\xc5\xac\x00", 0, 0 }, { "ucirc", "\xc3\xbb\x00", 0, 0 }, { "Ucirc", "\xc3\x9b\x00", 0, 0 }, { "ucy", "\xd1\x83\x00", 0, 0 }, { "Ucy", "\xd0\xa3\x00", 0, 0 }, { "udarr", "\xe2\x87\x85\x00", 0, 0 }, { "udblac", "\xc5\xb1\x00", 0, 0 }, { "Udblac", "\xc5\xb0\x00", 0, 0 }, { "udhar", "\xe2\xa5\xae\x00", 0, 0 }, { "ufisht", "\xe2\xa5\xbe\x00", 0, 0 }, { "ufr", "\xf0\x9d\x94\xb2\x00", 0, 0 }, { "Ufr", "\xf0\x9d\x94\x98\x00", 0, 0 }, { "ugrave", "\xc3\xb9\x00", 0, 0 }, { "Ugrave", "\xc3\x99\x00", 0, 0 }, { "uHar", "\xe2\xa5\xa3\x00", 0, 0 }, { "uharl", "\xe2\x86\xbf\x00", 0, 0 }, { "uharr", "\xe2\x86\xbe\x00", 0, 0 }, { "uhblk", "\xe2\x96\x80\x00", 0, 0 }, { "ulcorn", "\xe2\x8c\x9c\x00", 0, 0 }, { "ulcorner", "\xe2\x8c\x9c\x00", 0, 0 }, { "ulcrop", "\xe2\x8c\x8f\x00", 0, 0 }, { "ultri", "\xe2\x97\xb8\x00", 0, 0 }, { "umacr", "\xc5\xab\x00", 0, 0 }, { "Umacr", "\xc5\xaa\x00", 0, 0 }, { "uml", "\xc2\xa8\x00", 0, 0 }, { "UnderBar", "\xcc\xb2\x00", 0, 0 }, { "UnderBrace", "\xef\xb8\xb8\x00", 0, 0 }, { "UnderBracket", "\xe2\x8e\xb5\x00", 0, 0 }, { "UnderParenthesis", "\xef\xb8\xb6\x00", 0, 0 }, { "Union", "\xe2\x8b\x83\x00", 0, 0 }, { "UnionPlus", "\xe2\x8a\x8e\x00", 0, 0 }, { "uogon", "\xc5\xb3\x00", 0, 0 }, { "Uogon", "\xc5\xb2\x00", 0, 0 }, { "uopf", "\xf0\x9d\x95\xa6\x00", 0, 0 }, { "Uopf", "\xf0\x9d\x95\x8c\x00", 0, 0 }, { "uparrow", "\xe2\x86\x91\x00", 0, 0 }, { "Uparrow", "\xe2\x87\x91\x00", 0, 0 }, { "UpArrow", "\xe2\x86\x91\x00", 0, 0 }, { "UpArrowBar", "\xe2\xa4\x92\x00", 0, 0 }, { "UpArrowDownArrow", "\xe2\x87\x85\x00", 0, 0 }, { "updownarrow", "\xe2\x86\x95\x00", 0, 0 }, { "Updownarrow", "\xe2\x87\x95\x00", 0, 0 }, { "UpDownArrow", "\xe2\x86\x95\x00", 0, 0 }, { "UpEquilibrium", "\xe2\xa5\xae\x00", 0, 0 }, { "upharpoonleft", "\xe2\x86\xbf\x00", 0, 0 }, { "upharpoonright", "\xe2\x86\xbe\x00", 0, 0 }, { "uplus", "\xe2\x8a\x8e\x00", 0, 0 }, { "UpperLeftArrow", "\xe2\x86\x96\x00", 0, 0 }, { "UpperRightArrow", "\xe2\x86\x97\x00", 0, 0 }, { "upsi", "\xcf\x85\x00", 0, 0 }, { "Upsi", "\xcf\x92\x00", 0, 0 }, { "upsilon", "\xcf\x85\x00", 0, 0 }, { "Upsilon", "\xcf\x92\x00", 0, 0 }, { "UpTee", "\xe2\x8a\xa5\x00", 0, 0 }, { "UpTeeArrow", "\xe2\x86\xa5\x00", 0, 0 }, { "upuparrows", "\xe2\x87\x88\x00", 0, 0 }, { "urcorn", "\xe2\x8c\x9d\x00", 0, 0 }, { "urcorner", "\xe2\x8c\x9d\x00", 0, 0 }, { "urcrop", "\xe2\x8c\x8e\x00", 0, 0 }, { "uring", "\xc5\xaf\x00", 0, 0 }, { "Uring", "\xc5\xae\x00", 0, 0 }, { "urtri", "\xe2\x97\xb9\x00", 0, 0 }, { "uscr", "\xf0\x9d\x93\x8a\x00", 0, 0 }, { "Uscr", "\xf0\x9d\x92\xb0\x00", 0, 0 }, { "utdot", "\xe2\x8b\xb0\x00", 0, 0 }, { "utilde", "\xc5\xa9\x00", 0, 0 }, { "Utilde", "\xc5\xa8\x00", 0, 0 }, { "utri", "\xe2\x96\xb5\x00", 0, 0 }, { "utrif", "\xe2\x96\xb4\x00", 0, 0 }, { "uuarr", "\xe2\x87\x88\x00", 0, 0 }, { "uuml", "\xc3\xbc\x00", 0, 0 }, { "Uuml", "\xc3\x9c\x00", 0, 0 }, { "uwangle", "\xe2\xa6\xa7\x00", 0, 0 }, { "vangrt", "\xe2\x8a\xbe\x00", 0, 0 }, { "varepsilon", "\xc9\x9b\x00", 0, 0 }, { "varkappa", "\xcf\xb0\x00", 0, 0 }, { "varnothing", "\xe2\x88\x85\x00", 0, 0 }, { "varphi", "\xcf\x95\x00", 0, 0 }, { "varpi", "\xcf\x96\x00", 0, 0 }, { "varpropto", "\xe2\x88\x9d\x00", 0, 0 }, { "varr", "\xe2\x86\x95\x00", 0, 0 }, { "vArr", "\xe2\x87\x95\x00", 0, 0 }, { "varrho", "\xcf\xb1\x00", 0, 0 }, { "varsigma", "\xcf\x82\x00", 0, 0 }, { "varsubsetneq", "\xe2\x8a\x8a\xef\xb8\x80\x00", 0, 0 }, { "varsubsetneqq", "\xe2\x8a\x8a\xef\xb8\x80\x00", 0, 0 }, { "varsupsetneq", "\xe2\x8a\x8b\xef\xb8\x80\x00", 0, 0 }, { "varsupsetneqq", "\xe2\x8a\x8b\xef\xb8\x80\x00", 0, 0 }, { "vartheta", "\xcf\x91\x00", 0, 0 }, { "vartriangleleft", "\xe2\x8a\xb2\x00", 0, 0 }, { "vartriangleright", "\xe2\x8a\xb3\x00", 0, 0 }, { "vBar", "\xe2\xab\xa8\x00", 0, 0 }, { "Vbar", "\xe2\xab\xab\x00", 0, 0 }, { "vBarv", "\xe2\xab\xa9\x00", 0, 0 }, { "vcy", "\xd0\xb2\x00", 0, 0 }, { "Vcy", "\xd0\x92\x00", 0, 0 }, { "vdash", "\xe2\x8a\xa2\x00", 0, 0 }, { "vDash", "\xe2\x8a\xa8\x00", 0, 0 }, { "Vdash", "\xe2\x8a\xa9\x00", 0, 0 }, { "VDash", "\xe2\x8a\xab\x00", 0, 0 }, { "Vdashl", "\xe2\xab\xa6\x00", 0, 0 }, { "vee", "\xe2\x88\xa8\x00", 0, 0 }, { "Vee", "\xe2\x8b\x81\x00", 0, 0 }, { "veebar", "\xe2\x8a\xbb\x00", 0, 0 }, { "veeeq", "\xe2\x89\x9a\x00", 0, 0 }, { "vellip", "\xe2\x8b\xae\x00", 0, 0 }, { "verbar", "\x7c\x00", 0, 0 }, { "Verbar", "\xe2\x80\x96\x00", 0, 0 }, { "vert", "\x7c\x00", 0, 0 }, { "Vert", "\xe2\x80\x96\x00", 0, 0 }, { "VerticalBar", "\xe2\x88\xa3\x00", 0, 0 }, { "VerticalLine", "\x7c\x00", 0, 0 }, { "VerticalSeparator", "\xe2\x9d\x98\x00", 0, 0 }, { "VerticalTilde", "\xe2\x89\x80\x00", 0, 0 }, { "VeryThinSpace", "\xe2\x80\x8a\x00", 0, 0 }, { "vfr", "\xf0\x9d\x94\xb3\x00", 0, 0 }, { "Vfr", "\xf0\x9d\x94\x99\x00", 0, 0 }, { "vltri", "\xe2\x8a\xb2\x00", 0, 0 }, { "vnsub", "\xe2\x8a\x84\x00", 0, 0 }, { "vnsup", "\xe2\x8a\x85\x00", 0, 0 }, { "vopf", "\xf0\x9d\x95\xa7\x00", 0, 0 }, { "Vopf", "\xf0\x9d\x95\x8d\x00", 0, 0 }, { "vprop", "\xe2\x88\x9d\x00", 0, 0 }, { "vrtri", "\xe2\x8a\xb3\x00", 0, 0 }, { "vscr", "\xf0\x9d\x93\x8b\x00", 0, 0 }, { "Vscr", "\xf0\x9d\x92\xb1\x00", 0, 0 }, { "vsubne", "\xe2\x8a\x8a\xef\xb8\x80\x00", 0, 0 }, { "vsubnE", "\xe2\x8a\x8a\xef\xb8\x80\x00", 0, 0 }, { "vsupne", "\xe2\x8a\x8b\xef\xb8\x80\x00", 0, 0 }, { "vsupnE", "\xe2\x8a\x8b\xef\xb8\x80\x00", 0, 0 }, { "Vvdash", "\xe2\x8a\xaa\x00", 0, 0 }, { "vzigzag", "\xe2\xa6\x9a\x00", 0, 0 }, { "wcirc", "\xc5\xb5\x00", 0, 0 }, { "Wcirc", "\xc5\xb4\x00", 0, 0 }, { "wedbar", "\xe2\xa9\x9f\x00", 0, 0 }, { "wedge", "\xe2\x88\xa7\x00", 0, 0 }, { "Wedge", "\xe2\x8b\x80\x00", 0, 0 }, { "wedgeq", "\xe2\x89\x99\x00", 0, 0 }, { "weierp", "\xe2\x84\x98\x00", 0, 0 }, { "wfr", "\xf0\x9d\x94\xb4\x00", 0, 0 }, { "Wfr", "\xf0\x9d\x94\x9a\x00", 0, 0 }, { "wopf", "\xf0\x9d\x95\xa8\x00", 0, 0 }, { "Wopf", "\xf0\x9d\x95\x8e\x00", 0, 0 }, { "wp", "\xe2\x84\x98\x00", 0, 0 }, { "wr", "\xe2\x89\x80\x00", 0, 0 }, { "wreath", "\xe2\x89\x80\x00", 0, 0 }, { "wscr", "\xf0\x9d\x93\x8c\x00", 0, 0 }, { "Wscr", "\xf0\x9d\x92\xb2\x00", 0, 0 }, { "xcap", "\xe2\x8b\x82\x00", 0, 0 }, { "xcirc", "\xe2\x97\xaf\x00", 0, 0 }, { "xcup", "\xe2\x8b\x83\x00", 0, 0 }, { "xdtri", "\xe2\x96\xbd\x00", 0, 0 }, { "xfr", "\xf0\x9d\x94\xb5\x00", 0, 0 }, { "Xfr", "\xf0\x9d\x94\x9b\x00", 0, 0 }, { "xharr", "\xef\x95\xb8\x00", 0, 0 }, { "xhArr", "\xef\x95\xbb\x00", 0, 0 }, { "xi", "\xce\xbe\x00", 0, 0 }, { "Xi", "\xce\x9e\x00", 0, 0 }, { "xlarr", "\xef\x95\xb6\x00", 0, 0 }, { "xlArr", "\xef\x95\xb9\x00", 0, 0 }, { "xmap", "\xef\x95\xbd\x00", 0, 0 }, { "xnis", "\xe2\x8b\xbb\x00", 0, 0 }, { "xodot", "\xe2\x8a\x99\x00", 0, 0 }, { "xopf", "\xf0\x9d\x95\xa9\x00", 0, 0 }, { "Xopf", "\xf0\x9d\x95\x8f\x00", 0, 0 }, { "xoplus", "\xe2\x8a\x95\x00", 0, 0 }, { "xotime", "\xe2\x8a\x97\x00", 0, 0 }, { "xrarr", "\xef\x95\xb7\x00", 0, 0 }, { "xrArr", "\xef\x95\xba\x00", 0, 0 }, { "xscr", "\xf0\x9d\x93\x8d\x00", 0, 0 }, { "Xscr", "\xf0\x9d\x92\xb3\x00", 0, 0 }, { "xsqcup", "\xe2\x8a\x94\x00", 0, 0 }, { "xuplus", "\xe2\x8a\x8e\x00", 0, 0 }, { "xutri", "\xe2\x96\xb3\x00", 0, 0 }, { "xvee", "\xe2\x8b\x81\x00", 0, 0 }, { "xwedge", "\xe2\x8b\x80\x00", 0, 0 }, { "yacute", "\xc3\xbd\x00", 0, 0 }, { "Yacute", "\xc3\x9d\x00", 0, 0 }, { "yacy", "\xd1\x8f\x00", 0, 0 }, { "YAcy", "\xd0\xaf\x00", 0, 0 }, { "ycirc", "\xc5\xb7\x00", 0, 0 }, { "Ycirc", "\xc5\xb6\x00", 0, 0 }, { "ycy", "\xd1\x8b\x00", 0, 0 }, { "Ycy", "\xd0\xab\x00", 0, 0 }, { "yen", "\xc2\xa5\x00", 0, 0 }, { "yfr", "\xf0\x9d\x94\xb6\x00", 0, 0 }, { "Yfr", "\xf0\x9d\x94\x9c\x00", 0, 0 }, { "yicy", "\xd1\x97\x00", 0, 0 }, { "YIcy", "\xd0\x87\x00", 0, 0 }, { "yopf", "\xf0\x9d\x95\xaa\x00", 0, 0 }, { "Yopf", "\xf0\x9d\x95\x90\x00", 0, 0 }, { "yscr", "\xf0\x9d\x93\x8e\x00", 0, 0 }, { "Yscr", "\xf0\x9d\x92\xb4\x00", 0, 0 }, { "yucy", "\xd1\x8e\x00", 0, 0 }, { "YUcy", "\xd0\xae\x00", 0, 0 }, { "yuml", "\xc3\xbf\x00", 0, 0 }, { "Yuml", "\xc5\xb8\x00", 0, 0 }, { "zacute", "\xc5\xba\x00", 0, 0 }, { "Zacute", "\xc5\xb9\x00", 0, 0 }, { "zcaron", "\xc5\xbe\x00", 0, 0 }, { "Zcaron", "\xc5\xbd\x00", 0, 0 }, { "zcy", "\xd0\xb7\x00", 0, 0 }, { "Zcy", "\xd0\x97\x00", 0, 0 }, { "zdot", "\xc5\xbc\x00", 0, 0 }, { "Zdot", "\xc5\xbb\x00", 0, 0 }, { "zeetrf", "\xe2\x84\xa8\x00", 0, 0 }, { "ZeroWidthSpace", "\xe2\x80\x8b\x00", 0, 0 }, { "zeta", "\xce\xb6\x00", 0, 0 }, { "zfr", "\xf0\x9d\x94\xb7\x00", 0, 0 }, { "Zfr", "\xe2\x84\xa8\x00", 0, 0 }, { "zhcy", "\xd0\xb6\x00", 0, 0 }, { "ZHcy", "\xd0\x96\x00", 0, 0 }, { "zigrarr", "\xe2\x87\x9d\x00", 0, 0 }, { "zopf", "\xf0\x9d\x95\xab\x00", 0, 0 }, { "Zopf", "\xe2\x84\xa4\x00", 0, 0 }, { "zscr", "\xf0\x9d\x93\x8f\x00", 0, 0 }, { "Zscr", "\xf0\x9d\x92\xb5\x00", 0, 0 }, gtkmathview-0.8.0/auto/Char.hh0000644000175000017500000000335510704610655013152 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Char_hh__ #define __Char_hh__ typedef char Char; #if 1 == 0 #define GTKMATHVIEW_CHAR_UNSIGNED 1 #endif #if 1 == 1 typedef char Char8; #ifdef GTKMATHVIEW_CHAR_UNSIGNED typedef char UChar8; #else typedef unsigned char UChar8; #endif #define CHAR8 1 #else #error "could not define type Char8" #endif #if 2 == 1 typedef char Char16; #define CHAR16 1 #elif 2 == 4 typedef wchar_t Char16; #else #if 2 == 2 typedef unsigned short Char16; #elif 2 == 4 typedef unsigned int Char16; #elif 2 == 4 typedef unsigned long Char16; #else #error "could not define type Char16" #endif #endif #if 4 == 1 typedef char Char32; #define CHAR32 1 #elif 4 == 4 typedef wchar_t Char32; #else #if 4 == 4 typedef unsigned int Char32; #elif 4 == 4 typedef unsigned long Char32; #elif 4 == 8 typedef unsigned long long Char32; #else #error "could not define type Char32" #endif #endif #endif // __Char_hh__ gtkmathview-0.8.0/auto/token-list.xml0000644000175000017500000002130610613606773014570 00000000000000 gtkmathview-0.8.0/auto/Char.hh.in0000644000175000017500000000335510704621260013551 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Char_hh__ #define __Char_hh__ typedef char Char; #if 1 == 0 #define GTKMATHVIEW_CHAR_UNSIGNED 1 #endif #if 1 == 1 typedef char Char8; #ifdef GTKMATHVIEW_CHAR_UNSIGNED typedef char UChar8; #else typedef unsigned char UChar8; #endif #define CHAR8 1 #else #error "could not define type Char8" #endif #if 2 == 1 typedef char Char16; #define CHAR16 1 #elif 2 == 4 typedef wchar_t Char16; #else #if 2 == 2 typedef unsigned short Char16; #elif 2 == 4 typedef unsigned int Char16; #elif 2 == 4 typedef unsigned long Char16; #else #error "could not define type Char16" #endif #endif #if 4 == 1 typedef char Char32; #define CHAR32 1 #elif 4 == 4 typedef wchar_t Char32; #else #if 4 == 4 typedef unsigned int Char32; #elif 4 == 4 typedef unsigned long Char32; #elif 4 == 8 typedef unsigned long long Char32; #else #error "could not define type Char32" #endif #endif #endif // __Char_hh__ gtkmathview-0.8.0/auto/Makefile.am0000644000175000017500000000330410704625405014001 00000000000000 NULL = noinst_PROGRAMS = if COND_GMETADOM noinst_PROGRAMS += dumpEntitiesTable entitiesTable.inc: $(CONFIGDIR)/entities-table.xml dumpEntitiesTable ./dumpEntitiesTable $< >$@ else entitiesTable.inc: cp $(top_srcdir)/auto/entitiesTable.inc_ entitiesTable.inc endif dumpEntitiesTable_SOURCES = dumpEntitiesTable.cc dumpEntitiesTable_LDADD = @DOM_LIBS@ AUTOFILES = \ token.dec \ token.def \ config.dirs \ entitiesTable.inc \ $(NULL) EXTRA_DIST = \ list-to-dec.xsl \ list-to-def.xsl \ token-list.xml \ stretchy.list \ Char.hh.in.in \ Char.hh.in \ token.dec \ token.def \ entitiesTable.inc_ \ $(NULL) DISTCLEANFILES = config.dirs entitiesTable.inc Char.hh MAINTAINERCLEANFILES = token.dec token.def mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ Char.hh noinst_HEADERS = $(AUTOFILES) SCRIPTDIR = ../scripts CONFIGDIR = ../config if COND_XSLTPROC XSLTPROC = xsltproc token.dec: token-list.xml list-to-dec.xsl $(XSLTPROC) $(srcdir)/list-to-dec.xsl $< >$@ token.def: token-list.xml list-to-def.xsl $(XSLTPROC) $(srcdir)/list-to-def.xsl $< >$@ endif .PHONY: config.dirs config.dirs: ( \ echo "#define PKGDATADIR \"$(pkgdatadir)\"" >$@.maybe; \ echo "#define PKGSYSCONFDIR \"$(sysconfdir)/@PACKAGE@\"" >>$@.maybe; \ if test ! \( -e $@ \); then \ mv $@.maybe $@; \ elif ! diff $@.maybe $@ >/dev/null; then \ mv $@.maybe $@; \ else \ rm $@.maybe; \ fi \ ) Char.hh: $(top_builddir)/auto/Char.hh.in ( \ if test ! \( -e $@ \); then \ cp $< $@; \ elif ! diff $< $@ >/dev/null; then \ cp $< $@; \ fi \ ) INCLUDES = \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/frontend/gmetadom \ -I$(top_builddir) \ $(DOM_CFLAGS) \ $(NULL) gtkmathview-0.8.0/auto/Makefile.in0000644000175000017500000004540610704625435014026 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = $(am__EXEEXT_1) @COND_GMETADOM_TRUE@am__append_1 = dumpEntitiesTable subdir = auto DIST_COMMON = $(mathview_HEADERS) $(noinst_HEADERS) \ $(srcdir)/Char.hh.in.in $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = Char.hh.in @COND_GMETADOM_TRUE@am__EXEEXT_1 = dumpEntitiesTable$(EXEEXT) PROGRAMS = $(noinst_PROGRAMS) am_dumpEntitiesTable_OBJECTS = dumpEntitiesTable.$(OBJEXT) dumpEntitiesTable_OBJECTS = $(am_dumpEntitiesTable_OBJECTS) dumpEntitiesTable_DEPENDENCIES = DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(dumpEntitiesTable_SOURCES) DIST_SOURCES = $(dumpEntitiesTable_SOURCES) am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(mathviewdir)" mathviewHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(mathview_HEADERS) $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = dumpEntitiesTable_SOURCES = dumpEntitiesTable.cc dumpEntitiesTable_LDADD = @DOM_LIBS@ AUTOFILES = \ token.dec \ token.def \ config.dirs \ entitiesTable.inc \ $(NULL) EXTRA_DIST = \ list-to-dec.xsl \ list-to-def.xsl \ token-list.xml \ stretchy.list \ Char.hh.in.in \ Char.hh.in \ token.dec \ token.def \ entitiesTable.inc_ \ $(NULL) DISTCLEANFILES = config.dirs entitiesTable.inc Char.hh MAINTAINERCLEANFILES = token.dec token.def mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ Char.hh noinst_HEADERS = $(AUTOFILES) SCRIPTDIR = ../scripts CONFIGDIR = ../config @COND_XSLTPROC_TRUE@XSLTPROC = xsltproc INCLUDES = \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/frontend/gmetadom \ -I$(top_builddir) \ $(DOM_CFLAGS) \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign auto/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign auto/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh Char.hh.in: $(top_builddir)/config.status $(srcdir)/Char.hh.in.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; for p in $$list; do \ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done dumpEntitiesTable$(EXEEXT): $(dumpEntitiesTable_OBJECTS) $(dumpEntitiesTable_DEPENDENCIES) @rm -f dumpEntitiesTable$(EXEEXT) $(CXXLINK) $(dumpEntitiesTable_LDFLAGS) $(dumpEntitiesTable_OBJECTS) $(dumpEntitiesTable_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dumpEntitiesTable.Po@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-mathviewHEADERS: $(mathview_HEADERS) @$(NORMAL_INSTALL) test -z "$(mathviewdir)" || $(mkdir_p) "$(DESTDIR)$(mathviewdir)" @list='$(mathview_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(mathviewHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(mathviewdir)/$$f'"; \ $(mathviewHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(mathviewdir)/$$f"; \ done uninstall-mathviewHEADERS: @$(NORMAL_UNINSTALL) @list='$(mathview_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(mathviewdir)/$$f'"; \ rm -f "$(DESTDIR)$(mathviewdir)/$$f"; \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(mathviewdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-mathviewHEADERS install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-mathviewHEADERS .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-mathviewHEADERS install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-info-am \ uninstall-mathviewHEADERS @COND_GMETADOM_TRUE@entitiesTable.inc: $(CONFIGDIR)/entities-table.xml dumpEntitiesTable @COND_GMETADOM_TRUE@ ./dumpEntitiesTable $< >$@ @COND_GMETADOM_FALSE@entitiesTable.inc: @COND_GMETADOM_FALSE@ cp $(top_srcdir)/auto/entitiesTable.inc_ entitiesTable.inc @COND_XSLTPROC_TRUE@token.dec: token-list.xml list-to-dec.xsl @COND_XSLTPROC_TRUE@ $(XSLTPROC) $(srcdir)/list-to-dec.xsl $< >$@ @COND_XSLTPROC_TRUE@token.def: token-list.xml list-to-def.xsl @COND_XSLTPROC_TRUE@ $(XSLTPROC) $(srcdir)/list-to-def.xsl $< >$@ .PHONY: config.dirs config.dirs: ( \ echo "#define PKGDATADIR \"$(pkgdatadir)\"" >$@.maybe; \ echo "#define PKGSYSCONFDIR \"$(sysconfdir)/@PACKAGE@\"" >>$@.maybe; \ if test ! \( -e $@ \); then \ mv $@.maybe $@; \ elif ! diff $@.maybe $@ >/dev/null; then \ mv $@.maybe $@; \ else \ rm $@.maybe; \ fi \ ) Char.hh: $(top_builddir)/auto/Char.hh.in ( \ if test ! \( -e $@ \); then \ cp $< $@; \ elif ! diff $< $@ >/dev/null; then \ cp $< $@; \ fi \ ) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/auto/Char.hh.in.in0000644000175000017500000000401510661271106014152 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Char_hh__ #define __Char_hh__ typedef char Char; #if 1 == @CHAR_UNSIGNED@ #define GTKMATHVIEW_CHAR_UNSIGNED 1 #endif #if 1 == @GTKMATHVIEW_SIZEOF_CHAR@ typedef char Char8; #ifdef GTKMATHVIEW_CHAR_UNSIGNED typedef char UChar8; #else typedef unsigned char UChar8; #endif #define CHAR8 1 #else #error "could not define type Char8" #endif #if 2 == @GTKMATHVIEW_SIZEOF_CHAR@ typedef char Char16; #define CHAR16 1 #elif 2 == @GTKMATHVIEW_SIZEOF_WCHAR_T@ typedef wchar_t Char16; #else #if 2 == @GTKMATHVIEW_SIZEOF_SHORT@ typedef unsigned short Char16; #elif 2 == @GTKMATHVIEW_SIZEOF_INT@ typedef unsigned int Char16; #elif 2 == @GTKMATHVIEW_SIZEOF_LONG@ typedef unsigned long Char16; #else #error "could not define type Char16" #endif #endif #if 4 == @GTKMATHVIEW_SIZEOF_CHAR@ typedef char Char32; #define CHAR32 1 #elif 4 == @GTKMATHVIEW_SIZEOF_WCHAR_T@ typedef wchar_t Char32; #else #if 4 == @GTKMATHVIEW_SIZEOF_INT@ typedef unsigned int Char32; #elif 4 == @GTKMATHVIEW_SIZEOF_LONG@ typedef unsigned long Char32; #elif 4 == @GTKMATHVIEW_SIZEOF_LONG_LONG@ typedef unsigned long long Char32; #else #error "could not define type Char32" #endif #endif #endif // __Char_hh__ gtkmathview-0.8.0/auto/stretchy.list0000644000175000017500000000547510613606773014530 000000000000000x0308, // LeftAngleBracket 0x02308, // LeftCeiling 0x0301A, // LeftDoubleBracket 0x0230A, // LeftFloor 0x0309, // RightAngleBracket 0x02309, // RightCeiling 0x0301B, // RightDoubleBracket 0x0230B, // RightFloor 0x0250, // HorizontalLine 0x02758, // VerticalLine 0x02758, // VerticalSeparator 0x021D2, // Implies 0x02A54, // Or 0x02A53, // And 0x021D0, // DoubleLeftArrow 0x021D4, // DoubleLeftRightArrow 0x021D2, // DoubleRightArrow 0x02950, // DownLeftRightVector 0x0295E, // DownLeftTeeVector 0x021BD, // DownLeftVector 0x02956, // DownLeftVectorBar 0x0295F, // DownRightTeeVector 0x021C1, // DownRightVector 0x02957, // DownRightVectorBar 0x02190, // LeftArrow 0x021E4, // LeftArrowBar 0x021C6, // LeftArrowRightArrow 0x02194, // LeftRightArrow 0x0294E, // LeftRightVector 0x021A4, // LeftTeeArrow 0x0295A, // LeftTeeVector 0x021BC, // LeftVector 0x02952, // LeftVectorBar 0x02199, // LowerLeftArrow 0x02198, // LowerRightArrow 0x02192, // RightArrow 0x021E5, // RightArrowBar 0x021C4, // RightArrowLeftArrow 0x021A6, // RightTeeArrow 0x0295B, // RightTeeVector 0x021C0, // RightVector 0x02953, // RightVectorBar 0x02196, // UpperLeftArrow 0x02197, // UpperRightArrow 0x021CC, // Equilibrium 0x021CB, // ReverseEquilibrium 0x02294, // SquareUnion 0x022C3, // Union 0x0228E, // UnionPlus 0x022C2, // Intersection 0x02293, // SquareIntersection 0x022C1, // Vee 0x02211, // Sum 0x022C3, // Union 0x0228E, // UnionPlus 0x02232, // ClockwiseContourIntegral 0x0222E, // ContourIntegral 0x02233, // CounterClockwiseContourIntegral 0x0222F, // DoubleContourIntegral 0x0222B, // Integral 0x022C0, // Wedge 0x02210, // Coproduct 0x0220F, // Product 0x022C2, // Intersection 0x02216, // Backslash 0x0221A, // Sqrt 0x021D3, // DoubleDownArrow 0x021D0, // DoubleLongLeftArrow 0x021D4, // DoubleLongLeftRightArrow 0x021D2, // DoubleLongRightArrow 0x021D1, // DoubleUpArrow 0x021D5, // DoubleUpDownArrow 0x02193, // DownArrow 0x02913, // DownArrowBar 0x021F5, // DownArrowUpArrow 0x021A7, // DownTeeArrow 0x02961, // LeftDownTeeVector 0x021C3, // LeftDownVector 0x02959, // LeftDownVectorBar 0x02951, // LeftUpDownVector 0x02960, // LeftUpTeeVector 0x021BF, // LeftUpVector 0x02958, // LeftUpVectorBar 0x02190, // LongLeftArrow 0x02194, // LongLeftRightArrow 0x02192, // LongRightArrow 0x0296F, // ReverseUpEquilibrium 0x0295D, // RightDownTeeVector 0x021C2, // RightDownVector 0x02955, // RightDownVectorBar 0x0294F, // RightUpDownVector 0x0295C, // RightUpTeeVector 0x021BE, // RightUpVector 0x02954, // RightUpVectorBar 0x02191, // UpArrow 0x02912, // UpArrowBar 0x021C5, // UpArrowDownArrow 0x02195, // UpDownArrow 0x0296E, // UpEquilibrium 0x021A5, // UpTeeArrow 0x02DC, // DiacriticalTilde 0x02C7, // Hacek 0x0302, // Hat 0x0AF, // OverBar 0x0FE37, // OverBrace 0x023B4, // OverBracket 0x0FE35, // OverParenthesis 0x0332, // UnderBar 0x0FE38, // UnderBrace 0x023B5, // UnderBracket gtkmathview-0.8.0/ChangeLog0000644000175000017500000000160710613606776012564 000000000000002004-07-22 Hubert Figuiere * autogen.sh: Enforce automake 1.7 use in autogen.sh until further changes to work with older release. * src/frontend/common/TemplateBuilder.hh: missing include * src/frontend/libxml2_reader/Makefile.am (INCLUDES): Made sure we can build in a different dir than srcdir. * src/formatter/mathml_graphic_device/Makefile.am: * src/formatter/gtk_mathml_graphic_device/Makefile.am: * src/engine/mathml/Makefile.am: * src/engine/common/Makefile.am: * src/common/Makefile.am: * src/common/mathvariants/Makefile.am: * config/Makefile.am: * auto/Makefile.am: Made sure we can build in a different dir than srcdir. Thu, 17 Jul 2003 12:20:55 +0200 * the widget does not allocate a Frame anymore Thu, 22 May 2003 12:20:34 +0200 * configure.ac now uses pkg-config for detecting most libraries (those having pkg-config conf files) gtkmathview-0.8.0/configure.ac0000644000175000017500000003547010704610364013272 00000000000000dnl Process this file with autoconf to produce a configure script. AC_INIT AC_CONFIG_SRCDIR([src/common/Clock.hh]) MATHVIEW_MAJOR_VERSION=0 MATHVIEW_MINOR_VERSION=8 MATHVIEW_MICRO_VERSION=0 MATHVIEW_VERSION=$MATHVIEW_MAJOR_VERSION.$MATHVIEW_MINOR_VERSION.$MATHVIEW_MICRO_VERSION MATHVIEW_VERSION_INFO=`expr $MATHVIEW_MAJOR_VERSION + $MATHVIEW_MINOR_VERSION`:$MATHVIEW_MICRO_VERSION:$MATHVIEW_MINOR_VERSION MAJOR_VERSION=$MATHVIEW_MAJOR_VERSION MINOR_VERSION=$MATHVIEW_MINOR_VERSION VERSION=$MATHVIEW_VERSION AC_SUBST(MAJOR_VERSION) AC_SUBST(MINOR_VERSION) AC_SUBST(MATHVIEW_VERSION) AC_SUBST(MATHVIEW_VERSION_INFO) AREAMODEL_VERSION_INFO=$MATHVIEW_VERSION_INFO AC_SUBST(AREAMODEL_VERSION_INFO) AC_ARG_ENABLE( builder-cache, [ --enable-builder-cache[=ARG] enable the cache for MathML text nodes [default=no]], enable_builder_cache=$enableval, enable_builder_cache=no ) AC_ARG_ENABLE( pipe, [ --enable-pipe[=ARG] enable the -pipe option in the GCC compiler [default=no]], enable_pipe=$enableval, enable_pipe=no ) AC_ARG_ENABLE( profile, [ --enable-profile[=ARG] include profiling information [default=no]], enable_profile=$enableval, enable_profile=no ) AC_ARG_ENABLE( debug, [ --enable-debug[=ARG] include debugging debug [default=yes]], enable_debug=$enableval, enable_debug=no ) AC_ARG_ENABLE( breaks, [ --enable-breaks[=ARG] enable linebreaking with mspace elements [default=no]], enable_breaks=$enableval, enable_breaks=no ) if test "x$enable_breaks" = "xyes"; then AC_DEFINE(ENABLE_BREAKS,1,[Define to 1 if you want to enable linebreaking using mspace elements]) fi AC_ARG_ENABLE( boxml, [ --enable-boxml[=ARG] enable support for BoxML markup [default=yes]], enable_boxml=$enableval, enable_boxml=yes ) AM_CONDITIONAL([COND_BOXML], [test "$enable_boxml" = "yes"]) if test "x$enable_boxml" = "xyes"; then AC_DEFINE(GMV_ENABLE_BOXML,1,[Define to 1 if you want support for BoxML markup]) GMV_ENABLE_BOXML_CFLAGS=-DGMV_ENABLE_BOXML=1 else GMV_ENABLE_BOXML_CFLAGS= fi AC_SUBST(GMV_ENABLE_BOXML_CFLAGS) AC_ARG_ENABLE( gmetadom, [ --enable-gmetadom[=ARG] enable the GMetaDOM frontend [default=auto]], enable_gmetadom=$enableval, enable_gmetadom="auto" ) AC_ARG_ENABLE( libxml2, [ --enable-libxml2[=ARG] enable the libxml2 frontend [default=auto]], enable_libxml2=$enableval, enable_libxml2="auto" ) AC_ARG_ENABLE( libxml2-reader, [ --enable-libxml2-reader[=ARG] enable the libxml2 reader frontend [default=auto]], enable_libxml2_reader=$enableval, enable_libxml2_reader="auto" ) AC_ARG_ENABLE( custom-reader, [ --enable-custom-reader[=ARG] enable the custom reader frontend [default=yes]], enable_custom_reader=$enableval, enable_custom_reader="yes" ) AC_ARG_ENABLE( tfm, [ --enable-tfm[=ARG] enable support level for TeX Font Metrics (0,1,2,3) [disabled=0,default=2]], enable_tfm=$enableval, enable_tfm="2" ) if test $enable_tfm = "yes"; then enable_tfm="2" elif test $enable_tfm = "no"; then enable_tfm="0" fi AC_ARG_ENABLE( gtk, [ --enable-gtk[=ARG] enable GTK backend [default=auto]], enable_gtk=$enableval, enable_gtk="auto" ) AC_ARG_ENABLE( svg, [ --enable-svg[=ARG] enable SVG backend [default=yes]], enable_svg=$enableval, enable_svg="yes" ) AC_ARG_ENABLE( ps, [ --enable-ps[=ARG] enable PostScript backend [default=yes]], enable_ps=$enableval, enable_ps="yes" ) AC_ARG_ENABLE( gcc-pch, [ --enable-gcc-pch=[yes/no/auto] use gcc4 pch support (default=auto)], enable_gcc_pch=$enableval, enable_gcc_pch="auto" ) AC_ARG_WITH( t1lib, [ --with-t1lib[=ARG] compile with t1lib 1.x library [default=auto]], with_t1lib=$withval, with_t1lib=auto ) AC_ARG_WITH( t1lib-prefix, [ --with-t1lib-prefix=PFX prefix dir where t1lib is installed], [ with_t1lib_prefix=yes T1LIB_PREFIX=$withval ], [ with_t1lib_prefix=no ] ) AC_ARG_WITH( popt-prefix, [ --with-popt-prefix=PFX prefix dir where popt is installed], [ with_popt_prefix="yes" POPT_PREFIX=$withval ], [ with_popt_prefix="no" ] ) AC_ARG_WITH( popt, [ --with-popt[=ARG] use popt - required for mathmlsvg and viewer (default=auto)], with_popt=$withval, with_popt="auto" ) dnl Automake configuration AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(gtkmathview, $MATHVIEW_VERSION) AC_LIBTOOL_WIN32_DLL AM_PROG_LIBTOOL dnl config.h top and bottom AH_TOP([ /* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef config_h #define config_h ]) AH_BOTTOM([ #define GMV_ENABLE_TFM (GMV_TFM_LEVEL != 0) #endif /* config_h */ ]) dnl Checks for programs. AC_PROG_CC AC_PROG_CXX AC_PROG_LN_S AC_ISC_POSIX dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(unistd.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_BIGENDIAN AC_C_CHAR_UNSIGNED AC_CHECK_SIZEOF(unsigned char, 1) AC_CHECK_SIZEOF(unsigned short, 2) AC_CHECK_SIZEOF(unsigned int, 4) AC_CHECK_SIZEOF(unsigned long, 4) AC_CHECK_SIZEOF(unsigned long long, 8) AC_CHECK_SIZEOF(wchar_t, 8) if test "x$ac_cv_c_char_unsigned" = "xyes"; then AC_SUBST(CHAR_UNSIGNED, "1") else AC_SUBST(CHAR_UNSIGNED, "0") fi AC_SUBST(GTKMATHVIEW_SIZEOF_CHAR, "$ac_cv_sizeof_unsigned_char") AC_SUBST(GTKMATHVIEW_SIZEOF_SHORT, "$ac_cv_sizeof_unsigned_short") AC_SUBST(GTKMATHVIEW_SIZEOF_INT, "$ac_cv_sizeof_unsigned_int") AC_SUBST(GTKMATHVIEW_SIZEOF_LONG, "$ac_cv_sizeof_unsigned_long") AC_SUBST(GTKMATHVIEW_SIZEOF_LONG_LONG, "$ac_cv_sizeof_unsigned_long_long") AC_SUBST(GTKMATHVIEW_SIZEOF_WCHAR_T, "$ac_cv_sizeof_wchar_t") AC_LANG_PUSH(C++) AC_CHECK_HEADERS(hash_map, [ AC_DEFINE(GMV_HAVE_HASH_MAP,1,[Define if is provided]) GMV_HAVE_HASH_MAP_CFLAGS=-DGMV_HAVE_HASH_MAP=1 ], [ GMV_HAVE_HASH_MAP_CFLAGS= ] ) AC_SUBST(GMV_HAVE_HASH_MAP_CFLAGS) AC_CHECK_HEADERS(ext/hash_map, [ AC_DEFINE(GMV_HAVE_EXT_HASH_MAP,1,[Define if is provided]) GMV_HAVE_EXT_HASH_MAP_CFLAGS=-DGMV_HAVE_EXT_HASH_MAP=1 ], [ GMV_HAVE_EXT_HASH_MAP_CFLAGS= ] ) AC_SUBST(GMV_HAVE_EXT_HASH_MAP_CFLAGS) AC_MSG_CHECKING([whether the C++ compiler supports the standard character traits]) AC_TRY_LINK( [#include ], [ std::basic_string s1; std::basic_string s2; std::basic_string s3; s2 = s3; ], [ AC_DEFINE(STD_TRAITS,1,[Define to 1 if standard traits for char and wchar_t are provided]) AC_MSG_RESULT(yes) ], [ AC_MSG_RESULT(no) ] ) AC_LANG_POP(C++) AC_CHECK_PROG(HAVE_XSLTPROC, xsltproc, yes, no) if test $HAVE_XSLTPROC = "no"; then AC_MSG_WARN(xsltproc not found, the compilation may fail) fi AM_CONDITIONAL([COND_XSLTPROC], [test "$HAVE_XSLTPROC" = "yes"]) have_popt="no" if test $with_popt = "auto"; then AC_CHECK_HEADERS(popt.h,[ AC_CHECK_LIB(popt, poptGetContext, [have_popt="yes"]) ]) else have_popt=$with_popt fi if test $have_popt = "yes"; then AC_DEFINE(HAVE_POPT_H,1,[Define to 1 if popt.h is available]) if test $with_popt_prefix = "yes"; then POPT_CFLAGS="-I$POPT_PREFIX/include" POPT_LIBS="-L$POPT_PREFIX/lib -lpopt" else POPT_CFLAGS="" POPT_LIBS="-lpopt" fi else POPT_CFLAGS="" POPT_LIBS="" fi AM_CONDITIONAL([COND_HAVE_POPT], [test "$have_popt" = "yes"]) AC_SUBST(POPT_CFLAGS) AC_SUBST(POPT_LIBS) AC_LANG([C]) PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.2.1],,[AC_MSG_ERROR(could not find GLIB)]) AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) have_gtk="no" have_pango="no" if test "$enable_gtk" = "auto" -o "$enable_gtk" = "yes"; then PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.2.1], [AC_DEFINE(HAVE_GTK,1,[Define to 1 if GTK+ is installed]) have_gtk="yes"], [AC_MSG_WARN([could not find GTK+])]) AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) PKG_CHECK_MODULES(PANGOX, pangox, [AC_DEFINE(HAVE_PANGO,1,[Define to 1 if Pango is installed]) have_pango="yes"], [AC_MSG_WARN([could not find Pango])]) AC_SUBST(PANGOX_CFLAGS) AC_SUBST(PANGOX_LIBS) fi AM_CONDITIONAL([COND_GTK], [test "$enable_gtk" = "yes" -o \( "$enable_gtk" = "auto" -a \( "$have_gtk" = "yes" -a "$have_pango" = "yes" \) \) ]) AM_CONDITIONAL([COND_CUSTOM_READER], [test "$enable_custom_reader" = "yes" -o "$enable_custom_reader" = "auto"]) have_libxml2="no" PKG_CHECK_MODULES(XML, [libxml-2.0 >= 2.6.7], [AC_DEFINE(HAVE_LIBXML,1,[Define to 1 if libxml2 is installed]) have_libxml2="yes"], [AC_MSG_WARN([could not find libxml2])]) AC_SUBST(XML_CFLAGS) AC_SUBST(XML_LIBS) AM_CONDITIONAL([COND_LIBXML2], [test "$enable_libxml2" = "yes" -o \( "$enable_libxml2" = "auto" -a "$have_libxml2" = "yes" \)]) AM_CONDITIONAL([COND_LIBXML2_READER], [test "$enable_libxml2_reader" = "yes" -o \( "$enable_libxml2_reader" = "auto" -a "$have_libxml2" = "yes" \)]) have_gmetadom="no" if test "$enable_gmetadom" = "yes" -o "$enable_gmetadom" = "auto"; then PKG_CHECK_MODULES(DOM, [gdome2-cpp-smart >= 0.1.8], [AC_DEFINE(HAVE_GMETADOM,1,[Define to 1 if gmetadom is installed]) have_gmetadom="yes"], [AC_MSG_WARN([could not find GMetaDOM])] [enable_gmetadom="no"]) AC_SUBST(DOM_CFLAGS) AC_SUBST(DOM_LIBS) fi AM_CONDITIONAL([COND_GMETADOM], [test "$enable_gmetadom" = "yes" -o \( "$enable_gmetadom" = "auto" -a "$have_gmetadom" = "yes" \)]) have_t1lib="no" if test $with_t1lib = "auto"; then AC_CHECK_HEADERS(t1lib.h,[ AC_CHECK_LIB(t1, T1_InitLib, [have_t1lib="yes"],,[-lm]) ]) else have_t1lib=$with_t1lib fi if test $have_t1lib = "yes"; then AC_DEFINE(HAVE_LIBT1,1,[Define to 1 to compile with t1lib for Type 1 fonts]) if test $with_t1lib_prefix = "yes"; then T1_CFLAGS="-I$T1LIB_PREFIX/include" T1_LIBS="-L$T1LIB_PREFIX/lib -lt1" T1_LIBS_X="-L$T1LIB_PREFIX/lib -lt1x" else T1_CFLAGS="" T1_LIBS="-lt1" T1_LIBS_X="-lt1x" fi else T1_CFLAGS="" T1_LIBS="" T1_LIBS_X="" fi AM_CONDITIONAL([COND_T1LIB], [test $have_t1lib = "yes"]) AC_SUBST(T1_CFLAGS) AC_SUBST(T1_LIBS) AC_SUBST(T1_LIBS_X) CFLAGS="$CFLAGS -W -Wall" CXXFLAGS="$CXXFLAGS -W -Wall" if test $enable_debug = yes; then CFLAGS="$CFLAGS -O0" CXXFLAGS="$CXXFLAGS -O0" AC_DEFINE(ENABLE_DEBUG,1,[Define to 1 if you want to enable validity checks while running]) fi if test $enable_profile = yes; then CFLAGS="$CFLAGS -pg" CXXFLAGS="$CXXFLAGS -pg" AC_DEFINE(ENABLE_PROFILE,1,[Define to 1 to let the widget collect some information for profiling purposes]) fi AM_CONDITIONAL([COND_PROFILE], [test "$enable_profile" = "yes"]) if test $enable_pipe = yes; then CFLAGS="$CFLAGS -pipe" CXXFLAGS="$CXXFLAGS -pipe" fi if test $enable_builder_cache = yes; then AC_DEFINE(ENABLE_BUILDER_CACHE,1,[Define to 1 to enable caching of MathML Text nodes (slower but saves memory)]) fi AC_DEFINE_UNQUOTED(GMV_TFM_LEVEL, $enable_tfm, [Define to 0, 1, 2, or 3 depending on the TFM support level you want]) AM_CONDITIONAL([COND_TFM], [test "$enable_tfm" != "0"]) AM_CONDITIONAL([COND_TFM_LEVEL_1], [test "$enable_tfm" = "1"]) AM_CONDITIONAL([COND_TFM_LEVEL_2], [test "$enable_tfm" = "2"]) AM_CONDITIONAL([COND_TFM_LEVEL_3], [test "$enable_tfm" = "3"]) if test "$enable_tfm" = "0" -a "$enable_svg" = "yes"; then AC_MSG_WARN([SVG support requires TFM support]) enable_svg="no" fi if test "$enable_svg" = "yes"; then AC_DEFINE(ENABLE_SVG,1,[Define to 1 if you want to enable the SVG backend]) fi AM_CONDITIONAL([COND_SVG], [test "$enable_svg" = "yes"]) if test "$enable_ps" = "yes"; then AC_DEFINE(ENABLE_PS,1,[Define to 1 if you want to enable the PostScript backend]) fi AM_CONDITIONAL([COND_PS], [test "$enable_ps" = "yes"]) AM_BINRELOC AM_CONDITIONAL(WITH_BINRELOC, test "x$br_cv_binreloc" = "xyes") AC_MSG_CHECKING([whether to use GCC precompiled headers with $CXX]) if test "x$GCC" = "xyes" ; then _gmv_gcc_version=`$CXX --version | grep GCC | head -1 | cut -f 3 -d " "` _gmv_gcc_major=`echo $_gmv_gcc_version | cut -f 1 -d "."` if [[ "$_gmv_gcc_major" -ge "4" ]] ; then if test "x$enable_gcc_pch" = "xyes" ; then AC_MSG_RESULT(yes) gmv_gcc_pch="yes" elif test "x$enable_gcc_pch" = "xauto" ; then AC_MSG_RESULT(yes) gmv_gcc_pch="yes" else AC_MSG_RESULT(no) gmv_gcc_pch="no" fi else AC_MSG_RESULT(no) gmv_gcc_pch="no" fi else gmv_gcc_pch="no" fi AM_CONDITIONAL(USE_GCC_PCH, test "x$gmv_gcc_pch" = "xyes") AC_CONFIG_FILES([ Makefile gtkmathview.spec config/Makefile config/gtkmathview.conf.xml scripts/Makefile auto/Makefile auto/Char.hh.in autopackage/Makefile src/Makefile src/common/Makefile src/common/mathvariants/Makefile src/common/mathvariants/xml/Makefile src/frontend/Makefile src/frontend/common/Makefile src/frontend/custom_reader/Makefile src/frontend/libxml2_reader/Makefile src/frontend/libxml2/Makefile src/frontend/gmetadom/Makefile src/engine/Makefile src/engine/common/Makefile src/engine/boxml/Makefile src/engine/mathml/Makefile src/engine/adapters/Makefile src/backend/Makefile src/backend/common/Makefile src/backend/common/tfm/Makefile src/backend/gtk/Makefile src/backend/svg/Makefile src/backend/ps/Makefile src/view/Makefile src/widget/Makefile viewer/Makefile mathmlsvg/Makefile mathmlps/Makefile doc/Makefile mathview-core.pc mathview-frontend-custom-reader.pc mathview-frontend-libxml2-reader.pc mathview-frontend-libxml2.pc mathview-frontend-gmetadom.pc mathview-backend-ps.pc mathview-backend-svg.pc mathview-backend-gtk.pc gtkmathview-custom-reader.pc gtkmathview-libxml2-reader.pc gtkmathview-libxml2.pc gtkmathview-gmetadom.pc autopackage/abimath.apspec ]) AC_OUTPUT cat <>$4 echo " ""$2"Id id\; >>$4 echo " "const char\* name\; >>$4 echo " "const Value\* value\; >>$4 echo \} s"$2"Token[] = \{ >>$4 echo { "$SUFFIX"NOTVALID, 0, NULL }, >>$4 for i in $TOKEN do TOKENID=`echo $i | cut -d ',' -f 1` TOKENNAME=`echo $i | cut -d ',' -f 2` echo { $SUFFIX$TOKENID, $TOKENNAME, NULL }, >>$4 echo -n . done echo { "$SUFFIX"NOT_LISTED_ABOVE_AND_WITHOUT_TRAILING_COMMA, NULL, NULL } >>$4 echo }\; >>$4 echo else echo -n Making $2 declarations\ echo enum "$2"Id { >>$4 echo "$SUFFIX"NOTVALID, >>$4 for i in $KW do echo $SUFFIX$i, >>$4 echo -n . done echo "$SUFFIX"NOT_LISTED_ABOVE_AND_WITHOUT_TRAILING_COMMA >>$4 echo }\; >>$4 echo fi gtkmathview-0.8.0/scripts/applylicence0000755000175000017500000000102210661271105015051 00000000000000#!/bin/sh FILES=`find . -name "*.cc"` for i in $FILES do cp doc/LICENSE.cc /tmp/f ./scripts/cutlicence.pl <$i >>/tmp/f mv /tmp/f $i done FILES=`find . -name "*.hh"` for i in $FILES do cp doc/LICENSE.cc /tmp/f ./scripts/cutlicence.pl <$i >>/tmp/f mv /tmp/f $i done FILES=`find . -name "*.c"` for i in $FILES do cp doc/LICENSE.c /tmp/f ./scripts/cutlicence.pl <$i >>/tmp/f mv /tmp/f $i done FILES=`find . -name "*.h"` for i in $FILES do cp doc/LICENSE.c /tmp/f ./scripts/cutlicence.pl <$i >>/tmp/f mv /tmp/f $i done gtkmathview-0.8.0/scripts/copy.xsl0000644000175000017500000000046210613606740014170 00000000000000 gtkmathview-0.8.0/scripts/mklicence.pl0000755000175000017500000000107010661271105014750 00000000000000#!/usr/bin/perl if ($#ARGV != 0 || ($ARGV[0] ne "c" && $ARGV[0] ne "cc" && $ARGV[0] ne "Perl" && $ARGV[0] ne "Makefile")) { print "Usage: mklicence.pl { c | cc | Perl | Makefile } output-file\n"; exit 0; } $lang = $ARGV[0]; $filename = $ARGV[1]; if ($lang eq "c") { print "/*\n"; while () { print " * $_"; } print " */\n"; } elsif ($lang eq "Perl" || $lang eq "Makefile") { if ($lang eq "Perl") { print "#! /usr/bin/perl\n"; } while () { print "# $_"; } } else { while () { print "// $_"; } } gtkmathview-0.8.0/scripts/stretchy0000755000175000017500000000035410613606740014261 00000000000000#! /bin/sh op=`fgrep stretchy auto/dictionary.xml |fgrep true|cut -d '"' -f 2|tr -d "&;(){}[]|/"`; for i in $op do code=`fgrep " $i " entities/*.ent | cut -d '"' -f 2|tr -d "&;"|tr -s '#' '0'`; echo "$code, // $i" done gtkmathview-0.8.0/scripts/cutlicence.pl0000755000175000017500000000024110661271105015133 00000000000000#!/usr/bin/perl $licence = 1; while () { if ($licence && (/^\/\// || /^\x20\*/ || /^\/\*/)) { } else { $licence = 0; print "$_"; } } gtkmathview-0.8.0/scripts/Makefile.am0000644000175000017500000000030010613606740014511 00000000000000 noinst_SCRIPTS = \ applylicence.pl \ cutlicence.pl \ mklicence.pl \ stretchy \ makekeywords \ applylicence \ makeEntitiesTable EXTRA_DIST = \ $(noinst_SCRIPTS) \ copy.xsl gtkmathview-0.8.0/scripts/applylicence.pl0000755000175000017500000000253310613606740015477 00000000000000#! /usr/bin/perl @FILES = (`find . -name "*.cc"`, `find . -name "*.hh"`); sub apply_header ($$$) { my $prefix = shift; my $infile = shift; my $outfile = shift; open(OUTFILE, ">$outfile") || die "Could not open $outfile for writing\n"; print OUTFILE "$prefix$infile$prefix\n"; close OUTFILE; } sub cut_licence ($$) { my $infile = shift; my $outfile = shift; open(INFILE, "<$infile") || die "Could not open $infile for reading\n"; open(OUTFILE, ">>$outfile") || die "Could not open $outfile for writing\n"; my $licence = 1; print $infile; while () { if ($licence && (/^\/\// || /^\x20\*/ || /^\/\*/)) { } else { $licence = 0; print OUTFILE "$_"; } } } foreach $f (@FILES) { apply_header "// ", $f, "/tmp/f"; `cat doc/LICENCEcc >>/tmp/f`; cut_licence $f, "/tmp/f"; exit 0; } __DATA__ for i in $FILES do cp doc/LICENCEcc /tmp/f $1/cutlicence.pl <$i >>/tmp/f mv /tmp/f $i done FILES=`find . -name "*.hh"` for i in $FILES do cp doc/LICENCEcc /tmp/f $1/cutlicence.pl <$i >>/tmp/f mv /tmp/f $i done FILES=`find . -name "*.c"` for i in $FILES do cp doc/LICENCEc /tmp/f $1/cutlicence.pl <$i >>/tmp/f mv /tmp/f $i done FILES=`find . -name "*.h"` for i in $FILES do cp doc/LICENCEc /tmp/f $1/cutlicence.pl <$i >>/tmp/f mv /tmp/f $i done gtkmathview-0.8.0/scripts/makeEntitiesTable0000755000175000017500000000123110613606740016001 00000000000000#! /bin/sh ENTITIES=`cut -d ',' -f1,2` echo "" echo "" echo echo "" for i in $ENTITIES do NAME=`echo $i | cut -d ',' -f1` VALUE=`echo $i | cut -d ',' -f2 | tr -d 'xU'` VALUE1=`echo $VALUE | cut -d '-' -f1` VALUE2=`echo $VALUE | cut -s -d '-' -f2` VALUE3=`echo $VALUE | cut -s -d '-' -f3` echo -n " " done echo "" gtkmathview-0.8.0/scripts/Makefile.in0000644000175000017500000002624010704610534014532 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = scripts DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SCRIPTS = $(noinst_SCRIPTS) SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ noinst_SCRIPTS = \ applylicence.pl \ cutlicence.pl \ mklicence.pl \ stretchy \ makekeywords \ applylicence \ makeEntitiesTable EXTRA_DIST = \ $(noinst_SCRIPTS) \ copy.xsl all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign scripts/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign scripts/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-exec install-exec-am \ install-info install-info-am install-man install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/compile0000755000175000017500000000576110621034505012355 00000000000000#! /bin/sh # Wrapper for compilers which do not understand `-c -o'. # Copyright 1999, 2000 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Usage: # compile PROGRAM [ARGS]... # `-o FOO.o' is removed from the args passed to the actual compile. # Usage statement added by Billy Biggs . if [ -z $1 ]; then echo "Wrapper for compilers which do not understand '-c -o'." echo "usage: compile PROGRAM [ARGS]..." echo "'-o FOO.o' is removed from the args passed to the actual compile." exit 1 fi prog=$1 shift ofile= cfile= args= while test $# -gt 0; do case "$1" in -o) # configure might choose to run compile as `compile cc -o foo foo.c'. # So we do something ugly here. ofile=$2 shift case "$ofile" in *.o | *.obj) ;; *) args="$args -o $ofile" ofile= ;; esac ;; *.c) cfile=$1 args="$args $1" ;; *) args="$args $1" ;; esac shift done if test -z "$ofile" || test -z "$cfile"; then # If no `-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # `.c' file was seen then we are probably linking. That is also # ok. exec "$prog" $args fi # Name of file we expect compiler to create. cofile=`echo $cfile | sed -e 's|^.*/||' -e 's/\.c$/.o/'` # Create the lock directory. # Note: use `[/.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo $cofile | sed -e 's|[/.-]|_|g'`.d while true; do if mkdir $lockdir > /dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir $lockdir; exit 1" 1 2 15 # Run the compile. "$prog" $args status=$? if test -f "$cofile"; then mv "$cofile" "$ofile" fi rmdir $lockdir exit $status gtkmathview-0.8.0/COPYING0000644000175000017500000001672710661271107012043 00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. gtkmathview-0.8.0/depcomp0000755000175000017500000003305210621034475012354 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects # Copyright 1999, 2000, 2003 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # `libtool' can also be set to `yes' or `no'. if test -z "$depfile"; then base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'` dir=`echo "$object" | sed 's,/.*$,/,'` if test "$dir" = "$object"; then dir= fi # FIXME: should be _deps on DOS. depfile="$dir.deps/$base" fi tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> $depfile echo >> $depfile # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> $depfile else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` tmpdepfile="$stripped.u" if test "$libtool" = yes; then "$@" -Wc,-M else "$@" -M fi stat=$? if test -f "$tmpdepfile"; then : else stripped=`echo "$stripped" | sed 's,^.*/,,'` tmpdepfile="$stripped.u" fi if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi if test -f "$tmpdepfile"; then outname="$stripped.o" # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1="$dir.libs/$base.lo.d" tmpdepfile2="$dir.libs/$base.d" "$@" -Wc,-MD else tmpdepfile1="$dir$base.o.d" tmpdepfile2="$dir$base.d" "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi if test -f "$tmpdepfile1"; then tmpdepfile="$tmpdepfile1" else tmpdepfile="$tmpdepfile2" fi if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # X makedepend shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes ;; esac case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix="`echo $object | sed 's/^.*\././'`" touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o, # because we must use -o when running libtool. "$@" || exit $? IFS=" " for arg do case "$arg" in "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 gtkmathview-0.8.0/mathview-backend-svg.pc.in0000644000175000017500000000065310704611347015740 00000000000000# This is a comment prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ datarootdir=@datarootdir@ datadir=@datadir@ Name: GtkMathView Description: MathML rendering engine (SVG backend) Version: @VERSION@ Requires: glib-2.0 mathview-core Libs: -L${libdir} -lmathview_backend_svg Cflags: -I${includedir}/@PACKAGE@ @GMV_ENABLE_BOXML_CFLAGS@ @GMV_HAVE_HASH_MAP_CFLAGS@ @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ gtkmathview-0.8.0/config.guess0000755000175000017500000012626010524305372013322 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. timestamp='2006-07-02' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[45]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; i*:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; x86:Interix*:[3456]*) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T:Interix*:[3456]*) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: gtkmathview-0.8.0/HISTORY0000644000175000017500000000046710613606776012101 00000000000000 * version 0.2.0: - DrawingArea, GraphicsContext, Font and FontManager are now abstract classes - font management completely rewritten - included support for t1lib * version 0.1.3: 03 oct 2000 - never released * version 0.1.2: * version 0.1.1: * version 0.1.0: 24 aug 2000 - first public release gtkmathview-0.8.0/BUGS0000644000175000017500000001366310613606776011502 00000000000000* try putting scripts on a token with font size modified ;) * check rendering of backgrounds (mstyle, mtokens, selected elements) * try exporting to postscript a token with an apostrophe ' -> crash *** TESTSUITE November 30 2002 *** file:///home/luca/Projects/edit-gtkmathview/T1/testsuite/Presentation/TokenElements/ms/msAquotes3.mml file:///home/luca/Projects/edit-gtkmathview/T1/testsuite/Presentation/GeneralLayout/mfrac/mfracAkeyword9.mml file:///home/luca/Projects/edit-gtkmathview/T1/testsuite/Presentation/GeneralLayout/menclose/rec-enclose3.mml file:///home/luca/Projects/edit-gtkmathview/T1/testsuite/Presentation/TablesAndMatrices/mtable/mtableAwidth1.mml file:///home/luca/Projects/edit-gtkmathview/T1/testsuite/Presentation/TablesAndMatrices/mtable/mtableAwidth3.mml file:///home/luca/Projects/edit-gtkmathview/T1/testsuite/Presentation/TablesAndMatrices/mtable/mtableAwidth4.mml file:///home/luca/Projects/edit-gtkmathview/T1/testsuite/Presentation/TablesAndMatrices/mtable/mtableBgap1.mml file:///home/luca/Projects/edit-gtkmathview/T1/testsuite/Presentation/TablesAndMatrices/nested/nestedAwidth1.mml file:///home/luca/Projects/edit-gtkmathview/T1/testsuite/Presentation/DynamicExpressions/maction/mactionBhigh1.mml Deprecated features we should support: file:///home/luca/Projects/edit-gtkmathview/T1/testsuite/Presentation/TablesAndMatrices/mtable/deprecated-test3.mml Stretchy: file:///home/luca/Projects/edit-gtkmathview/T1/testsuite/Presentation/TokenElements/mo/moAlargeop12.mml Crash: file:///home/luca/Projects/edit-gtkmathview/T1/testsuite/Presentation/TokenElements/mo/moAlrspace13.mml *** TESTSUITE *** Bugs in gtkmathview: Presentation/TokenElements/mo/moAaccent10.xml # no stretch Presentation/TokenElements/mo/moAaccent9.xml # no stretch Presentation/TokenElements/mo/moAlargeop12.xml # assertion fails Presentation/TokenElements/mo/moAlrspace13.xml # assertion fails for % in rspace Presentation/TokenElements/mtext/mtextAtoken3.xml # courier font instead of helvetica Presentation/TokenElements/mtext/mtextStoken6.xml # courier font instead of helvetica Presentation/TokenElements/mspace/mspace2.xml # no background Presentation/TokenElements/ms/msAdisplaystyle2.xml # courier instead of helvetica Presentation/TokenElements/ms/msAtoken4.xml # courier instead of helvetica Presentation/TokenElements/ms/msAtoken5.xml # courier instead of helvetica Presentation/TokenElements/ms/msSinheritance8.xml # many fonts wrong Presentation/TokenElements/CommonAttributes/sizeunits4.xml # last script 2 too low Presentation/GeneralLayout/mrow/mrowBinferred2.xml # does not infer mrow in msqrt Presentation/GeneralLayout/mfrac/mfrac2.xml # ⅆ does not render Presentation/GeneralLayout/mfrac/mfrac3.xml # fraction line too thin? Presentation/GeneralLayout/mfrac/mfracAcss8.xml # 2nd line too thin? Presentation/GeneralLayout/mfrac/mfracAkeyword9.xml # line thickness Presentation/GeneralLayout/mfrac/mfracAmultiplier10.xml # line thickness Presentation/GeneralLayout/msqrt-mroot/mrootB1.xml # does not find big root Presentation/GeneralLayout/msqrt-mroot/msqrt5.xml # does not infer mrow in msqrt Presentation/GeneralLayout/msqrt-mroot/msqrtB7.xml# does not find big root Presentation/GeneralLayout/msqrt-mroot/msqrtBimplied8.xml # assertion fails Presentation/GeneralLayout/mstyle/mstyleAminscript1.xml # ? Presentation/GeneralLayout/mpadded/mpadded10.xml # does not find entity Presentation/GeneralLayout/mpadded/mpadded13.xml # how to paint the background when width < 0??? Presentation/GeneralLayout/mpadded/mpadded14.xml # how to paint the background when width < 0??? Presentation/GeneralLayout/mpadded/mpadded15.xml # what happens when -depth > height??? Presentation/GeneralLayout/mpadded/mpadded16.xml # what happens when -height > depth??? Presentation/GeneralLayout/mpadded/mpadded18.xml # ??? Presentation/GeneralLayout/mpadded/mpadded4.xml # wrong Presentation/GeneralLayout/mpadded/mpadded8.xml # does not color everything Presentation/GeneralLayout/mpadded/mpaddedAleft4.xml # some As overlap Presentation/GeneralLayout/mpadded/mpaddedAmixed5.xml # a mess Presentation/GeneralLayout/mpadded/mpaddedScolor7.xml # wrong Presentation/GeneralLayout/mphantom/mphantomSinheritance5.xml # wrong Presentation/GeneralLayout/menclose/rec-enclose3.xml # assertion failed Presentation/ScriptsAndLimits/msubsup/msubsup1.xml # missing glyphs Presentation/ScriptsAndLimits/munder/munder1.xml # check size of under/over bars Presentation/ScriptsAndLimits/munder/munder2.xml # check spacing of second underbrace Presentation/ScriptsAndLimits/mover/mover1.xml # no accents Presentation/ScriptsAndLimits/mover/mover2.xml # check size and spacing of overbars Presentation/ScriptsAndLimits/mmultiscripts/mmultiscripts1.xml # assertion fails Presentation/ScriptsAndLimits/mmultiscripts/mmultiscripts2.xml # assertion fails Presentation/TablesAndMatrices/mtable/deprecated-test3.xml # assertion fails (but test deprecated) Presentation/TablesAndMatrices/mtable/maligngroup1.xml # does not align (there is commented code) Presentation/TablesAndMatrices/mtable/mtable1.xml # assertion failed Presentation/TablesAndMatrices/mlabeledtr/mlabeledtr1.xml # seg faults!!! Presentation/TablesAndMatrices/mlabeledtr/mlabeledtrAside1.xml # seg faults!!! Presentation/TablesAndMatrices/mlabeledtr/mlabeledtrAside2.xml # assertion fails Presentation/TablesAndMatrices/mlabeledtr/rec-mlabeledtr.xml # seg faults Bugs in test: Presentation/TokenElements/mo/moAmovable15.xml # file names does not match with name in test Presentation/GeneralLayout/mfrac/mfrac4.xml # same as mfrac5.xml Presentation/GeneralLayout/mfrac/mfracAbevelled16.xml # the sample is not bevelled Presentation/GeneralLayout/mfenced/mfencedAdelims6.xml # lbrace is expanded in attribute Presentation/GeneralLayout/mfenced/mfencedSfonts9.xml # only the first mfenced is coloured Presentation/GeneralLayout/mpadded/mpadded1.xml # wrong syntax for width attribute Multitests (test files with more that one math fragment): Presentation/GeneralLayout/mfrac/mfracZComp1.xml gtkmathview-0.8.0/NEWS0000644000175000017500000000062210613606776011505 0000000000000018 May 2001 improvements in the font-search procedure now the search matches the newarest font w.r.t. size (so that LaTeX fonts are handled at the best) 10 May 2001 gtkmathview is now a module into the GNOME CVS repository at cvs.gnome.org 04 Nov 2000 version 0.2.0 (ravanello) is next to be released. Included in the precompiled binary package the viewer and the MathML -> PS converter. gtkmathview-0.8.0/doc/0000777000175000017500000000000010704625472011632 500000000000000gtkmathview-0.8.0/doc/mathmlviewer.10000644000175000017500000000142110613606772014333 00000000000000.TH MATHMLVIEWER "1" "May 2001" "GtkMathView" FSF .SH NAME mathmlviewer \- a viewer for MathML documents .SH SYNOPSIS .B mathmlviewer [\fIOPTION\fR]... \fIFILE\fR... .SH DESCRIPTION .TP \fB\-v\fR, \fB\-\-version\fR Output version information .TP \fB\-d\fR, \fB\-\-debug\fR Debug mode .TP \fB\-h\fR, \fB\-\-help\fR This small usage guide .TP \fB\-\-verbose\fR[=\fI0\-3\fR] Display messages .SH AUTHORS Written by Luca Padovani. .SH "REPORTING BUGS" Report bugs to . .SH "SEE ALSO" The full documentation for .B mathmlviewer is maintained in the Texinfo manual for .B gtkmathview . If the .B info program and the .B GtkMathView library are properly installed at your site, the command .IP .B info gtkmathview .PP should give you access to the complete manual. gtkmathview-0.8.0/doc/mathml2ps.10000644000175000017500000000341210613606772013540 00000000000000.TH MATHML2PS "1" "May 2001" "GtkMathView" FSF .SH NAME mathml2ps \- MathML to PostScript conversion utility .SH SYNOPSIS .B mathml2ps [\fIOPTION\fR]... \fIFILE\fR... .SH DESCRIPTION .TP \fB\-v\fR, \fB\-\-version\fR Output version information .TP \fB\-h\fR, \fB\-\-help\fR This small usage guide .TP \fB\-u\fR, \fB\-\-unit=\fR Unit for dimensions (default='cm') .TP \fB\-g\fR, \fB\-\-size=\fRx Page size (width x height) (default = 21 x 29.7) .TP \fB\-m\fR, \fB\-\-margins=\fRx Margins (top x left) (default = 2 x 2) .TP \fB\-f\fR, \fB\-\-font\-size=\fR Default font size (in pt, default=10) .TP \fB\-k\fR, \fB\-\-kerning[\fR=\fIyes\fR|no] Enable/disable kerning (default='no') .TP \fB\-c\fR, \fB\-\-colors[\fR=\fIyes\fR|no] Enable/disable colors (default='no') .TP \fB\-s\fR, \fB\-\-subset[\fR=\fIyes\fR|no] Enable/disable font subsetting (default='yes') .TP \fB\-r\fR, \fB\-\-crop[\fR=\fIyes\fR|no] Enable/disable cropping to bounding box (default='yes') .TP \fB\-i\fR, \fB\-\-show\-missing[\fR=\fIyes\fR|no] If enabled show missing characters (default='yes') .TP \fB\-b\fR, \fB\-\-line\-breaking[\fR=\fIyes\fR|no] Enable/disable line breaking (default='no') .TP \fB\-e\fR, \fB\-\-show\-empty\-rows[\fR=\fIyes\fR|no] Show empty boxes for inferred mrows with no content (default='no') .TP \fB\-\-config=\fR Configuration file path .TP \fB\-\-verbose\fR[=\fI0\-3\fR] Display messages .SH "AUTHORS" Written by Luca Padovani. .SH "REPORTING BUGS" Report bugs to . .SH "SEE ALSO" The full documentation for .B MathML is maintained as a Texinfo manual. If the .B info program and the .B GtkMathView library are properly installed at your site, the command .IP .B info gtkmathview .PP should give you access to the complete manual. gtkmathview-0.8.0/doc/Makefile.am0000644000175000017500000000024410613606772013603 00000000000000 EXTRA_DIST = mathmlviewer.1 mathml2ps.1 #info_TEXINFOS = gtkmathview.texi # man_MANS = mathmlviewer.1 mathml2ps.1 man_MANS = mathmlviewer.1 CLEANFILES = *.html gtkmathview-0.8.0/doc/Makefile.in0000644000175000017500000003156010704610532013607 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = doc DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man_MANS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ EXTRA_DIST = mathmlviewer.1 mathml2ps.1 #info_TEXINFOS = gtkmathview.texi # man_MANS = mathmlviewer.1 mathml2ps.1 man_MANS = mathmlviewer.1 CLEANFILES = *.html all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign doc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-man1: $(man1_MANS) $(man_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ else file=$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ done uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ done tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(MANS) installdirs: for dir in "$(DESTDIR)$(man1dir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-man install-exec-am: install-info: install-info-am install-man: install-man1 installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-man uninstall-man: uninstall-man1 .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-exec install-exec-am \ install-info install-info-am install-man install-man1 \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am uninstall-info-am uninstall-man \ uninstall-man1 # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/install-sh0000755000175000017500000001572210621034474013006 00000000000000#!/bin/sh # # install - install a program, script, or datafile # # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. It can only install one file at a time, a restriction # shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" transformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" while [ x"$1" != x ]; do case $1 in -c) instcmd=$cpprog shift continue;; -d) dir_arg=true shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd=$stripprog shift continue;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; *) if [ x"$src" = x ] then src=$1 else # this colon is to work around a 386BSD /bin/sh bug : dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "$0: no input file specified" >&2 exit 1 else : fi if [ x"$dir_arg" != x ]; then dst=$src src="" if [ -d "$dst" ]; then instcmd=: chmodcmd="" else instcmd=$mkdirprog fi else # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if [ -f "$src" ] || [ -d "$src" ] then : else echo "$0: $src does not exist" >&2 exit 1 fi if [ x"$dst" = x ] then echo "$0: no destination specified" >&2 exit 1 else : fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d "$dst" ] then dst=$dst/`basename "$src"` else : fi fi ## this sed command emulates the dirname command dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-$defaultIFS}" oIFS=$IFS # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` IFS=$oIFS pathcomp='' while [ $# -ne 0 ] ; do pathcomp=$pathcomp$1 shift if [ ! -d "$pathcomp" ] ; then $mkdirprog "$pathcomp" else : fi pathcomp=$pathcomp/ done fi if [ x"$dir_arg" != x ] then $doit $instcmd "$dst" && if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi else # If we're going to rename the final executable, determine the name now. if [ x"$transformarg" = x ] then dstfile=`basename "$dst"` else dstfile=`basename "$dst" $transformbasename | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename if [ x"$dstfile" = x ] then dstfile=`basename "$dst"` else : fi # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up temp files at exit. trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 # Move or copy the file name to the temp name $doit $instcmd "$src" "$dsttmp" && # and set any options; do chmod last to preserve setuid bits # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $instcmd $src $dsttmp" command. if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi && # Now remove or move aside any old file at destination location. We try this # two ways since rm can't unlink itself on some systems and the destination # file might be busy for other reasons. In this case, the final cleanup # might fail but the new file should still install successfully. { if [ -f "$dstdir/$dstfile" ] then $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null || { echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 (exit 1); exit } else : fi } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" fi && # The final little trick to "correctly" pass the exit status to the exit trap. { (exit 0); exit } gtkmathview-0.8.0/mathview-frontend-libxml2.pc.in0000644000175000017500000000072610704611365016743 00000000000000# This is a comment prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ datarootdir=@datarootdir@ datadir=@datadir@ Name: MathView Description: MathML rendering engine (libxml2 frontend) Version: @VERSION@ Requires: glib-2.0 libxml-2.0 mathview-core Libs: @XML_LIBS@ -L${libdir} -lmathview_frontend_libxml2 Cflags: @XML_CFLAGS@ -I${includedir}/@PACKAGE@ @GMV_ENABLE_BOXML_CFLAGS@ @GMV_HAVE_HASH_MAP_CFLAGS@ @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ gtkmathview-0.8.0/mathview-backend-gtk.pc.in0000644000175000017500000000065410704611340015720 00000000000000# This is a comment prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ datarootdir=@datarootdir@ datadir=@datadir@ Name: GtkMathView Description: MathML rendering engine (GTK+ backend) Version: @VERSION@ Requires: glib-2.0 mathview-core Libs: -L${libdir} -lmathview_backend_gtk Cflags: -I${includedir}/@PACKAGE@ @GMV_ENABLE_BOXML_CFLAGS@ @GMV_HAVE_HASH_MAP_CFLAGS@ @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ gtkmathview-0.8.0/missing0000755000175000017500000002403210621034474012373 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi case "$1" in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case "$1" in -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch]" ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing 0.4 - GNU automake" ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; aclocal*) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case "$f" in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is needed, and you do not seem to have it handy on your system. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` fi if [ -f "$file" ]; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then # We have makeinfo, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` fi touch $file ;; tar) shift if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 fi # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case "$firstarg" in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case "$firstarg" in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and you do not seem to have it handy on your system. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 gtkmathview-0.8.0/ANNOUNCEMENT0000644000175000017500000000766510613606776012641 00000000000000 GtkMathView v0.1.0 Announcement ------------------------------- I'm glad to announce the first release of GtkMathView, a GTK widget for rendering MathML documents. It is meant to be a standalone, light-weight component and not a full browser. GTK applications can use the widget as a window for displaying mathematical formulas and doing simple interactions. At present, the widget is actively used as part of the HELM project (see http://www.cs.unibo.it/helm). This is both an announcement and a call for contribution. Despite the low-numbered version, the widget recognizes most of MathML 2 (Draft) elements and attributes (actually, only the handling of labeled rows in a table is missing). Here are some of the features of GtkMathView: - breaking of long expressions - support for stretchy operators - configurable support for additional fonts - configurable support for the operator dictionary - configurable support for entities - selection of MathML subtrees However, the code is far from being heavily tested, and I think there are many bugs. For these reasons, anyone interested can contribute with bug reports, suggestions and active development of the code, the documentation, the configuration scripts. With your support, I expect to release the 1.0 version in a few weeks. Here is the home-page of the widget: http://www.cs.unibo.it/~lpadovan/mml-widget/ You will find the source package and the online version of the manual (included in the distribution). The package includes detailed information for compiling and running the widget, as well as the source code of a minimal browser and some (sample) configuration files. To test the widget, write a MathML document (simply enclose a MathML expression within a element) and run the minimal browser on it. (See at the bottom of this file for an example). A note about the license: the widget is covered by the GNU GPL license (NOT the GNU LGPL). Waiting for your feedback, Luca Padovani a x + b x 2 + p x + q x = a2 ln ( x2 + p x + q ) + 2 b - a p 4 q - p 2 arctg 2 x + p 4 q - p 2 + c ���������������������������������������������������������������������������gtkmathview-0.8.0/gtkmathview-libxml2.pc.in���������������������������������������������������������0000644�0001750�0001750�00000001037�10704611335�015625� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# This is a comment prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ datarootdir=@datarootdir@ datadir=@datadir@ Name: GtkMathView Description: A GTK+ Widget for Rendering MathML Documents (libxml2 frontend) Version: @VERSION@ Requires: glib-2.0 gtk+-2.0 mathview-core mathview-backend-gtk mathview-frontend-libxml2 Libs: @XML_LIBS@ -L${libdir} -lgtkmathview_libxml2 @T1_LIBS@ Cflags: @XML_CFLAGS@ -I${includedir}/@PACKAGE@ @GMV_ENABLE_BOXML_CFLAGS@ @GMV_HAVE_HASH_MAP_CFLAGS@ @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/gtkmathview-libxml2-reader.pc.in��������������������������������������������������0000644�0001750�0001750�00000001066�10704611332�017064� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# This is a comment prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ datarootdir=@datarootdir@ datadir=@datadir@ Name: GtkMathView Description: A GTK+ Widget for Rendering MathML Documents (libxml2 reader frontend) Version: @VERSION@ Requires: glib-2.0 gtk+-2.0 mathview-core mathmlview-backend-gtk mathview-frontend-libxml2-reader Libs: @XML_LIBS@ -L${libdir} -lgtkmathview_libxml2_reader @T1_LIBS@ Cflags: @XML_CFLAGS@ -I${includedir}/@PACKAGE@ @GMV_ENABLE_BOXML_CFLAGS@ @GMV_HAVE_HASH_MAP_CFLAGS@ @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathmlsvg/������������������������������������������������������������������������0000777�0001750�0001750�00000000000�10704625473�013070� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathmlsvg/main.cc�����������������������������������������������������������������0000644�0001750�0001750�00000023712�10661271106�014234� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include // needed for old versions of GCC, must come before String.hh! #include "CharTraits.icc" #include "Logger.hh" #include "Init.hh" #include "Configuration.hh" #include "libxml2_MathView.hh" #include "MathMLOperatorDictionary.hh" #include "SVG_Backend.hh" #include "SVG_MathGraphicDevice.hh" #include "SVG_libxml2_StreamRenderingContext.hh" #include "MathMLNamespaceContext.hh" #include "FormattingContext.hh" #if GMV_ENABLE_BOXML #include "BoxMLNamespaceContext.hh" #include "BoxGraphicDevice.hh" #endif // GMV_ENABLE_BOXML #include "SMS.hh" #include "Fragment.hh" typedef libxml2_MathView MathView; static double width = 21; static double height = 29.7; static Length::Unit unitId = Length::CM_UNIT; static double xMargin = 2; static double yMargin = 2; static double fontSize = DEFAULT_FONT_SIZE; static bool cropping = true; static bool cutFileName = true; static char* configPath = 0; static int logLevel = LOG_ERROR; static bool logLevelSet = false; enum CommandLineOptionId { OPTION_VERSION = 256, OPTION_VERBOSE, OPTION_PAGE_SIZE, OPTION_UNIT, OPTION_MARGINS, OPTION_FONT_SIZE, OPTION_CROP, OPTION_CUT_FILENAME, OPTION_CONFIG }; static void printVersion() { std::cout << "MathML to SVG converter - written by Luca Padovani (C) 2005" << std::endl << "Based on GtkMathView " << VERSION << std::endl; #ifdef DEBUG std::cout << "Compiled " << __DATE__ << " " << __TIME__ << std::endl; #endif exit(0); } static struct poptOption optionsTable[] = { { "version", 'V', POPT_ARG_NONE, 0, OPTION_VERSION, "Output version information", 0 }, { "verbose", 'v', POPT_ARG_INT, &logLevel, OPTION_VERBOSE, "Display messages", "[0-3]" }, { "unit", 'u', POPT_ARG_STRING, 0, OPTION_UNIT, "Unit for dimensions (default='cm')", "" }, { "page-size", 'p', POPT_ARG_STRING, 0, OPTION_PAGE_SIZE, "Page size (width x height) (default = 21 x 29.7)", "x" }, { "margins", 'm', POPT_ARG_STRING, 0, OPTION_MARGINS, "Margins (top x left) (default = 2 x 2)", "x" }, { "font-size", 'f', POPT_ARG_DOUBLE, &fontSize, OPTION_FONT_SIZE, "Default font size (in pt, default=10)", "" }, { "config", 0, POPT_ARG_STRING, 0, OPTION_CONFIG, "Configuration file path", "" }, { "crop", 'r', POPT_ARG_STRING | POPT_ARGFLAG_OPTIONAL, 0, OPTION_CROP, "Enable/disable cropping to bounding box (default='yes')", "[yes,no]" }, { "cut-filename", 0, POPT_ARG_STRING | POPT_ARGFLAG_OPTIONAL, 0, OPTION_CUT_FILENAME, "Cut the prefix dir from the output file (default='yes')", "[yes,no]" }, POPT_AUTOHELP { 0, 0, 0, 0, 0, 0, 0 } }; static void usage(poptContext optCon, int exitcode, const char* msg, const char* arg) { poptPrintUsage(optCon, stderr, 0); fprintf(stderr, "\ Valid units are:\n\n\ cm centimeter\n\ mm millimeter\n\ in inch (1 in = 2.54 cm)\n\ pt point (1 in = 72.27 pt)\n\ pc pica (1 pc = 12 pt)\n\ px pixel (1 in = 72 px)\n\ "); if (msg && arg) fprintf(stderr, "%s %s\n", msg, arg); exit(exitcode); } static void parseError(poptContext optCon, const char* option) { assert(option != NULL); usage(optCon, 1, "error while parsing option", option); } static bool parseSize(const char* s) { assert(s != NULL); char* nptr; double w = strtod(s, &nptr); if (nptr == s) return false; if (nptr == NULL || *nptr != 'x') return false; s = nptr + 1; double h = strtod(s, &nptr); if (nptr == s) return false; width = w; height = h; return true; } static bool parseBoolean(const char* s, bool& res) { assert(s != NULL); if (!strcmp(s, "yes")) { res = true; return true; } else if (!strcmp(s, "no")) { res = false; return true; } return false; } static bool parseUnit(const char* s) { assert(s != NULL); struct { const char* name; Length::Unit id; } unit[] = { { "mm", Length::MM_UNIT }, { "cm", Length::CM_UNIT }, { "in", Length::IN_UNIT }, { "pt", Length::PT_UNIT }, { "pc", Length::PC_UNIT }, { "px", Length::PX_UNIT }, { NULL, Length::UNDEFINED_UNIT } }; unsigned i; for (i = 0; unit[i].name != NULL && strcmp(unit[i].name, s); i++) ; if (unit[i].name == NULL) return false; unitId = unit[i].id; return true; } static bool parseMargins(const char* s) { assert(s != NULL); char* nptr; double x = strtod(s, &nptr); if (nptr == s) return false; if (nptr == NULL || *nptr != 'x') return false; s = nptr + 1; double y = strtod(s, &nptr); if (nptr == s) return false; xMargin = x; yMargin = y; return true; } static char* getOutputFileName(const char* in) { char* out; assert(in != NULL); const char* dot = strrchr(in, '.'); const char* slash = strrchr(in, '/'); if (cutFileName && slash != NULL) in = slash + 1; if (dot == NULL) { out = new char[strlen(in) + 5]; strcpy(out, in); } else { out = new char[strlen(in) - strlen(dot) + 5]; strncpy(out, in, strlen(in) - strlen(dot)); out[strlen(in) - strlen(dot)] = '\0'; } strcat(out, ".svg"); return out; } int main(int argc, const char* argv[]) { poptContext ctxt = poptGetContext(NULL, argc, argv, optionsTable, 0); int c; while ((c = poptGetNextOpt(ctxt)) >= 0) { const char* arg = poptGetOptArg(ctxt); switch (c) { case OPTION_VERSION: printVersion(); break; case OPTION_VERBOSE: if (logLevel < 0 || logLevel > 3) parseError(ctxt, "verbose"); logLevelSet = true; break; case OPTION_PAGE_SIZE: assert(arg != 0); if (!parseSize(arg)) parseError(ctxt, "size"); break; case OPTION_UNIT: assert(arg != 0); if (!parseUnit(arg)) parseError(ctxt, "unit"); break; case OPTION_MARGINS: assert(arg != 0); if (!parseMargins(arg)) parseError(ctxt, "margins"); break; case OPTION_FONT_SIZE: break; case OPTION_CROP: if (arg == 0) cropping = true; else if (!parseBoolean(arg, cropping)) parseError(ctxt, "crop"); break; case OPTION_CUT_FILENAME: if (arg == 0) cutFileName = true; else if (!parseBoolean(arg, cutFileName)) parseError(ctxt, "cut-filename"); break; case OPTION_CONFIG: assert(arg != 0); configPath = strdup(arg); break; default: assert(false); } } if (c < -1) { /* an error occurred during option processing */ fprintf(stderr, "%s: %s\n", poptBadOption(ctxt, POPT_BADOPTION_NOALIAS), poptStrerror(c)); return 1; } if (configPath == 0) configPath = getenv("GTKMATHVIEWCONF"); SmartPtr logger = Logger::create(); logger->setLogLevel(LogLevelId(logLevel)); SmartPtr configuration = initConfiguration(logger, configPath); if (logLevelSet) logger->setLogLevel(LogLevelId(logLevel)); SmartPtr backend = SVG_Backend::create(logger, configuration); SmartPtr mgd = backend->getMathGraphicDevice(); SmartPtr dictionary = initOperatorDictionary(logger, configuration); logger->out(LOG_INFO, "Font size : %f", fontSize); logger->out(LOG_INFO, "Page size : %fx%f", width, height); logger->out(LOG_INFO, "Margins : %fx%f", xMargin, yMargin); SmartPtr view = MathView::create(logger); view->setOperatorDictionary(dictionary); view->setMathMLNamespaceContext(MathMLNamespaceContext::create(view, mgd)); #if GMV_ENABLE_BOXML SmartPtr bgd = backend->getBoxGraphicDevice(); view->setBoxMLNamespaceContext(BoxMLNamespaceContext::create(view, bgd)); #endif view->setDefaultFontSize(static_cast(fontSize)); #if GMV_ENABLE_BOXML FormattingContext context(mgd, bgd); #else FormattingContext context(mgd); #endif const scaled widthS = mgd->evaluate(context, Length(width, unitId), scaled::zero()); const scaled heightS = mgd->evaluate(context, Length(height, unitId), scaled::zero()); const scaled xMarginS = mgd->evaluate(context, Length(xMargin, unitId), scaled::zero()); const scaled yMarginS = mgd->evaluate(context, Length(yMargin, unitId), scaled::zero()); view->setAvailableWidth(widthS - xMarginS * 2); const char* file = 0; while ((file = poptGetArg(ctxt)) != 0) { logger->out(LOG_INFO, "Processing `%s'...", file); char* outName = getOutputFileName(file); assert(outName != NULL); #if 1 #if 0 xmlTextReaderPtr reader = xmlNewTextReaderFilename(file); assert(reader); view->loadReader(reader); #endif view->loadURI(file); const BoundingBox box = view->getBoundingBox(); std::ofstream os(outName); //SVG_StreamRenderingContext rc(logger, os); SVG_libxml2_StreamRenderingContext rc(logger, os, view); if (cropping) { rc.documentStart(box); view->render(rc, 0, -box.height); } else { rc.documentStart(BoundingBox(widthS, box.height, heightS - box.height)); view->render(rc, xMarginS, -(yMarginS + box.height)); } rc.documentEnd(); view->resetRootElement(); os.close(); // WARNING: currently the text reader is freed by libxmlXmlReader // not sure this is what we want //xmlFreeTextReader(reader); #else SMS sms(logger, view); sms.process(argv[optind]); #endif optind++; } poptFreeContext(ctxt); return 0; } ������������������������������������������������������gtkmathview-0.8.0/mathmlsvg/SMS.cc������������������������������������������������������������������0000644�0001750�0001750�00000070671�10661271106�013760� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "defs.h" #include "AbstractLogger.hh" #include "ValueConversion.hh" #include "Fragment.hh" #include "Location.hh" #include "SMS.hh" #include "Scanner.hh" #include "SVG_libxml2_StreamRenderingContext.hh" #include "LengthAux.hh" #include "Element.hh" #include "Point.hh" #include "TemplateStringParsers.hh" #define SVG_NS_URI "http://www.w3.org/2000/svg" #define GMV_NS_URI "http://helm.cs.unibo.it/2005/GtkMathView" SMS::SMS(const SmartPtr& _logger, const SmartPtr& _view, const scaled& _pageWidth, const scaled& _pageHeight, float _dpi) : logger(_logger), view(_view), evalContext(logger, view), pageWidth(_pageWidth), pageHeight(_pageHeight), dpi(_dpi) { funMap["pair"] = &SMS::fun_pair; funMap["add"] = &SMS::fun_add; funMap["sub"] = &SMS::fun_sub; funMap["mul"] = &SMS::fun_mul; funMap["div"] = &SMS::fun_div; funMap["neg"] = &SMS::fun_neg; funMap["x"] = &SMS::fun_x; funMap["y"] = &SMS::fun_y; funMap["origin"] = &SMS::fun_origin; funMap["center"] = &SMS::fun_center; funMap["width"] = &SMS::fun_width; funMap["height"] = &SMS::fun_height; funMap["depth"] = &SMS::fun_depth; funMap["size"] = &SMS::fun_size; funMap["north-west"] = &SMS::fun_north_west; funMap["north"] = &SMS::fun_north; funMap["north-east"] = &SMS::fun_north_east; funMap["east"] = &SMS::fun_east; funMap["south-east"] = &SMS::fun_south_east; funMap["south"] = &SMS::fun_south; funMap["south-west"] = &SMS::fun_south_west; funMap["west"] = &SMS::fun_west; funMap["depart"] = &SMS::fun_depart; } scaled SMS::evaluate(const Length& length, const scaled& defaultValue) { switch (length.type) { case Length::INFINITY_UNIT: return scaled::max(); case Length::IN_UNIT: return scaled(72.27 * length.value); case Length::CM_UNIT: return scaled(72.27 * (length.value / 2.54)); case Length::MM_UNIT: return scaled(72.27 * (length.value / 25.4)); case Length::PT_UNIT: return scaled(length.value); case Length::PC_UNIT: return scaled(12 * 72.27 * length.value); case Length::PERCENTAGE_UNIT: return (defaultValue * length.value) / 100.0; case Length::UNDEFINED_UNIT: case Length::EM_UNIT: case Length::EX_UNIT: case Length::PX_UNIT: case Length::PURE_UNIT: default: assert(false); } } #include "scaledAux.hh" bool SMS::sortFragments(std::list >& sortedFragmentList) const { for (std::list >::const_iterator f = fragmentList.begin(); f != fragmentList.end(); f++) if ((*f)->visit(sortedFragmentList)) return true; return false; } bool xmlIsNull(const xmlChar* str) { return(str[0] == (xmlChar)'0'); } bool SMS::isGmvNamespace(const xmlChar* ns) { int i; char *gmvNs = GMV_NS_URI; for (i = 0; i < 41; i++) { if (ns[i] != gmvNs[i]) return(false); } return(true); } // Funzione che cerca gli ID all'interno degli attributi // deve essere sostituita con una funzione di parsing dell'intero attributo std::list SMS::getDepFromAttr(const xmlChar *value) { std::list idRetLst; String attribute((char *)value); Scanner scanner(UCS4StringOfString(attribute), false); while (true) { switch(scanner.getToken()) { case Scanner::RAW : scanner.advance(); break; case Scanner::EOS : return(idRetLst); break; case Scanner::DOLLAR : scanner.advance(); if (scanner.getToken() == Scanner::ID) { String tmp(""); tmp.append(StringOfUCS4String(scanner.getString())); scanner.advance(); xmlChar *xmlTmp = (xmlChar *)calloc(sizeof(tmp.c_str()), sizeof(xmlChar)); strcpy((char *)xmlTmp, (char *)tmp.c_str()); idRetLst.push_back((xmlChar *)xmlTmp); break; } else { scanner.advance(); break; } case Scanner::ID : scanner.advance(); break; default : scanner.advance(); break; } } } void SMS::assoc(const Model::Node& node, const SmartPtr& frag) { if (Model::Element el = Model::asElement(node)) { if (Model::hasAttribute(el, "id")) idFragmentMap[Model::getAttribute(el, "id")] = frag; for (Model::NodeIterator p(Model::asNode(el)); p.more(); p.next()) assoc(p.node(), frag); } } void SMS::findFragmentDependencies() { for (std::list >::iterator f = fragmentList.begin(); f != fragmentList.end(); f++) if (xmlAttr* attr = Model::asNode((*f)->getOldRoot())->properties) for (; attr != NULL; attr = attr->next) { if (Model::Node attrNode = (xmlNode*) attr) if (Model::getNodeNamespaceURI(attrNode) == GMV_NS_URI) for (Scanner scanner(UCS4StringOfString(Model::getNodeValue(attrNode)), false); scanner.more(); scanner.advance()) // FIX MEEEEEEEEEE!!!!!!!! // if (scanner.getToken() == Scanner::ID) { String readString = StringOfUCS4String(scanner.getString()); if (readString == "width" || readString == "height" || readString == "depth") { scanner.advance(); while (scanner.getToken() != Scanner::ID) scanner.advance(); scanner.advance(); } else if (SmartPtr tmp = idFragmentMap[StringOfUCS4String(scanner.getString())]) (*f)->addDependency(tmp); } } } void SMS::traverse(const Model::Node& node) { assert(node); if (Model::getNodeType(node) == Model::ELEMENT_NODE) { Model::Element elem = Model::asElement(node); assert(elem); if (Model::getNodeNamespaceURI(node) == SVG_NS_URI && Model::getNodeName(node) == "foreignObject" && Model::getAttribute(elem, "requiredExtension") == MATHML_NS_URI) { Model::ElementIterator p(elem, MATHML_NS_URI); if (Model::Element mmlRoot = p.element()) { view->loadRootElement(mmlRoot); // set available width with width attribute on foreignObject if (SmartPtr root = view->getRootElement()) { // questa prima resa serve per conoscere le dimensioni del frammento // e di tutti gli elementi MathML in esso contenuti view->render(evalContext, 0, 0); std::ostringstream os; SVG_libxml2_StreamRenderingContext context(logger, os, view); const BoundingBox box = view->getBoundingBox(); context.documentStart(box); // questa seconda resa serve per generare l'SVG corrispondente al // frammento di MathML view->render(context, 0, 0); context.documentEnd(); // creazione albero SVG equivalente const String buffer = os.str(); if (Model::Document doc = xmlParseMemory(buffer.c_str(), buffer.length())) { if (Model::Element root = Model::getDocumentElement(doc)) { Model::ElementIterator p(root, SVG_NS_URI, "g"); Model::Element clonedFragment = Model::asElement(xmlCopyNode(Model::asNode(p.element()), 1)); assert(clonedFragment); SmartPtr frag = Fragment::create(elem, clonedFragment, box); // aggiungi un fragment alla lista fragList fragmentList.push_back(frag); // crea una lista associativa fra id e fragment di riferimento assoc(node, frag); // crea una lista fra fragment e id dai quali dipende } xmlFreeDoc(doc); } } view->resetRootElement(); } } else { for (Model::NodeIterator p(node); p.more(); p.next()) traverse(p.node()); } } } float SMS::toUserUnits(const scaled& s) const { return (s.toFloat() * viewBoxWidth) / canvasWidth.toFloat(); } scaled SMS::fromUserUnits(float f) const { return (canvasWidth * f) / viewBoxWidth; } void SMS::substFragments() { for (std::list >::const_iterator p = fragmentList.begin(); p != fragmentList.end(); p++) { const SmartPtr fragment = *p; std::ostringstream os; const scaled ox = fragment->getX() - fragment->getBoundingBox().width / 2; const scaled oy = fragment->getY() + (fragment->getBoundingBox().height - fragment->getBoundingBox().depth) / 2; os << "translate(" << toUserUnits(ox) << ", " << toUserUnits(oy) << ")"; Model::setAttribute(fragment->getNewRoot(), "transform", os.str()); xmlReplaceNode(Model::asNode(fragment->getOldRoot()), Model::asNode(fragment->getNewRoot())); } } typedef Variant NumberValue; typedef Variant ScalarValue; typedef Variant > RefValue; typedef Variant PairValue; String SMS::serializeValue(const SmartPtr& value) const { if (is_a(value)) return smart_cast(value)->getValue()->getId(); else if (is_a(value)) { std::ostringstream os; os << smart_cast(value)->getValue(); return os.str(); } else if (is_a(value)) { std::ostringstream os; os << toUserUnits(smart_cast(value)->getValue()); return os.str(); } else if (is_a(value)) { const SmartPtr pair = smart_cast(value); std::ostringstream os; os << toUserUnits(pair->getValue().x) << "," << toUserUnits(pair->getValue().y); return os.str(); } else { assert(false); return "???"; } } bool SMS::asLocation(const SmartPtr& value, SmartPtr& res) const { if (is_a(value)) { res = smart_cast(value)->getValue(); return true; } return false; } bool SMS::asNumber(const SmartPtr& value, float& res) const { if (is_a(value)) { res = smart_cast(value)->getValue(); return true; } return false; } bool SMS::asScalar(const SmartPtr& value, scaled& res) const { if (is_a(value)) { res = fromUserUnits(smart_cast(value)->getValue()); return true; } if (is_a(value)) { res = smart_cast(value)->getValue(); return true; } return false; } bool SMS::asPair(const SmartPtr& value, Point& res) const { if (is_a(value)) { res = smart_cast(value)->getValue(); return true; } return false; } SMS::Handler SMS::getFunHandler(const String& name) const { const FunMap::const_iterator p = funMap.find(name); if (p != funMap.end()) return p->second; else return 0; } SmartPtr SMS::fun_pair(const HandlerArgs& args) const { if (args.size() != 2) return 0; scaled s1; scaled s2; if (asScalar(args[0], s1) && asScalar(args[1], s2)) return PairValue::create(Point(s1, s2)); else return 0; } SmartPtr SMS::fun_x(const HandlerArgs& args) const { if (args.size() != 1) return 0; Point point; if (asPair(args[0], point)) return ScalarValue::create(point.x); else return 0; } SmartPtr SMS::fun_y(const HandlerArgs& args) const { if (args.size() != 1) return 0; Point point; if (asPair(args[0], point)) return ScalarValue::create(point.y); else return 0; } SmartPtr SMS::fun_origin(const HandlerArgs& args) const { if (args.size() != 1) return 0; SmartPtr loc; if (asLocation(args[0], loc)) return PairValue::create(Point(loc->getX(), loc->getY())); else return 0; } SmartPtr SMS::fun_center(const HandlerArgs& args) const { if (args.size() != 1) return 0; SmartPtr loc; if (asLocation(args[0], loc)) return PairValue::create(Point(loc->getX() + loc->getBoundingBox().width / 2, loc->getY() - (loc->getBoundingBox().height - loc->getBoundingBox().depth) / 2)); else return 0; } SmartPtr SMS::fun_size(const HandlerArgs& args) const { if (args.size() != 1) return 0; SmartPtr loc; if (asLocation(args[0], loc)) return PairValue::create(Point(loc->getBoundingBox().width, loc->getBoundingBox().height + loc->getBoundingBox().depth)); else return 0; } SmartPtr SMS::fun_width(const HandlerArgs& args) const { if (args.size() != 1) return 0; SmartPtr loc; if (asLocation(args[0], loc)) return ScalarValue::create(loc->getBoundingBox().width); else return 0; } SmartPtr SMS::fun_height(const HandlerArgs& args) const { if (args.size() != 1) return 0; SmartPtr loc; if (asLocation(args[0], loc)) return ScalarValue::create(loc->getBoundingBox().height); else return 0; } SmartPtr SMS::fun_depth(const HandlerArgs& args) const { if (args.size() != 1) return 0; SmartPtr loc; if (asLocation(args[0], loc)) return ScalarValue::create(loc->getBoundingBox().depth); else return 0; } SmartPtr SMS::fun_add(const HandlerArgs& args) const { if (args.size() != 2) return 0; float n1; float n2; Point pair1; Point pair2; scaled s1; scaled s2; if (asNumber(args[0], n1) && asNumber(args[1], n2)) return NumberValue::create(n1 + n2); else if (asScalar(args[0], s1) && asScalar(args[1], s2)) return ScalarValue::create(s1 + s2); else if (asPair(args[0], pair1) && asPair(args[1], pair2)) return PairValue::create(Point(pair1.x + pair2.x, pair1.y + pair2.y)); else return 0; } SmartPtr SMS::fun_sub(const HandlerArgs& args) const { if (args.size() != 2) return 0; float f1; float f2; Point pair1; Point pair2; scaled s1; scaled s2; if (asNumber(args[0], f1) && asNumber(args[1], f2)) return(NumberValue::create(f1 - f2)); if (asScalar(args[0], s1) && asScalar(args[1], s2)) return ScalarValue::create(s1 - s2); else if (asPair(args[0], pair1) && asPair(args[1], pair2)) return PairValue::create(Point(pair1.x - pair2.x, pair1.y - pair2.y)); else return 0; } SmartPtr SMS::fun_mul(const HandlerArgs& args) const { if (args.size() != 2) return 0; Point pair; scaled s; float n1; float n2; if (asNumber(args[0], n1) && asNumber(args[1], n2)) return NumberValue::create(n1 * n2); else if (asScalar(args[0], s) && asNumber(args[1], n2)) return ScalarValue::create(s * n2); else if (asPair(args[0], pair) && asNumber(args[1], n2)) return PairValue::create(Point(pair.x * n2, pair.y * n2)); else return 0; } SmartPtr SMS::fun_neg(const HandlerArgs& args) const { if (args.size() != 1) return 0; float n; scaled s; Point p; if (asNumber(args[0], n)) return NumberValue::create(-n); if (asScalar(args[0], s)) return ScalarValue::create(-s); if (asPair(args[0], p)) return PairValue::create(Point(-p.x, -p.y)); else return 0; } SmartPtr SMS::fun_north_west(const HandlerArgs& args) const { if (args.size() != 1) return 0; SmartPtr loc; if (asLocation(args[0], loc)) return PairValue::create(Point(loc->getX(), loc->getY() - loc->getBoundingBox().height)); else return 0; } SmartPtr SMS::fun_north(const HandlerArgs& args) const { if (args.size() != 1) return 0; SmartPtr loc; if (asLocation(args[0], loc)) return PairValue::create(Point(loc->getX() + (loc->getBoundingBox().width / 2), loc->getY() - loc->getBoundingBox().height)); else return 0; } SmartPtr SMS::fun_north_east(const HandlerArgs& args) const { if (args.size() != 1) return 0; SmartPtr loc; if (asLocation(args[0], loc)) return PairValue::create(Point(loc->getX() + loc->getBoundingBox().width , loc->getY() - loc->getBoundingBox().height)); else return 0; } SmartPtr SMS::fun_east(const HandlerArgs& args) const { if (args.size() != 1) return 0; SmartPtr loc; if (asLocation(args[0], loc)) return PairValue::create(Point(loc->getX() + loc->getBoundingBox().width, loc->getY() - loc->getBoundingBox().height + ((loc->getBoundingBox().height + loc->getBoundingBox().depth) / 2))); else return 0; } SmartPtr SMS::fun_south_east(const HandlerArgs& args) const { if (args.size() != 1) return 0; SmartPtr loc; if (asLocation(args[0], loc)) return PairValue::create(Point(loc->getX() + loc->getBoundingBox().width, loc->getY() + loc->getBoundingBox().depth)); else return 0; } SmartPtr SMS::fun_south(const HandlerArgs& args) const { if (args.size() != 1) return 0; SmartPtr loc; if (asLocation(args[0], loc)) return PairValue::create(Point(loc->getX() + (loc->getBoundingBox().width / 2), loc->getY() + loc->getBoundingBox().depth)); else return 0; } SmartPtr SMS::fun_south_west(const HandlerArgs& args) const { if (args.size() != 1) return 0; SmartPtr loc; if (asLocation(args[0], loc)) return PairValue::create(Point(loc->getX(), loc->getY() + loc->getBoundingBox().depth)); else return 0; } SmartPtr SMS::fun_west(const HandlerArgs& args) const { if (args.size() != 1) return 0; SmartPtr loc; if (asLocation(args[0], loc)) return PairValue::create(Point(loc->getX(), loc->getY() - loc->getBoundingBox().height + ((loc->getBoundingBox().height + loc->getBoundingBox().depth) / 2))); else return 0; } SmartPtr SMS::fun_depart(const HandlerArgs& args) const { if (args.size() != 2) return 0; SmartPtr loc1, loc2; if (asLocation(args[0], loc1) && asLocation(args[1], loc2)) // delete "return 0" and insert here the code return 0; } SmartPtr SMS::fun_div(const HandlerArgs& args) const { if (args.size() != 2) return 0; Point pair; scaled s; float n1; float n2; if (asNumber(args[0], n1) && asNumber(args[1], n2)) return NumberValue::create(n1 / n2); else if (asScalar(args[0], s) && asNumber(args[1], n2)) return ScalarValue::create(s / n2); else if (asPair(args[0], pair) && asNumber(args[1], n2)) return PairValue::create(Point(pair.x / n2, pair.y / n2)); else return 0; } SmartPtr SMS::getLocationOfId(const String& name) const { const IdFragmentMap::const_iterator p = idFragmentMap.find(name); if (p == idFragmentMap.end()) return 0; SmartPtr frag = p->second; assert(frag != 0); if (SmartPtr loc = evalContext.getLocation(name)) { const scaled lx = frag->getX() - frag->getBoundingBox().width / 2 + loc->getX(); const scaled ly = frag->getY() + (frag->getBoundingBox().height - frag->getBoundingBox().depth) / 2 - loc->getY(); return Location::create(name, lx, ly, loc->getBoundingBox()); } return 0; } SmartPtr SMS::evalExpr(Scanner& scanner) { int a = scanner.getToken(); switch (a) { case Scanner::NUMBER: { const float value = scanner.getNumber(); scanner.advance(); return NumberValue::create(value); } break; case Scanner::DOLLAR: { scanner.advance(); if (scanner.getToken() != Scanner::ID) return 0; const String name = StringOfUCS4String(scanner.getString()); scanner.advance(); if (SmartPtr loc = getLocationOfId(name)) return RefValue::create(loc); else return 0; } break; case Scanner::ID: { const String id = StringOfUCS4String(scanner.getString()); scanner.advance(); if (scanner.getToken() != Scanner::LPAREN) return 0; scanner.advance(); std::vector > args; for (;;) { if (!scanner.more()) return 0; if (SmartPtr v = evalExpr(scanner)) args.push_back(v); else return 0; if (scanner.getToken() == Scanner::RPAREN) { scanner.advance(); break; } if (scanner.getToken() != Scanner::COMMA) return 0; else scanner.advance(); } if (Handler handler = getFunHandler(id)) return (this->*handler)(args); else return 0; } case Scanner::LPAREN: { scanner.advance(); const SmartPtr value = evalExpr(scanner); if (scanner.getToken() == Scanner::RPAREN) { scanner.advance(); return value; } else return 0; } break; case Scanner::LBRACE: { scanner.advance(); const SmartPtr value = evalExpr(scanner); if (scanner.getToken() == Scanner::RBRACE) { scanner.advance(); return value; } else return 0; } break; case Scanner::ERROR: case Scanner::EOS: return 0; default: std::cout << StringOfUCS4String(scanner.getString()) << " " << a << std::endl; assert(false); } return 0; } bool SMS::evalAttribute(const Model::Element& el, const String& value, const String& name) { Scanner scanner(UCS4StringOfString(value), true); String acc; while (scanner.more()) { if (scanner.getToken() == Scanner::RAW) { acc.append(StringOfUCS4String(scanner.getString())); scanner.advance(); } else if (SmartPtr v = evalExpr(scanner)) acc.append(serializeValue(v)); else return false; } Model::setAttribute(el, name, acc); return true; } #if 0 bool SMS::evalScalarAttribute(const Model::Element& el, const String& value, const String& name) { Scanner scanner(UCS4StringOfString(value)); scaled v; if (asScalar(evalExpr(scanner), v)) { std::ostringstream os; os << toUserUnits(v); Model::setAttribute(el, name, os.str()); return true; } return false; } #endif bool SMS::evalPairAttribute(const Model::Element& el, const String& value, const String& name1, const String& name2) { Scanner scanner(UCS4StringOfString(value)); Point p; if (asPair(evalExpr(scanner), p)) { std::ostringstream os1; std::ostringstream os2; os1 << toUserUnits(p.x); os2 << toUserUnits(p.y); Model::setAttribute(el, name1, os1.str()); Model::setAttribute(el, name2, os2.str()); return true; } return false; } void SMS::evalAttributes(const Model::Node& node) { assert(node); if (Model::getNodeType(node) == Model::ELEMENT_NODE) { const Model::Element elem = Model::asElement(node); const String elemName = Model::getNodeName(node); for (xmlAttr *attr = node->properties; attr; attr = attr->next) { if (attr->ns && Model::fromModelString(attr->ns->href) == GMV_NS_URI) { const String name = Model::getNodeName((xmlNode*) attr); const String value = Model::getNodeValue((xmlNode*) attr); if ((elemName == "rect" || elemName == "text" || elemName == "foreignObject") && name == "at") evalPairAttribute(elem, value, "x", "y"); else if (elemName == "rect" && name == "size") evalPairAttribute(elem, value, "width", "height"); else if ((elemName == "rect" || elemName == "ellipse") && name == "radius") evalPairAttribute(elem, value, "rx", "ry"); else if ((elemName == "circle" || elemName == "ellipse") && name == "at") evalPairAttribute(elem, value, "cx", "cy"); else if (elemName == "line" && name == "from") evalPairAttribute(elem, value, "x1", "y1"); else if (elemName == "line" && name == "to") evalPairAttribute(elem, value, "x2", "y2"); else evalAttribute(elem, value, name); } } for (Model::NodeIterator p(node); p.more(); p.next()) evalAttributes(p.node()); } } bool SMS::process(const String& uri, const String& outName) { const Model::Document doc = Model::document(*logger, uri, false); if (!doc) return false; const Model::Element root = Model::getDocumentElement(doc); assert(root); logger->out(LOG_INFO, "Page size: %f x %f", pageWidth.toFloat(), pageHeight.toFloat()); viewBoxX = 0; viewBoxY = 0; viewBoxWidth = 0; viewBoxHeight = 0; if (Model::hasAttribute(root, "viewBox")) { const UCS4String viewbox = UCS4StringOfString(Model::getAttribute(root, "viewBox")); UCS4String::const_iterator p = viewbox.begin(); UCS4String::const_iterator next = viewbox.begin(); if (SmartPtr v = Parse::parse(p, viewbox.end(), next)) { viewBoxX = ToInteger(v); p = next; } if (SmartPtr v = Parse::parse(p, viewbox.end(), next)) { viewBoxY = ToInteger(v); p = next; } if (SmartPtr v = Parse::parse(p, viewbox.end(), next)) { viewBoxWidth = ToInteger(v); p = next; } if (SmartPtr v = Parse::parse(p, viewbox.end(), next)) { viewBoxHeight = ToInteger(v); p = next; } } if (viewBoxWidth > EPSILON && viewBoxHeight > EPSILON) { const float ratio = ((float) viewBoxWidth) / ((float) viewBoxHeight); const scaled adjustedPageWidth = pageHeight * ratio; const scaled adjustedPageHeight = pageWidth / ratio; if (adjustedPageWidth > pageWidth) { assert(adjustedPageHeight <= pageHeight); pageHeight = adjustedPageHeight; } else { assert(adjustedPageWidth <= pageWidth); pageWidth = adjustedPageWidth; } } canvasWidth = pageWidth; canvasHeight = pageHeight; logger->out(LOG_INFO, "Adjusted page size: %f x %f", canvasWidth.toFloat(), canvasHeight.toFloat()); if (Model::hasAttribute(root, "width")) { const UCS4String s = UCS4StringOfString(Model::getAttribute(root, "width")); UCS4String::const_iterator next; if (SmartPtr v = ParseLength::parse(s.begin(), s.end(), next)) canvasWidth = evaluate(ToLength(v), canvasWidth); } if (Model::hasAttribute(root, "height")) { const UCS4String s = UCS4StringOfString(Model::getAttribute(root, "height")); UCS4String::const_iterator next; if (SmartPtr v = ParseLength::parse(s.begin(), s.end(), next)) canvasHeight = evaluate(ToLength(v), canvasHeight); } logger->out(LOG_INFO, "Canvas size: %f x %f", canvasWidth.toFloat(), canvasHeight.toFloat()); if (viewBoxWidth < EPSILON) viewBoxWidth = dpi * canvasWidth.toFloat() / 72.27f; if (viewBoxHeight < EPSILON) viewBoxHeight = dpi * canvasHeight.toFloat() / 72.27f; logger->out(LOG_INFO, "Viewbox size: %f x %f", viewBoxWidth, viewBoxHeight); logger->out(LOG_DEBUG, "Ratio: %f x %f", viewBoxWidth / canvasWidth.toFloat(), viewBoxHeight / canvasHeight.toFloat()); #if 0 // conversion from physical to user coordinates // 1in : 90 = width : x ==> x = (90 * width) / 1in // (1) if there is a viewbox attribute on the root svg element, adjust // the page width and height so that they are in the same ratio as // the viewbox width and height // (2) if there is no width (height) attribute in the root svg element, // set it with the page width (height) // (3) if there is no viewbox in the source document, set the viewbox // in the target document computed with the formula above // (4) use the viewbox attribute to compute the ratio between scaled // points and user coordinates #endif traverse(Model::asNode(root)); findFragmentDependencies(); #if 0 std::cerr << "stampa dipendenze" << std::endl; for (std::list >::iterator it = fragmentList.begin(); it != fragmentList.end(); it++) { std::cerr << *it << std::endl; (*it)->printDep(); } #endif std::list > sortedFragments; if (sortFragments(sortedFragments)) { logger->out(LOG_ERROR, "circular dependencies in MathML fragments"); exit(1); } for (std::list >::const_iterator f = sortedFragments.begin(); f != sortedFragments.end(); f++) { Model::Element object = (*f)->getOldRoot(); evalAttributes(Model::asNode(object)); const String x = Model::getAttributeNoNS(object, "x"); const String y = Model::getAttributeNoNS(object, "y"); const scaled sx = fromUserUnits(atof(x.c_str())); const scaled sy = fromUserUnits(atof(y.c_str())); (*f)->setPosition(sx, sy); //std::cerr << "FRAGMENT AT " << x << ", " << y << " SIZE = " << (*f)->getBoundingBox() << std::endl; } evalAttributes(Model::asNode(Model::getDocumentElement(doc))); substFragments(); xmlSaveFile(outName.c_str(), doc); return true; } �����������������������������������������������������������������������gtkmathview-0.8.0/mathmlsvg/SMS.hh������������������������������������������������������������������0000644�0001750�0001750�00000010701�10661271106�013756� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SMS_hh__ #define __SMS_hh__ #include #include "Fragment.hh" #include "MathView.hh" #include "Model.hh" #include "Length.hh" #include "scaled.hh" #include "HashMap.hh" #include "SVG_EvalRenderingContext.hh" class SMS { public: SMS(const SmartPtr&, const SmartPtr&, const scaled&, const scaled&, float); bool process(const String&, const String&); protected: typedef std::vector > HandlerArgs; typedef SmartPtr (SMS::* Handler)(const HandlerArgs&) const; static scaled evaluate(const Length&, const scaled& = 0); float toUserUnits(const scaled&) const; scaled fromUserUnits(float) const; String serializeValue(const SmartPtr&) const; bool asLocation(const SmartPtr&, SmartPtr&) const; bool asNumber(const SmartPtr&, float&) const; bool asScalar(const SmartPtr&, scaled&) const; bool asPair(const SmartPtr&, Point&) const; void traverse(const Model::Node&); void substFragments(void); void evalAttributes(const Model::Node&); SmartPtr evalExpr(class Scanner&); bool evalAttribute(const Model::Element&, const String&, const String&); // bool evalScalarAttribute(const Model::Element& , const String&, const String&); bool evalPairAttribute(const Model::Element&, const String&, const String&, const String&); void dependAssocList(const Model::Node&, SmartPtr); bool isGmvNamespace(const xmlChar* ns); void createFragDepList(); void findFragmentDependencies(); void assoc(const Model::Node&, const SmartPtr&); bool sortFragments(std::list >&) const; SmartPtr getLocationOfId(const String&) const; Handler getFunHandler(const String&) const; SmartPtr fun_pair(const HandlerArgs&) const; SmartPtr fun_x(const HandlerArgs&) const; SmartPtr fun_y(const HandlerArgs&) const; SmartPtr fun_origin(const HandlerArgs&) const; SmartPtr fun_center(const HandlerArgs&) const; SmartPtr fun_width(const HandlerArgs&) const; SmartPtr fun_height(const HandlerArgs&) const; SmartPtr fun_size(const HandlerArgs&) const; SmartPtr fun_depth(const HandlerArgs&) const; SmartPtr fun_add(const HandlerArgs&) const; SmartPtr fun_sub(const HandlerArgs&) const; SmartPtr fun_mul(const HandlerArgs&) const; SmartPtr fun_div(const HandlerArgs&) const; SmartPtr fun_neg(const HandlerArgs&) const; SmartPtr fun_north_west(const HandlerArgs&) const; SmartPtr fun_north(const HandlerArgs&) const; SmartPtr fun_north_east(const HandlerArgs&) const; SmartPtr fun_east(const HandlerArgs&) const; SmartPtr fun_south_east(const HandlerArgs&) const; SmartPtr fun_south(const HandlerArgs&) const; SmartPtr fun_south_west(const HandlerArgs&) const; SmartPtr fun_west(const HandlerArgs&) const; SmartPtr fun_depart(const HandlerArgs&) const; private: SmartPtr logger; SmartPtr view; SVG_EvalRenderingContext evalContext; std::list > fragmentList; std::list getDepFromAttr(const xmlChar *value); scaled pageWidth; scaled pageHeight; scaled canvasWidth; scaled canvasHeight; float viewBoxX; float viewBoxY; float viewBoxWidth; float viewBoxHeight; float dpi; typedef HASH_MAP_NS::hash_map,StringHash,StringEq> IdFragmentMap; IdFragmentMap idFragmentMap; typedef HASH_MAP_NS::hash_map FunMap; FunMap funMap; }; #endif // __SMS_hh__ ���������������������������������������������������������������gtkmathview-0.8.0/mathmlsvg/Location.hh�������������������������������������������������������������0000644�0001750�0001750�00000002774�10661271106�015077� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Location_hh__ #define __Location_hh__ #include "String.hh" #include "BoundingBox.hh" #include "scaled.hh" #include "Object.hh" #include "SmartPtr.hh" class Location : public Object { protected: Location(const String&, const scaled&, const scaled&, const BoundingBox&); ~Location(); public: static SmartPtr create(const String&, const scaled&, const scaled&, const BoundingBox&); String getId(void) const { return id; } scaled getX(void) const { return x; } scaled getY(void) const { return y; } BoundingBox getBoundingBox(void) const { return box; } private: String id; scaled x; scaled y; BoundingBox box; }; #endif // __Location_hh__ ����gtkmathview-0.8.0/mathmlsvg/MathView.hh�������������������������������������������������������������0000644�0001750�0001750�00000001737�10661271106�015051� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathView_hh__ #define __MathView_hh__ #include "libxml2_MathView.hh" typedef libxml2_MathView MathView; #endif // __MathView_hh__ ���������������������������������gtkmathview-0.8.0/mathmlsvg/SVG_EvalRenderingContext.hh���������������������������������������������0000644�0001750�0001750�00000003205�10661271106�020126� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SVG_EvalRenderingContext_hh__ #define __SVG_EvalRenderingContext_hh__ #include "BoundingBox.hh" #include "StringHash.hh" #include "HashMap.hh" #include "MathView.hh" #include "SVG_RenderingContext.hh" class SVG_EvalRenderingContext : public SVG_RenderingContext { public: SVG_EvalRenderingContext(const SmartPtr&, const SmartPtr&); virtual ~SVG_EvalRenderingContext(); virtual void wrapperStart(const scaled&, const scaled&, const BoundingBox&, const SmartPtr&); virtual void wrapperEnd(void); SmartPtr getLocation(const String&) const; private: SmartPtr view; typedef HASH_MAP_NS::hash_map,StringHash,StringEq> IdMap; IdMap idMap; }; #endif // __SVG_EvalRenderingContext_hh__ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathmlsvg/SVG_libxml2_StreamRenderingContext.cc�����������������������������������0000644�0001750�0001750�00000003707�10661271106�022120� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include #include "AbstractLogger.hh" #include "libxml2_Model.hh" #include "libxml2_MathView.hh" #include "SVG_libxml2_StreamRenderingContext.hh" SVG_libxml2_StreamRenderingContext::SVG_libxml2_StreamRenderingContext(const SmartPtr& logger, std::ostream& output, const SmartPtr& _view) : SVG_StreamRenderingContext(logger, output), view(_view) { } SVG_libxml2_StreamRenderingContext::~SVG_libxml2_StreamRenderingContext() { } String SVG_libxml2_StreamRenderingContext::toSVGLength(const scaled& s) const { std::ostringstream buffer; buffer << std::fixed << std::setprecision(2) << (s.toFloat() * 72.27) / 90; return buffer.str(); } String SVG_libxml2_StreamRenderingContext::getId(const SmartPtr& elem) const { assert(elem); if (xmlElement* el = view->modelElementOfElement(elem)) { if (xmlChar* id = xmlGetProp((xmlNode*) el, libxml2_Model::toModelString("id"))) { String res = libxml2_Model::fromModelString(id); xmlFree(id); return res; } } return ""; } ���������������������������������������������������������gtkmathview-0.8.0/mathmlsvg/Fragment.cc�������������������������������������������������������������0000644�0001750�0001750�00000003701�10661271106�015047� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Fragment.hh" Fragment::Fragment(const Model::Element& _oldRoot, const Model::Element& _newRoot, const BoundingBox& _box) : color(WHITE), oldRoot(_oldRoot), newRoot(_newRoot), box(_box) { } Fragment::~Fragment() { } SmartPtr Fragment::create(const Model::Element& _oldRoot, const Model::Element& _newRoot, const BoundingBox& _box) { return new Fragment(_oldRoot, _newRoot, _box); } void Fragment::addDependency(const SmartPtr& frag) { if (std::find(dependencies.begin(), dependencies.end(), frag) == dependencies.end()) dependencies.push_back(frag); } bool Fragment::visit(std::list >& sortedFragmentList) { if (color == GRAY) return true; if (color == WHITE) { color = GRAY; for (std::list >::iterator f = dependencies.begin(); f != dependencies.end(); f++) if ((*f)->visit(sortedFragmentList)) return true; color = BLACK; sortedFragmentList.push_back(this); } return false; } void Fragment::setPosition(const scaled& ox, const scaled& oy) { x = ox; y = oy; } ���������������������������������������������������������������gtkmathview-0.8.0/mathmlsvg/SVG_EvalRenderingContext.cc���������������������������������������������0000644�0001750�0001750�00000003572�10661271106�020123� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "Model.hh" #include "Location.hh" #include "SVG_EvalRenderingContext.hh" SVG_EvalRenderingContext::SVG_EvalRenderingContext(const SmartPtr& logger, const SmartPtr& _view) : SVG_RenderingContext(logger), view(_view) { } SVG_EvalRenderingContext::~SVG_EvalRenderingContext() { } #include void SVG_EvalRenderingContext::wrapperStart(const scaled& x, const scaled& y, const BoundingBox& box, const SmartPtr& elem) { assert(elem); if (xmlElement* el = view->modelElementOfElement(elem)) { if (xmlChar* id = xmlGetProp((xmlNode*) el, Model::toModelString("id"))) { const String name = Model::fromModelString(id); idMap[name] = Location::create(name, x, y, box); xmlFree(id); } } } void SVG_EvalRenderingContext::wrapperEnd() { } SmartPtr SVG_EvalRenderingContext::getLocation(const String& name) const { const IdMap::const_iterator p = idMap.find(name); if (p != idMap.end()) return p->second; else return 0; } ��������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathmlsvg/Location.cc�������������������������������������������������������������0000644�0001750�0001750�00000002306�10661271106�015054� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "Location.hh" Location::Location(const String& _id, const scaled& _x, const scaled& _y, const BoundingBox& _box) : id(_id), x(_x), y(_y), box(_box) { } Location::~Location() { } SmartPtr Location::create(const String& _id, const scaled& _x, const scaled& _y, const BoundingBox& _box) { return new Location(_id, _x, _y, _box); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathmlsvg/SVG_libxml2_StreamRenderingContext.hh�����������������������������������0000644�0001750�0001750�00000002733�10661271106�022130� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SVG_libxml2_StreamRenderingContext_hh__ #define __SVG_libxml2_StreamRenderingContext_hh__ #include "SVG_StreamRenderingContext.hh" class SVG_libxml2_StreamRenderingContext : public SVG_StreamRenderingContext { public: SVG_libxml2_StreamRenderingContext(const SmartPtr&, std::ostream&, const SmartPtr&); virtual ~SVG_libxml2_StreamRenderingContext(); virtual String toSVGLength(const scaled&) const; virtual String getId(const SmartPtr&) const; private: SmartPtr view; }; #endif // __SVG_libxml2_StreamRenderingContext_hh__ �������������������������������������gtkmathview-0.8.0/mathmlsvg/Scanner.hh��������������������������������������������������������������0000644�0001750�0001750�00000003136�10661271106�014711� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Scanner_hh__ #define __Scanner_hh__ #include "String.hh" #include "Value.hh" #include "SmartPtr.hh" class Scanner { public: Scanner(const UCS4String&, bool = false); ~Scanner(); enum TokenId { ERROR = -1, UNDEFINED, EOS, RAW, NUMBER, ID, LPAREN, RPAREN, LBRACE, RBRACE, SHARP, DOLLAR, COMMA }; bool more(void) const { return p != end; } TokenId getToken(void); void advance(void); UCS4String getString(void) const; float getNumber(void) const; protected: TokenId scanToken(void); private: bool raw; TokenId token; SmartPtr value; UCS4String buffer; UCS4String::const_iterator p; UCS4String::const_iterator end; }; #endif // __Scanner_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathmlsvg/Makefile.am�������������������������������������������������������������0000644�0001750�0001750�00000002146�10661271106�015033� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ NULL = bin_PROGRAMS = $(NULL) if COND_LIBXML2 bin_PROGRAMS += mathmlsvg endif mathmlsvg_SOURCES = \ Fragment.cc \ Fragment.hh \ Location.cc \ Location.hh \ MathView.hh \ Model.cc \ Model.hh \ Scanner.cc \ Scanner.hh \ SMS.cc \ SMS.hh \ SVG_EvalRenderingContext.cc \ SVG_EvalRenderingContext.hh \ SVG_libxml2_StreamRenderingContext.cc \ SVG_libxml2_StreamRenderingContext.hh \ main.cc \ $(NULL) mathmlsvg_LDADD = \ $(POPT_LIBS) \ $(GLIB_LIBS) \ $(top_builddir)/src/backend/svg/libmathview_backend_svg.la \ $(top_builddir)/src/view/libmathview_frontend_libxml2.la \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/frontend/libxml2 \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ -I$(top_srcdir)/src/backend/svg \ -I$(top_srcdir)/src/view \ $(POPT_CFLAGS) \ $(GLIB_CFLAGS) \ $(XML_CFLAGS) \ $(NULL) ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathmlsvg/Model.cc����������������������������������������������������������������0000644�0001750�0001750�00000004005�10661271106�014342� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Model.hh" String Model::getAttributeNS(const Element& el, const String& name, const String& nsUri) { assert(el); if (xmlChar* res = xmlGetNsProp(Model::asNode(el), toModelString(name), toModelString(nsUri))) { String _res(fromModelString(res)); xmlFree(res); return _res; } else return String(); } String Model::getAttributeNoNS(const Element& el, const String& name) { assert(el); if (xmlChar* res = xmlGetNoNsProp(Model::asNode(el), toModelString(name))) { String _res(fromModelString(res)); xmlFree(res); return _res; } else return String(); } void Model::setAttribute(const Element& el, const String& name, const String& value) { assert(el); xmlSetProp((xmlNode*) el, toModelString(name), toModelString(value)); } bool Model::setAttributeNS(const Element& el, const String& name, const String& nsUri, const String& value) { assert(el); Model::Node n = Model::asNode(el); if (xmlNs* ns = xmlSearchNs(n->doc, n, toModelString(nsUri))) { xmlSetNsProp(n, ns, toModelString(name), toModelString(value)); return true; } else return false; } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathmlsvg/Makefile.in�������������������������������������������������������������0000644�0001750�0001750�00000045421�10704610534�015047� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) @COND_LIBXML2_TRUE@am__append_1 = mathmlsvg subdir = mathmlsvg DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__EXEEXT_1 = @COND_LIBXML2_TRUE@am__EXEEXT_2 = mathmlsvg$(EXEEXT) am__installdirs = "$(DESTDIR)$(bindir)" binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) am__objects_1 = am_mathmlsvg_OBJECTS = Fragment.$(OBJEXT) Location.$(OBJEXT) \ Model.$(OBJEXT) Scanner.$(OBJEXT) SMS.$(OBJEXT) \ SVG_EvalRenderingContext.$(OBJEXT) \ SVG_libxml2_StreamRenderingContext.$(OBJEXT) main.$(OBJEXT) \ $(am__objects_1) mathmlsvg_OBJECTS = $(am_mathmlsvg_OBJECTS) am__DEPENDENCIES_1 = mathmlsvg_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(top_builddir)/src/backend/svg/libmathview_backend_svg.la \ $(top_builddir)/src/view/libmathview_frontend_libxml2.la \ $(am__DEPENDENCIES_1) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(mathmlsvg_SOURCES) DIST_SOURCES = $(mathmlsvg_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = mathmlsvg_SOURCES = \ Fragment.cc \ Fragment.hh \ Location.cc \ Location.hh \ MathView.hh \ Model.cc \ Model.hh \ Scanner.cc \ Scanner.hh \ SMS.cc \ SMS.hh \ SVG_EvalRenderingContext.cc \ SVG_EvalRenderingContext.hh \ SVG_libxml2_StreamRenderingContext.cc \ SVG_libxml2_StreamRenderingContext.hh \ main.cc \ $(NULL) mathmlsvg_LDADD = \ $(POPT_LIBS) \ $(GLIB_LIBS) \ $(top_builddir)/src/backend/svg/libmathview_backend_svg.la \ $(top_builddir)/src/view/libmathview_frontend_libxml2.la \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/frontend/libxml2 \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ -I$(top_srcdir)/src/backend/svg \ -I$(top_srcdir)/src/view \ $(POPT_CFLAGS) \ $(GLIB_CFLAGS) \ $(XML_CFLAGS) \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign mathmlsvg/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign mathmlsvg/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ || test -f $$p1 \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ rm -f "$(DESTDIR)$(bindir)/$$f"; \ done clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done mathmlsvg$(EXEEXT): $(mathmlsvg_OBJECTS) $(mathmlsvg_DEPENDENCIES) @rm -f mathmlsvg$(EXEEXT) $(CXXLINK) $(mathmlsvg_LDFLAGS) $(mathmlsvg_OBJECTS) $(mathmlsvg_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Fragment.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Location.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Model.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SMS.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SVG_EvalRenderingContext.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SVG_libxml2_StreamRenderingContext.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Scanner.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-binPROGRAMS install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-binPROGRAMS uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathmlsvg/Fragment.hh�������������������������������������������������������������0000644�0001750�0001750�00000003602�10661271106�015061� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Fragment_hh__ #define __Fragment_hh__ #include #include "Model.hh" #include "Object.hh" #include "SmartPtr.hh" #include "Location.hh" class Fragment : public Object { protected: Fragment(const Model::Element&, const Model::Element&, const BoundingBox&); virtual ~Fragment(); public: static SmartPtr create(const Model::Element&, const Model::Element&, const BoundingBox&); Model::Element getOldRoot(void) const { return oldRoot; } Model::Element getNewRoot(void) const { return newRoot; } void addDependency(const SmartPtr&); bool visit(std::list >&); scaled getX(void) const { return x; } scaled getY(void) const { return y; } const BoundingBox& getBoundingBox(void) const { return box; } void setPosition(const scaled&, const scaled&); private: enum FragmentColor { WHITE, GRAY, BLACK }; FragmentColor color; Model::Element oldRoot; Model::Element newRoot; std::list > dependencies; scaled x; scaled y; BoundingBox box; }; #endif // __Fragment_hh__ ������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathmlsvg/Scanner.cc��������������������������������������������������������������0000644�0001750�0001750�00000005536�10661271106�014705� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "Scanner.hh" #include "Variant.hh" #include "token.hh" #include "TemplateStringScanners.hh" #include typedef ScanChoice ScanLetterOrMinusOrDigit; typedef ScanSeq > ScanIdToken; Scanner::Scanner(const UCS4String& s, bool mode) : raw(mode), token(UNDEFINED), buffer(s), p(buffer.begin()), end(buffer.end()) { } Scanner::~Scanner() { } Scanner::TokenId Scanner::scanToken(void) { while (true) { UCS4String acc; UCS4String::const_iterator begin = p; while (raw && p != end && *p != '{') p++; raw = false; acc.append(begin, p); if (!acc.empty()) { value = Variant::create(acc); return RAW; } while (p != end && isXmlSpace(*p)) p++; if (p == end) return EOS; switch (*p) { case '$' : p++; return DOLLAR; case ',': p++; return COMMA; case '(': p++; return LPAREN; case ')': p++; return RPAREN; case '#': p++; return SHARP; case '{': p++; return LBRACE; case '}': p++; raw = true; return RBRACE; default: { UCS4String::const_iterator next; if (ScanNumber::scan(p, end, next)) { value = Variant::create(ScanNumber::parse(p, next)); p = next; return NUMBER; } else if (ScanIdToken::scan(p, end, next)) { value = Variant::create(UCS4String(p, next)); p = next; return ID; } else return ERROR; } } } } Scanner::TokenId Scanner::getToken() { if (token == UNDEFINED) token = scanToken(); assert(token != UNDEFINED); return token; } void Scanner::advance() { token = UNDEFINED; } UCS4String Scanner::getString() const { const SmartPtr > v = smart_cast >(value); assert(v); return v->getValue(); } float Scanner::getNumber() const { const SmartPtr > v = smart_cast >(value); assert(v); return v->getValue(); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathmlsvg/Model.hh����������������������������������������������������������������0000644�0001750�0001750�00000002406�10661271106�014357� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Model_hh__ #define __Model_hh__ #include "libxml2_Model.hh" struct Model : libxml2_Model { static String getAttributeNS(const Element&, const String&, const String&); static String getAttributeNoNS(const Element&, const String&); static void setAttribute(const Element&, const String&, const String&); static bool setAttributeNS(const Element&, const String&, const String&, const String&); }; #endif // __Model_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/gtkmathview-custom-reader.pc.in���������������������������������������������������0000644�0001750�0001750�00000001031�10704611327�017021� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# This is a comment prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ datarootdir=@datarootdir@ datadir=@datadir@ Name: GtkMathView Description: A GTK+ Widget for Rendering MathML Documents (custom reader frontend) Version: @VERSION@ Requires: glib-2.0 gtk+-2.0 mathview-core mathview-backend-gtk mathview-frontend-custom-reader Libs: -L${libdir} -lgtkmathview_custom_reader @T1_LIBS@ Cflags: -I${includedir}/@PACKAGE@ @GMV_ENABLE_BOXML_CFLAGS@ @GMV_HAVE_HASH_MAP_CFLAGS@ @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config.sub������������������������������������������������������������������������0000755�0001750�0001750�00000077460�10524305372�012774� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. timestamp='2006-09-20' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | score \ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa-* \ | ymp-* \ | z8k-*) ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; c90) basic_machine=c90-cray os=-unicos ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16c) basic_machine=cr16c-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/INSTALL���������������������������������������������������������������������������0000644�0001750�0001750�00000020317�10613606776�012042� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������There are three basic steps to building and installing the GIMP on unix: 1. You need to have installed the following libraries: - GTK version 1.2.x or better (http://www.gtk.org) - libxml version 2.x.y (http://xmlsoft.org) NEW: with version 0.1.1 of gtkmathview has been added backward compatibility with versions 1.x.y of libxml because of its widespread use, however that versions have some annoying bugs, in particular they don't handle correctly Unicode character references inside the document (e.g. α) so it is strongly suggested to upgrade to libxml2 if possibile (and to use accordingly the --enable-libxml2 option when running ./configure, see below for a complete list of options). 2. Configure GtkMathView by running the `configure' script. 3. Build GtkMathView by running `make'. 4. Install GtkMathView libraries and include files by running `make install'. Generic instructions for configuring and compiling auto-configured packages are included below. Here is an illustration of commands that might be used to build and install GtkMathView. The actual configuration, compilation and installation output is not shown. % tar xvfz gtkmathview-x.y.z.tar.gz # unpack the sources % cd gtkmathview-x.y.z # change to the toplevel directory % ./configure # run the `configure' script % make # build the library % make install # install the library (must be root) The `configure' script examines your system, and adapts GtkMathView to run on it. The script has many options, some of which are described in the generic instructions included at the end of this file. All of the options can be listed using the command `./configure --help'. There are six commands special options the GIMP `configure' script recognizes. These are: 1. --enable-shared and --disable-shared. This option affects whether shared libraries will be built or not. Shared libraries provide for much smaller executables, but they are difficult to debug with. If you are interested in doing development, it is probably wise to specify `--disable-shared'. The default is to enable shared libraries. 2. --enable-checks and --disable-checks. This option causes the build process to compile with debugging enabled. If debugging is disabled, the GIMP will instead be compiled with optimizations turned on. The default is for debugging to be disabled. NOTE: This option is intended primarily as a convenience for developers. 3. --enable-helm and --disable-helm. This option causes the compilation of some features to achieve more sophisticated interacting capabilities with the widget. Is it usually turned on in the context of the HELM project, but you might find something useful (see the section about interaction in the reference manual). 4. --enable-stats and --disable-stats. This option enables or disables the computation of some statistics about MathML documents processed by the widget. It can be useful for architectural decisions. 5. --enable-floating and --disable-floating. If enabled, internal computation will be done by the widget in floating-point rather than fixed-point arithmetics. It is slower, but it can be useful to test whether fixed-point has some significant loss of precision. 6. --with-libxml2 and --without-libxml2. Enable this if you have installed version 2.x of libxml, disable otherwise. This is required because there are some incompatibilities between the versions. However, usage of version 2 is recommended. Remember that both libxml2 and libxml2-devel packages must be installed (the same holds also for version 1.x). If no explicit value is given, then the configuration script tries to guess it. 7. --with-t1lib and --without-t1lib. Enable this if you have installed version 1.x of t1lib, disable otherwise. t1lib will enable to render Type1 fonts with anti-aliasing and kerning. If no explicit value is given, then the configuration script tries to guess it. Generic Instructions for Building Auto-Configured Packages ========================================================== To compile this package: 1. Configure the package for your system. In the directory that this file is in, type `./configure'. If you're using `csh' on an old version of System V, you might need to type `sh configure' instead to prevent `csh' from trying to execute `configure' itself. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation, and creates the Makefile(s) (one in each subdirectory of the source directory). In some packages it creates a C header file containing system-dependent definitions. It also creates a file `config.status' that you can run in the future to recreate the current configuration. Running `configure' takes a minute or two. To compile the package in a different directory from the one containing the source code, you must use GNU make. `cd' to the directory where you want the object files and executables to go and run `configure' with the option `--srcdir=DIR', where DIR is the directory that contains the source code. Using this option is actually unnecessary if the source code is in the parent directory of the one in which you are compiling; `configure' automatically checks for the source code in `..' if it does not find it in the current directory. By default, `make install' will install the package's files in /usr/local/bin, /usr/local/lib, /usr/local/man, etc. You can specify an installation prefix other than /usr/local by giving `configure' the option `--prefix=PATH'. Alternately, you can do so by changing the `prefix' variable in the Makefile that `configure' creates (the Makefile in the top-level directory, if the package contains subdirectories). You can specify separate installation prefixes for machine-specific files and machine-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Normally, all files are installed using the same prefix. `configure' ignores any other arguments that you give it. If your system requires unusual options for compilation or linking that `configure' doesn't know about, you can give `configure' initial values for some variables by setting them in the environment. In Bourne-compatible shells, you can do that on the command line like this: CC='gcc -traditional' DEFS=-D_POSIX_SOURCE ./configure The `make' variables that you might want to override with environment variables when running `configure' are: (For these variables, any value given in the environment overrides the value that `configure' would choose:) CC C compiler program. Default is `cc', or `gcc' if `gcc' is in your PATH. INSTALL Program to use to install files. Default is `install' if you have it, `cp' otherwise. INCLUDEDIR Directory for `configure' to search for include files. Default is /usr/include. (For these variables, any value given in the environment is added to the value that `configure' chooses:) DEFS Configuration options, in the form '-Dfoo -Dbar ...' LIBS Libraries to link with, in the form '-lfoo -lbar ...' If you need to do unusual things to compile the package, we encourage you to teach `configure' how to do them and mail the diffs to the address given in the README so we can include them in the next release. 2. Type `make' to compile the package. 3. Type `make install' to install programs, data files, and documentation. 4. You can remove the program binaries and object files from the source directory by typing `make clean'. To also remove the Makefile(s), the header file containing system-dependent definitions (if the package uses one), and `config.status' (all the files that `configure' created), type `make distclean'. The file `configure.in' is used as a template to create `configure' by a program called `autoconf'. You will only need it if you want to regenerate `configure' using a newer version of `autoconf'. �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mkinstalldirs���������������������������������������������������������������������0000755�0001750�0001750�00000003704�10621034474�013605� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Public domain errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" 1>&2 exit 0 ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --) # stop option processing shift break ;; -*) # unknown option echo "$usage" 1>&2 exit 1 ;; *) # first non-opt arg break ;; esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac case $dirmode in '') if mkdir -p -- . 2>/dev/null; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" fi ;; *) if mkdir -m "$dirmode" -p -- . 2>/dev/null; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" fi ;; esac for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d do pathcomp="$pathcomp$d" case $pathcomp in -*) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr="" chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp="$pathcomp/" done done exit $errstatus # Local Variables: # mode: shell-script # sh-indentation: 2 # End: # mkinstalldirs ends here ������������������������������������������������������������gtkmathview-0.8.0/CONTRIBUTORS����������������������������������������������������������������������0000644�0001750�0001750�00000001761�10613607057�012664� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������In no particular order: * John Pedersen, from John Wiley & Sons, Inc. for his detailed and constant feedback about high-quality rendering, combining characters and usage of TeX fonts. He's also been the first one compiling the tool under Solaris. * Claudio Sacerdoti Coen, for his bug-reports and useful feedback for the GTK+ interface and the implementation of the element (toggle mode). He's also contributed into the development of various bindings for the OCaml language. * Pouria Masoudi porting to GTK2 and Bonobo Control for GtkMathView * Nathan Hurst feedback for cursor API * Shuying Wang read-from-buffer methods in widget and gmetadom frontend * Jean Brefort patches for configure.ac and auto/Makefile.am * Hubert Figuere (hub), Francis James Franklin (fjf) MacOSX/fink port * Robert Staudinger autopackage support * Marc Maurer (uwog) Win32/mingw port * Alessandro Appeddu MathML to SVG converter * Nicola Rossi PostScript backend and accents ���������������gtkmathview-0.8.0/LICENSE���������������������������������������������������������������������������0000644�0001750�0001750�00000001434�10661271107�012002� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������Copyright (C) 2000-2007, Luca Padovani . This file is part of GtkMathView, a flexible, high-quality rendering engine for MathML documents. GtkMathView is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. GtkMathView is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathview-frontend-custom-reader.pc.in���������������������������������������������0000644�0001750�0001750�00000000670�10704611352�020136� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# This is a comment prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ datarootdir=@datarootdir@ datadir=@datadir@ Name: MathView Description: MathML rendering engine (custom frontend) Version: @VERSION@ Requires: glib-2.0 mathview-core Libs: -L${libdir} -lmathview_frontend_custom_reader Cflags: -I${includedir}/@PACKAGE@ @GMV_ENABLE_BOXML_CFLAGS@ @GMV_HAVE_HASH_MAP_CFLAGS@ @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ ������������������������������������������������������������������������gtkmathview-0.8.0/mathview-backend-ps.pc.in���������������������������������������������������������0000644�0001750�0001750�00000000661�10704611343�015556� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# This is a comment prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ datarootdir=@datarootdir@ datadir=@datadir@ Name: GtkMathView Description: MathML rendering engine (PostScript backend) Version: @VERSION@ Requires: glib-2.0 mathview-core Libs: -L${libdir} -lmathview_backend_ps Cflags: -I${includedir}/@PACKAGE@ @GMV_ENABLE_BOXML_CFLAGS@ @GMV_HAVE_HASH_MAP_CFLAGS@ @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ �������������������������������������������������������������������������������gtkmathview-0.8.0/ltmain.sh�������������������������������������������������������������������������0000644�0001750�0001750�00000600157�10445567301�012630� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. basename="s,^.*/,,g" # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # The name of this program: progname=`echo "$progpath" | $SED $basename` modename="$progname" # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 PROGRAM=ltmain.sh PACKAGE=libtool VERSION="1.5.22 Debian 1.5.22-4" TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)" # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Check that we have a working $echo. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then # Yippee, $echo works! : else # Restart under the correct shell, and then maybe $echo will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE fi # Global variables. mode=$default_mode nonopt= prev= prevopt= run= show="$echo" show_help= execute_dlfiles= duplicate_deps=no preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" ##################################### # Shell function definitions: # This seems to be the best place for them # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $mkdir "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || { $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2 exit $EXIT_FAILURE } fi $echo "X$my_tmpdir" | $Xsed } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. func_win32_libid () { win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | \ $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $echo $win32_libid_type } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case "$@ " in " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then $echo "$modename: unable to infer tagged configuration" $echo "$modename: specify a tag with \`--tag'" 1>&2 exit $EXIT_FAILURE # else # $echo "$modename: using $tagname tagged configuration" fi ;; esac fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 exit $EXIT_FAILURE fi } # func_extract_archives gentop oldlib ... func_extract_archives () { my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" my_status="" $show "${rm}r $my_gentop" $run ${rm}r "$my_gentop" $show "$mkdir $my_gentop" $run $mkdir "$my_gentop" my_status=$? if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then exit $my_status fi for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` my_xdir="$my_gentop/$my_xlib" $show "${rm}r $my_xdir" $run ${rm}r "$my_xdir" $show "$mkdir $my_xdir" $run $mkdir "$my_xdir" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then exit $exit_status fi case $host in *-darwin*) $show "Extracting $my_xabs" # Do not bother doing anything if just a dry run if test -z "$run"; then darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` if test -n "$darwin_arches"; then darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= $show "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we have a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` lipo -create -output "$darwin_file" $darwin_files done # $darwin_filelist ${rm}r unfat-$$ cd "$darwin_orig_dir" else cd "$darwin_orig_dir" func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches fi # $run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # End of Shell function definitions ##################################### # Darwin sucks eval std_shrext=\"$shrext_cmds\" disable_libs=no # Parse our command line options once, thoroughly. while test "$#" -gt 0 do arg="$1" shift case $arg in -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in execute_dlfiles) execute_dlfiles="$execute_dlfiles $arg" ;; tag) tagname="$arg" preserve_args="${preserve_args}=$arg" # Check whether tagname contains only valid characters case $tagname in *[!-_A-Za-z0-9,/]*) $echo "$progname: invalid tag name: $tagname" 1>&2 exit $EXIT_FAILURE ;; esac case $tagname in CC) # Don't test for the "default" C tag, as we know, it's there, but # not specially marked. ;; *) if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then taglist="$taglist $tagname" # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" else $echo "$progname: ignoring unknown tag $tagname" 1>&2 fi ;; esac ;; *) eval "$prev=\$arg" ;; esac prev= prevopt= continue fi # Have we seen a non-optional argument yet? case $arg in --help) show_help=yes ;; --version) $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" $echo $echo "Copyright (C) 2005 Free Software Foundation, Inc." $echo "This is free software; see the source for copying conditions. There is NO" $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." exit $? ;; --config) ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath # Now print the configurations for the tags. for tagname in $taglist; do ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" done exit $? ;; --debug) $echo "$progname: enabling shell trace mode" set -x preserve_args="$preserve_args $arg" ;; --dry-run | -n) run=: ;; --features) $echo "host: $host" if test "$build_libtool_libs" = yes; then $echo "enable shared libraries" else $echo "disable shared libraries" fi if test "$build_old_libs" = yes; then $echo "enable static libraries" else $echo "disable static libraries" fi exit $? ;; --finish) mode="finish" ;; --mode) prevopt="--mode" prev=mode ;; --mode=*) mode="$optarg" ;; --preserve-dup-deps) duplicate_deps="yes" ;; --quiet | --silent) show=: preserve_args="$preserve_args $arg" ;; --tag) prevopt="--tag" prev=tag preserve_args="$preserve_args --tag" ;; --tag=*) set tag "$optarg" ${1+"$@"} shift prev=tag preserve_args="$preserve_args --tag" ;; -dlopen) prevopt="-dlopen" prev=execute_dlfiles ;; -*) $echo "$modename: unrecognized option \`$arg'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *) nonopt="$arg" break ;; esac done if test -n "$prevopt"; then $echo "$modename: option \`$prevopt' requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi case $disable_libs in no) ;; shared) build_libtool_libs=no build_old_libs=yes ;; static) build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` ;; esac # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= if test -z "$show_help"; then # Infer the operation mode. if test -z "$mode"; then $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 case $nonopt in *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) mode=link for arg do case $arg in -c) mode=compile break ;; esac done ;; *db | *dbx | *strace | *truss) mode=execute ;; *install*|cp|mv) mode=install ;; *rm) mode=uninstall ;; *) # If we have no mode, but dlfiles were specified, then do execute mode. test -n "$execute_dlfiles" && mode=execute # Just use the default operation mode. if test -z "$mode"; then if test -n "$nonopt"; then $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 else $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 fi fi ;; esac fi # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then $echo "$modename: unrecognized option \`-dlopen'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$modename --help --mode=$mode' for more information." # These modes are in order of execution frequency so that they run quickly. case $mode in # libtool compile mode compile) modename="$modename: compile" # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) if test -n "$libobj" ; then $echo "$modename: you cannot specify \`-o' more than once" 1>&2 exit $EXIT_FAILURE fi arg_mode=target continue ;; -static | -prefer-pic | -prefer-non-pic) later="$later $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac lastarg="$lastarg $arg" done IFS="$save_ifs" lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` # Add the arguments to base_compile. base_compile="$base_compile $lastarg" continue ;; * ) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` case $lastarg in # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, and some SunOS ksh mistreat backslash-escaping # in scan sets (worked around with variable expansion), # and furthermore cannot handle '|' '&' '(' ')' in scan sets # at all, so we specify them separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") lastarg="\"$lastarg\"" ;; esac base_compile="$base_compile $lastarg" done # for arg case $arg_mode in arg) $echo "$modename: you must specify an argument for -Xcompile" exit $EXIT_FAILURE ;; target) $echo "$modename: you must specify a target with \`-o'" 1>&2 exit $EXIT_FAILURE ;; *) # Get the name of the library object. [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo xform='[cCFSifmso]' case $libobj in *.ada) xform=ada ;; *.adb) xform=adb ;; *.ads) xform=ads ;; *.asm) xform=asm ;; *.c++) xform=c++ ;; *.cc) xform=cc ;; *.ii) xform=ii ;; *.class) xform=class ;; *.cpp) xform=cpp ;; *.cxx) xform=cxx ;; *.f90) xform=f90 ;; *.for) xform=for ;; *.java) xform=java ;; esac libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` case $libobj in *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; *) $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 exit $EXIT_FAILURE ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -static) build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` case $qlibobj in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qlibobj="\"$qlibobj\"" ;; esac test "X$libobj" != "X$qlibobj" \ && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \ && $echo "$modename: libobj name \`$libobj' may not contain shell special characters." objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$obj"; then xdir= else xdir=$xdir/ fi lobj=${xdir}$objdir/$objname if test -z "$base_compile"; then $echo "$modename: you must specify a compilation command" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi $run $rm $removelist trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" removelist="$removelist $output_obj $lockfile" trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $run ln "$progpath" "$lockfile" 2>/dev/null; do $show "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $echo "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi $echo "$srcfile" > "$lockfile" fi if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` case $qsrcfile in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qsrcfile="\"$qsrcfile\"" ;; esac $run $rm "$libobj" "${libobj}T" # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. test -z "$run" && cat > ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then $show "$mv $output_obj $lobj" if $run $mv $output_obj $lobj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the PIC object to the libtool object file. test -z "$run" && cat >> ${libobj}T <> ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then $show "$mv $output_obj $obj" if $run $mv $output_obj $obj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the non-PIC object the libtool object file. # Only append if the libtool object file exists. test -z "$run" && cat >> ${libobj}T <> ${libobj}T <&2 fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes else if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built fi build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test ;; *) qarg=$arg ;; esac libtool_args="$libtool_args $qarg" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) compile_command="$compile_command @OUTPUT@" finalize_command="$finalize_command @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. compile_command="$compile_command @SYMFILE@" finalize_command="$finalize_command @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" if test ! -f "$arg"; then $echo "$modename: symbol file \`$arg' does not exist" exit $EXIT_FAILURE fi prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat $save_arg` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi done else $echo "$modename: link input file \`$save_arg' does not exist" exit $EXIT_FAILURE fi arg=$save_arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= compile_command="$compile_command $wl$qarg" finalize_command="$finalize_command $wl$qarg" continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; shrext) shrext_cmds="$arg" prev= continue ;; darwin_framework|darwin_framework_skip) test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" prev= continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then compile_command="$compile_command $link_static_flag" finalize_command="$finalize_command $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 continue ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: more than one -exported-symbols argument is not allowed" exit $EXIT_FAILURE fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework|-arch|-isysroot) case " $CC " in *" ${arg} ${1} "* | *" ${arg} ${1} "*) prev=darwin_framework_skip ;; *) compiler_flags="$compiler_flags $arg" prev=darwin_framework ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" ;; esac continue ;; -L*) dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" notinst_path="$notinst_path $dir" fi dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs -framework System" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. -model) compile_command="$compile_command $arg" compiler_flags="$compiler_flags $arg" finalize_command="$finalize_command $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -module) module=yes continue ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m* pass through architecture-specific compiler args for GCC # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -pg pass through profiling flag for GCC # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \ -t[45]*|-txscale*|@*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" compiler_flags="$compiler_flags $arg" continue ;; -shrext) prev=shrext continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) # The PATH hackery in wrapper scripts is required on Windows # in order for the loader to find any dlls it needs. $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -static) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -Wc,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Wl,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $wl$flag" linker_flags="$linker_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # Some other compiler flag. -* | +*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi done # argument parsing loop if test -n "$prev"; then $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi oldlibs= # calculate the name of the file, without its directory outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` if test "X$output_objdir" = "X$output"; then output_objdir="$objdir" else output_objdir="$output_objdir/$objdir" fi # Create the object directory. if test ! -d "$output_objdir"; then $show "$mkdir $output_objdir" $run $mkdir $output_objdir exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then exit $exit_status fi fi # Determine the type of output case $output in "") $echo "$modename: you must specify an output file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac case $host in *cygwin* | *mingw* | *pw32*) # don't eliminate duplications in $postdeps and $predeps duplicate_compiler_generated_deps=yes ;; *) duplicate_compiler_generated_deps=$duplicate_deps ;; esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if test "X$duplicate_deps" = "Xyes" ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries case $linkmode in lib) passes="conv link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 exit $EXIT_FAILURE ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS%" test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ;; esac fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 continue fi name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then library_names= old_library= case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; *) $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` if eval $echo \"$deplib\" 2>/dev/null \ | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then $echo $echo "*** Warning: Trying to link with static lib archive $deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because the file extensions .$libext of this argument makes me believe" $echo "*** that it is just a static archive that I should not used here." else $echo $echo "*** Warning: Linking the shared library $output against the" $echo "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2 exit $EXIT_FAILURE fi # Check to see that this really is a libtool archive. if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." dlname= dlopen= dlpreopen= libdir= library_names= old_library= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then $echo "$modename: \`$lib' is not a convenience library" 1>&2 exit $EXIT_FAILURE fi continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 abs_ladir="$ladir" fi ;; esac laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then $echo "$modename: warning: library \`$lib' was moved." 1>&2 dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { test "$prefer_static_libs" = no || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath " in *" $dir "*) ;; *" $absdir "*) ;; *) temp_rpath="$temp_rpath $absdir" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes ; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi # This is a shared library # Warn about portability, can't link against -module's on # some systems (darwin) if test "$shouldnotlink" = yes && test "$pass" = link ; then $echo if test "$linkmode" = prog; then $echo "*** Warning: Linking the executable $output against the loadable module" else $echo "*** Warning: Linking the shared library $output against the loadable module" fi $echo "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names realname="$2" shift; shift libname=`eval \\$echo \"$libname_spec\"` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw*) major=`expr $current - $age` versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" soname=`$echo $soroot | ${SED} -e 's/^.*\///'` newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else $show "extracting exported symbol list from \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$extract_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else $show "generating import library for \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$old_archive_from_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a module then we can not link against # it, someone is ignoring the new warnings I added if /usr/bin/file -L $add 2> /dev/null | $EGREP ": [^:]* bundle" >/dev/null ; then $echo "** Warning, lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $echo $echo "** And there doesn't seem to be a static archive available" $echo "** The link will probably fail, sorry" else add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then $echo "$modename: configuration error: unsupported hardcode properties" exit $EXIT_FAILURE fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && \ test "$hardcode_minus_L" != yes && \ test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $echo $echo "*** Warning: This system can not link to static lib archive $lib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $echo "*** But as you try to build a module library, libtool will still create " $echo "*** a static module, that should work as long as the dlopening application" $echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$deplib" && dir="." # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" fi ;; esac if grep "^installed=no" $deplib > /dev/null; then path="$absdir/$objdir" else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi if test "$absdir" != "$libdir"; then $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 fi path="$absdir" fi depdepl= case $host in *-*-darwin*) # we do not want to link against static libs, # but need to link against shared eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$path/$depdepl" ; then depdepl="$path/$depdepl" fi # do not add paths which are already there case " $newlib_search_path " in *" $path "*) ;; *) newlib_search_path="$newlib_search_path $path";; esac fi path="" ;; *) path="-L$path" ;; esac ;; -l*) case $host in *-*-darwin*) # Again, we only want to link against shared libraries eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` for tmp in $newlib_search_path ; do if test -f "$tmp/lib$tmp_libs.dylib" ; then eval depdepl="$tmp/lib$tmp_libs.dylib" break fi done path="" ;; *) continue ;; esac ;; *) continue ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac case " $deplibs " in *" $depdepl "*) ;; *) deplibs="$depdepl $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 fi if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 fi # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) if test "$module" = no; then $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 exit $EXIT_FAILURE else $echo $echo "*** Warning: Linking the shared library $output against the non-libtool" $echo "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi if test "$dlself" != no; then $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 fi set dummy $rpath if test "$#" -gt 2; then $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 fi install_libdir="$2" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 fi else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 IFS="$save_ifs" if test -n "$8"; then $echo "$modename: too many parameters to \`-version-info'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$2" number_minor="$3" number_revision="$4" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) current=`expr $number_major + $number_minor - 1` age="$number_minor" revision="$number_minor" ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; esac ;; no) current="$2" revision="$3" age="$4" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac if test "$age" -gt "$current"; then $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header major=.`expr $current - $age` versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... minor_current=`expr $current + 1` verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current"; ;; irix | nonstopux) major=`expr $current - $age + 1` case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do iface=`expr $revision - $loop` loop=`expr $loop - 1` verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) major=.`expr $current - $age` versuffix="$major.$age.$revision" ;; osf) major=.`expr $current - $age` versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do iface=`expr $current - $loop` loop=`expr $loop - 1` verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. major=`expr $current - $age` versuffix="-$major" ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$echo "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi removelist="$removelist $p" ;; *) ;; esac done if test -n "$removelist"; then $show "${rm}r $removelist" $run ${rm}r $removelist fi fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. for path in $notinst_path; do lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"` deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"` dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"` done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs -framework System" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $rm conftest.c cat > conftest.c </dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null \ | grep " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for file magic test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a file magic. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` for a_deplib in $deplibs; do name=`expr $a_deplib : '-l\(.*\)'` # If $name is empty we are operating on a -L argument. if test -n "$name" && test "$name" != "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval \\$echo \"$libname_spec\"` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval $echo \"$potent_lib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for regex pattern test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a regex pattern. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` done fi if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ | grep . >/dev/null; then $echo if test "X$deplibs_check_method" = "Xnone"; then $echo "*** Warning: inter-library dependencies are not supported in this platform." else $echo "*** Warning: inter-library dependencies are not known to be supported." fi $echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $echo $echo "*** Warning: libtool could not satisfy all declared inter-library" $echo "*** dependencies of module $libname. Therefore, libtool will create" $echo "*** a static module, that should work as long as the dlopening" $echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $echo "*** The inter-library dependencies that have been dropped here will be" $echo "*** automatically added whenever a program is linked with this library" $echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $echo $echo "*** Since this library must not contain undefined symbols," $echo "*** because either the platform does not support them or" $echo "*** it was explicitly requested with -no-undefined," $echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names realname="$2" shift; shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" if len=`expr "X$cmd" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then $show "$cmd" $run eval "$cmd" || exit $? skipped_export=false else # The command line is too long to execute in one step. $show "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex"; then $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' $show "$mv \"${export_symbols}T\" \"$export_symbols\"" $run eval '$mv "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise. $echo "creating reloadable object files..." # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output output_la=`$echo "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= delfiles= last_robj= k=1 output=$output_objdir/$output_la-${k}.$objext # Loop over the list of objects to be linked. for obj in $save_libobjs do eval test_cmds=\"$reload_cmds $objlist $last_robj\" if test "X$objlist" = X || { len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; }; then objlist="$objlist $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext k=`expr $k + 1` output=$output_objdir/$output_la-${k}.$objext objlist=$obj len=1 fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if ${skipped_export-false}; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols libobjs=$output # Append the command to create the export file. eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" fi # Set up a command to remove the reloadable object files # after they are used. i=0 while test "$i" -lt "$k" do i=`expr $i + 1` delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" done $echo "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi # Append the command to remove the reloadable object files # to the just-reset $cmds. eval cmds=\"\$cmds~\$rm $delfiles\" fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then $show "${rm}r $gentop" $run ${rm}r "$gentop" fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 fi case $output in *.lo) if test -n "$objs$old_deplibs"; then $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 exit $EXIT_FAILURE fi libobj="$output" obj=`$echo "X$output" | $Xsed -e "$lo2o"` ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $run $rm $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $run eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; esac if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 fi if test "$preload" = yes; then if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && test "$dlopen_self_static" = unknown; then $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." fi fi case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac case $host in *darwin*) # Don't allow lazy linking, it breaks C++ global constructors if test "$tagname" = CXX ; then compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" fi ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then dlsyms="${outputname}S.c" else $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 fi fi if test -n "$dlsyms"; then case $dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${outputname}.nm" $show "$rm $nlist ${nlist}S ${nlist}T" $run $rm "$nlist" "${nlist}S" "${nlist}T" # Parse the name list into a source file. $show "creating $output_objdir/$dlsyms" test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ #ifdef __cplusplus extern \"C\" { #endif /* Prevent the only kind of declaration conflicts we can make. */ #define lt_preloaded_symbols some_other_symbol /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then $show "generating symbol list for \`$output'" test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for arg in $progfiles; do $show "extracting global C symbols from \`$arg'" $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi if test -n "$export_symbols_regex"; then $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $run $rm $export_symbols $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac else $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac fi fi for arg in $dlprefiles; do $show "extracting global C symbols from \`$arg'" name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` $run eval '$echo ": $name " >> "$nlist"' $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -z "$run"; then # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $mv "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if grep -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else grep -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' else $echo '/* NONE */' >> "$output_objdir/$dlsyms" fi $echo >> "$output_objdir/$dlsyms" "\ #undef lt_preloaded_symbols #if defined (__STDC__) && __STDC__ # define lt_ptr void * #else # define lt_ptr char * # define const #endif /* The mapping between symbol names and symbols. */ " case $host in *cygwin* | *mingw* ) $echo >> "$output_objdir/$dlsyms" "\ /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs */ struct { " ;; * ) $echo >> "$output_objdir/$dlsyms" "\ const struct { " ;; esac $echo >> "$output_objdir/$dlsyms" "\ const char *name; lt_ptr address; } lt_preloaded_symbols[] = {\ " eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" $echo >> "$output_objdir/$dlsyms" "\ {0, (lt_ptr) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " fi pic_flag_for_symtable= case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; esac;; *-*-hpux*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag";; esac esac # Now compile the dynamic symbol file. $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? # Clean up the generated files. $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" # Transform the symbol file into the correct name. case $host in *cygwin* | *mingw* ) if test -f "$output_objdir/${outputname}.def" ; then compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` else compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` fi ;; * ) compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` ;; esac ;; *) $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 exit $EXIT_FAILURE ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi if test "$need_relink" = no || test "$build_libtool_libs" != yes; then # Replace the output file specification. compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. $show "$link_command" $run eval "$link_command" exit_status=$? # Delete the generated files. if test -n "$dlsyms"; then $show "$rm $output_objdir/${outputname}S.${objext}" $run $rm "$output_objdir/${outputname}S.${objext}" fi exit $exit_status fi if test -n "$shlibpath_var"; then # We should set the shlibpath_var rpath= for dir in $temp_rpath; do case $dir in [\\/]* | [A-Za-z]:[\\/]*) # Absolute path. rpath="$rpath$dir:" ;; *) # Relative path: add a thisdir entry. rpath="$rpath\$thisdir/$dir:" ;; esac done temp_rpath="$rpath" fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $run $rm $output # Link the executable and exit $show "$link_command" $run eval "$link_command" || exit $? exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 $echo "$modename: \`$output' will be relinked during installation" 1>&2 else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname $show "$link_command" $run eval "$link_command" || exit $? # Now create the wrapper script. $show "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` fi # Quote $echo for shipping. if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if our run command is non-null. if test -z "$run"; then # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) output_name=`basename $output` output_path=`dirname $output` cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $rm $cwrappersource $cwrapper trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 cat > $cwrappersource <> $cwrappersource<<"EOF" #include #include #include #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) /* -DDEBUG is fairly common in CFLAGS. */ #undef DEBUG #if defined DEBUGWRAPPER # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__) #else # define DEBUG(format, ...) #endif const char *program_name = NULL; void * xmalloc (size_t num); char * xstrdup (const char *string); const char * base_name (const char *name); char * find_executable(const char *wrapper); int check_executable(const char *path); char * strendzap(char *str, const char *pat); void lt_fatal (const char *message, ...); int main (int argc, char *argv[]) { char **newargz; int i; program_name = (char *) xstrdup (base_name (argv[0])); DEBUG("(main) argv[0] : %s\n",argv[0]); DEBUG("(main) program_name : %s\n",program_name); newargz = XMALLOC(char *, argc+2); EOF cat >> $cwrappersource <> $cwrappersource <<"EOF" newargz[1] = find_executable(argv[0]); if (newargz[1] == NULL) lt_fatal("Couldn't find %s", argv[0]); DEBUG("(main) found exe at : %s\n",newargz[1]); /* we know the script has the same name, without the .exe */ /* so make sure newargz[1] doesn't end in .exe */ strendzap(newargz[1],".exe"); for (i = 1; i < argc; i++) newargz[i+1] = xstrdup(argv[i]); newargz[argc+1] = NULL; for (i=0; i> $cwrappersource <> $cwrappersource <> $cwrappersource <<"EOF" return 127; } void * xmalloc (size_t num) { void * p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL ; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char)name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable(const char * path) { struct stat st; DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!"); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && ( /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */ #if defined (S_IXOTH) ((st.st_mode & S_IXOTH) == S_IXOTH) || #endif #if defined (S_IXGRP) ((st.st_mode & S_IXGRP) == S_IXGRP) || #endif ((st.st_mode & S_IXUSR) == S_IXUSR)) ) return 1; else return 0; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise */ char * find_executable (const char* wrapper) { int has_slash = 0; const char* p; const char* p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char* concat_name; DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char* path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char* q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR(*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); return NULL; } char * strendzap(char *str, const char *pat) { size_t len, patlen; assert(str != NULL); assert(pat != NULL); len = strlen(str); patlen = strlen(pat); if (patlen <= len) { str += len - patlen; if (strcmp(str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char * mode, const char * message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } EOF # we should really use a build-platform specific compiler # here, but OTOH, the wrappers (shell script and this C one) # are only useful if you want to execute the "real" binary. # Since the "real" binary is built for $host, then this # wrapper might as well be built for $host, too. $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource ;; esac $rm $output trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 $echo > $output "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variable: notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$echo are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then echo=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then # Yippee, \$echo works! : else # Restart under the correct shell, and then maybe \$echo will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $echo >> $output "\ # Find the directory that this script lives in. thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $echo >> $output "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || \\ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $mkdir \"\$progdir\" else $rm \"\$progdir/\$file\" fi" $echo >> $output "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $echo \"\$relink_command_output\" >&2 $rm \"\$progdir/\$file\" exit $EXIT_FAILURE fi fi $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $rm \"\$progdir/\$program\"; $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } $rm \"\$progdir/\$file\" fi" else $echo >> $output "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $echo >> $output "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $echo >> $output "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $echo >> $output "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $echo >> $output "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2*) $echo >> $output "\ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $echo >> $output "\ exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $echo >> $output "\ \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" exit $EXIT_FAILURE fi else # The program doesn't exist. \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$echo \"This script is just a wrapper for \$program.\" 1>&2 $echo \"See the $PACKAGE documentation for more information.\" 1>&2 exit $EXIT_FAILURE fi fi\ " chmod +x $output fi exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do $echo "X$obj" | $Xsed -e 's%^.*/%%' done | sort | sort -uc >/dev/null 2>&1); then : else $echo "copying selected object files to avoid basename conflicts..." if test -z "$gentop"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$gentop"; then exit $exit_status fi fi save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase counter=`expr $counter + 1` case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" $run ln "$obj" "$gentop/$newobj" || $run cp "$obj" "$gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" if len=`expr "X$cmds" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts $echo "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done for obj in $save_oldobjs do oldobjs="$objlist $obj" objlist="$objlist $obj" eval test_cmds=\"$old_archive_cmds\" if len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do eval cmd=\"$cmd\" IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$generated"; then $show "${rm}r$generated" $run ${rm}r$generated fi # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" $show "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. if test -z "$run"; then for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlfiles="$newdlfiles $libdir/$name" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlprefiles="$newdlprefiles $libdir/$name" done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $rm $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $echo > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $echo >> $output "\ relink_command=\"$relink_command\"" fi done fi # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? ;; esac exit $EXIT_SUCCESS ;; # libtool install mode install) modename="$modename: install" # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $echo "X$nonopt" | grep shtool > /dev/null; then # Aesthetically quote it. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$arg " arg="$1" shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog$arg" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog $arg" done if test -z "$install_prog"; then $echo "$modename: you must specify an install program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -n "$prev"; then $echo "$modename: the \`$prev' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -z "$files"; then if test -z "$dest"; then $echo "$modename: no file or destination specified" 1>&2 else $echo "$modename: you must specify a destination" 1>&2 fi $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Strip any trailing slash from the destination. dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` test "X$destdir" = "X$dest" && destdir=. destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` # Not a directory, so check to see that there is only one file specified. set dummy $files if test "$#" -gt 2; then $echo "$modename: \`$dest' is not a directory" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi library_names= old_library= relink_command= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ test "X$dir" = "X$file/" && dir= dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. if test "$inst_prefix_dir" = "$destdir"; then $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 exit $EXIT_FAILURE fi if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi $echo "$modename: warning: relinking \`$file'" 1>&2 $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 exit $EXIT_FAILURE fi fi # See the names of the shared library. set dummy $library_names if test -n "$2"; then realname="$2" shift shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. $show "$install_prog $dir/$srcname $destdir/$realname" $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? if test -n "$stripme" && test -n "$striplib"; then $show "$striplib $destdir/$realname" $run eval "$striplib $destdir/$realname" || exit $? fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do if test "$linkname" != "$realname"; then $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" fi done fi # Do each command in the postinstall commands. lib="$destdir/$realname" cmds=$postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" fi # Install the pseudo-library for information purposes. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` instname="$dir/$name"i $show "$install_prog $instname $destdir/$name" $run eval "$install_prog $instname $destdir/$name" || exit $? # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` ;; *.$objext) staticdest="$destfile" destfile= ;; *) $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac # Install the libtool object if requested. if test -n "$destfile"; then $show "$install_prog $file $destfile" $run eval "$install_prog $file $destfile" || exit $? fi # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` $show "$install_prog $staticobj $staticdest" $run eval "$install_prog \$staticobj \$staticdest" || exit $? fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then file=`$echo $file|${SED} 's,.exe$,,'` stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin*|*mingw*) wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` ;; *) wrapper=$file ;; esac if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then notinst_deplibs= relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac # Check the variables that should have been set. if test -z "$notinst_deplibs"; then $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 exit $EXIT_FAILURE fi finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then # If there is no directory component, then add one. case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac fi libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 finalize=no fi done relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac outputname= if test "$fast_install" = no && test -n "$relink_command"; then if test "$finalize" = yes && test -z "$run"; then tmpdir=`func_mktempdir` file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 ${rm}r "$tmpdir" continue fi file="$outputname" else $echo "$modename: warning: cannot relink \`$file'" 1>&2 fi else # Install the binary that we compiled earlier. file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` ;; esac ;; esac $show "$install_prog$stripme $file $destfile" $run eval "$install_prog\$stripme \$file \$destfile" || exit $? test -n "$outputname" && ${rm}r "$tmpdir" ;; esac done for file in $staticlibs; do name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` # Set up the ranlib parameters. oldlib="$destdir/$name" $show "$install_prog $file $oldlib" $run eval "$install_prog \$file \$oldlib" || exit $? if test -n "$stripme" && test -n "$old_striplib"; then $show "$old_striplib $oldlib" $run eval "$old_striplib $oldlib" || exit $? fi # Do each command in the postinstall commands. cmds=$old_postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$future_libdirs"; then $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 fi if test -n "$current_libdirs"; then # Maybe just do a dry run. test -n "$run" && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi ;; # libtool finish mode finish) modename="$modename: finish" libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. cmds=$finish_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || admincmds="$admincmds $cmd" done IFS="$save_ifs" fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $run eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. test "$show" = : && exit $EXIT_SUCCESS $echo "X----------------------------------------------------------------------" | $Xsed $echo "Libraries have been installed in:" for libdir in $libdirs; do $echo " $libdir" done $echo $echo "If you ever happen to want to link against installed libraries" $echo "in a given directory, LIBDIR, you must either use libtool, and" $echo "specify the full pathname of the library, or use the \`-LLIBDIR'" $echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $echo " - add LIBDIR to the \`$shlibpath_var' environment variable" $echo " during execution" fi if test -n "$runpath_var"; then $echo " - add LIBDIR to the \`$runpath_var' environment variable" $echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $echo " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $echo " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $echo $echo "See any operating system documentation about shared libraries for" $echo "more information, such as the ld(1) and ld.so(8) manual pages." $echo "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS ;; # libtool execute mode execute) modename="$modename: execute" # The first argument is the command name. cmd="$nonopt" if test -z "$cmd"; then $echo "$modename: you must specify a COMMAND" 1>&2 $echo "$help" exit $EXIT_FAILURE fi # Handle -dlopen flags immediately. for file in $execute_dlfiles; do if test ! -f "$file"; then $echo "$modename: \`$file' is not a file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi dir= case $file in *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Read the libtool library. dlname= library_names= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" continue fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 exit $EXIT_FAILURE fi ;; *.lo) # Just add the directory containing the .lo file. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. ;; *) $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` args="$args \"$file\"" done if test -z "$run"; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables if test "${save_LC_ALL+set}" = set; then LC_ALL="$save_LC_ALL"; export LC_ALL fi if test "${save_LANG+set}" = set; then LANG="$save_LANG"; export LANG fi # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" $echo "export $shlibpath_var" fi $echo "$cmd$args" exit $EXIT_SUCCESS fi ;; # libtool clean and uninstall mode clean | uninstall) modename="$modename: $mode" rm="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) rm="$rm $arg"; rmforce=yes ;; -*) rm="$rm $arg" ;; *) files="$files $arg" ;; esac done if test -z "$rm"; then $echo "$modename: you must specify an RM program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi rmdirs= origobjdir="$objdir" for file in $files; do dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` if test "X$dir" = "X$file"; then dir=. objdir="$origobjdir" else objdir="$dir/$origobjdir" fi name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if (test -L "$file") >/dev/null 2>&1 \ || (test -h "$file") >/dev/null 2>&1 \ || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then . $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. cmds=$postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. cmds=$old_postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # Read the .lo file . $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" \ && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" \ && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) file=`$echo $file|${SED} 's,.exe$,,'` noexename=`$echo $name|${SED} 's,.exe$,,'` # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then relink_command= . $dir/$noexename # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac $show "$rm $rmfiles" $run $rm $rmfiles || exit_status=1 done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then $show "rmdir $dir" $run rmdir $dir >/dev/null 2>&1 fi done exit $exit_status ;; "") $echo "$modename: you must specify a MODE" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE ;; esac if test -z "$exec_cmd"; then $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE fi fi # test -z "$show_help" if test -n "$exec_cmd"; then eval exec $exec_cmd exit $EXIT_FAILURE fi # We need to display help for each of the modes. case $mode in "") $echo \ "Usage: $modename [OPTION]... [MODE-ARG]... Provide generalized library-building support services. --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --finish same as \`--mode=finish' --help display this help message and exit --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] --quiet same as \`--silent' --silent don't print informational messages --tag=TAG use configuration variables from tag TAG --version print version information MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for a more detailed description of MODE. Report bugs to ." exit $EXIT_SUCCESS ;; clean) $echo \ "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $echo \ "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -static always build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $echo \ "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $echo \ "Usage: $modename [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $echo \ "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $echo \ "Usage: $modename [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -static do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $echo \ "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac $echo $echo "Try \`$modename --help' for more information about other modes." exit $? # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared disable_libs=shared # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static disable_libs=static # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/README����������������������������������������������������������������������������0000644�0001750�0001750�00000001431�10613606776�011665� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ GtkMathView A GTK Widget for Rendering MathML Documents Full documentation is available on-line at http://www.cs.unibo.it/helm/mml-widget/ In the same page you can also find instruction to subscribe to the GtkMathView mailing list. For subscriptions, send an e-mail with empty subject and empty body to the following address: gtkmathview-subscribe@cs.unibo.it This code is released under the GPL (see COPYING for more details). See the file INSTALL for information about compiling, installing and linking the package. Starting from version 0.2.0 two programs are included with the distribution. `mathmlviewer' is a simple viewer for MathML documents, `mathml2ps' is a first attempt to convert a MathML formula to PostScript. Luca Padovani ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config/���������������������������������������������������������������������������0000777�0001750�0001750�00000000000�10704625451�012327� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config/Makefile.slow��������������������������������������������������������������0000644�0001750�0001750�00000001303�10613606776�014673� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ NULL = XSLTPROC = xsltproc SCRIPTDIR = ../scripts TARGETS = \ dictionary.xml \ mathml-entities.dtd \ entities-table.xml \ $(NULL) # to be run in the source tree with make -f Makefile.slow all: $(TARGETS) dictionary.xml: makeDictionary dictionary.in mathml-entities.dtd @echo Making operator dictionary... @( \ ./makeDictionary "mathml-entities.dtd" < dictionary.in | \ tr -s '\t' ' ' | tr -s ' ' ' ' | \ $(XSLTPROC) $(SCRIPTDIR)/copy.xsl - >$@ \ ) mathml-entities.dtd: entities-table.in @echo Making DTD for the MathML entities... $(SCRIPTDIR)/makeEntitiesTableDTD <$< >$@ entities-table.xml: entities-table.in @echo Making entities table... $(SCRIPTDIR)/makeEntitiesTable <$< >$@ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config/gtkmathview.conf.dtd�������������������������������������������������������0000644�0001750�0001750�00000000354�10613606776�016230� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config/gtkmathview.conf.xml.debug�������������������������������������������������0000644�0001750�0001750�00000020532�10661271107�017327� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ DEBUG
3
./config/dictionary.xml /home/luca/projects/gtkmathview/config/dictionary-combining.xml /home/luca/projects/gtkmathview/config/dictionary-local.xml ./config/dictionary-debug.xml
12pt
#000000 #ffffff
#32648b #ffffff
#000000 #ff6a6a
/usr/share/texmf-tetex/fonts/type1/bluesky/cm false true
false 0
true 0
true 1
false 1
false 1
true 1 always
false 1 true never
true 0
true 1
false 1 always
true 1 always
false 0
true 1
true 1 always
cmr10 cmb10 cmbx10 cmbxti10 cmti10 cmss10 cmssi10 cmssbx10 cmtt10 cmsy10 cmbsy10 cmmi10 cmmib10 cmex10 msam10 msbm10
����������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config/dictionary.dtd�������������������������������������������������������������0000644�0001750�0001750�00000002463�10613606776�015122� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config/entities-table.dtd���������������������������������������������������������0000644�0001750�0001750�00000000254�10613606776�015662� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config/dictionary.xml�������������������������������������������������������������0000644�0001750�0001750�00000100475�10613606776�015151� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config/mathml-entities.dtd��������������������������������������������������������0000644�0001750�0001750�00000202510�10613606776�016054� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config/dictionary-combining.xml���������������������������������������������������0000644�0001750�0001750�00000017640�10613606776�017115� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config/gtkmathview.conf.xml.in����������������������������������������������������0000644�0001750�0001750�00000020604�10661271107�016647� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ @VERSION@
0
@prefix@/share/gtkmathview/dictionary.xml @prefix@/share/gtkmathview/dictionary-local.xml @prefix@/share/gtkmathview/dictionary-combining.xml
12pt
#000000 #ffffff
#32648b #ffffff
#000000 #ff6a6a
/usr/share/texmf/fonts/type1/bluesky/cm false true
false 0
true 0
true 1
false 1
true 1
false 1 always
false 1 true never
true 0
true 1
false 1 always
true 1 always
false 0
true 1
true 1 always
cmr10 cmmi10 cmsy10 cmex10
����������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config/Makefile.am����������������������������������������������������������������0000644�0001750�0001750�00000001614�10704610364�014276� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ NULL = MAINTERNERCLEANFILES = \ gtkmathview.conf.xml \ $(NULL) EXTRA_DIST = \ mathml-entities.dtd \ dictionary.in \ dictionary.dtd \ dictionary.xml \ dictionary-local.xml \ dictionary-combining.xml \ entities-table.in \ entities-table.dtd \ entities-table.xml \ gtkmathview.conf.xml.in \ gtkmathview.conf.dtd \ gtkmathview.conf.xml \ gtkmathview.conf.xml.debug \ Makefile.slow \ $(NULL) pkgsysconfdir = $(sysconfdir)/@PACKAGE@ pkgsysconf_DATA = \ gtkmathview.conf.xml pkgdata_DATA = \ mathml-entities.dtd \ dictionary.dtd \ dictionary.xml \ dictionary-local.xml \ dictionary-combining.xml \ entities-table.dtd \ entities-table.xml \ gtkmathview.conf.dtd \ $(NULL) noinst_DATA = \ gtkmathview.conf.xml.debug if WITH_BINRELOC install-data-hook: cp $(srcdir)/gtkmathview.conf.xml.in $(DESTDIR)/$(pkgsysconfdir) else install-data-hook: true endif ��������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config/entities-table.in����������������������������������������������������������0000644�0001750�0001750�00000372121�10613606776�015522� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������Aacute,U000C1,=capitalA,acuteaccent,[LATINCAPITALLETTERAWITHACUTE] aacute,U000E1,=smalla,acuteaccent,[LATINSMALLLETTERAWITHACUTE] Abreve,U00102,=capitalA,breve,[LATINCAPITALLETTERAWITHBREVE] abreve,U00103,=smalla,breve,[LATINSMALLLETTERAWITHBREVE] ac,U0223E,mostpositive,[INVERTEDLAZYS] acd,U0223F,accurrent,[SINEWAVE] acE,U0223E-00333,mostpositive,twolinesbelow,[INVERTEDLAZYSwithdoubleunderline] Acirc,U000C2,=capitalA,circumflexaccent,[LATINCAPITALLETTERAWITHCIRCUMFLEX] acirc,U000E2,=smalla,circumflexaccent,[LATINSMALLLETTERAWITHCIRCUMFLEX] acute,U000B4,=acuteaccent,[ACUTEACCENT] Acy,U00410,=capitalA,Cyrillic,[CYRILLICCAPITALLETTERA] acy,U00430,=smalla,Cyrillic,[CYRILLICSMALLLETTERA] AElig,U000C6,=capitalAEdiphthong(ligature),[LATINCAPITALLETTERAE] aelig,U000E6,=smallaediphthong(ligature),[LATINSMALLLETTERAE] af,U02061,charactershowingfunctionapplicationinpresentationtagging,[FUNCTIONAPPLICATION] Afr,U1D504,/frakA,uppercasea,[MATHEMATICALFRAKTURCAPITALA] afr,U1D51E,/fraka,lowercasea,[MATHEMATICALFRAKTURSMALLA] Agrave,U000C0,=capitalA,graveaccent,[LATINCAPITALLETTERAWITHGRAVE] agrave,U000E0,=smalla,graveaccent,[LATINSMALLLETTERAWITHGRAVE] aleph,U02135,/alephaleph,Hebrew,[ALEFSYMBOL] alpha,U003B1,/alphasmallalpha,Greek,[GREEKSMALLLETTERALPHA] Amacr,U00100,=capitalA,macron,[LATINCAPITALLETTERAWITHMACRON] amacr,U00101,=smalla,macron,[LATINSMALLLETTERAWITHMACRON] amalg,U02A3F,/amalgB:amalgamationorcoproduct,[AMALGAMATIONORCOPRODUCT] amp,U00026,=ampersand,[AMPERSAND] And,U02A53,dbllogicaland,[DOUBLELOGICALAND] and,U02227,/wedge/landB:logicaland,[LOGICALAND] andand,U02A55,twologicaland,[TWOINTERSECTINGLOGICALAND] andd,U02A5C,and,horizontaldash,[LOGICALANDWITHHORIZONTALDASH] andslope,U02A58,slopinglargeand,[SLOPINGLARGEAND] andv,U02A5A,andwithmiddlestem,[LOGICALANDWITHMIDDLESTEM] ang,U02220,/angle-angle,[ANGLE] ange,U029A4,angle,equal,[ANGLEWITHUNDERBAR] angle,U02220,aliasISOAMSOang,[ANGLE] angmsd,U02221,/measuredangle-angle-measured,[MEASUREDANGLE] angmsdaa,U029A8,angle-measured,arrow,up,right,[MEASUREDANGLEWITHOPENARMENDINGINARROWPOINTINGUPANDRIGHT] angmsdab,U029A9,angle-measured,arrow,up,left,[MEASUREDANGLEWITHOPENARMENDINGINARROWPOINTINGUPANDLEFT] angmsdac,U029AA,angle-measured,arrow,down,right,[MEASUREDANGLEWITHOPENARMENDINGINARROWPOINTINGDOWNANDRIGHT] angmsdad,U029AB,angle-measured,arrow,down,left,[MEASUREDANGLEWITHOPENARMENDINGINARROWPOINTINGDOWNANDLEFT] angmsdae,U029AC,angle-measured,arrow,right,up,[MEASUREDANGLEWITHOPENARMENDINGINARROWPOINTINGRIGHTANDUP] angmsdaf,U029AD,angle-measured,arrow,left,up,[MEASUREDANGLEWITHOPENARMENDINGINARROWPOINTINGLEFTANDUP] angmsdag,U029AE,angle-measured,arrow,right,down,[MEASUREDANGLEWITHOPENARMENDINGINARROWPOINTINGRIGHTANDDOWN] angmsdah,U029AF,angle-measured,arrow,left,down,[MEASUREDANGLEWITHOPENARMENDINGINARROWPOINTINGLEFTANDDOWN] angrt,U0221F,right(90degree)angle,[RIGHTANGLE] angrtvb,U022BE,rightangle-measured,[RIGHTANGLEWITHARC] angrtvbd,U0299D,rightangle-measured,dot,[MEASUREDRIGHTANGLEWITHDOT] angsph,U02222,/sphericalangleangle-spherical,[SPHERICALANGLE] angst,U0212B,AngstromcapitalA,ring,[ANGSTROMSIGN] angzarr,U0237C,anglewithdownzig-zagarrow,[RIGHTANGLEWITHDOWNWARDSZIGZAGARROW] Aogon,U00104,=capitalA,ogonek,[LATINCAPITALLETTERAWITHOGONEK] aogon,U00105,=smalla,ogonek,[LATINSMALLLETTERAWITHOGONEK] Aopf,U1D538,/BbbA,openfaceA,[MATHEMATICALDOUBLE-STRUCKCAPITALA] aopf,U1D552,,[MATHEMATICALDOUBLE-STRUCKSMALLA] ap,U02248,/approxR:approximate,[ALMOSTEQUALTO] apacir,U02A6F,approximate,circumflexaccent,[ALMOSTEQUALTOWITHCIRCUMFLEXACCENT] apE,U02A70,approximatelyequalorequalto,[APPROXIMATELYEQUALOREQUALTO] ape,U0224A,/approxeqR:approximate,equals,[ALMOSTEQUALOREQUALTO] apid,U0224B,approximatelyidenticalto,[TRIPLETILDE] apos,U00027,=apostrophe,[APOSTROPHE] ApplyFunction,U02061,charactershowingfunctionapplicationinpresentationtagging,[FUNCTIONAPPLICATION] approx,U02248,aliasISOTECHap,[ALMOSTEQUALTO] approxeq,U0224A,aliasISOAMSRape,[ALMOSTEQUALOREQUALTO] Aring,U000C5,=capitalA,ring,[LATINCAPITALLETTERAWITHRINGABOVE] aring,U000E5,=smalla,ring,[LATINSMALLLETTERAWITHRINGABOVE] Ascr,U1D49C,/scrA,scriptletterA,[MATHEMATICALSCRIPTCAPITALA] ascr,U1D4B6,/scra,scriptlettera,[MATHEMATICALSCRIPTSMALLA] Assign,U02254,assignmentoperator,aliasISOAMSRcolone,[COLONEQUALS] ast,U0002A,/astB:=asterisk,[ASTERISK] asymp,U02248,/asympR:asymptoticallyequalto,[ALMOSTEQUALTO] asympeq,U0224D,OldISOAMSRasymp(forHTMLcompatibility),[EQUIVALENTTO] Atilde,U000C3,=capitalA,tilde,[LATINCAPITALLETTERAWITHTILDE] atilde,U000E3,=smalla,tilde,[LATINSMALLLETTERAWITHTILDE] Auml,U000C4,=capitalA,dieresisorumlautmark,[LATINCAPITALLETTERAWITHDIAERESIS] auml,U000E4,=smalla,dieresisorumlautmark,[LATINSMALLLETTERAWITHDIAERESIS] awconint,U02233,contourintegral,anti-clockwise,[ANTICLOCKWISECONTOURINTEGRAL] awint,U02A11,anticlock-wiseintegration,[ANTICLOCKWISEINTEGRATION] backcong,U0224C,aliasISOAMSRbcong,[ALLEQUALTO] backepsilon,U003F6,aliasISOAMSRbepsi,[GREEKREVERSEDLUNATEEPSILONSYMBOL] backprime,U02035,aliasISOAMSObprime,[REVERSEDPRIME] backsim,U0223D,aliasISOAMSRbsim,[REVERSEDTILDE] backsimeq,U022CD,aliasISOAMSRbsime,[REVERSEDTILDEEQUALS] Backslash,U02216,aliasISOAMSBsetmn,[SETMINUS] Barv,U02AE7,vert,dblbar(over),[SHORTDOWNTACKWITHOVERBAR] barvee,U022BD,bar,vee,[NOR] Barwed,U02306,/doublebarwedgeB:logand,dblbarabove,[PERSPECTIVE] barwed,U02305,/barwedgeB:logicaland,barabove,[PROJECTIVE] barwedge,U02305,aliasISOAMSBbarwed,[PROJECTIVE] bbrk,U023B5,bottomsquarebracket,[BOTTOMSQUAREBRACKET] bbrktbrk,U023B6,bottomabovetopsquarebracket,[BOTTOMSQUAREBRACKETOVERTOPSQUAREBRACKET] bcong,U0224C,/backcongR:reversecongruent,[ALLEQUALTO] Bcy,U00411,=capitalBE,Cyrillic,[CYRILLICCAPITALLETTERBE] bcy,U00431,=smallbe,Cyrillic,[CYRILLICSMALLLETTERBE] becaus,U02235,/becauseR:because,[BECAUSE] Because,U02235,aliasISOTECHbecaus,[BECAUSE] because,U02235,aliasISOTECHbecaus,[BECAUSE] bemptyv,U029B0,reversedcircle,slash,[REVERSEDEMPTYSET] bepsi,U003F6,/backepsilonR:suchthat,[GREEKREVERSEDLUNATEEPSILONSYMBOL] bernou,U0212C,Bernoullifunction(scriptcapitalB),[SCRIPTCAPITALB] Bernoullis,U0212C,aliasISOTECHbernou,[SCRIPTCAPITALB] beta,U003B2,/betasmallbeta,Greek,[GREEKSMALLLETTERBETA] beth,U02136,/beth-beth,Hebrew,[BETSYMBOL] between,U0226C,aliasISOAMSRtwixt,[BETWEEN] Bfr,U1D505,/frakB,uppercaseb,[MATHEMATICALFRAKTURCAPITALB] bfr,U1D51F,/frakb,lowercaseb,[MATHEMATICALFRAKTURSMALLB] bigcap,U022C2,aliasISOAMSBxcap,[N-ARYINTERSECTION] bigcirc,U025EF,aliasISOAMSBxcirc,[LARGECIRCLE] bigcup,U022C3,aliasISOAMSBxcup,[N-ARYUNION] bigodot,U02A00,aliasISOAMSBxodot,[N-ARYCIRCLEDDOTOPERATOR] bigoplus,U02A01,aliasISOAMSBxoplus,[N-ARYCIRCLEDPLUSOPERATOR] bigotimes,U02A02,aliasISOAMSBxotime,[N-ARYCIRCLEDTIMESOPERATOR] bigsqcup,U02A06,aliasISOAMSBxsqcup,[N-ARYSQUAREUNIONOPERATOR] bigstar,U02605,ISOPUBstarf,[BLACKSTAR] bigtriangledown,U025BD,aliasISOAMSBxdtri,[WHITEDOWN-POINTINGTRIANGLE] bigtriangleup,U025B3,aliasISOAMSBxutri,[WHITEUP-POINTINGTRIANGLE] biguplus,U02A04,aliasISOAMSBxuplus,[N-ARYUNIONOPERATORWITHPLUS] bigvee,U022C1,aliasISOAMSBxvee,[N-ARYLOGICALOR] bigwedge,U022C0,aliasISOAMSBxwedge,[N-ARYLOGICALAND] bkarow,U0290D,aliasISOAMSArbarr,[RIGHTWARDSDOUBLEDASHARROW] blacklozenge,U029EB,aliasISOPUBlozf,[BLACKLOZENGE] blacksquare,U025AA,ISOTECHsquarf,[BLACKSMALLSQUARE] blacktriangle,U025B4,aliasISOPUButrif,[BLACKUP-POINTINGSMALLTRIANGLE] blacktriangledown,U025BE,aliasISOPUBdtrif,[BLACKDOWN-POINTINGSMALLTRIANGLE] blacktriangleleft,U025C2,aliasISOPUBltrif,[BLACKLEFT-POINTINGSMALLTRIANGLE] blacktriangleright,U025B8,aliasISOPUBrtrif,[BLACKRIGHT-POINTINGSMALLTRIANGLE] blank,U02423,=significantblanksymbol,[OPENBOX] blk12,U02592,=50%shadedblock,[MEDIUMSHADE] blk14,U02591,=25%shadedblock,[LIGHTSHADE] blk34,U02593,=75%shadedblock,[DARKSHADE] block,U02588,=fullblock,[FULLBLOCK] bne,U0003D-020E5,reversenotequal,[EQUALSSIGNwithreverseslash] bnequiv,U02261-020E5,reversenotequivalent,[IDENTICALTOwithreverseslash] bNot,U02AED,reversenotwithtwohorizontalstrokes,[REVERSEDDOUBLESTROKENOTSIGN] bnot,U02310,reversenot,[REVERSEDNOTSIGN] Bopf,U1D539,/BbbB,openfaceB,[MATHEMATICALDOUBLE-STRUCKCAPITALB] bopf,U1D553,,[MATHEMATICALDOUBLE-STRUCKSMALLB] bot,U022A5,aliasISOTECHbottom,[UPTACK] bottom,U022A5,/botbottom,[UPTACK] bowtie,U022C8,/bowtieR:,[BOWTIE] boxbox,U029C9,twojoinedsquares,[TWOJOINEDSQUARES] boxDL,U02557,lowerleftquadrant,[BOXDRAWINGSDOUBLEDOWNANDLEFT] boxDl,U02556,lowerleftquadrant,[BOXDRAWINGSDOWNDOUBLEANDLEFTSINGLE] boxdL,U02555,lowerleftquadrant,[BOXDRAWINGSDOWNSINGLEANDLEFTDOUBLE] boxdl,U02510,lowerleftquadrant,[BOXDRAWINGSLIGHTDOWNANDLEFT] boxDR,U02554,lowerrightquadrant,[BOXDRAWINGSDOUBLEDOWNANDRIGHT] boxDr,U02553,lowerrightquadrant,[BOXDRAWINGSDOWNDOUBLEANDRIGHTSINGLE] boxdR,U02552,lowerrightquadrant,[BOXDRAWINGSDOWNSINGLEANDRIGHTDOUBLE] boxdr,U0250C,lowerrightquadrant,[BOXDRAWINGSLIGHTDOWNANDRIGHT] boxH,U02550,horizontalline,[BOXDRAWINGSDOUBLEHORIZONTAL] boxh,U02500,horizontalline,[BOXDRAWINGSLIGHTHORIZONTAL] boxHD,U02566,lowerleftandrightquadrants,[BOXDRAWINGSDOUBLEDOWNANDHORIZONTAL] boxHd,U02564,lowerleftandrightquadrants,[BOXDRAWINGSDOWNSINGLEANDHORIZONTALDOUBLE] boxhD,U02565,lowerleftandrightquadrants,[BOXDRAWINGSDOWNDOUBLEANDHORIZONTALSINGLE] boxhd,U0252C,lowerleftandrightquadrants,[BOXDRAWINGSLIGHTDOWNANDHORIZONTAL] boxHU,U02569,upperleftandrightquadrants,[BOXDRAWINGSDOUBLEUPANDHORIZONTAL] boxHu,U02567,upperleftandrightquadrants,[BOXDRAWINGSUPSINGLEANDHORIZONTALDOUBLE] boxhU,U02568,upperleftandrightquadrants,[BOXDRAWINGSUPDOUBLEANDHORIZONTALSINGLE] boxhu,U02534,upperleftandrightquadrants,[BOXDRAWINGSLIGHTUPANDHORIZONTAL] boxminus,U0229F,aliasISOAMSBminusb,[SQUAREDMINUS] boxplus,U0229E,aliasISOAMSBplusb,[SQUAREDPLUS] boxtimes,U022A0,aliasISOAMSBtimesb,[SQUAREDTIMES] boxUL,U0255D,upperleftquadrant,[BOXDRAWINGSDOUBLEUPANDLEFT] boxUl,U0255C,upperleftquadrant,[BOXDRAWINGSUPDOUBLEANDLEFTSINGLE] boxuL,U0255B,upperleftquadrant,[BOXDRAWINGSUPSINGLEANDLEFTDOUBLE] boxul,U02518,upperleftquadrant,[BOXDRAWINGSLIGHTUPANDLEFT] boxUR,U0255A,upperrightquadrant,[BOXDRAWINGSDOUBLEUPANDRIGHT] boxUr,U02559,upperrightquadrant,[BOXDRAWINGSUPDOUBLEANDRIGHTSINGLE] boxuR,U02558,upperrightquadrant,[BOXDRAWINGSUPSINGLEANDRIGHTDOUBLE] boxur,U02514,upperrightquadrant,[BOXDRAWINGSLIGHTUPANDRIGHT] boxV,U02551,verticalline,[BOXDRAWINGSDOUBLEVERTICAL] boxv,U02502,verticalline,[BOXDRAWINGSLIGHTVERTICAL] boxVH,U0256C,allfourquadrants,[BOXDRAWINGSDOUBLEVERTICALANDHORIZONTAL] boxVh,U0256B,allfourquadrants,[BOXDRAWINGSVERTICALDOUBLEANDHORIZONTALSINGLE] boxvH,U0256A,allfourquadrants,[BOXDRAWINGSVERTICALSINGLEANDHORIZONTALDOUBLE] boxvh,U0253C,allfourquadrants,[BOXDRAWINGSLIGHTVERTICALANDHORIZONTAL] boxVL,U02563,upperandlowerleftquadrants,[BOXDRAWINGSDOUBLEVERTICALANDLEFT] boxVl,U02562,upperandlowerleftquadrants,[BOXDRAWINGSVERTICALDOUBLEANDLEFTSINGLE] boxvL,U02561,upperandlowerleftquadrants,[BOXDRAWINGSVERTICALSINGLEANDLEFTDOUBLE] boxvl,U02524,upperandlowerleftquadrants,[BOXDRAWINGSLIGHTVERTICALANDLEFT] boxVR,U02560,upperandlowerrightquadrants,[BOXDRAWINGSDOUBLEVERTICALANDRIGHT] boxVr,U0255F,upperandlowerrightquadrants,[BOXDRAWINGSVERTICALDOUBLEANDRIGHTSINGLE] boxvR,U0255E,upperandlowerrightquadrants,[BOXDRAWINGSVERTICALSINGLEANDRIGHTDOUBLE] boxvr,U0251C,upperandlowerrightquadrants,[BOXDRAWINGSLIGHTVERTICALANDRIGHT] bprime,U02035,/backprime-reverseprime,[REVERSEDPRIME] Breve,U002D8,aliasISODIAbreve,[BREVE] breve,U002D8,=breve,[BREVE] brvbar,U000A6,=broken(vertical)bar,[BROKENBAR] Bscr,U0212C,/scrB,scriptletterB,[SCRIPTCAPITALB] bscr,U1D4B7,/scrb,scriptletterb,[MATHEMATICALSCRIPTSMALLB] bsemi,U0204F,reversesemi-colon,[REVERSEDSEMICOLON] bsim,U0223D,/backsimR:reversesimilar,[REVERSEDTILDE] bsime,U022CD,/backsimeqR:reversesimilar,eq,[REVERSEDTILDEEQUALS] bsol,U0005C,/backslash=reversesolidus,[REVERSESOLIDUS] bsolb,U029C5,reversesolidusinsquare,[SQUAREDFALLINGDIAGONALSLASH] bsolhsub,U0005C-02282,reversesolidus,subset,[REVERSESOLIDUS,SUBSETOF] bull,U02022,/bulletB:=roundbullet,filled,[BULLET] bullet,U02022,aliasISOPUBbull,[BULLET] bump,U0224E,/BumpeqR:bumpyequals,[GEOMETRICALLYEQUIVALENTTO] bumpE,U02AAE,bump,equals,[EQUALSSIGNWITHBUMPYABOVE] bumpe,U0224F,/bumpeqR:bumpyequals,equals,[DIFFERENCEBETWEEN] Bumpeq,U0224E,aliasISOAMSRbump,[GEOMETRICALLYEQUIVALENTTO] bumpeq,U0224F,aliasISOAMSRbumpe,[DIFFERENCEBETWEEN] Cacute,U00106,=capitalC,acuteaccent,[LATINCAPITALLETTERCWITHACUTE] cacute,U00107,=smallc,acuteaccent,[LATINSMALLLETTERCWITHACUTE] Cap,U022D2,/Cap/doublecapB:dblintersection,[DOUBLEINTERSECTION] cap,U02229,/capB:intersection,[INTERSECTION] capand,U02A44,intersection,and,[INTERSECTIONWITHLOGICALAND] capbrcup,U02A49,intersection,bar,union,[INTERSECTIONABOVEBARABOVEUNION] capcap,U02A4B,intersection,intersection,joined,[INTERSECTIONBESIDEANDJOINEDWITHINTERSECTION] capcup,U02A47,intersectionaboveunion,[INTERSECTIONABOVEUNION] capdot,U02A40,intersection,withdot,[INTERSECTIONWITHDOT] CapitalDifferentialD,U02145,Dforuseindifferentials,e.g.,withinintegrals,[DOUBLE-STRUCKITALICCAPITALD] caps,U02229-0FE00,intersection,serifs,[INTERSECTIONwithserifs] caret,U02041,=caret(insertionmark),[CARETINSERTIONPOINT] caron,U002C7,=caron,[CARON] Cayleys,U0212D,thenon-associativeringofoctonionsorCayleynumbers,[BLACK-LETTERCAPITALC] ccaps,U02A4D,closedintersection,serifs,[CLOSEDINTERSECTIONWITHSERIFS] Ccaron,U0010C,=capitalC,caron,[LATINCAPITALLETTERCWITHCARON] ccaron,U0010D,=smallc,caron,[LATINSMALLLETTERCWITHCARON] Ccedil,U000C7,=capitalC,cedilla,[LATINCAPITALLETTERCWITHCEDILLA] ccedil,U000E7,=smallc,cedilla,[LATINSMALLLETTERCWITHCEDILLA] Ccirc,U00108,=capitalC,circumflexaccent,[LATINCAPITALLETTERCWITHCIRCUMFLEX] ccirc,U00109,=smallc,circumflexaccent,[LATINSMALLLETTERCWITHCIRCUMFLEX] Cconint,U02230,triplecontourintegraloperator,[VOLUMEINTEGRAL] ccups,U02A4C,closedunion,serifs,[CLOSEDUNIONWITHSERIFS] ccupssm,U02A50,closedunion,serifs,smashproduct,[CLOSEDUNIONWITHSERIFSANDSMASHPRODUCT] Cdot,U0010A,=capitalC,dotabove,[LATINCAPITALLETTERCWITHDOTABOVE] cdot,U0010B,=smallc,dotabove,[LATINSMALLLETTERCWITHDOTABOVE] cedil,U000B8,=cedilla,[CEDILLA] Cedilla,U000B8,aliasISODIAcedil,[CEDILLA] cemptyv,U029B2,circle,slash,smallcircleabove,[EMPTYSETWITHSMALLCIRCLEABOVE] cent,U000A2,=centsign,[CENTSIGN] CenterDot,U000B7,aliasISONUMmiddot,[MIDDLEDOT] centerdot,U000B7,aliasISONUMmiddot,[MIDDLEDOT] Cfr,U0212D,/frakC,uppercasec,[BLACK-LETTERCAPITALC] cfr,U1D520,/frakc,lowercasec,[MATHEMATICALFRAKTURSMALLC] CHcy,U00427,=capitalCHE,Cyrillic,[CYRILLICCAPITALLETTERCHE] chcy,U00447,=smallche,Cyrillic,[CYRILLICSMALLLETTERCHE] check,U02713,/checkmark=tick,checkmark,[CHECKMARK] checkmark,U02713,aliasISOPUBcheck,[CHECKMARK] chi,U003C7,/chismallchi,Greek,[GREEKSMALLLETTERCHI] cir,U025CB,/circB:=circle,open,[WHITECIRCLE] circ,U002C6,circumflexaccent,[MODIFIERLETTERCIRCUMFLEXACCENT] circeq,U02257,aliasISOAMSRcire,[RINGEQUALTO] circlearrowleft,U021BA,aliasISOAMSAolarr,[ANTICLOCKWISEOPENCIRCLEARROW] circlearrowright,U021BB,aliasISOAMSAorarr,[CLOCKWISEOPENCIRCLEARROW] circledast,U0229B,aliasISOAMSBoast,[CIRCLEDASTERISKOPERATOR] circledcirc,U0229A,aliasISOAMSBocir,[CIRCLEDRINGOPERATOR] circleddash,U0229D,aliasISOAMSBodash,[CIRCLEDDASH] CircleDot,U02299,aliasISOAMSBodot,[CIRCLEDDOTOPERATOR] circledR,U000AE,aliasISONUMreg,[REGISTEREDSIGN] circledS,U024C8,aliasISOAMSOoS,[CIRCLEDLATINCAPITALLETTERS] CircleMinus,U02296,aliasISOAMSBominus,[CIRCLEDMINUS] CirclePlus,U02295,aliasISOAMSBoplus,[CIRCLEDPLUS] CircleTimes,U02297,aliasISOAMSBotimes,[CIRCLEDTIMES] cirE,U029C3,circle,twohorizontalstrokedtotheright,[CIRCLEWITHTWOHORIZONTALSTROKESTOTHERIGHT] cire,U02257,/circeqR:circle,equals,[RINGEQUALTO] cirfnint,U02A10,circulationfunction,[CIRCULATIONFUNCTION] cirmid,U02AEF,circle,midbelow,[VERTICALLINEWITHCIRCLEABOVE] cirscir,U029C2,circle,smallcircletotheright,[CIRCLEWITHSMALLCIRCLETOTHERIGHT] ClockwiseContourIntegral,U02232,aliasISOTECHcwconint,[CLOCKWISECONTOURINTEGRAL] CloseCurlyDoubleQuote,U0201D,aliasISONUMrdquo,[RIGHTDOUBLEQUOTATIONMARK] CloseCurlyQuote,U02019,aliasISONUMrsquo,[RIGHTSINGLEQUOTATIONMARK] clubs,U02663,/clubsuit=clubsuitsymbol,[BLACKCLUBSUIT] clubsuit,U02663,ISOPUBclubs,[BLACKCLUBSUIT] Colon,U02237,/Colon,twocolons,[PROPORTION] colon,U0003A,/colonP:,[COLON] Colone,U02A74,doublecolon,equals,[DOUBLECOLONEQUAL] colone,U02254,/coloneqR:colon,equals,[COLONEQUALS] coloneq,U02254,aliasISOAMSRcolone,[COLONEQUALS] comma,U0002C,P:=comma,[COMMA] commat,U00040,=commercialat,[COMMERCIALAT] comp,U02201,/complement-complementsign,[COMPLEMENT] compfn,U02218,/circB:compositefunction(smallcircle),[RINGOPERATOR] complement,U02201,aliasISOAMSOcomp,[COMPLEMENT] complexes,U02102,thefieldofcomplexnumbers,[DOUBLE-STRUCKCAPITALC] cong,U02245,/congR:congruentwith,[APPROXIMATELYEQUALTO] congdot,U02A6D,congruent,dot,[CONGRUENTWITHDOTABOVE] Congruent,U02261,aliasISOTECHequiv,[IDENTICALTO] Conint,U0222F,doublecontourintegraloperator,[SURFACEINTEGRAL] conint,U0222E,/ointL:contourintegraloperator,[CONTOURINTEGRAL] ContourIntegral,U0222E,aliasISOTECHconint,[CONTOURINTEGRAL] Copf,U02102,/BbbC,openfaceC,[DOUBLE-STRUCKCAPITALC] copf,U1D554,,[MATHEMATICALDOUBLE-STRUCKSMALLC] coprod,U02210,/coprodL:coproductoperator,[N-ARYCOPRODUCT] Coproduct,U02210,aliasISOAMSBcoprod,[N-ARYCOPRODUCT] copy,U000A9,=copyrightsign,[COPYRIGHTSIGN] copysr,U02117,=soundrecordingcopyrightsign,[SOUNDRECORDINGCOPYRIGHT] CounterClockwiseContourIntegral,U02233,aliasISOTECHawconint,[ANTICLOCKWISECONTOURINTEGRAL] Cross,U02A2F,crossorvectorproduct,[VECTORORCROSSPRODUCT] cross,U02717,=ballotcross,[BALLOTX] Cscr,U1D49E,/scrC,scriptletterC,[MATHEMATICALSCRIPTCAPITALC] cscr,U1D4B8,/scrc,scriptletterc,[MATHEMATICALSCRIPTSMALLC] csub,U02ACF,subset,closed,[CLOSEDSUBSET] csube,U02AD1,subset,closed,equals,[CLOSEDSUBSETOREQUALTO] csup,U02AD0,superset,closed,[CLOSEDSUPERSET] csupe,U02AD2,superset,closed,equals,[CLOSEDSUPERSETOREQUALTO] ctdot,U022EF,/cdots,threedots,centered,[MIDLINEHORIZONTALELLIPSIS] cudarrl,U02938,left,curved,downarrow,[RIGHT-SIDEARCCLOCKWISEARROW] cudarrr,U02935,right,curved,downarrow,[ARROWPOINTINGRIGHTWARDSTHENCURVINGDOWNWARDS] cuepr,U022DE,/curlyeqprecR:curlyeq,precedes,[EQUALTOORPRECEDES] cuesc,U022DF,/curlyeqsuccR:curlyeq,succeeds,[EQUALTOORSUCCEEDS] cularr,U021B6,/curvearrowleftA:leftcurvedarrow,[ANTICLOCKWISETOPSEMICIRCLEARROW] cularrp,U0293D,curvedleftarrowwithplus,[TOPARCANTICLOCKWISEARROWWITHPLUS] Cup,U022D3,/Cup/doublecupB:dblunion,[DOUBLEUNION] cup,U0222A,/cupB:unionorlogicalsum,[UNION] cupbrcap,U02A48,union,bar,intersection,[UNIONABOVEBARABOVEINTERSECTION] CupCap,U0224D,aliasasympeq,[EQUIVALENTTO] cupcap,U02A46,unionaboveintersection,[UNIONABOVEINTERSECTION] cupcup,U02A4A,union,union,joined,[UNIONBESIDEANDJOINEDWITHUNION] cupdot,U0228D,union,withdot,[MULTISETMULTIPLICATION] cupor,U02A45,union,or,[UNIONWITHLOGICALOR] cups,U0222A-0FE00,union,serifs,[UNIONwithserifs] curarr,U021B7,/curvearrowrightA:rtcurvedarrow,[CLOCKWISETOPSEMICIRCLEARROW] curarrm,U0293C,curvedrightarrowwithminus,[TOPARCCLOCKWISEARROWWITHMINUS] curlyeqprec,U022DE,aliasISOAMSRcuepr,[EQUALTOORPRECEDES] curlyeqsucc,U022DF,aliasISOAMSRcuesc,[EQUALTOORSUCCEEDS] curlyvee,U022CE,aliasISOAMSBcuvee,[CURLYLOGICALOR] curlywedge,U022CF,aliasISOAMSBcuwed,[CURLYLOGICALAND] curren,U000A4,=generalcurrencysign,[CURRENCYSIGN] curvearrowleft,U021B6,aliasISOAMSAcularr,[ANTICLOCKWISETOPSEMICIRCLEARROW] curvearrowright,U021B7,aliasISOAMSAcurarr,[CLOCKWISETOPSEMICIRCLEARROW] cuvee,U022CE,/curlyveeB:curlylogicalor,[CURLYLOGICALOR] cuwed,U022CF,/curlywedgeB:curlylogicaland,[CURLYLOGICALAND] cwconint,U02232,contourintegral,clockwise,[CLOCKWISECONTOURINTEGRAL] cwint,U02231,clockwiseintegral,[CLOCKWISEINTEGRAL] cylcty,U0232D,cylindricity,[CYLINDRICITY] Dagger,U02021,/ddaggerB:=doubledagger,[DOUBLEDAGGER] Dagger,U02021,/ddaggerB:doubledaggerrelation,[DOUBLEDAGGER] dagger,U02020,/daggerB:=dagger,[DAGGER] dagger,U02020,/daggerB:daggerrelation,[DAGGER] daleth,U02138,/daleth-daleth,Hebrew,[DALETSYMBOL] Darr,U021A1,downtwo-headedarrow,[DOWNWARDSTWOHEADEDARROW] dArr,U021D3,/DownarrowA:downdblarrow,[DOWNWARDSDOUBLEARROW] darr,U02193,/downarrowA:=downwardarrow,[DOWNWARDSARROW] dash,U02010,=hyphen(truegraphic),[HYPHEN] Dashv,U02AE4,dbldash,vertical,[VERTICALBARDOUBLELEFTTURNSTILE] dashv,U022A3,/dashvR:dash,vertical,[LEFTTACK] dbkarow,U0290F,aliasISOAMSArBarr,[RIGHTWARDSTRIPLEDASHARROW] dblac,U002DD,=doubleacuteaccent,[DOUBLEACUTEACCENT] Dcaron,U0010E,=capitalD,caron,[LATINCAPITALLETTERDWITHCARON] dcaron,U0010F,=smalld,caron,[LATINSMALLLETTERDWITHCARON] Dcy,U00414,=capitalDE,Cyrillic,[CYRILLICCAPITALLETTERDE] dcy,U00434,=smallde,Cyrillic,[CYRILLICSMALLLETTERDE] DD,U02145,Dforuseindifferentials,e.g.,withinintegrals,[DOUBLE-STRUCKITALICCAPITALD] dd,U02146,dforuseindifferentials,e.g.,withinintegrals,[DOUBLE-STRUCKITALICSMALLD] ddagger,U02021,aliasISOPUBDagger,[DOUBLEDAGGER] ddarr,U021CA,/downdownarrowsA:twodownarrows,[DOWNWARDSPAIREDARROWS] DDotrahd,U02911,rightarrowwithdottedstem,[RIGHTWARDSARROWWITHDOTTEDSTEM] ddotseq,U02A77,aliasISOAMSReDDot,[EQUALSSIGNWITHTWODOTSABOVEANDTWODOTSBELOW] deg,U000B0,=degreesign,[DEGREESIGN] Del,U02207,aliasISOTECHnabla,[NABLA] Delta,U00394,/DeltacapitalDelta,Greek,[GREEKCAPITALLETTERDELTA] delta,U003B4,/deltasmalldelta,Greek,[GREEKSMALLLETTERDELTA] demptyv,U029B1,circle,slash,barabove,[EMPTYSETWITHOVERBAR] dfisht,U0297F,downfishtail,[DOWNFISHTAIL] Dfr,U1D507,/frakD,uppercased,[MATHEMATICALFRAKTURCAPITALD] dfr,U1D521,/frakd,lowercased,[MATHEMATICALFRAKTURSMALLD] dHar,U02965,downharpoon-left,downharpoon-right,[DOWNWARDSHARPOONWITHBARBLEFTBESIDEDOWNWARDSHARPOONWITHBARBRIGHT] dharl,U021C3,/downharpoonleftA:dnharpoon-left,[DOWNWARDSHARPOONWITHBARBLEFTWARDS] dharr,U021C2,/downharpoonrightA:downharpoon-rt,[DOWNWARDSHARPOONWITHBARBRIGHTWARDS] DiacriticalAcute,U000B4,aliasISODIAacute,[ACUTEACCENT] DiacriticalDot,U002D9,aliasISODIAdot,[DOTABOVE] DiacriticalDoubleAcute,U002DD,aliasISODIAdblac,[DOUBLEACUTEACCENT] DiacriticalGrave,U00060,aliasISODIAgrave,[GRAVEACCENT] DiacriticalTilde,U002DC,aliasISODIAtilde,[SMALLTILDE] diam,U022C4,/diamondB:opendiamond,[DIAMONDOPERATOR] Diamond,U022C4,aliasISOAMSBdiam,[DIAMONDOPERATOR] diamond,U022C4,aliasISOAMSBdiam,[DIAMONDOPERATOR] diamondsuit,U02666,ISOPUBdiams,[BLACKDIAMONDSUIT] diams,U02666,/diamondsuit=diamondsuitsymbol,[BLACKDIAMONDSUIT] die,U000A8,=dieresis,[DIAERESIS] DifferentialD,U02146,dforuseindifferentials,e.g.,withinintegrals,[DOUBLE-STRUCKITALICSMALLD] digamma,U003DD,aliasISOGRK3gammad,[GREEKSMALLLETTERDIGAMMA] disin,U022F2,setmembership,longhorizontalstroke,[ELEMENTOFWITHLONGHORIZONTALSTROKE] div,U000F7,aliasISONUMdivide,[DIVISIONSIGN] divide,U000F7,/divB:=dividesign,[DIVISIONSIGN] divideontimes,U022C7,aliasISOAMSBdivonx,[DIVISIONTIMES] divonx,U022C7,/divideontimesB:divisionontimes,[DIVISIONTIMES] DJcy,U00402,=capitalDJE,Serbian,[CYRILLICCAPITALLETTERDJE] djcy,U00452,=smalldje,Serbian,[CYRILLICSMALLLETTERDJE] dlcorn,U0231E,/llcornerO:lowerleftcorner,[BOTTOMLEFTCORNER] dlcrop,U0230D,downwardleftcropmark,[BOTTOMLEFTCROP] dollar,U00024,=dollarsign,[DOLLARSIGN] Dopf,U1D53B,/BbbD,openfaceD,[MATHEMATICALDOUBLE-STRUCKCAPITALD] dopf,U1D555,,[MATHEMATICALDOUBLE-STRUCKSMALLD] Dot,U000A8,dieresisorumlautmark,[DIAERESIS] dot,U002D9,=dotabove,[DOTABOVE] DotDot,U020DC,fourdotsabove,[COMBININGFOURDOTSABOVE] doteq,U02250,aliasISOAMSResdot,[APPROACHESTHELIMIT] doteqdot,U02251,aliasISOAMSReDot,[GEOMETRICALLYEQUALTO] DotEqual,U02250,aliasISOAMSResdot,[APPROACHESTHELIMIT] dotminus,U02238,aliasISOAMSBminusd,[DOTMINUS] dotplus,U02214,aliasISOAMSBplusdo,[DOTPLUS] dotsquare,U022A1,aliasISOAMSBsdotb,[SQUAREDDOTOPERATOR] doublebarwedge,U02306,aliasISOAMSBBarwed,[PERSPECTIVE] DoubleContourIntegral,U0222F,aliasISOTECHConint,[SURFACEINTEGRAL] DoubleDot,U000A8,aliasISODIAdie,[DIAERESIS] DoubleDownArrow,U021D3,aliasISOAMSAdArr,[DOWNWARDSDOUBLEARROW] DoubleLeftArrow,U021D0,aliasISOTECHlArr,[LEFTWARDSDOUBLEARROW] DoubleLeftRightArrow,U021D4,aliasISOAMSAhArr,[LEFTRIGHTDOUBLEARROW] DoubleLeftTee,U02AE4,aliasfor&Dashv;,[VERTICALBARDOUBLELEFTTURNSTILE] DoubleLongLeftArrow,U027F8,aliasISOAMSAxlArr,[LONGLEFTWARDSDOUBLEARROW] DoubleLongLeftRightArrow,U027FA,aliasISOAMSAxhArr,[LONGLEFTRIGHTDOUBLEARROW] DoubleLongRightArrow,U027F9,aliasISOAMSAxrArr,[LONGRIGHTWARDSDOUBLEARROW] DoubleRightArrow,U021D2,aliasISOTECHrArr,[RIGHTWARDSDOUBLEARROW] DoubleRightTee,U022A8,aliasISOAMSRvDash,[TRUE] DoubleUpArrow,U021D1,aliasISOAMSAuArr,[UPWARDSDOUBLEARROW] DoubleUpDownArrow,U021D5,aliasISOAMSAvArr,[UPDOWNDOUBLEARROW] DoubleVerticalBar,U02225,aliasISOTECHpar,[PARALLELTO] DownArrow,U02193,aliasISONUMdarr,[DOWNWARDSARROW] Downarrow,U021D3,aliasISOAMSAdArr,[DOWNWARDSDOUBLEARROW] downarrow,U02193,aliasISONUMdarr,[DOWNWARDSARROW] DownArrowBar,U02913,downarrowtobar,[DOWNWARDSARROWTOBAR] DownArrowUpArrow,U021F5,aliasISOAMSAduarr,[DOWNWARDSARROWLEFTWARDSOFUPWARDSARROW] DownBreve,U00311,breve,inverted(non-spacing),[COMBININGINVERTEDBREVE] downdownarrows,U021CA,aliasISOAMSAddarr,[DOWNWARDSPAIREDARROWS] downharpoonleft,U021C3,aliasISOAMSAdharl,[DOWNWARDSHARPOONWITHBARBLEFTWARDS] downharpoonright,U021C2,aliasISOAMSAdharr,[DOWNWARDSHARPOONWITHBARBRIGHTWARDS] DownLeftRightVector,U02950,left-down-right-downharpoon,[LEFTBARBDOWNRIGHTBARBDOWNHARPOON] DownLeftTeeVector,U0295E,left-downharpoonfrombar,[LEFTWARDSHARPOONWITHBARBDOWNFROMBAR] DownLeftVector,U021BD,aliasISOAMSAlhard,[LEFTWARDSHARPOONWITHBARBDOWNWARDS] DownLeftVectorBar,U02956,left-downharpoontobar,[LEFTWARDSHARPOONWITHBARBDOWNTOBAR] DownRightTeeVector,U0295F,right-downharpoonfrombar,[RIGHTWARDSHARPOONWITHBARBDOWNFROMBAR] DownRightVector,U021C1,aliasISOAMSArhard,[RIGHTWARDSHARPOONWITHBARBDOWNWARDS] DownRightVectorBar,U02957,right-downharpoontobar,[RIGHTWARDSHARPOONWITHBARBDOWNTOBAR] DownTee,U022A4,aliasISOTECHtop,[DOWNTACK] DownTeeArrow,U021A7,aliasformapstodown,[DOWNWARDSARROWFROMBAR] drbkarow,U02910,aliasISOAMSARBarr,[RIGHTWARDSTWO-HEADEDTRIPLEDASHARROW] drcorn,U0231F,/lrcornerC:lowerrightcorner,[BOTTOMRIGHTCORNER] drcrop,U0230C,downwardrightcropmark,[BOTTOMRIGHTCROP] Dscr,U1D49F,/scrD,scriptletterD,[MATHEMATICALSCRIPTCAPITALD] dscr,U1D4B9,/scrd,scriptletterd,[MATHEMATICALSCRIPTSMALLD] DScy,U00405,=capitalDSE,Macedonian,[CYRILLICCAPITALLETTERDZE] dscy,U00455,=smalldse,Macedonian,[CYRILLICSMALLLETTERDZE] dsol,U029F6,solidus,barabove,[SOLIDUSWITHOVERBAR] Dstrok,U00110,=capitalD,stroke,[LATINCAPITALLETTERDWITHSTROKE] dstrok,U00111,=smalld,stroke,[LATINSMALLLETTERDWITHSTROKE] dtdot,U022F1,/ddots,threedots,descending,[DOWNRIGHTDIAGONALELLIPSIS] dtri,U025BF,/triangledown=downtriangle,open,[WHITEDOWN-POINTINGSMALLTRIANGLE] dtrif,U025BE,/blacktriangledown=dntri,filled,[BLACKDOWN-POINTINGSMALLTRIANGLE] duarr,U021F5,downarrow,uparrow,[DOWNWARDSARROWLEFTWARDSOFUPWARDSARROW] duhar,U0296F,downharp,upharp,[DOWNWARDSHARPOONWITHBARBLEFTBESIDEUPWARDSHARPOONWITHBARBRIGHT] dwangle,U029A6,largedownwardpointingangle,[OBLIQUEANGLEOPENINGUP] DZcy,U0040F,=capitaldze,Serbian,[CYRILLICCAPITALLETTERDZHE] dzcy,U0045F,=smalldze,Serbian,[CYRILLICSMALLLETTERDZHE] dzigrarr,U027FF,rightlongzig-zagarrow,[LONGRIGHTWARDSSQUIGGLEARROW] Eacute,U000C9,=capitalE,acuteaccent,[LATINCAPITALLETTEREWITHACUTE] eacute,U000E9,=smalle,acuteaccent,[LATINSMALLLETTEREWITHACUTE] easter,U02A6E,equal,asteriskabove,[EQUALSWITHASTERISK] Ecaron,U0011A,=capitalE,caron,[LATINCAPITALLETTEREWITHCARON] ecaron,U0011B,=smalle,caron,[LATINSMALLLETTEREWITHCARON] ecir,U02256,/eqcircR:circleonequalssign,[RINGINEQUALTO] Ecirc,U000CA,=capitalE,circumflexaccent,[LATINCAPITALLETTEREWITHCIRCUMFLEX] ecirc,U000EA,=smalle,circumflexaccent,[LATINSMALLLETTEREWITHCIRCUMFLEX] ecolon,U02255,/eqcolonR:equals,colon,[EQUALSCOLON] Ecy,U0042D,=capitalE,Cyrillic,[CYRILLICCAPITALLETTERE] ecy,U0044D,=smalle,Cyrillic,[CYRILLICSMALLLETTERE] eDDot,U02A77,/ddotseqR:equalwithfourdots,[EQUALSSIGNWITHTWODOTSABOVEANDTWODOTSBELOW] Edot,U00116,=capitalE,dotabove,[LATINCAPITALLETTEREWITHDOTABOVE] eDot,U02251,/doteqdot/DoteqR:eq,evendots,[GEOMETRICALLYEQUALTO] edot,U00117,=smalle,dotabove,[LATINSMALLLETTEREWITHDOTABOVE] ee,U02147,eusefortheexponentialbaseofthenaturallogarithms,[DOUBLE-STRUCKITALICSMALLE] efDot,U02252,/fallingdotseqR:eq,fallingdots,[APPROXIMATELYEQUALTOORTHEIMAGEOF] Efr,U1D508,/frakE,uppercasee,[MATHEMATICALFRAKTURCAPITALE] efr,U1D522,/frake,lowercasee,[MATHEMATICALFRAKTURSMALLE] eg,U02A9A,equal-or-greater,[DOUBLE-LINEEQUALTOORGREATER-THAN] Egrave,U000C8,=capitalE,graveaccent,[LATINCAPITALLETTEREWITHGRAVE] egrave,U000E8,=smalle,graveaccent,[LATINSMALLLETTEREWITHGRAVE] egs,U02A96,/eqslantgtrR:equal-or-gtr,slanted,[SLANTEDEQUALTOORGREATER-THAN] egsdot,U02A98,equal-or-greater,slanted,dotinside,[SLANTEDEQUALTOORGREATER-THANWITHDOTINSIDE] el,U02A99,equal-or-less,[DOUBLE-LINEEQUALTOORLESS-THAN] Element,U02208,aliasISOTECHisinv,[ELEMENTOF] elinters,U0FFFD,electricalintersection,[REPLACEMENTCHARACTER] ell,U02113,/ell-cursivesmalll,[SCRIPTSMALLL] els,U02A95,/eqslantlessR:eq-or-less,slanted,[SLANTEDEQUALTOORLESS-THAN] elsdot,U02A97,equal-or-less,slanted,dotinside,[SLANTEDEQUALTOORLESS-THANWITHDOTINSIDE] Emacr,U00112,=capitalE,macron,[LATINCAPITALLETTEREWITHMACRON] emacr,U00113,=smalle,macron,[LATINSMALLLETTEREWITHMACRON] empty,U02205,/emptyset-zero,slash,[EMPTYSET] emptyset,U02205,aliasISOAMSOempty,[EMPTYSET] EmptySmallSquare,U025FB,emptysmallsquare,[WHITEMEDIUMSQUARE] emptyv,U02205,/varnothing-circle,slash,[EMPTYSET] EmptyVerySmallSquare,U025AB,emptysmallsquare,[WHITESMALLSQUARE] emsp,U02003,=emspace,[EMSPACE] emsp13,U02004,=1/3-emspace,[THREE-PER-EMSPACE] emsp14,U02005,=1/4-emspace,[FOUR-PER-EMSPACE] ENG,U0014A,=capitalENG,Lapp,[LATINCAPITALLETTERENG] eng,U0014B,=smalleng,Lapp,[LATINSMALLLETTERENG] ensp,U02002,=enspace(1/2-em),[ENSPACE] Eogon,U00118,=capitalE,ogonek,[LATINCAPITALLETTEREWITHOGONEK] eogon,U00119,=smalle,ogonek,[LATINSMALLLETTEREWITHOGONEK] Eopf,U1D53C,/BbbE,openfaceE,[MATHEMATICALDOUBLE-STRUCKCAPITALE] eopf,U1D556,,[MATHEMATICALDOUBLE-STRUCKSMALLE] epar,U022D5,parallel,equal;equalorparallel,[EQUALANDPARALLELTO] eparsl,U029E3,parallel,slanted,equal;homotheticallycongruentto,[EQUALSSIGNANDSLANTEDPARALLEL] eplus,U02A71,equal,plus,[EQUALSSIGNABOVEPLUSSIGN] epsi,U003F5,/straightepsilon,smallepsilon,Greek,[GREEKLUNATEEPSILONSYMBOL] epsiv,U003B5,/varepsilon,[GREEKSMALLLETTEREPSILON] eqcirc,U02256,aliasISOAMSRecir,[RINGINEQUALTO] eqcolon,U02255,aliasISOAMSRecolon,[EQUALSCOLON] eqsim,U02242,aliasISOAMSResim,[MINUSTILDE] eqslantgtr,U02A96,aliasISOAMSRegs,[SLANTEDEQUALTOORGREATER-THAN] eqslantless,U02A95,aliasISOAMSRels,[SLANTEDEQUALTOORLESS-THAN] Equal,U02A75,twoconsecutiveequalsigns,[TWOCONSECUTIVEEQUALSSIGNS] equals,U0003D,=equalssignR:,[EQUALSSIGN] EqualTilde,U02242,aliasISOAMSResim,[MINUSTILDE] equest,U0225F,/questeqR:equalwithquestionmark,[QUESTIONEDEQUALTO] Equilibrium,U021CC,aliasISOAMSArlhar,[RIGHTWARDSHARPOONOVERLEFTWARDSHARPOON] equiv,U02261,/equivR:identicalwith,[IDENTICALTO] equivDD,U02A78,equivalent,fourdotsabove,[EQUIVALENTWITHFOURDOTSABOVE] eqvparsl,U029E5,equivalent,equal;congruentandparallel,[IDENTICALTOANDSLANTEDPARALLEL] erarr,U02971,equal,rightarrowbelow,[EQUALSSIGNABOVERIGHTWARDSARROW] erDot,U02253,/risingdotseqR:eq,risingdots,[IMAGEOFORAPPROXIMATELYEQUALTO] Escr,U02130,/scrE,scriptletterE,[SCRIPTCAPITALE] escr,U0212F,/scre,scriptlettere,[SCRIPTSMALLE] esdot,U02250,/doteqR:equals,singledotabove,[APPROACHESTHELIMIT] Esim,U02A73,equal,similar,[EQUALSSIGNABOVETILDEOPERATOR] esim,U02242,/esimR:equals,similar,[MINUSTILDE] eta,U003B7,/etasmalleta,Greek,[GREEKSMALLLETTERETA] ETH,U000D0,=capitalEth,Icelandic,[LATINCAPITALLETTERETH] eth,U000F0,=smalleth,Icelandic,[LATINSMALLLETTERETH] Euml,U000CB,=capitalE,dieresisorumlautmark,[LATINCAPITALLETTEREWITHDIAERESIS] euml,U000EB,=smalle,dieresisorumlautmark,[LATINSMALLLETTEREWITHDIAERESIS] excl,U00021,=exclamationmark,[EXCLAMATIONMARK] exist,U02203,/existsatleastoneexists,[THEREEXISTS] Exists,U02203,aliasISOTECHexist,[THEREEXISTS] expectation,U02130,expectation(operator),[SCRIPTCAPITALE] ExponentialE,U02147,eusefortheexponentialbaseofthenaturallogarithms,[DOUBLE-STRUCKITALICSMALLE] exponentiale,U02147,baseoftheNapierianlogarithms,[DOUBLE-STRUCKITALICSMALLE] fallingdotseq,U02252,aliasISOAMSRefDot,[APPROXIMATELYEQUALTOORTHEIMAGEOF] Fcy,U00424,=capitalEF,Cyrillic,[CYRILLICCAPITALLETTEREF] fcy,U00444,=smallef,Cyrillic,[CYRILLICSMALLLETTEREF] female,U02640,=femalesymbol,[FEMALESIGN] ffilig,U0FB03,smallffiligature,[LATINSMALLLIGATUREFFI] fflig,U0FB00,smallffligature,[LATINSMALLLIGATUREFF] ffllig,U0FB04,smallfflligature,[LATINSMALLLIGATUREFFL] Ffr,U1D509,/frakF,uppercasef,[MATHEMATICALFRAKTURCAPITALF] ffr,U1D523,/frakf,lowercasef,[MATHEMATICALFRAKTURSMALLF] filig,U0FB01,smallfiligature,[LATINSMALLLIGATUREFI] FilledSmallSquare,U025FC,filledsmallsquare,[BLACKMEDIUMSQUARE] FilledVerySmallSquare,U025AA,filledverysmallsquare,[BLACKSMALLSQUARE] flat,U0266D,/flat=musicalflat,[MUSICFLATSIGN] fllig,U0FB02,smallflligature,[LATINSMALLLIGATUREFL] fltns,U025B1,flatness,[WHITEPARALLELOGRAM] fnof,U00192,functionof(italicsmallf),[LATINSMALLLETTERFWITHHOOK] Fopf,U1D53D,/BbbF,openfaceF,[MATHEMATICALDOUBLE-STRUCKCAPITALF] fopf,U1D557,,[MATHEMATICALDOUBLE-STRUCKSMALLF] ForAll,U02200,aliasISOTECHforall,[FORALL] forall,U02200,/forallforall,[FORALL] fork,U022D4,/pitchforkR:pitchfork,[PITCHFORK] forkv,U02AD9,fork,variant,[ELEMENTOFOPENINGDOWNWARDS] Fouriertrf,U02131,Fouriertransform,[SCRIPTCAPITALF] fpartint,U02A0D,finitepartintegral,[FINITEPARTINTEGRAL] frac12,U000BD,=fractionone-half,[VULGARFRACTIONONEHALF] frac13,U02153,=fractionone-third,[VULGARFRACTIONONETHIRD] frac14,U000BC,=fractionone-quarter,[VULGARFRACTIONONEQUARTER] frac15,U02155,=fractionone-fifth,[VULGARFRACTIONONEFIFTH] frac16,U02159,=fractionone-sixth,[VULGARFRACTIONONESIXTH] frac18,U0215B,=fractionone-eighth,[VULGARFRACTIONONEEIGHTH] frac23,U02154,=fractiontwo-thirds,[VULGARFRACTIONTWOTHIRDS] frac25,U02156,=fractiontwo-fifths,[VULGARFRACTIONTWOFIFTHS] frac34,U000BE,=fractionthree-quarters,[VULGARFRACTIONTHREEQUARTERS] frac35,U02157,=fractionthree-fifths,[VULGARFRACTIONTHREEFIFTHS] frac38,U0215C,=fractionthree-eighths,[VULGARFRACTIONTHREEEIGHTHS] frac45,U02158,=fractionfour-fifths,[VULGARFRACTIONFOURFIFTHS] frac56,U0215A,=fractionfive-sixths,[VULGARFRACTIONFIVESIXTHS] frac58,U0215D,=fractionfive-eighths,[VULGARFRACTIONFIVEEIGHTHS] frac78,U0215E,=fractionseven-eighths,[VULGARFRACTIONSEVENEIGHTHS] frown,U02322,/frownR:downcurve,[FROWN] Fscr,U02131,/scrF,scriptletterF,[SCRIPTCAPITALF] fscr,U1D4BB,/scrf,scriptletterf,[MATHEMATICALSCRIPTSMALLF] gacute,U001F5,=smallg,acuteaccent,[LATINSMALLLETTERGWITHACUTE] Gamma,U00393,/GammacapitalGamma,Greek,[GREEKCAPITALLETTERGAMMA] gamma,U003B3,/gammasmallgamma,Greek,[GREEKSMALLLETTERGAMMA] Gammad,U003DC,capitaldigamma,[GREEKLETTERDIGAMMA] gammad,U003DD,/digamma,[GREEKSMALLLETTERDIGAMMA] gap,U02A86,/gtrapproxR:greater,approximate,[GREATER-THANORAPPROXIMATE] Gbreve,U0011E,=capitalG,breve,[LATINCAPITALLETTERGWITHBREVE] gbreve,U0011F,=smallg,breve,[LATINSMALLLETTERGWITHBREVE] Gcedil,U00122,=capitalG,cedilla,[LATINCAPITALLETTERGWITHCEDILLA] Gcirc,U0011C,=capitalG,circumflexaccent,[LATINCAPITALLETTERGWITHCIRCUMFLEX] gcirc,U0011D,=smallg,circumflexaccent,[LATINSMALLLETTERGWITHCIRCUMFLEX] Gcy,U00413,=capitalGHE,Cyrillic,[CYRILLICCAPITALLETTERGHE] gcy,U00433,=smallghe,Cyrillic,[CYRILLICSMALLLETTERGHE] Gdot,U00120,=capitalG,dotabove,[LATINCAPITALLETTERGWITHDOTABOVE] gdot,U00121,=smallg,dotabove,[LATINSMALLLETTERGWITHDOTABOVE] gE,U02267,/geqqR:greater,doubleequals,[GREATER-THANOVEREQUALTO] ge,U02265,/geq/geR:greater-than-or-equal,[GREATER-THANOREQUALTO] gEl,U02A8C,/gtreqqlessR:gt,dblequals,less,[GREATER-THANABOVEDOUBLE-LINEEQUALABOVELESS-THAN] gel,U022DB,/gtreqlessR:greater,equals,less,[GREATER-THANEQUALTOORLESS-THAN] geq,U02265,aliasISOTECHge,[GREATER-THANOREQUALTO] geqq,U02267,aliasISOAMSRgE,[GREATER-THANOVEREQUALTO] geqslant,U02A7E,aliasISOAMSRges,[GREATER-THANORSLANTEDEQUALTO] ges,U02A7E,/geqslantR:gt-or-equal,slanted,[GREATER-THANORSLANTEDEQUALTO] gescc,U02AA9,greaterthan,closedbycurve,equal,slanted,[GREATER-THANCLOSEDBYCURVEABOVESLANTEDEQUAL] gesdot,U02A80,greater-than-or-equal,slanted,dotinside,[GREATER-THANORSLANTEDEQUALTOWITHDOTINSIDE] gesdoto,U02A82,greater-than-or-equal,slanted,dotabove,[GREATER-THANORSLANTEDEQUALTOWITHDOTABOVE] gesdotol,U02A84,greater-than-or-equal,slanted,dotaboveleft,[GREATER-THANORSLANTEDEQUALTOWITHDOTABOVELEFT] gesl,U022DB-0FE00,greater,equal,slanted,less,[GREATER-THANslantedEQUALTOORLESS-THAN] gesles,U02A94,greater,equal,slanted,less,equal,slanted,[GREATER-THANABOVESLANTEDEQUALABOVELESS-THANABOVESLANTEDEQUAL] Gfr,U1D50A,/frakG,uppercaseg,[MATHEMATICALFRAKTURCAPITALG] gfr,U1D524,/frakg,lowercaseg,[MATHEMATICALFRAKTURSMALLG] Gg,U022D9,/ggg/Gg/gggtrR:triplegtr-than,[VERYMUCHGREATER-THAN] gg,U0226B,aliasISOAMSRGt,[MUCHGREATER-THAN] ggg,U022D9,aliasISOAMSRGg,[VERYMUCHGREATER-THAN] gimel,U02137,/gimel-gimel,Hebrew,[GIMELSYMBOL] GJcy,U00403,=capitalGJEMacedonian,[CYRILLICCAPITALLETTERGJE] gjcy,U00453,=smallgje,Macedonian,[CYRILLICSMALLLETTERGJE] gl,U02277,/gtrlessR:greater,less,[GREATER-THANORLESS-THAN] gla,U02AA5,greater,less,apart,[GREATER-THANBESIDELESS-THAN] glE,U02A92,greater,less,equal,[GREATER-THANABOVELESS-THANABOVEDOUBLE-LINEEQUAL] glj,U02AA4,greater,less,overlapping,[GREATER-THANOVERLAPPINGLESS-THAN] gnap,U02A8A,/gnapproxN:greater,notapproximate,[GREATER-THANANDNOTAPPROXIMATE] gnapprox,U02A8A,aliasISOAMSNgnap,[GREATER-THANANDNOTAPPROXIMATE] gnE,U02269,/gneqqN:greater,notdblequals,[GREATER-THANBUTNOTEQUALTO] gne,U02A88,/gneqN:greater,notequals,[GREATER-THANANDSINGLE-LINENOTEQUALTO] gneq,U02A88,aliasISOAMSNgne,[GREATER-THANANDSINGLE-LINENOTEQUALTO] gneqq,U02269,aliasISOAMSNgnE,[GREATER-THANBUTNOTEQUALTO] gnsim,U022E7,/gnsimN:greater,notsimilar,[GREATER-THANBUTNOTEQUIVALENTTO] Gopf,U1D53E,/BbbG,openfaceG,[MATHEMATICALDOUBLE-STRUCKCAPITALG] gopf,U1D558,,[MATHEMATICALDOUBLE-STRUCKSMALLG] grave,U00060,=graveaccent,[GRAVEACCENT] GreaterEqual,U02265,aliasISOTECHge,[GREATER-THANOREQUALTO] GreaterEqualLess,U022DB,aliasISOAMSRgel,[GREATER-THANEQUALTOORLESS-THAN] GreaterFullEqual,U02267,aliasISOAMSRgE,[GREATER-THANOVEREQUALTO] GreaterGreater,U02AA2,aliasforGT,[DOUBLENESTEDGREATER-THAN] GreaterLess,U02277,aliasISOAMSRgl,[GREATER-THANORLESS-THAN] GreaterSlantEqual,U02A7E,aliasISOAMSRges,[GREATER-THANORSLANTEDEQUALTO] GreaterTilde,U02273,aliasISOAMSRgsim,[GREATER-THANOREQUIVALENTTO] Gscr,U1D4A2,/scrG,scriptletterG,[MATHEMATICALSCRIPTCAPITALG] gscr,U0210A,/scrg,scriptletterg,[SCRIPTSMALLG] gsim,U02273,/gtrsimR:greater,similar,[GREATER-THANOREQUIVALENTTO] gsime,U02A8E,greater,similar,equal,[GREATER-THANABOVESIMILAROREQUAL] gsiml,U02A90,greater,similar,less,[GREATER-THANABOVESIMILARABOVELESS-THAN] Gt,U0226B,/ggR:dblgreater-thansign,[MUCHGREATER-THAN] gt,U0003E,=greater-thansignR:,[GREATER-THANSIGN] gtcc,U02AA7,greaterthan,closedbycurve,[GREATER-THANCLOSEDBYCURVE] gtcir,U02A7A,greaterthan,circleinside,[GREATER-THANWITHCIRCLEINSIDE] gtdot,U022D7,/gtrdotR:greaterthan,withdot,[GREATER-THANWITHDOT] gtlPar,U02995,dblleftparenthesis,greater,[DOUBLELEFTARCGREATER-THANBRACKET] gtquest,U02A7C,greaterthan,questionmarkabove,[GREATER-THANWITHQUESTIONMARKABOVE] gtrapprox,U02A86,aliasISOAMSRgap,[GREATER-THANORAPPROXIMATE] gtrarr,U02978,greaterthan,rightarrow,[GREATER-THANABOVERIGHTWARDSARROW] gtrdot,U022D7,aliasISOAMSRgtdot,[GREATER-THANWITHDOT] gtreqless,U022DB,aliasISOAMSRgel,[GREATER-THANEQUALTOORLESS-THAN] gtreqqless,U02A8C,aliasISOAMSRgEl,[GREATER-THANABOVEDOUBLE-LINEEQUALABOVELESS-THAN] gtrless,U02277,aliasISOAMSRgl,[GREATER-THANORLESS-THAN] gtrsim,U02273,aliasISOAMSRgsim,[GREATER-THANOREQUIVALENTTO] gvertneqq,U02269-0FE00,aliasISOAMSNgvnE,[GREATER-THANBUTNOTEQUALTO-withverticalstroke] gvnE,U02269-0FE00,/gvertneqqN:gt,vert,notdbleq,[GREATER-THANBUTNOTEQUALTO-withverticalstroke] Hacek,U002C7,aliasISODIAcaron,[CARON] hairsp,U0200A,=hairspace,[HAIRSPACE] half,U000BD,=fractionone-half,[VULGARFRACTIONONEHALF] hamilt,U0210B,Hamiltonian(scriptcapitalH),[SCRIPTCAPITALH] HARDcy,U0042A,=capitalHARDsign,Cyrillic,[CYRILLICCAPITALLETTERHARDSIGN] hardcy,U0044A,=smallhardsign,Cyrillic,[CYRILLICSMALLLETTERHARDSIGN] hArr,U021D4,/LeftrightarrowA:l&rdblarrow,[LEFTRIGHTDOUBLEARROW] harr,U02194,/leftrightarrowA:l&rarrow,[LEFTRIGHTARROW] harrcir,U02948,leftandrightarrowwithacircle,[LEFTRIGHTARROWTHROUGHSMALLCIRCLE] harrw,U021AD,/leftrightsquigarrowA:l&rarr-wavy,[LEFTRIGHTWAVEARROW] Hat,U0005E,circumflexaccent,[CIRCUMFLEXACCENT] hbar,U0210F,aliasISOAMSOplank,[PLANCKCONSTANTOVERTWOPI] Hcirc,U00124,=capitalH,circumflexaccent,[LATINCAPITALLETTERHWITHCIRCUMFLEX] hcirc,U00125,=smallh,circumflexaccent,[LATINSMALLLETTERHWITHCIRCUMFLEX] hearts,U02665,/heartsuit=heartsuitsymbol,[BLACKHEARTSUIT] heartsuit,U02665,ISOPUBhearts,[BLACKHEARTSUIT] hellip,U02026,=ellipsis(horizontal),[HORIZONTALELLIPSIS] hercon,U022B9,hermitianconjugatematrix,[HERMITIANCONJUGATEMATRIX] Hfr,U0210C,/frakH,uppercaseh,[BLACK-LETTERCAPITALH] hfr,U1D525,/frakh,lowercaseh,[MATHEMATICALFRAKTURSMALLH] HilbertSpace,U0210B,Hilbertspace,[SCRIPTCAPITALH] hksearow,U02925,aliasISOAMSAsearhk,[SOUTHEASTARROWWITHHOOK] hkswarow,U02926,aliasISOAMSAswarhk,[SOUTHWESTARROWWITHHOOK] hoarr,U021FF,horizontalopenarrow,[LEFTRIGHTOPEN-HEADEDARROW] homtht,U0223B,homothetic,[HOMOTHETIC] hookleftarrow,U021A9,aliasISOAMSAlarrhk,[LEFTWARDSARROWWITHHOOK] hookrightarrow,U021AA,aliasISOAMSArarrhk,[RIGHTWARDSARROWWITHHOOK] Hopf,U0210D,/BbbH,openfaceH,[DOUBLE-STRUCKCAPITALH] hopf,U1D559,,[MATHEMATICALDOUBLE-STRUCKSMALLH] horbar,U02015,=horizontalbar,[HORIZONTALBAR] HorizontalLine,U02500,shorthorizontalline,[BOXDRAWINGSLIGHTHORIZONTAL] Hscr,U0210B,/scrH,scriptletterH,[SCRIPTCAPITALH] hscr,U1D4BD,/scrh,scriptletterh,[MATHEMATICALSCRIPTSMALLH] hslash,U0210F,aliasISOAMSOplankv,[PLANCKCONSTANTOVERTWOPI] Hstrok,U00126,=capitalH,stroke,[LATINCAPITALLETTERHWITHSTROKE] hstrok,U00127,=smallh,stroke,[LATINSMALLLETTERHWITHSTROKE] HumpDownHump,U0224E,aliasISOAMSRbump,[GEOMETRICALLYEQUIVALENTTO] HumpEqual,U0224F,aliasISOAMSRbumpe,[DIFFERENCEBETWEEN] hybull,U02043,rectangle,filled(hyphenbullet),[HYPHENBULLET] hyphen,U02010,=hyphen,[HYPHEN] Iacute,U000CD,=capitalI,acuteaccent,[LATINCAPITALLETTERIWITHACUTE] iacute,U000ED,=smalli,acuteaccent,[LATINSMALLLETTERIWITHACUTE] ic,U02063,shortformof&InvisibleComma;,[INVISIBLESEPARATOR] Icirc,U000CE,=capitalI,circumflexaccent,[LATINCAPITALLETTERIWITHCIRCUMFLEX] icirc,U000EE,=smalli,circumflexaccent,[LATINSMALLLETTERIWITHCIRCUMFLEX] Icy,U00418,=capitalI,Cyrillic,[CYRILLICCAPITALLETTERI] icy,U00438,=smalli,Cyrillic,[CYRILLICSMALLLETTERI] Idot,U00130,=capitalI,dotabove,[LATINCAPITALLETTERIWITHDOTABOVE] IEcy,U00415,=capitalIE,Cyrillic,[CYRILLICCAPITALLETTERIE] iecy,U00435,=smallie,Cyrillic,[CYRILLICSMALLLETTERIE] iexcl,U000A1,=invertedexclamationmark,[INVERTEDEXCLAMATIONMARK] iff,U021D4,/iffifandonlyif,[LEFTRIGHTDOUBLEARROW] Ifr,U02111,/frakI,uppercasei,[BLACK-LETTERCAPITALI] ifr,U1D526,/fraki,lowercasei,[MATHEMATICALFRAKTURSMALLI] Igrave,U000CC,=capitalI,graveaccent,[LATINCAPITALLETTERIWITHGRAVE] igrave,U000EC,=smalli,graveaccent,[LATINSMALLLETTERIWITHGRAVE] ii,U02148,iforuseasasquarerootof-1,[DOUBLE-STRUCKITALICSMALLI] iiiint,U02A0C,aliasISOTECHqint,[QUADRUPLEINTEGRALOPERATOR] iiint,U0222D,aliasISOTECHtint,[TRIPLEINTEGRAL] iinfin,U029DC,infinitysign,incomplete,[INCOMPLETEINFINITY] iiota,U02129,invertediota,[TURNEDGREEKSMALLLETTERIOTA] IJlig,U00132,=capitalIJligature,[LATINCAPITALLIGATUREIJ] ijlig,U00133,=smallijligature,[LATINSMALLLIGATUREIJ] Im,U02111,aliasISOAMSOimage,[BLACK-LETTERCAPITALI] Imacr,U0012A,=capitalI,macron,[LATINCAPITALLETTERIWITHMACRON] imacr,U0012B,=smalli,macron,[LATINSMALLLETTERIWITHMACRON] image,U02111,/Im-imaginary,[BLACK-LETTERCAPITALI] ImaginaryI,U02148,iforuseasasquarerootof-1,[DOUBLE-STRUCKITALICSMALLI] imagline,U02110,thegeometricimaginaryline,[SCRIPTCAPITALI] imagpart,U02111,aliasISOAMSOimage,[BLACK-LETTERCAPITALI] imath,U00131,/imath-smalli,nodot,[LATINSMALLLETTERDOTLESSI] imof,U022B7,imageof,[IMAGEOF] imped,U001B5,impedance,[LATINCAPITALLETTERZWITHSTROKE] Implies,U021D2,aliasISOTECHrArr,[RIGHTWARDSDOUBLEARROW] in,U02208,ISOTECHisin,[ELEMENTOF] incare,U02105,=in-care-ofsymbol,[CAREOF] infin,U0221E,/inftyinfinity,[INFINITY] infintie,U029DD,tie,infinity,[TIEOVERINFINITY] inodot,U00131,=smalliwithoutdot,[LATINSMALLLETTERDOTLESSI] Int,U0222C,doubleintegraloperator,[DOUBLEINTEGRAL] int,U0222B,/intL:integraloperator,[INTEGRAL] intcal,U022BA,/intercalB:intercal,[INTERCALATE] integers,U02124,theringofintegers,[DOUBLE-STRUCKCAPITALZ] Integral,U0222B,aliasISOTECHint,[INTEGRAL] intercal,U022BA,aliasISOAMSBintcal,[INTERCALATE] Intersection,U022C2,aliasISOAMSBxcap,[N-ARYINTERSECTION] intlarhk,U02A17,integral,leftarrowwithhook,[INTEGRALWITHLEFTWARDSARROWWITHHOOK] intprod,U02A3C,aliasISOAMSBiprod,[INTERIORPRODUCT] InvisibleComma,U02063,usedasaseparator,e.g.,inindices,[INVISIBLESEPARATOR] InvisibleTimes,U02062,marksmultiplicationwhenitisunderstoodwithoutamark,[INVISIBLETIMES] IOcy,U00401,=capitalIO,Russian,[CYRILLICCAPITALLETTERIO] iocy,U00451,=smallio,Russian,[CYRILLICSMALLLETTERIO] Iogon,U0012E,=capitalI,ogonek,[LATINCAPITALLETTERIWITHOGONEK] iogon,U0012F,=smalli,ogonek,[LATINSMALLLETTERIWITHOGONEK] Iopf,U1D540,/BbbI,openfaceI,[MATHEMATICALDOUBLE-STRUCKCAPITALI] iopf,U1D55A,,[MATHEMATICALDOUBLE-STRUCKSMALLI] iota,U003B9,/iotasmalliota,Greek,[GREEKSMALLLETTERIOTA] iprod,U02A3C,/intprod,[INTERIORPRODUCT] iquest,U000BF,=invertedquestionmark,[INVERTEDQUESTIONMARK] Iscr,U02110,/scrI,scriptletterI,[SCRIPTCAPITALI] iscr,U1D4BE,/scri,scriptletteri,[MATHEMATICALSCRIPTSMALLI] isin,U02208,/inR:setmembership,[ELEMENTOF] isindot,U022F5,setmembership,dotabove,[ELEMENTOFWITHDOTABOVE] isinE,U022F9,setmembership,twohorizontalstrokes,[ELEMENTOFWITHTWOHORIZONTALSTROKES] isins,U022F4,setmembership,verticalbaronhorizontalstroke,[SMALLELEMENTOFWITHVERTICALBARATENDOFHORIZONTALSTROKE] isinsv,U022F3,largesetmembership,verticalbaronhorizontalstroke,[ELEMENTOFWITHVERTICALBARATENDOFHORIZONTALSTROKE] isinv,U02208,setmembership,variant,[ELEMENTOF] it,U02062,marksmultiplicationwhenitisunderstoodwithoutamark,[INVISIBLETIMES] Itilde,U00128,=capitalI,tilde,[LATINCAPITALLETTERIWITHTILDE] itilde,U00129,=smalli,tilde,[LATINSMALLLETTERIWITHTILDE] Iukcy,U00406,=capitalI,Ukrainian,[CYRILLICCAPITALLETTERBYELORUSSIAN-UKRAINIANI] iukcy,U00456,=smalli,Ukrainian,[CYRILLICSMALLLETTERBYELORUSSIAN-UKRAINIANI] Iuml,U000CF,=capitalI,dieresisorumlautmark,[LATINCAPITALLETTERIWITHDIAERESIS] iuml,U000EF,=smalli,dieresisorumlautmark,[LATINSMALLLETTERIWITHDIAERESIS] Jcirc,U00134,=capitalJ,circumflexaccent,[LATINCAPITALLETTERJWITHCIRCUMFLEX] jcirc,U00135,=smallj,circumflexaccent,[LATINSMALLLETTERJWITHCIRCUMFLEX] Jcy,U00419,=capitalshortI,Cyrillic,[CYRILLICCAPITALLETTERSHORTI] jcy,U00439,=smallshorti,Cyrillic,[CYRILLICSMALLLETTERSHORTI] Jfr,U1D50D,/frakJ,uppercasej,[MATHEMATICALFRAKTURCAPITALJ] jfr,U1D527,/frakj,lowercasej,[MATHEMATICALFRAKTURSMALLJ] jmath,U0006A,/jmath-smallj,nodot,[LATINSMALLLETTERJ] Jopf,U1D541,/BbbJ,openfaceJ,[MATHEMATICALDOUBLE-STRUCKCAPITALJ] jopf,U1D55B,,[MATHEMATICALDOUBLE-STRUCKSMALLJ] Jscr,U1D4A5,/scrJ,scriptletterJ,[MATHEMATICALSCRIPTCAPITALJ] jscr,U1D4BF,/scrj,scriptletterj,[MATHEMATICALSCRIPTSMALLJ] Jsercy,U00408,=capitalJE,Serbian,[CYRILLICCAPITALLETTERJE] jsercy,U00458,=smallje,Serbian,[CYRILLICSMALLLETTERJE] Jukcy,U00404,=capitalJE,Ukrainian,[CYRILLICCAPITALLETTERUKRAINIANIE] jukcy,U00454,=smallje,Ukrainian,[CYRILLICSMALLLETTERUKRAINIANIE] kappa,U003BA,/kappasmallkappa,Greek,[GREEKSMALLLETTERKAPPA] kappav,U003F0,/varkappa,[GREEKKAPPASYMBOL] Kcedil,U00136,=capitalK,cedilla,[LATINCAPITALLETTERKWITHCEDILLA] kcedil,U00137,=smallk,cedilla,[LATINSMALLLETTERKWITHCEDILLA] Kcy,U0041A,=capitalKA,Cyrillic,[CYRILLICCAPITALLETTERKA] kcy,U0043A,=smallka,Cyrillic,[CYRILLICSMALLLETTERKA] Kfr,U1D50E,/frakK,uppercasek,[MATHEMATICALFRAKTURCAPITALK] kfr,U1D528,/frakk,lowercasek,[MATHEMATICALFRAKTURSMALLK] kgreen,U00138,=smallk,Greenlandic,[LATINSMALLLETTERKRA] KHcy,U00425,=capitalHA,Cyrillic,[CYRILLICCAPITALLETTERHA] khcy,U00445,=smallha,Cyrillic,[CYRILLICSMALLLETTERHA] KJcy,U0040C,=capitalKJE,Macedonian,[CYRILLICCAPITALLETTERKJE] kjcy,U0045C,=smallkjeMacedonian,[CYRILLICSMALLLETTERKJE] Kopf,U1D542,/BbbK,openfaceK,[MATHEMATICALDOUBLE-STRUCKCAPITALK] kopf,U1D55C,,[MATHEMATICALDOUBLE-STRUCKSMALLK] Kscr,U1D4A6,/scrK,scriptletterK,[MATHEMATICALSCRIPTCAPITALK] kscr,U1D4C0,/scrk,scriptletterk,[MATHEMATICALSCRIPTSMALLK] lAarr,U021DA,/LleftarrowA:lefttriplearrow,[LEFTWARDSTRIPLEARROW] Lacute,U00139,=capitalL,acuteaccent,[LATINCAPITALLETTERLWITHACUTE] lacute,U0013A,=smalll,acuteaccent,[LATINSMALLLETTERLWITHACUTE] laemptyv,U029B4,circle,slash,leftarrowabove,[EMPTYSETWITHLEFTARROWABOVE] lagran,U02112,Lagrangian(scriptcapitalL),[SCRIPTCAPITALL] Lambda,U0039B,/LambdacapitalLambda,Greek,[GREEKCAPITALLETTERLAMDA] lambda,U003BB,/lambdasmalllambda,Greek,[GREEKSMALLLETTERLAMDA] Lang,U0300A,leftanglebracket,double,[LEFTDOUBLEANGLEBRACKET] lang,U02329,/langleO:leftanglebracket,[LEFT-POINTINGANGLEBRACKET] langd,U02991,leftangle,dot,[LEFTANGLEBRACKETWITHDOT] langle,U02329,aliasISOTECHlang,[LEFT-POINTINGANGLEBRACKET] lap,U02A85,/lessapproxR:less,approximate,[LESS-THANORAPPROXIMATE] Laplacetrf,U02112,Laplacetransform,[SCRIPTCAPITALL] laquo,U000AB,=anglequotationmark,left,[LEFT-POINTINGDOUBLEANGLEQUOTATIONMARK] Larr,U0219E,/twoheadleftarrowA:,[LEFTWARDSTWOHEADEDARROW] lArr,U021D0,/LeftarrowA:isimpliedby,[LEFTWARDSDOUBLEARROW] larr,U02190,/leftarrow/getsA:=leftwardarrow,[LEFTWARDSARROW] larrb,U021E4,leftwardsarrowtobar,[LEFTWARDSARROWTOBAR] larrbfs,U0291F,leftarrow-bar,filledsquare,[LEFTWARDSARROWFROMBARTOBLACKDIAMOND] larrfs,U0291D,leftarrow,filledsquare,[LEFTWARDSARROWTOBLACKDIAMOND] larrhk,U021A9,/hookleftarrowA:leftarrow-hooked,[LEFTWARDSARROWWITHHOOK] larrlp,U021AB,/looparrowleftA:leftarrow-looped,[LEFTWARDSARROWWITHLOOP] larrpl,U02939,leftarrow,plus,[LEFT-SIDEARCANTICLOCKWISEARROW] larrsim,U02973,leftarrow,similar,[LEFTWARDSARROWABOVETILDEOPERATOR] larrtl,U021A2,/leftarrowtailA:leftarrow-tailed,[LEFTWARDSARROWWITHTAIL] lat,U02AAB,largerthan,[LARGERTHAN] lAtail,U0291B,leftdoublearrow-tail,[LEFTWARDSDOUBLEARROW-TAIL] latail,U02919,leftarrow-tail,[LEFTWARDSARROW-TAIL] late,U02AAD,largerthanorequal,[LARGERTHANOREQUALTO] lates,U02AAD-0FE00,largerthanorequal,slanted,[LARGERTHANORslantedEQUAL] lBarr,U0290E,leftdoublybrokenarrow,[LEFTWARDSTRIPLEDASHARROW] lbarr,U0290C,leftbrokenarrow,[LEFTWARDSDOUBLEDASHARROW] lbbrk,U03014,leftbrokenbracket,[LEFTTORTOISESHELLBRACKET] lbrace,U0007B,aliasISONUMlcub,[LEFTCURLYBRACKET] lbrack,U0005B,aliasISONUMlsqb,[LEFTSQUAREBRACKET] lbrke,U0298B,leftbracket,equal,[LEFTSQUAREBRACKETWITHUNDERBAR] lbrksld,U0298F,leftbracket,solidusbottomcorner,[LEFTSQUAREBRACKETWITHTICKINBOTTOMCORNER] lbrkslu,U0298D,leftbracket,solidustopcorner,[LEFTSQUAREBRACKETWITHTICKINTOPCORNER] Lcaron,U0013D,=capitalL,caron,[LATINCAPITALLETTERLWITHCARON] lcaron,U0013E,=smalll,caron,[LATINSMALLLETTERLWITHCARON] Lcedil,U0013B,=capitalL,cedilla,[LATINCAPITALLETTERLWITHCEDILLA] lcedil,U0013C,=smalll,cedilla,[LATINSMALLLETTERLWITHCEDILLA] lceil,U02308,/lceilO:leftceiling,[LEFTCEILING] lcub,U0007B,/lbraceO:=leftcurlybracket,[LEFTCURLYBRACKET] Lcy,U0041B,=capitalEL,Cyrillic,[CYRILLICCAPITALLETTEREL] lcy,U0043B,=smallel,Cyrillic,[CYRILLICSMALLLETTEREL] ldca,U02936,leftdowncurvedarrow,[ARROWPOINTINGDOWNWARDSTHENCURVINGLEFTWARDS] ldquo,U0201C,=doublequotationmark,left,[LEFTDOUBLEQUOTATIONMARK] ldquor,U0201E,=risingdblquote,left(low),[DOUBLELOW-9QUOTATIONMARK] ldrdhar,U02967,leftharpoon-downoverrightharpoon-down,[LEFTWARDSHARPOONWITHBARBDOWNABOVERIGHTWARDSHARPOONWITHBARBDOWN] ldrushar,U0294B,left-down-right-upharpoon,[LEFTBARBDOWNRIGHTBARBUPHARPOON] ldsh,U021B2,leftdownangledarrow,[DOWNWARDSARROWWITHTIPLEFTWARDS] lE,U02266,/leqqR:less,doubleequals,[LESS-THANOVEREQUALTO] le,U02264,/leq/leR:less-than-or-equal,[LESS-THANOREQUALTO] LeftAngleBracket,U02329,aliasISOTECHlang,[LEFT-POINTINGANGLEBRACKET] LeftArrow,U02190,aliasISONUMlarr,[LEFTWARDSARROW] Leftarrow,U021D0,aliasISOTECHlArr,[LEFTWARDSDOUBLEARROW] leftarrow,U02190,aliasISONUMlarr,[LEFTWARDSARROW] LeftArrowBar,U021E4,aliasforlarrb,[LEFTWARDSARROWTOBAR] LeftArrowRightArrow,U021C6,aliasISOAMSAlrarr,[LEFTWARDSARROWOVERRIGHTWARDSARROW] leftarrowtail,U021A2,aliasISOAMSAlarrtl,[LEFTWARDSARROWWITHTAIL] LeftCeiling,U02308,aliasISOAMSClceil,[LEFTCEILING] LeftDoubleBracket,U0301A,leftdoublebracketdelimiter,[LEFTWHITESQUAREBRACKET] LeftDownTeeVector,U02961,down-leftharpoonfrombar,[DOWNWARDSHARPOONWITHBARBLEFTFROMBAR] LeftDownVector,U021C3,aliasISOAMSAdharl,[DOWNWARDSHARPOONWITHBARBLEFTWARDS] LeftDownVectorBar,U02959,down-leftharpoontobar,[DOWNWARDSHARPOONWITHBARBLEFTTOBAR] LeftFloor,U0230A,aliasISOAMSClfloor,[LEFTFLOOR] leftharpoondown,U021BD,aliasISOAMSAlhard,[LEFTWARDSHARPOONWITHBARBDOWNWARDS] leftharpoonup,U021BC,aliasISOAMSAlharu,[LEFTWARDSHARPOONWITHBARBUPWARDS] leftleftarrows,U021C7,aliasISOAMSAllarr,[LEFTWARDSPAIREDARROWS] LeftRightArrow,U02194,aliasISOAMSAharr,[LEFTRIGHTARROW] Leftrightarrow,U021D4,aliasISOAMSAhArr,[LEFTRIGHTDOUBLEARROW] leftrightarrow,U02194,aliasISOAMSAharr,[LEFTRIGHTARROW] leftrightarrows,U021C6,aliasISOAMSAlrarr,[LEFTWARDSARROWOVERRIGHTWARDSARROW] leftrightharpoons,U021CB,aliasISOAMSAlrhar,[LEFTWARDSHARPOONOVERRIGHTWARDSHARPOON] leftrightsquigarrow,U021AD,aliasISOAMSAharrw,[LEFTRIGHTWAVEARROW] LeftRightVector,U0294E,left-up-right-upharpoon,[LEFTBARBUPRIGHTBARBUPHARPOON] LeftTee,U022A3,aliasISOAMSRdashv,[LEFTTACK] LeftTeeArrow,U021A4,aliasformapstoleft,[LEFTWARDSARROWFROMBAR] LeftTeeVector,U0295A,left-upharpoonfrombar,[LEFTWARDSHARPOONWITHBARBUPFROMBAR] leftthreetimes,U022CB,aliasISOAMSBlthree,[LEFTSEMIDIRECTPRODUCT] LeftTriangle,U022B2,aliasISOAMSRvltri,[NORMALSUBGROUPOF] LeftTriangleBar,U029CF,lefttriangle,verticalbar,[LEFTTRIANGLEBESIDEVERTICALBAR] LeftTriangleEqual,U022B4,aliasISOAMSRltrie,[NORMALSUBGROUPOFOREQUALTO] LeftUpDownVector,U02951,up-left-down-leftharpoon,[UPBARBLEFTDOWNBARBLEFTHARPOON] LeftUpTeeVector,U02960,up-leftharpoonfrombar,[UPWARDSHARPOONWITHBARBLEFTFROMBAR] LeftUpVector,U021BF,aliasISOAMSAuharl,[UPWARDSHARPOONWITHBARBLEFTWARDS] LeftUpVectorBar,U02958,up-leftharpoontobar,[UPWARDSHARPOONWITHBARBLEFTTOBAR] LeftVector,U021BC,aliasISOAMSAlharu,[LEFTWARDSHARPOONWITHBARBUPWARDS] LeftVectorBar,U02952,left-upharpoontobar,[LEFTWARDSHARPOONWITHBARBUPTOBAR] lEg,U02A8B,/lesseqqgtrR:less,dbleq,greater,[LESS-THANABOVEDOUBLE-LINEEQUALABOVEGREATER-THAN] leg,U022DA,/lesseqgtrR:less,eq,greater,[LESS-THANEQUALTOORGREATER-THAN] leq,U02264,aliasISOTECHle,[LESS-THANOREQUALTO] leqq,U02266,aliasISOAMSRlE,[LESS-THANOVEREQUALTO] leqslant,U02A7D,aliasISOAMSRles,[LESS-THANORSLANTEDEQUALTO] les,U02A7D,/leqslantR:less-than-or-eq,slant,[LESS-THANORSLANTEDEQUALTO] lescc,U02AA8,lessthan,closedbycurve,equal,slanted,[LESS-THANCLOSEDBYCURVEABOVESLANTEDEQUAL] lesdot,U02A7F,less-than-or-equal,slanted,dotinside,[LESS-THANORSLANTEDEQUALTOWITHDOTINSIDE] lesdoto,U02A81,less-than-or-equal,slanted,dotabove,[LESS-THANORSLANTEDEQUALTOWITHDOTABOVE] lesdotor,U02A83,less-than-or-equal,slanted,dotaboveright,[LESS-THANORSLANTEDEQUALTOWITHDOTABOVERIGHT] lesg,U022DA-0FE00,less,equal,slanted,greater,[LESS-THANslantedEQUALTOORGREATER-THAN] lesges,U02A93,less,equal,slanted,greater,equal,slanted,[LESS-THANABOVESLANTEDEQUALABOVEGREATER-THANABOVESLANTEDEQUAL] lessapprox,U02A85,aliasISOAMSRlap,[LESS-THANORAPPROXIMATE] lessdot,U022D6,aliasISOAMSRltdot,[LESS-THANWITHDOT] lesseqgtr,U022DA,aliasISOAMSRleg,[LESS-THANEQUALTOORGREATER-THAN] lesseqqgtr,U02A8B,aliasISOAMSRlEg,[LESS-THANABOVEDOUBLE-LINEEQUALABOVEGREATER-THAN] LessEqualGreater,U022DA,aliasISOAMSRleg,[LESS-THANEQUALTOORGREATER-THAN] LessFullEqual,U02266,aliasISOAMSRlE,[LESS-THANOVEREQUALTO] LessGreater,U02276,aliasISOAMSRlg,[LESS-THANORGREATER-THAN] lessgtr,U02276,aliasISOAMSRlg,[LESS-THANORGREATER-THAN] LessLess,U02AA1,aliasforLt,[DOUBLENESTEDLESS-THAN] lesssim,U02272,aliasISOAMSRlsim,[LESS-THANOREQUIVALENTTO] LessSlantEqual,U02A7D,aliasISOAMSRles,[LESS-THANORSLANTEDEQUALTO] LessTilde,U02272,aliasISOAMSRlsim,[LESS-THANOREQUIVALENTTO] lfisht,U0297C,leftfishtail,[LEFTFISHTAIL] lfloor,U0230A,/lfloorO:leftfloor,[LEFTFLOOR] Lfr,U1D50F,/frakL,uppercasel,[MATHEMATICALFRAKTURCAPITALL] lfr,U1D529,/frakl,lowercasel,[MATHEMATICALFRAKTURSMALLL] lg,U02276,/lessgtrR:less,greater,[LESS-THANORGREATER-THAN] lgE,U02A91,less,greater,equal,[LESS-THANABOVEGREATER-THANABOVEDOUBLE-LINEEQUAL] lHar,U02962,leftharpoon-upoverleftharpoon-down,[LEFTWARDSHARPOONWITHBARBUPABOVELEFTWARDSHARPOONWITHBARBDOWN] lhard,U021BD,/leftharpoondownA:lharpoon-down,[LEFTWARDSHARPOONWITHBARBDOWNWARDS] lharu,U021BC,/leftharpoonupA:leftharpoon-up,[LEFTWARDSHARPOONWITHBARBUPWARDS] lharul,U0296A,leftharpoon-upoverlongdash,[LEFTWARDSHARPOONWITHBARBUPABOVELONGDASH] lhblk,U02584,=lowerhalfblock,[LOWERHALFBLOCK] LJcy,U00409,=capitalLJE,Serbian,[CYRILLICCAPITALLETTERLJE] ljcy,U00459,=smalllje,Serbian,[CYRILLICSMALLLETTERLJE] Ll,U022D8,/Ll/lll/lllessR:tripleless-than,[VERYMUCHLESS-THAN] ll,U0226A,aliasISOAMSRLt,[MUCHLESS-THAN] llarr,U021C7,/leftleftarrowsA:twoleftarrows,[LEFTWARDSPAIREDARROWS] llcorner,U0231E,aliasISOAMSCdlcorn,[BOTTOMLEFTCORNER] Lleftarrow,U021DA,aliasISOAMSAlAarr,[LEFTWARDSTRIPLEARROW] llhard,U0296B,leftharpoon-downbelowlongdash,[LEFTWARDSHARPOONWITHBARBDOWNBELOWLONGDASH] lltri,U025FA,lowerlefttriangle,[LOWERLEFTTRIANGLE] Lmidot,U0013F,=capitalL,middledot,[LATINCAPITALLETTERLWITHMIDDLEDOT] lmidot,U00140,=smalll,middledot,[LATINSMALLLETTERLWITHMIDDLEDOT] lmoust,U023B0,/lmoustache,[UPPERLEFTORLOWERRIGHTCURLYBRACKETSECTION] lmoustache,U023B0,aliasISOAMSClmoust,[UPPERLEFTORLOWERRIGHTCURLYBRACKETSECTION] lnap,U02A89,/lnapproxN:less,notapproximate,[LESS-THANANDNOTAPPROXIMATE] lnapprox,U02A89,aliasISOAMSNlnap,[LESS-THANANDNOTAPPROXIMATE] lnE,U02268,/lneqqN:less,notdoubleequals,[LESS-THANBUTNOTEQUALTO] lne,U02A87,/lneqN:less,notequals,[LESS-THANANDSINGLE-LINENOTEQUALTO] lneq,U02A87,aliasISOAMSNlne,[LESS-THANANDSINGLE-LINENOTEQUALTO] lneqq,U02268,aliasISOAMSNlnE,[LESS-THANBUTNOTEQUALTO] lnsim,U022E6,/lnsimN:less,notsimilar,[LESS-THANBUTNOTEQUIVALENTTO] loang,U03018,leftopenangularbracket,[LEFTWHITETORTOISESHELLBRACKET] loarr,U021FD,leftopenarrow,[LEFTWARDSOPEN-HEADEDARROW] lobrk,U0301A,leftopenbracket,[LEFTWHITESQUAREBRACKET] LongLeftArrow,U027F5,aliasISOAMSAxlarr,[LONGLEFTWARDSARROW] Longleftarrow,U027F8,aliasISOAMSAxlArr,[LONGLEFTWARDSDOUBLEARROW] longleftarrow,U027F5,aliasISOAMSAxlarr,[LONGLEFTWARDSARROW] LongLeftRightArrow,U027F7,aliasISOAMSAxharr,[LONGLEFTRIGHTARROW] Longleftrightarrow,U027FA,aliasISOAMSAxhArr,[LONGLEFTRIGHTDOUBLEARROW] longleftrightarrow,U027F7,aliasISOAMSAxharr,[LONGLEFTRIGHTARROW] longmapsto,U027FC,aliasISOAMSAxmap,[LONGRIGHTWARDSARROWFROMBAR] LongRightArrow,U027F6,aliasISOAMSAxrarr,[LONGRIGHTWARDSARROW] Longrightarrow,U027F9,aliasISOAMSAxrArr,[LONGRIGHTWARDSDOUBLEARROW] longrightarrow,U027F6,aliasISOAMSAxrarr,[LONGRIGHTWARDSARROW] looparrowleft,U021AB,aliasISOAMSAlarrlp,[LEFTWARDSARROWWITHLOOP] looparrowright,U021AC,aliasISOAMSArarrlp,[RIGHTWARDSARROWWITHLOOP] lopar,U02985,leftopenparenthesis,[LEFTWHITEPARENTHESIS] Lopf,U1D543,/BbbL,openfaceL,[MATHEMATICALDOUBLE-STRUCKCAPITALL] lopf,U1D55D,,[MATHEMATICALDOUBLE-STRUCKSMALLL] loplus,U02A2D,plussigninlefthalfcircle,[PLUSSIGNINLEFTHALFCIRCLE] lotimes,U02A34,multiplysigninlefthalfcircle,[MULTIPLICATIONSIGNINLEFTHALFCIRCLE] lowast,U02217,lowasterisk,[ASTERISKOPERATOR] lowbar,U0005F,=lowline,[LOWLINE] LowerLeftArrow,U02199,aliasISOAMSAswarr,[SOUTHWESTARROW] LowerRightArrow,U02198,aliasISOAMSAsearr,[SOUTHEASTARROW] loz,U025CA,/lozenge-lozengeortotalmark,[LOZENGE] lozenge,U025CA,aliasISOPUBloz,[LOZENGE] lozf,U029EB,/blacklozenge-lozenge,filled,[BLACKLOZENGE] lpar,U00028,O:=leftparenthesis,[LEFTPARENTHESIS] lparlt,U02993,O:leftparenthesis,lt,[LEFTARCLESS-THANBRACKET] lrarr,U021C6,/leftrightarrowsA:larroverrarr,[LEFTWARDSARROWOVERRIGHTWARDSARROW] lrcorner,U0231F,aliasISOAMSCdrcorn,[BOTTOMRIGHTCORNER] lrhar,U021CB,/leftrightharpoonsA:lharpoverr,[LEFTWARDSHARPOONOVERRIGHTWARDSHARPOON] lrhard,U0296D,rightharpoon-downbelowlongdash,[RIGHTWARDSHARPOONWITHBARBDOWNBELOWLONGDASH] lrtri,U022BF,lowerrighttriangle,[RIGHTTRIANGLE] Lscr,U02112,/scrL,scriptletterL,[SCRIPTCAPITALL] lscr,U1D4C1,/scrl,scriptletterl,[MATHEMATICALSCRIPTSMALLL] Lsh,U021B0,aliasISOAMSAlsh,[UPWARDSARROWWITHTIPLEFTWARDS] lsh,U021B0,/LshA:,[UPWARDSARROWWITHTIPLEFTWARDS] lsim,U02272,/lesssimR:less,similar,[LESS-THANOREQUIVALENTTO] lsime,U02A8D,less,similar,equal,[LESS-THANABOVESIMILAROREQUAL] lsimg,U02A8F,less,similar,greater,[LESS-THANABOVESIMILARABOVEGREATER-THAN] lsqb,U0005B,/lbrackO:=leftsquarebracket,[LEFTSQUAREBRACKET] lsquo,U02018,=singlequotationmark,left,[LEFTSINGLEQUOTATIONMARK] lsquor,U0201A,=risingsinglequote,left(low),[SINGLELOW-9QUOTATIONMARK] Lstrok,U00141,=capitalL,stroke,[LATINCAPITALLETTERLWITHSTROKE] lstrok,U00142,=smalll,stroke,[LATINSMALLLETTERLWITHSTROKE] Lt,U0226A,/llR:doubleless-thansign,[MUCHLESS-THAN] lt,U0003C,=less-thansignR:,[LESS-THANSIGN] ltcc,U02AA6,lessthan,closedbycurve,[LESS-THANCLOSEDBYCURVE] ltcir,U02A79,lessthan,circleinside,[LESS-THANWITHCIRCLEINSIDE] ltdot,U022D6,/lessdotR:lessthan,withdot,[LESS-THANWITHDOT] lthree,U022CB,/leftthreetimesB:,[LEFTSEMIDIRECTPRODUCT] ltimes,U022C9,/ltimesB:timessign,leftclosed,[LEFTNORMALFACTORSEMIDIRECTPRODUCT] ltlarr,U02976,lessthan,leftarrow,[LESS-THANABOVELEFTWARDSARROW] ltquest,U02A7B,lessthan,questionmarkabove,[LESS-THANWITHQUESTIONMARKABOVE] ltri,U025C3,/triangleleftB:ltriangle,open,[WHITELEFT-POINTINGSMALLTRIANGLE] ltrie,U022B4,/trianglelefteqR:lefttriangle,eq,[NORMALSUBGROUPOFOREQUALTO] ltrif,U025C2,/blacktriangleleftR:=ltri,filled,[BLACKLEFT-POINTINGSMALLTRIANGLE] ltrPar,U02996,dblrightparenthesis,less,[DOUBLERIGHTARCLESS-THANBRACKET] lurdshar,U0294A,left-up-right-downharpoon,[LEFTBARBUPRIGHTBARBDOWNHARPOON] luruhar,U02966,leftharpoon-upoverrightharpoon-up,[LEFTWARDSHARPOONWITHBARBUPABOVERIGHTWARDSHARPOONWITHBARBUP] lvertneqq,U02268-0FE00,aliasISOAMSNlvnE,[LESS-THANBUTNOTEQUALTO-withverticalstroke] lvnE,U02268-0FE00,/lvertneqqN:less,vert,notdbleq,[LESS-THANBUTNOTEQUALTO-withverticalstroke] macr,U000AF,=macron,[MACRON] male,U02642,=malesymbol,[MALESIGN] malt,U02720,/maltese=maltesecross,[MALTESECROSS] maltese,U02720,aliasISOPUBmalt,[MALTESECROSS] Map,U02905,twoheadedmapsto,[RIGHTWARDSTWO-HEADEDARROWFROMBAR] map,U021A6,/mapstoA:,[RIGHTWARDSARROWFROMBAR] mapsto,U021A6,aliasISOAMSAmap,[RIGHTWARDSARROWFROMBAR] mapstodown,U021A7,downwardsarrowfrombar,[DOWNWARDSARROWFROMBAR] mapstoleft,U021A4,leftwardsarrowfrombar,[LEFTWARDSARROWFROMBAR] mapstoup,U021A5,upwardsarrowfrombar,[UPWARDSARROWFROMBAR] marker,U025AE,=histogrammarker,[BLACKVERTICALRECTANGLE] mcomma,U02A29,minus,commaabove,[MINUSSIGNWITHCOMMAABOVE] Mcy,U0041C,=capitalEM,Cyrillic,[CYRILLICCAPITALLETTEREM] mcy,U0043C,=smallem,Cyrillic,[CYRILLICSMALLLETTEREM] mdash,U02014,=emdash,[EMDASH] mDDot,U0223A,minuswithfourdots,geometricproperties,[GEOMETRICPROPORTION] measuredangle,U02221,aliasISOAMSOangmsd,[MEASUREDANGLE] MediumSpace,U0205F,spaceofwidth4/18em,[MEDIUMMATHEMATICALSPACE] Mellintrf,U02133,Mellintransform,[SCRIPTCAPITALM] Mfr,U1D510,/frakM,uppercasem,[MATHEMATICALFRAKTURCAPITALM] mfr,U1D52A,/frakm,lowercasem,[MATHEMATICALFRAKTURSMALLM] mho,U02127,/mho-conductance,[INVERTEDOHMSIGN] micro,U000B5,=microsign,[MICROSIGN] mid,U02223,/midR:,[DIVIDES] midast,U0002A,/astB:asterisk,[ASTERISK] midcir,U02AF0,mid,circlebelow,[VERTICALLINEWITHCIRCLEBELOW] middot,U000B7,/centerdotB:=middledot,[MIDDLEDOT] minus,U02212,B:minussign,[MINUSSIGN] minusb,U0229F,/boxminusB:minussigninbox,[SQUAREDMINUS] minusd,U02238,/dotminusB:minussign,dotabove,[DOTMINUS] minusdu,U02A2A,minussign,dotbelow,[MINUSSIGNWITHDOTBELOW] MinusPlus,U02213,aliasISOTECHmnplus,[MINUS-OR-PLUSSIGN] mlcp,U02ADB,/mlcp,[TRANSVERSALINTERSECTION] mldr,U02026,emleader,[HORIZONTALELLIPSIS] mnplus,U02213,/mpB:minus-or-plussign,[MINUS-OR-PLUSSIGN] models,U022A7,/modelsR:,[MODELS] Mopf,U1D544,/BbbM,openfaceM,[MATHEMATICALDOUBLE-STRUCKCAPITALM] mopf,U1D55E,,[MATHEMATICALDOUBLE-STRUCKSMALLM] mp,U02213,aliasISOTECHmnplus,[MINUS-OR-PLUSSIGN] Mscr,U02133,/scrM,scriptletterM,[SCRIPTCAPITALM] mscr,U1D4C2,/scrm,scriptletterm,[MATHEMATICALSCRIPTSMALLM] mstpos,U0223E,mostpositive,[INVERTEDLAZYS] mu,U003BC,/musmallmu,Greek,[GREEKSMALLLETTERMU] multimap,U022B8,aliasISOAMSAmumap,[MULTIMAP] mumap,U022B8,/multimapA:,[MULTIMAP] nabla,U02207,/nabladel,Hamiltonoperator,[NABLA] Nacute,U00143,=capitalN,acuteaccent,[LATINCAPITALLETTERNWITHACUTE] nacute,U00144,=smalln,acuteaccent,[LATINSMALLLETTERNWITHACUTE] nang,U02220-020D2,not,vert,angle,[ANGLEwithverticalline] nap,U02249,/napproxN:notapproximate,[NOTALMOSTEQUALTO] napE,U02A70-00338,notapproximatelyequalorequalto,[APPROXIMATELYEQUALOREQUALTOwithslash] napid,U0224B-00338,notapproximatelyidenticalto,[TRIPLETILDEwithslash] napos,U00149,=smalln,apostrophe,[LATINSMALLLETTERNPRECEDEDBYAPOSTROPHE] napprox,U02249,aliasISOAMSNnap,[NOTALMOSTEQUALTO] natur,U0266E,/natural-musicnatural,[MUSICNATURALSIGN] natural,U0266E,aliasISOPUBnatur,[MUSICNATURALSIGN] naturals,U02115,thesemi-ringofnaturalnumbers,[DOUBLE-STRUCKCAPITALN] nbsp,U000A0,=nobreak(required)space,[NO-BREAKSPACE] nbump,U0224E-00338,notbumpyequals,[GEOMETRICALLYEQUIVALENTTOwithslash] nbumpe,U0224F-00338,notbumpysingleequals,[DIFFERENCEBETWEENwithslash] ncap,U02A43,bar,intersection,[INTERSECTIONWITHOVERBAR] Ncaron,U00147,=capitalN,caron,[LATINCAPITALLETTERNWITHCARON] ncaron,U00148,=smalln,caron,[LATINSMALLLETTERNWITHCARON] Ncedil,U00145,=capitalN,cedilla,[LATINCAPITALLETTERNWITHCEDILLA] ncedil,U00146,=smalln,cedilla,[LATINSMALLLETTERNWITHCEDILLA] ncong,U02247,/ncongN:notcongruentwith,[NEITHERAPPROXIMATELYNORACTUALLYEQUALTO] ncongdot,U02A6D-00338,notcongruent,dot,[CONGRUENTWITHDOTABOVEwithslash] ncup,U02A42,bar,union,[UNIONWITHOVERBAR] Ncy,U0041D,=capitalEN,Cyrillic,[CYRILLICCAPITALLETTEREN] ncy,U0043D,=smallen,Cyrillic,[CYRILLICSMALLLETTEREN] ndash,U02013,=endash,[ENDASH] ne,U02260,/ne/neqR:notequal,[NOTEQUALTO] nearhk,U02924,NEarrow-hooked,[NORTHEASTARROWWITHHOOK] neArr,U021D7,NEpointingdblarrow,[NORTHEASTDOUBLEARROW] nearr,U02197,/nearrowA:NEpointingarrow,[NORTHEASTARROW] nearrow,U02197,aliasISOAMSAnearr,[NORTHEASTARROW] nedot,U02250-00338,notequal,dot,[APPROACHESTHELIMITwithslash] NegativeMediumSpace,U0200B,spaceofwidth-4/18em,[ZEROWIDTHSPACE] NegativeThickSpace,U0200B,spaceofwidth-5/18em,[ZEROWIDTHSPACE] NegativeThinSpace,U0200B,spaceofwidth-3/18em,[ZEROWIDTHSPACE] NegativeVeryThinSpace,U0200B,spaceofwidth-1/18em,[ZEROWIDTHSPACE] nequiv,U02262,/nequivN:notidenticalwith,[NOTIDENTICALTO] nesear,U02928,/toeaA:NE&SEarrows,[NORTHEASTARROWANDSOUTHEASTARROW] nesim,U02242-00338,notequalorsimilar,[MINUSTILDEwithslash] NestedGreaterGreater,U0226B,aliasISOAMSRGt,[MUCHGREATER-THAN] NestedLessLess,U0226A,aliasISOAMSRLt,[MUCHLESS-THAN] NewLine,U0000A,forcealinebreak;linefeed,[LINEFEED(LF)] nexist,U02204,/nexists-negatedexists,[THEREDOESNOTEXIST] nexists,U02204,aliasISOAMSOnexist,[THEREDOESNOTEXIST] Nfr,U1D511,/frakN,uppercasen,[MATHEMATICALFRAKTURCAPITALN] nfr,U1D52B,/frakn,lowercasen,[MATHEMATICALFRAKTURSMALLN] ngE,U02267-00338,/ngeqqN:notgreater,dblequals,[GREATER-THANOVEREQUALTOwithslash] nge,U02271,/ngeqN:notgreater-than-or-equal,[NEITHERGREATER-THANNOREQUALTO] ngeq,U02271,aliasISOAMSNnge,[NEITHERGREATER-THANNOREQUALTO] ngeqq,U02267-00338,aliasISOAMSNngE,[GREATER-THANOVEREQUALTOwithslash] ngeqslant,U02A7E-00338,aliasISOAMSNnges,[GREATER-THANORSLANTEDEQUALTOwithslash] nges,U02A7E-00338,/ngeqslantN:notgt-or-eq,slanted,[GREATER-THANORSLANTEDEQUALTOwithslash] nGg,U022D9-00338,nottriplegreaterthan,[VERYMUCHGREATER-THANwithslash] ngsim,U02275,notgreater,similar,[NEITHERGREATER-THANNOREQUIVALENTTO] nGt,U0226B-020D2,not,vert,muchgreaterthan,[MUCHGREATERTHANwithverticalline] ngt,U0226F,/ngtrN:notgreater-than,[NOTGREATER-THAN] ngtr,U0226F,aliasISOAMSNngt,[NOTGREATER-THAN] nGtv,U0226B-00338,notmuchgreaterthan,variant,[MUCHGREATERTHANwithslash] nhArr,U021CE,/nLeftrightarrowA:notl&rdblarr,[LEFTRIGHTDOUBLEARROWWITHSTROKE] nharr,U021AE,/nleftrightarrowA:notl&rarrow,[LEFTRIGHTARROWWITHSTROKE] nhpar,U02AF2,not,horizontal,parallel,[PARALLELWITHHORIZONTALSTROKE] ni,U0220B,/ni/ownsR:contains,[CONTAINSASMEMBER] nis,U022FC,contains,verticalbaronhorizontalstroke,[SMALLCONTAINSWITHVERTICALBARATENDOFHORIZONTALSTROKE] nisd,U022FA,contains,longhorizontalstroke,[CONTAINSWITHLONGHORIZONTALSTROKE] niv,U0220B,contains,variant,[CONTAINSASMEMBER] NJcy,U0040A,=capitalNJE,Serbian,[CYRILLICCAPITALLETTERNJE] njcy,U0045A,=smallnje,Serbian,[CYRILLICSMALLLETTERNJE] nlArr,U021CD,/nLeftarrowA:notimpliedby,[LEFTWARDSDOUBLEARROWWITHSTROKE] nlarr,U0219A,/nleftarrowA:notleftarrow,[LEFTWARDSARROWWITHSTROKE] nldr,U02025,=doublebaselinedot(enleader),[TWODOTLEADER] nlE,U02266-00338,/nleqqN:notless,dblequals,[LESS-THANOVEREQUALTOwithslash] nle,U02270,/nleqN:notless-than-or-equal,[NEITHERLESS-THANNOREQUALTO] nLeftarrow,U021CD,aliasISOAMSAnlArr,[LEFTWARDSDOUBLEARROWWITHSTROKE] nleftarrow,U0219A,aliasISOAMSAnlarr,[LEFTWARDSARROWWITHSTROKE] nLeftrightarrow,U021CE,aliasISOAMSAnhArr,[LEFTRIGHTDOUBLEARROWWITHSTROKE] nleftrightarrow,U021AE,aliasISOAMSAnharr,[LEFTRIGHTARROWWITHSTROKE] nleq,U02270,aliasISOAMSNnle,[NEITHERLESS-THANNOREQUALTO] nleqq,U02266-00338,aliasISOAMSNnlE,[LESS-THANOVEREQUALTOwithslash] nleqslant,U02A7D-00338,aliasISOAMSNnles,[LESS-THANORSLANTEDEQUALTOwithslash] nles,U02A7D-00338,/nleqslantN:notless-or-eq,slant,[LESS-THANORSLANTEDEQUALTOwithslash] nless,U0226E,aliasISOAMSNnlt,[NOTLESS-THAN] nLl,U022D8-00338,nottriplelessthan,[VERYMUCHLESS-THANwithslash] nlsim,U02274,notless,similar,[NEITHERLESS-THANNOREQUIVALENTTO] nLt,U0226A-020D2,not,vert,muchlessthan,[MUCHLESSTHANwithverticalline] nlt,U0226E,/nlessN:notless-than,[NOTLESS-THAN] nltri,U022EA,/ntriangleleftN:notlefttriangle,[NOTNORMALSUBGROUPOF] nltrie,U022EC,/ntrianglelefteqN:notltri,eq,[NOTNORMALSUBGROUPOFOREQUALTO] nLtv,U0226A-00338,notmuchlessthan,variant,[MUCHLESSTHANwithslash] nmid,U02224,/nmid,[DOESNOTDIVIDE] NoBreak,U02060,neverbreaklinehere,[WORDJOINER] NonBreakingSpace,U000A0,aliasISONUMnbsp,[NO-BREAKSPACE] Nopf,U02115,/BbbN,openfaceN,[DOUBLE-STRUCKCAPITALN] nopf,U1D55F,,[MATHEMATICALDOUBLE-STRUCKSMALLN] Not,U02AEC,notwithtwohorizontalstrokes,[DOUBLESTROKENOTSIGN] not,U000AC,/neg/lnot=notsign,[NOTSIGN] NotCongruent,U02262,aliasISOAMSNnequiv,[NOTIDENTICALTO] NotCupCap,U0226D,aliasfor&nasymp;,[NOTEQUIVALENTTO] NotDoubleVerticalBar,U02226,aliasISOAMSNnpar,[NOTPARALLELTO] NotElement,U02209,aliasISOTECHnotin,[NOTANELEMENTOF] NotEqual,U02260,aliasISOTECHne,[NOTEQUALTO] NotEqualTilde,U02242-00338,aliasfor&nesim;,[MINUSTILDEwithslash] NotExists,U02204,aliasISOAMSOnexist,[THEREDOESNOTEXIST] NotGreater,U0226F,aliasISOAMSNngt,[NOTGREATER-THAN] NotGreaterEqual,U02271,aliasISOAMSNnge,[NEITHERGREATER-THANNOREQUALTO] NotGreaterFullEqual,U02266-00338,aliasISOAMSNnlE,[LESS-THANOVEREQUALTOwithslash] NotGreaterGreater,U0226B-00338,aliasISOAMSNnGtv,[MUCHGREATERTHANwithslash] NotGreaterLess,U02279,aliasISOAMSNntvgl,[NEITHERGREATER-THANNORLESS-THAN] NotGreaterSlantEqual,U02A7E-00338,aliasISOAMSNnges,[GREATER-THANORSLANTEDEQUALTOwithslash] NotGreaterTilde,U02275,aliasISOAMSNngsim,[NEITHERGREATER-THANNOREQUIVALENTTO] NotHumpDownHump,U0224E-00338,aliasfor&nbump;,[GEOMETRICALLYEQUIVALENTTOwithslash] NotHumpEqual,U0224F-00338,aliasfor&nbumpe;,[DIFFERENCEBETWEENwithslash] notin,U02209,/notinN:negatedsetmembership,[NOTANELEMENTOF] notindot,U022F5-00338,negatedsetmembership,dotabove,[ELEMENTOFWITHDOTABOVEwithslash] notinE,U022F9-00338,negatedsetmembership,twohorizontalstrokes,[ELEMENTOFWITHTWOHORIZONTALSTROKESwithslash] notinva,U02209,negatedsetmembership,variant,[NOTANELEMENTOF] notinvb,U022F7,negatedsetmembership,variant,[SMALLELEMENTOFWITHOVERBAR] notinvc,U022F6,negatedsetmembership,variant,[ELEMENTOFWITHOVERBAR] NotLeftTriangle,U022EA,aliasISOAMSNnltri,[NOTNORMALSUBGROUPOF] NotLeftTriangleBar,U029CF-00338,notlefttriangle,verticalbar,[LEFTTRIANGLEBESIDEVERTICALBARwithslash] NotLeftTriangleEqual,U022EC,aliasISOAMSNnltrie,[NOTNORMALSUBGROUPOFOREQUALTO] NotLess,U0226E,aliasISOAMSNnlt,[NOTLESS-THAN] NotLessEqual,U02270,aliasISOAMSNnle,[NEITHERLESS-THANNOREQUALTO] NotLessGreater,U02278,aliasISOAMSNntvlg,[NEITHERLESS-THANNORGREATER-THAN] NotLessLess,U0226A-00338,aliasISOAMSNnLtv,[MUCHLESSTHANwithslash] NotLessSlantEqual,U02A7D-00338,aliasISOAMSNnles,[LESS-THANORSLANTEDEQUALTOwithslash] NotLessTilde,U02274,aliasISOAMSNnlsim,[NEITHERLESS-THANNOREQUIVALENTTO] NotNestedGreaterGreater,U02AA2-00338,notdoublegreater-thansign,[DOUBLENESTEDGREATER-THANwithslash] NotNestedLessLess,U02AA1-00338,notdoubleless-thansign,[DOUBLENESTEDLESS-THANwithslash] notni,U0220C,negatedcontains,[DOESNOTCONTAINASMEMBER] notniva,U0220C,negatedcontains,variant,[DOESNOTCONTAINASMEMBER] notnivb,U022FE,contains,variant,[SMALLCONTAINSWITHOVERBAR] notnivc,U022FD,contains,variant,[CONTAINSWITHOVERBAR] NotPrecedes,U02280,aliasISOAMSNnpr,[DOESNOTPRECEDE] NotPrecedesEqual,U02AAF-00338,aliasISOAMSNnpre,[PRECEDESABOVESINGLE-LINEEQUALSSIGNwithslash] NotPrecedesSlantEqual,U022E0,aliasISOAMSNnprcue,[DOESNOTPRECEDEOREQUAL] NotReverseElement,U0220C,aliasISOTECHnotniva,[DOESNOTCONTAINASMEMBER] NotRightTriangle,U022EB,aliasISOAMSNnrtri,[DOESNOTCONTAINASNORMALSUBGROUP] NotRightTriangleBar,U029D0-00338,notverticalbar,righttriangle,[VERTICALBARBESIDERIGHTTRIANGLEwithslash] NotRightTriangleEqual,U022ED,aliasISOAMSNnrtrie,[DOESNOTCONTAINASNORMALSUBGROUPOREQUAL] NotSquareSubset,U0228F-00338,squarenotsubset,[SQUAREIMAGEOFwithslash] NotSquareSubsetEqual,U022E2,aliasISOAMSNnsqsube,[NOTSQUAREIMAGEOFOREQUALTO] NotSquareSuperset,U02290-00338,negatedset-likepartialorderoperator,[SQUAREORIGINALOFwithslash] NotSquareSupersetEqual,U022E3,aliasISOAMSNnsqsupe,[NOTSQUAREORIGINALOFOREQUALTO] NotSubset,U02282-020D2,aliasISOAMSNvnsub,[SUBSETOFwithverticalline] NotSubsetEqual,U02288,aliasISOAMSNnsube,[NEITHERASUBSETOFNOREQUALTO] NotSucceeds,U02281,aliasISOAMSNnsc,[DOESNOTSUCCEED] NotSucceedsEqual,U02AB0-00338,aliasISOAMSNnsce,[SUCCEEDSABOVESINGLE-LINEEQUALSSIGNwithslash] NotSucceedsSlantEqual,U022E1,aliasISOAMSNnsccue,[DOESNOTSUCCEEDOREQUAL] NotSucceedsTilde,U0227F-00338,notsucceedsorsimilar,[SUCCEEDSOREQUIVALENTTOwithslash] NotSuperset,U02283-020D2,aliasISOAMSNvnsup,[SUPERSETOFwithverticalline] NotSupersetEqual,U02289,aliasISOAMSNnsupe,[NEITHERASUPERSETOFNOREQUALTO] NotTilde,U02241,aliasISOAMSNnsim,[NOTTILDE] NotTildeEqual,U02244,aliasISOAMSNnsime,[NOTASYMPTOTICALLYEQUALTO] NotTildeFullEqual,U02247,aliasISOAMSNncong,[NEITHERAPPROXIMATELYNORACTUALLYEQUALTO] NotTildeTilde,U02249,aliasISOAMSNnap,[NOTALMOSTEQUALTO] NotVerticalBar,U02224,aliasISOAMSNnmid,[DOESNOTDIVIDE] npar,U02226,/nparallelN:notparallel,[NOTPARALLELTO] nparallel,U02226,aliasISOAMSNnpar,[NOTPARALLELTO] nparsl,U02AFD-020E5,notparallel,slanted,[DOUBLESOLIDUSOPERATORwithreverseslash] npart,U02202-00338,notpartialdifferential,[PARTIALDIFFERENTIALwithslash] npolint,U02A14,lineintegration,notincludingthepole,[LINEINTEGRATIONNOTINCLUDINGTHEPOLE] npr,U02280,/nprecN:notprecedes,[DOESNOTPRECEDE] nprcue,U022E0,notcurlyprecedes,eq,[DOESNOTPRECEDEOREQUAL] npre,U02AAF-00338,/npreceqN:notprecedes,equals,[PRECEDESABOVESINGLE-LINEEQUALSSIGNwithslash] nprec,U02280,aliasISOAMSNnpr,[DOESNOTPRECEDE] npreceq,U02AAF-00338,aliasISOAMSNnpre,[PRECEDESABOVESINGLE-LINEEQUALSSIGNwithslash] nrArr,U021CF,/nRightarrowA:notimplies,[RIGHTWARDSDOUBLEARROWWITHSTROKE] nrarr,U0219B,/nrightarrowA:notrightarrow,[RIGHTWARDSARROWWITHSTROKE] nrarrc,U02933-00338,notrightarrow-curved,[WAVEARROWPOINTINGDIRECTLYRIGHTwithslash] nrarrw,U0219D-00338,notrightarrow-wavy,[RIGHTWARDSWAVEARROWwithslash] nRightarrow,U021CF,aliasISOAMSAnrArr,[RIGHTWARDSDOUBLEARROWWITHSTROKE] nrightarrow,U0219B,aliasISOAMSAnrarr,[RIGHTWARDSARROWWITHSTROKE] nrtri,U022EB,/ntrianglerightN:notrttriangle,[DOESNOTCONTAINASNORMALSUBGROUP] nrtrie,U022ED,/ntrianglerighteqN:notrtri,eq,[DOESNOTCONTAINASNORMALSUBGROUPOREQUAL] nsc,U02281,/nsuccN:notsucceeds,[DOESNOTSUCCEED] nsccue,U022E1,notsucceeds,curlyeq,[DOESNOTSUCCEEDOREQUAL] nsce,U02AB0-00338,/nsucceqN:notsucceeds,equals,[SUCCEEDSABOVESINGLE-LINEEQUALSSIGNwithslash] Nscr,U1D4A9,/scrN,scriptletterN,[MATHEMATICALSCRIPTCAPITALN] nscr,U1D4C3,/scrn,scriptlettern,[MATHEMATICALSCRIPTSMALLN] nshortmid,U02224,aliasISOAMSNnsmid,[DOESNOTDIVIDE] nshortparallel,U02226,aliasISOAMSNnspar,[NOTPARALLELTO] nsim,U02241,/nsimN:notsimilar,[NOTTILDE] nsime,U02244,/nsimeqN:notsimilar,equals,[NOTASYMPTOTICALLYEQUALTO] nsimeq,U02244,aliasISOAMSNnsime,[NOTASYMPTOTICALLYEQUALTO] nsmid,U02224,/nshortmid,[DOESNOTDIVIDE] nspar,U02226,/nshortparallelN:notshortpar,[NOTPARALLELTO] nsqsube,U022E2,not,squaresubset,equals,[NOTSQUAREIMAGEOFOREQUALTO] nsqsupe,U022E3,not,squaresuperset,equals,[NOTSQUAREORIGINALOFOREQUALTO] nsub,U02284,notsubset,[NOTASUBSETOF] nsubE,U02AC5-00338,/nsubseteqqN:notsubset,dbleq,[SUBSETOFABOVEEQUALSSIGNwithslash] nsube,U02288,/nsubseteqN:notsubset,equals,[NEITHERASUBSETOFNOREQUALTO] nsubset,U02282-020D2,aliasISOAMSNvnsub,[SUBSETOFwithverticalline] nsubseteq,U02288,aliasISOAMSNnsube,[NEITHERASUBSETOFNOREQUALTO] nsubseteqq,U02AC5-00338,aliasISOAMSNnsubE,[SUBSETOFABOVEEQUALSSIGNwithslash] nsucc,U02281,aliasISOAMSNnsc,[DOESNOTSUCCEED] nsucceq,U02AB0-00338,aliasISOAMSNnsce,[SUCCEEDSABOVESINGLE-LINEEQUALSSIGNwithslash] nsup,U02285,notsuperset,[NOTASUPERSETOF] nsupE,U02AC6-00338,/nsupseteqqN:notsuperset,dbleq,[SUPERSETOFABOVEEQUALSSIGNwithslash] nsupe,U02289,/nsupseteqN:notsuperset,equals,[NEITHERASUPERSETOFNOREQUALTO] nsupset,U02283-020D2,aliasISOAMSNvnsup,[SUPERSETOFwithverticalline] nsupseteq,U02289,aliasISOAMSNnsupe,[NEITHERASUPERSETOFNOREQUALTO] nsupseteqq,U02AC6-00338,aliasISOAMSNnsupE,[SUPERSETOFABOVEEQUALSSIGNwithslash] ntgl,U02279,notgreater,less,[NEITHERGREATER-THANNORLESS-THAN] Ntilde,U000D1,=capitalN,tilde,[LATINCAPITALLETTERNWITHTILDE] ntilde,U000F1,=smalln,tilde,[LATINSMALLLETTERNWITHTILDE] ntlg,U02278,notless,greater,[NEITHERLESS-THANNORGREATER-THAN] ntriangleleft,U022EA,aliasISOAMSNnltri,[NOTNORMALSUBGROUPOF] ntrianglelefteq,U022EC,aliasISOAMSNnltrie,[NOTNORMALSUBGROUPOFOREQUALTO] ntriangleright,U022EB,aliasISOAMSNnrtri,[DOESNOTCONTAINASNORMALSUBGROUP] ntrianglerighteq,U022ED,aliasISOAMSNnrtrie,[DOESNOTCONTAINASNORMALSUBGROUPOREQUAL] nu,U003BD,/nusmallnu,Greek,[GREEKSMALLLETTERNU] num,U00023,=numbersign,[NUMBERSIGN] numero,U02116,=numerosign,[NUMEROSIGN] numsp,U02007,=digitspace(widthofanumber),[FIGURESPACE] nvap,U0224D-020D2,not,vert,approximate,[EQUIVALENTTOwithverticalline] nVDash,U022AF,/nVDashN:notdblvert,dbldash,[NEGATEDDOUBLEVERTICALBARDOUBLERIGHTTURNSTILE] nVdash,U022AE,/nVdashN:notdblvertical,dash,[DOESNOTFORCE] nvDash,U022AD,/nvDashN:notvertical,dbldash,[NOTTRUE] nvdash,U022AC,/nvdashN:notvertical,dash,[DOESNOTPROVE] nvge,U02265-020D2,not,vert,greater-than-or-equal,[GREATER-THANOREQUALTOwithverticalline] nvgt,U0003E-020D2,not,vert,greater-than,[GREATER-THANSIGNwithverticalline] nvHarr,U02904,not,vert,leftandrightdoublearrow,[LEFTRIGHTDOUBLEARROWWITHVERTICALSTROKE] nvinfin,U029DE,not,vert,infinity,[INFINITYNEGATEDWITHVERTICALBAR] nvlArr,U02902,not,vert,leftdoublearrow,[LEFTWARDSDOUBLEARROWWITHVERTICALSTROKE] nvle,U02264-020D2,not,vert,less-than-or-equal,[LESS-THANOREQUALTOwithverticalline] nvlt,U0003C-020D2,not,vert,less-than,[LESS-THANSIGNwithverticalline] nvltrie,U022B4-020D2,not,vert,lefttriangle,equals,[NORMALSUBGROUPOFOREQUALTOwithverticalline] nvrArr,U02903,not,vert,rightdoublearrow,[RIGHTWARDSDOUBLEARROWWITHVERTICALSTROKE] nvrtrie,U022B5-020D2,not,vert,righttriangle,equals,[CONTAINSASNORMALSUBGROUPOREQUALTOwithverticalline] nvsim,U0223C-020D2,not,vert,similar,[TILDEOPERATORwithverticalline] nwarhk,U02923,NWarrow-hooked,[NORTHWESTARROWWITHHOOK] nwArr,U021D6,NWpointingdblarrow,[NORTHWESTDOUBLEARROW] nwarr,U02196,/nwarrowA:NWpointingarrow,[NORTHWESTARROW] nwarrow,U02196,aliasISOAMSAnwarr,[NORTHWESTARROW] nwnear,U02927,NW&NEarrows,[NORTHWESTARROWANDNORTHEASTARROW] Oacute,U000D3,=capitalO,acuteaccent,[LATINCAPITALLETTEROWITHACUTE] oacute,U000F3,=smallo,acuteaccent,[LATINSMALLLETTEROWITHACUTE] oast,U0229B,/circledastB:asteriskincircle,[CIRCLEDASTERISKOPERATOR] ocir,U0229A,/circledcircB:smallcircleincircle,[CIRCLEDRINGOPERATOR] Ocirc,U000D4,=capitalO,circumflexaccent,[LATINCAPITALLETTEROWITHCIRCUMFLEX] ocirc,U000F4,=smallo,circumflexaccent,[LATINSMALLLETTEROWITHCIRCUMFLEX] Ocy,U0041E,=capitalO,Cyrillic,[CYRILLICCAPITALLETTERO] ocy,U0043E,=smallo,Cyrillic,[CYRILLICSMALLLETTERO] odash,U0229D,/circleddashB:hyphenincircle,[CIRCLEDDASH] Odblac,U00150,=capitalO,doubleacuteaccent,[LATINCAPITALLETTEROWITHDOUBLEACUTE] odblac,U00151,=smallo,doubleacuteaccent,[LATINSMALLLETTEROWITHDOUBLEACUTE] odiv,U02A38,divideincircle,[CIRCLEDDIVISIONSIGN] odot,U02299,/odotB:middledotincircle,[CIRCLEDDOTOPERATOR] odsold,U029BC,dot,solidus,dotincircle,[CIRCLEDANTICLOCKWISE-ROTATEDDIVISIONSIGN] OElig,U00152,=capitalOEligature,[LATINCAPITALLIGATUREOE] oelig,U00153,=smalloeligature,[LATINSMALLLIGATUREOE] ofcir,U029BF,filledcircleincircle,[CIRCLEDBULLET] Ofr,U1D512,/frakO,uppercaseo,[MATHEMATICALFRAKTURCAPITALO] ofr,U1D52C,/frako,lowercaseo,[MATHEMATICALFRAKTURSMALLO] ogon,U002DB,=ogonek,[OGONEK] Ograve,U000D2,=capitalO,graveaccent,[LATINCAPITALLETTEROWITHGRAVE] ograve,U000F2,=smallo,graveaccent,[LATINSMALLLETTEROWITHGRAVE] ogt,U029C1,greater-thanincircle,[CIRCLEDGREATER-THAN] ohbar,U029B5,circlewithhorizontalbar,[CIRCLEWITHHORIZONTALBAR] ohm,U02126,=ohmsign,[OHMSIGN] oint,U0222E,aliasISOTECHconint,[CONTOURINTEGRAL] olarr,U021BA,/circlearrowleftA:larrincircle,[ANTICLOCKWISEOPENCIRCLEARROW] olcir,U029BE,largecircleincircle,[CIRCLEDWHITEBULLET] olcross,U029BB,circle,cross,[CIRCLEWITHSUPERIMPOSEDX] olt,U029C0,less-thanincircle,[CIRCLEDLESS-THAN] Omacr,U0014C,=capitalO,macron,[LATINCAPITALLETTEROWITHMACRON] omacr,U0014D,=smallo,macron,[LATINSMALLLETTEROWITHMACRON] Omega,U003A9,/OmegacapitalOmega,Greek,[GREEKCAPITALLETTEROMEGA] omega,U003C9,/omegasmallomega,Greek,[GREEKSMALLLETTEROMEGA] omid,U029B6,verticalbarincircle,[CIRCLEDVERTICALBAR] ominus,U02296,/ominusB:minussignincircle,[CIRCLEDMINUS] Oopf,U1D546,/BbbO,openfaceO,[MATHEMATICALDOUBLE-STRUCKCAPITALO] oopf,U1D560,,[MATHEMATICALDOUBLE-STRUCKSMALLO] opar,U029B7,parallelincircle,[CIRCLEDPARALLEL] OpenCurlyDoubleQuote,U0201C,aliasISONUMldquo,[LEFTDOUBLEQUOTATIONMARK] OpenCurlyQuote,U02018,aliasISONUMlsquo,[LEFTSINGLEQUOTATIONMARK] operp,U029B9,perpendicularincircle,[CIRCLEDPERPENDICULAR] oplus,U02295,/oplusB:plussignincircle,[CIRCLEDPLUS] Or,U02A54,dbllogicalor,[DOUBLELOGICALOR] or,U02228,/vee/lorB:logicalor,[LOGICALOR] orarr,U021BB,/circlearrowrightA:rarrincircle,[CLOCKWISEOPENCIRCLEARROW] ord,U02A5D,or,horizontaldash,[LOGICALORWITHHORIZONTALDASH] order,U02134,orderof(scriptsmallo),[SCRIPTSMALLO] orderof,U02134,aliasISOTECHorder,[SCRIPTSMALLO] ordf,U000AA,=ordinalindicator,feminine,[FEMININEORDINALINDICATOR] ordm,U000BA,=ordinalindicator,masculine,[MASCULINEORDINALINDICATOR] origof,U022B6,originalof,[ORIGINALOF] oror,U02A56,twologicalor,[TWOINTERSECTINGLOGICALOR] orslope,U02A57,slopinglargeor,[SLOPINGLARGEOR] orv,U02A5B,orwithmiddlestem,[LOGICALORWITHMIDDLESTEM] oS,U024C8,/circledS-capitalSincircle,[CIRCLEDLATINCAPITALLETTERS] Oscr,U1D4AA,/scrO,scriptletterO,[MATHEMATICALSCRIPTCAPITALO] oscr,U02134,/scro,scriptlettero,[SCRIPTSMALLO] Oslash,U000D8,=capitalO,slash,[LATINCAPITALLETTEROWITHSTROKE] oslash,U000F8,latinsmallletterowithstroke,[LATINSMALLLETTEROWITHSTROKE] osol,U02298,/oslashB:solidusincircle,[CIRCLEDDIVISIONSLASH] Otilde,U000D5,=capitalO,tilde,[LATINCAPITALLETTEROWITHTILDE] otilde,U000F5,=smallo,tilde,[LATINSMALLLETTEROWITHTILDE] Otimes,U02A37,multiplysignindoublecircle,[MULTIPLICATIONSIGNINDOUBLECIRCLE] otimes,U02297,/otimesB:multiplysignincircle,[CIRCLEDTIMES] otimesas,U02A36,multiplysignincircle,circumflexaccent,[CIRCLEDMULTIPLICATIONSIGNWITHCIRCUMFLEXACCENT] Ouml,U000D6,=capitalO,dieresisorumlautmark,[LATINCAPITALLETTEROWITHDIAERESIS] ouml,U000F6,=smallo,dieresisorumlautmark,[LATINSMALLLETTEROWITHDIAERESIS] ovbar,U0233D,circlewithverticalbar,[APLFUNCTIONALSYMBOLCIRCLESTILE] OverBar,U000AF,overbar,[MACRON] OverBrace,U0FE37,overbrace,[PRESENTATIONFORMFORVERTICALLEFTCURLYBRACKET] OverBracket,U023B4,overbracket,[TOPSQUAREBRACKET] OverParenthesis,U0FE35,overparenthesis,[PRESENTATIONFORMFORVERTICALLEFTPARENTHESIS] par,U02225,/parallelR:parallel,[PARALLELTO] para,U000B6,=pilcrow(paragraphsign),[PILCROWSIGN] parallel,U02225,aliasISOTECHpar,[PARALLELTO] parsim,U02AF3,parallel,similar,[PARALLELWITHTILDEOPERATOR] parsl,U02AFD,parallel,slanted,[DOUBLESOLIDUSOPERATOR] part,U02202,/partialpartialdifferential,[PARTIALDIFFERENTIAL] PartialD,U02202,aliasISOTECHpart,[PARTIALDIFFERENTIAL] Pcy,U0041F,=capitalPE,Cyrillic,[CYRILLICCAPITALLETTERPE] pcy,U0043F,=smallpe,Cyrillic,[CYRILLICSMALLLETTERPE] percnt,U00025,=percentsign,[PERCENTSIGN] period,U0002E,=fullstop,period,[FULLSTOP] permil,U02030,perthousand,[PERMILLESIGN] perp,U022A5,/perpR:perpendicular,[UPTACK] pertenk,U02031,per10thousand,[PERTENTHOUSANDSIGN] Pfr,U1D513,/frakP,uppercasep,[MATHEMATICALFRAKTURCAPITALP] pfr,U1D52D,/frakp,lowercasep,[MATHEMATICALFRAKTURSMALLP] Phi,U003A6,/PhicapitalPhi,Greek,[GREEKCAPITALLETTERPHI] phi,U003D5,/straightphi-smallphi,Greek,[GREEKPHISYMBOL] phiv,U003C6,/varphi-curlyoropenphi,[GREEKSMALLLETTERPHI] phmmat,U02133,physicsM-matrix(scriptcapitalM),[SCRIPTCAPITALM] phone,U0260E,=telephonesymbol,[BLACKTELEPHONE] Pi,U003A0,/PicapitalPi,Greek,[GREEKCAPITALLETTERPI] pi,U003C0,/pismallpi,Greek,[GREEKSMALLLETTERPI] pitchfork,U022D4,aliasISOAMSRfork,[PITCHFORK] piv,U003D6,/varpi,[GREEKPISYMBOL] planck,U0210F,/hbar-Planck'sover2pi,[PLANCKCONSTANTOVERTWOPI] planckh,U0210E,thering(skewfield)ofquaternions,[PLANCKCONSTANT] plankv,U0210F,/hslash-variantPlanck'sover2pi,[PLANCKCONSTANTOVERTWOPI] plus,U0002B,=plussignB:,[PLUSSIGN] plusacir,U02A23,plus,circumflexaccentabove,[PLUSSIGNWITHCIRCUMFLEXACCENTABOVE] plusb,U0229E,/boxplusB:plussigninbox,[SQUAREDPLUS] pluscir,U02A22,plus,smallcircleabove,[PLUSSIGNWITHSMALLCIRCLEABOVE] plusdo,U02214,/dotplusB:plussign,dotabove,[DOTPLUS] plusdu,U02A25,plussign,dotbelow,[PLUSSIGNWITHDOTBELOW] pluse,U02A72,plus,equals,[PLUSSIGNABOVEEQUALSSIGN] PlusMinus,U000B1,aliasISONUMplusmn,[PLUS-MINUSSIGN] plusmn,U000B1,/pmB:=plus-or-minussign,[PLUS-MINUSSIGN] plussim,U02A26,plus,similarbelow,[PLUSSIGNWITHTILDEBELOW] plustwo,U02A27,plus,two;Nim-addition,[PLUSSIGNWITHSUBSCRIPTTWO] pm,U000B1,aliasISONUMplusmn,[PLUS-MINUSSIGN] Poincareplane,U0210C,thePoincareupperhalf-plane,[BLACK-LETTERCAPITALH] pointint,U02A15,integralaroundapointoperator,[INTEGRALAROUNDAPOINTOPERATOR] Popf,U02119,/BbbP,openfaceP,[DOUBLE-STRUCKCAPITALP] popf,U1D561,,[MATHEMATICALDOUBLE-STRUCKSMALLP] pound,U000A3,=poundsign,[POUNDSIGN] Pr,U02ABB,dblprecedes,[DOUBLEPRECEDES] pr,U0227A,/precR:precedes,[PRECEDES] prap,U02AB7,/precapproxR:precedes,approximate,[PRECEDESABOVEALMOSTEQUALTO] prcue,U0227C,/preccurlyeqR:precedes,curlyeq,[PRECEDESOREQUALTO] prE,U02AB3,precedes,dblequals,[PRECEDESABOVEEQUALSSIGN] pre,U02AAF,/preceqR:precedes,equals,[PRECEDESABOVESINGLE-LINEEQUALSSIGN] prec,U0227A,aliasISOAMSRpr,[PRECEDES] precapprox,U02AB7,aliasISOAMSRprap,[PRECEDESABOVEALMOSTEQUALTO] preccurlyeq,U0227C,aliasISOAMSRprcue,[PRECEDESOREQUALTO] Precedes,U0227A,aliasISOAMSRpr,[PRECEDES] PrecedesEqual,U02AAF,aliasISOAMSRpre,[PRECEDESABOVESINGLE-LINEEQUALSSIGN] PrecedesSlantEqual,U0227C,aliasISOAMSRprcue,[PRECEDESOREQUALTO] PrecedesTilde,U0227E,aliasISOAMSRprsim,[PRECEDESOREQUIVALENTTO] preceq,U02AAF,aliasISOAMSRpre,[PRECEDESABOVESINGLE-LINEEQUALSSIGN] precnapprox,U02AB9,aliasISOAMSNprnap,[PRECEDESABOVENOTALMOSTEQUALTO] precneqq,U02AB5,aliasISOAMSNprnE,[PRECEDESABOVENOTEQUALTO] precnsim,U022E8,aliasISOAMSNprnsim,[PRECEDESBUTNOTEQUIVALENTTO] precsim,U0227E,aliasISOAMSRprsim,[PRECEDESOREQUIVALENTTO] Prime,U02033,doubleprimeorsecond,[DOUBLEPRIME] prime,U02032,/primeprimeorminute,[PRIME] primes,U02119,theprimenaturalnumbers,[DOUBLE-STRUCKCAPITALP] prnap,U02AB9,/precnapproxN:precedes,notapprox,[PRECEDESABOVENOTALMOSTEQUALTO] prnE,U02AB5,/precneqqN:precedes,notdbleq,[PRECEDESABOVENOTEQUALTO] prnsim,U022E8,/precnsimN:precedes,notsimilar,[PRECEDESBUTNOTEQUIVALENTTO] prod,U0220F,/prodL:productoperator,[N-ARYPRODUCT] Product,U0220F,aliasfor&prod;,[N-ARYPRODUCT] profalar,U0232E,all-aroundprofile,[ALLAROUND-PROFILE] profline,U02312,profileofaline,[ARC] profsurf,U02313,profileofasurface,[SEGMENT] prop,U0221D,/proptoR:isproportionalto,[PROPORTIONALTO] Proportion,U02237,aliasISOAMSRColon,[PROPORTION] Proportional,U0221D,aliasISOTECHprop,[PROPORTIONALTO] propto,U0221D,aliasISOTECHprop,[PROPORTIONALTO] prsim,U0227E,/precsimR:precedes,similar,[PRECEDESOREQUIVALENTTO] prurel,U022B0,elementprecedesunderrelation,[PRECEDESUNDERRELATION] Pscr,U1D4AB,/scrP,scriptletterP,[MATHEMATICALSCRIPTCAPITALP] pscr,U1D4C5,/scrp,scriptletterp,[MATHEMATICALSCRIPTSMALLP] Psi,U003A8,/PsicapitalPsi,Greek,[GREEKCAPITALLETTERPSI] psi,U003C8,/psismallpsi,Greek,[GREEKSMALLLETTERPSI] puncsp,U02008,=punctuationspace(widthofcomma),[PUNCTUATIONSPACE] Qfr,U1D514,/frakQ,uppercaseq,[MATHEMATICALFRAKTURCAPITALQ] qfr,U1D52E,/frakq,lowercaseq,[MATHEMATICALFRAKTURSMALLQ] qint,U02A0C,/iiiintquadrupleintegraloperator,[QUADRUPLEINTEGRALOPERATOR] Qopf,U0211A,/BbbQ,openfaceQ,[DOUBLE-STRUCKCAPITALQ] qopf,U1D562,,[MATHEMATICALDOUBLE-STRUCKSMALLQ] qprime,U02057,quadrupleprime,[QUADRUPLEPRIME] Qscr,U1D4AC,/scrQ,scriptletterQ,[MATHEMATICALSCRIPTCAPITALQ] qscr,U1D4C6,/scrq,scriptletterq,[MATHEMATICALSCRIPTSMALLQ] quaternions,U0210D,thering(skewfield)ofquaternions,[DOUBLE-STRUCKCAPITALH] quatint,U02A16,quaternionintegraloperator,[QUATERNIONINTEGRALOPERATOR] quest,U0003F,=questionmark,[QUESTIONMARK] questeq,U0225F,aliasISOAMSRequest,[QUESTIONEDEQUALTO] quot,U00022,=quotationmark,[QUOTATIONMARK] rAarr,U021DB,/RrightarrowA:righttriplearrow,[RIGHTWARDSTRIPLEARROW] race,U029DA,reversemostpositive,linebelow,[LEFTDOUBLEWIGGLYFENCE] Racute,U00154,=capitalR,acuteaccent,[LATINCAPITALLETTERRWITHACUTE] racute,U00155,=smallr,acuteaccent,[LATINSMALLLETTERRWITHACUTE] radic,U0221A,/surdradical,[SQUAREROOT] raemptyv,U029B3,circle,slash,rightarrowabove,[EMPTYSETWITHRIGHTARROWABOVE] Rang,U0300B,rightanglebracket,double,[RIGHTDOUBLEANGLEBRACKET] rang,U0232A,/rangleC:rightanglebracket,[RIGHT-POINTINGANGLEBRACKET] rangd,U02992,rightangle,dot,[RIGHTANGLEBRACKETWITHDOT] range,U029A5,reverseangle,equal,[REVERSEDANGLEWITHUNDERBAR] rangle,U0232A,aliasISOTECHrang,[RIGHT-POINTINGANGLEBRACKET] raquo,U000BB,=anglequotationmark,right,[RIGHT-POINTINGDOUBLEANGLEQUOTATIONMARK] Rarr,U021A0,/twoheadrightarrowA:,[RIGHTWARDSTWOHEADEDARROW] rArr,U021D2,/RightarrowA:implies,[RIGHTWARDSDOUBLEARROW] rarr,U02192,/rightarrow/toA:=rightwardarrow,[RIGHTWARDSARROW] rarrap,U02975,approximate,rightarrowabove,[RIGHTWARDSARROWABOVEALMOSTEQUALTO] rarrb,U021E5,leftwardsarrowtobar,[RIGHTWARDSARROWTOBAR] rarrbfs,U02920,rightarrow-bar,filledsquare,[RIGHTWARDSARROWFROMBARTOBLACKDIAMOND] rarrc,U02933,rightarrow-curved,[WAVEARROWPOINTINGDIRECTLYRIGHT] rarrfs,U0291E,rightarrow,filledsquare,[RIGHTWARDSARROWTOBLACKDIAMOND] rarrhk,U021AA,/hookrightarrowA:rtarrow-hooked,[RIGHTWARDSARROWWITHHOOK] rarrlp,U021AC,/looparrowrightA:rtarrow-looped,[RIGHTWARDSARROWWITHLOOP] rarrpl,U02945,rightarrow,plus,[RIGHTWARDSARROWWITHPLUSBELOW] rarrsim,U02974,rightarrow,similar,[RIGHTWARDSARROWABOVETILDEOPERATOR] Rarrtl,U02916,righttwo-headedarrowwithtail,[RIGHTWARDSTWO-HEADEDARROWWITHTAIL] rarrtl,U021A3,/rightarrowtailA:rtarrow-tailed,[RIGHTWARDSARROWWITHTAIL] rarrw,U0219D,/rightsquigarrowA:rtarrow-wavy,[RIGHTWARDSWAVEARROW] rAtail,U0291C,rightdoublearrow-tail,[RIGHTWARDSDOUBLEARROW-TAIL] ratail,U0291A,rightarrow-tail,[RIGHTWARDSARROW-TAIL] ratio,U02236,/ratio,[RATIO] rationals,U0211A,thefieldofrationalnumbers,[DOUBLE-STRUCKCAPITALQ] RBarr,U02910,/drbkarowA:twoheadedrightbrokenarrow,[RIGHTWARDSTWO-HEADEDTRIPLEDASHARROW] rBarr,U0290F,/dbkarowA:rightdoublybrokenarrow,[RIGHTWARDSTRIPLEDASHARROW] rbarr,U0290D,/bkarowA:rightbrokenarrow,[RIGHTWARDSDOUBLEDASHARROW] rbbrk,U03015,rightbrokenbracket,[RIGHTTORTOISESHELLBRACKET] rbrace,U0007D,aliasISONUMrcub,[RIGHTCURLYBRACKET] rbrack,U0005D,aliasISONUMrsqb,[RIGHTSQUAREBRACKET] rbrke,U0298C,rightbracket,equal,[RIGHTSQUAREBRACKETWITHUNDERBAR] rbrksld,U0298E,rightbracket,solidusbottomcorner,[RIGHTSQUAREBRACKETWITHTICKINBOTTOMCORNER] rbrkslu,U02990,rightbracket,solidustopcorner,[RIGHTSQUAREBRACKETWITHTICKINTOPCORNER] Rcaron,U00158,=capitalR,caron,[LATINCAPITALLETTERRWITHCARON] rcaron,U00159,=smallr,caron,[LATINSMALLLETTERRWITHCARON] Rcedil,U00156,=capitalR,cedilla,[LATINCAPITALLETTERRWITHCEDILLA] rcedil,U00157,=smallr,cedilla,[LATINSMALLLETTERRWITHCEDILLA] rceil,U02309,/rceilC:rightceiling,[RIGHTCEILING] rcub,U0007D,/rbraceC:=rightcurlybracket,[RIGHTCURLYBRACKET] Rcy,U00420,=capitalER,Cyrillic,[CYRILLICCAPITALLETTERER] rcy,U00440,=smaller,Cyrillic,[CYRILLICSMALLLETTERER] rdca,U02937,rightdowncurvedarrow,[ARROWPOINTINGDOWNWARDSTHENCURVINGRIGHTWARDS] rdldhar,U02969,rightharpoon-downoverleftharpoon-down,[RIGHTWARDSHARPOONWITHBARBDOWNABOVELEFTWARDSHARPOONWITHBARBDOWN] rdquo,U0201D,=doublequotationmark,right,[RIGHTDOUBLEQUOTATIONMARK] rdquor,U0201D,risingdblquote,right(high),[RIGHTDOUBLEQUOTATIONMARK] rdsh,U021B3,rightdownangledarrow,[DOWNWARDSARROWWITHTIPRIGHTWARDS] Re,U0211C,aliasISOAMSOreal,[BLACK-LETTERCAPITALR] real,U0211C,/Re-real,[BLACK-LETTERCAPITALR] realine,U0211B,thegeometricrealline,[SCRIPTCAPITALR] realpart,U0211C,aliasISOAMSOreal,[BLACK-LETTERCAPITALR] reals,U0211D,thefieldofrealnumbers,[DOUBLE-STRUCKCAPITALR] rect,U025AD,=rectangle,open,[WHITERECTANGLE] reg,U000AE,/circledR=registeredsign,[REGISTEREDSIGN] ReverseElement,U0220B,aliasISOTECHniv,[CONTAINSASMEMBER] ReverseEquilibrium,U021CB,aliasISOAMSAlrhar,[LEFTWARDSHARPOONOVERRIGHTWARDSHARPOON] ReverseUpEquilibrium,U0296F,aliasISOAMSAduhar,[DOWNWARDSHARPOONWITHBARBLEFTBESIDEUPWARDSHARPOONWITHBARBRIGHT] rfisht,U0297D,rightfishtail,[RIGHTFISHTAIL] rfloor,U0230B,/rfloorC:rightfloor,[RIGHTFLOOR] Rfr,U0211C,/frakR,uppercaser,[BLACK-LETTERCAPITALR] rfr,U1D52F,/frakr,lowercaser,[MATHEMATICALFRAKTURSMALLR] rHar,U02964,rightharpoon-upoverrightharpoon-down,[RIGHTWARDSHARPOONWITHBARBUPABOVERIGHTWARDSHARPOONWITHBARBDOWN] rhard,U021C1,/rightharpoondownA:rtharpoon-down,[RIGHTWARDSHARPOONWITHBARBDOWNWARDS] rharu,U021C0,/rightharpoonupA:rtharpoon-up,[RIGHTWARDSHARPOONWITHBARBUPWARDS] rharul,U0296C,rightharpoon-upoverlongdash,[RIGHTWARDSHARPOONWITHBARBUPABOVELONGDASH] rho,U003C1,/rhosmallrho,Greek,[GREEKSMALLLETTERRHO] rhov,U003F1,/varrho,[GREEKRHOSYMBOL] RightAngleBracket,U0232A,aliasISOTECHrang,[RIGHT-POINTINGANGLEBRACKET] RightArrow,U02192,aliasISONUMrarr,[RIGHTWARDSARROW] Rightarrow,U021D2,aliasISOTECHrArr,[RIGHTWARDSDOUBLEARROW] rightarrow,U02192,aliasISONUMrarr,[RIGHTWARDSARROW] RightArrowBar,U021E5,aliasforrarrb,[RIGHTWARDSARROWTOBAR] RightArrowLeftArrow,U021C4,aliasISOAMSArlarr,[RIGHTWARDSARROWOVERLEFTWARDSARROW] rightarrowtail,U021A3,aliasISOAMSArarrtl,[RIGHTWARDSARROWWITHTAIL] RightCeiling,U02309,aliasISOAMSCrceil,[RIGHTCEILING] RightDoubleBracket,U0301B,rightdoublebracketdelimiter,[RIGHTWHITESQUAREBRACKET] RightDownTeeVector,U0295D,down-rightharpoonfrombar,[DOWNWARDSHARPOONWITHBARBRIGHTFROMBAR] RightDownVector,U021C2,aliasISOAMSAdharr,[DOWNWARDSHARPOONWITHBARBRIGHTWARDS] RightDownVectorBar,U02955,down-rightharpoontobar,[DOWNWARDSHARPOONWITHBARBRIGHTTOBAR] RightFloor,U0230B,aliasISOAMSCrfloor,[RIGHTFLOOR] rightharpoondown,U021C1,aliasISOAMSArhard,[RIGHTWARDSHARPOONWITHBARBDOWNWARDS] rightharpoonup,U021C0,aliasISOAMSArharu,[RIGHTWARDSHARPOONWITHBARBUPWARDS] rightleftarrows,U021C4,aliasISOAMSArlarr,[RIGHTWARDSARROWOVERLEFTWARDSARROW] rightleftharpoons,U021CC,aliasISOAMSArlhar,[RIGHTWARDSHARPOONOVERLEFTWARDSHARPOON] rightrightarrows,U021C9,aliasISOAMSArrarr,[RIGHTWARDSPAIREDARROWS] rightsquigarrow,U0219D,aliasISOAMSArarrw,[RIGHTWARDSWAVEARROW] RightTee,U022A2,aliasISOAMSRvdash,[RIGHTTACK] RightTeeArrow,U021A6,aliasISOAMSAmap,[RIGHTWARDSARROWFROMBAR] RightTeeVector,U0295B,right-upharpoonfrombar,[RIGHTWARDSHARPOONWITHBARBUPFROMBAR] rightthreetimes,U022CC,aliasISOAMSBrthree,[RIGHTSEMIDIRECTPRODUCT] RightTriangle,U022B3,aliasISOAMSRvrtri,[CONTAINSASNORMALSUBGROUP] RightTriangleBar,U029D0,verticalbar,righttriangle,[VERTICALBARBESIDERIGHTTRIANGLE] RightTriangleEqual,U022B5,aliasISOAMSRrtrie,[CONTAINSASNORMALSUBGROUPOREQUALTO] RightUpDownVector,U0294F,up-right-down-rightharpoon,[UPBARBRIGHTDOWNBARBRIGHTHARPOON] RightUpTeeVector,U0295C,up-rightharpoonfrombar,[UPWARDSHARPOONWITHBARBRIGHTFROMBAR] RightUpVector,U021BE,aliasISOAMSAuharr,[UPWARDSHARPOONWITHBARBRIGHTWARDS] RightUpVectorBar,U02954,up-rightharpoontobar,[UPWARDSHARPOONWITHBARBRIGHTTOBAR] RightVector,U021C0,aliasISOAMSArharu,[RIGHTWARDSHARPOONWITHBARBUPWARDS] RightVectorBar,U02953,up-rightharpoontobar,[RIGHTWARDSHARPOONWITHBARBUPTOBAR] ring,U002DA,=ring,[RINGABOVE] risingdotseq,U02253,aliasISOAMSRerDot,[IMAGEOFORAPPROXIMATELYEQUALTO] rlarr,U021C4,/rightleftarrowsA:rarroverlarr,[RIGHTWARDSARROWOVERLEFTWARDSARROW] rlhar,U021CC,/rightleftharpoonsA:rharpoverl,[RIGHTWARDSHARPOONOVERLEFTWARDSHARPOON] rmoust,U023B1,/rmoustache,[UPPERRIGHTORLOWERLEFTCURLYBRACKETSECTION] rmoustache,U023B1,aliasISOAMSCrmoust,[UPPERRIGHTORLOWERLEFTCURLYBRACKETSECTION] rnmid,U02AEE,reverse/nmid,[DOESNOTDIVIDEWITHREVERSEDNEGATIONSLASH] roang,U03019,rightopenangularbracket,[RIGHTWHITETORTOISESHELLBRACKET] roarr,U021FE,rightopenarrow,[RIGHTWARDSOPEN-HEADEDARROW] robrk,U0301B,rightopenbracket,[RIGHTWHITESQUAREBRACKET] ropar,U02986,rightopenparenthesis,[RIGHTWHITEPARENTHESIS] Ropf,U0211D,/BbbR,openfaceR,[DOUBLE-STRUCKCAPITALR] ropf,U1D563,,[MATHEMATICALDOUBLE-STRUCKSMALLR] roplus,U02A2E,plussigninrighthalfcircle,[PLUSSIGNINRIGHTHALFCIRCLE] rotimes,U02A35,multiplysigninrighthalfcircle,[MULTIPLICATIONSIGNINRIGHTHALFCIRCLE] RoundImplies,U02970,roundimplies,[RIGHTDOUBLEARROWWITHROUNDEDHEAD] rpar,U00029,C:=rightparenthesis,[RIGHTPARENTHESIS] rpargt,U02994,C:rightparen,gt,[RIGHTARCGREATER-THANBRACKET] rppolint,U02A12,lineintegration,rectangularpatharoundpole,[LINEINTEGRATIONWITHRECTANGULARPATHAROUNDPOLE] rrarr,U021C9,/rightrightarrowsA:twortarrows,[RIGHTWARDSPAIREDARROWS] Rrightarrow,U021DB,aliasISOAMSArAarr,[RIGHTWARDSTRIPLEARROW] Rscr,U0211B,/scrR,scriptletterR,[SCRIPTCAPITALR] rscr,U1D4C7,/scrr,scriptletterr,[MATHEMATICALSCRIPTSMALLR] Rsh,U021B1,aliasISOAMSArsh,[UPWARDSARROWWITHTIPRIGHTWARDS] rsh,U021B1,/RshA:,[UPWARDSARROWWITHTIPRIGHTWARDS] rsqb,U0005D,/rbrackC:=rightsquarebracket,[RIGHTSQUAREBRACKET] rsquo,U02019,=singlequotationmark,right,[RIGHTSINGLEQUOTATIONMARK] rsquor,U02019,risingsinglequote,right(high),[RIGHTSINGLEQUOTATIONMARK] rthree,U022CC,/rightthreetimesB:,[RIGHTSEMIDIRECTPRODUCT] rtimes,U022CA,/rtimesB:timessign,rightclosed,[RIGHTNORMALFACTORSEMIDIRECTPRODUCT] rtri,U025B9,/trianglerightB:rtriangle,open,[WHITERIGHT-POINTINGSMALLTRIANGLE] rtrie,U022B5,/trianglerighteqR:righttri,eq,[CONTAINSASNORMALSUBGROUPOREQUALTO] rtrif,U025B8,/blacktrianglerightR:=rtri,filled,[BLACKRIGHT-POINTINGSMALLTRIANGLE] rtriltri,U029CE,righttriangleabovelefttriangle,[RIGHTTRIANGLEABOVELEFTTRIANGLE] RuleDelayed,U029F4,rule-delayed(colonrightarrow),[RULE-DELAYED] ruluhar,U02968,rightharpoon-upoverleftharpoon-up,[RIGHTWARDSHARPOONWITHBARBUPABOVELEFTWARDSHARPOONWITHBARBUP] rx,U0211E,pharmaceuticalprescription(Rx),[PRESCRIPTIONTAKE] Sacute,U0015A,=capitalS,acuteaccent,[LATINCAPITALLETTERSWITHACUTE] sacute,U0015B,=smalls,acuteaccent,[LATINSMALLLETTERSWITHACUTE] Sc,U02ABC,dblsucceeds,[DOUBLESUCCEEDS] sc,U0227B,/succR:succeeds,[SUCCEEDS] scap,U02AB8,/succapproxR:succeeds,approximate,[SUCCEEDSABOVEALMOSTEQUALTO] Scaron,U00160,=capitalS,caron,[LATINCAPITALLETTERSWITHCARON] scaron,U00161,=smalls,caron,[LATINSMALLLETTERSWITHCARON] sccue,U0227D,/succcurlyeqR:succeeds,curlyeq,[SUCCEEDSOREQUALTO] scE,U02AB4,succeeds,dblequals,[SUCCEEDSABOVEEQUALSSIGN] sce,U02AB0,/succeqR:succeeds,equals,[SUCCEEDSABOVESINGLE-LINEEQUALSSIGN] Scedil,U0015E,=capitalS,cedilla,[LATINCAPITALLETTERSWITHCEDILLA] scedil,U0015F,=smalls,cedilla,[LATINSMALLLETTERSWITHCEDILLA] Scirc,U0015C,=capitalS,circumflexaccent,[LATINCAPITALLETTERSWITHCIRCUMFLEX] scirc,U0015D,=smalls,circumflexaccent,[LATINSMALLLETTERSWITHCIRCUMFLEX] scnap,U02ABA,/succnapproxN:succeeds,notapprox,[SUCCEEDSABOVENOTALMOSTEQUALTO] scnE,U02AB6,/succneqqN:succeeds,notdbleq,[SUCCEEDSABOVENOTEQUALTO] scnsim,U022E9,/succnsimN:succeeds,notsimilar,[SUCCEEDSBUTNOTEQUIVALENTTO] scpolint,U02A13,lineintegration,semi-circularpatharoundpole,[LINEINTEGRATIONWITHSEMICIRCULARPATHAROUNDPOLE] scsim,U0227F,/succsimR:succeeds,similar,[SUCCEEDSOREQUIVALENTTO] Scy,U00421,=capitalES,Cyrillic,[CYRILLICCAPITALLETTERES] scy,U00441,=smalles,Cyrillic,[CYRILLICSMALLLETTERES] sdot,U022C5,/cdotB:smallmiddledot,[DOTOPERATOR] sdotb,U022A1,/dotsquare/boxdotB:smalldotinbox,[SQUAREDDOTOPERATOR] sdote,U02A66,equal,dotbelow,[EQUALSSIGNWITHDOTBELOW] searhk,U02925,/hksearowA:SEarrow-hooken,[SOUTHEASTARROWWITHHOOK] seArr,U021D8,SEpointingdblarrow,[SOUTHEASTDOUBLEARROW] searr,U02198,/searrowA:SEpointingarrow,[SOUTHEASTARROW] searrow,U02198,aliasISOAMSAsearr,[SOUTHEASTARROW] sect,U000A7,=sectionsign,[SECTIONSIGN] semi,U0003B,=semicolonP:,[SEMICOLON] seswar,U02929,/tosaA:SE&SWarrows,[SOUTHEASTARROWANDSOUTHWESTARROW] setminus,U02216,aliasISOAMSBsetmn,[SETMINUS] setmn,U02216,/setminusB:reversesolidus,[SETMINUS] sext,U02736,sextile(6-pointedstar),[SIXPOINTEDBLACKSTAR] Sfr,U1D516,/frakS,uppercases,[MATHEMATICALFRAKTURCAPITALS] sfr,U1D530,/fraks,lowercases,[MATHEMATICALFRAKTURSMALLS] sfrown,U02322,/smallfrownR:smalldowncurve,[FROWN] sharp,U0266F,/sharp=musicalsharp,[MUSICSHARPSIGN] SHCHcy,U00429,=capitalSHCHA,Cyrillic,[CYRILLICCAPITALLETTERSHCHA] shchcy,U00449,=smallshcha,Cyrillic,[CYRILLICSMALLLETTERSHCHA] SHcy,U00428,=capitalSHA,Cyrillic,[CYRILLICCAPITALLETTERSHA] shcy,U00448,=smallsha,Cyrillic,[CYRILLICSMALLLETTERSHA] ShortDownArrow,U02193,shortdownarrow,[DOWNWARDSARROW] ShortLeftArrow,U02190,aliasISOAMSAslarr,[LEFTWARDSARROW] shortmid,U02223,aliasISOAMSRsmid,[DIVIDES] shortparallel,U02225,aliasISOAMSRspar,[PARALLELTO] ShortRightArrow,U02192,aliasISOAMSAsrarr,[RIGHTWARDSARROW] ShortUpArrow,U02191,shortuparrow,[UPWARDSARROW] shy,U000AD,=softhyphen,[SOFTHYPHEN] Sigma,U003A3,/SigmacapitalSigma,Greek,[GREEKCAPITALLETTERSIGMA] sigma,U003C3,/sigmasmallsigma,Greek,[GREEKSMALLLETTERSIGMA] sigmav,U003C2,/varsigma,[GREEKSMALLLETTERFINALSIGMA] sim,U0223C,/simR:similar,[TILDEOPERATOR] simdot,U02A6A,similar,dot,[TILDEOPERATORWITHDOTABOVE] sime,U02243,/simeqR:similar,equals,[ASYMPTOTICALLYEQUALTO] simeq,U02243,aliasISOTECHsime,[ASYMPTOTICALLYEQUALTO] simg,U02A9E,similar,greater,[SIMILARORGREATER-THAN] simgE,U02AA0,similar,greater,equal,[SIMILARABOVEGREATER-THANABOVEEQUALSSIGN] siml,U02A9D,similar,less,[SIMILARORLESS-THAN] simlE,U02A9F,similar,less,equal,[SIMILARABOVELESS-THANABOVEEQUALSSIGN] simne,U02246,similar,notequals,[APPROXIMATELYBUTNOTACTUALLYEQUALTO] simplus,U02A24,plus,similarabove,[PLUSSIGNWITHTILDEABOVE] simrarr,U02972,similar,rightarrowbelow,[TILDEOPERATORABOVERIGHTWARDSARROW] slarr,U02190,shortleftarrow,[LEFTWARDSARROW] SmallCircle,U02218,aliasISOTECHcompfn,[RINGOPERATOR] smallsetminus,U02216,aliasISOAMSBssetmn,[SETMINUS] smashp,U02A33,smashproduct,[SMASHPRODUCT] smeparsl,U029E4,similar,parallel,slanted,equal,[EQUALSSIGNANDSLANTEDPARALLELWITHTILDEABOVE] smid,U02223,/shortmidR:,[DIVIDES] smile,U02323,/smileR:upcurve,[SMILE] smt,U02AAA,smallerthan,[SMALLERTHAN] smte,U02AAC,smallerthanorequal,[SMALLERTHANOREQUALTO] smtes,U02AAC-0FE00,smallerthanorequal,slanted,[SMALLERTHANORslantedEQUAL] SOFTcy,U0042C,=capitalSOFTsign,Cyrillic,[CYRILLICCAPITALLETTERSOFTSIGN] softcy,U0044C,=smallsoftsign,Cyrillic,[CYRILLICSMALLLETTERSOFTSIGN] sol,U0002F,=solidus,[SOLIDUS] solb,U029C4,solidusinsquare,[SQUAREDRISINGDIAGONALSLASH] solbar,U0233F,solidus,barthrough,[APLFUNCTIONALSYMBOLSLASHBAR] Sopf,U1D54A,/BbbS,openfaceS,[MATHEMATICALDOUBLE-STRUCKCAPITALS] sopf,U1D564,,[MATHEMATICALDOUBLE-STRUCKSMALLS] spades,U02660,/spadesuit=spadessuitsymbol,[BLACKSPADESUIT] spadesuit,U02660,ISOPUBspades,[BLACKSPADESUIT] spar,U02225,/shortparallelR:shortparallel,[PARALLELTO] sqcap,U02293,/sqcapB:squareintersection,[SQUARECAP] sqcaps,U02293-0FE00,squareintersection,serifs,[SQUARECAPwithserifs] sqcup,U02294,/sqcupB:squareunion,[SQUARECUP] sqcups,U02294-0FE00,squareunion,serifs,[SQUARECUPwithserifs] Sqrt,U0221A,aliasISOTECHradic,[SQUAREROOT] sqsub,U0228F,/sqsubsetR:squaresubset,[SQUAREIMAGEOF] sqsube,U02291,/sqsubseteqR:squaresubset,equals,[SQUAREIMAGEOFOREQUALTO] sqsubset,U0228F,aliasISOAMSRsqsub,[SQUAREIMAGEOF] sqsubseteq,U02291,aliasISOAMSRsqsube,[SQUAREIMAGEOFOREQUALTO] sqsup,U02290,/sqsupsetR:squaresuperset,[SQUAREORIGINALOF] sqsupe,U02292,/sqsupseteqR:squaresuperset,eq,[SQUAREORIGINALOFOREQUALTO] sqsupset,U02290,aliasISOAMSRsqsup,[SQUAREORIGINALOF] sqsupseteq,U02292,aliasISOAMSRsqsupe,[SQUAREORIGINALOFOREQUALTO] squ,U025A1,=square,open,[WHITESQUARE] Square,U025A1,aliasforsquare,[WHITESQUARE] square,U025A1,/square,square,[WHITESQUARE] SquareIntersection,U02293,aliasISOAMSBsqcap,[SQUARECAP] SquareSubset,U0228F,aliasISOAMSRsqsub,[SQUAREIMAGEOF] SquareSubsetEqual,U02291,aliasISOAMSRsqsube,[SQUAREIMAGEOFOREQUALTO] SquareSuperset,U02290,aliasISOAMSRsqsup,[SQUAREORIGINALOF] SquareSupersetEqual,U02292,aliasISOAMSRsqsupe,[SQUAREORIGINALOFOREQUALTO] SquareUnion,U02294,aliasISOAMSBsqcup,[SQUARECUP] squarf,U025AA,/blacksquare,square,filled,[BLACKSMALLSQUARE] squf,U025AA,/blacksquare=sqbullet,filled,[BLACKSMALLSQUARE] srarr,U02192,shortrightarrow,[RIGHTWARDSARROW] Sscr,U1D4AE,/scrS,scriptletterS,[MATHEMATICALSCRIPTCAPITALS] sscr,U1D4C8,/scrs,scriptletters,[MATHEMATICALSCRIPTSMALLS] ssetmn,U02216,/smallsetminusB:smreversesolidus,[SETMINUS] ssmile,U02323,/smallsmileR:smallupcurve,[SMILE] sstarf,U022C6,/starB:smallstar,filled,[STAROPERATOR] Star,U022C6,aliasISOAMSBsstarf,[STAROPERATOR] star,U02606,=star,open,[WHITESTAR] starf,U02605,/bigstar-star,filled,[BLACKSTAR] straightepsilon,U003F5,aliasISOGRK3epsi,[GREEKLUNATEEPSILONSYMBOL] straightphi,U003D5,aliasISOGRK3phi,[GREEKPHISYMBOL] strns,U000AF,straightness,[MACRON] Sub,U022D0,/SubsetR:doublesubset,[DOUBLESUBSET] sub,U02282,/subsetR:subsetorisimpliedby,[SUBSETOF] subdot,U02ABD,subset,withdot,[SUBSETWITHDOT] subE,U02AC5,/subseteqqR:subset,dblequals,[SUBSETOFABOVEEQUALSSIGN] sube,U02286,/subseteqR:subset,equals,[SUBSETOFOREQUALTO] subedot,U02AC3,subset,equals,dot,[SUBSETOFOREQUALTOWITHDOTABOVE] submult,U02AC1,subset,multiply,[SUBSETWITHMULTIPLICATIONSIGNBELOW] subnE,U02ACB,/subsetneqqN:subset,notdbleq,[SUBSETOFABOVENOTEQUALTO] subne,U0228A,/subsetneqN:subset,notequals,[SUBSETOFWITHNOTEQUALTO] subplus,U02ABF,subset,plus,[SUBSETWITHPLUSSIGNBELOW] subrarr,U02979,subset,rightarrow,[SUBSETABOVERIGHTWARDSARROW] Subset,U022D0,aliasISOAMSRSub,[DOUBLESUBSET] subset,U02282,aliasISOTECHsub,[SUBSETOF] subseteq,U02286,aliasISOTECHsube,[SUBSETOFOREQUALTO] subseteqq,U02AC5,aliasISOAMSRsubE,[SUBSETOFABOVEEQUALSSIGN] SubsetEqual,U02286,aliasISOTECHsube,[SUBSETOFOREQUALTO] subsetneq,U0228A,aliasISOAMSNsubne,[SUBSETOFWITHNOTEQUALTO] subsetneqq,U02ACB,aliasISOAMSNsubnE,[SUBSETOFABOVENOTEQUALTO] subsim,U02AC7,subset,similar,[SUBSETOFABOVETILDEOPERATOR] subsub,U02AD5,subsetabovesubset,[SUBSETABOVESUBSET] subsup,U02AD3,subsetabovesuperset,[SUBSETABOVESUPERSET] succ,U0227B,aliasISOAMSRsc,[SUCCEEDS] succapprox,U02AB8,aliasISOAMSRscap,[SUCCEEDSABOVEALMOSTEQUALTO] succcurlyeq,U0227D,aliasISOAMSRsccue,[SUCCEEDSOREQUALTO] Succeeds,U0227B,aliasISOAMSRsc,[SUCCEEDS] SucceedsEqual,U02AB0,aliasISOAMSRsce,[SUCCEEDSABOVESINGLE-LINEEQUALSSIGN] SucceedsSlantEqual,U0227D,aliasISOAMSRsccue,[SUCCEEDSOREQUALTO] SucceedsTilde,U0227F,aliasISOAMSRscsim,[SUCCEEDSOREQUIVALENTTO] succeq,U02AB0,aliasISOAMSRsce,[SUCCEEDSABOVESINGLE-LINEEQUALSSIGN] succnapprox,U02ABA,aliasISOAMSNscnap,[SUCCEEDSABOVENOTALMOSTEQUALTO] succneqq,U02AB6,aliasISOAMSNscnE,[SUCCEEDSABOVENOTEQUALTO] succnsim,U022E9,aliasISOAMSNscnsim,[SUCCEEDSBUTNOTEQUIVALENTTO] succsim,U0227F,aliasISOAMSRscsim,[SUCCEEDSOREQUIVALENTTO] SuchThat,U0220B,ISOTECHni,[CONTAINSASMEMBER] Sum,U02211,aliasISOAMSBsum,[N-ARYSUMMATION] sum,U02211,/sumL:summationoperator,[N-ARYSUMMATION] sung,U0266A,=musicnote(sungtextsign),[EIGHTHNOTE] Sup,U022D1,/SupsetR:dblsuperset,[DOUBLESUPERSET] sup,U02283,/supsetR:supersetorimplies,[SUPERSETOF] sup1,U000B9,=superscriptone,[SUPERSCRIPTONE] sup2,U000B2,=superscripttwo,[SUPERSCRIPTTWO] sup3,U000B3,=superscriptthree,[SUPERSCRIPTTHREE] supdot,U02ABE,superset,withdot,[SUPERSETWITHDOT] supdsub,U02AD8,superset,subset,dashjoiningthem,[SUPERSETBESIDEANDJOINEDBYDASHWITHSUBSET] supE,U02AC6,/supseteqqR:superset,dblequals,[SUPERSETOFABOVEEQUALSSIGN] supe,U02287,/supseteqR:superset,equals,[SUPERSETOFOREQUALTO] supedot,U02AC4,superset,equals,dot,[SUPERSETOFOREQUALTOWITHDOTABOVE] Superset,U02283,aliasISOTECHsup,[SUPERSETOF] SupersetEqual,U02287,aliasISOTECHsupe,[SUPERSETOFOREQUALTO] suphsol,U02283-0002F,superset,solidus,[SUPERSETOF,SOLIDUS] suphsub,U02AD7,superset,subset,[SUPERSETBESIDESUBSET] suplarr,U0297B,superset,leftarrow,[SUPERSETABOVELEFTWARDSARROW] supmult,U02AC2,superset,multiply,[SUPERSETWITHMULTIPLICATIONSIGNBELOW] supnE,U02ACC,/supsetneqqN:superset,notdbleq,[SUPERSETOFABOVENOTEQUALTO] supne,U0228B,/supsetneqN:superset,notequals,[SUPERSETOFWITHNOTEQUALTO] supplus,U02AC0,superset,plus,[SUPERSETWITHPLUSSIGNBELOW] Supset,U022D1,aliasISOAMSRSup,[DOUBLESUPERSET] supset,U02283,aliasISOTECHsup,[SUPERSETOF] supseteq,U02287,aliasISOTECHsupe,[SUPERSETOFOREQUALTO] supseteqq,U02AC6,aliasISOAMSRsupE,[SUPERSETOFABOVEEQUALSSIGN] supsetneq,U0228B,aliasISOAMSNsupne,[SUPERSETOFWITHNOTEQUALTO] supsetneqq,U02ACC,aliasISOAMSNsupnE,[SUPERSETOFABOVENOTEQUALTO] supsim,U02AC8,superset,similar,[SUPERSETOFABOVETILDEOPERATOR] supsub,U02AD4,supersetabovesubset,[SUPERSETABOVESUBSET] supsup,U02AD6,supersetabovesuperset,[SUPERSETABOVESUPERSET] swarhk,U02926,/hkswarowA:SWarrow-hooked,[SOUTHWESTARROWWITHHOOK] swArr,U021D9,SWpointingdblarrow,[SOUTHWESTDOUBLEARROW] swarr,U02199,/swarrowA:SWpointingarrow,[SOUTHWESTARROW] swarrow,U02199,aliasISOAMSAswarr,[SOUTHWESTARROW] swnwar,U0292A,SW&NWarrows,[SOUTHWESTARROWANDNORTHWESTARROW] szlig,U000DF,=smallsharps,German(szligature),[LATINSMALLLETTERSHARPS] Tab,U00009,tabulatorstop;horizontaltabulation,[CHARACTERTABULATION] target,U02316,registermarkortarget,[POSITIONINDICATOR] tau,U003C4,/tausmalltau,Greek,[GREEKSMALLLETTERTAU] tbrk,U023B4,topsquarebracket,[TOPSQUAREBRACKET] Tcaron,U00164,=capitalT,caron,[LATINCAPITALLETTERTWITHCARON] tcaron,U00165,=smallt,caron,[LATINSMALLLETTERTWITHCARON] Tcedil,U00162,=capitalT,cedilla,[LATINCAPITALLETTERTWITHCEDILLA] tcedil,U00163,=smallt,cedilla,[LATINSMALLLETTERTWITHCEDILLA] Tcy,U00422,=capitalTE,Cyrillic,[CYRILLICCAPITALLETTERTE] tcy,U00442,=smallte,Cyrillic,[CYRILLICSMALLLETTERTE] tdot,U020DB,threedotsabove,[COMBININGTHREEDOTSABOVE] telrec,U02315,=telephonerecordersymbol,[TELEPHONERECORDER] Tfr,U1D517,/frakT,uppercaset,[MATHEMATICALFRAKTURCAPITALT] tfr,U1D531,/frakt,lowercaset,[MATHEMATICALFRAKTURSMALLT] there4,U02234,/thereforeR:therefore,[THEREFORE] Therefore,U02234,aliasISOTECHthere4,[THEREFORE] therefore,U02234,aliasISOTECHthere4,[THEREFORE] Theta,U00398,/ThetacapitalTheta,Greek,[GREEKCAPITALLETTERTHETA] theta,U003B8,/thetastraighttheta,smalltheta,Greek,[GREEKSMALLLETTERTHETA] thetav,U003D1,/vartheta-curlyoropentheta,[GREEKTHETASYMBOL] thickapprox,U02248,ISOAMSRthkap,[ALMOSTEQUALTO] thicksim,U0223C,ISOAMSRthksim,[TILDEOPERATOR] ThickSpace,U02009-0200A-0200A,spaceofwidth5/18em,[spaceofwidth5/18em] thinsp,U02009,=thinspace(1/6-em),[THINSPACE] ThinSpace,U02009,spaceofwidth3/18emaliasISOPUBthinsp,[THINSPACE] thkap,U02248,/thickapproxR:thickapproximate,[ALMOSTEQUALTO] thksim,U0223C,/thicksimR:thicksimilar,[TILDEOPERATOR] THORN,U000DE,=capitalTHORN,Icelandic,[LATINCAPITALLETTERTHORN] thorn,U000FE,=smallthorn,Icelandic,[LATINSMALLLETTERTHORN] Tilde,U0223C,aliasISOTECHsim,[TILDEOPERATOR] tilde,U002DC,=tilde,[SMALLTILDE] TildeEqual,U02243,aliasISOTECHsime,[ASYMPTOTICALLYEQUALTO] TildeFullEqual,U02245,aliasISOTECHcong,[APPROXIMATELYEQUALTO] TildeTilde,U02248,aliasISOTECHap,[ALMOSTEQUALTO] times,U000D7,/timesB:=multiplysign,[MULTIPLICATIONSIGN] timesb,U022A0,/boxtimesB:multiplysigninbox,[SQUAREDTIMES] timesbar,U02A31,multiplysign,barbelow,[MULTIPLICATIONSIGNWITHUNDERBAR] timesd,U02A30,times,dot,[MULTIPLICATIONSIGNWITHDOTABOVE] tint,U0222D,/iiinttripleintegraloperator,[TRIPLEINTEGRAL] toea,U02928,aliasISOAMSAnesear,[NORTHEASTARROWANDSOUTHEASTARROW] top,U022A4,/toptop,[DOWNTACK] topbot,U02336,topandbottom,[APLFUNCTIONALSYMBOLI-BEAM] topcir,U02AF1,top,circlebelow,[DOWNTACKWITHCIRCLEBELOW] Topf,U1D54B,/BbbT,openfaceT,[MATHEMATICALDOUBLE-STRUCKCAPITALT] topf,U1D565,,[MATHEMATICALDOUBLE-STRUCKSMALLT] topfork,U02ADA,forkwithtop,[PITCHFORKWITHTEETOP] tosa,U02929,aliasISOAMSAseswar,[SOUTHEASTARROWANDSOUTHWESTARROW] tprime,U02034,tripleprime,[TRIPLEPRIME] trade,U02122,=trademarksign,[TRADEMARKSIGN] triangle,U025B5,aliasISOPUButri,[WHITEUP-POINTINGSMALLTRIANGLE] triangledown,U025BF,aliasISOPUBdtri,[WHITEDOWN-POINTINGSMALLTRIANGLE] triangleleft,U025C3,aliasISOPUBltri,[WHITELEFT-POINTINGSMALLTRIANGLE] trianglelefteq,U022B4,aliasISOAMSRltrie,[NORMALSUBGROUPOFOREQUALTO] triangleq,U0225C,aliasISOAMSRtrie,[DELTAEQUALTO] triangleright,U025B9,aliasISOPUBrtri,[WHITERIGHT-POINTINGSMALLTRIANGLE] trianglerighteq,U022B5,aliasISOAMSRrtrie,[CONTAINSASNORMALSUBGROUPOREQUALTO] tridot,U025EC,dotintriangle,[WHITEUP-POINTINGTRIANGLEWITHDOT] trie,U0225C,/triangleqR:triangle,equals,[DELTAEQUALTO] triminus,U02A3A,minusintriangle,[MINUSSIGNINTRIANGLE] TripleDot,U020DB,aliasISOTECHtdot,[COMBININGTHREEDOTSABOVE] triplus,U02A39,plusintriangle,[PLUSSIGNINTRIANGLE] trisb,U029CD,triangle,serifsatbottom,[TRIANGLEWITHSERIFSATBOTTOM] tritime,U02A3B,multiplyintriangle,[MULTIPLICATIONSIGNINTRIANGLE] trpezium,U0FFFD,trapezium,[REPLACEMENTCHARACTER] Tscr,U1D4AF,/scrT,scriptletterT,[MATHEMATICALSCRIPTCAPITALT] tscr,U1D4C9,/scrt,scriptlettert,[MATHEMATICALSCRIPTSMALLT] TScy,U00426,=capitalTSE,Cyrillic,[CYRILLICCAPITALLETTERTSE] tscy,U00446,=smalltse,Cyrillic,[CYRILLICSMALLLETTERTSE] TSHcy,U0040B,=capitalTSHE,Serbian,[CYRILLICCAPITALLETTERTSHE] tshcy,U0045B,=smalltshe,Serbian,[CYRILLICSMALLLETTERTSHE] Tstrok,U00166,=capitalT,stroke,[LATINCAPITALLETTERTWITHSTROKE] tstrok,U00167,=smallt,stroke,[LATINSMALLLETTERTWITHSTROKE] twixt,U0226C,/betweenR:between,[BETWEEN] twoheadleftarrow,U0219E,aliasISOAMSALarr,[LEFTWARDSTWOHEADEDARROW] twoheadrightarrow,U021A0,aliasISOAMSARarr,[RIGHTWARDSTWOHEADEDARROW] Uacute,U000DA,=capitalU,acuteaccent,[LATINCAPITALLETTERUWITHACUTE] uacute,U000FA,=smallu,acuteaccent,[LATINSMALLLETTERUWITHACUTE] Uarr,U0219F,uptwo-headedarrow,[UPWARDSTWOHEADEDARROW] uArr,U021D1,/UparrowA:updblarrow,[UPWARDSDOUBLEARROW] uarr,U02191,/uparrowA:=upwardarrow,[UPWARDSARROW] Uarrocir,U02949,uptwo-headedarrowabovecircle,[UPWARDSTWO-HEADEDARROWFROMSMALLCIRCLE] Ubrcy,U0040E,=capitalU,Byelorussian,[CYRILLICCAPITALLETTERSHORTU] ubrcy,U0045E,=smallu,Byelorussian,[CYRILLICSMALLLETTERSHORTU] Ubreve,U0016C,=capitalU,breve,[LATINCAPITALLETTERUWITHBREVE] ubreve,U0016D,=smallu,breve,[LATINSMALLLETTERUWITHBREVE] Ucirc,U000DB,=capitalU,circumflexaccent,[LATINCAPITALLETTERUWITHCIRCUMFLEX] ucirc,U000FB,=smallu,circumflexaccent,[LATINSMALLLETTERUWITHCIRCUMFLEX] Ucy,U00423,=capitalU,Cyrillic,[CYRILLICCAPITALLETTERU] ucy,U00443,=smallu,Cyrillic,[CYRILLICSMALLLETTERU] udarr,U021C5,uparrow,downarrow,[UPWARDSARROWLEFTWARDSOFDOWNWARDSARROW] Udblac,U00170,=capitalU,doubleacuteaccent,[LATINCAPITALLETTERUWITHDOUBLEACUTE] udblac,U00171,=smallu,doubleacuteaccent,[LATINSMALLLETTERUWITHDOUBLEACUTE] udhar,U0296E,upharp,downharp,[UPWARDSHARPOONWITHBARBLEFTBESIDEDOWNWARDSHARPOONWITHBARBRIGHT] ufisht,U0297E,upfishtail,[UPFISHTAIL] Ufr,U1D518,/frakU,uppercaseu,[MATHEMATICALFRAKTURCAPITALU] ufr,U1D532,/fraku,lowercaseu,[MATHEMATICALFRAKTURSMALLU] Ugrave,U000D9,=capitalU,graveaccent,[LATINCAPITALLETTERUWITHGRAVE] ugrave,U000F9,=smallu,graveaccent,[LATINSMALLLETTERUWITHGRAVE] uHar,U02963,upharpoon-left,upharpoon-right,[UPWARDSHARPOONWITHBARBLEFTBESIDEUPWARDSHARPOONWITHBARBRIGHT] uharl,U021BF,/upharpoonleftA:upharpoon-left,[UPWARDSHARPOONWITHBARBLEFTWARDS] uharr,U021BE,/upharpoonright/restrictionA:upharp-r,[UPWARDSHARPOONWITHBARBRIGHTWARDS] uhblk,U02580,=upperhalfblock,[UPPERHALFBLOCK] ulcorn,U0231C,/ulcornerO:upperleftcorner,[TOPLEFTCORNER] ulcorner,U0231C,aliasISOAMSCulcorn,[TOPLEFTCORNER] ulcrop,U0230F,upwardleftcropmark,[TOPLEFTCROP] ultri,U025F8,upperlefttriangle,[UPPERLEFTTRIANGLE] Umacr,U0016A,=capitalU,macron,[LATINCAPITALLETTERUWITHMACRON] umacr,U0016B,=smallu,macron,[LATINSMALLLETTERUWITHMACRON] uml,U000A8,=umlautmark,[DIAERESIS] UnderBar,U00332,combininglowline,[COMBININGLOWLINE] UnderBrace,U0FE38,underbrace,[PRESENTATIONFORMFORVERTICALRIGHTCURLYBRACKET] UnderBracket,U023B5,underbracket,[BOTTOMSQUAREBRACKET] UnderParenthesis,U0FE36,underparenthesis,[PRESENTATIONFORMFORVERTICALRIGHTPARENTHESIS] Union,U022C3,aliasISOAMSBxcup,[N-ARYUNION] UnionPlus,U0228E,aliasISOAMSBuplus,[MULTISETUNION] Uogon,U00172,=capitalU,ogonek,[LATINCAPITALLETTERUWITHOGONEK] uogon,U00173,=smallu,ogonek,[LATINSMALLLETTERUWITHOGONEK] Uopf,U1D54C,/BbbU,openfaceU,[MATHEMATICALDOUBLE-STRUCKCAPITALU] uopf,U1D566,,[MATHEMATICALDOUBLE-STRUCKSMALLU] UpArrow,U02191,aliasISONUMuarr,[UPWARDSARROW] Uparrow,U021D1,aliasISOAMSAuArr,[UPWARDSDOUBLEARROW] uparrow,U02191,aliasISONUMuarr,[UPWARDSARROW] UpArrowBar,U02912,uparrowtobar,[UPWARDSARROWTOBAR] UpArrowDownArrow,U021C5,aliasISOAMSAudarr,[UPWARDSARROWLEFTWARDSOFDOWNWARDSARROW] UpDownArrow,U02195,aliasISOAMSAvarr,[UPDOWNARROW] Updownarrow,U021D5,aliasISOAMSAvArr,[UPDOWNDOUBLEARROW] updownarrow,U02195,aliasISOAMSAvarr,[UPDOWNARROW] UpEquilibrium,U0296E,aliasISOAMSAudhar,[UPWARDSHARPOONWITHBARBLEFTBESIDEDOWNWARDSHARPOONWITHBARBRIGHT] upharpoonleft,U021BF,aliasISOAMSAuharl,[UPWARDSHARPOONWITHBARBLEFTWARDS] upharpoonright,U021BE,aliasISOAMSAuharr,[UPWARDSHARPOONWITHBARBRIGHTWARDS] uplus,U0228E,/uplusB:plussigninunion,[MULTISETUNION] UpperLeftArrow,U02196,aliasISOAMSAnwarr,[NORTHWESTARROW] UpperRightArrow,U02197,aliasISOAMSAnearr,[NORTHEASTARROW] Upsi,U003D2,/UpsiloncapitalUpsilon,Greek,[GREEKUPSILONWITHHOOKSYMBOL] upsi,U003C5,/upsilonsmallupsilon,Greek,[GREEKSMALLLETTERUPSILON] Upsilon,U003A5,ISOGRK1Ugr,HTML4Upsilon,[GREEKCAPITALLETTERUPSILON] upsilon,U003C5,aliasISOGRK3upsi,[GREEKSMALLLETTERUPSILON] UpTee,U022A5,aliasISOTECHperp,[UPTACK] UpTeeArrow,U021A5,Aliasmapstoup,[UPWARDSARROWFROMBAR] upuparrows,U021C8,aliasISOAMSAuuarr,[UPWARDSPAIREDARROWS] urcorn,U0231D,/urcornerC:upperrightcorner,[TOPRIGHTCORNER] urcorner,U0231D,aliasISOAMSCurcorn,[TOPRIGHTCORNER] urcrop,U0230E,upwardrightcropmark,[TOPRIGHTCROP] Uring,U0016E,=capitalU,ring,[LATINCAPITALLETTERUWITHRINGABOVE] uring,U0016F,=smallu,ring,[LATINSMALLLETTERUWITHRINGABOVE] urtri,U025F9,upperrighttriangle,[UPPERRIGHTTRIANGLE] Uscr,U1D4B0,/scrU,scriptletterU,[MATHEMATICALSCRIPTCAPITALU] uscr,U1D4CA,/scru,scriptletteru,[MATHEMATICALSCRIPTSMALLU] utdot,U022F0,threedots,ascending,[UPRIGHTDIAGONALELLIPSIS] Utilde,U00168,=capitalU,tilde,[LATINCAPITALLETTERUWITHTILDE] utilde,U00169,=smallu,tilde,[LATINSMALLLETTERUWITHTILDE] utri,U025B5,/triangle=uptriangle,open,[WHITEUP-POINTINGSMALLTRIANGLE] utrif,U025B4,/blacktriangle=uptri,filled,[BLACKUP-POINTINGSMALLTRIANGLE] uuarr,U021C8,/upuparrowsA:twouparrows,[UPWARDSPAIREDARROWS] Uuml,U000DC,=capitalU,dieresisorumlautmark,[LATINCAPITALLETTERUWITHDIAERESIS] uuml,U000FC,=smallu,dieresisorumlautmark,[LATINSMALLLETTERUWITHDIAERESIS] uwangle,U029A7,largeupwardpointingangle,[OBLIQUEANGLEOPENINGDOWN] vangrt,U0299C,rightangle,variant,[RIGHTANGLEVARIANTWITHSQUARE] varepsilon,U003B5,aliasISOGRK3epsiv,[GREEKSMALLLETTEREPSILON] varkappa,U003F0,aliasISOGRK3kappav,[GREEKKAPPASYMBOL] varnothing,U02205,aliasISOAMSOemptyv,[EMPTYSET] varphi,U003C6,aliasISOGRK3phiv,[GREEKSMALLLETTERPHI] varpi,U003D6,aliasISOGRK3piv,[GREEKPISYMBOL] varpropto,U0221D,aliasISOAMSRvprop,[PROPORTIONALTO] vArr,U021D5,/UpdownarrowA:up&downdblarrow,[UPDOWNDOUBLEARROW] varr,U02195,/updownarrowA:up&downarrow,[UPDOWNARROW] varrho,U003F1,aliasISOGRK3rhov,[GREEKRHOSYMBOL] varsigma,U003C2,aliasISOGRK3sigmav,[GREEKSMALLLETTERFINALSIGMA] varsubsetneq,U0228A-0FE00,aliasISOAMSNvsubne,[SUBSETOFWITHNOTEQUALTO-variantwithstrokethroughbottommembers] varsubsetneqq,U02ACB-0FE00,aliasISOAMSNvsubnE,[SUBSETOFABOVENOTEQUALTO-variantwithstrokethroughbottommembers] varsupsetneq,U0228B-0FE00,aliasISOAMSNvsupne,[SUPERSETOFWITHNOTEQUALTO-variantwithstrokethroughbottommembers] varsupsetneqq,U02ACC-0FE00,aliasISOAMSNvsupnE,[SUPERSETOFABOVENOTEQUALTO-variantwithstrokethroughbottommembers] vartheta,U003D1,aliasISOGRK3thetav,[GREEKTHETASYMBOL] vartriangleleft,U022B2,aliasISOAMSRvltri,[NORMALSUBGROUPOF] vartriangleright,U022B3,aliasISOAMSRvrtri,[CONTAINSASNORMALSUBGROUP] Vbar,U02AEB,dblvert,bar(under),[DOUBLEUPTACK] vBar,U02AE8,vert,dblbar(under),[SHORTUPTACKWITHUNDERBAR] vBarv,U02AE9,dblbar,vertoverandunder,[SHORTUPTACKABOVESHORTDOWNTACK] Vcy,U00412,=capitalVE,Cyrillic,[CYRILLICCAPITALLETTERVE] vcy,U00432,=smallve,Cyrillic,[CYRILLICSMALLLETTERVE] VDash,U022AB,dblvert,dbldash,[DOUBLEVERTICALBARDOUBLERIGHTTURNSTILE] Vdash,U022A9,/VdashR:dblvertical,dash,[FORCES] vDash,U022A8,/vDashR:vertical,dbldash,[TRUE] vdash,U022A2,/vdashR:vertical,dash,[RIGHTTACK] Vdashl,U02AE6,vertical,dash(long),[LONGDASHFROMLEFTMEMBEROFDOUBLEVERTICAL] Vee,U022C1,aliasISOAMSBxvee,[N-ARYLOGICALOR] vee,U02228,aliasISOTECHor,[LOGICALOR] veebar,U022BB,/veebarB:logicalor,barbelow,[XOR] veeeq,U0225A,logicalor,equals,[EQUIANGULARTO] vellip,U022EE,verticalellipsis,[VERTICALELLIPSIS] Verbar,U02016,/Vertdblverticalbar,[DOUBLEVERTICALLINE] verbar,U0007C,/vert=verticalbar,[VERTICALLINE] Vert,U02016,aliasISOTECHVerbar,[DOUBLEVERTICALLINE] vert,U0007C,aliasISONUMverbar,[VERTICALLINE] VerticalBar,U02223,aliasISOAMSRmid,[DIVIDES] VerticalLine,U0007C,aliasISONUMverbar,[VERTICALLINE] VerticalSeparator,U02758,verticalseparatingoperator,[LIGHTVERTICALBAR] VerticalTilde,U02240,aliasISOAMSBwreath,[WREATHPRODUCT] VeryThinSpace,U0200A,spaceofwidth1/18emaliasISOPUBhairsp,[HAIRSPACE] Vfr,U1D519,/frakV,uppercasev,[MATHEMATICALFRAKTURCAPITALV] vfr,U1D533,/frakv,lowercasev,[MATHEMATICALFRAKTURSMALLV] vltri,U022B2,/vartriangleleftR:ltri,open,var,[NORMALSUBGROUPOF] vnsub,U02282-020D2,/nsubsetN:notsubset,var,[SUBSETOFwithverticalline] vnsup,U02283-020D2,/nsupsetN:notsuperset,var,[SUPERSETOFwithverticalline] Vopf,U1D54D,/BbbV,openfaceV,[MATHEMATICALDOUBLE-STRUCKCAPITALV] vopf,U1D567,,[MATHEMATICALDOUBLE-STRUCKSMALLV] vprop,U0221D,/varproptoR:proportional,variant,[PROPORTIONALTO] vrtri,U022B3,/vartrianglerightR:rtri,open,var,[CONTAINSASNORMALSUBGROUP] Vscr,U1D4B1,/scrV,scriptletterV,[MATHEMATICALSCRIPTCAPITALV] vscr,U1D4CB,/scrv,scriptletterv,[MATHEMATICALSCRIPTSMALLV] vsubnE,U02ACB-0FE00,/varsubsetneqqN:subsetnotdbleq,var,[SUBSETOFABOVENOTEQUALTO-variantwithstrokethroughbottommembers] vsubne,U0228A-0FE00,/varsubsetneqN:subset,noteq,var,[SUBSETOFWITHNOTEQUALTO-variantwithstrokethroughbottommembers] vsupnE,U02ACC-0FE00,/varsupsetneqqN:supernotdbleq,var,[SUPERSETOFABOVENOTEQUALTO-variantwithstrokethroughbottommembers] vsupne,U0228B-0FE00,/varsupsetneqN:superset,noteq,var,[SUPERSETOFWITHNOTEQUALTO-variantwithstrokethroughbottommembers] Vvdash,U022AA,/VvdashR:triplevertical,dash,[TRIPLEVERTICALBARRIGHTTURNSTILE] vzigzag,U0299A,verticalzig-zagline,[VERTICALZIGZAGLINE] Wcirc,U00174,=capitalW,circumflexaccent,[LATINCAPITALLETTERWWITHCIRCUMFLEX] wcirc,U00175,=smallw,circumflexaccent,[LATINSMALLLETTERWWITHCIRCUMFLEX] wedbar,U02A5F,wedge,barbelow,[LOGICALANDWITHUNDERBAR] Wedge,U022C0,aliasISOAMSBxwedge,[N-ARYLOGICALAND] wedge,U02227,aliasISOTECHand,[LOGICALAND] wedgeq,U02259,/wedgeqR:correspondsto(wedge,equals),[ESTIMATES] weierp,U02118,/wp-Weierstrassp,[SCRIPTCAPITALP] Wfr,U1D51A,/frakW,uppercasew,[MATHEMATICALFRAKTURCAPITALW] wfr,U1D534,/frakw,lowercasew,[MATHEMATICALFRAKTURSMALLW] Wopf,U1D54E,/BbbW,openfaceW,[MATHEMATICALDOUBLE-STRUCKCAPITALW] wopf,U1D568,,[MATHEMATICALDOUBLE-STRUCKSMALLW] wp,U02118,aliasISOAMSOweierp,[SCRIPTCAPITALP] wr,U02240,aliasISOAMSBwreath,[WREATHPRODUCT] wreath,U02240,/wrB:wreathproduct,[WREATHPRODUCT] Wscr,U1D4B2,/scrW,scriptletterW,[MATHEMATICALSCRIPTCAPITALW] wscr,U1D4CC,/scrw,scriptletterw,[MATHEMATICALSCRIPTSMALLW] xcap,U022C2,/bigcapL:intersectionoperator,[N-ARYINTERSECTION] xcirc,U025EF,/bigcircB:largecircle,[LARGECIRCLE] xcup,U022C3,/bigcupL:unionoperator,[N-ARYUNION] xdtri,U025BD,/bigtriangledownB:bigdntri,open,[WHITEDOWN-POINTINGTRIANGLE] Xfr,U1D51B,/frakX,uppercasex,[MATHEMATICALFRAKTURCAPITALX] xfr,U1D535,/frakx,lowercasex,[MATHEMATICALFRAKTURSMALLX] xhArr,U027FA,/LongleftrightarrowA:longl&rdblarr,[LONGLEFTRIGHTDOUBLEARROW] xharr,U027F7,/longleftrightarrowA:longl&rarr,[LONGLEFTRIGHTARROW] Xi,U0039E,/XicapitalXi,Greek,[GREEKCAPITALLETTERXI] xi,U003BE,/xismallxi,Greek,[GREEKSMALLLETTERXI] xlArr,U027F8,/LongleftarrowA:longldblarrow,[LONGLEFTWARDSDOUBLEARROW] xlarr,U027F5,/longleftarrowA:longleftarrow,[LONGLEFTWARDSARROW] xmap,U027FC,/longmapstoA:,[LONGRIGHTWARDSARROWFROMBAR] xnis,U022FB,largecontains,verticalbaronhorizontalstroke,[CONTAINSWITHVERTICALBARATENDOFHORIZONTALSTROKE] xodot,U02A00,/bigodotL:circledotoperator,[N-ARYCIRCLEDDOTOPERATOR] Xopf,U1D54F,/BbbX,openfaceX,[MATHEMATICALDOUBLE-STRUCKCAPITALX] xopf,U1D569,,[MATHEMATICALDOUBLE-STRUCKSMALLX] xoplus,U02A01,/bigoplusL:circleplusoperator,[N-ARYCIRCLEDPLUSOPERATOR] xotime,U02A02,/bigotimesL:circletimesoperator,[N-ARYCIRCLEDTIMESOPERATOR] xrArr,U027F9,/LongrightarrowA:longrtdblarr,[LONGRIGHTWARDSDOUBLEARROW] xrarr,U027F6,/longrightarrowA:longrightarrow,[LONGRIGHTWARDSARROW] Xscr,U1D4B3,/scrX,scriptletterX,[MATHEMATICALSCRIPTCAPITALX] xscr,U1D4CD,/scrx,scriptletterx,[MATHEMATICALSCRIPTSMALLX] xsqcup,U02A06,/bigsqcupL:squareunionoperator,[N-ARYSQUAREUNIONOPERATOR] xuplus,U02A04,/biguplusL:,[N-ARYUNIONOPERATORWITHPLUS] xutri,U025B3,/bigtriangleupB:biguptri,open,[WHITEUP-POINTINGTRIANGLE] xvee,U022C1,/bigveeL:logicalandoperator,[N-ARYLOGICALOR] xwedge,U022C0,/bigwedgeL:logicaloroperator,[N-ARYLOGICALAND] Yacute,U000DD,=capitalY,acuteaccent,[LATINCAPITALLETTERYWITHACUTE] yacute,U000FD,=smally,acuteaccent,[LATINSMALLLETTERYWITHACUTE] YAcy,U0042F,=capitalYA,Cyrillic,[CYRILLICCAPITALLETTERYA] yacy,U0044F,=smallya,Cyrillic,[CYRILLICSMALLLETTERYA] Ycirc,U00176,=capitalY,circumflexaccent,[LATINCAPITALLETTERYWITHCIRCUMFLEX] ycirc,U00177,=smally,circumflexaccent,[LATINSMALLLETTERYWITHCIRCUMFLEX] Ycy,U0042B,=capitalYERU,Cyrillic,[CYRILLICCAPITALLETTERYERU] ycy,U0044B,=smallyeru,Cyrillic,[CYRILLICSMALLLETTERYERU] yen,U000A5,/yen=yensign,[YENSIGN] Yfr,U1D51C,/frakY,uppercasey,[MATHEMATICALFRAKTURCAPITALY] yfr,U1D536,/fraky,lowercasey,[MATHEMATICALFRAKTURSMALLY] YIcy,U00407,=capitalYI,Ukrainian,[CYRILLICCAPITALLETTERYI] yicy,U00457,=smallyi,Ukrainian,[CYRILLICSMALLLETTERYI] Yopf,U1D550,/BbbY,openfaceY,[MATHEMATICALDOUBLE-STRUCKCAPITALY] yopf,U1D56A,,[MATHEMATICALDOUBLE-STRUCKSMALLY] Yscr,U1D4B4,/scrY,scriptletterY,[MATHEMATICALSCRIPTCAPITALY] yscr,U1D4CE,/scry,scriptlettery,[MATHEMATICALSCRIPTSMALLY] YUcy,U0042E,=capitalYU,Cyrillic,[CYRILLICCAPITALLETTERYU] yucy,U0044E,=smallyu,Cyrillic,[CYRILLICSMALLLETTERYU] Yuml,U00178,=capitalY,dieresisorumlautmark,[LATINCAPITALLETTERYWITHDIAERESIS] yuml,U000FF,=smally,dieresisorumlautmark,[LATINSMALLLETTERYWITHDIAERESIS] Zacute,U00179,=capitalZ,acuteaccent,[LATINCAPITALLETTERZWITHACUTE] zacute,U0017A,=smallz,acuteaccent,[LATINSMALLLETTERZWITHACUTE] Zcaron,U0017D,=capitalZ,caron,[LATINCAPITALLETTERZWITHCARON] zcaron,U0017E,=smallz,caron,[LATINSMALLLETTERZWITHCARON] Zcy,U00417,=capitalZE,Cyrillic,[CYRILLICCAPITALLETTERZE] zcy,U00437,=smallze,Cyrillic,[CYRILLICSMALLLETTERZE] Zdot,U0017B,=capitalZ,dotabove,[LATINCAPITALLETTERZWITHDOTABOVE] zdot,U0017C,=smallz,dotabove,[LATINSMALLLETTERZWITHDOTABOVE] zeetrf,U02128,zeetransform,[BLACK-LETTERCAPITALZ] ZeroWidthSpace,U0200B,zerowidthspace,[ZEROWIDTHSPACE] zeta,U003B6,/zetasmallzeta,Greek,[GREEKSMALLLETTERZETA] Zfr,U02128,/frakZ,uppercasez,[BLACK-LETTERCAPITALZ] zfr,U1D537,/frakz,lowercasez,[MATHEMATICALFRAKTURSMALLZ] ZHcy,U00416,=capitalZHE,Cyrillic,[CYRILLICCAPITALLETTERZHE] zhcy,U00436,=smallzhe,Cyrillic,[CYRILLICSMALLLETTERZHE] zigrarr,U021DD,rightzig-zagarrow,[RIGHTWARDSSQUIGGLEARROW] Zopf,U02124,/BbbZ,openfaceZ,[DOUBLE-STRUCKCAPITALZ] zopf,U1D56B,,[MATHEMATICALDOUBLE-STRUCKSMALLZ] Zscr,U1D4B5,/scrZ,scriptletterZ,[MATHEMATICALSCRIPTCAPITALZ] zscr,U1D4CF,/scrz,scriptletterz,[MATHEMATICALSCRIPTSMALLZ] �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config/entities-table.xml���������������������������������������������������������0000644�0001750�0001750�00000267700�10613606776�015722� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ����������������������������������������������������������������gtkmathview-0.8.0/config/dictionary.in��������������������������������������������������������������0000644�0001750�0001750�00000107272�10613606776�014761� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������"(" form="prefix" fence="true" stretchy="true" lspace="0em" rspace="0em" ")" form="postfix" fence="true" stretchy="true" lspace="0em" rspace="0em" "[" form="prefix" fence="true" stretchy="true" lspace="0em" rspace="0em" "]" form="postfix" fence="true" stretchy="true" lspace="0em" rspace="0em" "{" form="prefix" fence="true" stretchy="true" lspace="0em" rspace="0em" "}" form="postfix" fence="true" stretchy="true" lspace="0em" rspace="0em" "”" form="postfix" fence="true" lspace="0em" rspace="0em" "’" form="postfix" fence="true" lspace="0em" rspace="0em" "⟨" form="prefix" fence="true" stretchy="true" lspace="0em" rspace="0em" "⌈" form="prefix" fence="true" stretchy="true" lspace="0em" rspace="0em" "⟦" form="prefix" fence="true" stretchy="true" lspace="0em" rspace="0em" "⌊" form="prefix" fence="true" stretchy="true" lspace="0em" rspace="0em" "“" form="prefix" fence="true" lspace="0em" rspace="0em" "‘" form="prefix" fence="true" lspace="0em" rspace="0em" "⟩" form="postfix" fence="true" stretchy="true" lspace="0em" rspace="0em" "⌉" form="postfix" fence="true" stretchy="true" lspace="0em" rspace="0em" "⟧" form="postfix" fence="true" stretchy="true" lspace="0em" rspace="0em" "⌋" form="postfix" fence="true" stretchy="true" lspace="0em" rspace="0em" "⁣" form="infix" separator="true" lspace="0em" rspace="0em" "," form="infix" separator="true" lspace="0em" rspace="verythickmathspace" "─" form="infix" stretchy="true" minsize="0" lspace="0em" rspace="0em" "|" form="infix" stretchy="true" minsize="0" lspace="0em" rspace="0em" ";" form="infix" separator="true" lspace="0em" rspace="thickmathspace" ";" form="postfix" separator="true" lspace="0em" rspace="0em" ":=" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≔" form="infix" lspace="thickmathspace" rspace="thickmathspace" "∵" form="infix" lspace="thickmathspace" rspace="thickmathspace" "∴" form="infix" lspace="thickmathspace" rspace="thickmathspace" "❘" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "//" form="infix" lspace="thickmathspace" rspace="thickmathspace" "∷" form="infix" lspace="thickmathspace" rspace="thickmathspace" "&" form="prefix" lspace="0em" rspace="thickmathspace" "&" form="postfix" lspace="thickmathspace" rspace="0em" "*=" form="infix" lspace="thickmathspace" rspace="thickmathspace" "-=" form="infix" lspace="thickmathspace" rspace="thickmathspace" "+=" form="infix" lspace="thickmathspace" rspace="thickmathspace" "/=" form="infix" lspace="thickmathspace" rspace="thickmathspace" "->" form="infix" lspace="thickmathspace" rspace="thickmathspace" ":" form="infix" lspace="thickmathspace" rspace="thickmathspace" ".." form="postfix" lspace="mediummathspace" rspace="0em" "..." form="postfix" lspace="mediummathspace" rspace="0em" "∋" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⫤" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊨" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊤" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊣" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊢" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⇒" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⥰" form="infix" lspace="thickmathspace" rspace="thickmathspace" "|" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "||" form="infix" lspace="mediummathspace" rspace="mediummathspace" "⩔" form="infix" stretchy="true" lspace="mediummathspace" rspace="mediummathspace" "&&" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⩓" form="infix" stretchy="true" lspace="mediummathspace" rspace="mediummathspace" "&" form="infix" lspace="thickmathspace" rspace="thickmathspace" "!" form="prefix" lspace="0em" rspace="thickmathspace" "⫬" form="prefix" lspace="0em" rspace="thickmathspace" "∃" form="prefix" lspace="0em" rspace="thickmathspace" "∀" form="prefix" lspace="0em" rspace="thickmathspace" "∄" form="prefix" lspace="0em" rspace="thickmathspace" "∈" form="infix" lspace="thickmathspace" rspace="thickmathspace" "∉" form="infix" lspace="thickmathspace" rspace="thickmathspace" "∌" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊏̸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⋢" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊐̸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⋣" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊂⃒" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊈" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊃⃒" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊉" form="infix" lspace="thickmathspace" rspace="thickmathspace" "∋" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊏" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊑" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊐" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊒" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⋐" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊆" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊃" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊇" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⇐" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⇔" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⇒" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⥐" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⥞" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "↽" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⥖" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⥟" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⇁" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⥗" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "←" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⇤" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⇆" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "↔" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⥎" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "↤" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⥚" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "↼" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⥒" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "↙" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "↘" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "→" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⇥" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⇄" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "↦" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⥛" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⇀" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⥓" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "←" form="infix" lspace="thickmathspace" rspace="thickmathspace" "→" form="infix" lspace="thickmathspace" rspace="thickmathspace" "↖" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "↗" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "=" form="infix" lspace="thickmathspace" rspace="thickmathspace" "<" form="infix" lspace="thickmathspace" rspace="thickmathspace" ">" form="infix" lspace="thickmathspace" rspace="thickmathspace" "!=" form="infix" lspace="thickmathspace" rspace="thickmathspace" "==" form="infix" lspace="thickmathspace" rspace="thickmathspace" "<=" form="infix" lspace="thickmathspace" rspace="thickmathspace" ">=" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≡" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≍" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≐" form="infix" lspace="thickmathspace" rspace="thickmathspace" "∥" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⩵" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≂" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⇌" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "≥" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⋛" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≧" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⪢" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≷" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⩾" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≳" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≎" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≏" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊲" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⧏" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊴" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≤" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⋚" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≦" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≶" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⪡" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⩽" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≲" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≫" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≪" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≢" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≭" form="infix" lspace="thickmathspace" rspace="thickmathspace" "∦" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≠" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≂̸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≯" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≱" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≧̸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≫̸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≹" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⩾̸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≵" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≎̸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≏̸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⋪" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⧏̸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⋬" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≮" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≰" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≪̸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⩽̸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≴" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⪢̸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⪡̸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊀" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⪯̸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⋠" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⋫" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⧐̸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⋭" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊁" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⪰̸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⋡" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≿̸" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≁" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≄" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≇" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≉" form="infix" lspace="thickmathspace" rspace="thickmathspace" "∤" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≺" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⪯" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≼" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≾" form="infix" lspace="thickmathspace" rspace="thickmathspace" "∷" form="infix" lspace="thickmathspace" rspace="thickmathspace" "∝" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⇋" form="infix" stretchy="true" lspace="thickmathspace" rspace="thickmathspace" "⊳" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⧐" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊵" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≻" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⪰" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≽" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≿" form="infix" lspace="thickmathspace" rspace="thickmathspace" "∼" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≃" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≅" form="infix" lspace="thickmathspace" rspace="thickmathspace" "≈" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊥" form="infix" lspace="thickmathspace" rspace="thickmathspace" "∣" form="infix" lspace="thickmathspace" rspace="thickmathspace" "⊔" form="infix" stretchy="true" lspace="mediummathspace" rspace="mediummathspace" "⋃" form="infix" stretchy="true" lspace="mediummathspace" rspace="mediummathspace" "⊎" form="infix" stretchy="true" lspace="mediummathspace" rspace="mediummathspace" "-" form="infix" lspace="mediummathspace" rspace="mediummathspace" "+" form="infix" lspace="mediummathspace" rspace="mediummathspace" "⋂" form="infix" stretchy="true" lspace="mediummathspace" rspace="mediummathspace" "∓" form="infix" lspace="mediummathspace" rspace="mediummathspace" "±" form="infix" lspace="mediummathspace" rspace="mediummathspace" "⊓" form="infix" stretchy="true" lspace="mediummathspace" rspace="mediummathspace" "⋁" form="prefix" largeop="true" movablelimits="true" stretchy="true" lspace="0em" rspace="thinmathspace" "⊖" form="prefix" largeop="true" movablelimits="true" lspace="0em" rspace="thinmathspace" "⊕" form="prefix" largeop="true" movablelimits="true" lspace="0em" rspace="thinmathspace" "∑" form="prefix" largeop="true" movablelimits="true" stretchy="true" lspace="0em" rspace="thinmathspace" "⋃" form="prefix" largeop="true" movablelimits="true" stretchy="true" lspace="0em" rspace="thinmathspace" "⊎" form="prefix" largeop="true" movablelimits="true" stretchy="true" lspace="0em" rspace="thinmathspace" "lim" form="prefix" movablelimits="true" lspace="0em" rspace="thinmathspace" "max" form="prefix" movablelimits="true" lspace="0em" rspace="thinmathspace" "min" form="prefix" movablelimits="true" lspace="0em" rspace="thinmathspace" "⊖" form="infix" lspace="thinmathspace" rspace="thinmathspace" "⊕" form="infix" lspace="thinmathspace" rspace="thinmathspace" "∲" form="prefix" largeop="true" stretchy="true" lspace="0em" rspace="0em" "∮" form="prefix" largeop="true" stretchy="true" lspace="0em" rspace="0em" "∳" form="prefix" largeop="true" stretchy="true" lspace="0em" rspace="0em" "∯" form="prefix" largeop="true" stretchy="true" lspace="0em" rspace="0em" "∫" form="prefix" largeop="true" stretchy="true" lspace="0em" rspace="0em" "⋓" form="infix" lspace="thinmathspace" rspace="thinmathspace" "⋒" form="infix" lspace="thinmathspace" rspace="thinmathspace" "≀" form="infix" lspace="thinmathspace" rspace="thinmathspace" "⋀" form="prefix" largeop="true" movablelimits="true" stretchy="true" lspace="0em" rspace="thinmathspace" "⊗" form="prefix" largeop="true" movablelimits="true" lspace="0em" rspace="thinmathspace" "∐" form="prefix" largeop="true" movablelimits="true" stretchy="true" lspace="0em" rspace="thinmathspace" "∏" form="prefix" largeop="true" movablelimits="true" stretchy="true" lspace="0em" rspace="thinmathspace" "⋂" form="prefix" largeop="true" movablelimits="true" stretchy="true" lspace="0em" rspace="thinmathspace" "∐" form="infix" lspace="thinmathspace" rspace="thinmathspace" "⋆" form="infix" lspace="thinmathspace" rspace="thinmathspace" "⊙" form="prefix" largeop="true" movablelimits="true" lspace="0em" rspace="thinmathspace" "*" form="infix" lspace="thinmathspace" rspace="thinmathspace" "⁢" form="infix" lspace="0em" rspace="0em" "·" form="infix" lspace="thinmathspace" rspace="thinmathspace" "⊗" form="infix" lspace="thinmathspace" rspace="thinmathspace" "⋁" form="infix" lspace="thinmathspace" rspace="thinmathspace" "⋀" form="infix" lspace="thinmathspace" rspace="thinmathspace" "⋄" form="infix" lspace="thinmathspace" rspace="thinmathspace" "∖" form="infix" stretchy="true" lspace="thinmathspace" rspace="thinmathspace" "/" form="infix" stretchy="true" lspace="thinmathspace" rspace="thinmathspace" "-" form="prefix" lspace="0em" rspace="veryverythinmathspace" "+" form="prefix" lspace="0em" rspace="veryverythinmathspace" "∓" form="prefix" lspace="0em" rspace="veryverythinmathspace" "±" form="prefix" lspace="0em" rspace="veryverythinmathspace" "." form="infix" lspace="0em" rspace="0em" "⨯" form="infix" lspace="verythinmathspace" rspace="verythinmathspace" "**" form="infix" lspace="verythinmathspace" rspace="verythinmathspace" "⊙" form="infix" lspace="verythinmathspace" rspace="verythinmathspace" "∘" form="infix" lspace="verythinmathspace" rspace="verythinmathspace" "□" form="prefix" lspace="0em" rspace="verythinmathspace" "∇" form="prefix" lspace="0em" rspace="verythinmathspace" "∂" form="prefix" lspace="0em" rspace="verythinmathspace" "ⅅ" form="prefix" lspace="0em" rspace="verythinmathspace" "ⅆ" form="prefix" lspace="0em" rspace="verythinmathspace" "√" form="prefix" stretchy="true" lspace="0em" rspace="verythinmathspace" "⇓" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⟸" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⟺" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⟹" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⇑" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⇕" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "↓" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⤓" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⇵" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "↧" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⥡" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⇃" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⥙" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⥑" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⥠" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "↿" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⥘" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⟵" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⟷" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⟶" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⥯" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⥝" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⇂" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⥕" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⥏" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⥜" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "↾" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⥔" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "↓" form="infix" lspace="verythinmathspace" rspace="verythinmathspace" "↑" form="infix" lspace="verythinmathspace" rspace="verythinmathspace" "↑" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⤒" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⇅" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "↕" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "⥮" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "↥" form="infix" stretchy="true" lspace="verythinmathspace" rspace="verythinmathspace" "^" form="infix" lspace="verythinmathspace" rspace="verythinmathspace" "<>" form="infix" lspace="verythinmathspace" rspace="verythinmathspace" "'" form="postfix" lspace="verythinmathspace" rspace="0em" "!" form="postfix" lspace="verythinmathspace" rspace="0em" "!!" form="postfix" lspace="verythinmathspace" rspace="0em" "~" form="infix" lspace="verythinmathspace" rspace="verythinmathspace" "@" form="infix" lspace="verythinmathspace" rspace="verythinmathspace" "--" form="postfix" lspace="verythinmathspace" rspace="0em" "--" form="prefix" lspace="0em" rspace="verythinmathspace" "++" form="postfix" lspace="verythinmathspace" rspace="0em" "++" form="prefix" lspace="0em" rspace="verythinmathspace" "⁡" form="infix" lspace="0em" rspace="0em" "?" form="infix" lspace="verythinmathspace" rspace="verythinmathspace" "_" form="infix" lspace="verythinmathspace" rspace="verythinmathspace" "˘" form="postfix" accent="true" lspace="0em" rspace="0em" "¸" form="postfix" accent="true" lspace="0em" rspace="0em" "`" form="postfix" accent="true" lspace="0em" rspace="0em" "˙" form="postfix" accent="true" lspace="0em" rspace="0em" "˝" form="postfix" accent="true" lspace="0em" rspace="0em" "←" form="postfix" accent="true" stretchy="true" lspace="0em" rspace="0em" "↔" form="postfix" accent="true" stretchy="true" lspace="0em" rspace="0em" "⥎" form="postfix" accent="true" stretchy="true" lspace="0em" rspace="0em" "↼" form="postfix" accent="true" stretchy="true" lspace="0em" rspace="0em" "´" form="postfix" accent="true" lspace="0em" rspace="0em" "→" form="postfix" accent="true" stretchy="true" lspace="0em" rspace="0em" "⇀" form="postfix" accent="true" stretchy="true" lspace="0em" rspace="0em" "˜" form="postfix" accent="true" stretchy="true" lspace="0em" rspace="0em" "¨" form="postfix" accent="true" lspace="0em" rspace="0em" "̑" form="postfix" accent="true" lspace="0em" rspace="0em" "ˇ" form="postfix" accent="true" stretchy="true" lspace="0em" rspace="0em" "^" form="postfix" accent="true" stretchy="true" lspace="0em" rspace="0em" "‾" form="postfix" accent="true" stretchy="true" lspace="0em" rspace="0em" "⏞" form="postfix" accent="true" stretchy="true" lspace="0em" rspace="0em" "⎴" form="postfix" accent="true" stretchy="true" lspace="0em" rspace="0em" "⏜" form="postfix" accent="true" stretchy="true" lspace="0em" rspace="0em" "⃛" form="postfix" accent="true" lspace="0em" rspace="0em" "_" form="postfix" accent="true" stretchy="true" lspace="0em" rspace="0em" "⏟" form="postfix" accent="true" stretchy="true" lspace="0em" rspace="0em" "⎵" form="postfix" accent="true" stretchy="true" lspace="0em" rspace="0em" "⏝" form="postfix" accent="true" stretchy="true" lspace="0em" rspace="0em" ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config/Makefile.in����������������������������������������������������������������0000644�0001750�0001750�00000034221�10704610530�014302� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = config DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/gtkmathview.conf.xml.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = gtkmathview.conf.xml SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(pkgdatadir)" \ "$(DESTDIR)$(pkgsysconfdir)" pkgdataDATA_INSTALL = $(INSTALL_DATA) pkgsysconfDATA_INSTALL = $(INSTALL_DATA) DATA = $(noinst_DATA) $(pkgdata_DATA) $(pkgsysconf_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = MAINTERNERCLEANFILES = \ gtkmathview.conf.xml \ $(NULL) EXTRA_DIST = \ mathml-entities.dtd \ dictionary.in \ dictionary.dtd \ dictionary.xml \ dictionary-local.xml \ dictionary-combining.xml \ entities-table.in \ entities-table.dtd \ entities-table.xml \ gtkmathview.conf.xml.in \ gtkmathview.conf.dtd \ gtkmathview.conf.xml \ gtkmathview.conf.xml.debug \ Makefile.slow \ $(NULL) pkgsysconfdir = $(sysconfdir)/@PACKAGE@ pkgsysconf_DATA = \ gtkmathview.conf.xml pkgdata_DATA = \ mathml-entities.dtd \ dictionary.dtd \ dictionary.xml \ dictionary-local.xml \ dictionary-combining.xml \ entities-table.dtd \ entities-table.xml \ gtkmathview.conf.dtd \ $(NULL) noinst_DATA = \ gtkmathview.conf.xml.debug all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign config/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign config/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh gtkmathview.conf.xml: $(top_builddir)/config.status $(srcdir)/gtkmathview.conf.xml.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-pkgdataDATA: $(pkgdata_DATA) @$(NORMAL_INSTALL) test -z "$(pkgdatadir)" || $(mkdir_p) "$(DESTDIR)$(pkgdatadir)" @list='$(pkgdata_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(pkgdataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgdatadir)/$$f'"; \ $(pkgdataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgdatadir)/$$f"; \ done uninstall-pkgdataDATA: @$(NORMAL_UNINSTALL) @list='$(pkgdata_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(pkgdatadir)/$$f'"; \ rm -f "$(DESTDIR)$(pkgdatadir)/$$f"; \ done install-pkgsysconfDATA: $(pkgsysconf_DATA) @$(NORMAL_INSTALL) test -z "$(pkgsysconfdir)" || $(mkdir_p) "$(DESTDIR)$(pkgsysconfdir)" @list='$(pkgsysconf_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(pkgsysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgsysconfdir)/$$f'"; \ $(pkgsysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgsysconfdir)/$$f"; \ done uninstall-pkgsysconfDATA: @$(NORMAL_UNINSTALL) @list='$(pkgsysconf_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(pkgsysconfdir)/$$f'"; \ rm -f "$(DESTDIR)$(pkgsysconfdir)/$$f"; \ done tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(pkgsysconfdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-pkgdataDATA install-pkgsysconfDATA @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-pkgdataDATA \ uninstall-pkgsysconfDATA .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-data-hook install-exec \ install-exec-am install-info install-info-am install-man \ install-pkgdataDATA install-pkgsysconfDATA install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ uninstall-info-am uninstall-pkgdataDATA \ uninstall-pkgsysconfDATA @WITH_BINRELOC_TRUE@install-data-hook: @WITH_BINRELOC_TRUE@ cp $(srcdir)/gtkmathview.conf.xml.in $(DESTDIR)/$(pkgsysconfdir) @WITH_BINRELOC_FALSE@install-data-hook: @WITH_BINRELOC_FALSE@ true # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config/dictionary-local.xml�������������������������������������������������������0000644�0001750�0001750�00000002374�10613606776�016240� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config/gtkmathview.conf.xml�������������������������������������������������������0000644�0001750�0001750�00000020606�10704621260�016241� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ 0.8.0
0
/usr/local/share/gtkmathview/dictionary.xml /usr/local/share/gtkmathview/dictionary-local.xml /usr/local/share/gtkmathview/dictionary-combining.xml
12pt
#000000 #ffffff
#32648b #ffffff
#000000 #ff6a6a
/usr/share/texmf/fonts/type1/bluesky/cm false true
false 0
true 0
true 1
false 1
true 1
false 1 always
false 1 true never
true 0
true 1
false 1 always
true 1 always
false 0
true 1
true 1 always
cmr10 cmmi10 cmsy10 cmex10
��������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/config.h.in�����������������������������������������������������������������������0000644�0001750�0001750�00000011435�10704610654�013024� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* config.h.in. Generated from configure.ac by autoheader. */ /* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef config_h #define config_h /* Define to 1 if you want to enable linebreaking using mspace elements */ #undef ENABLE_BREAKS /* Define to 1 to enable caching of MathML Text nodes (slower but saves memory) */ #undef ENABLE_BUILDER_CACHE /* Define to 1 if you want to enable validity checks while running */ #undef ENABLE_DEBUG /* Define to 1 to let the widget collect some information for profiling purposes */ #undef ENABLE_PROFILE /* Define to 1 if you want to enable the PostScript backend */ #undef ENABLE_PS /* Define to 1 if you want to enable the SVG backend */ #undef ENABLE_SVG /* Define to 1 if you want support for BoxML markup */ #undef GMV_ENABLE_BOXML /* Define if is provided */ #undef GMV_HAVE_EXT_HASH_MAP /* Define if is provided */ #undef GMV_HAVE_HASH_MAP /* Define to 0, 1, 2, or 3 depending on the TFM support level you want */ #undef GMV_TFM_LEVEL /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the header file. */ #undef HAVE_EXT_HASH_MAP /* Define to 1 if gmetadom is installed */ #undef HAVE_GMETADOM /* Define to 1 if GTK+ is installed */ #undef HAVE_GTK /* Define to 1 if you have the header file. */ #undef HAVE_HASH_MAP /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 to compile with t1lib for Type 1 fonts */ #undef HAVE_LIBT1 /* Define to 1 if libxml2 is installed */ #undef HAVE_LIBXML /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if Pango is installed */ #undef HAVE_PANGO /* Define to 1 if popt.h is available */ #undef HAVE_POPT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_T1LIB_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ #undef PACKAGE_VERSION /* The size of `unsigned char', as computed by sizeof. */ #undef SIZEOF_UNSIGNED_CHAR /* The size of `unsigned int', as computed by sizeof. */ #undef SIZEOF_UNSIGNED_INT /* The size of `unsigned long', as computed by sizeof. */ #undef SIZEOF_UNSIGNED_LONG /* The size of `unsigned long long', as computed by sizeof. */ #undef SIZEOF_UNSIGNED_LONG_LONG /* The size of `unsigned short', as computed by sizeof. */ #undef SIZEOF_UNSIGNED_SHORT /* The size of `wchar_t', as computed by sizeof. */ #undef SIZEOF_WCHAR_T /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if standard traits for char and wchar_t are provided */ #undef STD_TRAITS /* Version number of package */ #undef VERSION /* Define to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). */ #undef WORDS_BIGENDIAN /* Define to 1 if type `char' is unsigned and you are not using gcc. */ #ifndef __CHAR_UNSIGNED__ # undef __CHAR_UNSIGNED__ #endif /* Define to empty if `const' does not conform to ANSI C. */ #undef const #define GMV_ENABLE_TFM (GMV_TFM_LEVEL != 0) #endif /* config_h */ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathview-frontend-gmetadom.pc.in��������������������������������������������������0000644�0001750�0001750�00000000736�10704611354�017166� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# This is a comment prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ datarootdir=@datarootdir@ datadir=@datadir@ Name: MathView Description: MathML rendering engine (GMetaDOM frontend) Version: @VERSION@ Requires: glib-2.0 gdome2-cpp-smart mathview-core Libs: @DOM_LIBS@ -L${libdir} -lmathview_frontend_gmetadom Cflags: @DOM_CFLAGS@ -I${includedir}/@PACKAGE@ @GMV_ENABLE_BOXML_CFLAGS@ @GMV_HAVE_HASH_MAP_CFLAGS@ @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ ����������������������������������gtkmathview-0.8.0/Makefile.am�����������������������������������������������������������������������0000644�0001750�0001750�00000003731�10613606776�013046� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ NULL = if COND_GTK if COND_HAVE_POPT MAYBE_GTK_SUBDIRS = viewer else MAYBE_GTK_SUBDIRS = $(NULL) endif else MAYBE_GTK_SUBDIRS = $(NULL) endif if COND_SVG if COND_HAVE_POPT MAYBE_SVG_SUBDIRS = mathmlsvg else MAYBE_SVG_SUBDIRS = $(NULL) endif else MAYBE_SVG_SUBDIRS = $(NULL) endif if COND_PS if COND_HAVE_POPT MAYBE_PS_SUBDIRS = mathmlps else MAYBE_PS_SUBDIRS = $(NULL) endif else MAYBE_PS_SUBDIRS = $(NULL) endif EXTRA_DIST = BUGS HISTORY LICENSE ANNOUNCEMENT CONTRIBUTORS config.h.in README.MacOSX SUBDIRS = scripts config auto autopackage src doc $(MAYBE_GTK_SUBDIRS) $(MAYBE_SVG_SUBDIRS) $(MAYBE_PS_SUBDIRS) CLEANFILES = core *.log *.eps pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = mathview-core.pc if COND_LIBXML2 pkgconfig_DATA += mathview-frontend-libxml2.pc endif if COND_LIBXML2_READER pkgconfig_DATA += mathview-frontend-libxml2-reader.pc endif if COND_CUSTOM_READER pkgconfig_DATA += mathview-frontend-custom-reader.pc endif if COND_GMETADOM pkgconfig_DATA += mathview-frontend-gmetadom.pc endif if COND_GTK pkgconfig_DATA += mathview-backend-gtk.pc if COND_LIBXML2 pkgconfig_DATA += gtkmathview-libxml2.pc endif if COND_LIBXML2_READER pkgconfig_DATA += gtkmathview-libxml2-reader.pc endif if COND_CUSTOM_READER pkgconfig_DATA += gtkmathview-custom-reader.pc endif if COND_GMETADOM pkgconfig_DATA += gtkmathview-gmetadom.pc endif endif if COND_SVG pkgconfig_DATA += mathview-backend-svg.pc endif if COND_PS pkgconfig_DATA += mathview-backend-ps.pc endif SCRIPTDIR = ./scripts backup: tar cvfz ../@PACKAGE@-@VERSION@-`date|tr ' ' '_'|tr ':' '_'`.tar.gz . cleanbak: -rm -f `find . -name "*~"` lc: @( \ CFILES=`find $(top_srcdir) -name "*.c"`; \ HFILES=`find $(top_srcdir) -name "*.h"`; \ CCFILES=`find $(top_srcdir) -name "*.cc"`; \ HHFILES=`find $(top_srcdir) -name "*.hh"`; \ ICCFILES=`find $(top_srcdir) -name "*.icc"`; \ wc -l $$CFILES $$HFILES $$CCFILES $$HHFILES $$ICCFILES | tail -n 1 \ ) distdiff: diff -r src/ @PACKAGE@-@VERSION@/src/ | grep '.\(cc\|hh\)$$' ���������������������������������������gtkmathview-0.8.0/configure�������������������������������������������������������������������������0000755�0001750�0001750�00003250132�10704610564�012712� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell autoconf@gnu.org about your system, echo including any error possibly output before this echo message } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` ;; esac echo=${ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string=`eval $cmd`) 2>/dev/null && echo_test_string=`eval $cmd` && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL $0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL $0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "$0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi tagnames=${tagnames+${tagnames},}CXX tagnames=${tagnames+${tagnames},}F77 exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="src/common/Clock.hh" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir localstatedir includedir oldincludedir docdir infodir htmldir dvidir pdfdir psdir libdir localedir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias host_alias target_alias MAJOR_VERSION MINOR_VERSION MATHVIEW_VERSION MATHVIEW_VERSION_INFO AREAMODEL_VERSION_INFO COND_BOXML_TRUE COND_BOXML_FALSE GMV_ENABLE_BOXML_CFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE GREP EGREP LN_S ECHO AR RANLIB DLLTOOL AS OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CHAR_UNSIGNED GTKMATHVIEW_SIZEOF_CHAR GTKMATHVIEW_SIZEOF_SHORT GTKMATHVIEW_SIZEOF_INT GTKMATHVIEW_SIZEOF_LONG GTKMATHVIEW_SIZEOF_LONG_LONG GTKMATHVIEW_SIZEOF_WCHAR_T GMV_HAVE_HASH_MAP_CFLAGS GMV_HAVE_EXT_HASH_MAP_CFLAGS HAVE_XSLTPROC COND_XSLTPROC_TRUE COND_XSLTPROC_FALSE COND_HAVE_POPT_TRUE COND_HAVE_POPT_FALSE POPT_CFLAGS POPT_LIBS PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GTK_CFLAGS GTK_LIBS PANGOX_CFLAGS PANGOX_LIBS COND_GTK_TRUE COND_GTK_FALSE COND_CUSTOM_READER_TRUE COND_CUSTOM_READER_FALSE XML_CFLAGS XML_LIBS COND_LIBXML2_TRUE COND_LIBXML2_FALSE COND_LIBXML2_READER_TRUE COND_LIBXML2_READER_FALSE DOM_CFLAGS DOM_LIBS COND_GMETADOM_TRUE COND_GMETADOM_FALSE COND_T1LIB_TRUE COND_T1LIB_FALSE T1_CFLAGS T1_LIBS T1_LIBS_X COND_PROFILE_TRUE COND_PROFILE_FALSE COND_TFM_TRUE COND_TFM_FALSE COND_TFM_LEVEL_1_TRUE COND_TFM_LEVEL_1_FALSE COND_TFM_LEVEL_2_TRUE COND_TFM_LEVEL_2_FALSE COND_TFM_LEVEL_3_TRUE COND_TFM_LEVEL_3_FALSE COND_SVG_TRUE COND_SVG_FALSE COND_PS_TRUE COND_PS_FALSE WITH_BINRELOC_TRUE WITH_BINRELOC_FALSE USE_GCC_PCH_TRUE USE_GCC_PCH_FALSE LIBOBJS LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP CXX CXXFLAGS CCC CXXCPP F77 FFLAGS PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GTK_CFLAGS GTK_LIBS PANGOX_CFLAGS PANGOX_LIBS XML_CFLAGS XML_LIBS DOM_CFLAGS DOM_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$0" || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-builder-cache=ARG enable the cache for MathML text nodes default=no --enable-pipe=ARG enable the -pipe option in the GCC compiler default=no --enable-profile=ARG include profiling information default=no --enable-debug=ARG include debugging debug default=yes --enable-breaks=ARG enable linebreaking with mspace elements default=no --enable-boxml=ARG enable support for BoxML markup default=yes --enable-gmetadom=ARG enable the GMetaDOM frontend default=auto --enable-libxml2=ARG enable the libxml2 frontend default=auto --enable-libxml2-reader=ARG enable the libxml2 reader frontend default=auto --enable-custom-reader=ARG enable the custom reader frontend default=yes --enable-tfm=ARG enable support level for TeX Font Metrics (0,1,2,3) disabled=0,default=2 --enable-gtk=ARG enable GTK backend default=auto --enable-svg=ARG enable SVG backend default=yes --enable-ps=ARG enable PostScript backend default=yes --enable-gcc-pch=yes/no/auto use gcc4 pch support (default=auto) --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --disable-libtool-lock avoid locking (might break parallel builds) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-t1lib=ARG compile with t1lib 1.x library default=auto --with-t1lib-prefix=PFX prefix dir where t1lib is installed --with-popt-prefix=PFX prefix dir where popt is installed --with-popt=ARG use popt - required for mathmlsvg and viewer (default=auto) --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-pic try to use only PIC/non-PIC objects [default=use both] --with-tags[=TAGS] include additional configurations [automatic] Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags PKG_CONFIG path to pkg-config utility GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config GLIB_LIBS linker flags for GLIB, overriding pkg-config GTK_CFLAGS C compiler flags for GTK, overriding pkg-config GTK_LIBS linker flags for GTK, overriding pkg-config PANGOX_CFLAGS C compiler flags for PANGOX, overriding pkg-config PANGOX_LIBS linker flags for PANGOX, overriding pkg-config XML_CFLAGS C compiler flags for XML, overriding pkg-config XML_LIBS linker flags for XML, overriding pkg-config DOM_CFLAGS C compiler flags for DOM, overriding pkg-config DOM_LIBS linker flags for DOM, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then set x "$prefix/share/config.site" "$prefix/etc/config.site" else set x "$ac_default_prefix/share/config.site" \ "$ac_default_prefix/etc/config.site" fi shift for ac_site_file do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu MATHVIEW_MAJOR_VERSION=0 MATHVIEW_MINOR_VERSION=8 MATHVIEW_MICRO_VERSION=0 MATHVIEW_VERSION=$MATHVIEW_MAJOR_VERSION.$MATHVIEW_MINOR_VERSION.$MATHVIEW_MICRO_VERSION MATHVIEW_VERSION_INFO=`expr $MATHVIEW_MAJOR_VERSION + $MATHVIEW_MINOR_VERSION`:$MATHVIEW_MICRO_VERSION:$MATHVIEW_MINOR_VERSION MAJOR_VERSION=$MATHVIEW_MAJOR_VERSION MINOR_VERSION=$MATHVIEW_MINOR_VERSION VERSION=$MATHVIEW_VERSION AREAMODEL_VERSION_INFO=$MATHVIEW_VERSION_INFO # Check whether --enable-builder-cache was given. if test "${enable_builder_cache+set}" = set; then enableval=$enable_builder_cache; enable_builder_cache=$enableval else enable_builder_cache=no fi # Check whether --enable-pipe was given. if test "${enable_pipe+set}" = set; then enableval=$enable_pipe; enable_pipe=$enableval else enable_pipe=no fi # Check whether --enable-profile was given. if test "${enable_profile+set}" = set; then enableval=$enable_profile; enable_profile=$enableval else enable_profile=no fi # Check whether --enable-debug was given. if test "${enable_debug+set}" = set; then enableval=$enable_debug; enable_debug=$enableval else enable_debug=no fi # Check whether --enable-breaks was given. if test "${enable_breaks+set}" = set; then enableval=$enable_breaks; enable_breaks=$enableval else enable_breaks=no fi if test "x$enable_breaks" = "xyes"; then cat >>confdefs.h <<\_ACEOF #define ENABLE_BREAKS 1 _ACEOF fi # Check whether --enable-boxml was given. if test "${enable_boxml+set}" = set; then enableval=$enable_boxml; enable_boxml=$enableval else enable_boxml=yes fi if test "$enable_boxml" = "yes"; then COND_BOXML_TRUE= COND_BOXML_FALSE='#' else COND_BOXML_TRUE='#' COND_BOXML_FALSE= fi if test "x$enable_boxml" = "xyes"; then cat >>confdefs.h <<\_ACEOF #define GMV_ENABLE_BOXML 1 _ACEOF GMV_ENABLE_BOXML_CFLAGS=-DGMV_ENABLE_BOXML=1 else GMV_ENABLE_BOXML_CFLAGS= fi # Check whether --enable-gmetadom was given. if test "${enable_gmetadom+set}" = set; then enableval=$enable_gmetadom; enable_gmetadom=$enableval else enable_gmetadom="auto" fi # Check whether --enable-libxml2 was given. if test "${enable_libxml2+set}" = set; then enableval=$enable_libxml2; enable_libxml2=$enableval else enable_libxml2="auto" fi # Check whether --enable-libxml2-reader was given. if test "${enable_libxml2_reader+set}" = set; then enableval=$enable_libxml2_reader; enable_libxml2_reader=$enableval else enable_libxml2_reader="auto" fi # Check whether --enable-custom-reader was given. if test "${enable_custom_reader+set}" = set; then enableval=$enable_custom_reader; enable_custom_reader=$enableval else enable_custom_reader="yes" fi # Check whether --enable-tfm was given. if test "${enable_tfm+set}" = set; then enableval=$enable_tfm; enable_tfm=$enableval else enable_tfm="2" fi if test $enable_tfm = "yes"; then enable_tfm="2" elif test $enable_tfm = "no"; then enable_tfm="0" fi # Check whether --enable-gtk was given. if test "${enable_gtk+set}" = set; then enableval=$enable_gtk; enable_gtk=$enableval else enable_gtk="auto" fi # Check whether --enable-svg was given. if test "${enable_svg+set}" = set; then enableval=$enable_svg; enable_svg=$enableval else enable_svg="yes" fi # Check whether --enable-ps was given. if test "${enable_ps+set}" = set; then enableval=$enable_ps; enable_ps=$enableval else enable_ps="yes" fi # Check whether --enable-gcc-pch was given. if test "${enable_gcc_pch+set}" = set; then enableval=$enable_gcc_pch; enable_gcc_pch=$enableval else enable_gcc_pch="auto" fi # Check whether --with-t1lib was given. if test "${with_t1lib+set}" = set; then withval=$with_t1lib; with_t1lib=$withval else with_t1lib=auto fi # Check whether --with-t1lib-prefix was given. if test "${with_t1lib_prefix+set}" = set; then withval=$with_t1lib_prefix; with_t1lib_prefix=yes T1LIB_PREFIX=$withval else with_t1lib_prefix=no fi # Check whether --with-popt-prefix was given. if test "${with_popt_prefix+set}" = set; then withval=$with_popt_prefix; with_popt_prefix="yes" POPT_PREFIX=$withval else with_popt_prefix="no" fi # Check whether --with-popt was given. if test "${with_popt+set}" = set; then withval=$with_popt; with_popt=$withval else with_popt="auto" fi ac_config_headers="$ac_config_headers config.h" am__api_version="1.9" ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} { (exit 1); exit 1; }; } fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm -f conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$AWK" && break done { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } SET_MAKE= else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE=gtkmathview VERSION=$MATHVIEW_VERSION cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"$am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking build system type" >&5 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } if test "${ac_cv_build+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 echo "${ECHO_T}$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 echo "$as_me: error: invalid value of canonical build" >&2;} { (exit 1); exit 1; }; };; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { echo "$as_me:$LINENO: checking host system type" >&5 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } if test "${ac_cv_host+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 echo "${ECHO_T}$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 echo "$as_me: error: invalid value of canonical host" >&2;} { (exit 1); exit 1; }; };; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi { echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List of possible output files, starting from the most likely. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) # only as a last resort. b.out is created by i960 compilers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a # subsequent execution test works. ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { (ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } if test -z "$ac_file"; then echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6; } { echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } if test "${lt_cv_path_SED+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done fi SED=$lt_cv_path_SED { echo "$as_me:$LINENO: result: $SED" >&5 echo "${ECHO_T}$SED" >&6; } { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Extract the first word of "grep ggrep" to use in msg output if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS fi GREP="$ac_cv_path_GREP" if test -z "$GREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else # Extract the first word of "egrep" to use in msg output if test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS fi EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_ld_reload_flag='-r' fi { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } if test "${lt_cv_path_NM+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi fi { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 echo "${ECHO_T}$lt_cv_path_NM" >&6; } NM="$lt_cv_path_NM" { echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6; } fi { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } if test "${lt_cv_deplibs_check_method+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix4* | aix5*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump'. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix3*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx*) lt_cv_deplibs_check_method=unknown ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac fi { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line 4626 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } if test "${lt_cv_cc_needs_belf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_cv_cc_needs_belf=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) LD="${LD-ld} -64" ;; esac ;; esac fi rm -rf conftest* ;; *-*-cygwin* | *-*-mingw* | *-*-pw32*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_DLLTOOL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 echo "${ECHO_T}$DLLTOOL" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. set dummy ${ac_tool_prefix}as; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AS+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AS"; then ac_cv_prog_AS="$AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AS="${ac_tool_prefix}as" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AS=$ac_cv_prog_AS if test -n "$AS"; then { echo "$as_me:$LINENO: result: $AS" >&5 echo "${ECHO_T}$AS" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_AS"; then ac_ct_AS=$AS # Extract the first word of "as", so it can be a program name with args. set dummy as; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_AS+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_AS"; then ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AS="as" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AS=$ac_cv_prog_ac_ct_AS if test -n "$ac_ct_AS"; then { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 echo "${ECHO_T}$ac_ct_AS" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_AS" = x; then AS="false" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac AS=$ac_ct_AS fi else AS="$ac_cv_prog_AS" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_OBJDUMP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 echo "${ECHO_T}$OBJDUMP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OBJDUMP="objdump" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi ;; esac need_locks="$enable_libtool_lock" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu depcc="$CXX" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { echo "$as_me:$LINENO: result: $CXXCPP" >&5 echo "${ECHO_T}$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_F77="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi F77=$ac_cv_prog_F77 if test -n "$F77"; then { echo "$as_me:$LINENO: result: $F77" >&5 echo "${ECHO_T}$F77" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$F77" && break done fi if test -z "$F77"; then ac_ct_F77=$F77 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_F77"; then ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_F77="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_F77=$ac_cv_prog_ac_ct_F77 if test -n "$ac_ct_F77"; then { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 echo "${ECHO_T}$ac_ct_F77" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_F77" && break done if test "x$ac_ct_F77" = x; then F77="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac F77=$ac_ct_F77 fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } rm -f a.out # If we don't use `.F' as extension, the preprocessor is not run on the # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } if test "${ac_cv_f77_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ choke me #endif end _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_f77_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } ac_ext=$ac_save_ext ac_test_FFLAGS=${FFLAGS+set} ac_save_FFLAGS=$FFLAGS FFLAGS= { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_f77_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else FFLAGS=-g cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_f77_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_f77_g=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } if test "$ac_test_FFLAGS" = set; then FFLAGS=$ac_save_FFLAGS elif test $ac_cv_prog_f77_g = yes; then if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-g -O2" else FFLAGS="-g" fi else if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-O2" else FFLAGS= fi fi G77=`test $ac_compiler_gnu = yes && echo yes` ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! # find the maximum length of command line arguments { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } if test "${lt_cv_sys_max_cmd_len+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done teststring= # Add a significant safety factor because C++ compilers can tack on massive # amounts of additional arguments before passing them to the linker. # It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } else { echo "$as_me:$LINENO: result: none" >&5 echo "${ECHO_T}none" >&6; } fi # Check for command to grab the raw symbol name followed by C symbol from nm. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32*) symcode='[ABCDGISTW]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux* | k*bsd*-gnu) if test "$host_cpu" = ia64; then symcode='[ABCDGIRSTW]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Now try to grab the symbols. nlist=conftest.nm if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if grep ' nm_test_var$' "$nlist" >/dev/null; then if grep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { echo "$as_me:$LINENO: result: failed" >&5 echo "${ECHO_T}failed" >&6; } else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; } fi { echo "$as_me:$LINENO: checking for objdir" >&5 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } if test "${lt_cv_objdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 echo "${ECHO_T}$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AR="${ac_tool_prefix}ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { echo "$as_me:$LINENO: result: $AR" >&5 echo "${ECHO_T}$AR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AR="ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 echo "${ECHO_T}$ac_ct_AR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi else AR="$ac_cv_prog_AR" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { echo "$as_me:$LINENO: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { echo "$as_me:$LINENO: checking for file" >&5 echo $ECHO_N "checking for file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac enable_dlopen=no enable_win32_dll=yes # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Check whether --with-pic was given. if test "${with_pic+set}" = set; then withval=$with_pic; pic_mode="$withval" else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}\n' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:7643: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:7647: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; *) lt_prog_compiler_pic='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic='-qnocommon' lt_prog_compiler_wl='-Wl,' ;; esac ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:7911: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:7915: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } if test x"$lt_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works=yes fi else lt_prog_compiler_static_works=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } if test x"$lt_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8015: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:8019: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag= enable_shared_with_static_runtimes=no archive_cmds= archive_expsym_cmds= old_archive_From_new_cmds= old_archive_from_expsyms_cmds= export_dynamic_flag_spec= whole_archive_flag_spec= thread_safe_flag_spec= hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no hardcode_shlibpath_var=unsupported link_all_deplibs=unknown hardcode_automatic=no module_cmds= module_expsym_cmds= always_export_symbols=no export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; interix3*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi link_all_deplibs=no else ld_shlibs=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_libdir_separator=':' link_all_deplibs=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct=yes else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='' link_all_deplibs=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs=no ;; esac fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; freebsd1*) ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld='-rpath $libdir' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: link_all_deplibs=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; openbsd*) hardcode_direct=yes hardcode_shlibpath_var=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; *) whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 echo "${ECHO_T}$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc=no else archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 echo "${ECHO_T}$archive_cmds_need_lc" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; freebsd*) # from 4.6 on shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix3*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || \ test -n "$runpath_var" || \ test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action" >&5 echo "${ECHO_T}$hardcode_action" >&6; } if test "$hardcode_action" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi striplib= old_striplib= { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi ;; *) { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } ;; esac fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) { echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shl_load to an innocuous variant, in case declares shl_load. For example, HP-UX 11i declares gettimeofday. */ #define shl_load innocuous_shl_load /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shl_load /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_shl_load || defined __stub___shl_load choke me #endif int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else { echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case declares dlopen. For example, HP-UX 11i declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef dlopen /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_dlopen || defined __stub___dlopen choke me #endif int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_svld_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_dld_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi # Report which library types will actually be built { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6; } # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler \ CC \ LD \ lt_prog_compiler_wl \ lt_prog_compiler_pic \ lt_prog_compiler_static \ lt_prog_compiler_no_builtin_flag \ export_dynamic_flag_spec \ thread_safe_flag_spec \ whole_archive_flag_spec \ enable_shared_with_static_runtimes \ old_archive_cmds \ old_archive_from_new_cmds \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ archive_cmds \ archive_expsym_cmds \ postinstall_cmds \ postuninstall_cmds \ old_archive_from_expsyms_cmds \ allow_undefined_flag \ no_undefined_flag \ export_symbols_cmds \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ hardcode_automatic \ module_cmds \ module_expsym_cmds \ lt_cv_prog_compiler_c_o \ exclude_expsyms \ include_expsyms; do case $var in old_archive_cmds | \ old_archive_from_new_cmds | \ archive_cmds | \ archive_expsym_cmds | \ module_cmds | \ module_expsym_cmds | \ old_archive_from_expsyms_cmds | \ export_symbols_cmds | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" { echo "$as_me:$LINENO: creating $ofile" >&5 echo "$as_me: creating $ofile" >&6;} cat <<__EOF__ >> "$cfgfile" #! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="$SED -e 1s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler # Is the compiler the GNU C compiler? with_gcc=$GCC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # ### END LIBTOOL CONFIG __EOF__ case $host_os in aix3*) cat <<\EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" # Check whether --with-tags was given. if test "${with_tags+set}" = set; then withval=$with_tags; tagnames="$withval" fi if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} else { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} fi fi if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in "") ;; *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 echo "$as_me: error: invalid tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} { (exit 1); exit 1; }; } fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_flag_spec_ld_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC compiler_CXX=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes if test "$GXX" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct_CXX=yes else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_CXX=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_CXX='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' ${wl}-bernotok' allow_undefined_flag_CXX=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' archive_cmds_need_lc_CXX=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_CXX=no fi ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported whole_archive_flag_spec_CXX='' link_all_deplibs_CXX=yes if test "$GXX" = yes ; then lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_CXX=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd[12]*) # C++ shared libraries reported to be fairly broken before switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; gnu*) ;; hpux9*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_CXX='+b $libdir' ;; *) export_dynamic_flag_spec_CXX='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; interix3*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC*) # Portland Group C++ compiler archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; openbsd2*) # C++ shared libraries are fairly broken ld_shlibs_CXX=no ;; openbsd*) hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='${wl}-E' whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' ;; osf3*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ $rm $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The C++ compiler is used as linker so we must use $wl # flag to pass the commands to the underlying system # linker. We must also pass each convience library through # to the system linker between allextract/defaultextract. # The C++ compiler will combine linker options so we # cannot just pass the convience library names through # without $wl. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then no_undefined_flag_CXX=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='${wl}-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. no_undefined_flag_CXX='${wl}-z,text' allow_undefined_flag_CXX='${wl}-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" LD_CXX="$LD" cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no # The `*' in the case matches for architectures that use `case' in # $output_verbose_cmd can trigger glob expansion during the loop # eval without this substitution. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` for p in `eval $output_verbose_link_cmd`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" \ || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX="${prev}${p}" else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX="${prev}${p}" else postdeps_CXX="${postdeps_CXX} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$predep_objects_CXX"; then predep_objects_CXX="$p" else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX="$p" else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $rm -f confest.$objext # PORTME: override above test on systems where it is broken case $host_os in interix3*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; solaris*) case $cc_basename in CC*) # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. postdeps_CXX='-lCstd -lCrun' ;; esac ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_CXX='-qnocommon' lt_prog_compiler_wl_CXX='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; icpc* | ecpc*) # Intel C++ lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC*) # Portland Group C++ compiler. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:12748: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:12752: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_CXX=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_CXX=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_CXX=yes fi else lt_prog_compiler_static_works_CXX=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } if test x"$lt_prog_compiler_static_works_CXX" = xyes; then : else lt_prog_compiler_static_CXX= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_CXX=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:12852: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:12856: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX="$ltdll_cmds" ;; cygwin* | mingw*) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' ;; linux* | k*bsd*-gnu) link_all_deplibs_CXX=no ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_CXX=no else archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; freebsd*) # from 4.6 on shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix3*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || \ test -n "$runpath_var_CXX" || \ test "X$hardcode_automatic_CXX" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_CXX" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && test "$hardcode_minus_L_CXX" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 echo "${ECHO_T}$hardcode_action_CXX" >&6; } if test "$hardcode_action_CXX" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_CXX \ CC_CXX \ LD_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_static_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ export_dynamic_flag_spec_CXX \ thread_safe_flag_spec_CXX \ whole_archive_flag_spec_CXX \ enable_shared_with_static_runtimes_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ postinstall_cmds_CXX \ postuninstall_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ export_symbols_cmds_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_ld_CXX \ hardcode_libdir_separator_CXX \ hardcode_automatic_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ lt_cv_prog_compiler_c_o_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX; do case $var in old_archive_cmds_CXX | \ old_archive_from_new_cmds_CXX | \ archive_cmds_CXX | \ archive_expsym_cmds_CXX | \ module_cmds_CXX | \ module_expsym_cmds_CXX | \ old_archive_from_expsyms_cmds_CXX | \ export_symbols_cmds_CXX | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU C compiler? with_gcc=$GCC_CXX # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_CXX # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_CXX old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_CXX # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_CXX # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_CXX # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_CXX # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_CXX" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu archive_cmds_need_lc_F77=no allow_undefined_flag_F77= always_export_symbols_F77=no archive_expsym_cmds_F77= export_dynamic_flag_spec_F77= hardcode_direct_F77=no hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_minus_L_F77=no hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= link_all_deplibs_F77=unknown old_archive_cmds_F77=$old_archive_cmds no_undefined_flag_F77= whole_archive_flag_spec_F77= enable_shared_with_static_runtimes_F77=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o objext_F77=$objext # Code to be used in simple compile tests lt_simple_compile_test_code=" subroutine t\n return\n end\n" # Code to be used in simple link tests lt_simple_link_test_code=" program t\n end\n" # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${F77-"f77"} compiler=$CC compiler_F77=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6; } GCC_F77="$G77" LD_F77="$LD" lt_prog_compiler_wl_F77= lt_prog_compiler_pic_F77= lt_prog_compiler_static_F77= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_static_F77='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_F77='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_F77='-fno-common' ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_F77=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_F77=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_F77='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' else lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_F77='-qnocommon' lt_prog_compiler_wl_F77='-Wl,' ;; esac ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_F77='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_F77='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_F77='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_F77='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_F77='-non_shared' ;; newsos6) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fpic' lt_prog_compiler_static_F77='-Bstatic' ;; ccc*) lt_prog_compiler_wl_F77='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_F77='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; solaris*) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_F77='-Qoption ld ';; *) lt_prog_compiler_wl_F77='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_F77='-Qoption ld ' lt_prog_compiler_pic_F77='-PIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_F77='-Kconform_pic' lt_prog_compiler_static_F77='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; unicos*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_can_build_shared_F77=no ;; uts4*) lt_prog_compiler_pic_F77='-pic' lt_prog_compiler_static_F77='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_F77=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_F77"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_F77=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_F77" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:14413: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:14417: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_F77=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } if test x"$lt_prog_compiler_pic_works_F77" = xyes; then case $lt_prog_compiler_pic_F77 in "" | " "*) ;; *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; esac else lt_prog_compiler_pic_F77= lt_prog_compiler_can_build_shared_F77=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_F77= ;; *) lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_F77=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_F77=yes fi else lt_prog_compiler_static_works_F77=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } if test x"$lt_prog_compiler_static_works_F77" = xyes; then : else lt_prog_compiler_static_F77= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_F77=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:14517: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:14521: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_F77=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag_F77= enable_shared_with_static_runtimes_F77=no archive_cmds_F77= archive_expsym_cmds_F77= old_archive_From_new_cmds_F77= old_archive_from_expsyms_cmds_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= thread_safe_flag_spec_F77= hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_direct_F77=no hardcode_minus_L_F77=no hardcode_shlibpath_var_F77=unsupported link_all_deplibs_F77=unknown hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= always_export_symbols_F77=no export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_F77= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_F77=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_F77='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_F77= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_F77=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_F77=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_F77=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_F77=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_F77='-L$libdir' allow_undefined_flag_F77=unsupported always_export_symbols_F77=no enable_shared_with_static_runtimes_F77=yes export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_F77=no fi ;; interix3*) hardcode_direct_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi link_all_deplibs_F77=no else ld_shlibs_F77=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_F77=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_F77=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac ;; sunos4*) archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac if test "$ld_shlibs_F77" = no; then runpath_var= hardcode_libdir_flag_spec_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_F77=unsupported always_export_symbols_F77=yes archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_F77=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_F77=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_F77='' hardcode_direct_F77=yes hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct_F77=yes else # We have old collect2 hardcode_direct_F77=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_F77=yes hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_libdir_separator_F77= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_F77=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_F77='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_F77="-z nodefs" archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_F77=' ${wl}-bernotok' allow_undefined_flag_F77=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_F77='$convenience' archive_cmds_need_lc_F77=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes # see comment about different semantics on the GNU ld section ld_shlibs_F77=no ;; bsdi[45]*) export_dynamic_flag_spec_F77=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_F77=' ' allow_undefined_flag_F77=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_F77='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_F77='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_F77=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_F77=no hardcode_direct_F77=no hardcode_automatic_F77=yes hardcode_shlibpath_var_F77=unsupported whole_archive_flag_spec_F77='' link_all_deplibs_F77=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_F77=no ;; esac fi ;; dgux*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; freebsd1*) ld_shlibs_F77=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes export_dynamic_flag_spec_F77='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_F77='+b $libdir' hardcode_direct_F77=no hardcode_shlibpath_var_F77=no ;; *) hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: link_all_deplibs_F77=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; newsos6) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_shlibpath_var_F77=no ;; openbsd*) hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-R$libdir' ;; *) archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes allow_undefined_flag_F77=unsupported archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_F77='-rpath $libdir' fi hardcode_libdir_separator_F77=: ;; solaris*) no_undefined_flag_F77=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_shlibpath_var_F77=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; *) whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; esac link_all_deplibs_F77=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; sysv4) case $host_vendor in sni) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_F77='$CC -r -o $output$reload_objs' hardcode_direct_F77=no ;; motorola) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_F77=no ;; sysv4.3*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no export_dynamic_flag_spec_F77='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_F77=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) no_undefined_flag_F77='${wl}-z,text' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_F77='${wl}-z,text' allow_undefined_flag_F77='${wl}-z,nodefs' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes export_dynamic_flag_spec_F77='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; *) ld_shlibs_F77=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 echo "${ECHO_T}$ld_shlibs_F77" >&6; } test "$ld_shlibs_F77" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_F77" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_F77=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_F77 in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_F77 pic_flag=$lt_prog_compiler_pic_F77 compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_F77 allow_undefined_flag_F77= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_F77=no else archive_cmds_need_lc_F77=yes fi allow_undefined_flag_F77=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; freebsd*) # from 4.6 on shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix3*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_F77= if test -n "$hardcode_libdir_flag_spec_F77" || \ test -n "$runpath_var_F77" || \ test "X$hardcode_automatic_F77" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_F77" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && test "$hardcode_minus_L_F77" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_F77=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_F77=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_F77=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 echo "${ECHO_T}$hardcode_action_F77" >&6; } if test "$hardcode_action_F77" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_F77 \ CC_F77 \ LD_F77 \ lt_prog_compiler_wl_F77 \ lt_prog_compiler_pic_F77 \ lt_prog_compiler_static_F77 \ lt_prog_compiler_no_builtin_flag_F77 \ export_dynamic_flag_spec_F77 \ thread_safe_flag_spec_F77 \ whole_archive_flag_spec_F77 \ enable_shared_with_static_runtimes_F77 \ old_archive_cmds_F77 \ old_archive_from_new_cmds_F77 \ predep_objects_F77 \ postdep_objects_F77 \ predeps_F77 \ postdeps_F77 \ compiler_lib_search_path_F77 \ archive_cmds_F77 \ archive_expsym_cmds_F77 \ postinstall_cmds_F77 \ postuninstall_cmds_F77 \ old_archive_from_expsyms_cmds_F77 \ allow_undefined_flag_F77 \ no_undefined_flag_F77 \ export_symbols_cmds_F77 \ hardcode_libdir_flag_spec_F77 \ hardcode_libdir_flag_spec_ld_F77 \ hardcode_libdir_separator_F77 \ hardcode_automatic_F77 \ module_cmds_F77 \ module_expsym_cmds_F77 \ lt_cv_prog_compiler_c_o_F77 \ exclude_expsyms_F77 \ include_expsyms_F77; do case $var in old_archive_cmds_F77 | \ old_archive_from_new_cmds_F77 | \ archive_cmds_F77 | \ archive_expsym_cmds_F77 | \ module_cmds_F77 | \ module_expsym_cmds_F77 | \ old_archive_from_expsyms_cmds_F77 | \ export_symbols_cmds_F77 | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_F77 # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_F77 # Is the compiler the GNU C compiler? with_gcc=$GCC_F77 # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_F77 # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_F77 # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_F77 pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_F77 # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_F77 old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_F77 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_F77 module_expsym_cmds=$lt_module_expsym_cmds_F77 # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_F77 # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_F77 # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_F77 # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_F77 # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_F77 # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_F77 # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_F77 # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_F77 # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_F77 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_F77 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_F77 # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_F77 # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_F77" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_F77 # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_F77 # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_F77 # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_F77 # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o objext_GCJ=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}\n" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${GCJ-"gcj"} compiler=$CC compiler_GCJ=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # GCJ did not exist at the time GCC didn't implicitly link libc in. archive_cmds_need_lc_GCJ=no old_archive_cmds_GCJ=$old_archive_cmds lt_prog_compiler_no_builtin_flag_GCJ= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:16704: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:16708: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl_GCJ= lt_prog_compiler_pic_GCJ= lt_prog_compiler_static_GCJ= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_static_GCJ='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_GCJ='-fno-common' ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_GCJ=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_GCJ=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_GCJ='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' else lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_GCJ='-qnocommon' lt_prog_compiler_wl_GCJ='-Wl,' ;; esac ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_GCJ='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_GCJ='-non_shared' ;; newsos6) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-fpic' lt_prog_compiler_static_GCJ='-Bstatic' ;; ccc*) lt_prog_compiler_wl_GCJ='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_GCJ='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; solaris*) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_GCJ='-Qoption ld ';; *) lt_prog_compiler_wl_GCJ='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_GCJ='-Qoption ld ' lt_prog_compiler_pic_GCJ='-PIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_GCJ='-Kconform_pic' lt_prog_compiler_static_GCJ='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; unicos*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_can_build_shared_GCJ=no ;; uts4*) lt_prog_compiler_pic_GCJ='-pic' lt_prog_compiler_static_GCJ='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_GCJ=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_GCJ"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_GCJ=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_GCJ" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:16972: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:16976: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_GCJ=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then case $lt_prog_compiler_pic_GCJ in "" | " "*) ;; *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; esac else lt_prog_compiler_pic_GCJ= lt_prog_compiler_can_build_shared_GCJ=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_GCJ= ;; *) lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_GCJ=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_GCJ=yes fi else lt_prog_compiler_static_works_GCJ=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then : else lt_prog_compiler_static_GCJ= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_GCJ=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:17076: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:17080: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_GCJ=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag_GCJ= enable_shared_with_static_runtimes_GCJ=no archive_cmds_GCJ= archive_expsym_cmds_GCJ= old_archive_From_new_cmds_GCJ= old_archive_from_expsyms_cmds_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= thread_safe_flag_spec_GCJ= hardcode_libdir_flag_spec_GCJ= hardcode_libdir_flag_spec_ld_GCJ= hardcode_libdir_separator_GCJ= hardcode_direct_GCJ=no hardcode_minus_L_GCJ=no hardcode_shlibpath_var_GCJ=unsupported link_all_deplibs_GCJ=unknown hardcode_automatic_GCJ=no module_cmds_GCJ= module_expsym_cmds_GCJ= always_export_symbols_GCJ=no export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_GCJ= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_GCJ=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_GCJ= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_GCJ=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_GCJ=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_GCJ=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_GCJ=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_GCJ='-L$libdir' allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=no enable_shared_with_static_runtimes_GCJ=yes export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_GCJ=no fi ;; interix3*) hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi link_all_deplibs_GCJ=no else ld_shlibs_GCJ=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_GCJ=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_GCJ=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac ;; sunos4*) archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac if test "$ld_shlibs_GCJ" = no; then runpath_var= hardcode_libdir_flag_spec_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=yes archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_GCJ=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_GCJ=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_GCJ='' hardcode_direct_GCJ=yes hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct_GCJ=yes else # We have old collect2 hardcode_direct_GCJ=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_GCJ=yes hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_libdir_separator_GCJ= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_GCJ=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_GCJ='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_GCJ="-z nodefs" archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_GCJ=' ${wl}-bernotok' allow_undefined_flag_GCJ=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_GCJ='$convenience' archive_cmds_need_lc_GCJ=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # see comment about different semantics on the GNU ld section ld_shlibs_GCJ=no ;; bsdi[45]*) export_dynamic_flag_spec_GCJ=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_GCJ=' ' allow_undefined_flag_GCJ=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_GCJ='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_GCJ=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_GCJ=no hardcode_direct_GCJ=no hardcode_automatic_GCJ=yes hardcode_shlibpath_var_GCJ=unsupported whole_archive_flag_spec_GCJ='' link_all_deplibs_GCJ=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_GCJ=no ;; esac fi ;; dgux*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; freebsd1*) ld_shlibs_GCJ=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no ;; *) hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: link_all_deplibs_GCJ=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; newsos6) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_shlibpath_var_GCJ=no ;; openbsd*) hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' ;; *) archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes allow_undefined_flag_GCJ=unsupported archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_GCJ='-rpath $libdir' fi hardcode_libdir_separator_GCJ=: ;; solaris*) no_undefined_flag_GCJ=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_shlibpath_var_GCJ=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; *) whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; esac link_all_deplibs_GCJ=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; sysv4) case $host_vendor in sni) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_GCJ='$CC -r -o $output$reload_objs' hardcode_direct_GCJ=no ;; motorola) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_GCJ=no ;; sysv4.3*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no export_dynamic_flag_spec_GCJ='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_GCJ=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) no_undefined_flag_GCJ='${wl}-z,text' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_GCJ='${wl}-z,text' allow_undefined_flag_GCJ='${wl}-z,nodefs' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; *) ld_shlibs_GCJ=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } test "$ld_shlibs_GCJ" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_GCJ" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_GCJ=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_GCJ in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_GCJ pic_flag=$lt_prog_compiler_pic_GCJ compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ allow_undefined_flag_GCJ= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_GCJ=no else archive_cmds_need_lc_GCJ=yes fi allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; freebsd*) # from 4.6 on shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix3*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_GCJ= if test -n "$hardcode_libdir_flag_spec_GCJ" || \ test -n "$runpath_var_GCJ" || \ test "X$hardcode_automatic_GCJ" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_GCJ" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && test "$hardcode_minus_L_GCJ" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_GCJ=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_GCJ=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_GCJ=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 echo "${ECHO_T}$hardcode_action_GCJ" >&6; } if test "$hardcode_action_GCJ" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_GCJ \ CC_GCJ \ LD_GCJ \ lt_prog_compiler_wl_GCJ \ lt_prog_compiler_pic_GCJ \ lt_prog_compiler_static_GCJ \ lt_prog_compiler_no_builtin_flag_GCJ \ export_dynamic_flag_spec_GCJ \ thread_safe_flag_spec_GCJ \ whole_archive_flag_spec_GCJ \ enable_shared_with_static_runtimes_GCJ \ old_archive_cmds_GCJ \ old_archive_from_new_cmds_GCJ \ predep_objects_GCJ \ postdep_objects_GCJ \ predeps_GCJ \ postdeps_GCJ \ compiler_lib_search_path_GCJ \ archive_cmds_GCJ \ archive_expsym_cmds_GCJ \ postinstall_cmds_GCJ \ postuninstall_cmds_GCJ \ old_archive_from_expsyms_cmds_GCJ \ allow_undefined_flag_GCJ \ no_undefined_flag_GCJ \ export_symbols_cmds_GCJ \ hardcode_libdir_flag_spec_GCJ \ hardcode_libdir_flag_spec_ld_GCJ \ hardcode_libdir_separator_GCJ \ hardcode_automatic_GCJ \ module_cmds_GCJ \ module_expsym_cmds_GCJ \ lt_cv_prog_compiler_c_o_GCJ \ exclude_expsyms_GCJ \ include_expsyms_GCJ; do case $var in old_archive_cmds_GCJ | \ old_archive_from_new_cmds_GCJ | \ archive_cmds_GCJ | \ archive_expsym_cmds_GCJ | \ module_cmds_GCJ | \ module_expsym_cmds_GCJ | \ old_archive_from_expsyms_cmds_GCJ | \ export_symbols_cmds_GCJ | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_GCJ # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_GCJ # Is the compiler the GNU C compiler? with_gcc=$GCC_GCJ # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_GCJ # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_GCJ # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_GCJ pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_GCJ # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_GCJ old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_GCJ archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_GCJ module_expsym_cmds=$lt_module_expsym_cmds_GCJ # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_GCJ # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_GCJ # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_GCJ # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_GCJ # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_GCJ # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_GCJ # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_GCJ # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_GCJ # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_GCJ # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_GCJ" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_GCJ # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_GCJ # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_GCJ # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_GCJ # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; RC) # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o objext_RC=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${RC-"windres"} compiler=$CC compiler_RC=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` lt_cv_prog_compiler_c_o_RC=yes # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_RC \ CC_RC \ LD_RC \ lt_prog_compiler_wl_RC \ lt_prog_compiler_pic_RC \ lt_prog_compiler_static_RC \ lt_prog_compiler_no_builtin_flag_RC \ export_dynamic_flag_spec_RC \ thread_safe_flag_spec_RC \ whole_archive_flag_spec_RC \ enable_shared_with_static_runtimes_RC \ old_archive_cmds_RC \ old_archive_from_new_cmds_RC \ predep_objects_RC \ postdep_objects_RC \ predeps_RC \ postdeps_RC \ compiler_lib_search_path_RC \ archive_cmds_RC \ archive_expsym_cmds_RC \ postinstall_cmds_RC \ postuninstall_cmds_RC \ old_archive_from_expsyms_cmds_RC \ allow_undefined_flag_RC \ no_undefined_flag_RC \ export_symbols_cmds_RC \ hardcode_libdir_flag_spec_RC \ hardcode_libdir_flag_spec_ld_RC \ hardcode_libdir_separator_RC \ hardcode_automatic_RC \ module_cmds_RC \ module_expsym_cmds_RC \ lt_cv_prog_compiler_c_o_RC \ exclude_expsyms_RC \ include_expsyms_RC; do case $var in old_archive_cmds_RC | \ old_archive_from_new_cmds_RC | \ archive_cmds_RC | \ archive_expsym_cmds_RC | \ module_cmds_RC | \ module_expsym_cmds_RC | \ old_archive_from_expsyms_cmds_RC | \ export_symbols_cmds_RC | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_RC # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_RC # Is the compiler the GNU C compiler? with_gcc=$GCC_RC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_RC # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_RC # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_RC pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_RC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_RC old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_RC archive_expsym_cmds=$lt_archive_expsym_cmds_RC postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_RC module_expsym_cmds=$lt_module_expsym_cmds_RC # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_RC # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_RC # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_RC # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_RC # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_RC # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_RC # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_RC # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_RC # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_RC # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_RC # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_RC # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_RC # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_RC" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_RC # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_RC # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_RC # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_RC # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ;; *) { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} { (exit 1); exit 1; }; } fi fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' # Prevent multiple expansion ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi { echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6; } fi { echo "$as_me:$LINENO: checking for library containing strerror" >&5 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } if test "${ac_cv_search_strerror+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char strerror (); int main () { return strerror (); ; return 0; } _ACEOF for ac_lib in '' cposix; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_search_strerror=$ac_res else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext if test "${ac_cv_search_strerror+set}" = set; then break fi done if test "${ac_cv_search_strerror+set}" = set; then : else ac_cv_search_strerror=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 echo "${ECHO_T}$ac_cv_search_strerror" >&6; } ac_res=$ac_cv_search_strerror if test "$ac_res" != no; then test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi for ac_header in unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } if test "${ac_cv_c_const+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset cs; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_const=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 echo "${ECHO_T}$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then cat >>confdefs.h <<\_ACEOF #define const _ACEOF fi { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } if test "${ac_cv_c_bigendian+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # See if sys/param.h defines the BYTE_ORDER macro. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then # It does; now see whether it defined to BIG_ENDIAN or not. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_bigendian=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # It does not; compile a test program. if test "$cross_compiling" = yes; then # try to guess the endianness by grepping values into an object file ac_cv_c_bigendian=unknown cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } int main () { _ascii (); _ebcdic (); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { /* Are we little or big endian? From Harbison&Steele. */ union { long int l; char c[sizeof (long int)]; } u; u.l = 1; return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_bigendian=no else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in yes) cat >>confdefs.h <<\_ACEOF #define WORDS_BIGENDIAN 1 _ACEOF ;; no) ;; *) { { echo "$as_me:$LINENO: error: unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" >&5 echo "$as_me: error: unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} { (exit 1); exit 1; }; } ;; esac { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; } if test "${ac_cv_c_char_unsigned+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((char) -1) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_char_unsigned=no else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_char_unsigned=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then cat >>confdefs.h <<\_ACEOF #define __CHAR_UNSIGNED__ 1 _ACEOF fi { echo "$as_me:$LINENO: checking for unsigned char" >&5 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; } if test "${ac_cv_type_unsigned_char+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned char ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_unsigned_char=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_unsigned_char=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; } # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { echo "$as_me:$LINENO: checking size of unsigned char" >&5 echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; } if test "${ac_cv_sizeof_unsigned_char+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned char ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned char ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned char ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned char ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned char ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_unsigned_char=$ac_lo;; '') if test "$ac_cv_type_unsigned_char" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (unsigned char) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_unsigned_char=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned char ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_unsigned_char=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_unsigned_char" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (unsigned char) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_unsigned_char=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char _ACEOF { echo "$as_me:$LINENO: checking for unsigned short" >&5 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; } if test "${ac_cv_type_unsigned_short+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned short ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_unsigned_short=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_unsigned_short=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; } # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { echo "$as_me:$LINENO: checking size of unsigned short" >&5 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; } if test "${ac_cv_sizeof_unsigned_short+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned short ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned short ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned short ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned short ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned short ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_unsigned_short=$ac_lo;; '') if test "$ac_cv_type_unsigned_short" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (unsigned short) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_unsigned_short=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned short ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_unsigned_short=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_unsigned_short" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (unsigned short) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_unsigned_short=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short _ACEOF { echo "$as_me:$LINENO: checking for unsigned int" >&5 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; } if test "${ac_cv_type_unsigned_int+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned int ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_unsigned_int=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_unsigned_int=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; } # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { echo "$as_me:$LINENO: checking size of unsigned int" >&5 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; } if test "${ac_cv_sizeof_unsigned_int+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_unsigned_int=$ac_lo;; '') if test "$ac_cv_type_unsigned_int" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (unsigned int) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_unsigned_int=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned int ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_unsigned_int=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_unsigned_int" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (unsigned int) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_unsigned_int=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int _ACEOF { echo "$as_me:$LINENO: checking for unsigned long" >&5 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; } if test "${ac_cv_type_unsigned_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_unsigned_long=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_unsigned_long=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; } # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { echo "$as_me:$LINENO: checking size of unsigned long" >&5 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; } if test "${ac_cv_sizeof_unsigned_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_unsigned_long=$ac_lo;; '') if test "$ac_cv_type_unsigned_long" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (unsigned long) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_unsigned_long=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_unsigned_long=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_unsigned_long" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (unsigned long) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_unsigned_long=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long _ACEOF { echo "$as_me:$LINENO: checking for unsigned long long" >&5 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } if test "${ac_cv_type_unsigned_long_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long long ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_unsigned_long_long=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_unsigned_long_long=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { echo "$as_me:$LINENO: checking size of unsigned long long" >&5 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; } if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;; '') if test "$ac_cv_type_unsigned_long_long" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (unsigned long long) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_unsigned_long_long=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long long ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_unsigned_long_long=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_unsigned_long_long" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (unsigned long long) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_unsigned_long_long=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long _ACEOF { echo "$as_me:$LINENO: checking for wchar_t" >&5 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } if test "${ac_cv_type_wchar_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef wchar_t ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_wchar_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_wchar_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { echo "$as_me:$LINENO: checking size of wchar_t" >&5 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; } if test "${ac_cv_sizeof_wchar_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef wchar_t ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef wchar_t ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef wchar_t ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef wchar_t ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef wchar_t ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_wchar_t=$ac_lo;; '') if test "$ac_cv_type_wchar_t" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (wchar_t) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_wchar_t=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef wchar_t ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_wchar_t=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_wchar_t" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (wchar_t) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_wchar_t=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t _ACEOF if test "x$ac_cv_c_char_unsigned" = "xyes"; then CHAR_UNSIGNED="1" else CHAR_UNSIGNED="0" fi GTKMATHVIEW_SIZEOF_CHAR="$ac_cv_sizeof_unsigned_char" GTKMATHVIEW_SIZEOF_SHORT="$ac_cv_sizeof_unsigned_short" GTKMATHVIEW_SIZEOF_INT="$ac_cv_sizeof_unsigned_int" GTKMATHVIEW_SIZEOF_LONG="$ac_cv_sizeof_unsigned_long" GTKMATHVIEW_SIZEOF_LONG_LONG="$ac_cv_sizeof_unsigned_long_long" GTKMATHVIEW_SIZEOF_WCHAR_T="$ac_cv_sizeof_wchar_t" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu for ac_header in hash_map do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GMV_HAVE_HASH_MAP 1 _ACEOF GMV_HAVE_HASH_MAP_CFLAGS=-DGMV_HAVE_HASH_MAP=1 else GMV_HAVE_HASH_MAP_CFLAGS= fi done for ac_header in ext/hash_map do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GMV_HAVE_EXT_HASH_MAP 1 _ACEOF GMV_HAVE_EXT_HASH_MAP_CFLAGS=-DGMV_HAVE_EXT_HASH_MAP=1 else GMV_HAVE_EXT_HASH_MAP_CFLAGS= fi done { echo "$as_me:$LINENO: checking whether the C++ compiler supports the standard character traits" >&5 echo $ECHO_N "checking whether the C++ compiler supports the standard character traits... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { std::basic_string s1; std::basic_string s2; std::basic_string s3; s2 = s3; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then cat >>confdefs.h <<\_ACEOF #define STD_TRAITS 1 _ACEOF { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Extract the first word of "xsltproc", so it can be a program name with args. set dummy xsltproc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_HAVE_XSLTPROC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$HAVE_XSLTPROC"; then ac_cv_prog_HAVE_XSLTPROC="$HAVE_XSLTPROC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_HAVE_XSLTPROC="yes" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_HAVE_XSLTPROC" && ac_cv_prog_HAVE_XSLTPROC="no" fi fi HAVE_XSLTPROC=$ac_cv_prog_HAVE_XSLTPROC if test -n "$HAVE_XSLTPROC"; then { echo "$as_me:$LINENO: result: $HAVE_XSLTPROC" >&5 echo "${ECHO_T}$HAVE_XSLTPROC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test $HAVE_XSLTPROC = "no"; then { echo "$as_me:$LINENO: WARNING: xsltproc not found" >&5 echo "$as_me: WARNING: xsltproc not found" >&2;} fi if test "$HAVE_XSLTPROC" = "yes"; then COND_XSLTPROC_TRUE= COND_XSLTPROC_FALSE='#' else COND_XSLTPROC_TRUE='#' COND_XSLTPROC_FALSE= fi have_popt="no" if test $with_popt = "auto"; then for ac_header in popt.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF { echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5 echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6; } if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpopt $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char poptGetContext (); int main () { return poptGetContext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_popt_poptGetContext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_popt_poptGetContext=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5 echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6; } if test $ac_cv_lib_popt_poptGetContext = yes; then have_popt="yes" fi fi done else have_popt=$with_popt fi if test $have_popt = "yes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_POPT_H 1 _ACEOF if test $with_popt_prefix = "yes"; then POPT_CFLAGS="-I$POPT_PREFIX/include" POPT_LIBS="-L$POPT_PREFIX/lib -lpopt" else POPT_CFLAGS="" POPT_LIBS="-lpopt" fi else POPT_CFLAGS="" POPT_LIBS="" fi if test "$have_popt" = "yes"; then COND_HAVE_POPT_TRUE= COND_HAVE_POPT_FALSE='#' else COND_HAVE_POPT_TRUE='#' COND_HAVE_POPT_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 echo "${ECHO_T}$PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { echo "$as_me:$LINENO: checking for GLIB" >&5 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$GLIB_CFLAGS"; then pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2.1\"") >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2.1") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.2.1" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$GLIB_LIBS"; then pkg_cv_GLIB_LIBS="$GLIB_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2.1\"") >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2.1") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.2.1" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.2.1"` else GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.2.1"` fi # Put the nasty error message in config.log where it belongs echo "$GLIB_PKG_ERRORS" >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } { { echo "$as_me:$LINENO: error: could not find GLIB" >&5 echo "$as_me: error: could not find GLIB" >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: error: could not find GLIB" >&5 echo "$as_me: error: could not find GLIB" >&2;} { (exit 1); exit 1; }; } else GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS GLIB_LIBS=$pkg_cv_GLIB_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi have_gtk="no" have_pango="no" if test "$enable_gtk" = "auto" -o "$enable_gtk" = "yes"; then pkg_failed=no { echo "$as_me:$LINENO: checking for GTK" >&5 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$GTK_CFLAGS"; then pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.2.1\"") >&5 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.2.1") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.2.1" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$GTK_LIBS"; then pkg_cv_GTK_LIBS="$GTK_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.2.1\"") >&5 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.2.1") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.2.1" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.2.1"` else GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.2.1"` fi # Put the nasty error message in config.log where it belongs echo "$GTK_PKG_ERRORS" >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } { echo "$as_me:$LINENO: WARNING: could not find GTK+" >&5 echo "$as_me: WARNING: could not find GTK+" >&2;} elif test $pkg_failed = untried; then { echo "$as_me:$LINENO: WARNING: could not find GTK+" >&5 echo "$as_me: WARNING: could not find GTK+" >&2;} else GTK_CFLAGS=$pkg_cv_GTK_CFLAGS GTK_LIBS=$pkg_cv_GTK_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } cat >>confdefs.h <<\_ACEOF #define HAVE_GTK 1 _ACEOF have_gtk="yes" fi pkg_failed=no { echo "$as_me:$LINENO: checking for PANGOX" >&5 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$PANGOX_CFLAGS"; then pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$PANGOX_LIBS"; then pkg_cv_PANGOX_LIBS="$PANGOX_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"` else PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` fi # Put the nasty error message in config.log where it belongs echo "$PANGOX_PKG_ERRORS" >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } { echo "$as_me:$LINENO: WARNING: could not find Pango" >&5 echo "$as_me: WARNING: could not find Pango" >&2;} elif test $pkg_failed = untried; then { echo "$as_me:$LINENO: WARNING: could not find Pango" >&5 echo "$as_me: WARNING: could not find Pango" >&2;} else PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS PANGOX_LIBS=$pkg_cv_PANGOX_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } cat >>confdefs.h <<\_ACEOF #define HAVE_PANGO 1 _ACEOF have_pango="yes" fi fi if test "$enable_gtk" = "yes" -o \( "$enable_gtk" = "auto" -a \( "$have_gtk" = "yes" -a "$have_pango" = "yes" \) \) ; then COND_GTK_TRUE= COND_GTK_FALSE='#' else COND_GTK_TRUE='#' COND_GTK_FALSE= fi if test "$enable_custom_reader" = "yes" -o "$enable_custom_reader" = "auto"; then COND_CUSTOM_READER_TRUE= COND_CUSTOM_READER_FALSE='#' else COND_CUSTOM_READER_TRUE='#' COND_CUSTOM_READER_FALSE= fi have_libxml2="no" pkg_failed=no { echo "$as_me:$LINENO: checking for XML" >&5 echo $ECHO_N "checking for XML... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$XML_CFLAGS"; then pkg_cv_XML_CFLAGS="$XML_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.7\"") >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.7") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.7" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$XML_LIBS"; then pkg_cv_XML_LIBS="$XML_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.7\"") >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.7") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.7" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.7"` else XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.7"` fi # Put the nasty error message in config.log where it belongs echo "$XML_PKG_ERRORS" >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } { echo "$as_me:$LINENO: WARNING: could not find libxml2" >&5 echo "$as_me: WARNING: could not find libxml2" >&2;} elif test $pkg_failed = untried; then { echo "$as_me:$LINENO: WARNING: could not find libxml2" >&5 echo "$as_me: WARNING: could not find libxml2" >&2;} else XML_CFLAGS=$pkg_cv_XML_CFLAGS XML_LIBS=$pkg_cv_XML_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } cat >>confdefs.h <<\_ACEOF #define HAVE_LIBXML 1 _ACEOF have_libxml2="yes" fi if test "$enable_libxml2" = "yes" -o \( "$enable_libxml2" = "auto" -a "$have_libxml2" = "yes" \); then COND_LIBXML2_TRUE= COND_LIBXML2_FALSE='#' else COND_LIBXML2_TRUE='#' COND_LIBXML2_FALSE= fi if test "$enable_libxml2_reader" = "yes" -o \( "$enable_libxml2_reader" = "auto" -a "$have_libxml2" = "yes" \); then COND_LIBXML2_READER_TRUE= COND_LIBXML2_READER_FALSE='#' else COND_LIBXML2_READER_TRUE='#' COND_LIBXML2_READER_FALSE= fi have_gmetadom="no" if test "$enable_gmetadom" = "yes" -o "$enable_gmetadom" = "auto"; then pkg_failed=no { echo "$as_me:$LINENO: checking for DOM" >&5 echo $ECHO_N "checking for DOM... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$DOM_CFLAGS"; then pkg_cv_DOM_CFLAGS="$DOM_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gdome2-cpp-smart >= 0.1.8\"") >&5 ($PKG_CONFIG --exists --print-errors "gdome2-cpp-smart >= 0.1.8") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_DOM_CFLAGS=`$PKG_CONFIG --cflags "gdome2-cpp-smart >= 0.1.8" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$DOM_LIBS"; then pkg_cv_DOM_LIBS="$DOM_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gdome2-cpp-smart >= 0.1.8\"") >&5 ($PKG_CONFIG --exists --print-errors "gdome2-cpp-smart >= 0.1.8") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_DOM_LIBS=`$PKG_CONFIG --libs "gdome2-cpp-smart >= 0.1.8" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then DOM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gdome2-cpp-smart >= 0.1.8"` else DOM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdome2-cpp-smart >= 0.1.8"` fi # Put the nasty error message in config.log where it belongs echo "$DOM_PKG_ERRORS" >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } { echo "$as_me:$LINENO: WARNING: could not find GMetaDOM" >&5 echo "$as_me: WARNING: could not find GMetaDOM" >&2;} enable_gmetadom="no" elif test $pkg_failed = untried; then { echo "$as_me:$LINENO: WARNING: could not find GMetaDOM" >&5 echo "$as_me: WARNING: could not find GMetaDOM" >&2;} enable_gmetadom="no" else DOM_CFLAGS=$pkg_cv_DOM_CFLAGS DOM_LIBS=$pkg_cv_DOM_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } cat >>confdefs.h <<\_ACEOF #define HAVE_GMETADOM 1 _ACEOF have_gmetadom="yes" fi fi if test "$enable_gmetadom" = "yes" -o \( "$enable_gmetadom" = "auto" -a "$have_gmetadom" = "yes" \); then COND_GMETADOM_TRUE= COND_GMETADOM_FALSE='#' else COND_GMETADOM_TRUE='#' COND_GMETADOM_FALSE= fi have_t1lib="no" if test $with_t1lib = "auto"; then for ac_header in t1lib.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF { echo "$as_me:$LINENO: checking for T1_InitLib in -lt1" >&5 echo $ECHO_N "checking for T1_InitLib in -lt1... $ECHO_C" >&6; } if test "${ac_cv_lib_t1_T1_InitLib+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lt1 -lm $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char T1_InitLib (); int main () { return T1_InitLib (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_t1_T1_InitLib=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_t1_T1_InitLib=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_InitLib" >&5 echo "${ECHO_T}$ac_cv_lib_t1_T1_InitLib" >&6; } if test $ac_cv_lib_t1_T1_InitLib = yes; then have_t1lib="yes" fi fi done else have_t1lib=$with_t1lib fi if test $have_t1lib = "yes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_LIBT1 1 _ACEOF if test $with_t1lib_prefix = "yes"; then T1_CFLAGS="-I$T1LIB_PREFIX/include" T1_LIBS="-L$T1LIB_PREFIX/lib -lt1" T1_LIBS_X="-L$T1LIB_PREFIX/lib -lt1x" else T1_CFLAGS="" T1_LIBS="-lt1" T1_LIBS_X="-lt1x" fi else T1_CFLAGS="" T1_LIBS="" T1_LIBS_X="" fi if test $have_t1lib = "yes"; then COND_T1LIB_TRUE= COND_T1LIB_FALSE='#' else COND_T1LIB_TRUE='#' COND_T1LIB_FALSE= fi CFLAGS="$CFLAGS -W -Wall" CXXFLAGS="$CXXFLAGS -W -Wall" if test $enable_debug = yes; then CFLAGS="$CFLAGS -O0" CXXFLAGS="$CXXFLAGS -O0" cat >>confdefs.h <<\_ACEOF #define ENABLE_DEBUG 1 _ACEOF fi if test $enable_profile = yes; then CFLAGS="$CFLAGS -pg" CXXFLAGS="$CXXFLAGS -pg" cat >>confdefs.h <<\_ACEOF #define ENABLE_PROFILE 1 _ACEOF fi if test "$enable_profile" = "yes"; then COND_PROFILE_TRUE= COND_PROFILE_FALSE='#' else COND_PROFILE_TRUE='#' COND_PROFILE_FALSE= fi if test $enable_pipe = yes; then CFLAGS="$CFLAGS -pipe" CXXFLAGS="$CXXFLAGS -pipe" fi if test $enable_builder_cache = yes; then cat >>confdefs.h <<\_ACEOF #define ENABLE_BUILDER_CACHE 1 _ACEOF fi cat >>confdefs.h <<_ACEOF #define GMV_TFM_LEVEL $enable_tfm _ACEOF if test "$enable_tfm" != "0"; then COND_TFM_TRUE= COND_TFM_FALSE='#' else COND_TFM_TRUE='#' COND_TFM_FALSE= fi if test "$enable_tfm" = "1"; then COND_TFM_LEVEL_1_TRUE= COND_TFM_LEVEL_1_FALSE='#' else COND_TFM_LEVEL_1_TRUE='#' COND_TFM_LEVEL_1_FALSE= fi if test "$enable_tfm" = "2"; then COND_TFM_LEVEL_2_TRUE= COND_TFM_LEVEL_2_FALSE='#' else COND_TFM_LEVEL_2_TRUE='#' COND_TFM_LEVEL_2_FALSE= fi if test "$enable_tfm" = "3"; then COND_TFM_LEVEL_3_TRUE= COND_TFM_LEVEL_3_FALSE='#' else COND_TFM_LEVEL_3_TRUE='#' COND_TFM_LEVEL_3_FALSE= fi if test "$enable_tfm" = "0" -a "$enable_svg" = "yes"; then { echo "$as_me:$LINENO: WARNING: SVG support requires TFM support" >&5 echo "$as_me: WARNING: SVG support requires TFM support" >&2;} enable_svg="no" fi if test "$enable_svg" = "yes"; then cat >>confdefs.h <<\_ACEOF #define ENABLE_SVG 1 _ACEOF fi if test "$enable_svg" = "yes"; then COND_SVG_TRUE= COND_SVG_FALSE='#' else COND_SVG_TRUE='#' COND_SVG_FALSE= fi if test "$enable_ps" = "yes"; then cat >>confdefs.h <<\_ACEOF #define ENABLE_PS 1 _ACEOF fi if test "$enable_ps" = "yes"; then COND_PS_TRUE= COND_PS_FALSE='#' else COND_PS_TRUE='#' COND_PS_FALSE= fi AM_BINRELOC if test "x$br_cv_binreloc" = "xyes"; then WITH_BINRELOC_TRUE= WITH_BINRELOC_FALSE='#' else WITH_BINRELOC_TRUE='#' WITH_BINRELOC_FALSE= fi { echo "$as_me:$LINENO: checking whether to use GCC precompiled headers with $CXX" >&5 echo $ECHO_N "checking whether to use GCC precompiled headers with $CXX... $ECHO_C" >&6; } if test "x$GCC" = "xyes" ; then _gmv_gcc_version=`$CXX --version | grep GCC | head -1 | cut -f 3 -d " "` _gmv_gcc_major=`echo $_gmv_gcc_version | cut -f 1 -d "."` if [ "$_gmv_gcc_major" -ge "4" ] ; then if test "x$enable_gcc_pch" = "xyes" ; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } gmv_gcc_pch="yes" elif test "x$enable_gcc_pch" = "xauto" ; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } gmv_gcc_pch="yes" else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } gmv_gcc_pch="no" fi else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } gmv_gcc_pch="no" fi else gmv_gcc_pch="no" fi if test "x$gmv_gcc_pch" = "xyes"; then USE_GCC_PCH_TRUE= USE_GCC_PCH_FALSE='#' else USE_GCC_PCH_TRUE='#' USE_GCC_PCH_FALSE= fi ac_config_files="$ac_config_files Makefile gtkmathview.spec config/Makefile config/gtkmathview.conf.xml scripts/Makefile auto/Makefile auto/Char.hh.in autopackage/Makefile src/Makefile src/common/Makefile src/common/mathvariants/Makefile src/common/mathvariants/xml/Makefile src/frontend/Makefile src/frontend/common/Makefile src/frontend/custom_reader/Makefile src/frontend/libxml2_reader/Makefile src/frontend/libxml2/Makefile src/frontend/gmetadom/Makefile src/engine/Makefile src/engine/common/Makefile src/engine/boxml/Makefile src/engine/mathml/Makefile src/engine/adapters/Makefile src/backend/Makefile src/backend/common/Makefile src/backend/common/tfm/Makefile src/backend/gtk/Makefile src/backend/svg/Makefile src/backend/ps/Makefile src/view/Makefile src/widget/Makefile viewer/Makefile mathmlsvg/Makefile mathmlps/Makefile doc/Makefile mathview-core.pc mathview-frontend-custom-reader.pc mathview-frontend-libxml2-reader.pc mathview-frontend-libxml2.pc mathview-frontend-gmetadom.pc mathview-backend-ps.pc mathview-backend-svg.pc mathview-backend-gtk.pc gtkmathview-custom-reader.pc gtkmathview-libxml2-reader.pc gtkmathview-libxml2.pc gtkmathview-gmetadom.pc autopackage/abimath.apspec" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${COND_BOXML_TRUE}" && test -z "${COND_BOXML_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"COND_BOXML\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"COND_BOXML\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${COND_XSLTPROC_TRUE}" && test -z "${COND_XSLTPROC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"COND_XSLTPROC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"COND_XSLTPROC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${COND_HAVE_POPT_TRUE}" && test -z "${COND_HAVE_POPT_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"COND_HAVE_POPT\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"COND_HAVE_POPT\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${COND_GTK_TRUE}" && test -z "${COND_GTK_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"COND_GTK\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"COND_GTK\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${COND_CUSTOM_READER_TRUE}" && test -z "${COND_CUSTOM_READER_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"COND_CUSTOM_READER\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"COND_CUSTOM_READER\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${COND_LIBXML2_TRUE}" && test -z "${COND_LIBXML2_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"COND_LIBXML2\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"COND_LIBXML2\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${COND_LIBXML2_READER_TRUE}" && test -z "${COND_LIBXML2_READER_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"COND_LIBXML2_READER\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"COND_LIBXML2_READER\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${COND_GMETADOM_TRUE}" && test -z "${COND_GMETADOM_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"COND_GMETADOM\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"COND_GMETADOM\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${COND_T1LIB_TRUE}" && test -z "${COND_T1LIB_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"COND_T1LIB\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"COND_T1LIB\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${COND_PROFILE_TRUE}" && test -z "${COND_PROFILE_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"COND_PROFILE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"COND_PROFILE\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${COND_TFM_TRUE}" && test -z "${COND_TFM_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"COND_TFM\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"COND_TFM\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${COND_TFM_LEVEL_1_TRUE}" && test -z "${COND_TFM_LEVEL_1_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"COND_TFM_LEVEL_1\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"COND_TFM_LEVEL_1\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${COND_TFM_LEVEL_2_TRUE}" && test -z "${COND_TFM_LEVEL_2_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"COND_TFM_LEVEL_2\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"COND_TFM_LEVEL_2\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${COND_TFM_LEVEL_3_TRUE}" && test -z "${COND_TFM_LEVEL_3_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"COND_TFM_LEVEL_3\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"COND_TFM_LEVEL_3\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${COND_SVG_TRUE}" && test -z "${COND_SVG_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"COND_SVG\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"COND_SVG\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${COND_PS_TRUE}" && test -z "${COND_PS_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"COND_PS\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"COND_PS\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${WITH_BINRELOC_TRUE}" && test -z "${WITH_BINRELOC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"WITH_BINRELOC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"WITH_BINRELOC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${USE_GCC_PCH_TRUE}" && test -z "${USE_GCC_PCH_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"USE_GCC_PCH\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"USE_GCC_PCH\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=$SHELL export CONFIG_SHELL exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "gtkmathview.spec") CONFIG_FILES="$CONFIG_FILES gtkmathview.spec" ;; "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; "config/gtkmathview.conf.xml") CONFIG_FILES="$CONFIG_FILES config/gtkmathview.conf.xml" ;; "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; "auto/Makefile") CONFIG_FILES="$CONFIG_FILES auto/Makefile" ;; "auto/Char.hh.in") CONFIG_FILES="$CONFIG_FILES auto/Char.hh.in" ;; "autopackage/Makefile") CONFIG_FILES="$CONFIG_FILES autopackage/Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;; "src/common/mathvariants/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/mathvariants/Makefile" ;; "src/common/mathvariants/xml/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/mathvariants/xml/Makefile" ;; "src/frontend/Makefile") CONFIG_FILES="$CONFIG_FILES src/frontend/Makefile" ;; "src/frontend/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/frontend/common/Makefile" ;; "src/frontend/custom_reader/Makefile") CONFIG_FILES="$CONFIG_FILES src/frontend/custom_reader/Makefile" ;; "src/frontend/libxml2_reader/Makefile") CONFIG_FILES="$CONFIG_FILES src/frontend/libxml2_reader/Makefile" ;; "src/frontend/libxml2/Makefile") CONFIG_FILES="$CONFIG_FILES src/frontend/libxml2/Makefile" ;; "src/frontend/gmetadom/Makefile") CONFIG_FILES="$CONFIG_FILES src/frontend/gmetadom/Makefile" ;; "src/engine/Makefile") CONFIG_FILES="$CONFIG_FILES src/engine/Makefile" ;; "src/engine/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/engine/common/Makefile" ;; "src/engine/boxml/Makefile") CONFIG_FILES="$CONFIG_FILES src/engine/boxml/Makefile" ;; "src/engine/mathml/Makefile") CONFIG_FILES="$CONFIG_FILES src/engine/mathml/Makefile" ;; "src/engine/adapters/Makefile") CONFIG_FILES="$CONFIG_FILES src/engine/adapters/Makefile" ;; "src/backend/Makefile") CONFIG_FILES="$CONFIG_FILES src/backend/Makefile" ;; "src/backend/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/backend/common/Makefile" ;; "src/backend/common/tfm/Makefile") CONFIG_FILES="$CONFIG_FILES src/backend/common/tfm/Makefile" ;; "src/backend/gtk/Makefile") CONFIG_FILES="$CONFIG_FILES src/backend/gtk/Makefile" ;; "src/backend/svg/Makefile") CONFIG_FILES="$CONFIG_FILES src/backend/svg/Makefile" ;; "src/backend/ps/Makefile") CONFIG_FILES="$CONFIG_FILES src/backend/ps/Makefile" ;; "src/view/Makefile") CONFIG_FILES="$CONFIG_FILES src/view/Makefile" ;; "src/widget/Makefile") CONFIG_FILES="$CONFIG_FILES src/widget/Makefile" ;; "viewer/Makefile") CONFIG_FILES="$CONFIG_FILES viewer/Makefile" ;; "mathmlsvg/Makefile") CONFIG_FILES="$CONFIG_FILES mathmlsvg/Makefile" ;; "mathmlps/Makefile") CONFIG_FILES="$CONFIG_FILES mathmlps/Makefile" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "mathview-core.pc") CONFIG_FILES="$CONFIG_FILES mathview-core.pc" ;; "mathview-frontend-custom-reader.pc") CONFIG_FILES="$CONFIG_FILES mathview-frontend-custom-reader.pc" ;; "mathview-frontend-libxml2-reader.pc") CONFIG_FILES="$CONFIG_FILES mathview-frontend-libxml2-reader.pc" ;; "mathview-frontend-libxml2.pc") CONFIG_FILES="$CONFIG_FILES mathview-frontend-libxml2.pc" ;; "mathview-frontend-gmetadom.pc") CONFIG_FILES="$CONFIG_FILES mathview-frontend-gmetadom.pc" ;; "mathview-backend-ps.pc") CONFIG_FILES="$CONFIG_FILES mathview-backend-ps.pc" ;; "mathview-backend-svg.pc") CONFIG_FILES="$CONFIG_FILES mathview-backend-svg.pc" ;; "mathview-backend-gtk.pc") CONFIG_FILES="$CONFIG_FILES mathview-backend-gtk.pc" ;; "gtkmathview-custom-reader.pc") CONFIG_FILES="$CONFIG_FILES gtkmathview-custom-reader.pc" ;; "gtkmathview-libxml2-reader.pc") CONFIG_FILES="$CONFIG_FILES gtkmathview-libxml2-reader.pc" ;; "gtkmathview-libxml2.pc") CONFIG_FILES="$CONFIG_FILES gtkmathview-libxml2.pc" ;; "gtkmathview-gmetadom.pc") CONFIG_FILES="$CONFIG_FILES gtkmathview-gmetadom.pc" ;; "autopackage/abimath.apspec") CONFIG_FILES="$CONFIG_FILES autopackage/abimath.apspec" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # Set up the sed scripts for CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$exec_prefix$ac_delim prefix!$prefix$ac_delim program_transform_name!$program_transform_name$ac_delim bindir!$bindir$ac_delim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstatedir$ac_delim localstatedir!$localstatedir$ac_delim includedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_delim docdir!$docdir$ac_delim infodir!$infodir$ac_delim htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$libdir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_delim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_delim build_alias!$build_alias$ac_delim host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_delim MAJOR_VERSION!$MAJOR_VERSION$ac_delim MINOR_VERSION!$MINOR_VERSION$ac_delim MATHVIEW_VERSION!$MATHVIEW_VERSION$ac_delim MATHVIEW_VERSION_INFO!$MATHVIEW_VERSION_INFO$ac_delim AREAMODEL_VERSION_INFO!$AREAMODEL_VERSION_INFO$ac_delim COND_BOXML_TRUE!$COND_BOXML_TRUE$ac_delim COND_BOXML_FALSE!$COND_BOXML_FALSE$ac_delim GMV_ENABLE_BOXML_CFLAGS!$GMV_ENABLE_BOXML_CFLAGS$ac_delim INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim INSTALL_DATA!$INSTALL_DATA$ac_delim CYGPATH_W!$CYGPATH_W$ac_delim PACKAGE!$PACKAGE$ac_delim VERSION!$VERSION$ac_delim ACLOCAL!$ACLOCAL$ac_delim AUTOCONF!$AUTOCONF$ac_delim AUTOMAKE!$AUTOMAKE$ac_delim AUTOHEADER!$AUTOHEADER$ac_delim MAKEINFO!$MAKEINFO$ac_delim install_sh!$install_sh$ac_delim STRIP!$STRIP$ac_delim INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim mkdir_p!$mkdir_p$ac_delim AWK!$AWK$ac_delim SET_MAKE!$SET_MAKE$ac_delim am__leading_dot!$am__leading_dot$ac_delim AMTAR!$AMTAR$ac_delim am__tar!$am__tar$ac_delim am__untar!$am__untar$ac_delim build!$build$ac_delim build_cpu!$build_cpu$ac_delim build_vendor!$build_vendor$ac_delim build_os!$build_os$ac_delim host!$host$ac_delim host_cpu!$host_cpu$ac_delim host_vendor!$host_vendor$ac_delim host_os!$host_os$ac_delim CC!$CC$ac_delim CFLAGS!$CFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CC!$ac_ct_CC$ac_delim EXEEXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim DEPDIR!$DEPDIR$ac_delim am__include!$am__include$ac_delim am__quote!$am__quote$ac_delim AMDEP_TRUE!$AMDEP_TRUE$ac_delim AMDEP_FALSE!$AMDEP_FALSE$ac_delim AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim CCDEPMODE!$CCDEPMODE$ac_delim am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim LN_S!$LN_S$ac_delim ECHO!$ECHO$ac_delim AR!$AR$ac_delim RANLIB!$RANLIB$ac_delim DLLTOOL!$DLLTOOL$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF CEOF$ac_eof _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF AS!$AS$ac_delim OBJDUMP!$OBJDUMP$ac_delim CPP!$CPP$ac_delim CXX!$CXX$ac_delim CXXFLAGS!$CXXFLAGS$ac_delim ac_ct_CXX!$ac_ct_CXX$ac_delim CXXDEPMODE!$CXXDEPMODE$ac_delim am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim CXXCPP!$CXXCPP$ac_delim F77!$F77$ac_delim FFLAGS!$FFLAGS$ac_delim ac_ct_F77!$ac_ct_F77$ac_delim LIBTOOL!$LIBTOOL$ac_delim CHAR_UNSIGNED!$CHAR_UNSIGNED$ac_delim GTKMATHVIEW_SIZEOF_CHAR!$GTKMATHVIEW_SIZEOF_CHAR$ac_delim GTKMATHVIEW_SIZEOF_SHORT!$GTKMATHVIEW_SIZEOF_SHORT$ac_delim GTKMATHVIEW_SIZEOF_INT!$GTKMATHVIEW_SIZEOF_INT$ac_delim GTKMATHVIEW_SIZEOF_LONG!$GTKMATHVIEW_SIZEOF_LONG$ac_delim GTKMATHVIEW_SIZEOF_LONG_LONG!$GTKMATHVIEW_SIZEOF_LONG_LONG$ac_delim GTKMATHVIEW_SIZEOF_WCHAR_T!$GTKMATHVIEW_SIZEOF_WCHAR_T$ac_delim GMV_HAVE_HASH_MAP_CFLAGS!$GMV_HAVE_HASH_MAP_CFLAGS$ac_delim GMV_HAVE_EXT_HASH_MAP_CFLAGS!$GMV_HAVE_EXT_HASH_MAP_CFLAGS$ac_delim HAVE_XSLTPROC!$HAVE_XSLTPROC$ac_delim COND_XSLTPROC_TRUE!$COND_XSLTPROC_TRUE$ac_delim COND_XSLTPROC_FALSE!$COND_XSLTPROC_FALSE$ac_delim COND_HAVE_POPT_TRUE!$COND_HAVE_POPT_TRUE$ac_delim COND_HAVE_POPT_FALSE!$COND_HAVE_POPT_FALSE$ac_delim POPT_CFLAGS!$POPT_CFLAGS$ac_delim POPT_LIBS!$POPT_LIBS$ac_delim PKG_CONFIG!$PKG_CONFIG$ac_delim GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim GLIB_LIBS!$GLIB_LIBS$ac_delim GTK_CFLAGS!$GTK_CFLAGS$ac_delim GTK_LIBS!$GTK_LIBS$ac_delim PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim PANGOX_LIBS!$PANGOX_LIBS$ac_delim COND_GTK_TRUE!$COND_GTK_TRUE$ac_delim COND_GTK_FALSE!$COND_GTK_FALSE$ac_delim COND_CUSTOM_READER_TRUE!$COND_CUSTOM_READER_TRUE$ac_delim COND_CUSTOM_READER_FALSE!$COND_CUSTOM_READER_FALSE$ac_delim XML_CFLAGS!$XML_CFLAGS$ac_delim XML_LIBS!$XML_LIBS$ac_delim COND_LIBXML2_TRUE!$COND_LIBXML2_TRUE$ac_delim COND_LIBXML2_FALSE!$COND_LIBXML2_FALSE$ac_delim COND_LIBXML2_READER_TRUE!$COND_LIBXML2_READER_TRUE$ac_delim COND_LIBXML2_READER_FALSE!$COND_LIBXML2_READER_FALSE$ac_delim DOM_CFLAGS!$DOM_CFLAGS$ac_delim DOM_LIBS!$DOM_LIBS$ac_delim COND_GMETADOM_TRUE!$COND_GMETADOM_TRUE$ac_delim COND_GMETADOM_FALSE!$COND_GMETADOM_FALSE$ac_delim COND_T1LIB_TRUE!$COND_T1LIB_TRUE$ac_delim COND_T1LIB_FALSE!$COND_T1LIB_FALSE$ac_delim T1_CFLAGS!$T1_CFLAGS$ac_delim T1_LIBS!$T1_LIBS$ac_delim T1_LIBS_X!$T1_LIBS_X$ac_delim COND_PROFILE_TRUE!$COND_PROFILE_TRUE$ac_delim COND_PROFILE_FALSE!$COND_PROFILE_FALSE$ac_delim COND_TFM_TRUE!$COND_TFM_TRUE$ac_delim COND_TFM_FALSE!$COND_TFM_FALSE$ac_delim COND_TFM_LEVEL_1_TRUE!$COND_TFM_LEVEL_1_TRUE$ac_delim COND_TFM_LEVEL_1_FALSE!$COND_TFM_LEVEL_1_FALSE$ac_delim COND_TFM_LEVEL_2_TRUE!$COND_TFM_LEVEL_2_TRUE$ac_delim COND_TFM_LEVEL_2_FALSE!$COND_TFM_LEVEL_2_FALSE$ac_delim COND_TFM_LEVEL_3_TRUE!$COND_TFM_LEVEL_3_TRUE$ac_delim COND_TFM_LEVEL_3_FALSE!$COND_TFM_LEVEL_3_FALSE$ac_delim COND_SVG_TRUE!$COND_SVG_TRUE$ac_delim COND_SVG_FALSE!$COND_SVG_FALSE$ac_delim COND_PS_TRUE!$COND_PS_TRUE$ac_delim COND_PS_FALSE!$COND_PS_FALSE$ac_delim WITH_BINRELOC_TRUE!$WITH_BINRELOC_TRUE$ac_delim WITH_BINRELOC_FALSE!$WITH_BINRELOC_FALSE$ac_delim USE_GCC_PCH_TRUE!$USE_GCC_PCH_TRUE$ac_delim USE_GCC_PCH_FALSE!$USE_GCC_PCH_FALSE$ac_delim LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF :end s/|#_!!_#|//g CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac ac_file_inputs="$ac_file_inputs $ac_f" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input="Generated from "`IFS=: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin";; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir="$ac_dir" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= case `sed -n '/datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t $ac_datarootdir_hack " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out"; rm -f "$tmp/out";; *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; esac ;; :H) # # CONFIG_HEADER # _ACEOF # Transform confdefs.h into a sed script `conftest.defines', that # substitutes the proper values into config.h.in to produce config.h. rm -f conftest.defines conftest.tail # First, append a space to every undef/define line, to ease matching. echo 's/$/ /' >conftest.defines # Then, protect against being on the right side of a sed subst, or in # an unquoted here document, in config.status. If some macros were # called several times there might be several #defines for the same # symbol, which is useless. But do not sort them, since the last # AC_DEFINE must be honored. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where # NAME is the cpp macro being defined, VALUE is the value it is being given. # PARAMS is the parameter list in the macro definition--in most cases, it's # just an empty string. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ac_dB='\\)[ (].*,\\1define\\2' ac_dC=' ' ac_dD=' ,' uniq confdefs.h | sed -n ' t rset :rset s/^[ ]*#[ ]*define[ ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ' >>conftest.defines # Remove the space that was appended to ease matching. # Then replace #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. # (The regexp can be short, since the line contains either #define or #undef.) echo 's/ $// s,^[ #]*u.*,/* & */,' >>conftest.defines # Break up conftest.defines: ac_max_sed_lines=50 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" # et cetera. ac_in='$ac_file_inputs' ac_out='"$tmp/out1"' ac_nxt='"$tmp/out2"' while : do # Write a here document: cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b :def _ACEOF sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail grep . conftest.tail >/dev/null || break rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines conftest.tail echo "ac_result=$ac_in" >>$CONFIG_STATUS cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then echo "/* $configure_input */" >"$tmp/config.h" cat "$ac_result" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else rm -f $ac_file mv "$tmp/config.h" $ac_file fi else echo "/* $configure_input */" cat "$ac_result" fi rm -f "$tmp/out12" # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X$ac_file : 'X\(//\)[^/]' \| \ X$ac_file : 'X\(//\)$' \| \ X$ac_file : 'X\(/\)' \| . 2>/dev/null || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir=$dirpart/$fdir case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi cat <= 2.2.1 * libxml2 >= 2.6.7 * popt >= 1.7 In order to create the configuration files from the CVS repository, the following packages are also needed: * automake >= 1.7.6 * autoconf >= 2.57 * libxslt-bin >= 1.0.32 (xsltproc) It is possible that GtkMathView will compile with older versions of the libraries/packages above, but this has not been tested. Compiling ========= I'm assuming that you will be using fink packages. In this case most or all of the required libraries and include files will be installed under /sw/lib /sw/include To configure GtkMathView properly, use this line ./configure CPPFLAGS=-I/sw/include LDFLAGS=-L/sw/lib --disable-gtk [--disable-custom-reader] [--disable-libxml2-reader] [--disable-boxml] The options in square brackets will disable some unusual features to save you considerable compilation time. With powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5341) you need make CCLD=g++ in order to avoid linking issues. Fonts ===== In order to use Computer Modern fonts, download and drag them in your Font folder. Note about the GTK+ backend =========================== The compiler gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1493) which is installed in some versions of MacOSX cannot compile src/backend/gtk/Gtk_RenderingContext so in order to compile GtkMathView you have to disable the GTK+ backend by specifying --disable-gtk at configuration time. ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/AUTHORS���������������������������������������������������������������������������0000644�0001750�0001750�00000000016�10613606776�012053� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������Luca Padovani ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/gtkmathview-gmetadom.pc.in��������������������������������������������������������0000644�0001750�0001750�00000001063�10704611324�016046� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# This is a comment prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ datarootdir=@datarootdir@ datadir=@datadir@ Name: GtkMathView Description: A GTK+ Widget for Rendering MathML Documents (GMetaDOM frontend) Version: @VERSION@ Requires: glib-2.0 gtk+-2.0 gdome2-cpp-smart mathview-core mathview-backend-gtk mathview-frontend-gmetadom Libs: @DOM_LIBS@ -L${libdir} -lgtkmathview_gmetadom @T1_LIBS@ Cflags: @DOM_CFLAGS@ -I${includedir}/@PACKAGE@ @GMV_ENABLE_BOXML_CFLAGS@ @GMV_HAVE_HASH_MAP_CFLAGS@ @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/autopackage/����������������������������������������������������������������������0000777�0001750�0001750�00000000000�10704625451�013346� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/autopackage/abimath.apspec.in�����������������������������������������������������0000644�0001750�0001750�00000004265�10613606773�016505� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# -*-shell-script-*- [Meta] RootName: gnome.org/gtkmathview:@VERSION@ DisplayName: A GTK Widget for Rendering MathML Documents ShortName: gtkmathview Maintainer: Luca Padovani Packager: Robert Staudinger Summary: A GTK Widget for Rendering MathML Documents. SoftwareVersion: @VERSION@ AutopackageTarget: 1.0 PackageVersion: 1 # Only uncomment InterfaceVersion if your package exposes interfaces to other software, # for instance if it includes DSOs or python/perl modules. See the developer guide for more info, # or ask on autopackage-dev if you don't understand interface versioning in autopackage. InterfaceVersion: @MAJOR_VERSION@.@MINOR_VERSION@ [Description] GtkMathView is a C++ rendering engine for MathML documents. It provides an interactive view that can be used for browsing and editing MathML markup. A number of different frontends and backends is supported. For more information see http://helm.cs.unibo.it/mml-widget/ [BuildPrepare] orig_src_root=`pwd` orig_build_root="$build_root" prepareBuild --enable-binreloc --disable-debug --disable-boxml --disable-gmetadom --disable-libxml2-reader --disable-custom-reader --enable-pipe --disable-tfm --disable-svg --disable-gtk --disable-static --with-t1lib=no mkdir -p "$build_root/fonts" cp -R $orig_src_root/fonts/* "$build_root/fonts/" [BuildUnprepare] unprepareBuild [Imports] echo '*' | import [Prepare] require @gtk.org/glib 2.2 require @xmlsoft.org/libxml2 2.0 [Install] CONFDIR="etc/gtkmathview" if [ ! -e "$PREFIX/$CONFDIR" ] ; then mkdirs "$PREFIX/$CONFDIR" fi macro1='@'"prefix"'@' macro2='@'"VERSION"'@' sed -e "s%$macro1%$PREFIX%g" -e "s%$macro2%$SOFTWAREVERSION%g" "./$CONFDIR/gtkmathview.conf.xml.in" > "./$CONFDIR/gtkmathview.conf.xml" copyFile "./$CONFDIR/gtkmathview.conf.xml" "$PREFIX/$CONFDIR/gtkmathview.conf.xml" installLib ./lib/*.so.*.*.* installMan 1 ./man/man1/* installData ./share/* # fonts if [ $UID == 0 ] ; then FONTDIR="/usr/share/fonts/truetype" else FONTDIR=~/.fonts fi mkdirs $FONTDIR for entry in $( ls ./fonts ) ; do if [ -d ./fonts/$entry ] ; then mkdirs "$FONTDIR/$entry" copyFiles ./fonts/$entry/* "$FONTDIR/$entry/" fi done [Uninstall] uninstallFromLog �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/autopackage/Makefile.am�����������������������������������������������������������0000644�0001750�0001750�00000000041�10613606773�015316� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ EXTRA_DIST = abimath.apspec.in �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/autopackage/Makefile.in�����������������������������������������������������������0000644�0001750�0001750�00000026231�10704610527�015331� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = autopackage DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/abimath.apspec.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = abimath.apspec SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ EXTRA_DIST = abimath.apspec.in all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign autopackage/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign autopackage/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh abimath.apspec: $(top_builddir)/config.status $(srcdir)/abimath.apspec.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-exec install-exec-am \ install-info install-info-am install-man install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathview-core.pc.in���������������������������������������������������������������0000644�0001750�0001750�00000000622�10704611321�014470� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# This is a comment prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ datarootdir=@datarootdir@ datadir=@datadir@ Name: MathView Description: MathML rendering engine (core) Version: @VERSION@ Requires: glib-2.0 Libs: -L${libdir} -lmathview @T1_LIBS@ Cflags: -I${includedir}/@PACKAGE@ @GMV_ENABLE_BOXML_CFLAGS@ @GMV_HAVE_HASH_MAP_CFLAGS@ @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ ��������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/TODO������������������������������������������������������������������������������0000644�0001750�0001750�00000006670�10613606776�011507� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ // Legend * = URGENT + = SHORT TERM - = LONG TERM ? = unsure O = OK, done // General * Priorities for the next minor release: * Make high-quality, nice to see rendering in Pango, for both Math and Box * Make the widget more robust (font management) - implement GnomePrint backend - implement PS backend + make DPI a configurable parameter + find a way of having TFM support orthogonal to the other classes ? make pangolayout pangolinelayout areas configurable (glyph area?) ? T1 CM shaper useful for SVG? ? have callback functions to notify progress while building/formatting/etc? these should not depend on the backend - use step area to implement linebreaking in mrows - add possibility of disabling shaping of certain characters for shapers. Eg:
03BB
A0 B0
// AbiWord * move Char.hh.in into auto and cleanup dependencies with the top_builddir? * commit default shaper in abimathview // MathML BUGS + implement combining characters when TFM is enabled for the computer modern shaper ? when index == length in a glyph area the caret is drawn at the right end of the focus' bounding box. It would be more appropriate to draw it just after the glyph, especially for mo elements. Is this really better? ? selecting the root element does not show selection ARCH IMPROVEMENTS * MathMLNormalizingContainerElement::format can be removed ? make default value of attributes configurable ? make GlyphStringArea a leaf-like area? - change the clone method for areas so that it checks if the content is unchanged, and possibly implement the replace this way - implement auxiliary methods for searching into the area model - It may be feasible to generalize searching functions over areas by implementing a visitor - remove cast in gmetadom_Model::documentFromBuffer when gdome API is OK O it seems like the choice of having that the first child of a vertical area is the bottommost is a bit weird. Think of the cursor: intuitively at increasing indices the cursor should go forward (that is right or down depending on the container). No, it is consistent with the coordinate system used by areas where the origin is at the bottom PERFORMANCE IMPROVEMENTS - in TemplateBuilder do not use the hash map for retrieving old elements, but use accessor methods instead. Much faster MISSING ? make setSelected virtual in Gtk_WrapperArea and implement an open Wrapper area that selects all its children. Use the open wrapper for groups - implement PS area model (using pslib?) - implement T1lib area model (using pslib instead?) - implement shaper for Mathematica fonts - implement shaper for Euclid fonts - runtime selection of backend // BoxML BUGS MISSING - add documentation for boxml // SVG Backend BUGS - character 2211 is not displayed (and probably others) because there is no default shaper (?) IMPROVEMENTS - do not draw the contour of text, so that letters are thinner MISSING - cross-embedding of MathML and SVG following the guidelines? - cross-embedding of MathML and SVG with coordinates computation? - document alpha channel in RGBColor // GTK Backend ARCH IMPROVEMENTS + define selection as a pluggable feature (much like decorators) instead of a built-in feature. For some operations it may be desirable not to have selection implemented this way + same with click ������������������������������������������������������������������������gtkmathview-0.8.0/Makefile.in�����������������������������������������������������������������������0000644�0001750�0001750�00000067046�10704610562�013055� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = . am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @COND_LIBXML2_TRUE@am__append_1 = mathview-frontend-libxml2.pc @COND_LIBXML2_READER_TRUE@am__append_2 = mathview-frontend-libxml2-reader.pc @COND_CUSTOM_READER_TRUE@am__append_3 = mathview-frontend-custom-reader.pc @COND_GMETADOM_TRUE@am__append_4 = mathview-frontend-gmetadom.pc @COND_GTK_TRUE@am__append_5 = mathview-backend-gtk.pc @COND_GTK_TRUE@@COND_LIBXML2_TRUE@am__append_6 = gtkmathview-libxml2.pc @COND_GTK_TRUE@@COND_LIBXML2_READER_TRUE@am__append_7 = gtkmathview-libxml2-reader.pc @COND_CUSTOM_READER_TRUE@@COND_GTK_TRUE@am__append_8 = gtkmathview-custom-reader.pc @COND_GMETADOM_TRUE@@COND_GTK_TRUE@am__append_9 = gtkmathview-gmetadom.pc @COND_SVG_TRUE@am__append_10 = mathview-backend-svg.pc @COND_PS_TRUE@am__append_11 = mathview-backend-ps.pc DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/gtkmathview-custom-reader.pc.in \ $(srcdir)/gtkmathview-gmetadom.pc.in \ $(srcdir)/gtkmathview-libxml2-reader.pc.in \ $(srcdir)/gtkmathview-libxml2.pc.in \ $(srcdir)/gtkmathview.spec.in \ $(srcdir)/mathview-backend-gtk.pc.in \ $(srcdir)/mathview-backend-ps.pc.in \ $(srcdir)/mathview-backend-svg.pc.in \ $(srcdir)/mathview-core.pc.in \ $(srcdir)/mathview-frontend-custom-reader.pc.in \ $(srcdir)/mathview-frontend-gmetadom.pc.in \ $(srcdir)/mathview-frontend-libxml2-reader.pc.in \ $(srcdir)/mathview-frontend-libxml2.pc.in \ $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ TODO compile config.guess config.sub depcomp install-sh \ ltmain.sh missing mkinstalldirs subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno configure.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = gtkmathview.spec mathview-core.pc \ mathview-frontend-custom-reader.pc \ mathview-frontend-libxml2-reader.pc \ mathview-frontend-libxml2.pc mathview-frontend-gmetadom.pc \ mathview-backend-ps.pc mathview-backend-svg.pc \ mathview-backend-gtk.pc gtkmathview-custom-reader.pc \ gtkmathview-libxml2-reader.pc gtkmathview-libxml2.pc \ gtkmathview-gmetadom.pc SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(pkgconfigdir)" pkgconfigDATA_INSTALL = $(INSTALL_DATA) DATA = $(pkgconfig_DATA) ETAGS = etags CTAGS = ctags DIST_SUBDIRS = scripts config auto autopackage src doc viewer \ mathmlsvg mathmlps DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = @COND_GTK_FALSE@MAYBE_GTK_SUBDIRS = $(NULL) @COND_GTK_TRUE@@COND_HAVE_POPT_FALSE@MAYBE_GTK_SUBDIRS = $(NULL) @COND_GTK_TRUE@@COND_HAVE_POPT_TRUE@MAYBE_GTK_SUBDIRS = viewer @COND_HAVE_POPT_FALSE@@COND_SVG_TRUE@MAYBE_SVG_SUBDIRS = $(NULL) @COND_HAVE_POPT_TRUE@@COND_SVG_TRUE@MAYBE_SVG_SUBDIRS = mathmlsvg @COND_SVG_FALSE@MAYBE_SVG_SUBDIRS = $(NULL) @COND_HAVE_POPT_FALSE@@COND_PS_TRUE@MAYBE_PS_SUBDIRS = $(NULL) @COND_HAVE_POPT_TRUE@@COND_PS_TRUE@MAYBE_PS_SUBDIRS = mathmlps @COND_PS_FALSE@MAYBE_PS_SUBDIRS = $(NULL) EXTRA_DIST = BUGS HISTORY LICENSE ANNOUNCEMENT CONTRIBUTORS config.h.in README.MacOSX SUBDIRS = scripts config auto autopackage src doc $(MAYBE_GTK_SUBDIRS) $(MAYBE_SVG_SUBDIRS) $(MAYBE_PS_SUBDIRS) CLEANFILES = core *.log *.eps pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = mathview-core.pc $(am__append_1) $(am__append_2) \ $(am__append_3) $(am__append_4) $(am__append_5) \ $(am__append_6) $(am__append_7) $(am__append_8) \ $(am__append_9) $(am__append_10) $(am__append_11) SCRIPTDIR = ./scripts all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ cd $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 gtkmathview.spec: $(top_builddir)/config.status $(srcdir)/gtkmathview.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ mathview-core.pc: $(top_builddir)/config.status $(srcdir)/mathview-core.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ mathview-frontend-custom-reader.pc: $(top_builddir)/config.status $(srcdir)/mathview-frontend-custom-reader.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ mathview-frontend-libxml2-reader.pc: $(top_builddir)/config.status $(srcdir)/mathview-frontend-libxml2-reader.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ mathview-frontend-libxml2.pc: $(top_builddir)/config.status $(srcdir)/mathview-frontend-libxml2.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ mathview-frontend-gmetadom.pc: $(top_builddir)/config.status $(srcdir)/mathview-frontend-gmetadom.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ mathview-backend-ps.pc: $(top_builddir)/config.status $(srcdir)/mathview-backend-ps.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ mathview-backend-svg.pc: $(top_builddir)/config.status $(srcdir)/mathview-backend-svg.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ mathview-backend-gtk.pc: $(top_builddir)/config.status $(srcdir)/mathview-backend-gtk.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ gtkmathview-custom-reader.pc: $(top_builddir)/config.status $(srcdir)/gtkmathview-custom-reader.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ gtkmathview-libxml2-reader.pc: $(top_builddir)/config.status $(srcdir)/gtkmathview-libxml2-reader.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ gtkmathview-libxml2.pc: $(top_builddir)/config.status $(srcdir)/gtkmathview-libxml2.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ gtkmathview-gmetadom.pc: $(top_builddir)/config.status $(srcdir)/gtkmathview-gmetadom.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)" @list='$(pkgconfig_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \ $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \ done uninstall-pkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(pkgconfig_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \ rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \ done # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) mkdir $(distdir) $(mkdir_p) $(distdir)/. $(distdir)/auto $(distdir)/autopackage $(distdir)/config @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && cd $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' distuninstallcheck: @cd $(distuninstallcheck_dir) \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(DATA) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(pkgconfigdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-pkgconfigDATA install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-pkgconfigDATA uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ check-am clean clean-generic clean-libtool clean-recursive \ ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ dist-shar dist-tarZ dist-zip distcheck distclean \ distclean-generic distclean-hdr distclean-libtool \ distclean-recursive distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-pkgconfigDATA install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic maintainer-clean-recursive \ mostlyclean mostlyclean-generic mostlyclean-libtool \ mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-info-am \ uninstall-pkgconfigDATA backup: tar cvfz ../@PACKAGE@-@VERSION@-`date|tr ' ' '_'|tr ':' '_'`.tar.gz . cleanbak: -rm -f `find . -name "*~"` lc: @( \ CFILES=`find $(top_srcdir) -name "*.c"`; \ HFILES=`find $(top_srcdir) -name "*.h"`; \ CCFILES=`find $(top_srcdir) -name "*.cc"`; \ HHFILES=`find $(top_srcdir) -name "*.hh"`; \ ICCFILES=`find $(top_srcdir) -name "*.icc"`; \ wc -l $$CFILES $$HFILES $$CCFILES $$HHFILES $$ICCFILES | tail -n 1 \ ) distdiff: diff -r src/ @PACKAGE@-@VERSION@/src/ | grep '.\(cc\|hh\)$$' # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/aclocal.m4������������������������������������������������������������������������0000644�0001750�0001750�00001007702�10704610520�012634� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# generated automatically by aclocal 1.9.6 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) # ----------------------------------------------------------- # If this macro is not defined by Autoconf, define it here. m4_ifdef([AC_PROVIDE_IFELSE], [], [m4_define([AC_PROVIDE_IFELSE], [m4_ifdef([AC_PROVIDE_$1], [$2], [$3])])]) # AC_PROG_LIBTOOL # --------------- AC_DEFUN([AC_PROG_LIBTOOL], [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. AC_PROVIDE_IFELSE([AC_PROG_CXX], [AC_LIBTOOL_CXX], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX ])]) dnl And a similar setup for Fortran 77 support AC_PROVIDE_IFELSE([AC_PROG_F77], [AC_LIBTOOL_F77], [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 ])]) dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [ifdef([AC_PROG_GCJ], [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([A][M_PROG_GCJ], [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([LT_AC_PROG_GCJ], [define([LT_AC_PROG_GCJ], defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) ])])# AC_PROG_LIBTOOL # _AC_PROG_LIBTOOL # ---------------- AC_DEFUN([_AC_PROG_LIBTOOL], [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl # Prevent multiple expansion define([AC_PROG_LIBTOOL], []) ])# _AC_PROG_LIBTOOL # AC_LIBTOOL_SETUP # ---------------- AC_DEFUN([AC_LIBTOOL_SETUP], [AC_PREREQ(2.50)dnl AC_REQUIRE([AC_ENABLE_SHARED])dnl AC_REQUIRE([AC_ENABLE_STATIC])dnl AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_LD])dnl AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl AC_REQUIRE([AC_PROG_NM])dnl AC_REQUIRE([AC_PROG_LN_S])dnl AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! AC_REQUIRE([AC_OBJEXT])dnl AC_REQUIRE([AC_EXEEXT])dnl dnl AC_LIBTOOL_SYS_MAX_CMD_LEN AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE AC_LIBTOOL_OBJDIR AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_PROG_ECHO_BACKSLASH case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] # Same as above, but do not quote variable references. [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" AC_CHECK_TOOL(AR, ar, false) AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(STRIP, strip, :) old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then AC_PATH_MAGIC fi ;; esac AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], enable_win32_dll=yes, enable_win32_dll=no) AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes AC_ARG_WITH([pic], [AC_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= AC_LIBTOOL_LANG_C_CONFIG _LT_AC_TAGCONFIG ])# AC_LIBTOOL_SETUP # _LT_AC_SYS_COMPILER # ------------------- AC_DEFUN([_LT_AC_SYS_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_AC_SYS_COMPILER # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. AC_DEFUN([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ]) # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. AC_DEFUN([_LT_COMPILER_BOILERPLATE], [ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. AC_DEFUN([_LT_LINKER_BOILERPLATE], [ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* ])# _LT_LINKER_BOILERPLATE # _LT_AC_SYS_LIBPATH_AIX # ---------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_AC_SYS_LIBPATH_AIX # _LT_AC_SHELL_INIT(ARG) # ---------------------- AC_DEFUN([_LT_AC_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) $1 AC_DIVERT_POP ])# _LT_AC_SHELL_INIT # _LT_AC_PROG_ECHO_BACKSLASH # -------------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], [_LT_AC_SHELL_INIT([ # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;; esac echo=${ECHO-echo} if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string=`eval $cmd`) 2>/dev/null && echo_test_string=`eval $cmd` && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL [$]0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL [$]0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "[$]0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" fi AC_SUBST(ECHO) ])])# _LT_AC_PROG_ECHO_BACKSLASH # _LT_AC_LOCK # ----------- AC_DEFUN([_LT_AC_LOCK], [AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) LD="${LD-ld} -64" ;; esac ;; esac fi rm -rf conftest* ;; AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], [*-*-cygwin* | *-*-mingw* | *-*-pw32*) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; ]) esac need_locks="$enable_libtool_lock" ])# _LT_AC_LOCK # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [AC_REQUIRE([LT_AC_PROG_SED]) AC_CACHE_CHECK([$1], [$2], [$2=no ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $rm conftest* ]) if test x"[$]$2" = xyes; then ifelse([$5], , :, [$5]) else ifelse([$6], , :, [$6]) fi ])# AC_LIBTOOL_COMPILER_OPTION # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ------------------------------------------------------------ # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then ifelse([$4], , :, [$4]) else ifelse([$5], , :, [$5]) fi ])# AC_LIBTOOL_LINKER_OPTION # AC_LIBTOOL_SYS_MAX_CMD_LEN # -------------------------- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [# find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done teststring= # Add a significant safety factor because C++ compilers can tack on massive # amounts of additional arguments before passing them to the linker. # It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi ])# AC_LIBTOOL_SYS_MAX_CMD_LEN # _LT_AC_CHECK_DLFCN # ------------------ AC_DEFUN([_LT_AC_CHECK_DLFCN], [AC_CHECK_HEADERS(dlfcn.h)dnl ])# _LT_AC_CHECK_DLFCN # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # --------------------------------------------------------------------- AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); }] EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_AC_TRY_DLOPEN_SELF # AC_LIBTOOL_DLOPEN_SELF # ---------------------- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi ])# AC_LIBTOOL_DLOPEN_SELF # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) # --------------------------------- # Check to see if options -c and -o are simultaneously supported by compiler AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* ]) ])# AC_LIBTOOL_PROG_CC_C_O # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) # ----------------------------------------- # Check to see if we can do hard links to lock some files if needed AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_REQUIRE([_LT_AC_LOCK])dnl hard_links="nottested" if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS # AC_LIBTOOL_OBJDIR # ----------------- AC_DEFUN([AC_LIBTOOL_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir ])# AC_LIBTOOL_OBJDIR # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) # ---------------------------------------------- # Check hardcoding attributes. AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_AC_TAGVAR(hardcode_action, $1)= if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existant directories. if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_AC_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_AC_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_AC_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH # AC_LIBTOOL_SYS_LIB_STRIP # ------------------------ AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], [striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi ])# AC_LIBTOOL_SYS_LIB_STRIP # AC_LIBTOOL_SYS_DYNAMIC_LINKER # ----------------------------- # PORTME Fill in your ld.so characteristics AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_MSG_CHECKING([dynamic linker characteristics]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[123]]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; freebsd*) # from 4.6 on shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix3*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER # _LT_AC_TAGCONFIG # ---------------- AC_DEFUN([_LT_AC_TAGCONFIG], [AC_ARG_WITH([tags], [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], [include additional configurations @<:@automatic@:>@])], [tagnames="$withval"]) if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then AC_MSG_WARN([output file `$ofile' does not exist]) fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) else AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) fi fi if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in "") ;; *) AC_MSG_ERROR([invalid tag name: $tagname]) ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then AC_MSG_ERROR([tag name \"$tagname\" already exists]) fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_LIBTOOL_LANG_CXX_CONFIG else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then AC_LIBTOOL_LANG_F77_CONFIG else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then AC_LIBTOOL_LANG_GCJ_CONFIG else tagname="" fi ;; RC) AC_LIBTOOL_LANG_RC_CONFIG ;; *) AC_MSG_ERROR([Unsupported tag name: $tagname]) ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" AC_MSG_ERROR([unable to update list of available tagged configurations.]) fi fi ])# _LT_AC_TAGCONFIG # AC_LIBTOOL_DLOPEN # ----------------- # enable checks for dlopen support AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_DLOPEN # AC_LIBTOOL_WIN32_DLL # -------------------- # declare package support for building win32 DLLs AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_WIN32_DLL # AC_ENABLE_SHARED([DEFAULT]) # --------------------------- # implement the --enable-shared flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_SHARED], [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([shared], [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]AC_ENABLE_SHARED_DEFAULT) ])# AC_ENABLE_SHARED # AC_DISABLE_SHARED # ----------------- # set the default shared flag to --disable-shared AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_SHARED(no) ])# AC_DISABLE_SHARED # AC_ENABLE_STATIC([DEFAULT]) # --------------------------- # implement the --enable-static flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_STATIC], [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([static], [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]AC_ENABLE_STATIC_DEFAULT) ])# AC_ENABLE_STATIC # AC_DISABLE_STATIC # ----------------- # set the default static flag to --disable-static AC_DEFUN([AC_DISABLE_STATIC], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_STATIC(no) ])# AC_DISABLE_STATIC # AC_ENABLE_FAST_INSTALL([DEFAULT]) # --------------------------------- # implement the --enable-fast-install flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_FAST_INSTALL], [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([fast-install], [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) ])# AC_ENABLE_FAST_INSTALL # AC_DISABLE_FAST_INSTALL # ----------------------- # set the default to --disable-fast-install AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_FAST_INSTALL(no) ])# AC_DISABLE_FAST_INSTALL # AC_LIBTOOL_PICMODE([MODE]) # -------------------------- # implement the --with-pic flag # MODE is either `yes' or `no'. If omitted, it defaults to `both'. AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl pic_mode=ifelse($#,1,$1,default) ])# AC_LIBTOOL_PICMODE # AC_PROG_EGREP # ------------- # This is predefined starting with Autoconf 2.54, so this conditional # definition can be removed once we require Autoconf 2.54 or later. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 then ac_cv_prog_egrep='grep -E' else ac_cv_prog_egrep='egrep' fi]) EGREP=$ac_cv_prog_egrep AC_SUBST([EGREP]) ])]) # AC_PATH_TOOL_PREFIX # ------------------- # find a file program which can recognise shared library AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="ifelse([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi ])# AC_PATH_TOOL_PREFIX # AC_PATH_MAGIC # ------------- # find a file program which can recognise a shared library AC_DEFUN([AC_PATH_MAGIC], [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# AC_PATH_MAGIC # AC_PROG_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([AC_PROG_LD], [AC_ARG_WITH([gnu-ld], [AC_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no]) AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix3*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx*) lt_cv_deplibs_check_method=unknown ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown ])# AC_DEPLIBS_CHECK_METHOD # AC_PROG_NM # ---------- # find the pathname to a BSD-compatible name lister AC_DEFUN([AC_PROG_NM], [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi]) NM="$lt_cv_path_NM" ])# AC_PROG_NM # AC_CHECK_LIBM # ------------- # check for math library AC_DEFUN([AC_CHECK_LIBM], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac ])# AC_CHECK_LIBM # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl convenience library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-convenience to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, # it is assumed to be `libltdl'. LIBLTDL will be prefixed with # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' # (note the single quotes!). If your package is not flat and you're not # using automake, define top_builddir and top_srcdir appropriately in # the Makefiles. AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl case $enable_ltdl_convenience in no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_CONVENIENCE # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl installable library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-install to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, # and an installed libltdl is not found, it is assumed to be `libltdl'. # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with # '${top_srcdir}/' (note the single quotes!). If your package is not # flat and you're not using automake, define top_builddir and top_srcdir # appropriately in the Makefiles. # In the future, this macro may have to be called after AC_PROG_LIBTOOL. AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_CHECK_LIB(ltdl, lt_dlinit, [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], [if test x"$enable_ltdl_install" = xno; then AC_MSG_WARN([libltdl not installed, but installation disabled]) else enable_ltdl_install=yes fi ]) if test x"$enable_ltdl_install" = x"yes"; then ac_configure_args="$ac_configure_args --enable-ltdl-install" LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) else ac_configure_args="$ac_configure_args --enable-ltdl-install=no" LIBLTDL="-lltdl" LTDLINCL= fi # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_INSTALLABLE # AC_LIBTOOL_CXX # -------------- # enable support for C++ libraries AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_LT_AC_LANG_CXX]) ])# AC_LIBTOOL_CXX # _LT_AC_LANG_CXX # --------------- AC_DEFUN([_LT_AC_LANG_CXX], [AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) ])# _LT_AC_LANG_CXX # _LT_AC_PROG_CXXCPP # ------------------ AC_DEFUN([_LT_AC_PROG_CXXCPP], [ AC_REQUIRE([AC_PROG_CXX]) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP fi ])# _LT_AC_PROG_CXXCPP # AC_LIBTOOL_F77 # -------------- # enable support for Fortran 77 libraries AC_DEFUN([AC_LIBTOOL_F77], [AC_REQUIRE([_LT_AC_LANG_F77]) ])# AC_LIBTOOL_F77 # _LT_AC_LANG_F77 # --------------- AC_DEFUN([_LT_AC_LANG_F77], [AC_REQUIRE([AC_PROG_F77]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) ])# _LT_AC_LANG_F77 # AC_LIBTOOL_GCJ # -------------- # enable support for GCJ libraries AC_DEFUN([AC_LIBTOOL_GCJ], [AC_REQUIRE([_LT_AC_LANG_GCJ]) ])# AC_LIBTOOL_GCJ # _LT_AC_LANG_GCJ # --------------- AC_DEFUN([_LT_AC_LANG_GCJ], [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) ])# _LT_AC_LANG_GCJ # AC_LIBTOOL_RC # ------------- # enable support for Windows resource files AC_DEFUN([AC_LIBTOOL_RC], [AC_REQUIRE([LT_AC_PROG_RC]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) ])# AC_LIBTOOL_RC # AC_LIBTOOL_LANG_C_CONFIG # ------------------------ # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) AC_DEFUN([_LT_AC_LANG_C_CONFIG], [lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}\n' _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_SYS_LIB_STRIP AC_LIBTOOL_DLOPEN_SELF # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_C_CONFIG # AC_LIBTOOL_LANG_CXX_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], [AC_LANG_PUSH(C++) AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_AC_TAGVAR(no_undefined_flag, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Dependencies to place before and after the object being linked: _LT_AC_TAGVAR(predep_objects, $1)= _LT_AC_TAGVAR(postdep_objects, $1)= _LT_AC_TAGVAR(predeps, $1)= _LT_AC_TAGVAR(postdeps, $1)= _LT_AC_TAGVAR(compiler_lib_search_path, $1)= # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration AC_PROG_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_AC_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=yes else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes ; then lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[[12]]*) # C++ shared libraries reported to be fairly broken before switch to ELF _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_AC_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' ;; *) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix3*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC*) # Portland Group C++ compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; openbsd2*) # C++ shared libraries are fairly broken _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' ;; osf3*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ $rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The C++ compiler is used as linker so we must use $wl # flag to pass the commands to the underlying system # linker. We must also pass each convience library through # to the system linker between allextract/defaultextract. # The C++ compiler will combine linker options so we # cannot just pass the convience library names through # without $wl. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_AC_TAGVAR(GCC, $1)="$GXX" _LT_AC_TAGVAR(LD, $1)="$LD" AC_LIBTOOL_POSTDEP_PREDEP($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld ])# AC_LIBTOOL_LANG_CXX_CONFIG # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) # ------------------------------------ # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <> "$cfgfile" ifelse([$1], [], [#! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="$SED -e 1s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG], [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) # Is the compiler the GNU C compiler? with_gcc=$_LT_AC_TAGVAR(GCC, $1) # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_[]_LT_AC_TAGVAR(LD, $1) # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) # Commands used to build and install a shared archive. archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) # Flag that forces no undefined symbols. no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" # Set to yes if exported symbols are required. always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) # The commands to list exported symbols. export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) # Symbols that must always be exported. include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) ifelse([$1],[], [# ### END LIBTOOL CONFIG], [# ### END LIBTOOL TAG CONFIG: $tagname]) __EOF__ ifelse([$1],[], [ case $host_os in aix3*) cat <<\EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ]) else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ])# AC_LIBTOOL_CONFIG # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # --------------------------------- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_PROG_NM]) AC_REQUIRE([AC_OBJEXT]) # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32*) symcode='[[ABCDGISTW]]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux* | k*bsd*-gnu) if test "$host_cpu" = ia64; then symcode='[[ABCDGIRSTW]]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if grep ' nm_test_var$' "$nlist" >/dev/null; then if grep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[[]] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -f conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) # --------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) ifelse([$1],[CXX],[ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; icpc* | ecpc*) # Intel C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC*) # Portland Group C++ compiler. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; vxworks*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; newsos6) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" ;; esac # # Check to make sure the static flag actually works. # wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) ]) # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) # ------------------------------------ # See if the linker supports building shared libraries. AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) ifelse([$1],[CXX],[ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw*) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' ;; linux* | k*bsd*-gnu) _LT_AC_TAGVAR(link_all_deplibs, $1)=no ;; *) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ],[ runpath_var= _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)= _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_AC_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. _LT_CC_BASENAME([$compiler]) case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac _LT_AC_TAGVAR(ld_shlibs, $1)=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; interix3*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi _LT_AC_TAGVAR(link_all_deplibs, $1)=no else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=yes _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=yes else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # see comment about different semantics on the GNU ld section _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; bsdi[[45]]*) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; openbsd*) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi ;; os2*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' if test "$GCC" = yes; then wlarc='${wl}' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; *) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_AC_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_AC_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_AC_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_MSG_CHECKING([whether -lc should be explicitly linked in]) $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) _LT_AC_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) then _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac ])# AC_LIBTOOL_PROG_LD_SHLIBS # _LT_AC_FILE_LTDLL_C # ------------------- # Be careful that the start marker always follows a newline. AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ # /* ltdll.c starts here */ # #define WIN32_LEAN_AND_MEAN # #include # #undef WIN32_LEAN_AND_MEAN # #include # # #ifndef __CYGWIN__ # # ifdef __CYGWIN32__ # # define __CYGWIN__ __CYGWIN32__ # # endif # #endif # # #ifdef __cplusplus # extern "C" { # #endif # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); # #ifdef __cplusplus # } # #endif # # #ifdef __CYGWIN__ # #include # DECLARE_CYGWIN_DLL( DllMain ); # #endif # HINSTANCE __hDllInstance_base; # # BOOL APIENTRY # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) # { # __hDllInstance_base = hInst; # return TRUE; # } # /* ltdll.c ends here */ ])# _LT_AC_FILE_LTDLL_C # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) # --------------------------------- AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) # old names AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) AC_DEFUN([LT_AC_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj, no) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS) ]) AC_DEFUN([LT_AC_PROG_RC], [AC_CHECK_TOOL(RC, windres, no) ]) # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # # LT_AC_PROG_SED # -------------- # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. AC_DEFUN([LT_AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_MSG_RESULT([$SED]) ]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # # Similar to PKG_CHECK_MODULES, make sure that the first instance of # this or PKG_CHECK_MODULES is called, or make sure to call # PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$PKG_CONFIG"; then if test -n "$$1"; then pkg_cv_[]$1="$$1" else PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) fi else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` else $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT ])], [AC_MSG_RESULT([no]) $4]) elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])], [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3]) fi[]dnl ])# PKG_CHECK_MODULES # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION so it can be traced. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.9.6])]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 7 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE]) AC_SUBST([$1_FALSE]) if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH]) ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 3 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 12 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.58])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl ]) ]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $1 | $1:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"$am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. # # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories # created by `make install' are always world readable, even if the # installer happens to have an overly restrictive umask (e.g. 077). # This was a mistake. There are at least two reasons why we must not # use `-m 0755': # - it causes special bits like SGID to be ignored, # - it may be too restrictive (some setups expect 775 directories). # # Do not use -m 0755 and let people choose whatever they expect by # setting umask. # # We cannot accept any implementation of `mkdir' that recognizes `-p'. # Some implementations (such as Solaris 8's) are not thread-safe: if a # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' # concurrently, both version can detect that a/ is missing, but only # one can create it and the other will error out. Consequently we # restrict ourselves to GNU make (using the --version option ensures # this.) AC_DEFUN([AM_PROG_MKDIR_P], [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi AC_SUBST([mkdir_p])]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR ��������������������������������������������������������������gtkmathview-0.8.0/mathview-frontend-libxml2-reader.pc.in��������������������������������������������0000644�0001750�0001750�00000000744�10704611357�020204� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# This is a comment prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ datarootdir=@datarootdir@ datadir=@datadir@ Name: MathView Description: MathML rendering engine (libxml2 reader frontend) Version: @VERSION@ Requires: glib-2.0 libxml-2.0 mathview-core Libs: @XML_LIBS@ -L${libdir} -lmathview_frontend_libxml2_reader Cflags: @XML_CFLAGS@ -I${includedir}/@PACKAGE@ @GMV_ENABLE_BOXML_CFLAGS@ @GMV_HAVE_HASH_MAP_CFLAGS@ @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ ����������������������������gtkmathview-0.8.0/gtkmathview.spec.in���������������������������������������������������������������0000644�0001750�0001750�00000001537�10613606776�014627� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������Summary: A GTK Widget for rendering MathML documents Name: @PACKAGE@ Version: @VERSION@ Release: 1 Copyright: GPL Group: Development/Libraries Source: www.cs.unibo.it:/helm/mml-widget/@PACKAGE@-@VERSION@.tar.gz %description GtkMathView is a GTK Widget for rendering MathML documents. %prep %setup %build ./configure make %install make install %files %doc AUTHORS BUGS COPYING ChangeLog HISTORY INSTALL LICENSE NEWS README TODO /usr/local/bin/gtkmathview-config /usr/local/bin/mathmlviewer /usr/local/bin/mathml2ps /usr/local/lib/libgtkmathview.so /usr/local/lib/libgtkmathview.so.@MAJOR_VERSION@ /usr/local/lib/libgtkmathview.so.@VERSION@ /usr/local/lib/libgtkmathview.a /usr/local/lib/libgtkmathview.la /usr/local/include/gtkmathview/ /usr/local/share/gtkmathview/ /usr/local/info/gtkmathview.info /usr/local/man/mathmlviewer.1 /usr/local/man/mathml2ps.1 �����������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathmlps/�������������������������������������������������������������������������0000777�0001750�0001750�00000000000�10704625473�012713� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathmlps/main.cc������������������������������������������������������������������0000644�0001750�0001750�00000025701�10661271106�014057� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include // needed for old versions of GCC, must come before String.hh! #include "CharTraits.icc" #include "Logger.hh" #include "Init.hh" #include "Configuration.hh" #include "libxml2_MathView.hh" #include "MathMLOperatorDictionary.hh" #if HAVE_LIBT1 #include "T1_FontDataBase.hh" #endif //HAVE_LIBT1 #include "FontDataBase.hh" #include "PS_Backend.hh" #include "PS_MathGraphicDevice.hh" #include "PS_StreamRenderingContext.hh" #include "MathMLNamespaceContext.hh" #include "FormattingContext.hh" #if GMV_ENABLE_BOXML #include "BoxMLNamespaceContext.hh" #include "BoxGraphicDevice.hh" #endif // GMV_ENABLE_BOXML typedef libxml2_MathView MathView; static double width = 21; static double height = 29.7; static Length::Unit unitId = Length::CM_UNIT; static double xMargin = 2; static double yMargin = 2; static double fontSize = DEFAULT_FONT_SIZE; static bool cropping = true; #ifdef HAVE_LIBT1 static int fontEmbed = 2; #else static int fontEmbed = 0; #endif static bool cutFileName = true; static char* configPath = 0; static int logLevel = LOG_ERROR; static bool logLevelSet = false; enum CommandLineOptionId { OPTION_VERSION = 256, OPTION_VERBOSE, OPTION_PAGE_SIZE, OPTION_UNIT, OPTION_MARGINS, OPTION_FONT_SIZE, OPTION_FONT_EMBED, OPTION_CROP, OPTION_CUT_FILENAME, OPTION_CONFIG }; static void printVersion() { std::cout << "MathML to PostScript converter - written by Luca Padovani & Nicola Rossi (C) 2006" << std::endl << "Based on GtkMathView " << VERSION << std::endl; #ifdef DEBUG std::cout << "Compiled " << __DATE__ << " " << __TIME__ << std::endl; #endif exit(0); } static struct poptOption optionsTable[] = { { "version", 'V', POPT_ARG_NONE, 0, OPTION_VERSION, "Output version information", 0 }, { "verbose", 'v', POPT_ARG_INT, &logLevel, OPTION_VERBOSE, "Display messages", "[0-3]" }, { "unit", 'u', POPT_ARG_STRING, 0, OPTION_UNIT, "Unit for dimensions (default='cm')", "" }, { "page-size", 'p', POPT_ARG_STRING, 0, OPTION_PAGE_SIZE, "Page size (width x height) (default = 21 x 29.7)", "x" }, { "margins", 'm', POPT_ARG_STRING, 0, OPTION_MARGINS, "Margins (top x left) (default = 2 x 2)", "x" }, { "font-size", 'f', POPT_ARG_DOUBLE, &fontSize, OPTION_FONT_SIZE, "Default font size (in pt, default=10)", "" }, #ifdef HAVE_LIBT1 { "font-embed", 0, POPT_ARG_INT, &fontEmbed, OPTION_FONT_EMBED, "Enable/disable embedding (default=2)", "[0=disable,1=embed,2=subset]" }, #endif // HAVE_LIBT1 { "config", 0, POPT_ARG_STRING, 0, OPTION_CONFIG, "Configuration file path", "" }, { "crop", 'r', POPT_ARG_STRING | POPT_ARGFLAG_OPTIONAL, 0, OPTION_CROP, "Enable/disable cropping to bounding box (default='yes')", "[yes,no]" }, { "cut-filename", 0, POPT_ARG_STRING | POPT_ARGFLAG_OPTIONAL, 0, OPTION_CUT_FILENAME, "Cut the prefix dir from the output file (default='yes')", "[yes,no]" }, POPT_AUTOHELP { 0, 0, 0, 0, 0, 0, 0 } }; static void usage(poptContext optCon, int exitcode, const char* msg, const char* arg) { poptPrintUsage(optCon, stderr, 0); fprintf(stderr, "\ Valid units are:\n\n\ cm centimeter\n\ mm millimeter\n\ in inch (1 in = 2.54 cm)\n\ pt point (1 in = 72.27 pt)\n\ pc pica (1 pc = 12 pt)\n\ px pixel (1 in = 72 px)\n\ "); if (msg && arg) fprintf(stderr, "%s %s\n", msg, arg); exit(exitcode); } static void parseError(poptContext optCon, const char* option) { assert(option != NULL); usage(optCon, 1, "error while parsing option", option); } static bool parseSize(const char* s) { assert(s != NULL); char* nptr; double w = strtod(s, &nptr); if (nptr == s) return false; if (nptr == NULL || *nptr != 'x') return false; s = nptr + 1; double h = strtod(s, &nptr); if (nptr == s) return false; width = w; height = h; return true; } static bool parseBoolean(const char* s, bool& res) { assert(s != NULL); if (!strcmp(s, "yes")) { res = true; return true; } else if (!strcmp(s, "no")) { res = false; return true; } return false; } static bool parseUnit(const char* s) { assert(s != NULL); struct { const char* name; Length::Unit id; } unit[] = { { "mm", Length::MM_UNIT }, { "cm", Length::CM_UNIT }, { "in", Length::IN_UNIT }, { "pt", Length::PT_UNIT }, { "pc", Length::PC_UNIT }, { "px", Length::PX_UNIT }, { NULL, Length::UNDEFINED_UNIT } }; unsigned i; for (i = 0; unit[i].name != NULL && strcmp(unit[i].name, s); i++) ; if (unit[i].name == NULL) return false; unitId = unit[i].id; return true; } static bool parseMargins(const char* s) { assert(s != NULL); char* nptr; double x = strtod(s, &nptr); if (nptr == s) return false; if (nptr == NULL || *nptr != 'x') return false; s = nptr + 1; double y = strtod(s, &nptr); if (nptr == s) return false; xMargin = x; yMargin = y; return true; } static char* getOutputFileName(const char* in) { char* out; assert(in != NULL); const char* dot = strrchr(in, '.'); const char* slash = strrchr(in, '/'); if (cutFileName && slash != NULL) in = slash + 1; if (dot == NULL) { out = new char[strlen(in) + 5]; strcpy(out, in); } else { out = new char[strlen(in) - strlen(dot) + 5]; strncpy(out, in, strlen(in) - strlen(dot)); out[strlen(in) - strlen(dot)] = '\0'; } strcat(out, ".eps"); return out; } int main(int argc, const char* argv[]) { poptContext ctxt = poptGetContext(NULL, argc, argv, optionsTable, 0); int c; while ((c = poptGetNextOpt(ctxt)) >= 0) { const char* arg = poptGetOptArg(ctxt); switch (c) { case OPTION_VERSION: printVersion(); break; case OPTION_VERBOSE: if (logLevel < 0 || logLevel > 3) parseError(ctxt, "verbose"); logLevelSet = true; break; case OPTION_PAGE_SIZE: assert(arg != 0); if (!parseSize(arg)) parseError(ctxt, "size"); break; case OPTION_UNIT: assert(arg != 0); if (!parseUnit(arg)) parseError(ctxt, "unit"); break; case OPTION_MARGINS: assert(arg != 0); if (!parseMargins(arg)) parseError(ctxt, "margins"); break; case OPTION_FONT_SIZE: break; #ifdef HAVE_LIBT1 case OPTION_FONT_EMBED: if (fontEmbed < 0 || fontEmbed > 2) parseError(ctxt, "font-embed"); break; #endif // HAVE_LIBT1 case OPTION_CROP: if (arg == 0) cropping = true; else if (!parseBoolean(arg, cropping)) parseError(ctxt, "crop"); break; case OPTION_CUT_FILENAME: if (arg == 0) cutFileName = true; else if (!parseBoolean(arg, cutFileName)) parseError(ctxt, "cut-filename"); break; case OPTION_CONFIG: assert(arg != 0); configPath = strdup(arg); break; default: assert(false); } } if (c < -1) { /* an error occurred during option processing */ fprintf(stderr, "%s: %s\n", poptBadOption(ctxt, POPT_BADOPTION_NOALIAS), poptStrerror(c)); return 1; } if (configPath == 0) configPath = getenv("GTKMATHVIEWCONF"); SmartPtr logger = Logger::create(); logger->setLogLevel(LogLevelId(logLevel)); SmartPtr configuration = initConfiguration(logger, configPath); if (logLevelSet) logger->setLogLevel(LogLevelId(logLevel)); SmartPtr backend = PS_Backend::create(logger, configuration); SmartPtr mgd = backend->getMathGraphicDevice(); SmartPtr dictionary = initOperatorDictionary(logger, configuration); logger->out(LOG_INFO, "Font size : %f", fontSize); logger->out(LOG_INFO, "Page size : %fx%f", width, height); logger->out(LOG_INFO, "Margins : %fx%f", xMargin, yMargin); SmartPtr view = MathView::create(logger); view->setOperatorDictionary(dictionary); view->setMathMLNamespaceContext(MathMLNamespaceContext::create(view, mgd)); #if GMV_ENABLE_BOXML SmartPtr bgd = backend->getBoxGraphicDevice(); view->setBoxMLNamespaceContext(BoxMLNamespaceContext::create(view, bgd)); #endif view->setDefaultFontSize(static_cast(fontSize)); #if GMV_ENABLE_BOXML FormattingContext context(mgd, bgd); #else FormattingContext context(mgd); #endif const scaled widthS = mgd->evaluate(context, Length(width, unitId), scaled::zero()); const scaled heightS = mgd->evaluate(context, Length(height, unitId), scaled::zero()); const scaled xMarginS = mgd->evaluate(context, Length(xMargin, unitId), scaled::zero()); const scaled yMarginS = mgd->evaluate(context, Length(yMargin, unitId), scaled::zero()); view->setAvailableWidth(widthS - xMarginS * 2); const char* file = 0; while ((file = poptGetArg(ctxt)) != 0) { logger->out(LOG_INFO, "Processing `%s'...", file); char* outName = getOutputFileName(file); assert(outName != NULL); #if 1 #if 0 xmlTextReaderPtr reader = xmlNewTextReaderFilename(file); assert(reader); view->loadReader(reader); #endif view->loadURI(file); const BoundingBox box = view->getBoundingBox(); #ifdef HAVE_LIBT1 SmartPtr fDb; switch (fontEmbed) { case 0: fDb = FontDataBase::create(); break; case 1: fDb = T1_FontDataBase::create(logger, configuration, false); break; case 2: fDb = T1_FontDataBase::create(logger, configuration, true); break; default: assert(false); /* IMPOSSIBLE */ } #else // !HAVE_LIBT1 SmartPtr fDb = FontDataBase::create(); #endif std::ofstream os(outName); PS_StreamRenderingContext rc(logger, os, fDb); if (cropping) { rc.documentStart(0, 0, box, outName); view->render(rc, 0, box.depth); } else { rc.documentStart(xMarginS, (box.depth + yMarginS), BoundingBox(widthS, heightS - box.depth - yMarginS, box.depth + yMarginS), outName); view->render(rc, xMarginS, (box.depth + yMarginS)); } rc.documentEnd(); view->resetRootElement(); os.close(); // WARNING: currently the text reader is freed by libxmlXmlReader // not sure this is what we want //xmlFreeTextReader(reader); #else SMS sms(logger, view); sms.process(argv[optind]); #endif optind++; } poptFreeContext(ctxt); return 0; } ���������������������������������������������������������������gtkmathview-0.8.0/mathmlps/MathView.hh��������������������������������������������������������������0000644�0001750�0001750�00000001737�10661271106�014674� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathView_hh__ #define __MathView_hh__ #include "libxml2_MathView.hh" typedef libxml2_MathView MathView; #endif // __MathView_hh__ ���������������������������������gtkmathview-0.8.0/mathmlps/Makefile.am��������������������������������������������������������������0000644�0001750�0001750�00000001470�10661271106�014655� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ NULL = bin_PROGRAMS = $(NULL) if COND_LIBXML2 bin_PROGRAMS += mathmlps endif mathmlps_SOURCES = \ MathView.hh \ Model.hh \ main.cc \ $(NULL) mathmlps_LDADD = \ $(POPT_LIBS) \ $(GLIB_LIBS) \ $(top_builddir)/src/backend/ps/libmathview_backend_ps.la \ $(top_builddir)/src/view/libmathview_frontend_libxml2.la \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/frontend/libxml2 \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ -I$(top_srcdir)/src/backend/ps \ -I$(top_srcdir)/src/view \ $(POPT_CFLAGS) \ $(XML_CFLAGS) \ $(NULL) ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathmlps/Makefile.in��������������������������������������������������������������0000644�0001750�0001750�00000043405�10704610533�014671� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) @COND_LIBXML2_TRUE@am__append_1 = mathmlps subdir = mathmlps DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__EXEEXT_1 = @COND_LIBXML2_TRUE@am__EXEEXT_2 = mathmlps$(EXEEXT) am__installdirs = "$(DESTDIR)$(bindir)" binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) am__objects_1 = am_mathmlps_OBJECTS = main.$(OBJEXT) $(am__objects_1) mathmlps_OBJECTS = $(am_mathmlps_OBJECTS) am__DEPENDENCIES_1 = mathmlps_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(top_builddir)/src/backend/ps/libmathview_backend_ps.la \ $(top_builddir)/src/view/libmathview_frontend_libxml2.la \ $(am__DEPENDENCIES_1) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(mathmlps_SOURCES) DIST_SOURCES = $(mathmlps_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = mathmlps_SOURCES = \ MathView.hh \ Model.hh \ main.cc \ $(NULL) mathmlps_LDADD = \ $(POPT_LIBS) \ $(GLIB_LIBS) \ $(top_builddir)/src/backend/ps/libmathview_backend_ps.la \ $(top_builddir)/src/view/libmathview_frontend_libxml2.la \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/frontend/libxml2 \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ -I$(top_srcdir)/src/backend/ps \ -I$(top_srcdir)/src/view \ $(POPT_CFLAGS) \ $(XML_CFLAGS) \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign mathmlps/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign mathmlps/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ || test -f $$p1 \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ rm -f "$(DESTDIR)$(bindir)/$$f"; \ done clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done mathmlps$(EXEEXT): $(mathmlps_OBJECTS) $(mathmlps_DEPENDENCIES) @rm -f mathmlps$(EXEEXT) $(CXXLINK) $(mathmlps_LDFLAGS) $(mathmlps_OBJECTS) $(mathmlps_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-binPROGRAMS install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-binPROGRAMS uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/mathmlps/Model.hh�����������������������������������������������������������������0000644�0001750�0001750�00000001715�10661271106�014204� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Model_hh__ #define __Model_hh__ #include "libxml2_Model.hh" typedef libxml2_Model Model; #endif // __Model_hh__ ���������������������������������������������������gtkmathview-0.8.0/src/������������������������������������������������������������������������������0000777�0001750�0001750�00000000000�10704625472�011654� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/widget/�����������������������������������������������������������������������0000777�0001750�0001750�00000000000�10704625472�013137� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/widget/gtkmathview.h����������������������������������������������������������0000644�0001750�0001750�00000010431�10661271073�015551� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef __gtkmathview_h__ #define __gtkmathview_h__ #define gtk_math_view_get_type GTKMATHVIEW_METHOD_NAME(get_type) #define gtk_math_view_new GTKMATHVIEW_METHOD_NAME(new) #define gtk_math_view_update GTKMATHVIEW_METHOD_NAME(update) #define gtk_math_view_freeze GTKMATHVIEW_METHOD_NAME(freeze) #define gtk_math_view_thaw GTKMATHVIEW_METHOD_NAME(thaw) #define gtk_math_view_load_reader GTKMATHVIEW_METHOD_NAME(load_reader) #define gtk_math_view_load_uri GTKMATHVIEW_METHOD_NAME(load_uri) #define gtk_math_view_load_buffer GTKMATHVIEW_METHOD_NAME(load_buffer) #define gtk_math_view_load_document GTKMATHVIEW_METHOD_NAME(load_document) #define gtk_math_view_load_root GTKMATHVIEW_METHOD_NAME(load_root) #define gtk_math_view_unload GTKMATHVIEW_METHOD_NAME(unload) #define gtk_math_view_structure_changed GTKMATHVIEW_METHOD_NAME(structure_changed) #define gtk_math_view_attribute_changed GTKMATHVIEW_METHOD_NAME(attribute_changed) #define gtk_math_view_select GTKMATHVIEW_METHOD_NAME(select) #define gtk_math_view_unselect GTKMATHVIEW_METHOD_NAME(unselect) #define gtk_math_view_is_selected GTKMATHVIEW_METHOD_NAME(is_selected) #define gtk_math_view_get_document GTKMATHVIEW_METHOD_NAME(get_document) #define gtk_math_view_get_element_at GTKMATHVIEW_METHOD_NAME(get_element_at) #define gtk_math_view_get_element_extents GTKMATHVIEW_METHOD_NAME(get_element_extents) #define gtk_math_view_get_element_extents_ref GTKMATHVIEW_METHOD_NAME(get_element_extents_ref) #define gtk_math_view_get_element_length GTKMATHVIEW_METHOD_NAME(get_element_length) #define gtk_math_view_get_char_at GTKMATHVIEW_METHOD_NAME(get_char_at) #define gtk_math_view_get_char_extents GTKMATHVIEW_METHOD_NAME(get_char_extents) #define gtk_math_view_get_char_extents_ref GTKMATHVIEW_METHOD_NAME(get_char_extents_ref) #define gtk_math_view_get_size GTKMATHVIEW_METHOD_NAME(get_size) #define gtk_math_view_get_bounding_box GTKMATHVIEW_METHOD_NAME(get_bounding_box) #define gtk_math_view_get_top GTKMATHVIEW_METHOD_NAME(get_top) #define gtk_math_view_set_top GTKMATHVIEW_METHOD_NAME(set_top) #define gtk_math_view_set_adjustments GTKMATHVIEW_METHOD_NAME(set_adjustments) #define gtk_math_view_get_adjustments GTKMATHVIEW_METHOD_NAME(get_adjustments) #define gtk_math_view_get_buffer GTKMATHVIEW_METHOD_NAME(get_buffer) #define gtk_math_view_set_font_size GTKMATHVIEW_METHOD_NAME(set_font_size) #define gtk_math_view_get_font_size GTKMATHVIEW_METHOD_NAME(get_font_size) #define gtk_math_view_set_log_verbosity GTKMATHVIEW_METHOD_NAME(set_log_verbosity) #define gtk_math_view_get_log_verbosity GTKMATHVIEW_METHOD_NAME(get_log_verbosity) #define gtk_math_view_get_t1_opaque_mode GTKMATHVIEW_METHOD_NAME(get_t1_opaque_mode) #define gtk_math_view_set_t1_opaque_mode GTKMATHVIEW_METHOD_NAME(set_t1_opaque_mode) #define gtk_math_view_get_t1_anti_aliased_mode GTKMATHVIEW_METHOD_NAME(get_t1_anti_aliased_mode) #define gtk_math_view_set_t1_anti_aliased_mode GTKMATHVIEW_METHOD_NAME(set_t1_anti_aliased_mode) #define gtk_math_view_add_configuration_path GTKMATHVIEW_METHOD_NAME(add_configuration_path) #endif /* __gtkmathview_h__ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/widget/gtkmathview_custom_reader.h��������������������������������������������0000644�0001750�0001750�00000002203�10661271073�020463� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef __gtkmathview_custom_reader_h__ #define __gtkmathview_custom_reader_h__ #define GTKMATHVIEW_USES_CUSTOM_READER 1 #include "gtkmathview_common.h" #include "gtkmathview_decorators_common.h" #include "gtkmathview.h" #include "gtkmathview_decorators.h" #endif /* __gtkmathview_custom_reader_h__ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/widget/gtkmathview_custom_reader.cc�������������������������������������������0000644�0001750�0001750�00000001704�10661271073�020626� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "gtkmathview_custom_reader.h" #include "gtkmathview_common.cc" #include "gtkmathview_decorators_common.cc" ������������������������������������������������������������gtkmathview-0.8.0/src/widget/gtkmathview_decorators.h�����������������������������������������������0000644�0001750�0001750�00000002532�10661271073�020001� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef __gtkmathview_decorators_h__ #define __gtkmathview_decorators_h__ #define gtk_math_view_decor_default_cursor_new GTKMATHVIEW_METHOD_NAME(decor_default_cursor_new) #define gtk_math_view_decor_default_cursor_free GTKMATHVIEW_METHOD_NAME(decor_default_cursor_free) #define gtk_math_view_decor_default_cursor_set GTKMATHVIEW_METHOD_NAME(decor_default_cursor_set) #define gtk_math_view_decor_default_cursor_get GTKMATHVIEW_METHOD_NAME(decor_default_cursor_get) #endif /* __gtkmathview_decorators_h__ */ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/widget/gtkmathview_gmetadom.cc������������������������������������������������0000644�0001750�0001750�00000001677�10661271073�017600� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "gtkmathview_gmetadom.h" #include "gtkmathview_common.cc" #include "gtkmathview_decorators_common.cc" �����������������������������������������������������������������gtkmathview-0.8.0/src/widget/gtkmathview_common.cc��������������������������������������������������0000644�0001750�0001750�00000147203�10661271073�017267� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include "defs.h" // don't know why this is needed!!! #define PANGO_ENABLE_BACKEND #include #include #include #include #include #include "gtkmathview_common.h" #if GTKMATHVIEW_USES_CUSTOM_READER #define GTK_MATH_VIEW_WIDGET_NAME "GtkMathView_Custom_Reader" #include "custom_reader_MathView.hh" typedef custom_reader_MathView MathView; #elif GTKMATHVIEW_USES_LIBXML2_READER #define GTK_MATH_VIEW_WIDGET_NAME "GtkMathView_libxml2_Reader" #include "libxml2_reader_MathView.hh" typedef libxml2_reader_MathView MathView; #elif GTKMATHVIEW_USES_LIBXML2 #define GTK_MATH_VIEW_WIDGET_NAME "GtkMathView_libxml2" #include "libxml2_MathView.hh" typedef libxml2_MathView MathView; #elif GTKMATHVIEW_USES_GMETADOM #include "gmetadom.hh" #define GTK_MATH_VIEW_WIDGET_NAME "GtkMathView_GMetaDOM" #include "gmetadom_MathView.hh" typedef gmetadom_MathView MathView; #endif #include "Init.hh" #include "Logger.hh" #include "Configuration.hh" #include "Point.hh" #include "Rectangle.hh" #include "MathMLElement.hh" #include "MathMLOperatorDictionary.hh" #include "MathMLNamespaceContext.hh" #if GMV_ENABLE_BOXML #include "BoxMLNamespaceContext.hh" #endif // GMV_ENABLE_BOXML #include "MathGraphicDevice.hh" #include "BoxGraphicDevice.hh" #include "Gtk_Backend.hh" #include "Gtk_RenderingContext.hh" #include "Gtk_WrapperArea.hh" #define CLICK_SPACE_RANGE 1 #define CLICK_TIME_RANGE 250 enum SelectState { SELECT_STATE_NO, SELECT_STATE_YES, SELECT_STATE_ABORT }; enum GtkMathViewProperties { PROP_DEFAULT_FONT_SIZE, PROP_LOG_VERBOSITY }; /* structures */ struct _GtkMathViewClass { GtkWidgetClass parent_class; void (*set_scroll_adjustments) (GtkMathView *math_view, GtkAdjustment *hadjustment, GtkAdjustment *vadjustment); GtkMathViewModelSignal click; GtkMathViewModelSignal select_begin; GtkMathViewModelSignal select_over; GtkMathViewModelSignal select_end; GtkMathViewSelectAbortSignal select_abort; GtkMathViewModelSignal element_over; GtkMathViewDecorateSignal decorate_under; GtkMathViewDecorateSignal decorate_over; AbstractLogger* logger; gint defaultFontSize; bool defaultT1OpaqueMode; bool defaultT1AntiAliasedMode; MathMLOperatorDictionary* dictionary; Gtk_Backend* backend; }; struct _GtkMathView { GtkWidget parent; GtkWidget* area; GdkPixmap* pixmap; guint hsignal; // what is this for? guint vsignal; // what is this for? GtkAdjustment* hadjustment; GtkAdjustment* vadjustment; gint top_x; gint top_y; gint old_top_x; gint old_top_y; guint freeze_counter; SelectState select_state; gboolean button_pressed; gfloat button_press_x; gfloat button_press_y; guint32 button_press_time; GtkMathViewModelId current_elem; MathView* view; Gtk_RenderingContext* renderingContext; }; /* helper functions */ static void gtk_math_view_base_class_init(GtkMathViewClass*); static void gtk_math_view_base_class_finalize(GtkMathViewClass*); static void gtk_math_view_class_init(GtkMathViewClass*); static void gtk_math_view_init(GtkMathView*); /* GObject functions */ #if 0 static void gtk_math_view_set_property(GObject*, guint, const GValue*, GParamSpec*); static void gtk_math_view_get_property(GObject*, guint, GValue*, GParamSpec*); #endif /* GtkObject functions */ static void gtk_math_view_destroy(GtkObject*); /* GtkWidget functions */ static gboolean gtk_math_view_expose_event(GtkWidget*, GdkEventExpose*); static gboolean gtk_math_view_button_press_event(GtkWidget*, GdkEventButton*); static gboolean gtk_math_view_button_release_event(GtkWidget*, GdkEventButton*); static gboolean gtk_math_view_motion_notify_event(GtkWidget*, GdkEventMotion*); static gboolean gtk_math_view_focus_in_event(GtkWidget*, GdkEventFocus*); static gboolean gtk_math_view_focus_out_event(GtkWidget*, GdkEventFocus*); static void gtk_math_view_realize(GtkWidget*); static void gtk_math_view_size_request(GtkWidget*, GtkRequisition*); static void gtk_math_view_size_allocate(GtkWidget*, GtkAllocation*); /* GtkMathView Signals */ static void gtk_math_view_click(GtkMathView*, const GtkMathViewModelEvent*); static void gtk_math_view_select_begin(GtkMathView*, const GtkMathViewModelEvent*); static void gtk_math_view_select_over(GtkMathView*, const GtkMathViewModelEvent*); static void gtk_math_view_select_end(GtkMathView*, const GtkMathViewModelEvent*); static void gtk_math_view_select_abort(GtkMathView*); static void gtk_math_view_element_over(GtkMathView*, const GtkMathViewModelEvent*); /* auxiliary functions */ static void setup_adjustment(GtkAdjustment*, gfloat, gfloat); static void setup_adjustments(GtkMathView*); /* Local data */ static GtkWidgetClass* parent_class = NULL; static guint click_signal = 0; static guint select_begin_signal = 0; static guint select_over_signal = 0; static guint select_end_signal = 0; static guint select_abort_signal = 0; static guint element_over_signal = 0; static guint decorate_under_signal = 0; static guint decorate_over_signal = 0; /* auxiliary C++ functions */ // static RGBColor // RGBColorOfGdkColor(const GdkColor& c) // { return RGBColor(c.red >> 8, c.green >> 8, c.blue >> 8); } static SmartPtr findGtkWrapperArea(GtkMathView* math_view, GtkMathViewModelId node) { if (SmartPtr elem = math_view->view->elementOfModelElement(node)) if (SmartPtr area = smart_cast(elem->getArea())) return area; return 0; } #if 0 static GtkMathViewModelId findAction(GtkMathView* math_view, GtkMathViewModelId node) { SmartPtr elem = math_view->view->elementOfModelElement(node); while (elem && !is_a(elem) && !is_a(elem)) elem = elem->getParent(); return elem ? math_view->view->modelElementOfElement(elem) : GtkMathViewModelId(); } #endif /* auxiliary C functions */ static void from_view_coords(GtkMathView* math_view, GtkMathViewPoint* point) { g_return_if_fail(math_view != NULL); g_return_if_fail(point != NULL); point->x -= math_view->top_x; point->y -= math_view->top_y - Gtk_RenderingContext::toGtkPixels(math_view->view->getBoundingBox().height); } static void to_view_coords(GtkMathView* math_view, gint* x, gint* y) { g_return_if_fail(math_view != NULL); g_return_if_fail(x != NULL); g_return_if_fail(y != NULL); *x += math_view->top_x; *y += math_view->top_y - Gtk_RenderingContext::toGtkPixels(math_view->view->getBoundingBox().height); } /* GObject implementation */ #if 0 static extern "C" void gtk_math_view_set_property (GObject* object, guint prop_id, GValue* value, GParamSpec* pspec) { GtkMathView *math_view = GTK_MATH_VIEW(object); switch (prop_id) { case PROP_DEFAULT_FONT_SIZE: case PROP_LOG_VERBOSITY: default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } static extern "C" void gtk_math_view_get_property (GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec) { } #endif /* widget implementation */ static void gtk_math_view_update(GtkMathView* math_view, gint x0, gint y0, gint width, gint height) { GtkWidget* widget = GTK_WIDGET(math_view); if (!GTK_WIDGET_MAPPED(GTK_WIDGET(math_view)) || math_view->freeze_counter > 0) return; if (math_view->pixmap != NULL) gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], math_view->pixmap, x0, y0, x0, y0, width, height); else gdk_draw_rectangle(widget->window, widget->style->white_gc, TRUE, x0, y0, width, height); g_signal_emit(GTK_OBJECT(math_view), decorate_over_signal, 0, widget->window); } static void gtk_math_view_paint(GtkMathView* math_view) { g_return_if_fail(math_view != NULL); GtkMathViewClass* math_view_class = GTK_MATH_VIEW_CLASS(G_OBJECT_GET_CLASS(G_OBJECT(math_view))); g_return_if_fail(math_view_class != NULL); if (!GTK_WIDGET_MAPPED(GTK_WIDGET(math_view)) || math_view->freeze_counter > 0) return; GtkWidget* widget = GTK_WIDGET(math_view); setup_adjustments(math_view); const gint width = widget->allocation.width; const gint height = widget->allocation.height; Gtk_RenderingContext* rc = math_view->renderingContext; g_return_if_fail(rc != 0); if (math_view->pixmap == NULL) { math_view->pixmap = gdk_pixmap_new(widget->window, width, height, -1); rc->setDrawable(math_view->pixmap); } rc->setStyle(Gtk_RenderingContext::SELECTED_STYLE); if (GTK_WIDGET_HAS_FOCUS(math_view)) { rc->setForegroundColor(widget->style->text[GTK_STATE_SELECTED]); rc->setBackgroundColor(widget->style->base[GTK_STATE_SELECTED]); } else { rc->setForegroundColor(widget->style->text[GTK_STATE_ACTIVE]); rc->setBackgroundColor(widget->style->base[GTK_STATE_ACTIVE]); } rc->setStyle(Gtk_RenderingContext::NORMAL_STYLE); rc->setForegroundColor(widget->style->fg[GTK_STATE_NORMAL]); rc->setBackgroundColor(widget->style->bg[GTK_STATE_NORMAL]); gdk_draw_rectangle(math_view->pixmap, widget->style->white_gc, TRUE, 0, 0, width, height); // WARNING: setAvailableWidth must be invoked BEFORE any coordinate conversion math_view->view->setAvailableWidth(Gtk_RenderingContext::fromGtkX(width)); gint x = 0; gint y = 0; to_view_coords(math_view, &x, &y); g_signal_emit(GTK_OBJECT(math_view), decorate_under_signal, 0, math_view->pixmap); math_view->view->render(*rc, Gtk_RenderingContext::fromGtkX(-x), Gtk_RenderingContext::fromGtkY(-y)); gtk_math_view_update(math_view, 0, 0, width, height); } static void hadjustment_value_changed(GtkAdjustment* adj, GtkMathView* math_view) { g_return_if_fail(adj != NULL); g_return_if_fail(math_view != NULL); if (adj->value > adj->upper - adj->page_size) adj->value = adj->upper - adj->page_size; if (adj->value < adj->lower) adj->value = adj->lower; math_view->old_top_x = math_view->top_x; math_view->top_x = static_cast(adj->value); if (math_view->old_top_x != math_view->top_x) gtk_math_view_paint(math_view); } static void vadjustment_value_changed(GtkAdjustment* adj, GtkMathView* math_view) { g_return_if_fail(adj != NULL); g_return_if_fail(math_view != NULL); if (adj->value > adj->upper - adj->page_size) adj->value = adj->upper - adj->page_size; if (adj->value < adj->lower) adj->value = adj->lower; math_view->old_top_y = math_view->top_y; math_view->top_y = static_cast(adj->value); if (math_view->old_top_y != math_view->top_y) gtk_math_view_paint(math_view); } extern "C" GType GTKMATHVIEW_METHOD_NAME(get_type)(void) { static GType math_view_type = 0; if (!math_view_type) { static const GTypeInfo math_view_info = { sizeof(GtkMathViewClass), (GBaseInitFunc) gtk_math_view_base_class_init, (GBaseFinalizeFunc) gtk_math_view_base_class_finalize, (GClassInitFunc) gtk_math_view_class_init, NULL, NULL, sizeof(GtkMathView), 0, (GInstanceInitFunc) gtk_math_view_init, NULL }; math_view_type = g_type_register_static(GTK_TYPE_WIDGET, GTK_MATH_VIEW_WIDGET_NAME, &math_view_info, (GTypeFlags) 0); } return math_view_type; } static void gtk_math_view_base_class_init(GtkMathViewClass* math_view_class) { g_return_if_fail(math_view_class != NULL); SmartPtr logger = Logger::create(); logger->ref(); math_view_class->logger = logger; SmartPtr configuration = initConfiguration(logger, getenv("GTKMATHVIEWCONF")); configuration->ref(); math_view_class->defaultFontSize = configuration->getInt(logger, "default/font-size", DEFAULT_FONT_SIZE); math_view_class->defaultT1OpaqueMode = configuration->getBool(logger, "default/t1lib/opaque-mode", false); math_view_class->defaultT1AntiAliasedMode = configuration->getBool(logger, "default/t1lib/anti-aliasing", false); SmartPtr dictionary = initOperatorDictionary(logger, configuration); dictionary->ref(); math_view_class->dictionary = dictionary; SmartPtr backend = Gtk_Backend::create(logger, configuration); backend->ref(); math_view_class->backend = backend; } static void gtk_math_view_base_class_finalize(GtkMathViewClass* math_view_class) { g_return_if_fail(math_view_class != NULL); if (math_view_class->backend) { math_view_class->backend->unref(); math_view_class->backend = 0; } if (math_view_class->dictionary) { math_view_class->dictionary->unref(); math_view_class->dictionary = 0; } if (math_view_class->logger) { math_view_class->logger->unref(); math_view_class->logger = 0; } } static void gtk_math_view_class_init(GtkMathViewClass* math_view_class) { g_return_if_fail(math_view_class != NULL); #if 0 GObjectClass* gobject_class = G_OBJECT_CLASS(math_view_class); #endif GtkObjectClass* object_class = (GtkObjectClass*) math_view_class; GtkWidgetClass* widget_class = (GtkWidgetClass*) math_view_class; math_view_class->click = gtk_math_view_click; math_view_class->select_begin = gtk_math_view_select_begin; math_view_class->select_over = gtk_math_view_select_over; math_view_class->select_end = gtk_math_view_select_end; math_view_class->select_abort = gtk_math_view_select_abort; math_view_class->element_over = gtk_math_view_element_over; math_view_class->set_scroll_adjustments = gtk_math_view_set_adjustments; parent_class = (GtkWidgetClass*) gtk_type_class(gtk_widget_get_type()); #if 0 gobject_class->set_property = gtk_math_view_set_property; gobject_class->get_property = gtk_math_view_get_property; #endif object_class->destroy = gtk_math_view_destroy; widget_class->realize = gtk_math_view_realize; widget_class->expose_event = gtk_math_view_expose_event; widget_class->size_request = gtk_math_view_size_request; widget_class->size_allocate = gtk_math_view_size_allocate; widget_class->button_press_event = gtk_math_view_button_press_event; widget_class->button_release_event = gtk_math_view_button_release_event; widget_class->motion_notify_event = gtk_math_view_motion_notify_event; widget_class->focus_in_event = gtk_math_view_focus_in_event; widget_class->focus_out_event = gtk_math_view_focus_out_event; widget_class->set_scroll_adjustments_signal = g_signal_new("set_scroll_adjustments", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GtkMathViewClass,set_scroll_adjustments), NULL, NULL, gtk_marshal_NONE__POINTER_POINTER, G_TYPE_NONE , 2, GTK_TYPE_ADJUSTMENT, GTK_TYPE_ADJUSTMENT); click_signal = g_signal_new("click", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET(GtkMathViewClass, click), NULL, NULL, gtk_marshal_NONE__POINTER, G_TYPE_NONE, 1, GTK_TYPE_POINTER); select_begin_signal= g_signal_new("select_begin", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET(GtkMathViewClass, select_begin), NULL, NULL, gtk_marshal_NONE__POINTER, G_TYPE_NONE, 1, GTK_TYPE_POINTER); select_over_signal = g_signal_new("select_over", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET(GtkMathViewClass, select_over), NULL, NULL, gtk_marshal_NONE__POINTER, G_TYPE_NONE, 1, GTK_TYPE_POINTER); select_end_signal = g_signal_new("select_end", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET(GtkMathViewClass, select_end), NULL, NULL, gtk_marshal_NONE__POINTER, G_TYPE_NONE, 1, GTK_TYPE_POINTER); select_abort_signal = g_signal_new("select_abort", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET(GtkMathViewClass, select_abort), NULL, NULL, gtk_marshal_NONE__NONE, G_TYPE_NONE, 0); element_over_signal = g_signal_new("element_over", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET(GtkMathViewClass, element_over), NULL, NULL, gtk_marshal_NONE__POINTER, G_TYPE_NONE, 1, GTK_TYPE_POINTER); decorate_under_signal = g_signal_new("decorate_under", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET(GtkMathViewClass, decorate_under), NULL, NULL, gtk_marshal_NONE__POINTER, G_TYPE_NONE, 1, GTK_TYPE_POINTER); decorate_over_signal = g_signal_new("decorate_over", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET(GtkMathViewClass, decorate_over), NULL, NULL, gtk_marshal_NONE__POINTER, G_TYPE_NONE, 1, GTK_TYPE_POINTER); #if 0 g_object_class_install_property(gobject_class, PROP_DEFAULT_FONT_SIZE, g_param_spec_int("font_size", "Font Size", "The default font size", -1, 100, -1, G_PARAM_READWRITE)); g_object_class_install_property(gobject_class, PROP_LOG_VERBOSITY, g_param_spec_int("log_verbosity", "Logger verbosity", "Verbosity level of the logger", LOG_ERROR, LOG_DEBUG, LOG_ERROR, G_PARAM_READWRITE)); #endif } #if GTKMATHVIEW_USES_GMETADOM static void gtk_math_view_release_document_resources(GtkMathView* math_view) { g_return_if_fail(math_view != NULL); GdomeException exc = 0; if (math_view->current_elem != NULL) { gdome_el_unref(math_view->current_elem, &exc); g_assert(exc == 0); math_view->current_elem = NULL; } } #else static void gtk_math_view_release_document_resources(GtkMathView* math_view) { g_return_if_fail(math_view != NULL); math_view->current_elem = NULL; } #endif static void gtk_math_view_init(GtkMathView* math_view) { g_return_if_fail(math_view != NULL); math_view->pixmap = NULL; math_view->view = 0; math_view->renderingContext = 0; math_view->freeze_counter = 0; math_view->select_state = SELECT_STATE_NO; math_view->button_pressed = FALSE; math_view->current_elem = NULL; math_view->hadjustment = NULL; math_view->vadjustment = NULL; math_view->top_x = math_view->top_y = 0; math_view->old_top_x = math_view->old_top_y = 0; GtkMathViewClass* math_view_class = GTK_MATH_VIEW_CLASS(gtk_type_class(gtk_math_view_get_type())); g_assert(math_view_class != NULL); SmartPtr view = MathView::create(math_view_class->logger); view->ref(); math_view->view = view; view->setDefaultFontSize(math_view_class->defaultFontSize); view->setOperatorDictionary(math_view_class->dictionary); view->setMathMLNamespaceContext(MathMLNamespaceContext::create(view, math_view_class->backend->getMathGraphicDevice())); #if GMV_ENABLE_BOXML view->setBoxMLNamespaceContext(BoxMLNamespaceContext::create(view, math_view_class->backend->getBoxGraphicDevice())); #endif // GMV_ENABLE_BOXML math_view->renderingContext = new Gtk_RenderingContext(math_view_class->logger); math_view->renderingContext->setColorMap(gtk_widget_get_colormap(GTK_WIDGET(math_view))); math_view->renderingContext->setT1OpaqueMode(math_view_class->defaultT1OpaqueMode); math_view->renderingContext->setT1AntiAliasedMode(math_view_class->defaultT1AntiAliasedMode); } extern "C" GtkWidget* GTKMATHVIEW_METHOD_NAME(new)(GtkAdjustment* hadj, GtkAdjustment* vadj) { GtkMathView* math_view = (GtkMathView*) gtk_type_new(GTKMATHVIEW_METHOD_NAME(get_type)()); g_return_val_if_fail(math_view != NULL, NULL); GTKMATHVIEW_METHOD_NAME(set_adjustments)(math_view, hadj, vadj); return GTK_WIDGET(math_view); } static void gtk_math_view_destroy(GtkObject* object) { GtkMathView* math_view; g_return_if_fail(object != NULL); g_return_if_fail(GTK_IS_MATH_VIEW(object)); math_view = GTK_MATH_VIEW(object); g_assert(math_view != NULL); if (math_view->view) { math_view->view->resetRootElement(); math_view->view->unref(); math_view->view = 0; } if (math_view->renderingContext) { delete math_view->renderingContext; math_view->renderingContext = 0; } if (math_view->hadjustment != NULL) { gtk_object_unref(GTK_OBJECT(math_view->hadjustment)); math_view->hadjustment = NULL; } if (math_view->vadjustment != NULL) { gtk_object_unref(GTK_OBJECT(math_view->vadjustment)); math_view->vadjustment = NULL; } if (math_view->pixmap != NULL) { g_object_unref(G_OBJECT(math_view->pixmap)); math_view->pixmap = NULL; } gtk_math_view_release_document_resources(math_view); if (GTK_OBJECT_CLASS(parent_class)->destroy != NULL) (*GTK_OBJECT_CLASS(parent_class)->destroy)(object); } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(freeze)(GtkMathView* math_view) { g_return_val_if_fail(math_view != NULL, FALSE); return (math_view->freeze_counter++ > 0); } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(thaw)(GtkMathView* math_view) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->freeze_counter > 0, FALSE); if (--math_view->freeze_counter == 0) { gtk_math_view_paint(math_view); return TRUE; } else return FALSE; } extern "C" void GTKMATHVIEW_METHOD_NAME(update)(GtkMathView* math_view, GdkRectangle* rect) { GtkWidget* widget = GTK_WIDGET(math_view); if (rect) gtk_math_view_update(math_view, rect->x, rect->y, rect->width, rect->height); else gtk_math_view_update(math_view, 0, 0, widget->allocation.width, widget->allocation.height); } static void gtk_math_view_realize(GtkWidget* widget) { GtkMathView* math_view; GdkWindowAttr attributes; gint attributes_mask; g_return_if_fail (widget != NULL); g_return_if_fail (GTK_IS_MATH_VIEW (widget)); GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED | GTK_CAN_FOCUS); math_view = GTK_MATH_VIEW (widget); attributes.x = widget->allocation.x; attributes.y = widget->allocation.y; attributes.width = widget->allocation.width; attributes.height = widget->allocation.height; attributes.wclass = GDK_INPUT_OUTPUT; attributes.window_type = GDK_WINDOW_CHILD; attributes.event_mask = gtk_widget_get_events (widget) | GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK; attributes.visual = gtk_widget_get_visual (widget); attributes.colormap = gtk_widget_get_colormap (widget); attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP; widget->window = gdk_window_new (widget->parent->window, &attributes, attributes_mask); widget->style = gtk_style_attach (widget->style, widget->window); gdk_window_set_user_data (widget->window, widget); gtk_style_set_background (widget->style, widget->window, GTK_STATE_ACTIVE); } static void gtk_math_view_size_request(GtkWidget* widget, GtkRequisition* requisition) { g_return_if_fail(widget != NULL); g_return_if_fail(requisition != NULL); g_return_if_fail(GTK_IS_MATH_VIEW(widget)); GtkMathView* math_view = GTK_MATH_VIEW(widget); g_return_if_fail(math_view != NULL); g_return_if_fail(math_view->view != 0); if (BoundingBox box = math_view->view->getBoundingBox()) { requisition->width = Gtk_RenderingContext::toGtkPixels(box.horizontalExtent()); requisition->height = Gtk_RenderingContext::toGtkPixels(box.verticalExtent()); } } static void gtk_math_view_size_allocate(GtkWidget* widget, GtkAllocation* allocation) { g_return_if_fail(widget != NULL); g_return_if_fail(GTK_IS_MATH_VIEW (widget)); g_return_if_fail(allocation != NULL); GtkMathView* math_view = GTK_MATH_VIEW(widget); if (math_view->pixmap != NULL) { g_object_unref(math_view->pixmap); math_view->pixmap = NULL; } widget->allocation = *allocation; if (GTK_WIDGET_REALIZED(widget)) { gdk_window_move_resize(widget->window, allocation->x, allocation->y, allocation->width, allocation->height); //gtk_math_view_paint(math_view); } } static gboolean gtk_math_view_focus_in_event(GtkWidget* widget, GdkEventFocus*) { gtk_math_view_paint(GTK_MATH_VIEW(widget)); return FALSE; } static gboolean gtk_math_view_focus_out_event(GtkWidget* widget, GdkEventFocus*) { gtk_math_view_paint(GTK_MATH_VIEW(widget)); return FALSE; } static gint gtk_math_view_button_press_event(GtkWidget* widget, GdkEventButton* event) { g_return_val_if_fail(widget != NULL, FALSE); g_return_val_if_fail(event != NULL, FALSE); g_return_val_if_fail(GTK_IS_MATH_VIEW(widget), FALSE); GtkMathView* math_view = GTK_MATH_VIEW(widget); g_return_val_if_fail(math_view->view, FALSE); if (event->button == 1) { math_view->select_state = SELECT_STATE_NO; math_view->button_pressed = TRUE; math_view->button_press_x = event->x; math_view->button_press_y = event->y; math_view->button_press_time = event->time; } else if (math_view->select_state == SELECT_STATE_YES) { math_view->select_state = SELECT_STATE_ABORT; g_signal_emit(GTK_OBJECT(math_view), select_abort_signal, 0); } return FALSE; } static gint gtk_math_view_button_release_event(GtkWidget* widget, GdkEventButton* event) { g_return_val_if_fail(widget != NULL, FALSE); g_return_val_if_fail(event != NULL, FALSE); g_return_val_if_fail(GTK_IS_MATH_VIEW(widget), FALSE); GtkMathView* math_view = GTK_MATH_VIEW(widget); g_return_val_if_fail(math_view->view, FALSE); if (event->button == 1) { #if GTKMATHVIEW_USES_GMETADOM GdomeException exc = 0; #endif GtkMathViewModelId elem = NULL; GTKMATHVIEW_METHOD_NAME(get_element_at)(math_view, (gint) event->x, (gint) event->y, &elem, NULL, NULL); GtkMathViewModelEvent me; me.id = elem; me.x = (gint) event->x; me.y = (gint) event->y; me.state = event->state; if (math_view->button_pressed == TRUE && math_view->select_state == SELECT_STATE_NO && fabs(math_view->button_press_x - event->x) <= CLICK_SPACE_RANGE && fabs(math_view->button_press_y - event->y) <= CLICK_SPACE_RANGE && abs(math_view->button_press_time - event->time) <= CLICK_TIME_RANGE) { // the mouse should have not moved more than one pixel in each direction // and the time elapsed from the press event should be no more than 250ms g_signal_emit(GTK_OBJECT(math_view), click_signal, 0, &me); } if (math_view->select_state == SELECT_STATE_YES) g_signal_emit(GTK_OBJECT(math_view), select_end_signal, 0, &me); #if GTKMATHVIEW_USES_GMETADOM if (elem != NULL) { gdome_el_unref(elem, &exc); g_assert(exc == 0); } #endif // GTKMATHVIEW_USES_GMETADOM math_view->button_pressed = FALSE; math_view->select_state = SELECT_STATE_NO; } return FALSE; } static gint gtk_math_view_motion_notify_event(GtkWidget* widget, GdkEventMotion* event) { g_return_val_if_fail(widget != NULL, FALSE); g_return_val_if_fail(event != NULL, FALSE); g_return_val_if_fail(GTK_IS_MATH_VIEW(widget), FALSE); GtkMathView* math_view = GTK_MATH_VIEW(widget); g_return_val_if_fail(math_view->view, FALSE); GdkModifierType mods; gint x = (gint) event->x; gint y = (gint) event->y; // using GDK hints is convenient since this handler is rather heavy // this way we notify GDK when we are ready to process another event if (event->is_hint || (event->window != widget->window)) gdk_window_get_pointer(widget->window, &x, &y, &mods); #if GTKMATHVIEW_USES_GMETADOM GdomeException exc = 0; #endif GtkMathViewModelId elem = NULL; GTKMATHVIEW_METHOD_NAME(get_element_at)(math_view, x, y, &elem, NULL, NULL); GtkMathViewModelEvent me; me.id = elem; me.x = x; me.y = y; me.state = event->state; if (math_view->button_pressed == TRUE && (math_view->select_state == SELECT_STATE_YES || fabs(math_view->button_press_x - x) > CLICK_SPACE_RANGE || fabs(math_view->button_press_y - y) > CLICK_SPACE_RANGE || abs(math_view->button_press_time - event->time) > CLICK_TIME_RANGE)) { if (math_view->select_state == SELECT_STATE_NO) { g_signal_emit(GTK_OBJECT(math_view), select_begin_signal, 0, &me); math_view->select_state = SELECT_STATE_YES; } else if (math_view->select_state == SELECT_STATE_YES && math_view->current_elem != elem) g_signal_emit(GTK_OBJECT(math_view), select_over_signal, 0, &me); } if (math_view->current_elem != elem) { #if GTKMATHVIEW_USES_GMETADOM if (math_view->current_elem != NULL) { gdome_el_unref(math_view->current_elem, &exc); g_assert(exc == 0); } #endif // GTKMATHVIEW_USES_GMETADOM math_view->current_elem = elem; #if GTKMATHVIEW_USES_GMETADOM if (math_view->current_elem != NULL) { gdome_el_ref(math_view->current_elem, &exc); g_assert(exc == 0); } #endif // GTKMATHVIEW_USES_GMETADOM g_signal_emit(GTK_OBJECT(math_view), element_over_signal, 0, &me); } #if GTKMATHVIEW_USES_GMETADOM if (elem != NULL) { gdome_el_unref(elem, &exc); g_assert(exc == 0); } #endif // GTKMATHVIEW_USES_GMETADOM return FALSE; } static gint gtk_math_view_expose_event(GtkWidget* widget, GdkEventExpose* event) { g_return_val_if_fail(widget != NULL, FALSE); g_return_val_if_fail(event != NULL, FALSE); g_return_val_if_fail(GTK_IS_MATH_VIEW(widget), FALSE); GtkMathView* math_view = GTK_MATH_VIEW(widget); // It may be that the first expose event the double-buffer has not // been allocated yet. In this case the paint method should be used if (math_view->pixmap == NULL) gtk_math_view_paint(math_view); else GTKMATHVIEW_METHOD_NAME(update)(math_view, event->area.x, event->area.y, event->area.width, event->area.height); return FALSE; } static void gtk_math_view_click(GtkMathView* math_view, const GtkMathViewModelEvent*) { g_return_if_fail(math_view != NULL); // noop } static void gtk_math_view_select_begin(GtkMathView* math_view, const GtkMathViewModelEvent*) { g_return_if_fail(math_view != NULL); // noop } static void gtk_math_view_select_over(GtkMathView* math_view, const GtkMathViewModelEvent*) { g_return_if_fail(math_view != NULL); // noop } static void gtk_math_view_select_end(GtkMathView* math_view, const GtkMathViewModelEvent*) { g_return_if_fail(math_view != NULL); // noop } static void gtk_math_view_select_abort(GtkMathView* math_view) { g_return_if_fail(math_view != NULL); // noop } static void gtk_math_view_element_over(GtkMathView* math_view, const GtkMathViewModelEvent*) { g_return_if_fail(math_view != NULL); // noop } static void setup_adjustment(GtkAdjustment* adj, gfloat size, gfloat page_size) { g_return_if_fail(adj != NULL); adj->lower = 0.0; adj->page_size = page_size; adj->step_increment = 10; adj->page_increment = page_size; adj->upper = size; if (adj->upper < 0) adj->upper = 0.0; if (adj->value > adj->upper - page_size) { adj->value = std::max(0.0, adj->upper - page_size); gtk_adjustment_value_changed(adj); } gtk_adjustment_changed(adj); } static void setup_adjustments(GtkMathView* math_view) { g_return_if_fail(math_view != NULL); g_return_if_fail(math_view->view); const BoundingBox box = math_view->view->getBoundingBox(); if (math_view->hadjustment != NULL) { const gint page_width = GTK_WIDGET(math_view)->allocation.width; const gint width = box.defined() ? Gtk_RenderingContext::toGtkPixels(box.width) : page_width; if (math_view->top_x > width - page_width) math_view->top_x = std::max(0, width - page_width); setup_adjustment(math_view->hadjustment, width, page_width); } if (math_view->vadjustment != NULL) { const gint page_height = GTK_WIDGET(math_view)->allocation.height; const gint height = box.defined() ? Gtk_RenderingContext::toGtkPixels(box.verticalExtent()) : page_height; if (math_view->top_y > height - page_height) math_view->old_top_y = math_view->top_y = std::max(0, height - page_height); setup_adjustment(math_view->vadjustment, height, page_height); } } #if GTKMATHVIEW_USES_GMETADOM extern "C" gboolean GTKMATHVIEW_METHOD_NAME(load_uri)(GtkMathView* math_view, const gchar* name) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(name != NULL, FALSE); gtk_math_view_release_document_resources(math_view); const bool res = math_view->view->loadURI(name); gtk_math_view_paint(math_view); return res; } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(load_buffer)(GtkMathView* math_view, const gchar* buffer) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(buffer != NULL, FALSE); gtk_math_view_release_document_resources(math_view); const bool res = math_view->view->loadBuffer(buffer); gtk_math_view_paint(math_view); return res; } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(load_document)(GtkMathView* math_view, GdomeDocument* doc) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(doc != NULL, FALSE); gtk_math_view_release_document_resources(math_view); const bool res = math_view->view->loadDocument(DOM::Document(doc)); gtk_math_view_paint(math_view); return res; } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(load_root)(GtkMathView* math_view, GtkMathViewModelId elem) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->view != NULL, FALSE); gtk_math_view_release_document_resources(math_view); const bool res = math_view->view->loadRootElement(DOM::Element(elem)); gtk_math_view_paint(math_view); return res; } extern "C" GdomeDocument* GTKMATHVIEW_METHOD_NAME(get_document)(GtkMathView* math_view) { g_return_val_if_fail(math_view != NULL, NULL); g_return_val_if_fail(math_view->view != NULL, NULL); return reinterpret_cast(math_view->view->getDocument().gdome_object()); } #elif GTKMATHVIEW_USES_LIBXML2 extern "C" gboolean GTKMATHVIEW_METHOD_NAME(load_uri)(GtkMathView* math_view, const gchar* name) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->view != NULL, FALSE); g_return_val_if_fail(name != NULL, FALSE); gtk_math_view_release_document_resources(math_view); const bool res = math_view->view->loadURI(name); gtk_math_view_paint(math_view); return res; } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(load_buffer)(GtkMathView* math_view, const gchar* buffer) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->view != NULL, FALSE); g_return_val_if_fail(buffer != NULL, FALSE); gtk_math_view_release_document_resources(math_view); const bool res = math_view->view->loadBuffer(buffer); gtk_math_view_paint(math_view); return res; } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(load_document)(GtkMathView* math_view, xmlDoc* doc) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->view != NULL, FALSE); g_return_val_if_fail(doc != NULL, FALSE); gtk_math_view_release_document_resources(math_view); const bool res = math_view->view->loadDocument(doc); gtk_math_view_paint(math_view); return res; } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(load_root)(GtkMathView* math_view, GtkMathViewModelId elem) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->view != NULL, FALSE); gtk_math_view_release_document_resources(math_view); const bool res = math_view->view->loadRootElement(elem); gtk_math_view_paint(math_view); return res; } extern "C" xmlDoc* GTKMATHVIEW_METHOD_NAME(get_document)(GtkMathView* math_view) { g_return_val_if_fail(math_view != NULL, NULL); g_return_val_if_fail(math_view->view != NULL, NULL); return math_view->view->getDocument(); } #elif GTKMATHVIEW_USES_CUSTOM_READER extern "C" gboolean GTKMATHVIEW_METHOD_NAME(load_reader)(GtkMathView* math_view, GtkMathViewReader* reader, GtkMathViewReaderData user_data) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->view != NULL, FALSE); g_return_val_if_fail(reader != NULL, FALSE); gtk_math_view_release_document_resources(math_view); const bool res = math_view->view->loadReader(reader, user_data); gtk_math_view_paint(math_view); return res; } #elif GTKMATHVIEW_USES_LIBXML2_READER extern "C" gboolean GTKMATHVIEW_METHOD_NAME(load_reader)(GtkMathView* math_view, xmlTextReaderPtr reader) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->view != NULL, FALSE); g_return_val_if_fail(reader != NULL, FALSE); gtk_math_view_release_document_resources(math_view); const bool res = math_view->view->loadReader(reader); gtk_math_view_paint(math_view); return res; } #endif // GTKMATHVIEW_USES_LIBXML2_READER extern "C" void GTKMATHVIEW_METHOD_NAME(unload)(GtkMathView* math_view) { g_return_if_fail(math_view != NULL); g_return_if_fail(math_view->view != NULL); math_view->view->unload(); gtk_math_view_release_document_resources(math_view); gtk_math_view_paint(math_view); } extern "C" GdkPixmap* GTKMATHVIEW_METHOD_NAME(get_buffer)(GtkMathView* math_view) { g_return_val_if_fail(math_view != NULL, NULL); return math_view->pixmap; } extern "C" void GTKMATHVIEW_METHOD_NAME(set_adjustments)(GtkMathView* math_view, GtkAdjustment* hadj, GtkAdjustment* vadj) { g_return_if_fail(math_view != NULL); g_return_if_fail(GTK_IS_MATH_VIEW(math_view)); #if 0 if (hadj != NULL) g_return_if_fail(GTK_IS_ADJUSTMENT(hadj)); else hadj = GTK_ADJUSTMENT(gtk_adjustment_new(0.0, 0.0, 0.0, 0.0, 0.0, 0.0)); if (vadj != NULL) g_return_if_fail(GTK_IS_ADJUSTMENT(vadj)); else vadj = GTK_ADJUSTMENT(gtk_adjustment_new(0.0, 0.0, 0.0, 0.0, 0.0, 0.0)); #endif if (math_view->hadjustment != hadj) { if (math_view->hadjustment != NULL) { gtk_signal_disconnect_by_data(GTK_OBJECT(math_view->hadjustment), math_view); gtk_object_unref(GTK_OBJECT(math_view->hadjustment)); } math_view->hadjustment = hadj; if (hadj != NULL) { gtk_object_ref(GTK_OBJECT(math_view->hadjustment)); gtk_object_sink(GTK_OBJECT(math_view->hadjustment)); math_view->hsignal = g_signal_connect(GTK_OBJECT(hadj), "value_changed", G_CALLBACK(hadjustment_value_changed), math_view); } } if (math_view->vadjustment != vadj) { if (math_view->vadjustment != NULL) { gtk_signal_disconnect_by_data(GTK_OBJECT(math_view->vadjustment), math_view); gtk_object_unref(GTK_OBJECT(math_view->vadjustment)); } math_view->vadjustment = vadj; if (vadj != NULL) { gtk_object_ref(GTK_OBJECT(math_view->vadjustment)); gtk_object_sink(GTK_OBJECT(math_view->vadjustment)); math_view->vsignal = g_signal_connect(GTK_OBJECT(vadj), "value_changed", G_CALLBACK(vadjustment_value_changed), math_view); } } setup_adjustments(math_view); } extern "C" void GTKMATHVIEW_METHOD_NAME(get_adjustments)(GtkMathView* math_view, GtkAdjustment** hadjustment, GtkAdjustment** vadjustment) { g_return_if_fail(math_view != NULL); if (hadjustment) *hadjustment = math_view->hadjustment; if (vadjustment) *vadjustment = math_view->vadjustment; } extern "C" GtkAdjustment* GTKMATHVIEW_METHOD_NAME(get_vadjustment)(GtkMathView* math_view) { g_return_val_if_fail(math_view != NULL, NULL); return math_view->vadjustment; } extern "C" void GTKMATHVIEW_METHOD_NAME(set_font_size)(GtkMathView* math_view, guint size) { g_return_if_fail(math_view != NULL); g_return_if_fail(math_view->view != NULL); g_return_if_fail(size > 0); math_view->view->setDefaultFontSize(size); gtk_math_view_paint(math_view); } extern "C" guint GTKMATHVIEW_METHOD_NAME(get_font_size)(GtkMathView* math_view) { g_return_val_if_fail(math_view != NULL, 0); g_return_val_if_fail(math_view->view != NULL, 0); return math_view->view->getDefaultFontSize(); } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(structure_changed)(GtkMathView* math_view, GtkMathViewModelId elem) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->view != NULL, FALSE); if (math_view->view->notifyStructureChanged(elem)) { gtk_math_view_paint(math_view); return TRUE; } else return FALSE; } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(attribute_changed)(GtkMathView* math_view, GtkMathViewModelId elem, GtkMathViewModelString name) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->view != NULL, FALSE); if (math_view->view->notifyAttributeChanged(elem, name)) { gtk_math_view_paint(math_view); return TRUE; } else return FALSE; } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(select)(GtkMathView* math_view, GtkMathViewModelId elem) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->view != NULL, FALSE); g_return_val_if_fail(elem != NULL, FALSE); if (SmartPtr area = findGtkWrapperArea(math_view, elem)) { area->setSelected(1); gtk_math_view_paint(math_view); return TRUE; } else return FALSE; } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(unselect)(GtkMathView* math_view, GtkMathViewModelId elem) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->view != NULL, FALSE); g_return_val_if_fail(elem != NULL, FALSE); if (SmartPtr area = findGtkWrapperArea(math_view, elem)) { area->setSelected(0); gtk_math_view_paint(math_view); return TRUE; } else return FALSE; } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(is_selected)(GtkMathView* math_view, GtkMathViewModelId elem) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->view != NULL, FALSE); g_return_val_if_fail(elem != NULL, FALSE); if (SmartPtr area = findGtkWrapperArea(math_view, elem)) return area->getSelected(); else return FALSE; } extern "C" void GTKMATHVIEW_METHOD_NAME(get_size)(GtkMathView* math_view, gint* width, gint* height) { g_return_if_fail(math_view != NULL); if (width) *width = GTK_WIDGET(math_view)->allocation.width; if (height) *height = GTK_WIDGET(math_view)->allocation.height; } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(get_bounding_box)(GtkMathView* math_view, GtkMathViewBoundingBox* result_box) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->view != NULL, FALSE); if (BoundingBox box = math_view->view->getBoundingBox()) { if (result_box) { result_box->width = Gtk_RenderingContext::toGtkPixels(box.width); result_box->height = Gtk_RenderingContext::toGtkPixels(box.height); result_box->depth = Gtk_RenderingContext::toGtkPixels(box.depth); } return TRUE; } else return FALSE; } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(get_element_at)(GtkMathView* math_view, gint x, gint y, GtkMathViewModelId* result, GtkMathViewPoint* result_orig, GtkMathViewBoundingBox* result_box) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->view != NULL, FALSE); Point elemOrig; BoundingBox elemBox; to_view_coords(math_view, &x, &y); if (SmartPtr elem = math_view->view->getElementAt(Gtk_RenderingContext::fromGtkX(x), Gtk_RenderingContext::fromGtkY(y), result_orig ? &elemOrig : 0, result_box ? &elemBox : 0)) if (GtkMathViewModelId el = math_view->view->modelElementOfElement(elem)) { if (result) *result = el; if (result_orig) { result_orig->x = Gtk_RenderingContext::toGtkX(elemOrig.x); result_orig->y = Gtk_RenderingContext::toGtkY(elemOrig.y); from_view_coords(math_view, result_orig); } if (result_box) { result_box->width = Gtk_RenderingContext::toGtkPixels(elemBox.width); result_box->height = Gtk_RenderingContext::toGtkPixels(elemBox.height); result_box->depth = Gtk_RenderingContext::toGtkPixels(elemBox.depth); } return TRUE; } return FALSE; } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(get_element_extents_ref)(GtkMathView* math_view, GtkMathViewModelId refEl, GtkMathViewModelId el, GtkMathViewPoint* result_orig, GtkMathViewBoundingBox* result_box) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->view != NULL, FALSE); g_return_val_if_fail(el != NULL, FALSE); SmartPtr refElem; if (refEl) { refElem = math_view->view->elementOfModelElement(refEl); if (!refElem) return FALSE; } if (SmartPtr elem = math_view->view->elementOfModelElement(el)) { Point elemOrig; BoundingBox elemBox; if ((refElem && math_view->view->getElementExtents(refElem, elem, result_orig ? &elemOrig : 0, result_box ? &elemBox : 0)) || math_view->view->getElementExtents(elem, result_orig ? &elemOrig : 0, result_box ? &elemBox : 0)) { if (result_orig) { result_orig->x = Gtk_RenderingContext::toGtkX(elemOrig.x); result_orig->y = Gtk_RenderingContext::toGtkY(elemOrig.y); from_view_coords(math_view, result_orig); } if (result_box) { result_box->width = Gtk_RenderingContext::toGtkPixels(elemBox.width); result_box->height = Gtk_RenderingContext::toGtkPixels(elemBox.height); result_box->depth = Gtk_RenderingContext::toGtkPixels(elemBox.depth); } return TRUE; } } return FALSE; } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(get_element_extents)(GtkMathView* math_view, GtkMathViewModelId el, GtkMathViewPoint* result_orig, GtkMathViewBoundingBox* result_box) { return GTKMATHVIEW_METHOD_NAME(get_element_extents_ref)(math_view, NULL, el, result_orig, result_box); } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(get_char_at)(GtkMathView* math_view, gint x, gint y, GtkMathViewModelId* result_elem, gint* result_index, GtkMathViewPoint* result_orig, GtkMathViewBoundingBox* result_box) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->view != NULL, FALSE); CharIndex charIndex; Point charOrig; BoundingBox charBox; to_view_coords(math_view, &x, &y); if (SmartPtr elem = math_view->view->getCharAt(Gtk_RenderingContext::fromGtkX(x), Gtk_RenderingContext::fromGtkY(y), charIndex, result_orig ? &charOrig : 0, result_box ? &charBox : 0)) if (GtkMathViewModelId el = math_view->view->modelElementOfElement(elem)) { if (result_elem) *result_elem = el; if (result_index) *result_index = charIndex; if (result_orig) { result_orig->x = Gtk_RenderingContext::toGtkX(charOrig.x); result_orig->y = Gtk_RenderingContext::toGtkY(charOrig.y); from_view_coords(math_view, result_orig); } if (result_box) { result_box->width = Gtk_RenderingContext::toGtkPixels(charBox.width); result_box->height = Gtk_RenderingContext::toGtkPixels(charBox.height); result_box->depth = Gtk_RenderingContext::toGtkPixels(charBox.depth); } return TRUE; } return FALSE; } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(get_char_extents_ref)(GtkMathView* math_view, GtkMathViewModelId refEl, GtkMathViewModelId el, gint index, GtkMathViewPoint* result_orig, GtkMathViewBoundingBox* result_box) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->view != NULL, FALSE); g_return_val_if_fail(el != NULL, FALSE); g_return_val_if_fail(index >= 0, FALSE); SmartPtr refElem; if (refEl) { refElem = math_view->view->elementOfModelElement(refEl); if (!refElem) return FALSE; } if (SmartPtr elem = math_view->view->elementOfModelElement(el)) { Point charOrig; BoundingBox charBox; if ((refElem && math_view->view->getCharExtents(refElem, elem, index, result_orig ? &charOrig : 0, result_box ? &charBox : 0)) || math_view->view->getCharExtents(elem, index, result_orig ? &charOrig : 0, result_box ? &charBox : 0)) { if (result_orig) { result_orig->x = Gtk_RenderingContext::toGtkX(charOrig.x); result_orig->y = Gtk_RenderingContext::toGtkY(charOrig.y); from_view_coords(math_view, result_orig); } if (result_box) { result_box->width = Gtk_RenderingContext::toGtkPixels(charBox.width); result_box->height = Gtk_RenderingContext::toGtkPixels(charBox.height); result_box->depth = Gtk_RenderingContext::toGtkPixels(charBox.depth); } return TRUE; } } return FALSE; } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(get_char_extents)(GtkMathView* math_view, GtkMathViewModelId el, gint index, GtkMathViewPoint* result_orig, GtkMathViewBoundingBox* result_box) { return GTKMATHVIEW_METHOD_NAME(get_char_extents_ref)(math_view, NULL, el, index, result_orig, result_box); } extern "C" void GTKMATHVIEW_METHOD_NAME(get_top)(GtkMathView* math_view, gint* x, gint* y) { g_return_if_fail(math_view != NULL); if (x != NULL) *x = math_view->vadjustment ? Gtk_RenderingContext::toGtkPixels(math_view->hadjustment->value) : 0; if (y != NULL) *y = math_view->hadjustment ? Gtk_RenderingContext::toGtkPixels(math_view->vadjustment->value) : 0; } extern "C" void GTKMATHVIEW_METHOD_NAME(set_top)(GtkMathView* math_view, gint x, gint y) { g_return_if_fail(math_view != NULL); g_return_if_fail(math_view->vadjustment != NULL); g_return_if_fail(math_view->hadjustment != NULL); math_view->hadjustment->value = x; math_view->vadjustment->value = y; gtk_adjustment_value_changed(math_view->hadjustment); gtk_adjustment_value_changed(math_view->vadjustment); } extern "C" void GTKMATHVIEW_METHOD_NAME(set_log_verbosity)(GtkMathView* math_view, gint level) { g_return_if_fail(math_view != NULL); g_return_if_fail(math_view->view != 0); g_return_if_fail(math_view->renderingContext != 0); math_view->view->getLogger()->setLogLevel(LogLevelId(level)); } extern "C" gint GTKMATHVIEW_METHOD_NAME(get_log_verbosity)(GtkMathView* math_view) { g_return_val_if_fail(math_view != NULL, LOG_ERROR); g_return_val_if_fail(math_view->view != 0, LOG_ERROR); return math_view->view->getLogger()->getLogLevel(); } extern "C" void GTKMATHVIEW_METHOD_NAME(set_t1_opaque_mode)(GtkMathView* math_view, gboolean mode) { g_return_if_fail(math_view != NULL); g_return_if_fail(math_view->renderingContext != 0); math_view->renderingContext->setT1OpaqueMode(mode == TRUE); gtk_math_view_paint(math_view); } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(get_t1_opaque_mode)(GtkMathView* math_view) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->renderingContext != 0, FALSE); return math_view->renderingContext->getT1OpaqueMode() ? TRUE : FALSE; } extern "C" void GTKMATHVIEW_METHOD_NAME(set_t1_anti_aliased_mode)(GtkMathView* math_view, gboolean mode) { g_return_if_fail(math_view != NULL); g_return_if_fail(math_view->renderingContext != 0); math_view->renderingContext->setT1AntiAliasedMode(mode == TRUE); gtk_math_view_paint(math_view); } extern "C" gboolean GTKMATHVIEW_METHOD_NAME(get_t1_anti_aliased_mode)(GtkMathView* math_view) { g_return_val_if_fail(math_view != NULL, FALSE); g_return_val_if_fail(math_view->renderingContext != 0, FALSE); return math_view->renderingContext->getT1AntiAliasedMode() ? TRUE : FALSE; } extern "C" void GTKMATHVIEW_METHOD_NAME(add_configuration_path)(const gchar* path) { g_return_if_fail(path != NULL); Configuration::addConfigurationPath(path); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/widget/gtkmathview_libxml2_reader.cc������������������������������������������0000644�0001750�0001750�00000001706�10661271073�020667� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "gtkmathview_libxml2_reader.h" #include "gtkmathview_common.cc" #include "gtkmathview_decorators_common.cc" ����������������������������������������������������������gtkmathview-0.8.0/src/widget/Makefile.am������������������������������������������������������������0000644�0001750�0001750�00000006401�10661271073�015104� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ NULL = if COND_CUSTOM_READER if COND_LIBXML2_READER MAYBE_CUSTOM_READER = libgtkmathview_custom_reader.la else MAYBE_CUSTOM_READER = $(NULL) endif else MAYBE_CUSTOM_READER = $(NULL) endif if COND_LIBXML2_READER MAYBE_LIBXML2_READER = libgtkmathview_libxml2_reader.la else MAYBE_LIBXML2_READER = $(NULL) endif if COND_LIBXML2 MAYBE_LIBXML2 = libgtkmathview_libxml2.la else MAYBE_LIBXML2 = $(NULL) endif if COND_GMETADOM MAYBE_GMETADOM = libgtkmathview_gmetadom.la else MAYBE_GMETADOM = $(NULL) endif lib_LTLIBRARIES = $(MAYBE_CUSTOM_READER) $(MAYBE_LIBXML2_READER) $(MAYBE_LIBXML2) $(MAYBE_GMETADOM) libgtkmathview_custom_reader_la_LIBADD = \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(top_builddir)/src/backend/gtk/libmathview_backend_gtk.la \ $(top_builddir)/src/view/libmathview_frontend_custom_reader.la \ $(NULL) libgtkmathview_libxml2_reader_la_LIBADD = \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(top_builddir)/src/backend/gtk/libmathview_backend_gtk.la \ $(top_builddir)/src/view/libmathview_frontend_libxml2_reader.la \ $(NULL) libgtkmathview_libxml2_la_LIBADD = \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(top_builddir)/src/backend/gtk/libmathview_backend_gtk.la \ $(top_builddir)/src/view/libmathview_frontend_libxml2.la \ $(NULL) libgtkmathview_gmetadom_la_LIBADD = \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(top_builddir)/src/backend/gtk/libmathview_backend_gtk.la \ $(top_builddir)/src/view/libmathview_frontend_gmetadom.la \ $(NULL) libgtkmathview_custom_reader_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ libgtkmathview_libxml2_reader_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ libgtkmathview_libxml2_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ libgtkmathview_gmetadom_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ libgtkmathview_custom_reader_la_SOURCES = gtkmathview_custom_reader.cc libgtkmathview_libxml2_reader_la_SOURCES = gtkmathview_libxml2_reader.cc libgtkmathview_libxml2_la_SOURCES = gtkmathview_libxml2.cc libgtkmathview_gmetadom_la_SOURCES = gtkmathview_gmetadom.cc libgtkmathview_custom_reader_la_CPPFLAGS = -DGMV_Widget_DLL libgtkmathview_libxml2_reader_la_CPPFLAGS = -DGMV_Widget_DLL libgtkmathview_libxml2_la_CPPFLAGS = -DGMV_Widget_DLL libgtkmathview_gmetadom_la_CPPFLAGS = -DGMV_Widget_DLL EXTRA_DIST = \ gtkmathview_common.cc \ gtkmathview_decorators_common.cc \ $(NULL) gtkdir = $(includedir)/$(PACKAGE)/gtk gtk_HEADERS = \ gtkmathview.h \ gtkmathview_decorators.h \ gtkmathview_common.h \ gtkmathview_decorators_common.h \ gtkmathview_custom_reader.h \ gtkmathview_libxml2_reader.h \ gtkmathview_libxml2.h \ gtkmathview_gmetadom.h INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/frontend/custom_reader \ -I$(top_srcdir)/src/frontend/libxml2_reader \ -I$(top_srcdir)/src/frontend/libxml2 \ -I$(top_srcdir)/src/frontend/gmetadom \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ -I$(top_srcdir)/src/backend/gtk \ -I$(top_srcdir)/src/view \ $(GTK_CFLAGS) \ $(DOM_CFLAGS) \ $(XML_CFLAGS) \ $(NULL) ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/widget/gtkmathview_decorators_common.cc���������������������������������������0000644�0001750�0001750�00000012653�10661271073�021514� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include typedef struct _GtkMathViewDefaultCursorDecorator { GtkMathView* math_view; gboolean enabled; gulong handler_id; GtkMathViewModelId element; gint index; gboolean draw_focus; gboolean char_index; } GtkMathViewDefaultCursorDecorator; extern "C" void default_cursor_handler(GtkMathView* math_view, GdkDrawable* drawable, GtkMathViewDefaultCursorDecorator* cursor) { g_return_if_fail(math_view != NULL); g_return_if_fail(drawable != NULL); g_return_if_fail(cursor != NULL); if (cursor->enabled && cursor->element != NULL) { GtkMathViewPoint focus_orig; GtkMathViewBoundingBox focus_box; if (!GTKMATHVIEW_METHOD_NAME(get_element_extents)(math_view, cursor->element, &focus_orig, &focus_box)) return; if (cursor->draw_focus) gtk_paint_focus(GTK_WIDGET(math_view)->style, drawable, GTK_STATE_NORMAL, NULL, GTK_WIDGET(math_view), "?", focus_orig.x, focus_orig.y - focus_box.height, focus_box.width, focus_box.height + focus_box.depth); if (cursor->index >= 0) { GdkRectangle crect; GtkMathViewPoint char_orig; GtkMathViewBoundingBox char_box; if (cursor->char_index && GTKMATHVIEW_METHOD_NAME(get_char_extents)(math_view, cursor->element, cursor->index, &char_orig, &char_box)) crect.x = char_orig.x; else { crect.x = focus_orig.x; if (cursor->index > 0) crect.x += focus_box.width; } crect.y = focus_orig.y - focus_box.height; crect.height = focus_box.height + focus_box.depth; gtk_draw_insertion_cursor(GTK_WIDGET(math_view), drawable, NULL, &crect, TRUE, GTK_TEXT_DIR_LTR, FALSE); } } } extern "C" GtkMathViewDefaultCursorDecorator* GTKMATHVIEW_METHOD_NAME(decor_default_cursor_new)(GtkMathView* math_view) { g_return_val_if_fail(math_view != NULL, FALSE); GtkMathViewDefaultCursorDecorator* cursor = g_new(GtkMathViewDefaultCursorDecorator, 1); g_assert(cursor != NULL); cursor->math_view = math_view; gtk_widget_ref(GTK_WIDGET(math_view)); cursor->enabled = FALSE; cursor->element = 0; cursor->index = -1; cursor->draw_focus = cursor->char_index = FALSE; cursor->handler_id = g_signal_connect(math_view, "decorate_over", G_CALLBACK(default_cursor_handler), (gpointer) cursor); return cursor; } extern "C" void GTKMATHVIEW_METHOD_NAME(decor_default_cursor_free)(GtkMathViewDefaultCursorDecorator* cursor) { g_return_if_fail(cursor != NULL); gtk_widget_unref(GTK_WIDGET(cursor->math_view)); g_signal_handler_disconnect(cursor->math_view, cursor->handler_id); cursor->math_view = NULL; #if GTKMATHVIEW_USES_GMETADOM if (cursor->element) { GdomeException exc = 0; gdome_el_unref(cursor->element, &exc); g_assert(exc == 0); cursor->element = NULL; } #else cursor->element = 0; #endif g_free(cursor); } extern "C" void GTKMATHVIEW_METHOD_NAME(decor_default_cursor_set)(GtkMathViewDefaultCursorDecorator* cursor, gboolean enabled, GtkMathViewModelId elem, gboolean draw_focus, gint index, gboolean char_index) { g_return_if_fail(cursor != NULL); bool need_update = false; if (cursor->enabled != enabled) { cursor->enabled = enabled; need_update = true; } if (cursor->element != elem) { #if GTKMATHVIEW_USES_GMETADOM GdomeException exc = 0; if (cursor->element) { gdome_el_unref(cursor->element, &exc); g_assert(exc == 0); } #endif cursor->element = elem; #if GTKMATHVIEW_USES_GMETADOM if (cursor->element) { gdome_el_ref(cursor->element, &exc); g_assert(exc == 0); } #endif need_update = true; } if (cursor->draw_focus != draw_focus) { cursor->draw_focus = draw_focus; need_update = true; } if (cursor->index != index) { cursor->index = index; need_update = true; } if (cursor->char_index != char_index) { cursor->char_index = char_index; need_update = true; } if (need_update) // should update only the region where the cursor is drawn GTKMATHVIEW_METHOD_NAME(update)(cursor->math_view, NULL); } extern "C" void GTKMATHVIEW_METHOD_NAME(decor_default_cursor_get)(GtkMathViewDefaultCursorDecorator* cursor, gboolean* enabled, GtkMathViewModelId* elem, gboolean* draw_focus, gint* index, gboolean* char_index) { g_return_if_fail(cursor != NULL); if (enabled) *enabled = cursor->enabled; if (elem) *elem = cursor->element; if (draw_focus) *draw_focus = cursor->draw_focus; if (index) *index = cursor->index; if (char_index) *char_index = cursor->char_index; } �������������������������������������������������������������������������������������gtkmathview-0.8.0/src/widget/gtkmathview_decorators_common.h����������������������������������������0000644�0001750�0001750�00000003326�10661271073�021353� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef __gtkmathview_decorators_common_h__ #define __gtkmathview_decorators_common_h__ #include "gtkmathview_common.h" #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ typedef struct _GtkMathViewDefaultCursorDecorator GtkMathViewDefaultCursorDecorator; GtkMathViewDefaultCursorDecorator* GTKMATHVIEW_METHOD_NAME(decor_default_cursor_new)(GtkMathView*); void GTKMATHVIEW_METHOD_NAME(decor_default_cursor_free)(GtkMathViewDefaultCursorDecorator*); void GTKMATHVIEW_METHOD_NAME(decor_default_cursor_set)(GtkMathViewDefaultCursorDecorator*, gboolean, GtkMathViewModelId, gboolean, gint, gboolean); void GTKMATHVIEW_METHOD_NAME(decor_default_cursor_get)(GtkMathViewDefaultCursorDecorator*, gboolean*, GtkMathViewModelId*, gboolean*, gint*, gboolean*); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* __gtkmathview_decorators_common_h__ */ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/widget/gtkmathview_common.h���������������������������������������������������0000644�0001750�0001750�00000015650�10661271073�017131� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef __gtkmathview_common_h__ #define __gtkmathview_common_h__ #include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #define GTK_TYPE_MATH_VIEW (gtk_math_view_get_type()) #define GTK_MATH_VIEW(obj) GTK_CHECK_CAST(obj, GTK_TYPE_MATH_VIEW, GtkMathView) #define GTK_MATH_VIEW_CLASS(klass) GTK_CHECK_CLASS_CAST(klass, GTK_TYPE_MATH_VIEW, GtkMathViewClass) #define GTK_IS_MATH_VIEW(obj) GTK_CHECK_TYPE(obj, GTK_TYPE_MATH_VIEW) typedef GdkPoint GtkMathViewPoint; typedef struct _GtkMathViewBoundingBox { gint width; gint height; gint depth; } GtkMathViewBoundingBox; typedef struct _GtkMathView GtkMathView; typedef struct _GtkMathViewClass GtkMathViewClass; typedef struct _c_customXmlReader GtkMathViewReader; typedef void* GtkMathViewReaderData; #if GTKMATHVIEW_USES_CUSTOM_READER #include "c_customXmlReader.h" #define GTKMATHVIEW_METHOD_NAME(name) gtk_math_view_##name##__##custom_reader typedef void* GtkMathViewModelId; typedef const char* GtkMathViewModelString; #elif GTKMATHVIEW_USES_LIBXML2_READER #include #define GTKMATHVIEW_METHOD_NAME(name) gtk_math_view_##name##__##libxml2_reader typedef void* GtkMathViewModelId; typedef const xmlChar* GtkMathViewModelString; #elif GTKMATHVIEW_USES_LIBXML2 #include #define GTKMATHVIEW_METHOD_NAME(name) gtk_math_view_##name##__##libxml2 typedef xmlElement* GtkMathViewModelId; typedef xmlDoc* GtkMathViewModelDocument; typedef const xmlChar* GtkMathViewModelString; #elif GTKMATHVIEW_USES_GMETADOM #include #define GTKMATHVIEW_METHOD_NAME(name) gtk_math_view_##name##__##gmetadom typedef GdomeElement* GtkMathViewModelId; typedef GdomeDocument* GtkMathViewModelDocument; typedef GdomeDOMString* GtkMathViewModelString; #endif typedef struct _GtkMathViewModelEvent { GtkMathViewModelId id; gint x; gint y; gint state; } GtkMathViewModelEvent; typedef void (*GtkMathViewModelSignal)(GtkMathView*, const GtkMathViewModelEvent*); typedef void (*GtkMathViewSelectAbortSignal)(GtkMathView*); typedef void (*GtkMathViewDecorateSignal)(GtkMathView*, GdkDrawable*, gpointer); GtkType GTKMATHVIEW_METHOD_NAME(get_type)(void); GtkWidget* GTKMATHVIEW_METHOD_NAME(new)(GtkAdjustment*, GtkAdjustment*); gboolean GTKMATHVIEW_METHOD_NAME(freeze)(GtkMathView*); gboolean GTKMATHVIEW_METHOD_NAME(thaw)(GtkMathView*); void GTKMATHVIEW_METHOD_NAME(update)(GtkMathView*, GdkRectangle*); #if GTKMATHVIEW_USES_CUSTOM_READER gboolean GTKMATHVIEW_METHOD_NAME(load_reader)(GtkMathView*, GtkMathViewReader*, GtkMathViewReaderData); #elif GTKMATHVIEW_USES_LIBXML2_READER gboolean GTKMATHVIEW_METHOD_NAME(load_reader)(GtkMathView*, xmlTextReaderPtr); #else gboolean GTKMATHVIEW_METHOD_NAME(load_uri)(GtkMathView*, const gchar*); gboolean GTKMATHVIEW_METHOD_NAME(load_buffer)(GtkMathView*, const gchar*); gboolean GTKMATHVIEW_METHOD_NAME(load_document)(GtkMathView*, GtkMathViewModelDocument); gboolean GTKMATHVIEW_METHOD_NAME(load_root)(GtkMathView*, GtkMathViewModelId); GtkMathViewModelDocument GTKMATHVIEW_METHOD_NAME(get_document)(GtkMathView*); #endif void GTKMATHVIEW_METHOD_NAME(unload)(GtkMathView*); gboolean GTKMATHVIEW_METHOD_NAME(structure_changed)(GtkMathView*, GtkMathViewModelId); gboolean GTKMATHVIEW_METHOD_NAME(attribute_changed)(GtkMathView*, GtkMathViewModelId, GtkMathViewModelString); gboolean GTKMATHVIEW_METHOD_NAME(select)(GtkMathView*, GtkMathViewModelId); gboolean GTKMATHVIEW_METHOD_NAME(unselect)(GtkMathView*, GtkMathViewModelId); gboolean GTKMATHVIEW_METHOD_NAME(is_selected)(GtkMathView*, GtkMathViewModelId); gboolean GTKMATHVIEW_METHOD_NAME(get_bounding_box)(GtkMathView*, GtkMathViewBoundingBox*); gboolean GTKMATHVIEW_METHOD_NAME(get_element_at)(GtkMathView*, gint, gint, GtkMathViewModelId*, GtkMathViewPoint*, GtkMathViewBoundingBox*); gboolean GTKMATHVIEW_METHOD_NAME(get_element_extents)(GtkMathView*, GtkMathViewModelId, GtkMathViewPoint*, GtkMathViewBoundingBox*); gboolean GTKMATHVIEW_METHOD_NAME(get_element_extents_ref)(GtkMathView*, GtkMathViewModelId, GtkMathViewModelId, GtkMathViewPoint*, GtkMathViewBoundingBox*); gboolean GTKMATHVIEW_METHOD_NAME(get_char_at)(GtkMathView*, gint, gint, GtkMathViewModelId*, gint*, GtkMathViewPoint*, GtkMathViewBoundingBox*); gboolean GTKMATHVIEW_METHOD_NAME(get_char_extents)(GtkMathView*, GtkMathViewModelId, gint, GtkMathViewPoint*, GtkMathViewBoundingBox*); gboolean GTKMATHVIEW_METHOD_NAME(get_char_extents_ref)(GtkMathView*, GtkMathViewModelId, GtkMathViewModelId, gint, GtkMathViewPoint*, GtkMathViewBoundingBox*); void GTKMATHVIEW_METHOD_NAME(get_size)(GtkMathView*, gint*, gint*); void GTKMATHVIEW_METHOD_NAME(get_top)(GtkMathView*, gint*, gint*); void GTKMATHVIEW_METHOD_NAME(set_top)(GtkMathView*, gint, gint); void GTKMATHVIEW_METHOD_NAME(set_adjustments)(GtkMathView*, GtkAdjustment*, GtkAdjustment*); void GTKMATHVIEW_METHOD_NAME(get_adjustments)(GtkMathView*, GtkAdjustment**, GtkAdjustment**); GdkPixmap* GTKMATHVIEW_METHOD_NAME(get_buffer)(GtkMathView*); void GTKMATHVIEW_METHOD_NAME(set_font_size)(GtkMathView*, guint); guint GTKMATHVIEW_METHOD_NAME(get_font_size)(GtkMathView*); void GTKMATHVIEW_METHOD_NAME(set_log_verbosity)(GtkMathView*, gint); gint GTKMATHVIEW_METHOD_NAME(get_log_verbosity)(GtkMathView*); gboolean GTKMATHVIEW_METHOD_NAME(get_t1_opaque_mode)(GtkMathView*); void GTKMATHVIEW_METHOD_NAME(set_t1_opaque_mode)(GtkMathView*, gboolean); gboolean GTKMATHVIEW_METHOD_NAME(get_t1_anti_aliased_mode)(GtkMathView*); void GTKMATHVIEW_METHOD_NAME(set_t1_anti_aliased_mode)(GtkMathView*, gboolean); void GTKMATHVIEW_METHOD_NAME(add_configuration_path)(const gchar*); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* __gtkmathview_common_h__ */ ����������������������������������������������������������������������������������������gtkmathview-0.8.0/src/widget/gtkmathview_libxml2.cc�������������������������������������������������0000644�0001750�0001750�00000001676�10661271073�017353� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "gtkmathview_libxml2.h" #include "gtkmathview_common.cc" #include "gtkmathview_decorators_common.cc" ������������������������������������������������������������������gtkmathview-0.8.0/src/widget/gtkmathview_gmetadom.h�������������������������������������������������0000644�0001750�0001750�00000002157�10661271073�017434� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef __gtkmathview_gmetadom_h__ #define __gtkmathview_gmetadom_h__ #define GTKMATHVIEW_USES_GMETADOM 1 #include "gtkmathview_common.h" #include "gtkmathview_decorators_common.h" #include "gtkmathview.h" #include "gtkmathview_decorators.h" #endif /* __gtkmathview_gmetadom_h__ */ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/widget/gtkmathview_libxml2_reader.h�������������������������������������������0000644�0001750�0001750�00000002207�10661271073�020526� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef __gtkmathview_libxml2_reader_h__ #define __gtkmathview_libxml2_reader_h__ #define GTKMATHVIEW_USES_LIBXML2_READER 1 #include "gtkmathview_common.h" #include "gtkmathview_decorators_common.h" #include "gtkmathview.h" #include "gtkmathview_decorators.h" #endif /* __gtkmathview_libxml2_reader_h__ */ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/widget/Makefile.in������������������������������������������������������������0000644�0001750�0001750�00000074227�10704610561�015125� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/widget DIST_COMMON = $(gtk_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(gtkdir)" libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = libgtkmathview_custom_reader_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(top_builddir)/src/backend/gtk/libmathview_backend_gtk.la \ $(top_builddir)/src/view/libmathview_frontend_custom_reader.la \ $(am__DEPENDENCIES_1) am_libgtkmathview_custom_reader_la_OBJECTS = \ libgtkmathview_custom_reader_la-gtkmathview_custom_reader.lo libgtkmathview_custom_reader_la_OBJECTS = \ $(am_libgtkmathview_custom_reader_la_OBJECTS) @COND_CUSTOM_READER_TRUE@@COND_LIBXML2_READER_TRUE@am_libgtkmathview_custom_reader_la_rpath = \ @COND_CUSTOM_READER_TRUE@@COND_LIBXML2_READER_TRUE@ -rpath \ @COND_CUSTOM_READER_TRUE@@COND_LIBXML2_READER_TRUE@ $(libdir) libgtkmathview_gmetadom_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(top_builddir)/src/backend/gtk/libmathview_backend_gtk.la \ $(top_builddir)/src/view/libmathview_frontend_gmetadom.la \ $(am__DEPENDENCIES_1) am_libgtkmathview_gmetadom_la_OBJECTS = \ libgtkmathview_gmetadom_la-gtkmathview_gmetadom.lo libgtkmathview_gmetadom_la_OBJECTS = \ $(am_libgtkmathview_gmetadom_la_OBJECTS) @COND_GMETADOM_TRUE@am_libgtkmathview_gmetadom_la_rpath = -rpath \ @COND_GMETADOM_TRUE@ $(libdir) libgtkmathview_libxml2_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(top_builddir)/src/backend/gtk/libmathview_backend_gtk.la \ $(top_builddir)/src/view/libmathview_frontend_libxml2.la \ $(am__DEPENDENCIES_1) am_libgtkmathview_libxml2_la_OBJECTS = \ libgtkmathview_libxml2_la-gtkmathview_libxml2.lo libgtkmathview_libxml2_la_OBJECTS = \ $(am_libgtkmathview_libxml2_la_OBJECTS) @COND_LIBXML2_TRUE@am_libgtkmathview_libxml2_la_rpath = -rpath \ @COND_LIBXML2_TRUE@ $(libdir) libgtkmathview_libxml2_reader_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(top_builddir)/src/backend/gtk/libmathview_backend_gtk.la \ $(top_builddir)/src/view/libmathview_frontend_libxml2_reader.la \ $(am__DEPENDENCIES_1) am_libgtkmathview_libxml2_reader_la_OBJECTS = libgtkmathview_libxml2_reader_la-gtkmathview_libxml2_reader.lo libgtkmathview_libxml2_reader_la_OBJECTS = \ $(am_libgtkmathview_libxml2_reader_la_OBJECTS) @COND_LIBXML2_READER_TRUE@am_libgtkmathview_libxml2_reader_la_rpath = \ @COND_LIBXML2_READER_TRUE@ -rpath $(libdir) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libgtkmathview_custom_reader_la_SOURCES) \ $(libgtkmathview_gmetadom_la_SOURCES) \ $(libgtkmathview_libxml2_la_SOURCES) \ $(libgtkmathview_libxml2_reader_la_SOURCES) DIST_SOURCES = $(libgtkmathview_custom_reader_la_SOURCES) \ $(libgtkmathview_gmetadom_la_SOURCES) \ $(libgtkmathview_libxml2_la_SOURCES) \ $(libgtkmathview_libxml2_reader_la_SOURCES) gtkHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(gtk_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = @COND_CUSTOM_READER_FALSE@MAYBE_CUSTOM_READER = $(NULL) @COND_CUSTOM_READER_TRUE@@COND_LIBXML2_READER_FALSE@MAYBE_CUSTOM_READER = $(NULL) @COND_CUSTOM_READER_TRUE@@COND_LIBXML2_READER_TRUE@MAYBE_CUSTOM_READER = libgtkmathview_custom_reader.la @COND_LIBXML2_READER_FALSE@MAYBE_LIBXML2_READER = $(NULL) @COND_LIBXML2_READER_TRUE@MAYBE_LIBXML2_READER = libgtkmathview_libxml2_reader.la @COND_LIBXML2_FALSE@MAYBE_LIBXML2 = $(NULL) @COND_LIBXML2_TRUE@MAYBE_LIBXML2 = libgtkmathview_libxml2.la @COND_GMETADOM_FALSE@MAYBE_GMETADOM = $(NULL) @COND_GMETADOM_TRUE@MAYBE_GMETADOM = libgtkmathview_gmetadom.la lib_LTLIBRARIES = $(MAYBE_CUSTOM_READER) $(MAYBE_LIBXML2_READER) $(MAYBE_LIBXML2) $(MAYBE_GMETADOM) libgtkmathview_custom_reader_la_LIBADD = \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(top_builddir)/src/backend/gtk/libmathview_backend_gtk.la \ $(top_builddir)/src/view/libmathview_frontend_custom_reader.la \ $(NULL) libgtkmathview_libxml2_reader_la_LIBADD = \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(top_builddir)/src/backend/gtk/libmathview_backend_gtk.la \ $(top_builddir)/src/view/libmathview_frontend_libxml2_reader.la \ $(NULL) libgtkmathview_libxml2_la_LIBADD = \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(top_builddir)/src/backend/gtk/libmathview_backend_gtk.la \ $(top_builddir)/src/view/libmathview_frontend_libxml2.la \ $(NULL) libgtkmathview_gmetadom_la_LIBADD = \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(top_builddir)/src/backend/gtk/libmathview_backend_gtk.la \ $(top_builddir)/src/view/libmathview_frontend_gmetadom.la \ $(NULL) libgtkmathview_custom_reader_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ libgtkmathview_libxml2_reader_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ libgtkmathview_libxml2_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ libgtkmathview_gmetadom_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ libgtkmathview_custom_reader_la_SOURCES = gtkmathview_custom_reader.cc libgtkmathview_libxml2_reader_la_SOURCES = gtkmathview_libxml2_reader.cc libgtkmathview_libxml2_la_SOURCES = gtkmathview_libxml2.cc libgtkmathview_gmetadom_la_SOURCES = gtkmathview_gmetadom.cc libgtkmathview_custom_reader_la_CPPFLAGS = -DGMV_Widget_DLL libgtkmathview_libxml2_reader_la_CPPFLAGS = -DGMV_Widget_DLL libgtkmathview_libxml2_la_CPPFLAGS = -DGMV_Widget_DLL libgtkmathview_gmetadom_la_CPPFLAGS = -DGMV_Widget_DLL EXTRA_DIST = \ gtkmathview_common.cc \ gtkmathview_decorators_common.cc \ $(NULL) gtkdir = $(includedir)/$(PACKAGE)/gtk gtk_HEADERS = \ gtkmathview.h \ gtkmathview_decorators.h \ gtkmathview_common.h \ gtkmathview_decorators_common.h \ gtkmathview_custom_reader.h \ gtkmathview_libxml2_reader.h \ gtkmathview_libxml2.h \ gtkmathview_gmetadom.h INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/frontend/custom_reader \ -I$(top_srcdir)/src/frontend/libxml2_reader \ -I$(top_srcdir)/src/frontend/libxml2 \ -I$(top_srcdir)/src/frontend/gmetadom \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ -I$(top_srcdir)/src/backend/gtk \ -I$(top_srcdir)/src/view \ $(GTK_CFLAGS) \ $(DOM_CFLAGS) \ $(XML_CFLAGS) \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/widget/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/widget/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ else :; fi; \ done uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libgtkmathview_custom_reader.la: $(libgtkmathview_custom_reader_la_OBJECTS) $(libgtkmathview_custom_reader_la_DEPENDENCIES) $(CXXLINK) $(am_libgtkmathview_custom_reader_la_rpath) $(libgtkmathview_custom_reader_la_LDFLAGS) $(libgtkmathview_custom_reader_la_OBJECTS) $(libgtkmathview_custom_reader_la_LIBADD) $(LIBS) libgtkmathview_gmetadom.la: $(libgtkmathview_gmetadom_la_OBJECTS) $(libgtkmathview_gmetadom_la_DEPENDENCIES) $(CXXLINK) $(am_libgtkmathview_gmetadom_la_rpath) $(libgtkmathview_gmetadom_la_LDFLAGS) $(libgtkmathview_gmetadom_la_OBJECTS) $(libgtkmathview_gmetadom_la_LIBADD) $(LIBS) libgtkmathview_libxml2.la: $(libgtkmathview_libxml2_la_OBJECTS) $(libgtkmathview_libxml2_la_DEPENDENCIES) $(CXXLINK) $(am_libgtkmathview_libxml2_la_rpath) $(libgtkmathview_libxml2_la_LDFLAGS) $(libgtkmathview_libxml2_la_OBJECTS) $(libgtkmathview_libxml2_la_LIBADD) $(LIBS) libgtkmathview_libxml2_reader.la: $(libgtkmathview_libxml2_reader_la_OBJECTS) $(libgtkmathview_libxml2_reader_la_DEPENDENCIES) $(CXXLINK) $(am_libgtkmathview_libxml2_reader_la_rpath) $(libgtkmathview_libxml2_reader_la_LDFLAGS) $(libgtkmathview_libxml2_reader_la_OBJECTS) $(libgtkmathview_libxml2_reader_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgtkmathview_custom_reader_la-gtkmathview_custom_reader.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgtkmathview_gmetadom_la-gtkmathview_gmetadom.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgtkmathview_libxml2_la-gtkmathview_libxml2.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgtkmathview_libxml2_reader_la-gtkmathview_libxml2_reader.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libgtkmathview_custom_reader_la-gtkmathview_custom_reader.lo: gtkmathview_custom_reader.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgtkmathview_custom_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgtkmathview_custom_reader_la-gtkmathview_custom_reader.lo -MD -MP -MF "$(DEPDIR)/libgtkmathview_custom_reader_la-gtkmathview_custom_reader.Tpo" -c -o libgtkmathview_custom_reader_la-gtkmathview_custom_reader.lo `test -f 'gtkmathview_custom_reader.cc' || echo '$(srcdir)/'`gtkmathview_custom_reader.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libgtkmathview_custom_reader_la-gtkmathview_custom_reader.Tpo" "$(DEPDIR)/libgtkmathview_custom_reader_la-gtkmathview_custom_reader.Plo"; else rm -f "$(DEPDIR)/libgtkmathview_custom_reader_la-gtkmathview_custom_reader.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='gtkmathview_custom_reader.cc' object='libgtkmathview_custom_reader_la-gtkmathview_custom_reader.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgtkmathview_custom_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgtkmathview_custom_reader_la-gtkmathview_custom_reader.lo `test -f 'gtkmathview_custom_reader.cc' || echo '$(srcdir)/'`gtkmathview_custom_reader.cc libgtkmathview_gmetadom_la-gtkmathview_gmetadom.lo: gtkmathview_gmetadom.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgtkmathview_gmetadom_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgtkmathview_gmetadom_la-gtkmathview_gmetadom.lo -MD -MP -MF "$(DEPDIR)/libgtkmathview_gmetadom_la-gtkmathview_gmetadom.Tpo" -c -o libgtkmathview_gmetadom_la-gtkmathview_gmetadom.lo `test -f 'gtkmathview_gmetadom.cc' || echo '$(srcdir)/'`gtkmathview_gmetadom.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libgtkmathview_gmetadom_la-gtkmathview_gmetadom.Tpo" "$(DEPDIR)/libgtkmathview_gmetadom_la-gtkmathview_gmetadom.Plo"; else rm -f "$(DEPDIR)/libgtkmathview_gmetadom_la-gtkmathview_gmetadom.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='gtkmathview_gmetadom.cc' object='libgtkmathview_gmetadom_la-gtkmathview_gmetadom.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgtkmathview_gmetadom_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgtkmathview_gmetadom_la-gtkmathview_gmetadom.lo `test -f 'gtkmathview_gmetadom.cc' || echo '$(srcdir)/'`gtkmathview_gmetadom.cc libgtkmathview_libxml2_la-gtkmathview_libxml2.lo: gtkmathview_libxml2.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgtkmathview_libxml2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgtkmathview_libxml2_la-gtkmathview_libxml2.lo -MD -MP -MF "$(DEPDIR)/libgtkmathview_libxml2_la-gtkmathview_libxml2.Tpo" -c -o libgtkmathview_libxml2_la-gtkmathview_libxml2.lo `test -f 'gtkmathview_libxml2.cc' || echo '$(srcdir)/'`gtkmathview_libxml2.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libgtkmathview_libxml2_la-gtkmathview_libxml2.Tpo" "$(DEPDIR)/libgtkmathview_libxml2_la-gtkmathview_libxml2.Plo"; else rm -f "$(DEPDIR)/libgtkmathview_libxml2_la-gtkmathview_libxml2.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='gtkmathview_libxml2.cc' object='libgtkmathview_libxml2_la-gtkmathview_libxml2.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgtkmathview_libxml2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgtkmathview_libxml2_la-gtkmathview_libxml2.lo `test -f 'gtkmathview_libxml2.cc' || echo '$(srcdir)/'`gtkmathview_libxml2.cc libgtkmathview_libxml2_reader_la-gtkmathview_libxml2_reader.lo: gtkmathview_libxml2_reader.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgtkmathview_libxml2_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgtkmathview_libxml2_reader_la-gtkmathview_libxml2_reader.lo -MD -MP -MF "$(DEPDIR)/libgtkmathview_libxml2_reader_la-gtkmathview_libxml2_reader.Tpo" -c -o libgtkmathview_libxml2_reader_la-gtkmathview_libxml2_reader.lo `test -f 'gtkmathview_libxml2_reader.cc' || echo '$(srcdir)/'`gtkmathview_libxml2_reader.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libgtkmathview_libxml2_reader_la-gtkmathview_libxml2_reader.Tpo" "$(DEPDIR)/libgtkmathview_libxml2_reader_la-gtkmathview_libxml2_reader.Plo"; else rm -f "$(DEPDIR)/libgtkmathview_libxml2_reader_la-gtkmathview_libxml2_reader.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='gtkmathview_libxml2_reader.cc' object='libgtkmathview_libxml2_reader_la-gtkmathview_libxml2_reader.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgtkmathview_libxml2_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgtkmathview_libxml2_reader_la-gtkmathview_libxml2_reader.lo `test -f 'gtkmathview_libxml2_reader.cc' || echo '$(srcdir)/'`gtkmathview_libxml2_reader.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-gtkHEADERS: $(gtk_HEADERS) @$(NORMAL_INSTALL) test -z "$(gtkdir)" || $(mkdir_p) "$(DESTDIR)$(gtkdir)" @list='$(gtk_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(gtkHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(gtkdir)/$$f'"; \ $(gtkHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(gtkdir)/$$f"; \ done uninstall-gtkHEADERS: @$(NORMAL_UNINSTALL) @list='$(gtk_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(gtkdir)/$$f'"; \ rm -f "$(DESTDIR)$(gtkdir)/$$f"; \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(gtkdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-gtkHEADERS install-exec-am: install-libLTLIBRARIES install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-gtkHEADERS uninstall-info-am \ uninstall-libLTLIBRARIES .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-gtkHEADERS install-info \ install-info-am install-libLTLIBRARIES install-man \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-gtkHEADERS uninstall-info-am \ uninstall-libLTLIBRARIES # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/widget/gtkmathview_libxml2.h��������������������������������������������������0000644�0001750�0001750�00000002153�10661271073�017204� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef __gtkmathview_libxml2_h__ #define __gtkmathview_libxml2_h__ #define GTKMATHVIEW_USES_LIBXML2 1 #include "gtkmathview_common.h" #include "gtkmathview_decorators_common.h" #include "gtkmathview.h" #include "gtkmathview_decorators.h" #endif /* __gtkmathview_libxml2_h__ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/���������������������������������������������������������������������0000777�0001750�0001750�00000000000�10704625471�013472� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/libxml2_reader/������������������������������������������������������0000777�0001750�0001750�00000000000�10704625471�016365� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/libxml2_reader/libxmlXmlReader.hh������������������������������������0000644�0001750�0001750�00000005042�10661271072�021712� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __libxmlXmlReader_hh__ #define __libxmlXmlReader_hh__ #include #include "Object.hh" #include "SmartPtr.hh" #include "String.hh" class libxmlXmlReader : public Object { protected: libxmlXmlReader(xmlTextReaderPtr r); virtual ~libxmlXmlReader(); public: enum { TEXT_NODE = XML_TEXT_NODE, ELEMENT_NODE = XML_ELEMENT_NODE }; static SmartPtr create(xmlTextReaderPtr r) { return new libxmlXmlReader(r); } static SmartPtr create(const String& path, bool subst = false) { if (xmlTextReaderPtr reader = xmlNewTextReaderFilename(path.c_str())) { int err; do err = xmlTextReaderRead(reader); while (err == 1 && xmlTextReaderNodeType(reader) != ELEMENT_NODE); return (err == 1) ? new libxmlXmlReader(reader) : 0; } else return 0; } bool more(void) const; int getNodeType(void) const; String getNodeName(void) const; String getNodeValue(void) const; String getNodeNamespaceURI(void) const; size_t getNodeId(void) const { return 0; } int getAttributeCount(void) const; void getAttribute(int, String&, String&, String&) const; String getAttribute(const String&) const; bool hasAttribute(const String&) const; void reset(void); void moveToFirstChild(void); void moveToNextSibling(void); void moveToParentNode(void); protected: bool valid(void) const { return fresh && error == 1; } static String fromReaderString(const xmlChar* str) { return reinterpret_cast(str); } static const xmlChar* toReaderString(const String& str) { return BAD_CAST(str.c_str()); } private: xmlTextReaderPtr reader; bool fresh; int error; int depth; }; #endif // __libxmlXmlReader_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/libxml2_reader/libxml2_reader_Model.hh�������������������������������0000644�0001750�0001750�00000002200�10661271072�022623� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __libxml2_reader_Model_hh__ #define __libxml2_reader_Model_hh__ #include "TemplateReaderModel.hh" #include "libxmlXmlReader.hh" struct libxml2_reader_Model : public TemplateReaderModel { typedef class libxml2_reader_Builder Builder; }; #endif // __libxml2_reader_Model_hh__ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/libxml2_reader/libxml2_reader_Builder.cc�����������������������������0000644�0001750�0001750�00000002373�10661271072�023152� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "Attribute.hh" #include "TemplateBuilder.hh" #include "libxml2_reader_Model.hh" #include "libxml2_reader_Builder.hh" #include "TemplateReaderRefinementContext.hh" typedef TemplateBuilder > BUILDER; SmartPtr libxml2_reader_Builder::create() { return BUILDER::create(); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/libxml2_reader/libxmlXmlReader.cc������������������������������������0000644�0001750�0001750�00000007565�10661271072�021714� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "libxmlXmlReader.hh" libxmlXmlReader::libxmlXmlReader(xmlTextReaderPtr r) : reader(r), fresh(true), error(1), depth(xmlTextReaderDepth(r)) { assert(reader); } libxmlXmlReader::~libxmlXmlReader() { xmlFreeTextReader(reader); } bool libxmlXmlReader::more() const { return valid() && depth == xmlTextReaderDepth(reader); } int libxmlXmlReader::getNodeType() const { assert(valid()); return xmlTextReaderNodeType(reader); } String libxmlXmlReader::getNodeName() const { assert(valid()); if (const xmlChar* localName = xmlTextReaderConstLocalName(reader)) return fromReaderString(localName); else return fromReaderString(xmlTextReaderConstName(reader)); } String libxmlXmlReader::getNodeValue() const { assert(valid()); return fromReaderString(xmlTextReaderConstValue(reader)); } String libxmlXmlReader::getNodeNamespaceURI() const { assert(valid()); return fromReaderString(xmlTextReaderConstNamespaceUri(reader)); } int libxmlXmlReader::getAttributeCount() const { assert(valid()); return xmlTextReaderAttributeCount(reader); } void libxmlXmlReader::getAttribute(int index, String& namespaceURI, String& name, String& value) const { assert(valid()); int res = xmlTextReaderMoveToAttributeNo(reader, index); assert(res == 1); if (const xmlChar* ns = xmlTextReaderConstNamespaceUri(reader)) namespaceURI = fromReaderString(ns); else namespaceURI.clear(); name = fromReaderString(xmlTextReaderConstName(reader)); value = fromReaderString(xmlTextReaderConstValue(reader)); xmlTextReaderMoveToElement(reader); } String libxmlXmlReader::getAttribute(const String& name) const { assert(valid()); if (xmlTextReaderMoveToAttribute(reader, toReaderString(name.c_str()))) { String res = fromReaderString(xmlTextReaderConstValue(reader)); xmlTextReaderMoveToElement(reader); return res; } else return String(); } bool libxmlXmlReader::hasAttribute(const String& name) const { assert(valid()); if (xmlTextReaderMoveToAttribute(reader, toReaderString(name.c_str()))) { xmlTextReaderMoveToElement(reader); return true; } else return false; } void libxmlXmlReader::reset() { // currently there is no way to reset a libxml text reader // so this method just seeks the element node (assuming // that it's called only once) while (valid() && xmlTextReaderNodeType(reader) != XML_ELEMENT_NODE) error = xmlTextReaderRead(reader); } void libxmlXmlReader::moveToFirstChild() { assert(valid()); assert(xmlTextReaderNodeType(reader) == XML_ELEMENT_NODE); if (!xmlTextReaderIsEmptyElement(reader)) error = xmlTextReaderRead(reader); depth++; } void libxmlXmlReader::moveToNextSibling() { assert(depth == xmlTextReaderDepth(reader)); do error = xmlTextReaderRead(reader); while (error == 1 && xmlTextReaderDepth(reader) > depth); fresh = true; } void libxmlXmlReader::moveToParentNode() { depth--; while (xmlTextReaderDepth(reader) > depth && error == 1) xmlTextReaderRead(reader); fresh = false; } �������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/libxml2_reader/libxml2_reader_Setup.cc�������������������������������0000644�0001750�0001750�00000003177�10661271072�022667� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "libxml2_reader_Setup.hh" #include "libxml2_reader_Model.hh" #include "TemplateSetup.hh" bool libxml2_reader_Setup::loadOperatorDictionary(const class AbstractLogger& logger, MathMLOperatorDictionary& dictionary, const String& path) { return TemplateSetup::load(logger, dictionary, "operator dictionary", "dictionary", path); } bool libxml2_reader_Setup::loadConfiguration(const class AbstractLogger& logger, Configuration& conf, const String& path) { return TemplateSetup::load(logger, conf, "configuration", "math-engine-configuration", path); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/libxml2_reader/libxml2_reader_Setup.hh�������������������������������0000644�0001750�0001750�00000002315�10661271072�022672� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __libxml2_reader_Setup_hh__ #define __libxml2_reader_Setup_hh__ #include "String.hh" struct libxml2_reader_Setup { static bool loadConfiguration(const class AbstractLogger&, class Configuration&, const String&); static bool loadOperatorDictionary(const class AbstractLogger&, class MathMLOperatorDictionary&, const String&); }; #endif // __libxml2_reader_Setup_hh__ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/libxml2_reader/Makefile.am�������������������������������������������0000644�0001750�0001750�00000001463�10661271072�020335� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ NULL = noinst_LTLIBRARIES = libfrontend_libxml2_reader.la libfrontend_libxml2_reader_la_CPPFLAGS = -DGMV_FrontEnd_DLL libfrontend_libxml2_reader_la_LIBADD = \ $(XML_LIBS) \ $(NULL) libfrontend_libxml2_reader_la_SOURCES = \ libxmlXmlReader.cc \ libxml2_reader_Builder.cc \ libxml2_reader_Setup.cc \ $(NULL) noinst_HEADERS = \ libxmlXmlReader.hh \ libxml2_reader_Model.hh \ libxml2_reader_Builder.hh \ libxml2_reader_Setup.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/engine/adapters \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/backend/common \ $(XML_CFLAGS) \ $(NULL) �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/libxml2_reader/libxml2_reader_Builder.hh�����������������������������0000644�0001750�0001750�00000002756�10661271072�023171� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __libxml2_reader_Builder_hh__ #define __libxml2_reader_Builder_hh__ #include "libxmlXmlReader.hh" #include "TemplateReaderBuilder.hh" #include "String.hh" #include "Element.hh" class libxml2_reader_Builder : public TemplateReaderBuilder { protected: libxml2_reader_Builder(void) { } virtual ~libxml2_reader_Builder() { } public: static SmartPtr create(void); protected: SmartPtr linkerAssoc(const SmartPtr&) const { return 0; } void linkerAdd(const SmartPtr&, Element*) const { } void linkerRemove(Element*) const { } }; #endif // __libxml2_reader_Builder_hh__ ������������������gtkmathview-0.8.0/src/frontend/libxml2_reader/Makefile.in�������������������������������������������0000644�0001750�0001750�00000052033�10704610557�020350� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/frontend/libxml2_reader DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) am__DEPENDENCIES_1 = libfrontend_libxml2_reader_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) am__objects_1 = am_libfrontend_libxml2_reader_la_OBJECTS = \ libfrontend_libxml2_reader_la-libxmlXmlReader.lo \ libfrontend_libxml2_reader_la-libxml2_reader_Builder.lo \ libfrontend_libxml2_reader_la-libxml2_reader_Setup.lo \ $(am__objects_1) libfrontend_libxml2_reader_la_OBJECTS = \ $(am_libfrontend_libxml2_reader_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libfrontend_libxml2_reader_la_SOURCES) DIST_SOURCES = $(libfrontend_libxml2_reader_la_SOURCES) HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = noinst_LTLIBRARIES = libfrontend_libxml2_reader.la libfrontend_libxml2_reader_la_CPPFLAGS = -DGMV_FrontEnd_DLL libfrontend_libxml2_reader_la_LIBADD = \ $(XML_LIBS) \ $(NULL) libfrontend_libxml2_reader_la_SOURCES = \ libxmlXmlReader.cc \ libxml2_reader_Builder.cc \ libxml2_reader_Setup.cc \ $(NULL) noinst_HEADERS = \ libxmlXmlReader.hh \ libxml2_reader_Model.hh \ libxml2_reader_Builder.hh \ libxml2_reader_Setup.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/engine/adapters \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/backend/common \ $(XML_CFLAGS) \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/frontend/libxml2_reader/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/frontend/libxml2_reader/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libfrontend_libxml2_reader.la: $(libfrontend_libxml2_reader_la_OBJECTS) $(libfrontend_libxml2_reader_la_DEPENDENCIES) $(CXXLINK) $(libfrontend_libxml2_reader_la_LDFLAGS) $(libfrontend_libxml2_reader_la_OBJECTS) $(libfrontend_libxml2_reader_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfrontend_libxml2_reader_la-libxml2_reader_Builder.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfrontend_libxml2_reader_la-libxml2_reader_Setup.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfrontend_libxml2_reader_la-libxmlXmlReader.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libfrontend_libxml2_reader_la-libxmlXmlReader.lo: libxmlXmlReader.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_libxml2_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libfrontend_libxml2_reader_la-libxmlXmlReader.lo -MD -MP -MF "$(DEPDIR)/libfrontend_libxml2_reader_la-libxmlXmlReader.Tpo" -c -o libfrontend_libxml2_reader_la-libxmlXmlReader.lo `test -f 'libxmlXmlReader.cc' || echo '$(srcdir)/'`libxmlXmlReader.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libfrontend_libxml2_reader_la-libxmlXmlReader.Tpo" "$(DEPDIR)/libfrontend_libxml2_reader_la-libxmlXmlReader.Plo"; else rm -f "$(DEPDIR)/libfrontend_libxml2_reader_la-libxmlXmlReader.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='libxmlXmlReader.cc' object='libfrontend_libxml2_reader_la-libxmlXmlReader.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_libxml2_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libfrontend_libxml2_reader_la-libxmlXmlReader.lo `test -f 'libxmlXmlReader.cc' || echo '$(srcdir)/'`libxmlXmlReader.cc libfrontend_libxml2_reader_la-libxml2_reader_Builder.lo: libxml2_reader_Builder.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_libxml2_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libfrontend_libxml2_reader_la-libxml2_reader_Builder.lo -MD -MP -MF "$(DEPDIR)/libfrontend_libxml2_reader_la-libxml2_reader_Builder.Tpo" -c -o libfrontend_libxml2_reader_la-libxml2_reader_Builder.lo `test -f 'libxml2_reader_Builder.cc' || echo '$(srcdir)/'`libxml2_reader_Builder.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libfrontend_libxml2_reader_la-libxml2_reader_Builder.Tpo" "$(DEPDIR)/libfrontend_libxml2_reader_la-libxml2_reader_Builder.Plo"; else rm -f "$(DEPDIR)/libfrontend_libxml2_reader_la-libxml2_reader_Builder.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='libxml2_reader_Builder.cc' object='libfrontend_libxml2_reader_la-libxml2_reader_Builder.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_libxml2_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libfrontend_libxml2_reader_la-libxml2_reader_Builder.lo `test -f 'libxml2_reader_Builder.cc' || echo '$(srcdir)/'`libxml2_reader_Builder.cc libfrontend_libxml2_reader_la-libxml2_reader_Setup.lo: libxml2_reader_Setup.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_libxml2_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libfrontend_libxml2_reader_la-libxml2_reader_Setup.lo -MD -MP -MF "$(DEPDIR)/libfrontend_libxml2_reader_la-libxml2_reader_Setup.Tpo" -c -o libfrontend_libxml2_reader_la-libxml2_reader_Setup.lo `test -f 'libxml2_reader_Setup.cc' || echo '$(srcdir)/'`libxml2_reader_Setup.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libfrontend_libxml2_reader_la-libxml2_reader_Setup.Tpo" "$(DEPDIR)/libfrontend_libxml2_reader_la-libxml2_reader_Setup.Plo"; else rm -f "$(DEPDIR)/libfrontend_libxml2_reader_la-libxml2_reader_Setup.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='libxml2_reader_Setup.cc' object='libfrontend_libxml2_reader_la-libxml2_reader_Setup.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_libxml2_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libfrontend_libxml2_reader_la-libxml2_reader_Setup.lo `test -f 'libxml2_reader_Setup.cc' || echo '$(srcdir)/'`libxml2_reader_Setup.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/custom_reader/�������������������������������������������������������0000777�0001750�0001750�00000000000�10704625471�016326� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/custom_reader/customXmlReader.cc�������������������������������������0000644�0001750�0001750�00000003312�10661271072�021662� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "customXmlReader.hh" customXmlReader::customXmlReader(const c_customXmlReader* r, c_customModelUserData data) : reader(r), user_data(data) { assert(reader); } customXmlReader::~customXmlReader() { (*reader->free_data)(user_data); reader = 0; user_data = 0; } String customXmlReader::fromReaderString(char* str) const { if (str) { String res(str); (*reader->free_string)(str); return res; } else return String(); } void customXmlReader::getAttribute(int index, String& namespaceURI, String& name, String& value) const { char* c_namespaceURI; char* c_name; char* c_value; (*reader->get_attribute_by_index)(user_data, index, &c_namespaceURI, &c_name, &c_value); namespaceURI = fromReaderString(c_namespaceURI); name = fromReaderString(c_name); value = fromReaderString(c_value); } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/custom_reader/customXmlReader.hh�������������������������������������0000644�0001750�0001750�00000005336�10661271072�021704� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __customXmlReader_hh__ #define __customXmlReader_hh__ #include "c_customXmlReader.h" #include "Object.hh" #include "SmartPtr.hh" #include "String.hh" class customXmlReader : public Object { protected: customXmlReader(const c_customXmlReader*, c_customModelUserData); virtual ~customXmlReader(); public: enum { TEXT_NODE = C_CUSTOM_TEXT_NODE, ELEMENT_NODE = C_CUSTOM_ELEMENT_NODE }; static SmartPtr create(const c_customXmlReader* r, c_customModelUserData data) { return new customXmlReader(r, data); } bool more(void) const { return (*reader->more)(user_data); } int getNodeType(void) const { return (*reader->get_node_type)(user_data); } String getNodeName(void) const { return fromReaderString((*reader->get_node_name)(user_data)); } String getNodeValue(void) const { return fromReaderString((*reader->get_node_value)(user_data)); } String getNodeNamespaceURI(void) const { return fromReaderString((*reader->get_node_namespace_uri)(user_data)); } void* getNodeId(void) const { return (*reader->get_node_id)(user_data); } int getAttributeCount(void) const { return (*reader->get_attribute_count)(user_data); } void getAttribute(int index, String&, String&, String&) const; String getAttribute(const String& name) const { return fromReaderString((*reader->get_attribute)(user_data, name.c_str())); } bool hasAttribute(const String& name) const { return (*reader->has_attribute)(user_data, name.c_str()); } void reset(void) { (*reader->reset)(user_data); } void moveToFirstChild(void) { (*reader->move_to_first_child)(user_data); } void moveToNextSibling(void) { (*reader->move_to_next_sibling)(user_data); } void moveToParentNode(void) { (*reader->move_to_parent_node)(user_data); } protected: String fromReaderString(char*) const; private: const c_customXmlReader* reader; c_customModelUserData user_data; }; #endif // __customXmlReader_hh__ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/custom_reader/custom_reader_Model.hh���������������������������������0000644�0001750�0001750�00000002466�10661271072�022543� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __custom_reader_Model_hh__ #define __custom_reader_Model_hh__ #include "TemplateReaderModel.hh" #include "customXmlReader.hh" struct custom_reader_Model : public TemplateReaderModel { // MUST be available if the default linker is used struct Hash { size_t operator()(void* id) const { assert(id); assert(sizeof(size_t) == sizeof(void*)); return reinterpret_cast(id); } }; }; #endif // __custom_reader_Model_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/custom_reader/c_customXmlReader.h������������������������������������0000644�0001750�0001750�00000004135�10661271072�022032� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef __c_customXmlReader_h__ #define __c_customXmlReader_h__ #include "gmv_defines.h" enum { C_CUSTOM_TEXT_NODE = 1, C_CUSTOM_ELEMENT_NODE }; typedef void* c_customModelElementId; typedef void* c_customModelUserData; struct GMV_FrontEnd_EXPORT _c_customXmlReader { /* auxiliary methods */ void (*free_data)(c_customModelUserData); void (*free_string)(char*); /* query methods */ int (*more)(c_customModelUserData); int (*get_node_type)(c_customModelUserData); char* (*get_node_name)(c_customModelUserData); char* (*get_node_namespace_uri)(c_customModelUserData); char* (*get_node_value)(c_customModelUserData); void* (*get_node_id)(c_customModelUserData); int (*get_attribute_count)(c_customModelUserData); void (*get_attribute_by_index)(c_customModelUserData, int, char**, char**, char**); char* (*get_attribute)(c_customModelUserData, const char*); int (*has_attribute)(c_customModelUserData, const char*); /* state methods */ int (*reset)(c_customModelUserData); void (*move_to_first_child)(c_customModelUserData); void (*move_to_next_sibling)(c_customModelUserData); void (*move_to_parent_node)(c_customModelUserData); }; typedef struct _c_customXmlReader c_customXmlReader; #endif // __c_customXmlReader_h__ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/custom_reader/Makefile.am��������������������������������������������0000644�0001750�0001750�00000001457�10613606741�020303� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ NULL = noinst_LTLIBRARIES = libfrontend_custom_reader.la libfrontend_custom_reader_la_CPPFLAGS = -DGMV_FrontEnd_DLL libfrontend_custom_reader_la_LIBADD = $(NULL) libfrontend_custom_reader_la_SOURCES = \ customXmlReader.cc \ custom_reader_Builder.cc \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ c_customXmlReader.h \ $(NULL) noinst_HEADERS = \ customXmlReader.hh \ custom_reader_Model.hh \ custom_reader_Builder.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/engine/adapters \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/backend/common \ $(NULL) �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/custom_reader/custom_reader_Builder.hh�������������������������������0000644�0001750�0001750�00000004174�10661271072�023067� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __custom_reader_Builder_hh__ #define __custom_reader_Builder_hh__ #include "customXmlReader.hh" #include "TemplateReaderBuilder.hh" #include "TemplateLinker.hh" #include "custom_reader_Model.hh" #include "String.hh" #include "Element.hh" class custom_reader_Builder : public TemplateReaderBuilder { protected: custom_reader_Builder(void) { } virtual ~custom_reader_Builder() { } public: static SmartPtr create(void); SmartPtr findElement(void* p) const { return linker.assoc(p); } void* findSelfOrAncestorModelElement(const SmartPtr&) const; SmartPtr findSelfOrAncestorElement(void* p) const { return findElement(p); } bool notifyStructureChanged(void*); bool notifyAttributeChanged(void*, const char*); protected: SmartPtr linkerAssoc(const SmartPtr& reader) const { if (void* id = reader->getNodeId()) return linker.assoc(id); else return 0; } void linkerAdd(const SmartPtr& reader, Element* elem) const { if (void* id = reader->getNodeId()) linker.add(id, elem); } void linkerRemove(Element* elem) const { linker.remove(elem); } private: mutable TemplateLinker linker; }; #endif // __custom_reader_Builder_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/custom_reader/Makefile.in��������������������������������������������0000644�0001750�0001750�00000051151�10704610555�020307� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/frontend/custom_reader DIST_COMMON = $(mathview_HEADERS) $(noinst_HEADERS) \ $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) am__DEPENDENCIES_1 = libfrontend_custom_reader_la_DEPENDENCIES = $(am__DEPENDENCIES_1) am__objects_1 = am_libfrontend_custom_reader_la_OBJECTS = \ libfrontend_custom_reader_la-customXmlReader.lo \ libfrontend_custom_reader_la-custom_reader_Builder.lo \ $(am__objects_1) libfrontend_custom_reader_la_OBJECTS = \ $(am_libfrontend_custom_reader_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libfrontend_custom_reader_la_SOURCES) DIST_SOURCES = $(libfrontend_custom_reader_la_SOURCES) am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(mathviewdir)" mathviewHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(mathview_HEADERS) $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = noinst_LTLIBRARIES = libfrontend_custom_reader.la libfrontend_custom_reader_la_CPPFLAGS = -DGMV_FrontEnd_DLL libfrontend_custom_reader_la_LIBADD = $(NULL) libfrontend_custom_reader_la_SOURCES = \ customXmlReader.cc \ custom_reader_Builder.cc \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ c_customXmlReader.h \ $(NULL) noinst_HEADERS = \ customXmlReader.hh \ custom_reader_Model.hh \ custom_reader_Builder.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/engine/adapters \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/backend/common \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/frontend/custom_reader/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/frontend/custom_reader/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libfrontend_custom_reader.la: $(libfrontend_custom_reader_la_OBJECTS) $(libfrontend_custom_reader_la_DEPENDENCIES) $(CXXLINK) $(libfrontend_custom_reader_la_LDFLAGS) $(libfrontend_custom_reader_la_OBJECTS) $(libfrontend_custom_reader_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfrontend_custom_reader_la-customXmlReader.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfrontend_custom_reader_la-custom_reader_Builder.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libfrontend_custom_reader_la-customXmlReader.lo: customXmlReader.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_custom_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libfrontend_custom_reader_la-customXmlReader.lo -MD -MP -MF "$(DEPDIR)/libfrontend_custom_reader_la-customXmlReader.Tpo" -c -o libfrontend_custom_reader_la-customXmlReader.lo `test -f 'customXmlReader.cc' || echo '$(srcdir)/'`customXmlReader.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libfrontend_custom_reader_la-customXmlReader.Tpo" "$(DEPDIR)/libfrontend_custom_reader_la-customXmlReader.Plo"; else rm -f "$(DEPDIR)/libfrontend_custom_reader_la-customXmlReader.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='customXmlReader.cc' object='libfrontend_custom_reader_la-customXmlReader.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_custom_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libfrontend_custom_reader_la-customXmlReader.lo `test -f 'customXmlReader.cc' || echo '$(srcdir)/'`customXmlReader.cc libfrontend_custom_reader_la-custom_reader_Builder.lo: custom_reader_Builder.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_custom_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libfrontend_custom_reader_la-custom_reader_Builder.lo -MD -MP -MF "$(DEPDIR)/libfrontend_custom_reader_la-custom_reader_Builder.Tpo" -c -o libfrontend_custom_reader_la-custom_reader_Builder.lo `test -f 'custom_reader_Builder.cc' || echo '$(srcdir)/'`custom_reader_Builder.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libfrontend_custom_reader_la-custom_reader_Builder.Tpo" "$(DEPDIR)/libfrontend_custom_reader_la-custom_reader_Builder.Plo"; else rm -f "$(DEPDIR)/libfrontend_custom_reader_la-custom_reader_Builder.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='custom_reader_Builder.cc' object='libfrontend_custom_reader_la-custom_reader_Builder.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_custom_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libfrontend_custom_reader_la-custom_reader_Builder.lo `test -f 'custom_reader_Builder.cc' || echo '$(srcdir)/'`custom_reader_Builder.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-mathviewHEADERS: $(mathview_HEADERS) @$(NORMAL_INSTALL) test -z "$(mathviewdir)" || $(mkdir_p) "$(DESTDIR)$(mathviewdir)" @list='$(mathview_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(mathviewHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(mathviewdir)/$$f'"; \ $(mathviewHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(mathviewdir)/$$f"; \ done uninstall-mathviewHEADERS: @$(NORMAL_UNINSTALL) @list='$(mathview_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(mathviewdir)/$$f'"; \ rm -f "$(DESTDIR)$(mathviewdir)/$$f"; \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(mathviewdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-mathviewHEADERS install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-mathviewHEADERS .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-mathviewHEADERS install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-info-am \ uninstall-mathviewHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/custom_reader/custom_reader_Builder.cc�������������������������������0000644�0001750�0001750�00000003635�10661271072�023056� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "Attribute.hh" #include "TemplateBuilder.hh" #include "custom_reader_Model.hh" #include "custom_reader_Builder.hh" #include "TemplateReaderRefinementContext.hh" typedef TemplateBuilder > BUILDER; SmartPtr custom_reader_Builder::create() { return BUILDER::create(); } void* custom_reader_Builder::findSelfOrAncestorModelElement(const SmartPtr& elem) const { for (SmartPtr p(elem); p; p = p->getParent()) if (void* id = linker.assoc(p)) return id; return 0; } bool custom_reader_Builder::notifyStructureChanged(void* id) { if (SmartPtr elem = linker.assoc(id)) { elem->setDirtyStructure(); elem->setDirtyAttributeD(); return true; } else return false; } bool custom_reader_Builder::notifyAttributeChanged(void* id, const char*) { if (SmartPtr elem = linker.assoc(id)) { elem->setDirtyAttribute(); return true; } else return false; } ���������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/libxml2/�������������������������������������������������������������0000777�0001750�0001750�00000000000�10704625471�015043� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/libxml2/libxml2_Builder.hh�������������������������������������������0000644�0001750�0001750�00000003772�10661271072�020324� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __libxml2_Builder_hh__ #define __libxml2_Builder_hh__ #include "libxml2_Model.hh" #include "TemplateLinker.hh" #include "Builder.hh" #include "String.hh" #include "Element.hh" class libxml2_Builder : public Builder { protected: libxml2_Builder(void) : root(0) { } virtual ~libxml2_Builder(); public: static SmartPtr create(void); void setRootModelElement(xmlElement*); xmlElement* getRootModelElement(void) const { return root; } SmartPtr findElement(xmlElement* p) const { return linker.assoc(p); } xmlElement* findSelfOrAncestorModelElement(const SmartPtr&) const; SmartPtr findSelfOrAncestorElement(xmlElement*) const; bool notifyStructureChanged(xmlElement*); bool notifyAttributeChanged(xmlElement*, const xmlChar*); protected: // methods for accessing the linker SmartPtr linkerAssoc(xmlElement* el) const { return linker.assoc(el); } void linkerAdd(xmlElement* el, Element* elem) const { linker.add(el, elem); } void linkerRemove(Element* elem) const { linker.remove(elem); } private: mutable TemplateLinker linker; xmlElement* root; }; #endif // __libxml2_Builder_hh__ ������gtkmathview-0.8.0/src/frontend/libxml2/libxml2_Builder.cc�������������������������������������������0000644�0001750�0001750�00000004412�10661271072�020302� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "libxml2_Builder.hh" #include "libxml2_Model.hh" #include "TemplateBuilder.hh" #include "TemplateRefinementContext.hh" libxml2_Builder::~libxml2_Builder() { setRootModelElement(0); } SmartPtr libxml2_Builder::create() { return TemplateBuilder >::create(); } SmartPtr libxml2_Builder::findSelfOrAncestorElement(xmlElement* el) const { for (xmlNode* p = libxml2_Model::asNode(el); p; p = p->parent) if (SmartPtr elem = linker.assoc(libxml2_Model::asElement(p))) return elem; return 0; } xmlElement* libxml2_Builder::findSelfOrAncestorModelElement(const SmartPtr& elem) const { for (SmartPtr p(elem); p; p = p->getParent()) if (xmlElement* el = linker.assoc(p)) return el; return 0; } void libxml2_Builder::setRootModelElement(xmlElement* el) { root = el; } bool libxml2_Builder::notifyStructureChanged(xmlElement* target) { if (SmartPtr elem = findSelfOrAncestorElement(target)) { elem->setDirtyStructure(); elem->setDirtyAttributeD(); return true; } else return false; } bool libxml2_Builder::notifyAttributeChanged(xmlElement* target, const xmlChar*) { if (SmartPtr elem = findSelfOrAncestorElement(target)) { elem->setDirtyAttribute(); return true; } else return false; } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/libxml2/libxml2_Setup.cc���������������������������������������������0000644�0001750�0001750�00000003053�10661271072�020014� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "libxml2_Setup.hh" #include "libxml2_Model.hh" #include "TemplateSetup.hh" bool libxml2_Setup::loadOperatorDictionary(const class AbstractLogger& logger, MathMLOperatorDictionary& dictionary, const String& path) { return TemplateSetup::load(logger, dictionary, "operator dictionary", "dictionary", path); } bool libxml2_Setup::loadConfiguration(const class AbstractLogger& logger, Configuration& conf, const String& path) { return TemplateSetup::load(logger, conf, "configuration", "math-engine-configuration", path); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/libxml2/libxml2_Setup.hh���������������������������������������������0000644�0001750�0001750�00000002261�10661271072�020026� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __libxml2_Setup_hh__ #define __libxml2_Setup_hh__ #include "String.hh" struct libxml2_Setup { static bool loadConfiguration(const class AbstractLogger&, class Configuration&, const String&); static bool loadOperatorDictionary(const class AbstractLogger&, class MathMLOperatorDictionary&, const String&); }; #endif // __libxml2_Setup_hh__ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/libxml2/libxml2_Model.hh���������������������������������������������0000644�0001750�0001750�00000006402�10661271072�017767� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __libxml2_Model_hh__ #define __libxml2_Model_hh__ #include #include #include "String.hh" #include "TemplateNodeIterator.hh" #include "TemplateElementIterator.hh" struct GMV_FrontEnd_EXPORT libxml2_Model { enum { TEXT_NODE = XML_TEXT_NODE, ELEMENT_NODE = XML_ELEMENT_NODE }; typedef xmlNode* Node; typedef xmlElement* Element; typedef xmlDoc* Document; typedef TemplateNodeIterator NodeIterator; typedef TemplateElementIterator ElementIterator; // method for parsing a model // MUST be available static xmlDoc* document(const class AbstractLogger&, const String&, bool = false); static xmlDoc* documentFromBuffer(const class AbstractLogger&, const String&, bool = false); static Element getDocumentElement(const Document&); // methods for casting an element to a node and viceversa static Node asNode(const Element& el) { return (Node) el; } static Element asElement(const Node& n) { return (n && n->type == XML_ELEMENT_NODE) ? (xmlElement*) n : 0; } // methods for querying nodes // MUST be available for TemplateBuilder and TemplateSetup to work static unsigned getNodeType(const Node& n) { return n->type; } static String getNodeName(const Node&); static String getNodeValue(const Node&); static String getNodeNamespaceURI(const Node&); // methods for querying elements // MUST be available for TemplateBuilder and TemplateSetup to work static String getElementValue(const Element&); static String getAttribute(const Element&, const String&); // MUST be implemented if the default RefinementContext is used static bool hasAttribute(const Element&, const String&); // methods for navigating the model // must be available if the default iterators are used static Node getNextSibling(const Node& n) { return n->next; } static Node getFirstChild(const Node& n) { return n->children; } // auxiliary conversion functions from/to libxml2 strings static String fromModelString(const xmlChar* str) { return reinterpret_cast(str); } static const xmlChar* toModelString(const String& str) { return BAD_CAST(str.c_str()); } // MUST be available if the default linker is used struct Hash { size_t operator()(xmlElement* el) const { assert(el); assert(sizeof(size_t) == sizeof(xmlElement*)); return reinterpret_cast(el); } }; }; #endif // __libxml2_Model_hh__ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/libxml2/libxml2_Model.cc���������������������������������������������0000644�0001750�0001750�00000005266�10661271072�017764� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "Clock.hh" #include "AbstractLogger.hh" #include "libxml2_Model.hh" #include xmlDoc* libxml2_Model::document(const AbstractLogger& logger, const String& path, bool) { Clock perf; perf.Start(); xmlDoc* doc = xmlParseFile(path.c_str()); perf.Stop(); logger.out(LOG_INFO, "parsing time: %dms", perf()); return doc; } xmlDoc* libxml2_Model::documentFromBuffer(const AbstractLogger& logger, const String& buffer, bool) { Clock perf; perf.Start(); xmlDoc* doc = xmlReadDoc(toModelString(buffer.c_str()), NULL, NULL, 0); perf.Stop(); logger.out(LOG_INFO, "parsing time: %dms", perf()); return doc; } xmlElement* libxml2_Model::getDocumentElement(const Document& doc) { assert(doc); return reinterpret_cast(xmlDocGetRootElement(doc)); } String libxml2_Model::getAttribute(const Element& el, const String& name) { assert(el); if (xmlChar* res = xmlGetProp((xmlNode*) el, toModelString(name))) { String _res(fromModelString(res)); xmlFree(res); return _res; } else return String(); } String libxml2_Model::getNodeName(const Node& n) { assert(n); assert(n->name); return fromModelString(n->name); } String libxml2_Model::getNodeValue(const Node& n) { assert(n); if (xmlChar* res = xmlNodeGetContent(n)) { String _res(fromModelString(res)); xmlFree(res); return _res; } else return String(); } String libxml2_Model::getElementValue(const Element& el) { return getNodeValue(asNode(el)); } String libxml2_Model::getNodeNamespaceURI(const Node& n) { assert(n); if (n->ns) { assert(n->ns->href); return fromModelString(n->ns->href); } else return String(); } bool libxml2_Model::hasAttribute(const Element& el, const String& name) { assert(el); return xmlHasProp((xmlNode*) el, toModelString(name)); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/libxml2/Makefile.am��������������������������������������������������0000644�0001750�0001750�00000001405�10661271072�017007� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ NULL = noinst_LTLIBRARIES = libfrontend_libxml2.la libfrontend_libxml2_la_CPPFLAGS = -DGMV_FrontEnd_DLL libfrontend_libxml2_la_LIBADD = \ $(XML_LIBS) \ $(NULL) libfrontend_libxml2_la_SOURCES = \ libxml2_Model.cc \ libxml2_Setup.cc \ libxml2_Builder.cc \ libxml2_Setup.hh \ libxml2_Builder.hh \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ libxml2_Model.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/engine/adapters \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/backend/common \ $(XML_CFLAGS) \ $(NULL) �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/libxml2/Makefile.in��������������������������������������������������0000644�0001750�0001750�00000053556�10704610557�017041� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/frontend/libxml2 DIST_COMMON = $(mathview_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) am__DEPENDENCIES_1 = libfrontend_libxml2_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) am__objects_1 = am_libfrontend_libxml2_la_OBJECTS = \ libfrontend_libxml2_la-libxml2_Model.lo \ libfrontend_libxml2_la-libxml2_Setup.lo \ libfrontend_libxml2_la-libxml2_Builder.lo $(am__objects_1) libfrontend_libxml2_la_OBJECTS = $(am_libfrontend_libxml2_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libfrontend_libxml2_la_SOURCES) DIST_SOURCES = $(libfrontend_libxml2_la_SOURCES) am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(mathviewdir)" mathviewHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(mathview_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = noinst_LTLIBRARIES = libfrontend_libxml2.la libfrontend_libxml2_la_CPPFLAGS = -DGMV_FrontEnd_DLL libfrontend_libxml2_la_LIBADD = \ $(XML_LIBS) \ $(NULL) libfrontend_libxml2_la_SOURCES = \ libxml2_Model.cc \ libxml2_Setup.cc \ libxml2_Builder.cc \ libxml2_Setup.hh \ libxml2_Builder.hh \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ libxml2_Model.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/engine/adapters \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/backend/common \ $(XML_CFLAGS) \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/frontend/libxml2/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/frontend/libxml2/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libfrontend_libxml2.la: $(libfrontend_libxml2_la_OBJECTS) $(libfrontend_libxml2_la_DEPENDENCIES) $(CXXLINK) $(libfrontend_libxml2_la_LDFLAGS) $(libfrontend_libxml2_la_OBJECTS) $(libfrontend_libxml2_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfrontend_libxml2_la-libxml2_Builder.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfrontend_libxml2_la-libxml2_Model.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfrontend_libxml2_la-libxml2_Setup.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libfrontend_libxml2_la-libxml2_Model.lo: libxml2_Model.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_libxml2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libfrontend_libxml2_la-libxml2_Model.lo -MD -MP -MF "$(DEPDIR)/libfrontend_libxml2_la-libxml2_Model.Tpo" -c -o libfrontend_libxml2_la-libxml2_Model.lo `test -f 'libxml2_Model.cc' || echo '$(srcdir)/'`libxml2_Model.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libfrontend_libxml2_la-libxml2_Model.Tpo" "$(DEPDIR)/libfrontend_libxml2_la-libxml2_Model.Plo"; else rm -f "$(DEPDIR)/libfrontend_libxml2_la-libxml2_Model.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='libxml2_Model.cc' object='libfrontend_libxml2_la-libxml2_Model.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_libxml2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libfrontend_libxml2_la-libxml2_Model.lo `test -f 'libxml2_Model.cc' || echo '$(srcdir)/'`libxml2_Model.cc libfrontend_libxml2_la-libxml2_Setup.lo: libxml2_Setup.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_libxml2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libfrontend_libxml2_la-libxml2_Setup.lo -MD -MP -MF "$(DEPDIR)/libfrontend_libxml2_la-libxml2_Setup.Tpo" -c -o libfrontend_libxml2_la-libxml2_Setup.lo `test -f 'libxml2_Setup.cc' || echo '$(srcdir)/'`libxml2_Setup.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libfrontend_libxml2_la-libxml2_Setup.Tpo" "$(DEPDIR)/libfrontend_libxml2_la-libxml2_Setup.Plo"; else rm -f "$(DEPDIR)/libfrontend_libxml2_la-libxml2_Setup.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='libxml2_Setup.cc' object='libfrontend_libxml2_la-libxml2_Setup.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_libxml2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libfrontend_libxml2_la-libxml2_Setup.lo `test -f 'libxml2_Setup.cc' || echo '$(srcdir)/'`libxml2_Setup.cc libfrontend_libxml2_la-libxml2_Builder.lo: libxml2_Builder.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_libxml2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libfrontend_libxml2_la-libxml2_Builder.lo -MD -MP -MF "$(DEPDIR)/libfrontend_libxml2_la-libxml2_Builder.Tpo" -c -o libfrontend_libxml2_la-libxml2_Builder.lo `test -f 'libxml2_Builder.cc' || echo '$(srcdir)/'`libxml2_Builder.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libfrontend_libxml2_la-libxml2_Builder.Tpo" "$(DEPDIR)/libfrontend_libxml2_la-libxml2_Builder.Plo"; else rm -f "$(DEPDIR)/libfrontend_libxml2_la-libxml2_Builder.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='libxml2_Builder.cc' object='libfrontend_libxml2_la-libxml2_Builder.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_libxml2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libfrontend_libxml2_la-libxml2_Builder.lo `test -f 'libxml2_Builder.cc' || echo '$(srcdir)/'`libxml2_Builder.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-mathviewHEADERS: $(mathview_HEADERS) @$(NORMAL_INSTALL) test -z "$(mathviewdir)" || $(mkdir_p) "$(DESTDIR)$(mathviewdir)" @list='$(mathview_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(mathviewHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(mathviewdir)/$$f'"; \ $(mathviewHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(mathviewdir)/$$f"; \ done uninstall-mathviewHEADERS: @$(NORMAL_UNINSTALL) @list='$(mathview_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(mathviewdir)/$$f'"; \ rm -f "$(DESTDIR)$(mathviewdir)/$$f"; \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(mathviewdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-mathviewHEADERS install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-mathviewHEADERS .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-mathviewHEADERS install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-info-am \ uninstall-mathviewHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ��������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/gmetadom/������������������������������������������������������������0000777�0001750�0001750�00000000000�10704625471�015267� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/gmetadom/MathMLEntitiesTable.hh��������������������������������������0000644�0001750�0001750�00000002055�10661271072�021321� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __EntitiesTable_hh__ #define __EntitiesTable_hh__ #if defined(HAVE_GMETADOM) #include const GdomeEntitiesTableEntry* getMathMLEntities(void); #endif // HAVE_GMETADOM #endif // __EntitiesTable_hh__ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/gmetadom/gmetadom_Builder.cc�����������������������������������������0000644�0001750�0001750�00000010313�10661271072�020747� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "gmetadom_Builder.hh" #include "gmetadom_Model.hh" #include "TemplateBuilder.hh" #include "TemplateRefinementContext.hh" gmetadom_Builder::~gmetadom_Builder() { setRootModelElement(DOM::Element()); } typedef TemplateBuilder > BUILDER; SmartPtr gmetadom_Builder::create() { return BUILDER::create(); } SmartPtr gmetadom_Builder::findSelfOrAncestorElement(const DOM::Element& el) const { for (DOM::Element p = el; p; p = p.get_parentNode()) if (SmartPtr elem = linker.assoc(p)) return elem; return 0; } DOM::Element gmetadom_Builder::findSelfOrAncestorModelElement(const SmartPtr& elem) const { for (SmartPtr p(elem); p; p = p->getParent()) if (DOM::Element el = linker.assoc(p)) return el; return DOM::Element(); } bool gmetadom_Builder::notifyStructureChanged(const DOM::Element& target) { if (SmartPtr elem = findSelfOrAncestorElement(target)) { elem->setDirtyStructure(); elem->setDirtyAttributeD(); return true; } else return false; } bool gmetadom_Builder::notifyAttributeChanged(const DOM::Element& target, const DOM::GdomeString&) { if (SmartPtr elem = findSelfOrAncestorElement(target)) { elem->setDirtyAttribute(); return true; } else return false; } void gmetadom_Builder::DOMSubtreeModifiedListener::handleEvent(const DOM::Event& ev) { DOM::MutationEvent me(ev); assert(me); //std::cerr << "gmetadom_Builder::DOMSubtreeModifiedListener::handleEvent" << std::endl; builder->notifyStructureChanged(DOM::Node(me.get_target())); } void gmetadom_Builder::DOMAttrModifiedListener::handleEvent(const DOM::Event& ev) { DOM::MutationEvent me(ev); assert(me); //std::cerr << "gmetadom_Builder::DOMAttrModifiedListener::handleEvent " << DOM::Node(me.get_target()).get_nodeName() << std::endl; builder->notifyAttributeChanged(DOM::Node(me.get_target()), me.get_newValue()); } void gmetadom_Builder::setRootModelElement(const DOM::Element& el) { if (root == el) return; if (root) { DOM::EventTarget et(root); assert(et); et.removeEventListener("DOMNodeInserted", *subtreeModifiedListener, false); et.removeEventListener("DOMNodeRemoved", *subtreeModifiedListener, false); et.removeEventListener("DOMCharacterDataModified", *subtreeModifiedListener, false); et.removeEventListener("DOMAttrModified", *attrModifiedListener, false); delete subtreeModifiedListener; delete attrModifiedListener; subtreeModifiedListener = 0; attrModifiedListener = 0; } root = el; if (root) { DOM::EventTarget et(root); assert(et); subtreeModifiedListener = new DOMSubtreeModifiedListener(this); attrModifiedListener = new DOMAttrModifiedListener(this); et.addEventListener("DOMNodeInserted", *subtreeModifiedListener, false); et.addEventListener("DOMNodeRemoved", *subtreeModifiedListener, false); et.addEventListener("DOMCharacterDataModified", *subtreeModifiedListener, false); et.addEventListener("DOMAttrModified", *attrModifiedListener, false); } } void gmetadom_Builder::linkerAdd(const DOM::Element& el, Element* elem) const { linker.add(el, elem); } void gmetadom_Builder::linkerRemove(Element* elem) const { linker.remove(elem); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/gmetadom/gmetadom.hh�������������������������������������������������0000644�0001750�0001750�00000001730�10661271072�017316� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __gmetadom_hh__ #define __gmetadom_hh__ #include namespace DOM = GdomeSmartDOM; #endif // __gmetadom_hh__ ����������������������������������������gtkmathview-0.8.0/src/frontend/gmetadom/gmetadom_Setup.hh�������������������������������������������0000644�0001750�0001750�00000002265�10661271072�020502� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __gmetadom_Setup_hh__ #define __gmetadom_Setup_hh__ #include "String.hh" struct gmetadom_Setup { static bool loadConfiguration(const class AbstractLogger&, class Configuration&, const String&); static bool loadOperatorDictionary(const class AbstractLogger&, class MathMLOperatorDictionary&, const String&); }; #endif // __gmetadom_Setup_hh__ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/gmetadom/gmetadom_Model.hh�������������������������������������������0000644�0001750�0001750�00000006366�10661271072�020450� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __gmetadom_Model_hh__ #define __gmetadom_Model_hh__ #include #include #include "String.hh" #include "TemplateNodeIterator.hh" #include "TemplateElementIterator.hh" namespace DOM = GdomeSmartDOM; struct GMV_FrontEnd_EXPORT gmetadom_Model { enum { TEXT_NODE = DOM::Node::TEXT_NODE, ELEMENT_NODE = DOM::Node::ELEMENT_NODE }; typedef DOM::Node Node; typedef DOM::Element Element; typedef DOM::Document Document; typedef TemplateNodeIterator NodeIterator; typedef TemplateElementIterator ElementIterator; // method for parsing a model // MUST be available static DOM::Document document(const class AbstractLogger&, const String&, bool = false); static DOM::Document documentFromBuffer(const class AbstractLogger&, const String&, bool = false); // conversion methods static DOM::Element asNode(const DOM::Element& el) { return el; } static DOM::Node asElement(const DOM::Node& n) { return n; } // method for retrieving the root element of a document static DOM::Element getDocumentElement(const DOM::Document& doc) { return doc.get_documentElement(); } // methods for querying nodes and elements // MUST be available for TemplateBuilder and TemplateSetup to work static String getAttribute(const DOM::Element& el, const String& name) { return el.getAttribute(name); } static unsigned getNodeType(const DOM::Node& n) { return n.get_nodeType(); } static String getNodeName(const DOM::Node&); static String getNodeValue(const DOM::Node& n) { return n.get_nodeValue(); } static String getElementValue(const DOM::Element&); static String getNodeNamespaceURI(const DOM::Node& n) { if (DOM::GdomeString ns = n.get_namespaceURI()) return ns; else return String(); } // MUST be implemented if the default RefinementContext is used static bool hasAttribute(const DOM::Element& el, const String& name) { return el.hasAttribute(name); } // methods for navigating the model // must be available if the default iterators are used static DOM::Node getNextSibling(const DOM::Node& n) { return n.get_nextSibling(); } static DOM::Node getFirstChild(const DOM::Node& n) { return n.get_firstChild(); } // MUST be available if the default linker is used struct Hash { size_t operator()(const DOM::Element& el) const { assert(el); return reinterpret_cast(el.id()); } }; }; #endif // __gmetadom_Model_hh__ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/gmetadom/gmetadom_Builder.hh�����������������������������������������0000644�0001750�0001750�00000005372�10661271072�020772� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __gmetadom_Builder_hh__ #define __gmetadom_Builder_hh__ #include "gmetadom.hh" #include "gmetadom_Model.hh" #include "Builder.hh" #include "String.hh" #include "WeakPtr.hh" #include "TemplateLinker.hh" class gmetadom_Builder : public Builder { protected: gmetadom_Builder(void) { } virtual ~gmetadom_Builder(); public: static SmartPtr create(void); void setRootModelElement(const DOM::Element&); DOM::Element getRootModelElement(void) const { return root; } SmartPtr findElement(const DOM::Element& p) const { return linker.assoc(p); } DOM::Element findSelfOrAncestorModelElement(const SmartPtr&) const; SmartPtr findSelfOrAncestorElement(const DOM::Element&) const; bool notifyStructureChanged(const DOM::Element&); bool notifyAttributeChanged(const DOM::Element&, const DOM::GdomeString&); protected: // methods for accessing the linker SmartPtr linkerAssoc(const DOM::Element& el) const { return linker.assoc(el); } void linkerAdd(const DOM::Element& el, Element* elem) const; void linkerRemove(Element* elem) const; class DOMSubtreeModifiedListener : public DOM::EventListener { public: DOMSubtreeModifiedListener(const SmartPtr& b) : builder(b) { }; virtual ~DOMSubtreeModifiedListener() { }; virtual void handleEvent(const DOM::Event&); private: WeakPtr builder; }; class DOMAttrModifiedListener : public DOM::EventListener { public: DOMAttrModifiedListener(const SmartPtr& b) : builder(b) { }; virtual ~DOMAttrModifiedListener() { }; virtual void handleEvent(const DOM::Event&); private: WeakPtr builder; }; private: DOMSubtreeModifiedListener* subtreeModifiedListener; DOMAttrModifiedListener* attrModifiedListener; mutable TemplateLinker linker; DOM::Element root; }; #endif // __gmetadom_Builder_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/gmetadom/gmetadom_Model.cc�������������������������������������������0000644�0001750�0001750�00000007443�10661271072�020433� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Clock.hh" #include "AbstractLogger.hh" #include "gmetadom_Model.hh" #include "MathMLEntitiesTable.hh" DOM::Document gmetadom_Model::document(const AbstractLogger& logger, const String& path, bool subst) { DOM::Document res; Clock perf; perf.Start(); if (!subst) res = DOM::DOMImplementation().createDocumentFromURI(path.c_str()); else { GdomeDOMImplementation* di = gdome_di_mkref(); assert(di != NULL); GdomeException exc = 0; GdomeDocument* doc = gdome_di_createDocFromURIWithEntitiesTable(di, path.c_str(), getMathMLEntities(), GDOME_LOAD_PARSING | GDOME_LOAD_SUBSTITUTE_ENTITIES, &exc); if (exc != 0) { gdome_di_unref(di, &exc); gdome_doc_unref(doc, &exc); return DOM::Document(0); } if (doc == 0) { // FIXME: this should be signalled as an exception, I think gdome_di_unref(di, &exc); return DOM::Document(0); } res = DOM::Document(doc); gdome_di_unref(di, &exc); assert(exc == 0); gdome_doc_unref(doc, &exc); assert(exc == 0); } perf.Stop(); logger.out(LOG_INFO, "parsing time: %dms", perf()); return res; } DOM::Document gmetadom_Model::documentFromBuffer(const AbstractLogger& logger, const String& buffer, bool subst) { DOM::Document res; Clock perf; perf.Start(); if (!subst) res = DOM::DOMImplementation().createDocumentFromMemory(buffer.c_str(), buffer.length()); else { GdomeDOMImplementation* di = gdome_di_mkref(); assert(di != NULL); GdomeException exc = 0; // FIXME: the cast should not be necessary if the gdome API were OK GdomeDocument* doc = gdome_di_createDocFromMemoryWithEntitiesTable(di, const_cast(buffer.c_str()), getMathMLEntities(), GDOME_LOAD_PARSING | GDOME_LOAD_SUBSTITUTE_ENTITIES, &exc); if (exc != 0) { gdome_di_unref(di, &exc); gdome_doc_unref(doc, &exc); return DOM::Document(0); } if (doc == 0) { // FIXME: this should be signalled as an exception, I think gdome_di_unref(di, &exc); return DOM::Document(0); } res = DOM::Document(doc); gdome_di_unref(di, &exc); assert(exc == 0); gdome_doc_unref(doc, &exc); assert(exc == 0); } perf.Stop(); logger.out(LOG_INFO, "parsing time: %dms", perf()); return res; } String gmetadom_Model::getElementValue(const DOM::Element& elem) { DOM::GdomeString res = ""; for (DOM::Node p = elem.get_firstChild(); p; p = p.get_nextSibling()) { switch (p.get_nodeType()) { case DOM::Node::CDATA_SECTION_NODE: case DOM::Node::TEXT_NODE: res = res + p.get_nodeValue(); break; default: break; } } return res; } String gmetadom_Model::getNodeName(const DOM::Node& node) { assert(node); if (!node.get_namespaceURI().null()) return node.get_localName(); else return node.get_nodeName(); } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/gmetadom/gmetadom_Setup.cc�������������������������������������������0000644�0001750�0001750�00000003627�10661271072�020473� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "gmetadom_Setup.hh" #include "gmetadom_Model.hh" #include "TemplateSetup.hh" bool gmetadom_Setup::loadOperatorDictionary(const AbstractLogger& logger, MathMLOperatorDictionary& dictionary, const String& path) { try { return TemplateSetup::load(logger, dictionary, "operator dictionary", "dictionary", path); } catch (DOM::DOMException e) { String msg = e.msg; logger.out(LOG_DEBUG, "caught exception: %d `%s'", e.code, msg.c_str()); return false; } } bool gmetadom_Setup::loadConfiguration(const AbstractLogger& logger, Configuration& conf, const String& path) { try { return TemplateSetup::load(logger, conf, "configuration", "math-engine-configuration", path); } catch (DOM::DOMException e) { String msg = e.msg; logger.out(LOG_DEBUG, "caught exception: %d `%s'", e.code, msg.c_str()); return false; } } ���������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/gmetadom/Makefile.am�������������������������������������������������0000644�0001750�0001750�00000001525�10661271072�017236� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ NULL = noinst_LTLIBRARIES = libfrontend_gmetadom.la libfrontend_gmetadom_la_CPPFLAGS = -DGMV_FrontEnd_DLL libfrontend_gmetadom_la_LIBADD = \ $(DOM_LIBS) \ $(NULL) libfrontend_gmetadom_la_SOURCES = \ MathMLEntitiesTable.cc \ MathMLEntitiesTable.hh \ gmetadom.hh \ gmetadom_Builder.cc \ gmetadom_Builder.hh \ gmetadom_Model.cc \ gmetadom_Setup.cc \ gmetadom_Setup.hh \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ gmetadom_Model.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/engine/adapters \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/backend/common \ $(DOM_CFLAGS) \ $(NULL) ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/gmetadom/Makefile.in�������������������������������������������������0000644�0001750�0001750�00000056744�10704610556�017266� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/frontend/gmetadom DIST_COMMON = $(mathview_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) am__DEPENDENCIES_1 = libfrontend_gmetadom_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) am__objects_1 = am_libfrontend_gmetadom_la_OBJECTS = \ libfrontend_gmetadom_la-MathMLEntitiesTable.lo \ libfrontend_gmetadom_la-gmetadom_Builder.lo \ libfrontend_gmetadom_la-gmetadom_Model.lo \ libfrontend_gmetadom_la-gmetadom_Setup.lo $(am__objects_1) libfrontend_gmetadom_la_OBJECTS = \ $(am_libfrontend_gmetadom_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libfrontend_gmetadom_la_SOURCES) DIST_SOURCES = $(libfrontend_gmetadom_la_SOURCES) am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(mathviewdir)" mathviewHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(mathview_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = noinst_LTLIBRARIES = libfrontend_gmetadom.la libfrontend_gmetadom_la_CPPFLAGS = -DGMV_FrontEnd_DLL libfrontend_gmetadom_la_LIBADD = \ $(DOM_LIBS) \ $(NULL) libfrontend_gmetadom_la_SOURCES = \ MathMLEntitiesTable.cc \ MathMLEntitiesTable.hh \ gmetadom.hh \ gmetadom_Builder.cc \ gmetadom_Builder.hh \ gmetadom_Model.cc \ gmetadom_Setup.cc \ gmetadom_Setup.hh \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ gmetadom_Model.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/engine/adapters \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/backend/common \ $(DOM_CFLAGS) \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/frontend/gmetadom/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/frontend/gmetadom/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libfrontend_gmetadom.la: $(libfrontend_gmetadom_la_OBJECTS) $(libfrontend_gmetadom_la_DEPENDENCIES) $(CXXLINK) $(libfrontend_gmetadom_la_LDFLAGS) $(libfrontend_gmetadom_la_OBJECTS) $(libfrontend_gmetadom_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfrontend_gmetadom_la-MathMLEntitiesTable.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfrontend_gmetadom_la-gmetadom_Builder.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfrontend_gmetadom_la-gmetadom_Model.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfrontend_gmetadom_la-gmetadom_Setup.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libfrontend_gmetadom_la-MathMLEntitiesTable.lo: MathMLEntitiesTable.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_gmetadom_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libfrontend_gmetadom_la-MathMLEntitiesTable.lo -MD -MP -MF "$(DEPDIR)/libfrontend_gmetadom_la-MathMLEntitiesTable.Tpo" -c -o libfrontend_gmetadom_la-MathMLEntitiesTable.lo `test -f 'MathMLEntitiesTable.cc' || echo '$(srcdir)/'`MathMLEntitiesTable.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libfrontend_gmetadom_la-MathMLEntitiesTable.Tpo" "$(DEPDIR)/libfrontend_gmetadom_la-MathMLEntitiesTable.Plo"; else rm -f "$(DEPDIR)/libfrontend_gmetadom_la-MathMLEntitiesTable.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLEntitiesTable.cc' object='libfrontend_gmetadom_la-MathMLEntitiesTable.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_gmetadom_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libfrontend_gmetadom_la-MathMLEntitiesTable.lo `test -f 'MathMLEntitiesTable.cc' || echo '$(srcdir)/'`MathMLEntitiesTable.cc libfrontend_gmetadom_la-gmetadom_Builder.lo: gmetadom_Builder.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_gmetadom_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libfrontend_gmetadom_la-gmetadom_Builder.lo -MD -MP -MF "$(DEPDIR)/libfrontend_gmetadom_la-gmetadom_Builder.Tpo" -c -o libfrontend_gmetadom_la-gmetadom_Builder.lo `test -f 'gmetadom_Builder.cc' || echo '$(srcdir)/'`gmetadom_Builder.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libfrontend_gmetadom_la-gmetadom_Builder.Tpo" "$(DEPDIR)/libfrontend_gmetadom_la-gmetadom_Builder.Plo"; else rm -f "$(DEPDIR)/libfrontend_gmetadom_la-gmetadom_Builder.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='gmetadom_Builder.cc' object='libfrontend_gmetadom_la-gmetadom_Builder.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_gmetadom_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libfrontend_gmetadom_la-gmetadom_Builder.lo `test -f 'gmetadom_Builder.cc' || echo '$(srcdir)/'`gmetadom_Builder.cc libfrontend_gmetadom_la-gmetadom_Model.lo: gmetadom_Model.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_gmetadom_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libfrontend_gmetadom_la-gmetadom_Model.lo -MD -MP -MF "$(DEPDIR)/libfrontend_gmetadom_la-gmetadom_Model.Tpo" -c -o libfrontend_gmetadom_la-gmetadom_Model.lo `test -f 'gmetadom_Model.cc' || echo '$(srcdir)/'`gmetadom_Model.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libfrontend_gmetadom_la-gmetadom_Model.Tpo" "$(DEPDIR)/libfrontend_gmetadom_la-gmetadom_Model.Plo"; else rm -f "$(DEPDIR)/libfrontend_gmetadom_la-gmetadom_Model.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='gmetadom_Model.cc' object='libfrontend_gmetadom_la-gmetadom_Model.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_gmetadom_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libfrontend_gmetadom_la-gmetadom_Model.lo `test -f 'gmetadom_Model.cc' || echo '$(srcdir)/'`gmetadom_Model.cc libfrontend_gmetadom_la-gmetadom_Setup.lo: gmetadom_Setup.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_gmetadom_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libfrontend_gmetadom_la-gmetadom_Setup.lo -MD -MP -MF "$(DEPDIR)/libfrontend_gmetadom_la-gmetadom_Setup.Tpo" -c -o libfrontend_gmetadom_la-gmetadom_Setup.lo `test -f 'gmetadom_Setup.cc' || echo '$(srcdir)/'`gmetadom_Setup.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libfrontend_gmetadom_la-gmetadom_Setup.Tpo" "$(DEPDIR)/libfrontend_gmetadom_la-gmetadom_Setup.Plo"; else rm -f "$(DEPDIR)/libfrontend_gmetadom_la-gmetadom_Setup.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='gmetadom_Setup.cc' object='libfrontend_gmetadom_la-gmetadom_Setup.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_gmetadom_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libfrontend_gmetadom_la-gmetadom_Setup.lo `test -f 'gmetadom_Setup.cc' || echo '$(srcdir)/'`gmetadom_Setup.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-mathviewHEADERS: $(mathview_HEADERS) @$(NORMAL_INSTALL) test -z "$(mathviewdir)" || $(mkdir_p) "$(DESTDIR)$(mathviewdir)" @list='$(mathview_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(mathviewHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(mathviewdir)/$$f'"; \ $(mathviewHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(mathviewdir)/$$f"; \ done uninstall-mathviewHEADERS: @$(NORMAL_UNINSTALL) @list='$(mathview_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(mathviewdir)/$$f'"; \ rm -f "$(DESTDIR)$(mathviewdir)/$$f"; \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(mathviewdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-mathviewHEADERS install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-mathviewHEADERS .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-mathviewHEADERS install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-info-am \ uninstall-mathviewHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ����������������������������gtkmathview-0.8.0/src/frontend/gmetadom/MathMLEntitiesTable.cc��������������������������������������0000644�0001750�0001750�00000002226�10661271072�021307� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #if defined(HAVE_GMETADOM) #include static const GdomeEntitiesTableEntry mathmlEntities[] = { #include "../auto/entitiesTable.inc" { NULL, NULL, NULL, NULL } }; const GdomeEntitiesTableEntry* getMathMLEntities(void) { return mathmlEntities; } #endif // HAVE_GMETADOM ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/Makefile.am����������������������������������������������������������0000644�0001750�0001750�00000000745�10613606742�015447� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ NULL = if COND_CUSTOM_READER MAYBE_CUSTOM_READER = custom_reader else MAYBE_CUSTOM_READER = $(NULL) endif if COND_LIBXML2_READER MAYBE_LIBXML2_READER = libxml2_reader else MAYBE_LIBXML2_READER = $(NULL) endif if COND_LIBXML2 MAYBE_LIBXML2 = libxml2 else MAYBE_LIBXML2 = $(NULL) endif if COND_GMETADOM MAYBE_GMETADOM = gmetadom else MAYBE_GMETADOM = $(NULL) endif SUBDIRS = common $(MAYBE_CUSTOM_READER) $(MAYBE_LIBXML2_READER) $(MAYBE_LIBXML2) $(MAYBE_GMETADOM) ���������������������������gtkmathview-0.8.0/src/frontend/common/��������������������������������������������������������������0000777�0001750�0001750�00000000000�10704625470�014761� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/common/TemplateElementIterator.hh������������������������������������0000644�0001750�0001750�00000003702�10661271072�022014� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TemplateElementIterator_hh__ #define __TemplateElementIterator_hh__ #include "TemplateElementValidator.hh" template class GMV_MathView_EXPORT TemplateElementIterator : public TemplateElementValidator { public: TemplateElementIterator(const typename Model::Element& root, const String& ns = "*", const String& n = "*") : TemplateElementValidator(ns, n), currentElement(findValidNodeForward(Model::getFirstChild(Model::asNode(root)))) { assert(root); } typename Model::Element element(void) const { return currentElement; } bool more(void) const { return currentElement; } void next(void) { assert(currentElement); currentElement = findValidNodeForward(Model::getNextSibling(Model::asNode(currentElement))); } protected: typename Model::Element findValidNodeForward(const typename Model::Node& p0) const { for (typename Model::Node p = p0; p; p = Model::getNextSibling(p)) if (valid(p)) return Model::asElement(p); return typename Model::Element(); } typename Model::Element currentElement; }; #endif // __TemplateElementIterator_hh__ ��������������������������������������������������������������gtkmathview-0.8.0/src/frontend/common/TemplateBuilder.hh��������������������������������������������0000644�0001750�0001750�00000162171�10661271072�020305� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TemplateBuilder_hh__ #define __TemplateBuilder_hh__ #include #include "defs.h" #include "Attribute.hh" #include "MathML.hh" #include "MathMLTableContentFactory.hh" #include "MathMLNamespaceContext.hh" #include "MathMLAttributeSignatures.hh" #if GMV_ENABLE_BOXML #include "BoxML.hh" #include "BoxMLNamespaceContext.hh" #include "BoxMLAttributeSignatures.hh" #include "BoxMLMathMLAdapter.hh" #include "MathMLBoxMLAdapter.hh" #endif // GMV_ENABLE_BOXML #include "ValueConversion.hh" #include "AbstractLogger.hh" #include "HashMap.hh" #include "StringHash.hh" template class TemplateBuilder : public Builder { protected: template SmartPtr getElement(const typename Model::Element& el) const { if (SmartPtr elem = smart_cast(linkerAssoc(el))) return elem; else { SmartPtr elem = ElementBuilder::type::create(ElementBuilder::getContext(*this)); linkerAdd(el, elem); return elem; } } template SmartPtr updateElement(const typename Model::Element& el) const { SmartPtr elem = getElement(el); #if 0 std::cerr << "BEFORE" << " updateElement " << static_cast(elem) << " dirtyAttribute=" << elem->dirtyAttribute() << " dirtyAttributeP=" << elem->dirtyAttributeP() << " dirtyStructure=" << elem->dirtyStructure() << " dirtyLayout=" << elem->dirtyLayout() << std::endl; #endif if (elem->dirtyAttribute() || elem->dirtyAttributeP() || elem->dirtyStructure()) { ElementBuilder::begin(*this, el, elem); ElementBuilder::refine(*this, el, elem); ElementBuilder::construct(*this, el, elem); ElementBuilder::end(*this, el, elem); } #if 0 std::cerr << "AFTER" << " updateElement " << static_cast(elem) << " dirtyAttribute=" << elem->dirtyAttribute() << " dirtyAttributeP=" << elem->dirtyAttributeP() << " dirtyStructure=" << elem->dirtyStructure() << " dirtyLayout=" << elem->dirtyLayout() << std::endl; #endif return elem; } TemplateBuilder() { static struct { String tag; MathMLUpdateMethod update; } mathml_tab[] = { { "math", &TemplateBuilder::template updateElement }, { "mi", &TemplateBuilder::template updateElement }, { "mn", &TemplateBuilder::template updateElement }, { "mo", &TemplateBuilder::template updateElement }, { "mtext", &TemplateBuilder::template updateElement }, { "mspace", &TemplateBuilder::template updateElement }, { "ms", &TemplateBuilder::template updateElement }, { "mrow", &TemplateBuilder::template updateElement }, { "mfrac", &TemplateBuilder::template updateElement }, { "msqrt", &TemplateBuilder::template updateElement }, { "mroot", &TemplateBuilder::template updateElement }, { "mstyle", &TemplateBuilder::template updateElement }, { "merror", &TemplateBuilder::template updateElement }, { "mpadded", &TemplateBuilder::template updateElement }, { "mphantom", &TemplateBuilder::template updateElement }, { "mfenced", &TemplateBuilder::update_MathML_mfenced_Element }, { "msub", &TemplateBuilder::template updateElement }, { "msup", &TemplateBuilder::template updateElement }, { "msubsup", &TemplateBuilder::template updateElement }, { "munder", &TemplateBuilder::template updateElement }, { "mover", &TemplateBuilder::template updateElement }, { "munderover", &TemplateBuilder::template updateElement }, { "mmultiscripts", &TemplateBuilder::template updateElement }, { "mtable", &TemplateBuilder::template updateElement }, { "mtd", &TemplateBuilder::template updateElement }, { "maligngroup", &TemplateBuilder::template updateElement }, { "malignmark", &TemplateBuilder::template updateElement }, { "maction", &TemplateBuilder::template updateElement }, { "menclose", &TemplateBuilder::template updateElement }, { "semantics", &TemplateBuilder::update_MathML_semantics_Element }, { "", 0 } }; if (!mathmlMapInitialized) { for (unsigned i = 0; mathml_tab[i].update; i++) mathmlMap[mathml_tab[i].tag] = mathml_tab[i].update; mathmlMapInitialized = true; } #if GMV_ENABLE_BOXML static struct { String tag; BoxMLUpdateMethod update; } boxml_tab[] = { { "at", &TemplateBuilder::template updateElement }, { "layout", &TemplateBuilder::template updateElement }, { "h", &TemplateBuilder::template updateElement }, { "ink", &TemplateBuilder::template updateElement }, { "space", &TemplateBuilder::template updateElement }, { "text", &TemplateBuilder::template updateElement }, { "v", &TemplateBuilder::template updateElement }, { "hv", &TemplateBuilder::template updateElement }, { "hov", &TemplateBuilder::template updateElement }, { "box", &TemplateBuilder::template updateElement }, { "action", &TemplateBuilder::template updateElement }, { "obj", &TemplateBuilder::update_BoxML_obj_Element }, { "decor", &TemplateBuilder::template updateElement }, { "", 0 } }; if (!boxmlMapInitialized) { for (unsigned i = 0; boxml_tab[i].update; i++) boxmlMap[boxml_tab[i].tag] = boxml_tab[i].update; boxmlMapInitialized = true; } #endif // GMV_ENABLE_BOXML } //////////////////////////////////// // SPECIALIZED MATHML UPDATE METHODS //////////////////////////////////// SmartPtr update_MathML_mfenced_Element(const typename Model::Element& el) const { String open = ToString(getAttributeValue(el, ATTRIBUTE_SIGNATURE(MathML, Fenced, open))); String close = ToString(getAttributeValue(el, ATTRIBUTE_SIGNATURE(MathML, Fenced, close))); String separators = ToString(getAttributeValue(el, ATTRIBUTE_SIGNATURE(MathML, Fenced, separators))); std::vector > content; getChildMathMLElements(el, content); SmartPtr openElem = MathMLOperatorElement::create(this->getMathMLNamespaceContext()); openElem->setSize(0); openElem->append(open); openElem->SetFence(); SmartPtr closeElem = MathMLOperatorElement::create(this->getMathMLNamespaceContext()); closeElem->setSize(0); closeElem->append(close); closeElem->SetFence(); std::vector< SmartPtr > outerRowContent; outerRowContent.reserve(3); outerRowContent.push_back(openElem); if (content.size() == 1) outerRowContent.push_back(content[0]); else { std::vector< SmartPtr > innerRowContent; if (content.size() > 0) innerRowContent.reserve(separators.empty() ? content.size() : (2 * content.size() - 1)); for (unsigned i = 0; i < content.size(); i++) { innerRowContent.push_back(content[i]); if (!separators.empty() && i + 1 < content.size()) { SmartPtr sep = MathMLOperatorElement::create(this->mathmlContext); unsigned offset = (i < separators.length()) ? i : separators.length() - 1; sep->setSize(0); sep->append(separators.substr(offset, 1)); sep->SetSeparator(); innerRowContent.push_back(sep); } } SmartPtr innerRow = MathMLRowElement::create(this->getMathMLNamespaceContext()); innerRow->swapContent(innerRowContent); outerRowContent.push_back(innerRow); } outerRowContent.push_back(closeElem); // this can probably remain attached to the model SmartPtr outerRow = MathMLRowElement::create(this->getMathMLNamespaceContext()); outerRow->swapContent(outerRowContent); return outerRow; } SmartPtr update_MathML_semantics_Element(const typename Model::Element& el) const { typename Model::ElementIterator iter(el, MATHML_NS_URI); if (iter.more()) if (typename Model::Element e = iter.element()) if (Model::getNodeName(Model::asNode(e)) != "annotation" && Model::getNodeName(Model::asNode(e)) != "annotation-xml") if (SmartPtr elem = getMathMLElementNoCreate(iter.element())) return elem; else iter.next(); while (typename Model::Element e = iter.element()) { if (Model::getNodeName(Model::asNode(e)) == "annotation-xml") { String encoding = Model::getAttribute(e, "encoding"); if (encoding == "MathML-Presentation") return getMathMLElement(typename Model::ElementIterator(e, MATHML_NS_URI).element()); #if GMV_ENABLE_BOXML else if (encoding == "BoxML") { // this element can probably be associated with the model element SmartPtr adapter = getElement(el); assert(adapter); adapter->setChild(getBoxMLElement(typename Model::ElementIterator(e, BOXML_NS_URI).element())); adapter->resetDirtyStructure(); adapter->resetDirtyAttribute(); return adapter; } #endif } iter.next(); } return createMathMLDummyElement(); } SmartPtr update_MathML_mglyph_Node(const typename Model::Element& el) const { assert(el); String alt = Model::getAttribute(el, "alt"); String fontFamily = Model::getAttribute(el, "fontfamily"); String index = Model::getAttribute(el, "index"); if (alt.empty() || fontFamily.empty() || index.empty()) { this->getLogger()->out(LOG_WARNING, "malformed `mglyph' element (some required attribute is missing)\n"); return MathMLStringNode::create("?"); } return MathMLGlyphNode::create(fontFamily, index, alt); } SmartPtr update_MathML_malignmark_Node(const typename Model::Element& el) const { assert(el); const String edge = Model::getAttribute(el, "edge"); TokenId align = T__NOTVALID; if (!edge.empty()) { if (edge == "left") align = T_LEFT; else if (edge == "right") align = T_RIGHT; else this->getLogger()->out(LOG_WARNING, "malformed `malignmark' element, attribute `edge' has invalid value `%s' (ignored)", std::string(edge).c_str()); } return MathMLMarkNode::create(align); } #if GMV_ENABLE_BOXML /////////////////////////////////// // SPECIALIZED BOXML UPDATE METHODS /////////////////////////////////// SmartPtr update_BoxML_obj_Element(const typename Model::Element& el) const { String encoding = Model::getAttribute(el, "encoding"); if (encoding == "BoxML") return getBoxMLElement(typename Model::ElementIterator(el, BOXML_NS_URI).element()); else /* if (encoding == "MathML-Presentation") */ { // this element can be associated to the corresponding model element SmartPtr adapter = getElement(el); assert(adapter); adapter->setChild(getMathMLElement(typename Model::ElementIterator(el, MATHML_NS_URI).element())); adapter->resetDirtyStructure(); adapter->resetDirtyAttribute(); return adapter; } #if 0 else return createBoxMLDummyElement(); #endif } #endif // GMV_ENABLE_BOXML ////////////////// // MATHML BUILDERS ////////////////// struct MathMLElementBuilder { typedef MathMLElement target_type; static SmartPtr getContext(const TemplateBuilder& builder) { return builder.getMathMLNamespaceContext(); } static void begin(const TemplateBuilder&, const typename Model::Element&, const SmartPtr&) { } static void end(const TemplateBuilder&, const typename Model::Element&, const SmartPtr&) { } static void refine(const TemplateBuilder&, const typename Model::Element&, const SmartPtr&) { } static void construct(const TemplateBuilder&, const typename Model::Element&, const SmartPtr&) { } }; struct MathMLBinContainerElementBuilder : public MathMLElementBuilder { static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { elem->setChild(builder.getMathMLElement(el)); } }; struct MathMLNormalizingContainerElementBuilder : public MathMLBinContainerElementBuilder { static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { std::vector > content; builder.getChildMathMLElements(el, content); if (content.size() == 1) elem->setChild(content[0]); else { SmartPtr row = MathMLInferredRowElement::create(builder.getMathMLNamespaceContext()); row->swapContent(content); elem->setChild(row); } } }; struct MathMLLinearContainerElementBuilder : public MathMLElementBuilder { static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { std::vector > content; builder.getChildMathMLElements(el, content); elem->swapContent(content); } }; struct MathMLTokenElementBuilder : public MathMLElementBuilder { static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Token, mathvariant)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Token, mathsize)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Token, mathcolor)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Token, mathbackground)); } static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { std::vector > content; builder.getChildMathMLTextNodes(el, content); elem->swapContent(content); // should normalize spaces etc. } }; struct MathML_mi_ElementBuilder : public MathMLTokenElementBuilder { typedef MathMLIdentifierElement type; }; struct MathML_mn_ElementBuilder : public MathMLTokenElementBuilder { typedef MathMLNumberElement type; }; struct MathML_mo_ElementBuilder : public MathMLTokenElementBuilder { typedef MathMLOperatorElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { MathMLTokenElementBuilder::refine(builder, el, elem); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Operator, form)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Operator, fence)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Operator, separator)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Operator, lspace)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Operator, rspace)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Operator, stretchy)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Operator, symmetric)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Operator, maxsize)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Operator, minsize)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Operator, largeop)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Operator, movablelimits)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Operator, accent)); } }; struct MathML_mtext_ElementBuilder : public MathMLTokenElementBuilder { typedef MathMLTextElement type; }; struct MathML_ms_ElementBuilder : public MathMLTokenElementBuilder { typedef MathMLStringLitElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { MathMLTokenElementBuilder::refine(builder, el, elem); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, StringLit, lquote)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, StringLit, rquote)); } }; struct MathML_mspace_ElementBuilder : public MathMLElementBuilder { typedef MathMLSpaceElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Space, width)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Space, height)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Space, depth)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Space, linebreak)); } }; struct MathML_mrow_ElementBuilder : public MathMLLinearContainerElementBuilder { typedef MathMLRowElement type; }; struct MathML_mstyle_ElementBuilder : public MathMLNormalizingContainerElementBuilder { typedef MathMLStyleElement type; static void begin(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr&) { builder.refinementContext.push(el); } static void end(const TemplateBuilder& builder, const typename Model::Element&, const SmartPtr&) { builder.refinementContext.pop(); } static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, scriptlevel)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, displaystyle)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, scriptsizemultiplier)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, scriptminsize)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, mathcolor)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, mathbackground)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, color)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, background)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, negativeveryverythickmathspace)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, negativeverythickmathspace)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, negativethickmathspace)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, negativemediummathspace)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, negativethinmathspace)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, negativeverythinmathspace)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, negativeveryverythinmathspace)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, veryverythinmathspace)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, verythinmathspace)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, thinmathspace)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, mediummathspace)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, thickmathspace)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, verythickmathspace)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, veryverythickmathspace)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Style, mathsize)); } }; struct MathML_merror_ElementBuilder : public MathMLNormalizingContainerElementBuilder { typedef MathMLErrorElement type; }; struct MathML_mpadded_ElementBuilder : public MathMLNormalizingContainerElementBuilder { typedef MathMLPaddedElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Padded, width)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Padded, lspace)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Padded, height)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Padded, depth)); } }; struct MathML_mphantom_ElementBuilder : public MathMLNormalizingContainerElementBuilder { typedef MathMLPhantomElement type; }; struct MathML_maligngroup_ElementBuilder : public MathMLElementBuilder { typedef MathMLAlignGroupElement type; static void refine(const TemplateBuilder&, const typename Model::Element&, const SmartPtr&) { // NO ATTRIBUTES TO REFINE??? } }; struct MathML_malignmark_ElementBuilder : public MathMLElementBuilder { typedef MathMLAlignMarkElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, AlignMark, edge)); } }; struct MathML_maction_ElementBuilder : public MathMLLinearContainerElementBuilder { typedef MathMLActionElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Action, actiontype)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Action, selection)); } }; struct MathML_menclose_ElementBuilder : public MathMLNormalizingContainerElementBuilder { typedef MathMLEncloseElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Enclose, notation)); } }; struct MathML_math_ElementBuilder : public MathMLNormalizingContainerElementBuilder { typedef MathMLmathElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, math, mode)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, math, display)); } }; struct MathML_mfrac_ElementBuilder : public MathMLElementBuilder { typedef MathMLFractionElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Fraction, numalign)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Fraction, denomalign)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Fraction, linethickness)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Fraction, bevelled)); } static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { typename Model::ElementIterator iter(el, MATHML_NS_URI); elem->setNumerator(builder.getMathMLElement(iter.element())); iter.next(); elem->setDenominator(builder.getMathMLElement(iter.element())); } }; struct MathML_mroot_ElementBuilder : public MathMLElementBuilder { typedef MathMLRadicalElement type; static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { typename Model::ElementIterator iter(el, MATHML_NS_URI); elem->setBase(builder.getMathMLElement(iter.element())); iter.next(); elem->setIndex(builder.getMathMLElement(iter.element())); } }; struct MathML_msqrt_ElementBuilder : public MathMLElementBuilder { typedef MathMLRadicalElement type; static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { std::vector > content; builder.getChildMathMLElements(el, content); if (content.size() == 1) elem->setBase(content[0]); else { SmartPtr row = MathMLInferredRowElement::create(builder.getMathMLNamespaceContext()); row->swapContent(content); elem->setBase(row); } elem->setIndex(0); } }; struct MathML_msub_ElementBuilder : public MathMLElementBuilder { typedef MathMLScriptElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Script, subscriptshift)); } static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { typename Model::ElementIterator iter(el, MATHML_NS_URI); elem->setBase(builder.getMathMLElement(iter.element())); iter.next(); elem->setSubScript(builder.getMathMLElement(iter.element())); elem->setSuperScript(0); } }; struct MathML_msup_ElementBuilder : public MathMLElementBuilder { typedef MathMLScriptElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Script, superscriptshift)); } static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { typename Model::ElementIterator iter(el, MATHML_NS_URI); elem->setBase(builder.getMathMLElement(iter.element())); iter.next(); elem->setSubScript(0); elem->setSuperScript(builder.getMathMLElement(iter.element())); } }; struct MathML_msubsup_ElementBuilder : public MathMLElementBuilder { typedef MathMLScriptElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { MathML_msub_ElementBuilder::refine(builder, el, elem); MathML_msup_ElementBuilder::refine(builder, el, elem); } static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { typename Model::ElementIterator iter(el, MATHML_NS_URI); elem->setBase(builder.getMathMLElement(iter.element())); iter.next(); elem->setSubScript(builder.getMathMLElement(iter.element())); iter.next(); elem->setSuperScript(builder.getMathMLElement(iter.element())); } }; struct MathML_munder_ElementBuilder : public MathMLElementBuilder { typedef MathMLUnderOverElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, UnderOver, accentunder)); } static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { typename Model::ElementIterator iter(el, MATHML_NS_URI); elem->setBase(builder.getMathMLElement(iter.element())); iter.next(); elem->setUnderScript(builder.getMathMLElement(iter.element())); elem->setOverScript(0); } }; struct MathML_mover_ElementBuilder : public MathMLElementBuilder { typedef MathMLUnderOverElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, UnderOver, accent)); } static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { typename Model::ElementIterator iter(el, MATHML_NS_URI); elem->setBase(builder.getMathMLElement(iter.element())); iter.next(); elem->setUnderScript(0); elem->setOverScript(builder.getMathMLElement(iter.element())); } }; struct MathML_munderover_ElementBuilder : public MathMLElementBuilder { typedef MathMLUnderOverElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { MathML_munder_ElementBuilder::refine(builder, el, elem); MathML_mover_ElementBuilder::refine(builder, el, elem); } static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { typename Model::ElementIterator iter(el, MATHML_NS_URI); elem->setBase(builder.getMathMLElement(iter.element())); iter.next(); elem->setUnderScript(builder.getMathMLElement(iter.element())); iter.next(); elem->setOverScript(builder.getMathMLElement(iter.element())); } }; struct MathML_mtd_ElementBuilder : public MathMLNormalizingContainerElementBuilder { typedef MathMLTableCellElement type; }; struct MathML_mtable_ElementBuilder : public MathMLElementBuilder { typedef MathMLTableElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, align)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, rowalign)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, columnalign)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, groupalign)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, alignmentscope)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, columnwidth)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, rowspacing)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, columnspacing)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, rowlines)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, columnlines)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, frame)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, framespacing)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, equalrows)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, equalcolumns)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, displaystyle)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, side)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, minlabelspacing)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, Table, width)); } static const SmartPtr refineAlignAttribute(const SmartPtr& cellAlign, const SmartPtr& rowAlign, const SmartPtr& tableAlign) { #if 1 if (cellAlign) return cellAlign; else if (rowAlign) return rowAlign; else if (tableAlign) return tableAlign; else return 0; #else // Because of a bug in GCC-3.4 the following code, which is // syntactically and semantically correct, does not compile // and the compiler issues a misleading error message return (cellAlign ? cellAlign : (rowAlign ? rowAlign : (tableAlign ? tableAlign : 0))); #endif } static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { MathMLTableContentFactory tableContentFactory; unsigned rowIndex = 0; const SmartPtr tableRowAlign = builder.getAttributeValue(el, ATTRIBUTE_SIGNATURE(MathML, Table, rowalign)); const SmartPtr tableColumnAlign = builder.getAttributeValue(el, ATTRIBUTE_SIGNATURE(MathML, Table, columnalign)); const SmartPtr tableGroupAlign = builder.getAttributeValue(el, ATTRIBUTE_SIGNATURE(MathML, Table, groupalign)); for (typename Model::ElementIterator iter(el, MATHML_NS_URI); iter.more(); iter.next()) { typename Model::Element row = iter.element(); const SmartPtr rowRowAlign = builder.getAttributeValue(row, ATTRIBUTE_SIGNATURE(MathML, TableRow, rowalign)); const SmartPtr rowColumnAlign = builder.getAttributeValue(row, ATTRIBUTE_SIGNATURE(MathML, TableRow, columnalign)); const SmartPtr rowGroupAlign = builder.getAttributeValue(row, ATTRIBUTE_SIGNATURE(MathML, TableRow, groupalign)); const String name = Model::getNodeName(Model::asNode(row)); if (name == "mtr" || name == "mlabeledtr") { unsigned columnIndex = 0; for (typename Model::ElementIterator iter(row, MATHML_NS_URI); iter.more(); iter.next()) { typename Model::Element cell = iter.element(); const SmartPtr cellRowAlign = builder.getAttributeValue(cell, ATTRIBUTE_SIGNATURE(MathML, TableCell, rowalign)); const SmartPtr cellColumnAlign = builder.getAttributeValue(cell, ATTRIBUTE_SIGNATURE(MathML, TableCell, columnalign)); const SmartPtr cellGroupAlign = builder.getAttributeValue(cell, ATTRIBUTE_SIGNATURE(MathML, TableCell, groupalign)); const int cellRowSpan = ToInteger(builder.getAttributeValue(cell, ATTRIBUTE_SIGNATURE(MathML, TableCell, rowspan))); const int cellColumnSpan = ToInteger(builder.getAttributeValue(cell, ATTRIBUTE_SIGNATURE(MathML, TableCell, columnspan))); SmartPtr elem = builder.getMathMLElement(cell); SmartPtr cellElem = smart_cast(elem); if (!cellElem) { cellElem = MathMLTableCellElement::create(builder.getMathMLNamespaceContext()); cellElem->setChild(elem); // WARNING: should we clear the dirty flags? } if (name == "mtr" || columnIndex > 0) { cellElem->setSpan(cellRowSpan, cellColumnSpan); columnIndex = tableContentFactory.setChild(rowIndex, columnIndex, cellRowSpan, cellColumnSpan, cellElem); } else { cellElem->setSpan(1, 1); tableContentFactory.setLabelChild(rowIndex, cellElem); } // now rowIndex and columnIndex are final values cellElem->setPosition(rowIndex, columnIndex); const SmartPtr rowAlign = refineAlignAttribute(cellRowAlign, rowRowAlign, GetComponent(tableRowAlign, rowIndex)); const SmartPtr columnAlign = refineAlignAttribute(cellColumnAlign, GetComponent(rowColumnAlign, columnIndex), GetComponent(tableColumnAlign, columnIndex)); const SmartPtr groupAlign = refineAlignAttribute(cellGroupAlign, GetComponent(rowGroupAlign, columnIndex), GetComponent(tableGroupAlign, columnIndex)); cellElem->setAlignment(ToTokenId(rowAlign), ToTokenId(columnAlign)); //cellElem->setGroupAlignment(groupAlign); } rowIndex++; } else { // issue a warning message or promote to mtr with single mtd inside } } elem->updateContent(tableContentFactory); } }; struct MathML_mmultiscripts_ElementBuilder : public MathMLElementBuilder { typedef MathMLMultiScriptsElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, MultiScripts, subscriptshift)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(MathML, MultiScripts, superscriptshift)); } static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { typename Model::ElementIterator iter(el, MATHML_NS_URI); unsigned i = 0; unsigned nScripts = 0; unsigned nPreScripts = 0; bool preScripts = false; elem->setBase(builder.getMathMLElement(iter.element())); iter.next(); while (iter.more()) { typename Model::Element node = iter.element(); assert(node); const String nodeName = Model::getNodeName(Model::asNode(node)); if (nodeName == "mprescripts") { if (preScripts) builder.getLogger()->out(LOG_WARNING, "multiple elements in mmultiscript"); else { if (i % 2 == 1) elem->setSuperScript(nScripts, 0); preScripts = true; i = 0; } } else { if (i % 2 == 0) // sub script { SmartPtr sub = (nodeName == "none") ? 0 : builder.getMathMLElement(node); if (preScripts) elem->setPreSubScript(nPreScripts, sub); else elem->setSubScript(nScripts, sub); } else // super script { SmartPtr sup = (nodeName == "none") ? 0 : builder.getMathMLElement(node); if (preScripts) { elem->setPreSuperScript(nPreScripts, sup); nPreScripts++; } else { elem->setSuperScript(nScripts, sup); nScripts++; } } i++; } iter.next(); } if (preScripts && i % 2 == 1) elem->setPreSuperScript(nPreScripts, 0); elem->setScriptsSize(nScripts); elem->setPreScriptsSize(nPreScripts); } }; #if GMV_ENABLE_BOXML ///////////////// // BOXML BUILDERS ///////////////// struct BoxMLElementBuilder { typedef BoxMLElement target_type; static SmartPtr getContext(const TemplateBuilder& builder) { return builder.getBoxMLNamespaceContext(); } static void begin(const TemplateBuilder&, const typename Model::Element&, const SmartPtr&) { } static void end(const TemplateBuilder&, const typename Model::Element&, const SmartPtr&) { } static void refine(const TemplateBuilder&, const typename Model::Element&, const SmartPtr&) { } static void construct(const TemplateBuilder&, const typename Model::Element&, const SmartPtr&) { } }; struct MathMLBoxMLAdapterBuilder : public MathMLElementBuilder { typedef MathMLBoxMLAdapter type; }; struct BoxMLMathMLAdapterBuilder : public BoxMLElementBuilder { typedef BoxMLMathMLAdapter type; }; struct BoxMLBinContainerElementBuilder : public BoxMLElementBuilder { static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { elem->setChild(builder.getBoxMLElement(typename Model::ElementIterator(el, BOXML_NS_URI).element())); } }; struct BoxMLLinearContainerElementBuilder : public BoxMLElementBuilder { static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { std::vector > content; builder.getChildBoxMLElements(el, content); elem->swapContent(content); } }; struct BoxML_box_ElementBuilder : public BoxMLBinContainerElementBuilder { typedef BoxMLboxElement type; }; struct BoxML_action_ElementBuilder : public BoxMLLinearContainerElementBuilder { typedef BoxMLActionElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Action, selection)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Action, actiontype)); } }; struct BoxML_at_ElementBuilder : public BoxMLBinContainerElementBuilder { typedef BoxMLAtElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, At, x)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, At, y)); } }; struct BoxML_decor_ElementBuilder : public BoxMLBinContainerElementBuilder { typedef BoxMLDecorElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Decor, type)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Decor, color)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Decor, thickness)); } }; struct BoxML_g_ElementBuilder : public BoxMLLinearContainerElementBuilder { typedef BoxMLGroupElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Text, size)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Text, color)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Text, background)); } }; struct BoxML_h_ElementBuilder : public BoxMLLinearContainerElementBuilder { typedef BoxMLHElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, H, spacing)); } }; struct BoxML_ink_ElementBuilder : public BoxMLElementBuilder { typedef BoxMLInkElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Ink, color)); BoxML_space_ElementBuilder::refine(builder, el, elem); } }; struct BoxML_layout_ElementBuilder : public BoxMLLinearContainerElementBuilder { typedef BoxMLLayoutElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Layout, width)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Layout, height)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Layout, depth)); } }; #if 0 struct BoxML_par_ElementBuilder : public BoxMLElementBuilder { typedef BoxMLParagraphElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, V, align)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, V, minlinespacing)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Text, width)); } static void construct(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { std::vector > content; for (typename Model::NodeIterator iter(Model::asNode(el)); iter.more(); iter.next()) { typename Model::Node p = iter.node(); assert(p); if (Model::getNodeType(p) == Model::TEXT_NODE) { SmartPtr text = builder.getElement(el); text->setContent(Model::getNodeValue(p)); content.push_back(text); } else if (Model::getNodeType(p) == Model::ELEMENT_NODE && Model::getNodeNamespaceURI(p) == BOXML_NS_URI) content.push_back(builder.getBoxMLElement(Model::asElement(p))); } elem->swapContent(content); } }; #endif struct BoxML_space_ElementBuilder : public BoxMLElementBuilder { typedef BoxMLSpaceElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Space, width)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Space, height)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Space, depth)); } }; struct BoxML_text_ElementBuilder : public BoxMLElementBuilder { typedef BoxMLTextElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Text, size)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Text, color)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Text, background)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, Text, width)); } static void construct(const TemplateBuilder&, const typename Model::Element& el, const SmartPtr& elem) { String content; for (typename Model::NodeIterator iter(Model::asNode(el)); iter.more(); iter.next()) { typename Model::Node p = iter.node(); assert(p); if (Model::getNodeType(p) == Model::TEXT_NODE) content += Model::getNodeValue(p); } content = trimSpacesLeft(trimSpacesRight(collapseSpaces(content))); elem->setContent(content); } }; struct BoxML_v_ElementBuilder : public BoxMLLinearContainerElementBuilder { typedef BoxMLVElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, V, enter)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, V, exit)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, V, indent)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, V, minlinespacing)); } }; struct BoxML_hv_ElementBuilder : public BoxMLLinearContainerElementBuilder { typedef BoxMLHVElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, HV, spacing)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, HV, indent)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, HV, minlinespacing)); } }; struct BoxML_hov_ElementBuilder : public BoxMLLinearContainerElementBuilder { typedef BoxMLHOVElement type; static void refine(const TemplateBuilder& builder, const typename Model::Element& el, const SmartPtr& elem) { builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, HOV, spacing)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, HOV, indent)); builder.refineAttribute(elem, el, ATTRIBUTE_SIGNATURE(BoxML, HOV, minlinespacing)); } }; #endif // GMV_ENABLE_BOXML //////////////////////////// // BUILDER AUXILIARY METHODS //////////////////////////// SmartPtr getAttribute(const typename Model::Element& el, const AttributeSignature& signature) const { SmartPtr attr; if (signature.fromElement) if (Model::hasAttribute(el, signature.name)) attr = Attribute::create(signature, Model::getAttribute(el, signature.name)); if (!attr && signature.fromContext) attr = refinementContext.get(signature); return attr; } SmartPtr getAttributeValue(const typename Model::Element& el, const AttributeSignature& signature) const { if (SmartPtr attr = getAttribute(el, signature)) return attr->getValue(); else return signature.getDefaultValue(); } void refineAttribute(const SmartPtr& elem, const typename Model::Element& el, const AttributeSignature& signature) const { if (SmartPtr attr = getAttribute(el, signature)) elem->setAttribute(attr); else elem->removeAttribute(signature); } /////////////////////////////////////// // BUILDER AUXILIARY METHODS FOR MATHML /////////////////////////////////////// SmartPtr getMathMLElementNoCreate(const typename Model::Element& el) const { if (el) { //std::cout << "createMathMLElement " << el.get_localName() << std::endl; typename MathMLBuilderMap::const_iterator m = mathmlMap.find(Model::getNodeName(Model::asNode(el))); if (m != mathmlMap.end()) { SmartPtr elem = (this->*(m->second))(el); assert(elem); elem->resetDirtyStructure(); elem->resetDirtyAttribute(); return elem; } } return 0; } SmartPtr getMathMLElement(const typename Model::Element& el) const { if (SmartPtr elem = getMathMLElementNoCreate(el)) return elem; else return createMathMLDummyElement(); } void getChildMathMLElements(const typename Model::Element& el, std::vector >& content) const { content.clear(); for (typename Model::ElementIterator iter(el, MATHML_NS_URI); iter.more(); iter.next()) content.push_back(getMathMLElement(iter.element())); } void getChildMathMLTextNodes(const typename Model::Element& el, std::vector >& content) const { bool first = true; content.clear(); for (typename Model::NodeIterator iter(Model::asNode(el)); iter.more(); ) { typename Model::Node n = iter.node(); assert(n); switch (Model::getNodeType(n)) { case Model::TEXT_NODE: { // ok, we have a chunk of text String s = collapseSpaces(Model::getNodeValue(n)); iter.next(); // ...but spaces at the at the beginning (end) are deleted only if this // is the very first (last) chunk in the token. if (first) s = trimSpacesLeft(s); if (!iter.more()) s = trimSpacesRight(s); content.push_back(createMathMLTextNode(s)); } break; case Model::ELEMENT_NODE: { if (Model::getNodeNamespaceURI(n) == MATHML_NS_URI) { const String nodeName = Model::getNodeName(n); if (nodeName == "mglyph") content.push_back(update_MathML_mglyph_Node(Model::asElement(n))); else if (nodeName == "malignmark") content.push_back(update_MathML_malignmark_Node(Model::asElement(n))); } } iter.next(); break; default: iter.next(); break; } first = false; } } #if ENABLE_BUILDER_CACHE SmartPtr createMathMLTextNode(const String& content) const { std::pair r = mathmlTextNodeCache.insert(std::make_pair(content, SmartPtr(0))); if (r.second) { if (content == MathMLFunctionApplicationNode::getContent()) r.first->second = MathMLFunctionApplicationNode::create(); else if (content == MathMLInvisibleTimesNode::getContent()) r.first->second = MathMLInvisibleTimesNode::create(); else r.first->second = MathMLStringNode::create(content); return r.first->second; } else return r.first->second; } #else SmartPtr createMathMLTextNode(const String& content) const { if (content == MathMLFunctionApplicationNode::getContent()) return MathMLFunctionApplicationNode::create(); else if (content == MathMLInvisibleTimesNode::getContent()) return MathMLInvisibleTimesNode::create(); else return MathMLStringNode::create(content); } #endif // ENABLE_BUILDER_CACHE SmartPtr createMathMLDummyElement(void) const { SmartPtr elem = MathMLDummyElement::create(this->getMathMLNamespaceContext()); elem->resetDirtyStructure(); elem->resetDirtyAttribute(); return elem; } #if GMV_ENABLE_BOXML ////////////////////////////////////// // BUILDER AUXILIARY METHODS FOR BOXML ////////////////////////////////////// SmartPtr getBoxMLElement(const typename Model::Element& el) const { if (el) { typename BoxMLBuilderMap::const_iterator m = boxmlMap.find(Model::getNodeName(Model::asNode(el))); if (m != boxmlMap.end()) { SmartPtr elem = (this->*(m->second))(el); assert(elem); elem->resetDirtyStructure(); elem->resetDirtyAttribute(); return elem; } } return createBoxMLDummyElement(); } void getChildBoxMLElements(const typename Model::Element& el, std::vector >& content) const { content.clear(); for (typename Model::ElementIterator iter(el, BOXML_NS_URI); iter.more(); iter.next()) content.push_back(getBoxMLElement(iter.element())); } SmartPtr createBoxMLDummyElement(void) const { assert(false); return 0; } #endif // GMV_ENABLE_BOXML public: static SmartPtr create(void) { return new TemplateBuilder(); } virtual void forgetElement(Element* elem) const { this->linkerRemove(elem); } virtual SmartPtr getRootElement() const { if (typename Model::Element root = this->getRootModelElement()) { const String ns = Model::getNodeNamespaceURI(Model::asNode(root)); if (ns == MATHML_NS_URI) return getMathMLElement(root); #if GMV_ENABLE_BOXML else if (ns == BOXML_NS_URI) return getBoxMLElement(root); #endif // GMV_ENABLE_BOXML } return 0; } private: #if ENABLE_BUILDER_CACHE typedef HASH_MAP_NS::hash_map, StringHash, StringEq> MathMLTextNodeCache; mutable MathMLTextNodeCache mathmlTextNodeCache; #endif // ENABLE_BUILDER_CACHE typedef SmartPtr (TemplateBuilder::* MathMLUpdateMethod)(const typename Model::Element&) const; typedef HASH_MAP_NS::hash_map MathMLBuilderMap; static MathMLBuilderMap mathmlMap; static bool mathmlMapInitialized; #if GMV_ENABLE_BOXML typedef SmartPtr (TemplateBuilder::* BoxMLUpdateMethod)(const typename Model::Element&) const; typedef HASH_MAP_NS::hash_map BoxMLBuilderMap; static BoxMLBuilderMap boxmlMap; static bool boxmlMapInitialized; #endif // GMV_ENABLE_BOXML mutable RefinementContext refinementContext; }; template typename TemplateBuilder::MathMLBuilderMap TemplateBuilder::mathmlMap; template bool TemplateBuilder::mathmlMapInitialized = false; #ifdef GMV_ENABLE_BOXML template typename TemplateBuilder::BoxMLBuilderMap TemplateBuilder::boxmlMap; template bool TemplateBuilder::boxmlMapInitialized = false; #endif // GMV_ENABLE_BOXML #endif // __TemplateBuilder_hh__ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/common/TemplateReaderBuilder.hh��������������������������������������0000644�0001750�0001750�00000003424�10661271072�021423� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TemplateReaderBuilder_hh__ #define __TemplateReaderBuilder_hh__ #include "Builder.hh" #include "String.hh" #include "TemplateReaderModel.hh" template class TemplateReaderBuilder : public Builder { protected: TemplateReaderBuilder(void) { } virtual ~TemplateReaderBuilder() { } public: void setReader(const SmartPtr& r) { reader = r; } SmartPtr getReader(void) const { return reader; } protected: void setRootModelElement(const SmartPtr& r) { setReader(r); } SmartPtr getRootModelElement(void) const { if (reader) { // In this case the reader must play the role of the root // document element, that is it must be in a state where // it "points to" the beginning of the document. Thus we // invoke the reset method on it. reader->reset(); return reader; } else return 0; } private: SmartPtr reader; }; #endif // __TemplateReaderBuilder_hh__ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/common/TemplateReaderModel.hh����������������������������������������0000644�0001750�0001750�00000005634�10661271072�021102� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TemplateReaderModel_hh__ #define __TemplateReaderModel_hh__ #include "SmartPtr.hh" #include "String.hh" #include "TemplateReaderNodeIterator.hh" #include "TemplateReaderElementIterator.hh" template struct TemplateReaderModel { enum { TEXT_NODE = Reader::TEXT_NODE, ELEMENT_NODE = Reader::ELEMENT_NODE }; typedef SmartPtr Node; typedef SmartPtr Element; typedef SmartPtr Document; typedef TemplateReaderNodeIterator NodeIterator; typedef TemplateReaderElementIterator ElementIterator; static SmartPtr document(const class AbstractLogger&, const String& path, bool subst = false) { return Reader::create(path, subst); } static SmartPtr getDocumentElement(const SmartPtr& reader) { return reader; } static void reset(const SmartPtr& reader) { reader->reset(); } static SmartPtr asNode(const SmartPtr& reader) { return reader; } static SmartPtr asElement(const SmartPtr& reader) { return reader; } static unsigned getNodeType(const SmartPtr& reader) { return reader->getNodeType(); } static String getNodeName(const SmartPtr& reader) { return reader->getNodeName(); } static String getNodeValue(const SmartPtr& reader) { return reader->getNodeValue(); } static String getNodeNamespaceURI(const SmartPtr& reader) { return reader->getNodeNamespaceURI(); } static String getElementValue(const SmartPtr& reader) { String value; for (NodeIterator iter(reader); iter.more(); iter.next()) if (reader->getNodeType() == TEXT_NODE) value += reader->getNodeValue(); return value; } static String getAttribute(const SmartPtr& reader, const String& name) { return reader->getAttribute(name); } static bool hasAttribute(const SmartPtr& reader, const String& name) { return reader->hasAttribute(name); } struct Hash { size_t operator()(const SmartPtr& reader) const { return reader->getNodeId(); } }; }; #endif // __TemplateReaderModel_hh__ ����������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/common/TemplateReaderElementIterator.hh������������������������������0000644�0001750�0001750�00000003615�10661271072�023142� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TemplateReaderElementIterator_hh__ #define __TemplateReaderElementIterator_hh__ template struct TemplateReaderElementIterator { TemplateReaderElementIterator(const SmartPtr& r, const String& ns = "*", const String& n = "*") : namespaceURI(ns), name(n), reader(r) { reader->moveToFirstChild(); findValidNode(); } ~TemplateReaderElementIterator() { reader->moveToParentNode(); } SmartPtr element(void) const { return more() ? reader : 0; } bool more(void) const { return reader->more(); } bool valid() const { return (reader->getNodeType() == Reader::ELEMENT_NODE) && (namespaceURI == "*" || namespaceURI == reader->getNodeNamespaceURI()) && (name == "*" || name == reader->getNodeName()); } void next(void) { reader->moveToNextSibling(); findValidNode(); } protected: void findValidNode() { while (reader->more() && !valid()) reader->moveToNextSibling(); } String namespaceURI; String name; SmartPtr reader; }; #endif // __TemplateReaderElementIterator_hh__ �������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/common/TemplateReaderNodeIterator.hh���������������������������������0000644�0001750�0001750�00000002607�10661271072�022436� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TemplateReaderNodeIterator_hh__ #define __TemplateReaderNodeIterator_hh__ template struct TemplateReaderNodeIterator { TemplateReaderNodeIterator(const SmartPtr& r) : reader(r) { reader->moveToFirstChild(); } ~TemplateReaderNodeIterator() { reader->moveToParentNode(); } SmartPtr node(void) const { return more() ? reader : 0; } bool more(void) const { return reader->more(); } void next(void) { reader->moveToNextSibling(); } protected: SmartPtr reader; }; #endif // __TemplateReaderNodeIterator_hh__ �������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/common/Reader.hh�����������������������������������������������������0000644�0001750�0001750�00000003274�10661271072�016423� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Reader_hh__ #define __Reader_hh__ #include "String.hh" #include "Object.hh" class Reader : public Object { public: virtual unsigned nodeType(void) const = 0; virtual String name(void) const = 0; virtual String namespaceURI(void) const = 0; virtual String prefix(void) const = 0; virtual String value(void) const = 0; virtual bool hasAttribute(const String&) const = 0; virtual bool hasAttributeNS(const String&, const String&) const = 0; virtual unsigned attributeCount(void) const = 0; virtual String getAttribute(const String&) const = 0; virtual String getAttributeNS(const String&, const String&) const = 0; virtual String getAttributeNo(unsigned) const = 0; virtual bool more(void) const = 0; virtual void firstChild(void) = 0; virtual void parentNode(void) = 0; virtual void nextSibling(void) = 0; }; #endif // __Reader_hh__ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/common/Builder.hh����������������������������������������������������0000644�0001750�0001750�00000003540�10661271072�016603� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Builder_hh__ #define __Builder_hh__ #include "Object.hh" #include "SmartPtr.hh" class GMV_MathView_EXPORT Builder : public Object { protected: Builder(void); virtual ~Builder(); public: virtual SmartPtr getRootElement(void) const = 0; virtual void forgetElement(Element*) const = 0; void setLogger(const SmartPtr&); SmartPtr getLogger(void) const; void setMathMLNamespaceContext(const SmartPtr&); SmartPtr getMathMLNamespaceContext(void) const; #if GMV_ENABLE_BOXML void setBoxMLNamespaceContext(const SmartPtr&); SmartPtr getBoxMLNamespaceContext(void) const; #endif // GMV_ENABLE_BOXML protected: SmartPtr logger; SmartPtr mathmlContext; #if GMV_ENABLE_BOXML SmartPtr boxmlContext; #endif // GMV_ENABLE_BOXML }; #endif // __Builder_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/common/TemplateLinker.hh���������������������������������������������0000644�0001750�0001750�00000005504�10661271072�020137� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TemplateLinker_hh__ #define __TemplateLinker_hh__ #include "HashMap.hh" template class TemplateLinker { public: TemplateLinker(void) { } ~TemplateLinker() { } void add(const ELEMENT& el, class Element* elem) { assert(el); assert(elem); forwardMap[el] = elem; backwardMap[elem] = el; } void update(const ELEMENT& el, class Element* elem) { assert(el); assert(elem); class Element*& oldElem = forwardMap[el]; if (oldElem != elem) { oldElem = elem; backwardMap[elem] = el; } } bool remove(const ELEMENT& el) { assert(el); typename ForwardMap::iterator p = forwardMap.find(el); if (p != forwardMap.end()) { backwardMap.erase((*p).second); forwardMap.erase(p); return true; } else return false; } bool remove(class Element* elem) { assert(elem); typename BackwardMap::iterator p = backwardMap.find(elem); if (p != backwardMap.end()) { forwardMap.erase((*p).second); backwardMap.erase(p); return true; } else return false; } class Element* assoc(const ELEMENT& el) const { assert(el); typename ForwardMap::const_iterator p = forwardMap.find(el); if (p != forwardMap.end()) return (*p).second; else return 0; } ELEMENT assoc(class Element* elem) const { assert(elem); typename BackwardMap::const_iterator p = backwardMap.find(elem); if (p != backwardMap.end()) return (*p).second; else return ELEMENT(); } protected: struct Element_hash { size_t operator()(class Element* elem) const { assert(elem); return reinterpret_cast(elem); } }; typedef HASH_MAP_NS::hash_map ForwardMap; typedef HASH_MAP_NS::hash_map BackwardMap; ForwardMap forwardMap; BackwardMap backwardMap; }; #endif // __TemplateLinker_hh__ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/common/TemplateReaderRefinementContext.hh����������������������������0000644�0001750�0001750�00000005231�10661271072�023474� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TemplateReaderRefinementContext_hh__ #define __TemplateReaderRefinementContext_hh__ #include #include "Attribute.hh" #include "AttributeSet.hh" template class TemplateReaderRefinementContext { public: TemplateReaderRefinementContext(void) { } SmartPtr get(const class AttributeSignature& sig) const { for (typename std::list::const_iterator p = context.begin(); p != context.end(); p++) { const Context& c = *p; if (SmartPtr attr = c.attributes->get(ATTRIBUTE_ID_OF_SIGNATURE(sig))) return attr; else if (const String* rawValue = c.get(sig.name)) { SmartPtr attr = Attribute::create(sig, *rawValue); c.attributes->set(attr); return attr; } } return 0; } void push(const SmartPtr& reader) { assert(reader); context.push_front(Context(reader)); } void pop(void) { assert(!context.empty()); context.pop_front(); } private: struct Context { typedef std::pair RawAttribute; Context(const SmartPtr& reader) : attributes(AttributeSet::create()) { for (int index = 0; index < reader->getAttributeCount(); index++) { String namespaceURI; String name; String value; reader->getAttribute(index, namespaceURI, name, value); if (namespaceURI.empty()) rawAttributes.push_back(RawAttribute(name, value)); } } const String* get(const String& name) const { for (std::vector::const_iterator p = rawAttributes.begin(); p != rawAttributes.end(); p++) if (p->first == name) return &p->second; return 0; } std::vector > rawAttributes; SmartPtr attributes; }; std::list context; }; #endif // __TemplateReaderRefinementContext_hh__ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/common/TemplateRefinementContext.hh����������������������������������0000644�0001750�0001750�00000004167�10661271072�022360� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TemplateRefinementContext_hh__ #define __TemplateRefinementContext_hh__ #include #include "Attribute.hh" #include "AttributeSet.hh" template class TemplateRefinementContext { public: TemplateRefinementContext(void) { } SmartPtr get(const class AttributeSignature& sig) const { for (typename std::list::const_iterator p = context.begin(); p != context.end(); p++) { const Context& c = *p; if (SmartPtr attr = c.attributes->get(ATTRIBUTE_ID_OF_SIGNATURE(sig))) return attr; else if (Model::hasAttribute(c.elem, sig.name)) { SmartPtr attr = Attribute::create(sig, Model::getAttribute(c.elem, sig.name)); c.attributes->set(attr); return attr; } } return 0; } void push(const typename Model::Element& elem) { assert(elem); context.push_front(Context(elem, AttributeSet::create())); } void pop(void) { assert(!context.empty()); context.pop_front(); } private: struct Context { Context(const typename Model::Element& el, const SmartPtr al) : elem(el), attributes(al) { } typename Model::Element elem; SmartPtr attributes; }; std::list context; }; #endif // __TemplateRefinementContext_hh__ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/common/Makefile.am���������������������������������������������������0000644�0001750�0001750�00000001566�10613606741�016740� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ NULL = noinst_LTLIBRARIES = libfrontend_common.la libfrontend_common_la_CPPFLAGS = -DGMV_MathView_DLL libfrontend_common_la_SOURCES = \ Builder.cc \ $(NULL) noinst_HEADERS = \ Builder.hh \ TemplateBuilder.hh \ TemplateLinker.hh \ TemplateRefinementContext.hh \ TemplateReaderModel.hh \ TemplateReaderBuilder.hh \ TemplateReaderNodeIterator.hh \ TemplateReaderElementIterator.hh \ TemplateReaderRefinementContext.hh \ TemplateSetup.hh \ Reader.hh \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ TemplateNodeIterator.hh \ TemplateElementValidator.hh \ TemplateElementIterator.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ $(NULL) ������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/common/TemplateNodeIterator.hh���������������������������������������0000644�0001750�0001750�00000002640�10661271072�021310� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TemplateNodeIterator_hh__ #define __TemplateNodeIterator_hh__ #include "gmv_defines.h" template class GMV_MathView_EXPORT TemplateNodeIterator { public: TemplateNodeIterator(const typename Model::Node& root) : currentNode(Model::getFirstChild(root)) { } typename Model::Node node(void) const { return currentNode; } bool more(void) const { return currentNode; } void next(void) { assert(currentNode); currentNode = Model::getNextSibling(currentNode); } protected: typename Model::Node currentNode; }; #endif // __TemplateNodeIterator_hh__ ������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/common/TemplateElementValidator.hh�����������������������������������0000644�0001750�0001750�00000002752�10661271072�022154� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TemplateElementValidator_hh__ #define __TemplateElementValidator_hh__ #include "gmv_defines.h" template class GMV_MathView_EXPORT TemplateElementValidator { public: TemplateElementValidator(const String& ns = "*", const String& n = "*") : namespaceURI(ns), name(n) { } bool valid(const typename Model::Node& p) const { assert(p); return (Model::getNodeType(p) == Model::ELEMENT_NODE) && (namespaceURI == "*" || namespaceURI == Model::getNodeNamespaceURI(p)) && (name == "*" || name == Model::getNodeName(p)); } private: String namespaceURI; String name; }; #endif // __TemplateElementValidator_hh__ ����������������������gtkmathview-0.8.0/src/frontend/common/Builder.cc����������������������������������������������������0000644�0001750�0001750�00000003260�10661271072�016570� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "Builder.hh" #include "AbstractLogger.hh" #include "MathMLNamespaceContext.hh" #if GMV_ENABLE_BOXML #include "BoxMLNamespaceContext.hh" #endif // GMV_ENABLE_BOXML Builder::Builder() { } Builder::~Builder() { } void Builder::setMathMLNamespaceContext(const SmartPtr& ctxt) { mathmlContext = ctxt; } SmartPtr Builder::getMathMLNamespaceContext() const { return mathmlContext; } #if GMV_ENABLE_BOXML void Builder::setBoxMLNamespaceContext(const SmartPtr& ctxt) { boxmlContext = ctxt; } SmartPtr Builder::getBoxMLNamespaceContext() const { return boxmlContext; } #endif // GMV_ENABLE_BOXML void Builder::setLogger(const SmartPtr& l) { logger = l; } SmartPtr Builder::getLogger() const { return logger; } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/common/Makefile.in���������������������������������������������������0000644�0001750�0001750�00000045421�10704610555�016746� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/frontend/common DIST_COMMON = $(mathview_HEADERS) $(noinst_HEADERS) \ $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libfrontend_common_la_LIBADD = am__objects_1 = am_libfrontend_common_la_OBJECTS = libfrontend_common_la-Builder.lo \ $(am__objects_1) libfrontend_common_la_OBJECTS = $(am_libfrontend_common_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libfrontend_common_la_SOURCES) DIST_SOURCES = $(libfrontend_common_la_SOURCES) am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(mathviewdir)" mathviewHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(mathview_HEADERS) $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = noinst_LTLIBRARIES = libfrontend_common.la libfrontend_common_la_CPPFLAGS = -DGMV_MathView_DLL libfrontend_common_la_SOURCES = \ Builder.cc \ $(NULL) noinst_HEADERS = \ Builder.hh \ TemplateBuilder.hh \ TemplateLinker.hh \ TemplateRefinementContext.hh \ TemplateReaderModel.hh \ TemplateReaderBuilder.hh \ TemplateReaderNodeIterator.hh \ TemplateReaderElementIterator.hh \ TemplateReaderRefinementContext.hh \ TemplateSetup.hh \ Reader.hh \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ TemplateNodeIterator.hh \ TemplateElementValidator.hh \ TemplateElementIterator.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/frontend/common/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/frontend/common/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libfrontend_common.la: $(libfrontend_common_la_OBJECTS) $(libfrontend_common_la_DEPENDENCIES) $(CXXLINK) $(libfrontend_common_la_LDFLAGS) $(libfrontend_common_la_OBJECTS) $(libfrontend_common_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfrontend_common_la-Builder.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libfrontend_common_la-Builder.lo: Builder.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libfrontend_common_la-Builder.lo -MD -MP -MF "$(DEPDIR)/libfrontend_common_la-Builder.Tpo" -c -o libfrontend_common_la-Builder.lo `test -f 'Builder.cc' || echo '$(srcdir)/'`Builder.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libfrontend_common_la-Builder.Tpo" "$(DEPDIR)/libfrontend_common_la-Builder.Plo"; else rm -f "$(DEPDIR)/libfrontend_common_la-Builder.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Builder.cc' object='libfrontend_common_la-Builder.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfrontend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libfrontend_common_la-Builder.lo `test -f 'Builder.cc' || echo '$(srcdir)/'`Builder.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-mathviewHEADERS: $(mathview_HEADERS) @$(NORMAL_INSTALL) test -z "$(mathviewdir)" || $(mkdir_p) "$(DESTDIR)$(mathviewdir)" @list='$(mathview_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(mathviewHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(mathviewdir)/$$f'"; \ $(mathviewHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(mathviewdir)/$$f"; \ done uninstall-mathviewHEADERS: @$(NORMAL_UNINSTALL) @list='$(mathview_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(mathviewdir)/$$f'"; \ rm -f "$(DESTDIR)$(mathviewdir)/$$f"; \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(mathviewdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-mathviewHEADERS install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-mathviewHEADERS .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-mathviewHEADERS install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-info-am \ uninstall-mathviewHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/common/TemplateSetup.hh����������������������������������������������0000644�0001750�0001750�00000011541�10661271072�020011� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Configuration.hh" #include "ValueConversion.hh" #include "Attribute.hh" #include "AttributeSet.hh" #include "AttributeSignature.hh" #include "MathMLAttributeSignatures.hh" #include "MathMLOperatorDictionary.hh" template struct TemplateSetup { static String appendSectionName(const String& path, const String& name) { if (path.empty()) return name; else return path + "/" + name; } static void parse(const AbstractLogger& logger, Configuration& conf, const typename Model::Element& node, const String& path) { for (typename Model::ElementIterator iter(node); iter.more(); iter.next()) { typename Model::Element elem = iter.element(); assert(elem); const String name = Model::getNodeName(Model::asNode(elem)); if (name == "section") { const String sectionName = Model::getAttribute(elem, "name"); parse(logger, conf, elem, appendSectionName(path, sectionName)); } else if (name == "key") { const String keyName = Model::getAttribute(elem, "name"); const String keyValue = Model::getElementValue(elem); conf.add(appendSectionName(path, keyName), keyValue); } else logger.out(LOG_WARNING, "unrecognized element `%s' in configuration file (ignored)", name.c_str()); } } static void parse(const AbstractLogger& logger, Configuration& conf, const typename Model::Element& node) { parse(logger, conf, node, ""); } static void getAttribute(const typename Model::Element& node, const AttributeSignature& signature, const SmartPtr& aList) { assert(aList); const String attrVal = Model::getAttribute(node, signature.name); if (attrVal.empty()) return; aList->set(Attribute::create(signature, attrVal)); } static void parse(const AbstractLogger& logger, MathMLOperatorDictionary& dictionary, const typename Model::Element& root) { for (typename Model::ElementIterator iter(root, "*", "operator"); iter.more(); iter.next()) { typename Model::Element elem = iter.element(); const String opName = Model::getAttribute(elem, "name"); if (!opName.empty()) { SmartPtr defaults = AttributeSet::create(); getAttribute(elem, ATTRIBUTE_SIGNATURE(MathML, Operator, form), defaults); getAttribute(elem, ATTRIBUTE_SIGNATURE(MathML, Operator, fence), defaults); getAttribute(elem, ATTRIBUTE_SIGNATURE(MathML, Operator, separator), defaults); getAttribute(elem, ATTRIBUTE_SIGNATURE(MathML, Operator, lspace), defaults); getAttribute(elem, ATTRIBUTE_SIGNATURE(MathML, Operator, rspace), defaults); getAttribute(elem, ATTRIBUTE_SIGNATURE(MathML, Operator, stretchy), defaults); getAttribute(elem, ATTRIBUTE_SIGNATURE(MathML, Operator, symmetric), defaults); getAttribute(elem, ATTRIBUTE_SIGNATURE(MathML, Operator, maxsize), defaults); getAttribute(elem, ATTRIBUTE_SIGNATURE(MathML, Operator, minsize), defaults); getAttribute(elem, ATTRIBUTE_SIGNATURE(MathML, Operator, largeop), defaults); getAttribute(elem, ATTRIBUTE_SIGNATURE(MathML, Operator, movablelimits), defaults); getAttribute(elem, ATTRIBUTE_SIGNATURE(MathML, Operator, accent), defaults); dictionary.add(logger, opName, Model::getAttribute(elem, "form"), defaults); } else logger.out(LOG_WARNING, "operator dictionary: could not find operator name"); } } template static bool load(const AbstractLogger& logger, Class& obj, const String& description, const String& rootTag, const String& path) { logger.out(LOG_DEBUG, "loading %s from `%s'...", description.c_str(), path.c_str()); if (typename Model::Document doc = Model::document(logger, path, subst)) if (typename Model::Element root = Model::getDocumentElement(doc)) if (Model::getNodeName(Model::asNode(root)) == rootTag) { parse(logger, obj, root); return true; } else logger.out(LOG_WARNING, "configuration file `%s': could not find root element", path.c_str()); return false; } }; ���������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/frontend/Makefile.in����������������������������������������������������������0000644�0001750�0001750�00000041462�10704610553�015455� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/frontend DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = common custom_reader libxml2_reader libxml2 gmetadom DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = @COND_CUSTOM_READER_FALSE@MAYBE_CUSTOM_READER = $(NULL) @COND_CUSTOM_READER_TRUE@MAYBE_CUSTOM_READER = custom_reader @COND_LIBXML2_READER_FALSE@MAYBE_LIBXML2_READER = $(NULL) @COND_LIBXML2_READER_TRUE@MAYBE_LIBXML2_READER = libxml2_reader @COND_LIBXML2_FALSE@MAYBE_LIBXML2 = $(NULL) @COND_LIBXML2_TRUE@MAYBE_LIBXML2 = libxml2 @COND_GMETADOM_FALSE@MAYBE_GMETADOM = $(NULL) @COND_GMETADOM_TRUE@MAYBE_GMETADOM = gmetadom SUBDIRS = common $(MAYBE_CUSTOM_READER) $(MAYBE_LIBXML2_READER) $(MAYBE_LIBXML2) $(MAYBE_GMETADOM) all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/frontend/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/frontend/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ clean clean-generic clean-libtool clean-recursive ctags \ ctags-recursive distclean distclean-generic distclean-libtool \ distclean-recursive distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-exec install-exec-am install-info \ install-info-am install-man install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic maintainer-clean-recursive \ mostlyclean mostlyclean-generic mostlyclean-libtool \ mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/����������������������������������������������������������������������0000777�0001750�0001750�00000000000�10704625467�013247� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/Makefile.am�����������������������������������������������������������0000644�0001750�0001750�00000000524�10613606763�015215� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ NULL = if COND_GTK MAYBE_GTK_SUBDIRS = gtk else MAYBE_GTK_SUBDIRS = $(NULL) endif if COND_SVG MAYBE_SVG_SUBDIRS = svg else MAYBE_SVG_SUBDIRS = $(NULL) endif if COND_PS MAYBE_PS_SUBDIRS = ps else MAYBE_PS_SUBDIRS = $(NULL) endif SUBDIRS = \ common \ $(MAYBE_GTK_SUBDIRS) \ $(MAYBE_SVG_SUBDIRS) \ $(MAYBE_PS_SUBDIRS) \ $(NULL) ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/�������������������������������������������������������������������0000777�0001750�0001750�00000000000�10704625470�013663� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_InkArea.hh������������������������������������������������������0000644�0001750�0001750�00000002476�10661271100�016032� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __PS_InkArea_hh__ #define __PS_InkArea_hh__ #include "InkArea.hh" class PS_InkArea : public InkArea { protected: PS_InkArea(const AreaRef& area) : InkArea(area) { } virtual ~PS_InkArea() { } public: static SmartPtr create(const AreaRef& area) { return new PS_InkArea(area); } virtual AreaRef clone(const AreaRef& area) const { return create(area); } virtual void render(RenderingContext&, const scaled&, const scaled&) const; }; #endif // __PS_InkArea_hh__ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/T1_FontDataBase.hh�������������������������������������������������0000644�0001750�0001750�00000003710�10661271100�016745� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __T1_FontDataBase_hh__ #define __T1_FontDataBase_hh__ #include #include #include #include #include "Object.hh" #include "SmartPtr.hh" #include "AbstractLogger.hh" #include "Configuration.hh" #include "FontDataBase.hh" class GMV_BackEnd_EXPORT T1_FontDataBase : public FontDataBase { protected: T1_FontDataBase(const SmartPtr&, const SmartPtr&, bool); virtual ~T1_FontDataBase(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&, bool); virtual int getFontId(const String& fontName, float fontSize); virtual void dumpFontTable(std::ostream& os) const; virtual void recallFont(const int id, std::ostringstream& body); virtual void usedChar(const String& content, const String& family); private: SmartPtr logger; const bool subset; struct T1_DataBase { String fontName; UChar8 used[256]; int id; T1_DataBase(String& name, int i, int initVal); }; std::list T1_dB; }; #endif // __T1_FontDataBase_hh__ ��������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_StreamRenderingContext.cc���������������������������������������0000644�0001750�0001750�00000013032�10661271100�021132� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include #include "PS_StreamRenderingContext.hh" #include "String.hh" #include "FontDataBase.hh" #include "T1_FontDataBase.hh" PS_StreamRenderingContext::PS_StreamRenderingContext(const SmartPtr& logger, std::ostream& os, SmartPtr fDb) : PS_RenderingContext(logger), output(os), fontDb(fDb) { } PS_StreamRenderingContext::~PS_StreamRenderingContext() { } /* String PS_StreamRenderingContext::getId(const SmartPtr& elem) const { return ""; } */ void PS_StreamRenderingContext::documentStart(const scaled& x, const scaled& y, const BoundingBox& bbox, const char* name) { time_t curTime = time(NULL); std::ostringstream appName; appName << "MathML to PostScript - written by Luca Padovani & Nicola Rossi"; header << "%!PS-Adobe-3.0 EPSF-3.0" << std::endl; header << "%%BoundingBox: " << PS_RenderingContext::toPS(x) << " " << PS_RenderingContext::toPS(y) << " " << toPS(bbox.width) << " " << toPS(bbox.verticalExtent()) << std::endl << "%%Creator: " << appName.str() << std::endl << "%%CreationDate: " << asctime(localtime(&curTime)) << "%%EndComments" << std::endl << "%%Version: v" << VERSION << std::endl << "%%Pages: 1" << std::endl << "%%Title: " << "\"" << name << "\"" << std::endl << std::endl; } void PS_StreamRenderingContext::documentEnd(void) { output << header.str(); fontDb->dumpFontTable(output); output << std::endl; output << body.str(); output << "showpage" << std::endl; output << "%%Trailer" << std::endl; output << "%%EOF" << std::endl; } void PS_StreamRenderingContext::setGraphicsContext(const RGBColor& strokeColor, const scaled& strokeWidth) { body << strokeColor.red / 255.0 << " " << strokeColor.green / 255.0 << " " << strokeColor.blue / 255.0 << " setrgbcolor" << std::endl; body << PS_RenderingContext::toPS(strokeWidth) << " setlinewidth" << std::endl; } void PS_StreamRenderingContext::rect(const scaled& x, const scaled& y, const scaled& width, const scaled& height, const RGBColor& fillColor, const RGBColor& strokeColor, const scaled& strokeWidth) { setGraphicsContext(strokeColor, strokeWidth); body << "newpath" << std::endl; body << PS_RenderingContext::toPS(x) << " " << PS_RenderingContext::toPS(y) << " moveto" << std::endl; body << PS_RenderingContext::toPS(width) << " " << 0.0 << " rlineto" << std::endl; body << 0.0 << " " << -(PS_RenderingContext::toPS(height)) << " rlineto" << std::endl; body << -(PS_RenderingContext::toPS(width)) << " " << 0.0 << " rlineto" << std::endl; body << "closepath" << std::endl; body << fillColor.red / 255.0 << " " << fillColor.green / 255.0 << " " << fillColor.blue / 255.0 << " " << "setrgbcolor" << " fill" << std::endl; body << "stroke" << std::endl; } void PS_StreamRenderingContext::text(const scaled& x, const scaled& y, const String& family, const scaled& size, const RGBColor& fillColor, const RGBColor& strokeColor, const scaled& strokeWidth, const String& content) { int familyId = fontDb->getFontId(family, toPS(size)); fontDb->recallFont(familyId, body); setGraphicsContext(strokeColor, strokeWidth); body << "newpath" << std::endl; body << PS_RenderingContext::toPS(x) << " " << PS_RenderingContext::toPS(y) << " " << "moveto" << std::endl; body << "("; for (String::const_iterator i = content.begin(); i != content.end(); i++) drawChar((unsigned char) (*i)); body << ") show" << std::endl; fontDb->usedChar(content, family); body << fillColor.red / 255.0 << " " << fillColor.green / 255.0 << " " << fillColor.blue / 255.0 << " " << "setrgbcolor" << " fill" << std::endl; } void PS_StreamRenderingContext::drawChar(unsigned char ch) { switch(ch) { case '(': body << "\\("; break; case ')': body << "\\)"; break; case '\\': body << "\\\\"; break; default: if (isprint(ch) && !isspace(ch)) body << ch; else body << "\\" << (ch / 64) % 8 << (ch / 8) % 8 << ch % 8; break; } } void PS_StreamRenderingContext::line(const scaled& x1, const scaled& y1, const scaled& x2, const scaled& y2, const RGBColor& strokeColor, const scaled& strokeWidth) { setGraphicsContext(strokeColor, strokeWidth); body << "newpath" << std::endl; body << PS_RenderingContext::toPS(x1) << " " << PS_RenderingContext::toPS(y1) << " " << "moveto" << std::endl; body << PS_RenderingContext::toPS(x2) << " " << PS_RenderingContext::toPS(y2) << " " << "lineto" << std::endl; } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_MathGraphicDevice.hh��������������������������������������������0000644�0001750�0001750�00000002476�10661271100�020027� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __PS_MathGraphicDevice_hh__ #define __PS_MathGraphicDevice_hh__ #include "MathGraphicDevice.hh" class PS_MathGraphicDevice : public MathGraphicDevice { protected: PS_MathGraphicDevice(const SmartPtr&, const SmartPtr&); virtual ~PS_MathGraphicDevice(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); }; #endif // __PS_MathGraphicDevice_hh__ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_Backend.cc������������������������������������������������������0000644�0001750�0001750�00000010221�10661271100�016020� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "PS_Backend.hh" #include "PS_AreaFactory.hh" #include "PS_MathGraphicDevice.hh" #if GMV_ENABLE_BOXML #include "PS_BoxGraphicDevice.hh" #else #include "BoxGraphicDevice.hh" #endif // GMV_ENABLE_BOXML #include "SpaceShaper.hh" #include "NullShaper.hh" #ifdef GMV_ENABLE_TFM #include "TFMManager.hh" #include "TFMFontManager.hh" #include "PS_TFMComputerModernMathGraphicDevice.hh" #include "PS_TFMComputerModernShaper.hh" #endif // GMV_ENABLE_TFM #include "ShaperManager.hh" PS_Backend::PS_Backend(const SmartPtr& l, const SmartPtr& conf) : Backend(l, conf) { SmartPtr factory = PS_AreaFactory::create(); #if GMV_ENABLE_TFM SmartPtr cmShaper; // the fact that the Type1 and TT versions of the computer modern // shapers for the PS backend share the same font manager is just a // twisted coincidence. Beware SmartPtr tfm = TFMManager::create(); SmartPtr fm = TFMFontManager::create(tfm); #endif // GMV_ENABLE_TFM std::multimap > shaperSet; if (conf->getBool(l, "ps-backend/null-shaper/enabled", false)) shaperSet.insert(std::pair >(conf->getInt(l, "ps-backend/null-shaper/priority", 0), NullShaper::create(l))); if (conf->getBool(l, "ps-backend/space-shaper/enabled", false)) shaperSet.insert(std::pair >(conf->getInt(l, "ps-backend/space-shaper/priority", 0), SpaceShaper::create())); #if GMV_ENABLE_TFM if (conf->getBool(l, "ps-backend/type1-computer-modern-shaper/enabled", false)) { cmShaper = PS_TFMComputerModernShaper::create(l, conf); cmShaper->setFontManager(fm); shaperSet.insert(std::pair >(conf->getInt(l, "ps-backend/type1-computer-modern-shaper/priority", 0), cmShaper)); } /* if (conf->getBool(l, "ps-backend/ttf-computer-modern-shaper/enabled", false)) { cmShaper = PS_TTF_TFMComputerModernShaper::create(l, conf); cmShaper->setFontManager(fm); shaperSet.insert(std::pair >(conf->getInt(l, "ps-backend/ttf-computer-modern-shaper/priority", 0), cmShaper)); } */ #endif // GMV_ENABLE_TFM #if GMV_ENABLE_TFM SmartPtr mgd; if (cmShaper) { SmartPtr tfmMGD = PS_TFMComputerModernMathGraphicDevice::create(l, conf); tfmMGD->setFamily(cmShaper->getFamily()); tfmMGD->setTFMManager(tfm); mgd = tfmMGD; } else mgd = PS_MathGraphicDevice::create(l, conf); #else SmartPtr mgd = PS_MathGraphicDevice::create(l, conf); #endif // GMV_ENABLE_TFM mgd->setFactory(factory); setMathGraphicDevice(mgd); #if GMV_ENABLE_BOXML SmartPtr bgd = PS_BoxGraphicDevice::create(l, conf); bgd->setFactory(factory); setBoxGraphicDevice(bgd); #endif // GMV_ENABLE_BOXML for (std::multimap >::const_iterator p = shaperSet.begin(); p != shaperSet.end(); p++) getShaperManager()->registerShaper(p->second); } PS_Backend::~PS_Backend() { } SmartPtr PS_Backend::create(const SmartPtr& l, const SmartPtr& conf) { return new PS_Backend(l, conf); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_AreaFactory.hh��������������������������������������������������0000644�0001750�0001750�00000003134�10661271100�016710� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __PS_AreaFactory_hh__ #define __PS_AreaFactory_hh__ #include "AreaFactory.hh" #include "PS_ColorArea.hh" #include "PS_BackgroundArea.hh" #include "PS_InkArea.hh" class PS_AreaFactory : public AreaFactory { protected: PS_AreaFactory(void) { } virtual ~PS_AreaFactory() { } public: static SmartPtr create(void) { return new PS_AreaFactory(); } virtual SmartPtr color(const AreaRef& area, const RGBColor& color) const { return PS_ColorArea::create(area, color); } virtual SmartPtr ink(const AreaRef& area) const { return PS_InkArea::create(area); } virtual AreaRef background(const AreaRef& area, const RGBColor& color) const { return PS_BackgroundArea::create(area, color); } }; #endif // __PS_AreaFactory_hh__ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/T1_FontDataBase.cc�������������������������������������������������0000644�0001750�0001750�00000011660�10661271100�016736� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include #include #include #include #include "String.hh" #include "T1_FontDataBase.hh" #include "FontDataBase.hh" #include "AbstractLogger.hh" #include "Configuration.hh" T1_FontDataBase::T1_DataBase::T1_DataBase(String& name, int i, int initVal) : fontName(name), id(i) { for (int i = 0; i < 256; i++) used[i] = initVal; } T1_FontDataBase::T1_FontDataBase(const SmartPtr& l, const SmartPtr& conf, bool sub) : FontDataBase(), logger(l), subset(sub) { int result; std::vector s = conf->getStringList("default/t1lib/t1-font-path"); for (std::vector::iterator p = s.begin(); p != s.end(); p++) { result = T1_AddToFileSearchPath(T1_PFAB_PATH, T1_APPEND_PATH, const_cast(p->c_str())); if (result != 0) { logger->out(LOG_ERROR, "could not add FontDataBase: %s", p->c_str()); exit (-1); } } void* res = T1_InitLib(LOGFILE | IGNORE_FONTDATABASE); if (res == NULL) { logger->out(LOG_ERROR, "could not initialize t1lib"); exit (-1); } } T1_FontDataBase::~T1_FontDataBase() { int res = T1_CloseLib(); if (res != 0) logger->out(LOG_INFO, "t1lib could not uninitialize itself properly, please consult the log file"); } SmartPtr T1_FontDataBase::create(const SmartPtr& l, const SmartPtr& conf, bool subset) { return new T1_FontDataBase(l, conf, subset); } int T1_FontDataBase::getFontId(const String& fontName, float fontSize) { int n = T1_GetNoFonts(); String fileName = toLowerCase(fontName) + ".pfb"; int i; for (i = 0; i < n && (strcmp(fileName.c_str(), T1_GetFontFileName(i))); i++); if (i == n) { logger->out(LOG_INFO, "adding font file '%s' to the font database", fileName.c_str()); i = T1_AddFont(const_cast(fileName.c_str())); if (i < 0) { logger->out(LOG_WARNING, "could not load Type1 font file `%s'", fileName.c_str()); exit (-1); } logger->out(LOG_INFO, "loading font ID: %d", i); T1_LoadFont(i); if (subset) // subset T1_dB.push_back(T1_DataBase(fileName, i, 0)); else // embed T1_dB.push_back(T1_DataBase(fileName, i, 1)); } else logger->out(LOG_DEBUG, "font '%s' exists in the fontDataBase", fileName.c_str()); int id = FontDataBase::getFontId(fontName, fontSize); return (id); } void T1_FontDataBase::dumpFontTable(std::ostream& os) const { os << "%%DocumentSuppliedResources: font" << std::endl; for (std::list::const_iterator p = T1_dB.begin(); p != T1_dB.end(); p++) os << "%%+ font " << p->fontName << std::endl; os << std::endl; os << "%%BeginSetup" << std::endl; for (std::list::const_iterator p = T1_dB.begin(); p != T1_dB.end(); p++) { logger->out(LOG_DEBUG, "subset font `%s'", (p->fontName).c_str()); unsigned int count = 0; for (unsigned int i = 0; i < 256; i++) if (p->used[i]) count++; logger->out(LOG_DEBUG, "subsetting %d chars", count); const char* use = (char*)(p->used); unsigned long bufSize; char* dump = T1_SubsetFont(p -> id, const_cast(use), T1_SUBSET_DEFAULT | T1_SUBSET_SKIP_REENCODE, 64, 16384, &bufSize); os << "%%BeginResource: font " << p->fontName << std::endl; os.write(dump, bufSize); os << "%%EndResource" << std::endl; logger->out(LOG_DEBUG, "done!"); free(dump); } os << "%%EndSetup" << std::endl << std::endl; FontDataBase::dumpFontTable(os); } void T1_FontDataBase::recallFont(const int id, std::ostringstream& body) { FontDataBase::recallFont(id, body); } void T1_FontDataBase::usedChar(const String& content, const String& family) { if (subset) { String fileName = toLowerCase(family) + ".pfb"; std::list::iterator it; for (it = T1_dB.begin(); (it->fontName) != fileName; it++); for (String::const_iterator i = content.begin(); i != content.end(); i++) it->used[(unsigned int)(*i)] = 1; } } ��������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_InkArea.cc������������������������������������������������������0000644�0001750�0001750�00000002137�10661271100�016012� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "PS_InkArea.hh" #include "PS_RenderingContext.hh" void PS_InkArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { PS_RenderingContext& context = dynamic_cast(c); context.fill(x, y, box()); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_BoxGraphicDevice.hh���������������������������������������������0000644�0001750�0001750�00000002503�10661271100�017655� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __PS_BoxGraphicDevice_hh__ #define __PS_BoxGraphicDevice_hh__ #include "BoxGraphicDevice.hh" class PS_BoxGraphicDevice : public BoxGraphicDevice { protected: PS_BoxGraphicDevice(const SmartPtr&, const SmartPtr&); virtual ~PS_BoxGraphicDevice(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); }; #endif // __PS_BoxGraphicDevice_hh__ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_RenderingContext.hh���������������������������������������������0000644�0001750�0001750�00000004546�10661271100�020002� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __PS_RenderingContext_hh__ #define __PS_RenderingContext_hh__ #include "Char.hh" #include "SmartPtr.hh" #include "RGBColor.hh" #include "BoundingBox.hh" #include "RenderingContext.hh" #include "String.hh" class GMV_BackEnd_EXPORT PS_RenderingContext : public RenderingContext { public: PS_RenderingContext(const SmartPtr&); virtual ~PS_RenderingContext(); void setForegroundColor(const RGBColor& c) { fgColor = c; } void setBackgroundColor(const RGBColor& c) { bgColor = c; } RGBColor getForegroundColor(void) const { return fgColor; } RGBColor getBackgroundColor(void) const { return bgColor; } virtual void documentEnd(void); virtual void fill(const scaled&, const scaled&, const BoundingBox&); virtual void draw(const scaled&, const scaled&, const SmartPtr&, Char8); static float toPS(const scaled& s) { return (s.toFloat() / 72.27f) * 72; } protected: virtual void beginDocument(const BoundingBox&); virtual void endDocument(void); virtual void text(const scaled&, const scaled&, const String&, const scaled&, const RGBColor&, const RGBColor&, const scaled&, const String&); virtual void rect(const scaled&, const scaled&, const scaled&, const scaled&, const RGBColor&, const RGBColor&, const scaled&); virtual void line(const scaled&, const scaled&, const scaled&, const scaled&, const RGBColor&, const scaled&); protected: SmartPtr logger; RGBColor fgColor; RGBColor bgColor; }; #endif // __PS_RenderingContext_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_BoxGraphicDevice.cc���������������������������������������������0000644�0001750�0001750�00000002604�10661271100�017645� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "FormattingContext.hh" #include "PS_BoxGraphicDevice.hh" #include "BoxMLElement.hh" PS_BoxGraphicDevice::PS_BoxGraphicDevice(const SmartPtr& l, const SmartPtr& conf) : BoxGraphicDevice(l) { } PS_BoxGraphicDevice::~PS_BoxGraphicDevice() { } SmartPtr PS_BoxGraphicDevice::create(const SmartPtr& logger, const SmartPtr& conf) { return new PS_BoxGraphicDevice(logger, conf); } ����������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/FontDataBase.hh����������������������������������������������������0000644�0001750�0001750�00000003274�10661271100�016406� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __FontDataBase_hh__ #define __FontDataBase_hh__ #include #include #include #include "Object.hh" #include "SmartPtr.hh" #include "String.hh" class GMV_BackEnd_EXPORT FontDataBase : public Object { protected: FontDataBase(); virtual ~FontDataBase(); public: virtual int getFontId(const String& fontName, float fontSize); virtual void dumpFontTable(std::ostream& os) const; virtual void recallFont(const int id, std::ostringstream& body); virtual void usedChar(const String& content, const String& family); static SmartPtr create(); private: struct FontDesc { String name; float size; int id; FontDesc(const String& fontName, const float fontSize, const int i) : name(fontName), size(fontSize), id(i) { }; }; std::list fd; }; #endif // __FontDataBase_hh__ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_BackgroundArea.hh�����������������������������������������������0000644�0001750�0001750�00000002670�10661271100�017364� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __PS_BackgroundArea_hh__ #define __PS_BackgroundArea_hh__ #include "ColorArea.hh" class PS_BackgroundArea : public ColorArea { protected: PS_BackgroundArea(const AreaRef& area, const RGBColor& c) : ColorArea(area, c) { } virtual ~PS_BackgroundArea() { } public: static SmartPtr create(const AreaRef& area, const RGBColor& c) { return new PS_BackgroundArea(area, c); } virtual AreaRef clone(const AreaRef& area) const { return create(area, getColor()); } virtual void render(RenderingContext&, const scaled&, const scaled&) const; }; #endif // __PS_BackgroundArea_hh__ ������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_ColorArea.cc����������������������������������������������������0000644�0001750�0001750�00000002367�10661271100�016354� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "PS_ColorArea.hh" #include "PS_RenderingContext.hh" void PS_ColorArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { PS_RenderingContext& context = dynamic_cast(c); const RGBColor oldColor = context.getForegroundColor(); context.setForegroundColor(getColor()); getChild()->render(context, x, y); context.setForegroundColor(oldColor); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_TFMComputerModernShaper.cc��������������������������������������0000644�0001750�0001750�00000004062�10661271100�021154� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "PS_AreaFactory.hh" #include "PS_TFMComputerModernShaper.hh" #include "PS_TFMGlyphArea.hh" #include "TFMFont.hh" PS_TFMComputerModernShaper::PS_TFMComputerModernShaper(const SmartPtr& l, const SmartPtr& conf) : TFMComputerModernShaper(l, conf) { } PS_TFMComputerModernShaper::~PS_TFMComputerModernShaper() { } SmartPtr PS_TFMComputerModernShaper::create(const SmartPtr& l, const SmartPtr& conf) { return new PS_TFMComputerModernShaper(l, conf); } AreaRef PS_TFMComputerModernShaper::getGlyphArea(ComputerModernFamily::FontNameId fontNameId, ComputerModernFamily::FontSizeId designSize, UChar8 index, int size) const { return PS_TFMGlyphArea::create(getFont(fontNameId, designSize, size), index); } bool PS_TFMComputerModernShaper::getGlyphData(const AreaRef& area, SmartPtr& font, UChar8& index) const { if (SmartPtr glyphArea = smart_cast(area)) { font = glyphArea->getFont(); index = glyphArea->getIndex(); return true; } else return false; } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_Backend.hh������������������������������������������������������0000644�0001750�0001750�00000002371�10661271100�016041� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __PS_Backend_hh__ #define __PS_Backend_hh__ #include "Backend.hh" class GMV_BackEnd_EXPORT PS_Backend : public Backend { protected: PS_Backend(const SmartPtr&, const SmartPtr&); virtual ~PS_Backend(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); }; #endif // __PS_Backend_hh__ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/FontDataBase.cc����������������������������������������������������0000644�0001750�0001750�00000003554�10661271100�016375� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "String.hh" #include "FontDataBase.hh" FontDataBase::FontDataBase() { } FontDataBase::~FontDataBase() { } SmartPtr FontDataBase::create() { return new FontDataBase(); } int FontDataBase::getFontId(const String& fontName, const float fontSize) { for (std::list::const_iterator p = fd.begin(); p != fd.end(); p++) if (p->name == fontName && p->size == fontSize) return p->id; const int id = fd.size(); fd.push_back(FontDesc(fontName, fontSize, fd.size())); return id; } void FontDataBase::dumpFontTable(std::ostream& os) const { for (std::list::const_iterator p = fd.begin(); p != fd.end(); p++) { os << "/F" << (p->id) << " /" << (p->name) << " findfont " << (p->size) << " scalefont " << "def" << std::endl; } } void FontDataBase::recallFont(const int id, std::ostringstream& body) { body << "F" << id << " setfont" << std::endl; } void FontDataBase::usedChar(const String& content, const String& family) { } ����������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_BackgroundArea.cc�����������������������������������������������0000644�0001750�0001750�00000002733�10661271100�017352� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "PS_BackgroundArea.hh" #include "PS_RenderingContext.hh" void PS_BackgroundArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { PS_RenderingContext& context = dynamic_cast(c); const RGBColor old_foregroundColor = context.getForegroundColor(); const RGBColor old_backgroundColor = context.getBackgroundColor(); context.setForegroundColor(getColor()); context.setBackgroundColor(getColor()); context.fill(x, y, box()); context.setForegroundColor(old_foregroundColor); getChild()->render(context, x, y); context.setBackgroundColor(old_backgroundColor); } �������������������������������������gtkmathview-0.8.0/src/backend/ps/Makefile.am��������������������������������������������������������0000644�0001750�0001750�00000003370�10661271100�015623� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ NULL = lib_LTLIBRARIES = libmathview_backend_ps.la if COND_BOXML MAYBE_BOXML_S = PS_BoxGraphicDevice.cc MAYBE_BOXML_H = PS_BoxGraphicDevice.hh else MAYBE_BOXML_S = $(NULL) MAYBE_BOXML_H = $(NULL) endif if COND_TFM MAYBE_TFM_S = \ PS_TFMComputerModernMathGraphicDevice.cc \ PS_TFMComputerModernShaper.cc \ $(NULL) MAYBE_TFM_H = \ PS_TFMComputerModernMathGraphicDevice.hh \ PS_TFMComputerModernShaper.hh \ $(NULL) else MAYBE_TFM_S = $(NULL) MAYBE_TFM_H = $(NULL) endif if COND_T1LIB MAYBE_T1LIB_S = T1_FontDataBase.cc MAYBE_T1LIB_H = T1_FontDataBase.hh else MAYBE_T1LIB_S = $(NULL) MAYBE_T1LIB_H = $(NULL) endif libmathview_backend_ps_la_CPPFLAGS = -DGMV_BackEnd_DLL libmathview_backend_ps_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ libmathview_backend_ps_la_SOURCES = \ PS_AreaFactory.hh \ PS_Backend.cc \ PS_BackgroundArea.cc \ PS_BackgroundArea.hh \ PS_ColorArea.cc \ PS_ColorArea.hh \ PS_InkArea.cc \ PS_InkArea.hh \ PS_MathGraphicDevice.cc \ PS_MathGraphicDevice.hh \ PS_RenderingContext.cc \ PS_StreamRenderingContext.cc \ FontDataBase.cc \ FontDataBase.hh \ PS_TFMGlyphArea.cc \ PS_TFMGlyphArea.hh \ $(MAYBE_BOXML_S) \ $(MAYBE_BOXML_H) \ $(MAYBE_TFM_S) \ $(MAYBE_TFM_H) \ $(MAYBE_T1LIB_S) \ $(MAYBE_T1LIB_H) \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ PS_Backend.hh \ PS_RenderingContext.hh \ PS_StreamRenderingContext.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ -I$(top_srcdir)/src/backend/common/tfm \ $(T1_CFLAGS) \ $(NULL) ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_TFMGlyphArea.hh�������������������������������������������������0000644�0001750�0001750�00000003031�10661271100�016727� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __PS_TFMGlyphArea_hh__ #define __PS_TFMGlyphArea_hh__ #include "GlyphArea.hh" class PS_TFMGlyphArea : public GlyphArea { protected: PS_TFMGlyphArea(const SmartPtr&, Char8); virtual ~PS_TFMGlyphArea(); public: static SmartPtr create(const SmartPtr&, Char8); virtual BoundingBox box(void) const; virtual scaled leftEdge(void) const; virtual scaled rightEdge(void) const; virtual void render(class RenderingContext&, const scaled&, const scaled&) const; SmartPtr getFont(void) const; Char8 getIndex(void) const { return index; } private: SmartPtr font; Char8 index; }; #endif // __PS_TFMGlyphArea_hh__ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_RenderingContext.cc���������������������������������������������0000644�0001750�0001750�00000005037�10661271100�017764� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include "AbstractLogger.hh" #include "PS_RenderingContext.hh" #include "scaledAux.hh" #include "BoundingBoxAux.hh" #include "RGBColorAux.hh" #include "TFM.hh" #include "TFMFont.hh" PS_RenderingContext::PS_RenderingContext(const SmartPtr& l) : logger(l) { assert(logger); } PS_RenderingContext::~PS_RenderingContext() { } void PS_RenderingContext::documentEnd() { endDocument(); } void PS_RenderingContext::fill(const scaled& x, const scaled& y, const BoundingBox& box) { rect(x, (y + box.height), box.horizontalExtent(), box.verticalExtent(), getForegroundColor(), getForegroundColor(), scaled::zero()); } void PS_RenderingContext::draw(const scaled& x, const scaled& y, const SmartPtr& font, Char8 index) { SmartPtr tfm = font->getTFM(); assert(tfm); std::ostringstream familyS; familyS << tfm->getFamily() << tfm->getDesignSize().toInt(); const String family = familyS.str(); const String content(1, index); text(x, y, family, font->getSize(), getForegroundColor(), getForegroundColor(), scaled::zero(), content); } void PS_RenderingContext::beginDocument(const BoundingBox&) { } void PS_RenderingContext::endDocument() { } void PS_RenderingContext::text(const scaled&, const scaled&, const String&, const scaled&, const RGBColor&, const RGBColor&, const scaled&, const String&) { } void PS_RenderingContext::rect(const scaled&, const scaled&, const scaled&, const scaled&, const RGBColor&, const RGBColor&, const scaled&) { } void PS_RenderingContext::line(const scaled&, const scaled&, const scaled&, const scaled&, const RGBColor&, const scaled&) { } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_MathGraphicDevice.cc��������������������������������������������0000644�0001750�0001750�00000002646�10661271100�020014� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "FormattingContext.hh" #include "MathMLElement.hh" #include "PS_MathGraphicDevice.hh" PS_MathGraphicDevice::PS_MathGraphicDevice(const SmartPtr& l, const SmartPtr& conf) : MathGraphicDevice(l) { } PS_MathGraphicDevice::~PS_MathGraphicDevice() { } SmartPtr PS_MathGraphicDevice::create(const SmartPtr& logger, const SmartPtr& conf) { return new PS_MathGraphicDevice(logger, conf); } ������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_TFMComputerModernMathGraphicDevice.hh���������������������������0000644�0001750�0001750�00000004075�10661271100�023257� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __PS_TFMComputerModernMathGraphicDevice_hh__ #define __PS_TFMComputerModernMathGraphicDevice_hh__ #include "TFMComputerModernMathGraphicDevice.hh" class PS_TFMComputerModernMathGraphicDevice : public TFMComputerModernMathGraphicDevice { protected: PS_TFMComputerModernMathGraphicDevice(const SmartPtr&, const SmartPtr&); virtual ~PS_TFMComputerModernMathGraphicDevice(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); virtual AreaRef script(const class FormattingContext&, const AreaRef& base, const AreaRef& subScript, const Length& subScriptShift, const AreaRef& superScript, const Length& superScriptShift) const; virtual AreaRef multiScripts(const class FormattingContext&, const AreaRef& base, const std::vector& subScripts, const std::vector& preSubScripts, const Length& subScriptShift, const std::vector& superScripts, const std::vector& preSuperScripts, const Length& superScriptShift) const; }; #endif // __PS_TFMComputerModernMathGraphicDevice_hh__ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_ColorArea.hh����������������������������������������������������0000644�0001750�0001750�00000002615�10661271100�016362� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __PS_ColorArea_hh__ #define __PS_ColorArea_hh__ #include "ColorArea.hh" class PS_ColorArea : public ColorArea { protected: PS_ColorArea(const AreaRef& area, const RGBColor& c) : ColorArea(area, c) { } virtual ~PS_ColorArea() { } public: static SmartPtr create(const AreaRef& area, const RGBColor& c) { return new PS_ColorArea(area, c); } virtual AreaRef clone(const AreaRef& area) const { return create(area, getColor()); } virtual void render(RenderingContext&, const scaled&, const scaled&) const; }; #endif // __PS_ColorArea_hh__ �������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_TFMComputerModernMathGraphicDevice.cc���������������������������0000644�0001750�0001750�00000006617�10661271100�023251� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "FormattingContext.hh" #include "MathMLElement.hh" #include "PS_TFMComputerModernMathGraphicDevice.hh" #include "PS_TFMGlyphArea.hh" #include "TFMFont.hh" #include "TFM.hh" PS_TFMComputerModernMathGraphicDevice::PS_TFMComputerModernMathGraphicDevice(const SmartPtr& l, const SmartPtr&) : TFMComputerModernMathGraphicDevice(l) { } PS_TFMComputerModernMathGraphicDevice::~PS_TFMComputerModernMathGraphicDevice() { } SmartPtr PS_TFMComputerModernMathGraphicDevice::create(const SmartPtr& logger, const SmartPtr& conf) { return new PS_TFMComputerModernMathGraphicDevice(logger, conf); } AreaRef PS_TFMComputerModernMathGraphicDevice::script(const class FormattingContext& context, const AreaRef& base, const AreaRef& subScript, const Length& subScriptShift, const AreaRef& superScript, const Length& superScriptShift) const { AreaRef nucleus = base; while (nucleus && is_a(nucleus)) nucleus = smart_cast(nucleus)->getChild(); AreaRef newSuperScript = superScript; if (superScript) if (SmartPtr glyph = smart_cast(nucleus)) { const SmartPtr font = glyph->getFont(); const SmartPtr tfm = font->getTFM(); const Char8 index = glyph->getIndex(); const scaled ic = tfm->getGlyphItalicCorrection(index) * tfm->getScale(font->getSize()); if (ic != scaled::zero()) { std::vector c; c.reserve(2); c.push_back(getFactory()->horizontalSpace(ic)); c.push_back(superScript); newSuperScript = getFactory()->horizontalArray(c); } } return MathGraphicDevice::script(context, base, subScript, subScriptShift, newSuperScript, superScriptShift); } AreaRef PS_TFMComputerModernMathGraphicDevice::multiScripts(const class FormattingContext& context, const AreaRef& base, const std::vector& subScripts, const std::vector& preSubScripts, const Length& subScriptShift, const std::vector& superScripts, const std::vector& preSuperScripts, const Length& superScriptShift) const { return MathGraphicDevice::multiScripts(context, base, subScripts, preSubScripts, subScriptShift, superScripts, preSuperScripts, superScriptShift); } �����������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/Makefile.in��������������������������������������������������������0000644�0001750�0001750�00000117636�10704610543�015655� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/backend/ps DIST_COMMON = $(mathview_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(mathviewdir)" libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) libmathview_backend_ps_la_LIBADD = am__libmathview_backend_ps_la_SOURCES_DIST = PS_AreaFactory.hh \ PS_Backend.cc PS_BackgroundArea.cc PS_BackgroundArea.hh \ PS_ColorArea.cc PS_ColorArea.hh PS_InkArea.cc PS_InkArea.hh \ PS_MathGraphicDevice.cc PS_MathGraphicDevice.hh \ PS_RenderingContext.cc PS_StreamRenderingContext.cc \ FontDataBase.cc FontDataBase.hh PS_TFMGlyphArea.cc \ PS_TFMGlyphArea.hh PS_BoxGraphicDevice.cc \ PS_BoxGraphicDevice.hh \ PS_TFMComputerModernMathGraphicDevice.cc \ PS_TFMComputerModernShaper.cc \ PS_TFMComputerModernMathGraphicDevice.hh \ PS_TFMComputerModernShaper.hh T1_FontDataBase.cc \ T1_FontDataBase.hh am__objects_1 = @COND_BOXML_FALSE@am__objects_2 = $(am__objects_1) @COND_BOXML_TRUE@am__objects_2 = libmathview_backend_ps_la-PS_BoxGraphicDevice.lo @COND_BOXML_FALSE@am__objects_3 = $(am__objects_1) @COND_TFM_FALSE@am__objects_4 = $(am__objects_1) @COND_TFM_TRUE@am__objects_4 = libmathview_backend_ps_la-PS_TFMComputerModernMathGraphicDevice.lo \ @COND_TFM_TRUE@ libmathview_backend_ps_la-PS_TFMComputerModernShaper.lo \ @COND_TFM_TRUE@ $(am__objects_1) @COND_TFM_FALSE@am__objects_5 = $(am__objects_1) @COND_TFM_TRUE@am__objects_5 = $(am__objects_1) @COND_T1LIB_FALSE@am__objects_6 = $(am__objects_1) @COND_T1LIB_TRUE@am__objects_6 = \ @COND_T1LIB_TRUE@ libmathview_backend_ps_la-T1_FontDataBase.lo @COND_T1LIB_FALSE@am__objects_7 = $(am__objects_1) am_libmathview_backend_ps_la_OBJECTS = \ libmathview_backend_ps_la-PS_Backend.lo \ libmathview_backend_ps_la-PS_BackgroundArea.lo \ libmathview_backend_ps_la-PS_ColorArea.lo \ libmathview_backend_ps_la-PS_InkArea.lo \ libmathview_backend_ps_la-PS_MathGraphicDevice.lo \ libmathview_backend_ps_la-PS_RenderingContext.lo \ libmathview_backend_ps_la-PS_StreamRenderingContext.lo \ libmathview_backend_ps_la-FontDataBase.lo \ libmathview_backend_ps_la-PS_TFMGlyphArea.lo $(am__objects_2) \ $(am__objects_3) $(am__objects_4) $(am__objects_5) \ $(am__objects_6) $(am__objects_7) $(am__objects_1) libmathview_backend_ps_la_OBJECTS = \ $(am_libmathview_backend_ps_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libmathview_backend_ps_la_SOURCES) DIST_SOURCES = $(am__libmathview_backend_ps_la_SOURCES_DIST) mathviewHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(mathview_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = lib_LTLIBRARIES = libmathview_backend_ps.la @COND_BOXML_FALSE@MAYBE_BOXML_S = $(NULL) @COND_BOXML_TRUE@MAYBE_BOXML_S = PS_BoxGraphicDevice.cc @COND_BOXML_FALSE@MAYBE_BOXML_H = $(NULL) @COND_BOXML_TRUE@MAYBE_BOXML_H = PS_BoxGraphicDevice.hh @COND_TFM_FALSE@MAYBE_TFM_S = $(NULL) @COND_TFM_TRUE@MAYBE_TFM_S = \ @COND_TFM_TRUE@ PS_TFMComputerModernMathGraphicDevice.cc \ @COND_TFM_TRUE@ PS_TFMComputerModernShaper.cc \ @COND_TFM_TRUE@ $(NULL) @COND_TFM_FALSE@MAYBE_TFM_H = $(NULL) @COND_TFM_TRUE@MAYBE_TFM_H = \ @COND_TFM_TRUE@ PS_TFMComputerModernMathGraphicDevice.hh \ @COND_TFM_TRUE@ PS_TFMComputerModernShaper.hh \ @COND_TFM_TRUE@ $(NULL) @COND_T1LIB_FALSE@MAYBE_T1LIB_S = $(NULL) @COND_T1LIB_TRUE@MAYBE_T1LIB_S = T1_FontDataBase.cc @COND_T1LIB_FALSE@MAYBE_T1LIB_H = $(NULL) @COND_T1LIB_TRUE@MAYBE_T1LIB_H = T1_FontDataBase.hh libmathview_backend_ps_la_CPPFLAGS = -DGMV_BackEnd_DLL libmathview_backend_ps_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ libmathview_backend_ps_la_SOURCES = \ PS_AreaFactory.hh \ PS_Backend.cc \ PS_BackgroundArea.cc \ PS_BackgroundArea.hh \ PS_ColorArea.cc \ PS_ColorArea.hh \ PS_InkArea.cc \ PS_InkArea.hh \ PS_MathGraphicDevice.cc \ PS_MathGraphicDevice.hh \ PS_RenderingContext.cc \ PS_StreamRenderingContext.cc \ FontDataBase.cc \ FontDataBase.hh \ PS_TFMGlyphArea.cc \ PS_TFMGlyphArea.hh \ $(MAYBE_BOXML_S) \ $(MAYBE_BOXML_H) \ $(MAYBE_TFM_S) \ $(MAYBE_TFM_H) \ $(MAYBE_T1LIB_S) \ $(MAYBE_T1LIB_H) \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ PS_Backend.hh \ PS_RenderingContext.hh \ PS_StreamRenderingContext.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ -I$(top_srcdir)/src/backend/common/tfm \ $(T1_CFLAGS) \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/backend/ps/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/backend/ps/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ else :; fi; \ done uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libmathview_backend_ps.la: $(libmathview_backend_ps_la_OBJECTS) $(libmathview_backend_ps_la_DEPENDENCIES) $(CXXLINK) -rpath $(libdir) $(libmathview_backend_ps_la_LDFLAGS) $(libmathview_backend_ps_la_OBJECTS) $(libmathview_backend_ps_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_ps_la-FontDataBase.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_ps_la-PS_Backend.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_ps_la-PS_BackgroundArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_ps_la-PS_BoxGraphicDevice.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_ps_la-PS_ColorArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_ps_la-PS_InkArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_ps_la-PS_MathGraphicDevice.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_ps_la-PS_RenderingContext.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_ps_la-PS_StreamRenderingContext.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_ps_la-PS_TFMComputerModernMathGraphicDevice.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_ps_la-PS_TFMComputerModernShaper.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_ps_la-PS_TFMGlyphArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_ps_la-T1_FontDataBase.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libmathview_backend_ps_la-PS_Backend.lo: PS_Backend.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_ps_la-PS_Backend.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_ps_la-PS_Backend.Tpo" -c -o libmathview_backend_ps_la-PS_Backend.lo `test -f 'PS_Backend.cc' || echo '$(srcdir)/'`PS_Backend.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_ps_la-PS_Backend.Tpo" "$(DEPDIR)/libmathview_backend_ps_la-PS_Backend.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_ps_la-PS_Backend.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PS_Backend.cc' object='libmathview_backend_ps_la-PS_Backend.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_ps_la-PS_Backend.lo `test -f 'PS_Backend.cc' || echo '$(srcdir)/'`PS_Backend.cc libmathview_backend_ps_la-PS_BackgroundArea.lo: PS_BackgroundArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_ps_la-PS_BackgroundArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_ps_la-PS_BackgroundArea.Tpo" -c -o libmathview_backend_ps_la-PS_BackgroundArea.lo `test -f 'PS_BackgroundArea.cc' || echo '$(srcdir)/'`PS_BackgroundArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_ps_la-PS_BackgroundArea.Tpo" "$(DEPDIR)/libmathview_backend_ps_la-PS_BackgroundArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_ps_la-PS_BackgroundArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PS_BackgroundArea.cc' object='libmathview_backend_ps_la-PS_BackgroundArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_ps_la-PS_BackgroundArea.lo `test -f 'PS_BackgroundArea.cc' || echo '$(srcdir)/'`PS_BackgroundArea.cc libmathview_backend_ps_la-PS_ColorArea.lo: PS_ColorArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_ps_la-PS_ColorArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_ps_la-PS_ColorArea.Tpo" -c -o libmathview_backend_ps_la-PS_ColorArea.lo `test -f 'PS_ColorArea.cc' || echo '$(srcdir)/'`PS_ColorArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_ps_la-PS_ColorArea.Tpo" "$(DEPDIR)/libmathview_backend_ps_la-PS_ColorArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_ps_la-PS_ColorArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PS_ColorArea.cc' object='libmathview_backend_ps_la-PS_ColorArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_ps_la-PS_ColorArea.lo `test -f 'PS_ColorArea.cc' || echo '$(srcdir)/'`PS_ColorArea.cc libmathview_backend_ps_la-PS_InkArea.lo: PS_InkArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_ps_la-PS_InkArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_ps_la-PS_InkArea.Tpo" -c -o libmathview_backend_ps_la-PS_InkArea.lo `test -f 'PS_InkArea.cc' || echo '$(srcdir)/'`PS_InkArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_ps_la-PS_InkArea.Tpo" "$(DEPDIR)/libmathview_backend_ps_la-PS_InkArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_ps_la-PS_InkArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PS_InkArea.cc' object='libmathview_backend_ps_la-PS_InkArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_ps_la-PS_InkArea.lo `test -f 'PS_InkArea.cc' || echo '$(srcdir)/'`PS_InkArea.cc libmathview_backend_ps_la-PS_MathGraphicDevice.lo: PS_MathGraphicDevice.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_ps_la-PS_MathGraphicDevice.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_ps_la-PS_MathGraphicDevice.Tpo" -c -o libmathview_backend_ps_la-PS_MathGraphicDevice.lo `test -f 'PS_MathGraphicDevice.cc' || echo '$(srcdir)/'`PS_MathGraphicDevice.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_ps_la-PS_MathGraphicDevice.Tpo" "$(DEPDIR)/libmathview_backend_ps_la-PS_MathGraphicDevice.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_ps_la-PS_MathGraphicDevice.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PS_MathGraphicDevice.cc' object='libmathview_backend_ps_la-PS_MathGraphicDevice.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_ps_la-PS_MathGraphicDevice.lo `test -f 'PS_MathGraphicDevice.cc' || echo '$(srcdir)/'`PS_MathGraphicDevice.cc libmathview_backend_ps_la-PS_RenderingContext.lo: PS_RenderingContext.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_ps_la-PS_RenderingContext.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_ps_la-PS_RenderingContext.Tpo" -c -o libmathview_backend_ps_la-PS_RenderingContext.lo `test -f 'PS_RenderingContext.cc' || echo '$(srcdir)/'`PS_RenderingContext.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_ps_la-PS_RenderingContext.Tpo" "$(DEPDIR)/libmathview_backend_ps_la-PS_RenderingContext.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_ps_la-PS_RenderingContext.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PS_RenderingContext.cc' object='libmathview_backend_ps_la-PS_RenderingContext.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_ps_la-PS_RenderingContext.lo `test -f 'PS_RenderingContext.cc' || echo '$(srcdir)/'`PS_RenderingContext.cc libmathview_backend_ps_la-PS_StreamRenderingContext.lo: PS_StreamRenderingContext.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_ps_la-PS_StreamRenderingContext.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_ps_la-PS_StreamRenderingContext.Tpo" -c -o libmathview_backend_ps_la-PS_StreamRenderingContext.lo `test -f 'PS_StreamRenderingContext.cc' || echo '$(srcdir)/'`PS_StreamRenderingContext.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_ps_la-PS_StreamRenderingContext.Tpo" "$(DEPDIR)/libmathview_backend_ps_la-PS_StreamRenderingContext.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_ps_la-PS_StreamRenderingContext.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PS_StreamRenderingContext.cc' object='libmathview_backend_ps_la-PS_StreamRenderingContext.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_ps_la-PS_StreamRenderingContext.lo `test -f 'PS_StreamRenderingContext.cc' || echo '$(srcdir)/'`PS_StreamRenderingContext.cc libmathview_backend_ps_la-FontDataBase.lo: FontDataBase.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_ps_la-FontDataBase.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_ps_la-FontDataBase.Tpo" -c -o libmathview_backend_ps_la-FontDataBase.lo `test -f 'FontDataBase.cc' || echo '$(srcdir)/'`FontDataBase.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_ps_la-FontDataBase.Tpo" "$(DEPDIR)/libmathview_backend_ps_la-FontDataBase.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_ps_la-FontDataBase.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='FontDataBase.cc' object='libmathview_backend_ps_la-FontDataBase.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_ps_la-FontDataBase.lo `test -f 'FontDataBase.cc' || echo '$(srcdir)/'`FontDataBase.cc libmathview_backend_ps_la-PS_TFMGlyphArea.lo: PS_TFMGlyphArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_ps_la-PS_TFMGlyphArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_ps_la-PS_TFMGlyphArea.Tpo" -c -o libmathview_backend_ps_la-PS_TFMGlyphArea.lo `test -f 'PS_TFMGlyphArea.cc' || echo '$(srcdir)/'`PS_TFMGlyphArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_ps_la-PS_TFMGlyphArea.Tpo" "$(DEPDIR)/libmathview_backend_ps_la-PS_TFMGlyphArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_ps_la-PS_TFMGlyphArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PS_TFMGlyphArea.cc' object='libmathview_backend_ps_la-PS_TFMGlyphArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_ps_la-PS_TFMGlyphArea.lo `test -f 'PS_TFMGlyphArea.cc' || echo '$(srcdir)/'`PS_TFMGlyphArea.cc libmathview_backend_ps_la-PS_BoxGraphicDevice.lo: PS_BoxGraphicDevice.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_ps_la-PS_BoxGraphicDevice.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_ps_la-PS_BoxGraphicDevice.Tpo" -c -o libmathview_backend_ps_la-PS_BoxGraphicDevice.lo `test -f 'PS_BoxGraphicDevice.cc' || echo '$(srcdir)/'`PS_BoxGraphicDevice.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_ps_la-PS_BoxGraphicDevice.Tpo" "$(DEPDIR)/libmathview_backend_ps_la-PS_BoxGraphicDevice.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_ps_la-PS_BoxGraphicDevice.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PS_BoxGraphicDevice.cc' object='libmathview_backend_ps_la-PS_BoxGraphicDevice.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_ps_la-PS_BoxGraphicDevice.lo `test -f 'PS_BoxGraphicDevice.cc' || echo '$(srcdir)/'`PS_BoxGraphicDevice.cc libmathview_backend_ps_la-PS_TFMComputerModernMathGraphicDevice.lo: PS_TFMComputerModernMathGraphicDevice.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_ps_la-PS_TFMComputerModernMathGraphicDevice.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_ps_la-PS_TFMComputerModernMathGraphicDevice.Tpo" -c -o libmathview_backend_ps_la-PS_TFMComputerModernMathGraphicDevice.lo `test -f 'PS_TFMComputerModernMathGraphicDevice.cc' || echo '$(srcdir)/'`PS_TFMComputerModernMathGraphicDevice.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_ps_la-PS_TFMComputerModernMathGraphicDevice.Tpo" "$(DEPDIR)/libmathview_backend_ps_la-PS_TFMComputerModernMathGraphicDevice.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_ps_la-PS_TFMComputerModernMathGraphicDevice.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PS_TFMComputerModernMathGraphicDevice.cc' object='libmathview_backend_ps_la-PS_TFMComputerModernMathGraphicDevice.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_ps_la-PS_TFMComputerModernMathGraphicDevice.lo `test -f 'PS_TFMComputerModernMathGraphicDevice.cc' || echo '$(srcdir)/'`PS_TFMComputerModernMathGraphicDevice.cc libmathview_backend_ps_la-PS_TFMComputerModernShaper.lo: PS_TFMComputerModernShaper.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_ps_la-PS_TFMComputerModernShaper.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_ps_la-PS_TFMComputerModernShaper.Tpo" -c -o libmathview_backend_ps_la-PS_TFMComputerModernShaper.lo `test -f 'PS_TFMComputerModernShaper.cc' || echo '$(srcdir)/'`PS_TFMComputerModernShaper.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_ps_la-PS_TFMComputerModernShaper.Tpo" "$(DEPDIR)/libmathview_backend_ps_la-PS_TFMComputerModernShaper.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_ps_la-PS_TFMComputerModernShaper.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PS_TFMComputerModernShaper.cc' object='libmathview_backend_ps_la-PS_TFMComputerModernShaper.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_ps_la-PS_TFMComputerModernShaper.lo `test -f 'PS_TFMComputerModernShaper.cc' || echo '$(srcdir)/'`PS_TFMComputerModernShaper.cc libmathview_backend_ps_la-T1_FontDataBase.lo: T1_FontDataBase.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_ps_la-T1_FontDataBase.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_ps_la-T1_FontDataBase.Tpo" -c -o libmathview_backend_ps_la-T1_FontDataBase.lo `test -f 'T1_FontDataBase.cc' || echo '$(srcdir)/'`T1_FontDataBase.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_ps_la-T1_FontDataBase.Tpo" "$(DEPDIR)/libmathview_backend_ps_la-T1_FontDataBase.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_ps_la-T1_FontDataBase.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='T1_FontDataBase.cc' object='libmathview_backend_ps_la-T1_FontDataBase.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_ps_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_ps_la-T1_FontDataBase.lo `test -f 'T1_FontDataBase.cc' || echo '$(srcdir)/'`T1_FontDataBase.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-mathviewHEADERS: $(mathview_HEADERS) @$(NORMAL_INSTALL) test -z "$(mathviewdir)" || $(mkdir_p) "$(DESTDIR)$(mathviewdir)" @list='$(mathview_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(mathviewHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(mathviewdir)/$$f'"; \ $(mathviewHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(mathviewdir)/$$f"; \ done uninstall-mathviewHEADERS: @$(NORMAL_UNINSTALL) @list='$(mathview_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(mathviewdir)/$$f'"; \ rm -f "$(DESTDIR)$(mathviewdir)/$$f"; \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(mathviewdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-mathviewHEADERS install-exec-am: install-libLTLIBRARIES install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \ uninstall-mathviewHEADERS .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am \ install-libLTLIBRARIES install-man install-mathviewHEADERS \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-info-am uninstall-libLTLIBRARIES \ uninstall-mathviewHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ��������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_TFMGlyphArea.cc�������������������������������������������������0000644�0001750�0001750�00000003410�10661271100�016716� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Char.hh" #include "TFMFont.hh" #include "PS_RenderingContext.hh" #include "PS_TFMGlyphArea.hh" PS_TFMGlyphArea::PS_TFMGlyphArea(const SmartPtr& f, Char8 i) : font(f), index(i) { } PS_TFMGlyphArea::~PS_TFMGlyphArea() { } SmartPtr PS_TFMGlyphArea::create(const SmartPtr& font, Char8 index) { return new PS_TFMGlyphArea(font, index); } SmartPtr PS_TFMGlyphArea::getFont() const { return font; } BoundingBox PS_TFMGlyphArea::box() const { return font->getGlyphBoundingBox(index); } scaled PS_TFMGlyphArea::leftEdge() const { return font->getGlyphLeftEdge(index); } scaled PS_TFMGlyphArea::rightEdge() const { return font->getGlyphRightEdge(index); } void PS_TFMGlyphArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { PS_RenderingContext& context = dynamic_cast(c); context.draw(x, y, font, index); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_StreamRenderingContext.hh���������������������������������������0000644�0001750�0001750�00000004404�10661271100�021147� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __PS_StreamRenderingContext_hh__ #define __PS_StreamRenderingContext_hh__ #include #include #include "PS_RenderingContext.hh" #include "String.hh" #include "FontDataBase.hh" #include "T1_FontDataBase.hh" class GMV_BackEnd_EXPORT PS_StreamRenderingContext : public PS_RenderingContext { public: PS_StreamRenderingContext(const SmartPtr&, std::ostream&, SmartPtr fDb); virtual ~PS_StreamRenderingContext(); virtual void documentStart(const scaled& x, const scaled& y, const BoundingBox& bbox, const char* name); virtual void documentEnd(void); protected: //virtual String getId(const SmartPtr&) const; virtual void setGraphicsContext(const RGBColor& strokeColor, const scaled& strokeWidth); virtual void drawChar(unsigned char ch); virtual void text(const scaled&, const scaled&, const String&, const scaled&, const RGBColor&, const RGBColor&, const scaled&, const String&); virtual void rect(const scaled&, const scaled&, const scaled&, const scaled&, const RGBColor& fillColor, const RGBColor& strokeColor, const scaled& strokeWidth); virtual void line(const scaled&, const scaled&, const scaled&, const scaled&, const RGBColor&, const scaled&); private: std::ostream& output; std::ostringstream header; std::ostringstream body; SmartPtr fontDb; }; #endif // __PS_StreamRenderingContext_hh__ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/ps/PS_TFMComputerModernShaper.hh��������������������������������������0000644�0001750�0001750�00000003132�10661271100�021163� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __PS_TFMComputerModernShaper_hh__ #define __PS_TFMComputerModernShaper_hh__ #include "TFMComputerModernShaper.hh" class PS_TFMComputerModernShaper : public TFMComputerModernShaper { protected: PS_TFMComputerModernShaper(const SmartPtr&, const SmartPtr&); virtual ~PS_TFMComputerModernShaper(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); protected: virtual AreaRef getGlyphArea(ComputerModernFamily::FontNameId, ComputerModernFamily::FontSizeId, UChar8, int) const; virtual bool getGlyphData(const AreaRef&, SmartPtr&, UChar8&) const; }; #endif // __PS_TFMComputerModernShaper_hh__ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/������������������������������������������������������������������0000777�0001750�0001750�00000000000�10704625466�014033� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_AdobeShaper.cc������������������������������������������������0000644�0001750�0001750�00000045650�10661271102�017234� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include #include "Gtk_AdobeShaper.hh" #include "Gtk_AreaFactory.hh" #include "Gtk_PangoFontManager.hh" #if HAVE_XFT #include "Gtk_XftFontManager.hh" #endif // HAVE_XFT #include "MathVariant.hh" #include "MathVariantMap.hh" #include "ShaperManager.hh" #include "MathGraphicDevice.hh" #include "ShapingContext.hh" static struct { guint8 index; Char16 ch; } symbolMap[] = { { 0x20, 0x0020 }, // SPACE // space { 0x21, 0x0021 }, // EXCLAMATION MARK // exclam { 0x22, 0x2200 }, // FOR ALL // universal { 0x23, 0x0023 }, // NUMBER SIGN // numbersign { 0x24, 0x2203 }, // THERE EXISTS // existential { 0x25, 0x0025 }, // PERCENT SIGN // percent { 0x26, 0x0026 }, // AMPERSAND // ampersand { 0x27, 0x220B }, // CONTAINS AS MEMBER // suchthat { 0x28, 0x0028 }, // LEFT PARENTHESIS // parenleft { 0x29, 0x0029 }, // RIGHT PARENTHESIS // parenright { 0x2A, 0x2217 }, // ASTERISK OPERATOR // asteriskmath { 0x2B, 0x002B }, // PLUS SIGN // plus { 0x2C, 0x002C }, // COMMA // comma { 0x2D, 0x2212 }, // MINUS SIGN // minus { 0x2E, 0x002E }, // FULL STOP // period { 0x2F, 0x002F }, // SOLIDUS // slash { 0x30, 0x0030 }, // DIGIT ZERO // zero { 0x31, 0x0031 }, // DIGIT ONE // one { 0x32, 0x0032 }, // DIGIT TWO // two { 0x33, 0x0033 }, // DIGIT THREE // three { 0x34, 0x0034 }, // DIGIT FOUR // four { 0x35, 0x0035 }, // DIGIT FIVE // five { 0x36, 0x0036 }, // DIGIT SIX // six { 0x37, 0x0037 }, // DIGIT SEVEN // seven { 0x38, 0x0038 }, // DIGIT EIGHT // eight { 0x39, 0x0039 }, // DIGIT NINE // nine { 0x3A, 0x003A }, // COLON // colon { 0x3B, 0x003B }, // SEMICOLON // semicolon { 0x3C, 0x003C }, // LESS-THAN SIGN // less { 0x3D, 0x003D }, // EQUALS SIGN // equal { 0x3E, 0x003E }, // GREATER-THAN SIGN // greater { 0x3F, 0x003F }, // QUESTION MARK // question { 0x40, 0x2245 }, // APPROXIMATELY EQUAL TO // congruent { 0x41, 0x0391 }, // GREEK CAPITAL LETTER ALPHA // Alpha { 0x42, 0x0392 }, // GREEK CAPITAL LETTER BETA // Beta { 0x43, 0x03A7 }, // GREEK CAPITAL LETTER CHI // Chi { 0x44, 0x0394 }, // GREEK CAPITAL LETTER DELTA // Delta { 0x44, 0x2206 }, // INCREMENT // Delta { 0x45, 0x0395 }, // GREEK CAPITAL LETTER EPSILON // Epsilon { 0x46, 0x03A6 }, // GREEK CAPITAL LETTER PHI // Phi { 0x47, 0x0393 }, // GREEK CAPITAL LETTER GAMMA // Gamma { 0x48, 0x0397 }, // GREEK CAPITAL LETTER ETA // Eta { 0x49, 0x0399 }, // GREEK CAPITAL LETTER IOTA // Iota { 0x4A, 0x03D1 }, // GREEK THETA SYMBOL // theta1 { 0x4B, 0x039A }, // GREEK CAPITAL LETTER KAPPA // Kappa { 0x4C, 0x039B }, // GREEK CAPITAL LETTER LAMDA // Lambda { 0x4D, 0x039C }, // GREEK CAPITAL LETTER MU // Mu { 0x4E, 0x039D }, // GREEK CAPITAL LETTER NU // Nu { 0x4F, 0x039F }, // GREEK CAPITAL LETTER OMICRON // Omicron { 0x50, 0x03A0 }, // GREEK CAPITAL LETTER PI // Pi { 0x51, 0x0398 }, // GREEK CAPITAL LETTER THETA // Theta { 0x52, 0x03A1 }, // GREEK CAPITAL LETTER RHO // Rho { 0x53, 0x03A3 }, // GREEK CAPITAL LETTER SIGMA // Sigma { 0x54, 0x03A4 }, // GREEK CAPITAL LETTER TAU // Tau { 0x55, 0x03A5 }, // GREEK CAPITAL LETTER UPSILON // Upsilon { 0x56, 0x03C2 }, // GREEK SMALL LETTER FINAL SIGMA // sigma1 { 0x57, 0x03A9 }, // GREEK CAPITAL LETTER OMEGA // Omega { 0x57, 0x2126 }, // OHM SIGN // Omega { 0x58, 0x039E }, // GREEK CAPITAL LETTER XI // Xi { 0x59, 0x03A8 }, // GREEK CAPITAL LETTER PSI // Psi { 0x5A, 0x0396 }, // GREEK CAPITAL LETTER ZETA // Zeta { 0x5B, 0x005B }, // LEFT SQUARE BRACKET // bracketleft { 0x5C, 0x2234 }, // THEREFORE // therefore { 0x5D, 0x005D }, // RIGHT SQUARE BRACKET // bracketright { 0x5E, 0x22A5 }, // UP TACK // perpendicular { 0x5F, 0x005F }, // LOW LINE // underscore { 0x60, 0xF8E5 }, // RADICAL EXTENDER // radicalex (CUS) { 0x61, 0x03B1 }, // GREEK SMALL LETTER ALPHA // alpha { 0x62, 0x03B2 }, // GREEK SMALL LETTER BETA // beta { 0x63, 0x03C7 }, // GREEK SMALL LETTER CHI // chi { 0x64, 0x03B4 }, // GREEK SMALL LETTER DELTA // delta { 0x65, 0x03B5 }, // GREEK SMALL LETTER EPSILON // epsilon { 0x66, 0x03C6 }, // GREEK SMALL LETTER PHI // phi { 0x67, 0x03B3 }, // GREEK SMALL LETTER GAMMA // gamma { 0x68, 0x03B7 }, // GREEK SMALL LETTER ETA // eta { 0x69, 0x03B9 }, // GREEK SMALL LETTER IOTA // iota { 0x6A, 0x03D5 }, // GREEK PHI SYMBOL // phi1 { 0x6B, 0x03BA }, // GREEK SMALL LETTER KAPPA // kappa { 0x6C, 0x03BB }, // GREEK SMALL LETTER LAMDA // lambda { 0x6D, 0x00B5 }, // MICRO SIGN // mu { 0x6D, 0x03BC }, // GREEK SMALL LETTER MU // mu { 0x6E, 0x03BD }, // GREEK SMALL LETTER NU // nu { 0x6F, 0x03BF }, // GREEK SMALL LETTER OMICRON // omicron { 0x70, 0x03C0 }, // GREEK SMALL LETTER PI // pi { 0x71, 0x03B8 }, // GREEK SMALL LETTER THETA // theta { 0x72, 0x03C1 }, // GREEK SMALL LETTER RHO // rho { 0x73, 0x03C3 }, // GREEK SMALL LETTER SIGMA // sigma { 0x74, 0x03C4 }, // GREEK SMALL LETTER TAU // tau { 0x75, 0x03C5 }, // GREEK SMALL LETTER UPSILON // upsilon { 0x76, 0x03D6 }, // GREEK PI SYMBOL // omega1 { 0x77, 0x03C9 }, // GREEK SMALL LETTER OMEGA // omega { 0x78, 0x03BE }, // GREEK SMALL LETTER XI // xi { 0x79, 0x03C8 }, // GREEK SMALL LETTER PSI // psi { 0x7A, 0x03B6 }, // GREEK SMALL LETTER ZETA // zeta { 0x7B, 0x007B }, // LEFT CURLY BRACKET // braceleft { 0x7C, 0x007C }, // VERTICAL LINE // bar { 0x7D, 0x007D }, // RIGHT CURLY BRACKET // braceright { 0x7E, 0x223C }, // TILDE OPERATOR // similar { 0xA0, 0x20AC }, // EURO SIGN // Euro { 0xA1, 0x03D2 }, // GREEK UPSILON WITH HOOK SYMBOL // Upsilon1 { 0xA2, 0x2032 }, // PRIME // minute { 0xA3, 0x2264 }, // LESS-THAN OR EQUAL TO // lessequal { 0xA4, 0x2044 }, // FRACTION SLASH // fraction { 0xA4, 0x2215 }, // DIVISION SLASH // fraction { 0xA5, 0x221E }, // INFINITY // infinity { 0xA6, 0x0192 }, // LATIN SMALL LETTER F WITH HOOK // florin { 0xA7, 0x2663 }, // BLACK CLUB SUIT // club { 0xA8, 0x2666 }, // BLACK DIAMOND SUIT // diamond { 0xA9, 0x2665 }, // BLACK HEART SUIT // heart { 0xAA, 0x2660 }, // BLACK SPADE SUIT // spade { 0xAB, 0x2194 }, // LEFT RIGHT ARROW // arrowboth { 0xAC, 0x2190 }, // LEFTWARDS ARROW // arrowleft { 0xAD, 0x2191 }, // UPWARDS ARROW // arrowup { 0xAE, 0x2192 }, // RIGHTWARDS ARROW // arrowright { 0xAF, 0x2193 }, // DOWNWARDS ARROW // arrowdown { 0xB0, 0x00B0 }, // DEGREE SIGN // degree { 0xB1, 0x00B1 }, // PLUS-MINUS SIGN // plusminus { 0xB2, 0x2033 }, // DOUBLE PRIME // second { 0xB3, 0x2265 }, // GREATER-THAN OR EQUAL TO // greaterequal { 0xB4, 0x00D7 }, // MULTIPLICATION SIGN // multiply { 0xB5, 0x221D }, // PROPORTIONAL TO // proportional { 0xB6, 0x2202 }, // PARTIAL DIFFERENTIAL // partialdiff { 0xB7, 0x2022 }, // BULLET // bullet { 0xB8, 0x00F7 }, // DIVISION SIGN // divide { 0xB9, 0x2260 }, // NOT EQUAL TO // notequal { 0xBA, 0x2261 }, // IDENTICAL TO // equivalence { 0xBB, 0x2248 }, // ALMOST EQUAL TO // approxequal { 0xBC, 0x2026 }, // HORIZONTAL ELLIPSIS // ellipsis { 0xBD, 0xF8E6 }, // VERTICAL ARROW EXTENDER // arrowvertex (CUS) { 0xBE, 0xF8E7 }, // HORIZONTAL ARROW EXTENDER // arrowhorizex (CUS) { 0xBF, 0x21B5 }, // DOWNWARDS ARROW WITH CORNER LEFTWARDS // carriagereturn { 0xC0, 0x2135 }, // ALEF SYMBOL // aleph { 0xC1, 0x2111 }, // BLACK-LETTER CAPITAL I // Ifraktur { 0xC2, 0x211C }, // BLACK-LETTER CAPITAL R // Rfraktur { 0xC3, 0x2118 }, // SCRIPT CAPITAL P // weierstrass { 0xC4, 0x2297 }, // CIRCLED TIMES // circlemultiply { 0xC5, 0x2295 }, // CIRCLED PLUS // circleplus { 0xC6, 0x2205 }, // EMPTY SET // emptyset { 0xC7, 0x2229 }, // INTERSECTION // intersection { 0xC8, 0x222A }, // UNION // union { 0xC9, 0x2283 }, // SUPERSET OF // propersuperset { 0xCA, 0x2287 }, // SUPERSET OF OR EQUAL TO // reflexsuperset { 0xCB, 0x2284 }, // NOT A SUBSET OF // notsubset { 0xCC, 0x2282 }, // SUBSET OF // propersubset { 0xCD, 0x2286 }, // SUBSET OF OR EQUAL TO // reflexsubset { 0xCE, 0x2208 }, // ELEMENT OF // element { 0xCF, 0x2209 }, // NOT AN ELEMENT OF // notelement { 0xD0, 0x2220 }, // ANGLE // angle { 0xD1, 0x2207 }, // NABLA // gradient { 0xD2, 0x00AE }, // REGISTERED SIGN SERIF // registerserif (CUS) CHANGED { 0xD3, 0x00A9 }, // COPYRIGHT SIGN SERIF // copyrightserif (CUS) CHANGED { 0xD4, 0x2122 }, // TRADE MARK SIGN SERIF // trademarkserif (CUS) CHANGED { 0xD5, 0x220F }, // N-ARY PRODUCT // product { 0xD6, 0x221A }, // SQUARE ROOT // radical { 0xD7, 0x22C5 }, // DOT OPERATOR // dotmath { 0xD8, 0x00AC }, // NOT SIGN // logicalnot { 0xD9, 0x2227 }, // LOGICAL AND // logicaland { 0xDA, 0x2228 }, // LOGICAL OR // logicalor { 0xDB, 0x21D4 }, // LEFT RIGHT DOUBLE ARROW // arrowdblboth { 0xDC, 0x21D0 }, // LEFTWARDS DOUBLE ARROW // arrowdblleft { 0xDD, 0x21D1 }, // UPWARDS DOUBLE ARROW // arrowdblup { 0xDE, 0x21D2 }, // RIGHTWARDS DOUBLE ARROW // arrowdblright { 0xDF, 0x21D3 }, // DOWNWARDS DOUBLE ARROW // arrowdbldown { 0xE0, 0x25CA }, // LOZENGE // lozenge { 0xE1, 0x2329 }, // LEFT-POINTING ANGLE BRACKET // angleleft { 0xE2, 0xF8E8 }, // REGISTERED SIGN SANS SERIF // registersans (CUS) { 0xE3, 0xF8E9 }, // COPYRIGHT SIGN SANS SERIF // copyrightsans (CUS) { 0xE4, 0xF8EA }, // TRADE MARK SIGN SANS SERIF // trademarksans (CUS) { 0xE5, 0x2211 }, // N-ARY SUMMATION // summation { 0xF1, 0x232A }, // RIGHT-POINTING ANGLE BRACKET // angleright { 0xF2, 0x222B }, // INTEGRAL // integral { 0xF3, 0x2320 }, // TOP HALF INTEGRAL // integraltp { 0xF4, 0xF8F5 }, // INTEGRAL EXTENDER // integralex (CUS) { 0xF5, 0x2321 }, // BOTTOM HALF INTEGRAL // integralbt { 0xF6, 0xF8F6 }, // RIGHT PAREN TOP // parenrighttp (CUS) { 0xF7, 0xF8F7 }, // RIGHT PAREN EXTENDER // parenrightex (CUS) { 0xF8, 0xF8F8 }, // RIGHT PAREN BOTTOM // parenrightbt (CUS) { 0xF9, 0xF8F9 }, // RIGHT SQUARE BRACKET TOP // bracketrighttp (CUS) { 0xFA, 0xF8FA }, // RIGHT SQUARE BRACKET EXTENDER // bracketrightex (CUS) { 0xFB, 0xF8FB }, // RIGHT SQUARE BRACKET BOTTOM // bracketrightbt (CUS) { 0xFC, 0xF8FC }, // RIGHT CURLY BRACKET TOP // bracerighttp (CUS) { 0xFD, 0xF8FD }, // RIGHT CURLY BRACKET MID // bracerightmid (CUS) { 0xFE, 0xF8FE }, // RIGHT CURLY BRACKET BOTTOM // bracerightbt (CUS) { 0x00, 0x0000 } }; struct HStretchyChar { Char16 ch; guint8 normal; guint8 left; guint8 glue; guint8 right; }; struct VStretchyChar { Char16 ch; guint8 normal; guint8 top; guint8 glue; guint8 middle; guint8 bottom; }; static HStretchyChar hMap[] = { // N L G R { 0x2190, 0xAC, 0xAC, 0xBE, 0 }, { 0x2192, 0xAE, 0, 0xBE, 0xAE }, { 0x2194, 0xAB, 0xAC, 0xBE, 0xAE }, { 0, 0, 0, 0, 0 } }; static VStretchyChar vMap[] = { // N T G M B { 0x0028, 0x28, 0xE6, 0xE7, 0, 0xE8 }, { 0x0029, 0x29, 0xF6, 0xF7, 0, 0xF8 }, { 0x005B, 0x5B, 0xE9, 0xEA, 0, 0xEB }, { 0x005D, 0x5D, 0xF9, 0xFA, 0, 0xFB }, { 0x007B, 0x7B, 0xEC, 0xEF, 0xED, 0xEE }, { 0x007C, 0x7C, 0, 0x7C, 0, 0 }, { 0x007D, 0x7D, 0xFC, 0xEF, 0xFD, 0xFE }, { 0x2191, 0xAD, 0xAD, 0xBD, 0, 0 }, { 0x2193, 0xAF, 0, 0xBD, 0, 0xAF }, { 0x2195, 0, 0xAD, 0xBD, 0, 0xAF }, { 0x222B, 0xF2, 0xF3, 0xF4, 0, 0xF5 }, { 0, 0, 0, 0, 0, 0 } }; struct XFontDesc { MathVariant variant; char* family; char* weight; char* slant; char* charset; }; #define SYMBOL_INDEX 0 #define LATIN_BASE_INDEX 1 #define H_STRETCHY_BIT 0x100 #define V_STRETCHY_BIT 0x200 #define GLYPH_INDEX_MASK 0x0ff static XFontDesc variantDesc[Gtk_AdobeShaper::N_FONTS] = { { NORMAL_VARIANT, "symbol", "medium", "r", "adobe-fontspecific" }, { NORMAL_VARIANT, "times", "medium", "r", "iso8859-1" }, { BOLD_VARIANT, "times", "bold", "r", "iso8859-1" }, { ITALIC_VARIANT, "times", "medium", "i", "iso8859-1" }, { BOLD_ITALIC_VARIANT, "times", "bold", "i", "iso8859-1" }, { SANS_SERIF_VARIANT, "helvetica", "medium", "r", "iso8859-1" }, { BOLD_SANS_SERIF_VARIANT, "helvetica", "bold", "r", "iso8859-1" }, { SANS_SERIF_ITALIC_VARIANT, "helvetica", "medium", "i", "iso8859-1" }, { SANS_SERIF_BOLD_ITALIC_VARIANT, "helvetica", "bold", "i", "iso8859-1" }, { MONOSPACE_VARIANT, "courier", "medium", "r", "iso8859-1" } }; Gtk_AdobeShaper::Gtk_AdobeShaper() { } Gtk_AdobeShaper::~Gtk_AdobeShaper() { } void Gtk_AdobeShaper::setFontManager(const SmartPtr& fm) { pangoFontManager = fm; } SmartPtr Gtk_AdobeShaper::create() { return new Gtk_AdobeShaper(); } #if HAVE_XFT void Gtk_AdobeShaper::setFontManager(const SmartPtr& fm) { xftFontManager = fm; } #endif // HAVE_XFT void Gtk_AdobeShaper::registerShaper(const SmartPtr& sm, unsigned shaperId) { assert(sm); for (unsigned i = LATIN_BASE_INDEX; i < N_FONTS; i++) { for (Char16 ch = 0x20; ch < 0x80; ch++) { Char32 vch = mapMathVariant(variantDesc[i].variant, ch); if (variantDesc[i].variant == NORMAL_VARIANT || vch != ch) sm->registerChar(vch, GlyphSpec(shaperId, i, ch)); } } for (unsigned i = 0; symbolMap[i].ch; i++) sm->registerChar(symbolMap[i].ch, GlyphSpec(shaperId, SYMBOL_INDEX, symbolMap[i].index)); for (unsigned i = 0; vMap[i].ch != 0; i++) sm->registerStretchyChar(vMap[i].ch, GlyphSpec(shaperId, SYMBOL_INDEX, i | V_STRETCHY_BIT)); for (unsigned i = 0; hMap[i].ch != 0; i++) sm->registerStretchyChar(hMap[i].ch, GlyphSpec(shaperId, SYMBOL_INDEX, i | H_STRETCHY_BIT)); } void Gtk_AdobeShaper::unregisterShaper(const SmartPtr&, unsigned) { // nothing to do??? } void Gtk_AdobeShaper::shape(ShapingContext& context) const { for (unsigned n = context.chunkSize(); n > 0; n--) { AreaRef res; const GlyphSpec& spec = context.getSpec(); if (spec.getGlyphId() & H_STRETCHY_BIT) res = shapeStretchyCharH(context); else if (spec.getGlyphId() & V_STRETCHY_BIT) res = shapeStretchyCharV(context); // If we get here then either the character was not required // to stretch, or one of the stretchying methods has failed, // hence we shape it with no stretchying if (!res) res = shapeChar(context); if (!res) break; context.pushArea(1, res); } } AreaRef Gtk_AdobeShaper::createPangoGlyphArea(const SmartPtr& factory, unsigned fi, unsigned gi, const scaled& size) const { PangoXSubfont subfont; assert(pangoFontManager); Gtk_PangoFontManager::XLFD fd("adobe", variantDesc[fi].family, variantDesc[fi].weight, variantDesc[fi].slant, static_cast(size.toFloat() * 10 + 0.5f), variantDesc[fi].charset); PangoFont* font = pangoFontManager->getPangoFont(fd, subfont); assert(font); PangoGlyphString* gs = pango_glyph_string_new(); pango_glyph_string_set_size(gs, 1); gs->glyphs[0].glyph = PANGO_X_MAKE_GLYPH(subfont, gi); gs->glyphs[0].geometry.x_offset = 0; gs->glyphs[0].geometry.y_offset = 0; gs->glyphs[0].geometry.width = 0; return factory->pangoGlyph(font, gs); } #if HAVE_XFT AreaRef Gtk_AdobeShaper::createXftGlyphArea(const SmartPtr& factory, unsigned fi, unsigned gi, const scaled& size) const { assert(xftFontManager); Gtk_XftFontManager::XLFD fd("adobe", variantDesc[fi].family, variantDesc[fi].weight, variantDesc[fi].slant, round(size * 10).toInt(), variantDesc[fi].charset); XftFont* font = xftFontManager->getXftFont(Gtk_XftFontManager::XLFD(fd)); assert(font); return factory->xftGlyph(font, gi); } #endif // HAVE_XFT AreaRef Gtk_AdobeShaper::getGlyphArea(const SmartPtr& factory, unsigned fi, unsigned gi, const scaled& size) const { #if 1 return createPangoGlyphArea(factory, fi, gi, size); #else return createXftGlyphArea(factory, fi, gi, size); #endif } AreaRef Gtk_AdobeShaper::shapeChar(const ShapingContext& context) const { SmartPtr factory = smart_cast(context.getFactory()); assert(factory); return getGlyphArea(factory, context.getSpec().getFontId(), context.getSpec().getGlyphId() & GLYPH_INDEX_MASK, context.getSize()); } AreaRef Gtk_AdobeShaper::shapeStretchyCharH(const ShapingContext& context) const { SmartPtr factory = smart_cast(context.getFactory()); assert(factory); const scaled size = context.getSize(); const HStretchyChar* charSpec = &hMap[context.getSpec().getGlyphId() & GLYPH_INDEX_MASK]; AreaRef normal = (charSpec->normal != 0) ? getGlyphArea(factory, SYMBOL_INDEX, charSpec->normal, size) : 0; AreaRef left = (charSpec->left != 0) ? getGlyphArea(factory, SYMBOL_INDEX, charSpec->left, size) : 0; AreaRef glue = (charSpec->glue != 0) ? getGlyphArea(factory, SYMBOL_INDEX, charSpec->glue, size) : 0; AreaRef right = (charSpec->right != 0) ? getGlyphArea(factory, SYMBOL_INDEX, charSpec->right, size) : 0; return composeStretchyCharH(factory, normal, left, glue, right, context.getHSpan()); } AreaRef Gtk_AdobeShaper::shapeStretchyCharV(const ShapingContext& context) const { const scaled span = context.getVSpan() - (1 * context.getSize()) / 10; SmartPtr factory = smart_cast(context.getFactory()); assert(factory); const scaled size = context.getSize(); const VStretchyChar* charSpec = &vMap[context.getSpec().getGlyphId() & GLYPH_INDEX_MASK]; AreaRef normal = (charSpec->normal != 0) ? getGlyphArea(factory, SYMBOL_INDEX, charSpec->normal, size) : 0; AreaRef top = (charSpec->top != 0) ? getGlyphArea(factory, SYMBOL_INDEX, charSpec->top, size) : 0; AreaRef glue = (charSpec->glue != 0) ? getGlyphArea(factory, SYMBOL_INDEX, charSpec->glue, size) : 0; AreaRef middle = (charSpec->middle != 0) ? getGlyphArea(factory, SYMBOL_INDEX, charSpec->middle, size) : 0; AreaRef bottom = (charSpec->bottom != 0) ? getGlyphArea(factory, SYMBOL_INDEX, charSpec->bottom, size) : 0; return composeStretchyCharV(factory, normal, top, glue, middle, bottom, span); } ����������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_Backend.hh����������������������������������������������������0000644�0001750�0001750�00000002365�10661271102�016414� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_Backend_hh__ #define __Gtk_Backend_hh__ #include "Backend.hh" class GMV_BackEnd_EXPORT Gtk_Backend : public Backend { protected: Gtk_Backend(const SmartPtr&, const SmartPtr&); virtual ~Gtk_Backend(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); }; #endif // __Gtk_Backend_hh__ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_BoxGraphicDevice.hh�������������������������������������������0000644�0001750�0001750�00000003370�10661271102�020230� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_BoxGraphicDevice_hh__ #define __Gtk_BoxGraphicDevice_hh__ #include #include "BoxGraphicDevice.hh" #include "GObjectPtr.hh" class Gtk_BoxGraphicDevice : public BoxGraphicDevice { protected: Gtk_BoxGraphicDevice(const SmartPtr&, const SmartPtr&); virtual ~Gtk_BoxGraphicDevice(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); virtual void setFactory(const SmartPtr&); virtual AreaRef string(const class FormattingContext&, const String&, const scaled&) const; virtual AreaRef dummy(const class FormattingContext&) const; virtual AreaRef wrapper(const class FormattingContext&, const AreaRef&) const; private: GObjectPtr pango_context; SmartPtr gtk_factory; }; #endif // __Gtk_MathGraphicDevice_hh__ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoShaper.cc������������������������������������������������0000644�0001750�0001750�00000015043�10661271102�017257� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Gtk_AreaFactory.hh" #include "Gtk_PangoShaper.hh" #include "MathGraphicDevice.hh" #include "MathMLElement.hh" #include "MathVariantMap.hh" #include "ShapingContext.hh" #include "ShaperManager.hh" struct HStretchyChar { gunichar ch; gunichar left; gunichar glue; gunichar right; }; struct VStretchyChar { gunichar ch; gunichar top; gunichar glue; gunichar middle; gunichar bottom; }; static HStretchyChar hMap[] = { { 0x2190, 0x2190, 0x23af, 0x0000 }, { 0x2192, 0x0000, 0x23af, 0x2192 }, { 0x2194, 0x2190, 0x23af, 0x2192 }, { 0, 0, 0, 0 } }; static VStretchyChar vMap[] = { { 0x0028, 0x239b, 0x239c, 0x0000, 0x239d }, // LEFT PAREN { 0x0029, 0x239e, 0x239f, 0x0000, 0x23a0 }, // RIGHT PAREN { 0x005b, 0x23a1, 0x23a2, 0x0000, 0x23a3 }, // LEFT SQUARE BRACKET { 0x005d, 0x23a4, 0x23a5, 0x0000, 0x23a6 }, // RIGHT SQUARE BRACKET { 0x007b, 0x23a7, 0x23aa, 0x23a8, 0x23a9 }, // LEFT CURLY BRACKET { 0x007d, 0x23ab, 0x23aa, 0x23ac, 0x23ad }, // RIGHT CURLY BRACKET { 0x2191, 0x2191, 0x23d0, 0x0000, 0x0000 }, // UP ARROW { 0x2193, 0x0000, 0x23d0, 0x0000, 0x2193 }, // BOTTOM ARROW { 0x222b, 0x2320, 0x23ae, 0x0000, 0x2321 }, // INTEGRAL { 0, 0, 0, 0, 0 } }; #define NORMAL_INDEX 0 #define H_STRETCHY_INDEX 1 #define V_STRETCHY_INDEX 2 #define MAPPED_BASE_INDEX 3 Gtk_PangoShaper::Gtk_PangoShaper(const SmartPtr& l, const SmartPtr& conf) : Gtk_DefaultPangoShaper(l, conf) { } Gtk_PangoShaper::~Gtk_PangoShaper() { } SmartPtr Gtk_PangoShaper::create(const SmartPtr& l, const SmartPtr& conf) { return new Gtk_PangoShaper(l, conf); } void Gtk_PangoShaper::registerShaper(const SmartPtr& sm, unsigned shaperId) { for (unsigned i = NORMAL_VARIANT; i <= MONOSPACE_VARIANT; i++) { for (Char16 ch = 0x21; ch < 0x100; ch++) { Char32 vch = mapMathVariant(MathVariant(i), ch); if (i == NORMAL_VARIANT || vch != ch) sm->registerChar(vch, GlyphSpec(shaperId, MAPPED_BASE_INDEX + i - NORMAL_VARIANT, ch)); } } for (unsigned i = 0; hMap[i].ch != 0; i++) sm->registerStretchyChar(hMap[i].ch, GlyphSpec(shaperId, H_STRETCHY_INDEX, i)); for (unsigned i = 0; vMap[i].ch != 0; i++) sm->registerStretchyChar(vMap[i].ch, GlyphSpec(shaperId, V_STRETCHY_INDEX, i)); } void Gtk_PangoShaper::unregisterShaper(const SmartPtr&, unsigned) { } void Gtk_PangoShaper::shape(ShapingContext& context) const { const GlyphSpec& spec = context.getSpec(); switch (spec.getFontId()) { case H_STRETCHY_INDEX: context.pushArea(1, shapeStretchyCharH(context)); break; case V_STRETCHY_INDEX: context.pushArea(1, shapeStretchyCharV(context)); break; default: { const unsigned n = context.chunkSize(); assert(n > 0); if (n > 1) context.pushArea(n, shapeChunk(context, n)); else context.pushArea(1, shapeChar(context)); } break; } } AreaRef Gtk_PangoShaper::shapeChar(const ShapingContext& context) const { gchar buffer[6]; gint length = g_unichar_to_utf8(context.getSpec().getGlyphId(), buffer); PangoLayout* layout = createPangoLayout(buffer, length, context.getSize(), getTextAttributes(MathVariant(context.getSpec().getFontId() - MAPPED_BASE_INDEX + NORMAL_VARIANT))); SmartPtr factory = smart_cast(context.getFactory()); assert(factory); return factory->pangoLayoutLine(layout); } AreaRef Gtk_PangoShaper::shapeChunk(const ShapingContext& context, unsigned n) const { gunichar* uni_buffer = new gunichar[n]; for (unsigned i = 0; i < n; i++) uni_buffer[i] = context.getSpec(i).getGlyphId(); glong length; gchar* buffer = g_ucs4_to_utf8(uni_buffer, n, NULL, &length, NULL); delete [] uni_buffer; PangoLayout* layout = createPangoLayout(buffer, length, context.getSize(), getTextAttributes(MathVariant(context.getSpec().getFontId() - MAPPED_BASE_INDEX + NORMAL_VARIANT))); g_free(buffer); SmartPtr factory = smart_cast(context.getFactory()); assert(factory); return factory->pangoLayoutLine(layout); } AreaRef Gtk_PangoShaper::shapeStretchyCharH(const ShapingContext& context) const { const HStretchyChar* charSpec = &hMap[context.getSpec().getGlyphId()]; const AreaRef normal = (charSpec->ch != 0) ? shapeString(context, &charSpec->ch, 1) : 0; const AreaRef left = (charSpec->left != 0) ? shapeString(context, &charSpec->left, 1) : 0; const AreaRef glue = (charSpec->glue != 0) ? shapeString(context, &charSpec->glue, 1) : 0; const AreaRef right = (charSpec->right != 0) ? shapeString(context, &charSpec->right, 1) : 0; return composeStretchyCharH(context.getFactory(), normal, left, glue, right, context.getHSpan()); } AreaRef Gtk_PangoShaper::shapeStretchyCharV(const ShapingContext& context) const { // we use 2 * so that text-mode parentheses are not required to stretch // when a glyph goes below the baseline (like p or y) const scaled span = context.getVSpan() - (2 * context.getSize()) / 10; const VStretchyChar* charSpec = &vMap[context.getSpec().getGlyphId()]; AreaRef normal = (charSpec->ch != 0) ? shapeString(context, &charSpec->ch, 1) : 0; AreaRef top = (charSpec->top != 0) ? shapeString(context, &charSpec->top, 1) : 0; AreaRef glue = (charSpec->glue != 0) ? shapeString(context, &charSpec->glue, 1) : 0; AreaRef middle = (charSpec->middle != 0) ? shapeString(context, &charSpec->middle, 1) : 0; AreaRef bottom = (charSpec->bottom != 0) ? shapeString(context, &charSpec->bottom, 1) : 0; return composeStretchyCharV(context.getFactory(), normal, top, glue, middle, bottom, span); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_T1ComputerModernShaper.hh�������������������������������������0000644�0001750�0001750�00000003411�10661271102�021371� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_T1ComputerModernShaper_hh__ #define __Gtk_T1ComputerModernShaper_hh__ #include "ComputerModernShaper.hh" class Gtk_T1ComputerModernShaper : public ComputerModernShaper { protected: Gtk_T1ComputerModernShaper(const SmartPtr&, const SmartPtr&); virtual ~Gtk_T1ComputerModernShaper(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); void setFontManager(const SmartPtr&); protected: SmartPtr getT1Font(ComputerModernFamily::FontNameId, ComputerModernFamily::FontSizeId, const scaled&) const; virtual AreaRef getGlyphArea(ComputerModernFamily::FontNameId, ComputerModernFamily::FontSizeId, UChar8, int) const; private: SmartPtr t1FontManager; }; #endif // __Gtk_T1ComputerModernShaper_hh__ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoLayoutLineArea.hh����������������������������������������0000644�0001750�0001750�00000003042�10661271102�020721� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_PangoLayoutLineArea_hh__ #define __Gtk_PangoLayoutLineArea_hh__ #include #include "Gtk_PangoLayoutArea.hh" class Gtk_PangoLayoutLineArea : public Gtk_PangoLayoutArea { protected: Gtk_PangoLayoutLineArea(PangoLayout*); virtual ~Gtk_PangoLayoutLineArea(); public: static SmartPtr create(PangoLayout* layout) { return new Gtk_PangoLayoutLineArea(layout); } virtual void render(class RenderingContext&, const scaled&, const scaled&) const; #if 1 virtual bool indexOfPosition(const scaled&, const scaled&, CharIndex&) const; virtual bool positionOfIndex(CharIndex, class Point*, BoundingBox*) const; #endif }; #endif // __Gtk_PangoLayoutLineArea_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_T1ComputerModernShaper.cc�������������������������������������0000644�0001750�0001750�00000005363�10661271102�021367� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "t1lib_T1Font.hh" #include "Gtk_AreaFactory.hh" #include "t1lib_T1FontManager.hh" #include "Gtk_T1ComputerModernShaper.hh" #include "Gtk_t1lib_T1GlyphArea.hh" Gtk_T1ComputerModernShaper::Gtk_T1ComputerModernShaper(const SmartPtr& l, const SmartPtr& conf) : ComputerModernShaper(l, conf) { setPostShapingMode(conf->getString(l, "gtk-backend/type1-computer-modern-shaper/post-shaping", "never")); } Gtk_T1ComputerModernShaper::~Gtk_T1ComputerModernShaper() { } SmartPtr Gtk_T1ComputerModernShaper::create(const SmartPtr& l, const SmartPtr& conf) { return new Gtk_T1ComputerModernShaper(l, conf); } void Gtk_T1ComputerModernShaper::setFontManager(const SmartPtr& fm) { assert(fm); t1FontManager = fm; } SmartPtr Gtk_T1ComputerModernShaper::getT1Font(ComputerModernFamily::FontNameId fontNameId, ComputerModernFamily::FontSizeId designSize, const scaled& size) const { const String fontName = getFamily()->nameOfFont(fontNameId, designSize); if (SmartPtr font = t1FontManager->getT1Font(fontName + ".pfb", size)) return font; else return t1FontManager->getT1Font(fontName + ".pfa", size); } AreaRef Gtk_T1ComputerModernShaper::getGlyphArea(ComputerModernFamily::FontNameId fontNameId, ComputerModernFamily::FontSizeId designSize, UChar8 index, int size) const { assert(t1FontManager); const SmartPtr font = getT1Font(fontNameId, designSize, scaled(size)); assert(font); #if 0 std::vector c; c.reserve(256); for (int i = 0; i < 256; i++) c.push_back(Gtk_t1lib_T1GlyphArea::create(font, i)); return factory->horizontalArray(c); #endif AreaRef res = Gtk_t1lib_T1GlyphArea::create(font, index); return res; } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoComputerModernShaper.hh����������������������������������0000644�0001750�0001750�00000003332�10661271102�022153� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_PangoComputerModernShaper_hh__ #define __Gtk_PangoComputerModernShaper_hh__ #include "ComputerModernShaper.hh" class Gtk_PangoComputerModernShaper : public ComputerModernShaper { protected: Gtk_PangoComputerModernShaper(const SmartPtr&, const SmartPtr&); virtual ~Gtk_PangoComputerModernShaper(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); void setPangoShaper(const SmartPtr&); SmartPtr getPangoShaper(void) const; protected: virtual AreaRef getGlyphArea(ComputerModernFamily::FontNameId, ComputerModernFamily::FontSizeId, UChar8, int) const; private: SmartPtr pangoShaper; }; #endif // __Gtk_PangoComputerModernShaper_hh__ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_AdobeShaper.hh������������������������������������������������0000644�0001750�0001750�00000004301�10661271102�017232� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_AdobeShaper_hh__ #define __Gtk_AdobeShaper_hh__ #include "Shaper.hh" class Gtk_AdobeShaper : public Shaper { protected: Gtk_AdobeShaper(void); virtual ~Gtk_AdobeShaper(); public: enum { N_FONTS = 10 }; static SmartPtr create(void); void setFontManager(const SmartPtr&); #if HAVE_XFT void setFontManager(const SmartPtr&); #endif // HAVE_XFT virtual void registerShaper(const SmartPtr&, unsigned); virtual void unregisterShaper(const SmartPtr&, unsigned); virtual void shape(class ShapingContext&) const; protected: AreaRef getGlyphArea(const SmartPtr&, unsigned, unsigned, const scaled&) const; AreaRef createPangoGlyphArea(const SmartPtr&, unsigned, unsigned, const scaled&) const; #if HAVE_XFT AreaRef createXftGlyphArea(const SmartPtr&, unsigned, unsigned, const scaled&) const; #endif // HAVE_XFT AreaRef shapeChar(const class ShapingContext&) const; AreaRef shapeStretchyCharV(const class ShapingContext&) const; AreaRef shapeStretchyCharH(const class ShapingContext&) const; SmartPtr pangoFontManager; #if HAVE_XFT SmartPtr xftFontManager; #endif // HAVE_XFT }; #endif // __Gtk_AdobeShaper_hh__ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoGlyphArea.cc���������������������������������������������0000644�0001750�0001750�00000005303�10661271102�017707� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include "Gtk_PangoGlyphArea.hh" #include "Gtk_RenderingContext.hh" Gtk_PangoGlyphArea::Gtk_PangoGlyphArea(PangoFont* f, PangoGlyphString* g) : font(f), glyphs(g) { PangoRectangle ink_rect; PangoRectangle logical_rect; pango_font_get_glyph_extents(font, glyphs->glyphs[0].glyph, &ink_rect, &logical_rect); #if 0 printf("%c Ink Ascent = %6d Ink Descent = %6d Ink y = %6d Ink height = %6d\n", glyphs->glyphs[0].glyph, PANGO_ASCENT(ink_rect), PANGO_DESCENT(ink_rect), ink_rect.y, ink_rect.height); #endif bbox = BoundingBox(Gtk_RenderingContext::fromPangoPixels(logical_rect.width), Gtk_RenderingContext::fromPangoPixels(PANGO_ASCENT(ink_rect)), Gtk_RenderingContext::fromPangoPixels(PANGO_DESCENT(ink_rect))); } Gtk_PangoGlyphArea::~Gtk_PangoGlyphArea() { } BoundingBox Gtk_PangoGlyphArea::box() const { #if 0 PangoRectangle ink_rect; PangoRectangle logical_rect; pango_font_get_glyph_extents(font, glyphs->glyphs[0].glyph, &ink_rect, &logical_rect); return BoundingBox(Gtk_RenderingContext::fromPangoPixels(logical_rect.width), Gtk_RenderingContext::fromPangoPixels(PANGO_ASCENT(ink_rect)), Gtk_RenderingContext::fromPangoPixels(PANGO_DESCENT(ink_rect))); #endif return bbox; } scaled Gtk_PangoGlyphArea::leftEdge() const { PangoRectangle rect; pango_glyph_string_extents(glyphs, font, &rect, 0); return Gtk_RenderingContext::fromPangoPixels(PANGO_LBEARING(rect)); } scaled Gtk_PangoGlyphArea::rightEdge() const { PangoRectangle rect; pango_glyph_string_extents(glyphs, font, &rect, 0); return Gtk_RenderingContext::fromPangoPixels(PANGO_RBEARING(rect)); } void Gtk_PangoGlyphArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { Gtk_RenderingContext& context = dynamic_cast(c); context.draw(x, y, font, glyphs); } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_Backend.cc����������������������������������������������������0000644�0001750�0001750�00000013032�10661271102�016373� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "Gtk_Backend.hh" #include "Gtk_AreaFactory.hh" #include "Gtk_MathGraphicDevice.hh" #if GMV_ENABLE_BOXML #include "Gtk_BoxGraphicDevice.hh" #else #include "BoxGraphicDevice.hh" #endif // GMV_ENABLE_BOXML #include "Gtk_PangoFontManager.hh" #include "Gtk_DefaultPangoShaper.hh" #include "Gtk_PangoShaper.hh" #include "Gtk_PangoComputerModernShaper.hh" #include "Gtk_AdobeShaper.hh" #if HAVE_LIBT1 #include "t1lib_T1FontManager.hh" #if HAVE_TFM #include "t1lib_TFM_T1FontManager.hh" #endif // HAVE_TFM #include "Gtk_T1ComputerModernShaper.hh" #endif // HAVE_LIBT1 #include "NullShaper.hh" #include "SpaceShaper.hh" #include "ShaperManager.hh" Gtk_Backend::Gtk_Backend(const SmartPtr& l, const SmartPtr& conf) : Backend(l, conf) { SmartPtr factory = Gtk_AreaFactory::create(); SmartPtr mgd = Gtk_MathGraphicDevice::create(l, conf); mgd->setFactory(factory); setMathGraphicDevice(mgd); #if GMV_ENABLE_BOXML SmartPtr bgd = Gtk_BoxGraphicDevice::create(l, conf); bgd->setFactory(factory); setBoxGraphicDevice(bgd); #endif // GMV_ENABLE_BOXML SmartPtr defaultPangoShaper; GObjectPtr context = gdk_pango_context_get(); std::multimap > shaperSet; if (conf->getBool(l, "gtk-backend/null-shaper/enabled", false)) { shaperSet.insert(std::pair >(conf->getInt(l, "gtk-backend/null-shaper/priority", 0), NullShaper::create(l))); } if (conf->getBool(l, "gtk-backend/pango-default-shaper/enabled", false)) { defaultPangoShaper = Gtk_DefaultPangoShaper::create(l, conf); defaultPangoShaper->setPangoContext(context); shaperSet.insert(std::pair >(conf->getInt(l, "gtk-backend/pango-default-shaper/priority", 0), defaultPangoShaper)); } if (conf->getBool(l, "gtk-backend/space-shaper/enabled", false)) { shaperSet.insert(std::pair >(conf->getInt(l, "gtk-backend/space-shaper/priority", 0), SpaceShaper::create())); } if (conf->getBool(l, "gtk-backend/pango-shaper/enabled", false)) { SmartPtr pangoShaper = Gtk_PangoShaper::create(l, conf); pangoShaper->setPangoContext(context); shaperSet.insert(std::pair >(conf->getInt(l, "gtk-backend/pango-shaper/priority", 0), pangoShaper)); } if (conf->getBool(l, "gtk-backend/adobe-shaper/enabled", false)) { SmartPtr pangoFontManager = Gtk_PangoFontManager::create(); SmartPtr adobeShaper = Gtk_AdobeShaper::create(); adobeShaper->setFontManager(pangoFontManager); shaperSet.insert(std::pair >(conf->getInt(l, "gtk-backend/adobe-shaper/priority", 0), adobeShaper)); } if (conf->getBool(l, "gtk-backend/pango-computer-modern-shaper/enabled", false)) { if (defaultPangoShaper) { SmartPtr pangoCMShaper = Gtk_PangoComputerModernShaper::create(l, conf); pangoCMShaper->setPangoShaper(defaultPangoShaper); shaperSet.insert(std::pair >(conf->getInt(l, "gtk-backend/pango-computer-modern-shaper/priority", 0), pangoCMShaper)); } else l->out(LOG_WARNING, "default Pango shaper must be enabled before Pango Computer Modern shaper"); } if (conf->getBool(l, "gtk-backend/type1-computer-modern-shaper/enabled", false)) { const bool useTFM = conf->getBool(l, "gtk-backend/type1-computer-modern-shaper/use-tfm", false); #if HAVE_LIBT1 SmartPtr t1FontManager; #if HAVE_TFM if (useTFM) t1FontManager = t1lib_TFM_T1FontManager::create(l, conf, TFMManager::create()); else t1FontManager = t1lib_T1FontManager::create(l, conf); #else t1FontManager = t1lib_T1FontManager::create(l, conf); #endif // HAVE_TFM SmartPtr cmShaper = Gtk_T1ComputerModernShaper::create(l, conf); cmShaper->setFontManager(t1FontManager); shaperSet.insert(std::pair >(conf->getInt(l, "gtk-backend/type1-computer-modern-shaper/priority", 0), cmShaper)); #else l->out(LOG_WARNING, "t1lib support has not been compiled in, "); #endif // HAVE_LIBT1 } for (std::multimap >::const_iterator p = shaperSet.begin(); p != shaperSet.end(); p++) getShaperManager()->registerShaper(p->second); } Gtk_Backend::~Gtk_Backend() { } SmartPtr Gtk_Backend::create(const SmartPtr& l, const SmartPtr& conf) { return new Gtk_Backend(l, conf); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_MathGraphicDevice.cc������������������������������������������0000644�0001750�0001750�00000003404�10661271102�020355� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "Gtk_AreaFactory.hh" #include "Gtk_MathGraphicDevice.hh" #include "MathMLElement.hh" #include "FormattingContext.hh" Gtk_MathGraphicDevice::Gtk_MathGraphicDevice(const SmartPtr& l, const SmartPtr&) : MathGraphicDevice(l) { } Gtk_MathGraphicDevice::~Gtk_MathGraphicDevice() { } SmartPtr Gtk_MathGraphicDevice::create(const SmartPtr& logger, const SmartPtr& conf) { return new Gtk_MathGraphicDevice(logger, conf); } void Gtk_MathGraphicDevice::setFactory(const SmartPtr& f) { MathGraphicDevice::setFactory(f); gtk_factory = f; } AreaRef Gtk_MathGraphicDevice::wrapper(const FormattingContext& context, const AreaRef& base) const { return gtk_factory->wrapper(base, base->box(), context.getMathMLElement()); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_ColorArea.cc��������������������������������������������������0000644�0001750�0001750�00000002752�10661271102�016722� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "Gtk_ColorArea.hh" #include "Gtk_RenderingContext.hh" void Gtk_ColorArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { Gtk_RenderingContext& context = dynamic_cast(c); if (context.getStyle() == Gtk_RenderingContext::NORMAL_STYLE) { RGBColor oldColor; // dunno why asking for the GdkColor, which would save a color allocation, doesn't work context.getForegroundColor(oldColor); context.setForegroundColor(getColor()); getChild()->render(context, x, y); context.setForegroundColor(oldColor); } else getChild()->render(context, x, y); } ����������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_ColorArea.hh��������������������������������������������������0000644�0001750�0001750�00000002624�10661271102�016732� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_ColorArea_hh__ #define __Gtk_ColorArea_hh__ #include "ColorArea.hh" class Gtk_ColorArea : public ColorArea { protected: Gtk_ColorArea(const AreaRef& area, const RGBColor& c) : ColorArea(area, c) { } virtual ~Gtk_ColorArea() { } public: static SmartPtr create(const AreaRef& area, const RGBColor& c) { return new Gtk_ColorArea(area, c); } virtual AreaRef clone(const AreaRef& area) const { return create(area, getColor()); } virtual void render(RenderingContext&, const scaled&, const scaled&) const; }; #endif // __Gtk_ColorArea_hh__ ������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_t1lib_T1GlyphArea.cc������������������������������������������0000644�0001750�0001750�00000003557�10661271102�020233� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Char.hh" #include "t1lib_T1Font.hh" #include "Gtk_RenderingContext.hh" #include "Gtk_t1lib_T1GlyphArea.hh" Gtk_t1lib_T1GlyphArea::Gtk_t1lib_T1GlyphArea(const SmartPtr& f, Char8 i) : font(f), index(i) { } Gtk_t1lib_T1GlyphArea::~Gtk_t1lib_T1GlyphArea() { } SmartPtr Gtk_t1lib_T1GlyphArea::create(const SmartPtr& font, Char8 index) { return new Gtk_t1lib_T1GlyphArea(font, index); } SmartPtr Gtk_t1lib_T1GlyphArea::getFont() const { return font; } BoundingBox Gtk_t1lib_T1GlyphArea::box() const { return font->getGlyphBoundingBox(index); } scaled Gtk_t1lib_T1GlyphArea::leftEdge() const { return font->getGlyphLeftEdge(index); } scaled Gtk_t1lib_T1GlyphArea::rightEdge() const { return font->getGlyphRightEdge(index); } void Gtk_t1lib_T1GlyphArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { Gtk_RenderingContext& context = dynamic_cast(c); context.draw(x, y, font, index); } �������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoFontManager.hh�������������������������������������������0000644�0001750�0001750�00000005010�10661271102�020241� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_PangoFontManager_hh__ #define __Gtk_PangoFontManager_hh__ #include #include "Object.hh" #include "String.hh" #include "StringHash.hh" #include "HashMap.hh" #include "SmartPtr.hh" class Gtk_PangoFontManager : public Object { protected: Gtk_PangoFontManager(void); virtual ~Gtk_PangoFontManager(); public: static SmartPtr create(void) { return new Gtk_PangoFontManager(); } struct PangoFD { PangoFD(const String& f, PangoStyle s, PangoWeight w, int sz) : family(f), style(s), weight(w), size(sz) { } String family; PangoStyle style; PangoWeight weight; int size; PangoFontDescription* toPangoFontDescription(void) const; }; struct XLFD { XLFD(const String& v, const String& f, const String& w, const String& s, int sz, const String& c) : vendor(v), family(f), weight(w), slant(s), size(sz), charset(c) { } String vendor; String family; String weight; String slant; int size; String charset; String toString(void) const; }; PangoFont* getPangoFont(const PangoFD&, PangoXSubfont&) const; PangoFont* getPangoFont(const XLFD&, PangoXSubfont&) const; private: PangoFont* createPangoFont(PangoFontDescription*, PangoXSubfont&) const; PangoFont* createPangoFont(const XLFD&, const String&, PangoXSubfont&) const; struct CachedPangoFontData { CachedPangoFontData(void) { } CachedPangoFontData(PangoFont* f, int s) : font(f), subfont(s) { } PangoFont* font; int subfont; }; typedef HASH_MAP_NS::hash_map PangoFontCache; mutable PangoFontCache fontCache; }; #endif // __Gtk_PangoFontManager_hh__ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoFontManager.cc�������������������������������������������0000644�0001750�0001750�00000007421�10661271102�020237� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include "Gtk_PangoFontManager.hh" Gtk_PangoFontManager::Gtk_PangoFontManager() { } Gtk_PangoFontManager::~Gtk_PangoFontManager() { } String Gtk_PangoFontManager::XLFD::toString() const { static char buffer[128]; sprintf(buffer, "-%s-%s-%s-%s-*--*-%d-75-75-*-*-%s", vendor.c_str(), family.c_str(), weight.c_str(), slant.c_str(), size, charset.c_str()); return buffer; } PangoFontDescription* Gtk_PangoFontManager::PangoFD::toPangoFontDescription() const { PangoFontDescription* desc = pango_font_description_new(); pango_font_description_set_family(desc, family.c_str()); pango_font_description_set_style(desc, style); pango_font_description_set_weight(desc, weight); pango_font_description_set_size(desc, size); return desc; } PangoFont* Gtk_PangoFontManager::getPangoFont(const XLFD& fd, PangoXSubfont& subfont) const { const String xlfd = fd.toString(); PangoFontCache::iterator p = fontCache.find(xlfd); if (p != fontCache.end()) { subfont = p->second.subfont; return p->second.font; } else { PangoFont* font = createPangoFont(fd, xlfd, subfont); fontCache[xlfd] = CachedPangoFontData(font, subfont); return font; } } PangoFont* Gtk_PangoFontManager::getPangoFont(const PangoFD& fd, PangoXSubfont& subfont) const { PangoFontDescription* desc = fd.toPangoFontDescription(); assert(desc); gchar* s_desc = pango_font_description_to_string(desc); assert(s_desc); String sDesc = s_desc; g_free(s_desc); PangoFontCache::iterator p = fontCache.find(sDesc); if (p != fontCache.end()) { subfont = p->second.subfont; return p->second.font; } else { PangoFont* font = createPangoFont(desc, subfont); fontCache[sDesc] = CachedPangoFontData(font, subfont); return font; } } PangoFont* Gtk_PangoFontManager::createPangoFont(PangoFontDescription* desc, PangoXSubfont& subfont) const { assert(desc); Display* display = gdk_x11_get_default_xdisplay(); PangoFont* font = pango_font_map_load_font(pango_x_font_map_for_display(display), pango_x_get_context(display), desc); char* charset = "adobe-fontspecific"; const gboolean res = pango_x_find_first_subfont(font, &charset, 1, &subfont); assert(res); assert(font); return font; } PangoFont* Gtk_PangoFontManager::createPangoFont(const XLFD& fd, const String& xlfd, PangoXSubfont& subfont) const { // Note that we use the default values for the display // that is the value that was specified to the // X server on the command line. This will work on most cases PangoFont* font = pango_x_load_font(gdk_x11_get_default_xdisplay(), xlfd.c_str()); assert(font); const char* charset = fd.charset.c_str(); const gboolean res = pango_x_find_first_subfont(font, const_cast(&charset), 1, &subfont); assert(res); return font; } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_WrapperArea.hh������������������������������������������������0000644�0001750�0001750�00000002775�10661271102�017303� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_WrapperArea_hh__ #define __Gtk_WrapperArea_hh__ #include "WrapperArea.hh" class Gtk_WrapperArea : public WrapperArea { protected: Gtk_WrapperArea(const AreaRef&, const BoundingBox&, const SmartPtr&); virtual ~Gtk_WrapperArea() { } public: static SmartPtr create(const AreaRef&, const BoundingBox&, const SmartPtr&); virtual AreaRef clone(const AreaRef&) const; virtual void render(RenderingContext&, const scaled&, const scaled&) const; int getSelected(void) const { return selected; } void setSelected(int n) const { selected = n; } private: mutable int selected; }; #endif // __Gtk_WrapperArea_hh__ ���gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoLayoutArea.hh��������������������������������������������0000644�0001750�0001750�00000003602�10661271102�020113� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_PangoLayoutArea_hh__ #define __Gtk_PangoLayoutArea_hh__ #include #include "GObjectPtr.hh" #include "GlyphArea.hh" class Gtk_PangoLayoutArea : public GlyphArea { protected: Gtk_PangoLayoutArea(PangoLayout*); Gtk_PangoLayoutArea(PangoLayout*, bool); virtual ~Gtk_PangoLayoutArea(); public: static SmartPtr create(PangoLayout* layout) { return new Gtk_PangoLayoutArea(layout); } static SmartPtr create(PangoLayout* layout, bool) { return new Gtk_PangoLayoutArea(layout, true); } virtual BoundingBox box(void) const; virtual scaled leftEdge(void) const; virtual scaled rightEdge(void) const; virtual void render(class RenderingContext&, const scaled&, const scaled&) const; virtual bool indexOfPosition(const scaled&, const scaled&, CharIndex&) const; virtual bool positionOfIndex(CharIndex, class Point*, BoundingBox*) const; virtual CharIndex length(void) const; protected: GObjectPtr layout; BoundingBox bbox; }; #endif // __Gtk_PangoLayoutArea_hh__ ������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_RenderingContext.hh�������������������������������������������0000644�0001750�0001750�00000013551�10661271102�020346� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_RenderingContext_hh__ #define __Gtk_RenderingContext_hh__ #include #include #include "Char.hh" #include "SmartPtr.hh" #include "GObjectPtr.hh" #include "RGBColor.hh" #include "Rectangle.hh" #include "RenderingContext.hh" class Gtk_RenderingContext : public RenderingContext { protected: enum ColorIndex { FOREGROUND_INDEX, BACKGROUND_INDEX, MAX_INDEX }; public: enum ColorStyle { NORMAL_STYLE, SELECTED_STYLE, MAX_STYLE }; Gtk_RenderingContext(const SmartPtr&); virtual ~Gtk_RenderingContext(); void setForegroundColor(const RGBColor& c) { setColor(c); } void setBackgroundColor(const RGBColor& c) { setColor(c); } void setForegroundColor(GdkColor& c) { setColor(c); } void setBackgroundColor(GdkColor& c) { setColor(c); } // the return value is passed as an argument so that // we can use overloading void getForegroundColor(RGBColor& c) { getColor(c); } void getBackgroundColor(RGBColor& c) { getColor(c); } void getForegroundColor(GdkColor& c) { getColor(c); } void getBackgroundColor(GdkColor& c) { getColor(c); } void setColorMap(const GObjectPtr& cm) { gdk_colormap = cm; } GObjectPtr getColorMap(void) const { return gdk_colormap; } void setDrawable(const GObjectPtr&); GObjectPtr getDrawable(void) const { return gdk_drawable; } GObjectPtr getGC(void) const { return data[getStyle()].gdk_gc; } void setStyle(ColorStyle s) { style = s; } ColorStyle getStyle(void) const { return style; } void fill(const scaled&, const scaled&, const BoundingBox&) const; void draw(const scaled&, const scaled&, PangoLayout*) const; void draw(const scaled&, const scaled&, PangoLayoutLine*) const; void draw(const scaled&, const scaled&, PangoFont*, PangoGlyphString*) const; void draw(const scaled&, const scaled&, const SmartPtr&, Char8) const; void setT1OpaqueMode(bool b) { t1_opaque_mode = b; } bool getT1OpaqueMode(void) const { return t1_opaque_mode; } void setT1AntiAliasedMode(bool b) { t1_aa_mode = b; } bool getT1AntiAliasedMode(void) const { return t1_aa_mode; } static int toGtkPixels(const scaled& s) { return round(s * (72.27 / 72.0)).toInt(); } static int toPangoPixels(const scaled& s) { return round(s * PANGO_SCALE * (72.27 / 72.0)).toInt(); } static int toPangoPoints(const scaled& s) { return round(s * PANGO_SCALE).toInt(); } static scaled fromGtkPixels(int s) { return scaled(s * (72.0 / 72.27)); } static scaled fromPangoPixels(int s) { return scaled((s * (72.0 / 72.27)) / PANGO_SCALE); } static int toGtkX(const scaled& x) { return toGtkPixels(x); } static int toGtkY(const scaled& y) { return toGtkPixels(-y); } static scaled fromGtkX(int x) { return fromGtkPixels(x); } static scaled fromGtkY(int y) { return fromGtkPixels(-y); } protected: template void setColor(const RGBColor& c) { data[getStyle()].setColor(c, gdk_colormap); } template void setColor(const GdkColor& c) { data[getStyle()].setColor(c, gdk_colormap); } template void getColor(C& c) const { data[getStyle()].getColor(c); } struct ContextData { GObjectPtr gdk_gc; RGBColor color[MAX_INDEX]; GdkColor gdk_color[MAX_INDEX]; template void setColor(const RGBColor& c, const GObjectPtr& gdk_colormap) { color[index] = c; GdkColor gdk_c; gdk_c.red = c.red * (65535/255); gdk_c.green = c.green * (65535/255); gdk_c.blue = c.blue * (65535/255); gdk_c.pixel = c.red * 65536 + c.green * 256 + c.blue; setColor(gdk_c, gdk_colormap); } template void getColor(RGBColor& c) const { c = color[index]; } template void setColor(const GdkColor& c, const GObjectPtr& gdk_colormap) { gdk_color[index] = c; assert(gdk_colormap); const gboolean ret = gdk_colormap_alloc_color(gdk_colormap, &gdk_color[index], FALSE, TRUE); assert(ret == TRUE); set(gdk_gc, &gdk_color[index]); } template void getColor(GdkColor& c) const { c = gdk_color[index]; } }; void releaseResources(void); SmartPtr logger; ColorStyle style; ContextData data[MAX_STYLE]; // GDK-specific fields GObjectPtr gdk_drawable; GObjectPtr gdk_colormap; // t1lib-specific fields bool t1_opaque_mode; bool t1_aa_mode; }; #endif // __Gtk_RenderingContext_hh__ �������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_AreaFactory.hh������������������������������������������������0000644�0001750�0001750�00000005150�10661271102�017260� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_AreaFactory_hh__ #define __Gtk_AreaFactory_hh__ #include #include "AreaFactory.hh" #include "Gtk_ColorArea.hh" #include "Gtk_BackgroundArea.hh" #include "Gtk_InkArea.hh" #include "Gtk_PangoGlyphArea.hh" #include "Gtk_PangoLayoutArea.hh" #include "Gtk_PangoLayoutLineArea.hh" #if HAVE_XFT #include "Gtk_XftGlyphArea.hh" #endif // HAVE_XFT #include "Gtk_WrapperArea.hh" class Gtk_AreaFactory : public AreaFactory { protected: Gtk_AreaFactory(void) { } virtual ~Gtk_AreaFactory() { } public: static SmartPtr create(void) { return new Gtk_AreaFactory(); } // redefined methods virtual SmartPtr color(const AreaRef& area, const RGBColor& color) const { return Gtk_ColorArea::create(area, color); } virtual SmartPtr ink(const AreaRef& area) const { return Gtk_InkArea::create(area); } virtual AreaRef background(const AreaRef& area, const RGBColor& color) const { return Gtk_BackgroundArea::create(area, color); } // new methods virtual SmartPtr pangoGlyph(PangoFont* f, PangoGlyphString* gs) const { return Gtk_PangoGlyphArea::create(f, gs); } virtual SmartPtr pangoLayout(PangoLayout* layout) const { return Gtk_PangoLayoutArea::create(layout); } virtual SmartPtr pangoLayoutLine(PangoLayout* layout) const { return Gtk_PangoLayoutLineArea::create(layout); } #if HAVE_XFT virtual SmartPtr xftGlyph(XftFont* font, FcChar8 glyph) const { return Gtk_XftGlyphArea::create(font, glyph); } #endif // HAVE_XFT virtual SmartPtr wrapper(const AreaRef& area, const BoundingBox& box, const SmartPtr& el) const { return Gtk_WrapperArea::create(area, box, el); } }; #endif // __Gtk_AreaFactory_hh__ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_RenderingContext.cc�������������������������������������������0000644�0001750�0001750�00000010145�10661271102�020330� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #if HAVE_LIBT1 #include #include #include "t1lib_T1Font.hh" #endif // HAVE_LIBT1 #include "AbstractLogger.hh" #include "Gtk_RenderingContext.hh" Gtk_RenderingContext::Gtk_RenderingContext(const SmartPtr& l) : logger(l), style(NORMAL_STYLE), t1_opaque_mode(false), t1_aa_mode(false) { assert(logger); } Gtk_RenderingContext::~Gtk_RenderingContext() { releaseResources(); } void Gtk_RenderingContext::releaseResources() { // should free the gc's? } void Gtk_RenderingContext::setDrawable(const GObjectPtr& drawable) { releaseResources(); gdk_drawable = drawable; if (gdk_drawable) { for (unsigned i = 0; i < MAX_STYLE; i++) data[i].gdk_gc = gdk_gc_new(gdk_drawable); #if HAVE_LIBT1 Display* xdisplay = GDK_DRAWABLE_XDISPLAY(drawable); assert(xdisplay != NULL); Colormap xcolormap = GDK_COLORMAP_XCOLORMAP(gdk_colormap); GdkVisual* visual = gdk_colormap_get_visual(gdk_colormap); assert(visual != NULL); Visual* xvisual = GDK_VISUAL_XVISUAL(visual); assert(xvisual != NULL); T1_AASetBitsPerPixel(visual->depth); logger->out(LOG_DEBUG, "t1lib: X11 depth = %d AAGetLevel = %d AAGetBitsPerPixel = %d", visual->depth, T1_AAGetLevel(), T1_AAGetBitsPerPixel()); T1_SetX11Params(xdisplay, xvisual, visual->depth, xcolormap); #endif // HAVE_LIBT1 } else { for (unsigned i = 0; i < MAX_STYLE; i++) data[i].gdk_gc = 0; } } void Gtk_RenderingContext::fill(const scaled& x, const scaled& y, const BoundingBox& box) const { gdk_draw_rectangle(getDrawable(), getGC(), TRUE, Gtk_RenderingContext::toGtkX(x), Gtk_RenderingContext::toGtkY(y + box.height), Gtk_RenderingContext::toGtkPixels(box.width), Gtk_RenderingContext::toGtkPixels(box.height + box.depth)); } void Gtk_RenderingContext::draw(const scaled& x, const scaled& y, PangoLayout* layout) const { gdk_draw_layout(getDrawable(), getGC(), Gtk_RenderingContext::toGtkX(x), Gtk_RenderingContext::toGtkY(y), layout); } void Gtk_RenderingContext::draw(const scaled& x, const scaled& y, PangoLayoutLine* line) const { gdk_draw_layout_line(getDrawable(), getGC(), Gtk_RenderingContext::toGtkX(x), Gtk_RenderingContext::toGtkY(y), line); } void Gtk_RenderingContext::draw(const scaled& x, const scaled& y, PangoFont* font, PangoGlyphString* glyphs) const { gdk_draw_glyphs(getDrawable(), getGC(), font, Gtk_RenderingContext::toGtkX(x), Gtk_RenderingContext::toGtkY(y), glyphs); } #if HAVE_LIBT1 void Gtk_RenderingContext::draw(const scaled& x, const scaled& y, const SmartPtr& font, Char8 glyph) const { if (t1_aa_mode) T1_AASetCharX(GDK_DRAWABLE_XID(getDrawable()), GDK_GC_XGC(getGC()), t1_opaque_mode ? T1_OPAQUE : T1_TRANSPARENT, Gtk_RenderingContext::toGtkX(x), Gtk_RenderingContext::toGtkY(y), font->getFontId(), glyph, font->getScale(), NULL); else T1_SetCharX(GDK_DRAWABLE_XID(getDrawable()), GDK_GC_XGC(getGC()), t1_opaque_mode ? T1_OPAQUE : T1_TRANSPARENT, Gtk_RenderingContext::toGtkX(x), Gtk_RenderingContext::toGtkY(y), font->getFontId(), glyph, font->getScale(), NULL); } #endif // HAVE_LIBT1 ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_BackgroundArea.hh���������������������������������������������0000644�0001750�0001750�00000002674�10661271102�017740� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_BackgroundArea_hh__ #define __Gtk_BackgroundArea_hh__ #include "ColorArea.hh" class Gtk_BackgroundArea : public ColorArea { protected: Gtk_BackgroundArea(const AreaRef& area, const RGBColor& c) : ColorArea(area, c) { } virtual ~Gtk_BackgroundArea() { } public: static SmartPtr create(const AreaRef& area, const RGBColor& c) { return new Gtk_BackgroundArea(area, c); } virtual AreaRef clone(const AreaRef& area) const { return create(area, getColor()); } virtual void render(RenderingContext&, const scaled&, const scaled&) const; }; #endif // __Gtk_BackgroundArea_hh__ ��������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoGlyphArea.hh���������������������������������������������0000644�0001750�0001750�00000003104�10661271102�017716� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_PangoGlyphArea_hh__ #define __Gtk_PangoGlyphArea_hh__ #include #include "GObjectPtr.hh" #include "GlyphArea.hh" class Gtk_PangoGlyphArea : public GlyphArea { protected: Gtk_PangoGlyphArea(PangoFont*, PangoGlyphString*); virtual ~Gtk_PangoGlyphArea(); public: static SmartPtr create(PangoFont* font, PangoGlyphString* glyphs) { return new Gtk_PangoGlyphArea(font, glyphs); } virtual BoundingBox box(void) const; virtual scaled leftEdge(void) const; virtual scaled rightEdge(void) const; virtual void render(class RenderingContext&, const scaled&, const scaled&) const; private: PangoFont* font; PangoGlyphString* glyphs; BoundingBox bbox; }; #endif // __Gtk_PangoGlyphArea_hh__ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_BackgroundArea.cc���������������������������������������������0000644�0001750�0001750�00000003241�10661271102�017715� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "Gtk_BackgroundArea.hh" #include "Gtk_RenderingContext.hh" void Gtk_BackgroundArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { Gtk_RenderingContext& context = dynamic_cast(c); if (context.getStyle() == Gtk_RenderingContext::NORMAL_STYLE) { RGBColor old_foregroundColor; RGBColor old_backgroundColor; context.getForegroundColor(old_foregroundColor); context.getBackgroundColor(old_backgroundColor); context.setForegroundColor(getColor()); context.setBackgroundColor(getColor()); context.fill(x, y, box()); context.setForegroundColor(old_foregroundColor); getChild()->render(context, x, y); context.setBackgroundColor(old_backgroundColor); } else getChild()->render(context, x, y); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_InkArea.cc����������������������������������������������������0000644�0001750�0001750�00000002144�10661271102�016360� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "Gtk_InkArea.hh" #include "Gtk_RenderingContext.hh" void Gtk_InkArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { Gtk_RenderingContext& context = dynamic_cast(c); context.fill(x, y, box()); } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Makefile.am�������������������������������������������������������0000644�0001750�0001750�00000004132�10661271102�015765� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ NULL = lib_LTLIBRARIES = libmathview_backend_gtk.la if COND_BOXML MAYBE_BOXML_S = Gtk_BoxGraphicDevice.cc MAYBE_BOXML_H = Gtk_BoxGraphicDevice.hh else MAYBE_BOXML_S = $(NULL) MAYBE_BOXML_H = $(NULL) endif if COND_T1LIB MAYBE_T1_S = \ Gtk_T1ComputerModernShaper.cc \ Gtk_t1lib_T1GlyphArea.cc \ $(NULL) MAYBE_T1_H = \ Gtk_T1ComputerModernShaper.hh \ Gtk_t1lib_T1GlyphArea.hh \ $(NULL) else MAYBE_T1_S = $(NULL) MAYBE_T1_H = $(NULL) endif libmathview_backend_gtk_la_CPPFLAGS = -DGMV_BackEnd_DLL libmathview_backend_gtk_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ libmathview_backend_gtk_la_SOURCES = \ Gtk_AdobeShaper.cc \ Gtk_AdobeShaper.hh \ Gtk_AreaFactory.hh \ Gtk_Backend.cc \ Gtk_BackgroundArea.cc \ Gtk_BackgroundArea.hh \ Gtk_ColorArea.cc \ Gtk_ColorArea.hh \ Gtk_DefaultPangoShaper.cc \ Gtk_DefaultPangoShaper.hh \ Gtk_InkArea.cc \ Gtk_InkArea.hh \ Gtk_MathGraphicDevice.cc \ Gtk_MathGraphicDevice.hh \ Gtk_PangoComputerModernShaper.cc \ Gtk_PangoComputerModernShaper.hh \ Gtk_PangoFontManager.cc \ Gtk_PangoFontManager.hh \ Gtk_PangoGlyphArea.cc \ Gtk_PangoGlyphArea.hh \ Gtk_PangoLayoutArea.cc \ Gtk_PangoLayoutArea.hh \ Gtk_PangoLayoutLineArea.cc \ Gtk_PangoLayoutLineArea.hh \ Gtk_PangoShaper.cc \ Gtk_PangoShaper.hh \ Gtk_RenderingContext.cc \ Gtk_RenderingContext.hh \ Gtk_WrapperArea.cc \ Gtk_WrapperArea.hh \ $(MAYBE_BOXML_S) \ $(MAYBE_BOXML_H) \ $(MAYBE_T1_S) \ $(MAYBE_T1_H) \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ Gtk_Backend.hh \ $(NULL) # Gtk_XftFontManager.cc # Gtk_XftFontManager.hh # Gtk_XftGlyphArea.cc # Gtk_XftGlyphArea.hh libmathview_backend_gtk_la_LIBADD = \ $(PANGOX_LIBS) \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ $(PANGOX_CFLAGS) \ $(GTK_CFLAGS) \ $(T1_CFLAGS) \ $(NULL) ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_WrapperArea.cc������������������������������������������������0000644�0001750�0001750�00000005131�10661271102�017256� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "Gtk_WrapperArea.hh" #include "Gtk_RenderingContext.hh" #include "SearchingContext.hh" #include "Element.hh" Gtk_WrapperArea::Gtk_WrapperArea(const AreaRef& area, const BoundingBox& b, const SmartPtr& el) : WrapperArea(area, b, el), selected(0) { } SmartPtr Gtk_WrapperArea::create(const AreaRef& area, const BoundingBox& b, const SmartPtr& el) { return new Gtk_WrapperArea(area, b, el); } AreaRef Gtk_WrapperArea::clone(const AreaRef& area) const { return create(area, box(), getElement()); } void Gtk_WrapperArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { Gtk_RenderingContext& context = dynamic_cast(c); Gtk_RenderingContext::ColorStyle old_style = context.getStyle(); switch (old_style) { case Gtk_RenderingContext::NORMAL_STYLE: if (selected == 1) context.setStyle(Gtk_RenderingContext::SELECTED_STYLE); break; case Gtk_RenderingContext::SELECTED_STYLE: if (selected == -1) context.setStyle(Gtk_RenderingContext::NORMAL_STYLE); break; default: break; } if (old_style != context.getStyle()) { GdkColor old_foregroundColor; GdkColor backgroundColor; context.getForegroundColor(old_foregroundColor); context.getBackgroundColor(backgroundColor); context.setForegroundColor(backgroundColor); BoundingBox areaBox = box(); const scaled margin = Gtk_RenderingContext::fromGtkPixels(1); areaBox.width += margin * 2; areaBox.height += margin; areaBox.depth += margin; context.fill(x - margin, y, areaBox); context.setForegroundColor(old_foregroundColor); } getChild()->render(context, x, y); context.setStyle(old_style); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_MathGraphicDevice.hh������������������������������������������0000644�0001750�0001750�00000003012�10661271102�020362� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_MathGraphicDevice_hh__ #define __Gtk_MathGraphicDevice_hh__ #include "MathGraphicDevice.hh" class Gtk_MathGraphicDevice : public MathGraphicDevice { protected: Gtk_MathGraphicDevice(const SmartPtr&, const SmartPtr&); virtual ~Gtk_MathGraphicDevice(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); virtual void setFactory(const SmartPtr&); virtual AreaRef wrapper(const FormattingContext&, const AreaRef&) const; private: SmartPtr gtk_factory; }; #endif // __Gtk_MathGraphicDevice_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoShaper.hh������������������������������������������������0000644�0001750�0001750�00000003423�10661271102�017270� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_PangoShaper_hh__ #define __Gtk_PangoShaper_hh__ #include #include "Gtk_DefaultPangoShaper.hh" class Gtk_PangoShaper : public Gtk_DefaultPangoShaper { protected: Gtk_PangoShaper(const SmartPtr&, const SmartPtr&); virtual ~Gtk_PangoShaper(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); virtual void registerShaper(const SmartPtr&, unsigned); virtual void unregisterShaper(const SmartPtr&, unsigned); virtual void shape(class ShapingContext&) const; protected: AreaRef shapeChar(const class ShapingContext&) const; AreaRef shapeChunk(const class ShapingContext&, unsigned) const; AreaRef shapeStretchyCharH(const class ShapingContext&) const; AreaRef shapeStretchyCharV(const class ShapingContext&) const; }; #endif // __Gtk_PangoShaper_hh__ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_InkArea.hh����������������������������������������������������0000644�0001750�0001750�00000002506�10661271102�016374� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_InkArea_hh__ #define __Gtk_InkArea_hh__ #include "InkArea.hh" class Gtk_InkArea : public InkArea { protected: Gtk_InkArea(const AreaRef& area) : InkArea(area) { } virtual ~Gtk_InkArea() { } public: static SmartPtr create(const AreaRef& area) { return new Gtk_InkArea(area); } virtual AreaRef clone(const AreaRef& area) const { return create(area); } virtual void render(RenderingContext&, const scaled&, const scaled&) const; }; #endif // __Gtk_InkArea_hh__ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoLayoutLineArea.cc����������������������������������������0000644�0001750�0001750�00000005347�10661271102�020721� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Point.hh" #include "Gtk_PangoLayoutLineArea.hh" #include "Gtk_RenderingContext.hh" Gtk_PangoLayoutLineArea::Gtk_PangoLayoutLineArea(PangoLayout* _layout) : Gtk_PangoLayoutArea(_layout, true) { PangoRectangle rect; PangoLayoutLine* line = pango_layout_get_line(layout, 0); pango_layout_line_get_extents(line, &rect, 0); bbox = BoundingBox(Gtk_RenderingContext::fromPangoPixels(rect.width), Gtk_RenderingContext::fromPangoPixels(PANGO_ASCENT(rect)), Gtk_RenderingContext::fromPangoPixels(PANGO_DESCENT(rect))); } Gtk_PangoLayoutLineArea::~Gtk_PangoLayoutLineArea() { } void Gtk_PangoLayoutLineArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { Gtk_RenderingContext& context = dynamic_cast(c); context.draw(x, y, pango_layout_get_line(layout, 0)); } #if 1 bool Gtk_PangoLayoutLineArea::indexOfPosition(const scaled& x, const scaled& y, CharIndex& index) const { gint utf8_index; gint trailing; if (pango_layout_line_x_to_index(pango_layout_get_line(layout, 0), Gtk_RenderingContext::toPangoPixels(x), &utf8_index, &trailing)) { const gchar* buffer = pango_layout_get_text(layout); index = g_utf8_pointer_to_offset(buffer, buffer + utf8_index) + trailing; return true; } else return false; } bool Gtk_PangoLayoutLineArea::positionOfIndex(CharIndex index, Point* p, BoundingBox* b) const { const gchar* buffer = pango_layout_get_text(layout); if (index >= 0 && index <= g_utf8_strlen(buffer, -1)) { const gchar* ptr = g_utf8_offset_to_pointer(buffer, index); gint xpos; pango_layout_line_index_to_x(pango_layout_get_line(layout, 0), ptr - buffer, 0, &xpos); if (p) { p->x += Gtk_RenderingContext::fromPangoPixels(xpos); p->y += scaled::zero(); } return true; } else return false; } #endif �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_DefaultPangoShaper.hh�����������������������������������������0000644�0001750�0001750�00000005176�10661271102�020604� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_DefaultPangoShaper_hh__ #define __Gtk_DefaultPangoShaper_hh__ #include #include "Shaper.hh" #include "String.hh" #include "GObjectPtr.hh" #include "MathVariant.hh" class Gtk_DefaultPangoShaper : public Shaper { protected: Gtk_DefaultPangoShaper(const SmartPtr&, const SmartPtr&); virtual ~Gtk_DefaultPangoShaper(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); virtual void registerShaper(const SmartPtr&, unsigned); virtual void unregisterShaper(const SmartPtr&, unsigned); virtual void shape(class ShapingContext&) const; virtual bool isDefaultShaper(void) const; void setPangoContext(const GObjectPtr& c) { context = c; } GObjectPtr getPangoContext(void) const { return context; } protected: struct PangoTextAttributes { MathVariant variant; String family; PangoStyle style; PangoWeight weight; }; struct DefaultPangoTextAttributes { const gchar* variant; MathVariant variantId; const gchar* family; const gchar* style; PangoStyle styleId; const gchar* weight; PangoWeight weightId; }; const PangoTextAttributes& getTextAttributes(MathVariant) const; static const PangoTextAttributes& getDefaultTextAttributes(void); PangoLayout* createPangoLayout(const gchar*, glong, const scaled&, const PangoTextAttributes&) const; AreaRef shapeString(const class ShapingContext&, const gunichar*, unsigned) const; friend class Gtk_PangoComputerModernShaper; private: PangoTextAttributes variantDesc[MONOSPACE_VARIANT - NORMAL_VARIANT + 1]; GObjectPtr context; }; #endif // __Gtk_DefaultPangoShaper_hh__ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Makefile.in�������������������������������������������������������0000644�0001750�0001750�00000140144�10704610542�016005� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/backend/gtk DIST_COMMON = $(mathview_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(mathviewdir)" libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = libmathview_backend_gtk_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) am__libmathview_backend_gtk_la_SOURCES_DIST = Gtk_AdobeShaper.cc \ Gtk_AdobeShaper.hh Gtk_AreaFactory.hh Gtk_Backend.cc \ Gtk_BackgroundArea.cc Gtk_BackgroundArea.hh Gtk_ColorArea.cc \ Gtk_ColorArea.hh Gtk_DefaultPangoShaper.cc \ Gtk_DefaultPangoShaper.hh Gtk_InkArea.cc Gtk_InkArea.hh \ Gtk_MathGraphicDevice.cc Gtk_MathGraphicDevice.hh \ Gtk_PangoComputerModernShaper.cc \ Gtk_PangoComputerModernShaper.hh Gtk_PangoFontManager.cc \ Gtk_PangoFontManager.hh Gtk_PangoGlyphArea.cc \ Gtk_PangoGlyphArea.hh Gtk_PangoLayoutArea.cc \ Gtk_PangoLayoutArea.hh Gtk_PangoLayoutLineArea.cc \ Gtk_PangoLayoutLineArea.hh Gtk_PangoShaper.cc \ Gtk_PangoShaper.hh Gtk_RenderingContext.cc \ Gtk_RenderingContext.hh Gtk_WrapperArea.cc Gtk_WrapperArea.hh \ Gtk_BoxGraphicDevice.cc Gtk_BoxGraphicDevice.hh \ Gtk_T1ComputerModernShaper.cc Gtk_t1lib_T1GlyphArea.cc \ Gtk_T1ComputerModernShaper.hh Gtk_t1lib_T1GlyphArea.hh am__objects_1 = @COND_BOXML_FALSE@am__objects_2 = $(am__objects_1) @COND_BOXML_TRUE@am__objects_2 = libmathview_backend_gtk_la-Gtk_BoxGraphicDevice.lo @COND_BOXML_FALSE@am__objects_3 = $(am__objects_1) @COND_T1LIB_FALSE@am__objects_4 = $(am__objects_1) @COND_T1LIB_TRUE@am__objects_4 = libmathview_backend_gtk_la-Gtk_T1ComputerModernShaper.lo \ @COND_T1LIB_TRUE@ libmathview_backend_gtk_la-Gtk_t1lib_T1GlyphArea.lo \ @COND_T1LIB_TRUE@ $(am__objects_1) @COND_T1LIB_FALSE@am__objects_5 = $(am__objects_1) @COND_T1LIB_TRUE@am__objects_5 = $(am__objects_1) am_libmathview_backend_gtk_la_OBJECTS = \ libmathview_backend_gtk_la-Gtk_AdobeShaper.lo \ libmathview_backend_gtk_la-Gtk_Backend.lo \ libmathview_backend_gtk_la-Gtk_BackgroundArea.lo \ libmathview_backend_gtk_la-Gtk_ColorArea.lo \ libmathview_backend_gtk_la-Gtk_DefaultPangoShaper.lo \ libmathview_backend_gtk_la-Gtk_InkArea.lo \ libmathview_backend_gtk_la-Gtk_MathGraphicDevice.lo \ libmathview_backend_gtk_la-Gtk_PangoComputerModernShaper.lo \ libmathview_backend_gtk_la-Gtk_PangoFontManager.lo \ libmathview_backend_gtk_la-Gtk_PangoGlyphArea.lo \ libmathview_backend_gtk_la-Gtk_PangoLayoutArea.lo \ libmathview_backend_gtk_la-Gtk_PangoLayoutLineArea.lo \ libmathview_backend_gtk_la-Gtk_PangoShaper.lo \ libmathview_backend_gtk_la-Gtk_RenderingContext.lo \ libmathview_backend_gtk_la-Gtk_WrapperArea.lo $(am__objects_2) \ $(am__objects_3) $(am__objects_4) $(am__objects_5) \ $(am__objects_1) libmathview_backend_gtk_la_OBJECTS = \ $(am_libmathview_backend_gtk_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libmathview_backend_gtk_la_SOURCES) DIST_SOURCES = $(am__libmathview_backend_gtk_la_SOURCES_DIST) mathviewHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(mathview_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = lib_LTLIBRARIES = libmathview_backend_gtk.la @COND_BOXML_FALSE@MAYBE_BOXML_S = $(NULL) @COND_BOXML_TRUE@MAYBE_BOXML_S = Gtk_BoxGraphicDevice.cc @COND_BOXML_FALSE@MAYBE_BOXML_H = $(NULL) @COND_BOXML_TRUE@MAYBE_BOXML_H = Gtk_BoxGraphicDevice.hh @COND_T1LIB_FALSE@MAYBE_T1_S = $(NULL) @COND_T1LIB_TRUE@MAYBE_T1_S = \ @COND_T1LIB_TRUE@ Gtk_T1ComputerModernShaper.cc \ @COND_T1LIB_TRUE@ Gtk_t1lib_T1GlyphArea.cc \ @COND_T1LIB_TRUE@ $(NULL) @COND_T1LIB_FALSE@MAYBE_T1_H = $(NULL) @COND_T1LIB_TRUE@MAYBE_T1_H = \ @COND_T1LIB_TRUE@ Gtk_T1ComputerModernShaper.hh \ @COND_T1LIB_TRUE@ Gtk_t1lib_T1GlyphArea.hh \ @COND_T1LIB_TRUE@ $(NULL) libmathview_backend_gtk_la_CPPFLAGS = -DGMV_BackEnd_DLL libmathview_backend_gtk_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ libmathview_backend_gtk_la_SOURCES = \ Gtk_AdobeShaper.cc \ Gtk_AdobeShaper.hh \ Gtk_AreaFactory.hh \ Gtk_Backend.cc \ Gtk_BackgroundArea.cc \ Gtk_BackgroundArea.hh \ Gtk_ColorArea.cc \ Gtk_ColorArea.hh \ Gtk_DefaultPangoShaper.cc \ Gtk_DefaultPangoShaper.hh \ Gtk_InkArea.cc \ Gtk_InkArea.hh \ Gtk_MathGraphicDevice.cc \ Gtk_MathGraphicDevice.hh \ Gtk_PangoComputerModernShaper.cc \ Gtk_PangoComputerModernShaper.hh \ Gtk_PangoFontManager.cc \ Gtk_PangoFontManager.hh \ Gtk_PangoGlyphArea.cc \ Gtk_PangoGlyphArea.hh \ Gtk_PangoLayoutArea.cc \ Gtk_PangoLayoutArea.hh \ Gtk_PangoLayoutLineArea.cc \ Gtk_PangoLayoutLineArea.hh \ Gtk_PangoShaper.cc \ Gtk_PangoShaper.hh \ Gtk_RenderingContext.cc \ Gtk_RenderingContext.hh \ Gtk_WrapperArea.cc \ Gtk_WrapperArea.hh \ $(MAYBE_BOXML_S) \ $(MAYBE_BOXML_H) \ $(MAYBE_T1_S) \ $(MAYBE_T1_H) \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ Gtk_Backend.hh \ $(NULL) # Gtk_XftFontManager.cc # Gtk_XftFontManager.hh # Gtk_XftGlyphArea.cc # Gtk_XftGlyphArea.hh libmathview_backend_gtk_la_LIBADD = \ $(PANGOX_LIBS) \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ $(PANGOX_CFLAGS) \ $(GTK_CFLAGS) \ $(T1_CFLAGS) \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/backend/gtk/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/backend/gtk/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ else :; fi; \ done uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libmathview_backend_gtk.la: $(libmathview_backend_gtk_la_OBJECTS) $(libmathview_backend_gtk_la_DEPENDENCIES) $(CXXLINK) -rpath $(libdir) $(libmathview_backend_gtk_la_LDFLAGS) $(libmathview_backend_gtk_la_OBJECTS) $(libmathview_backend_gtk_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_AdobeShaper.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_Backend.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_BackgroundArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_BoxGraphicDevice.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_ColorArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_DefaultPangoShaper.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_InkArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_MathGraphicDevice.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoComputerModernShaper.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoFontManager.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoGlyphArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoLayoutArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoLayoutLineArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoShaper.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_RenderingContext.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_T1ComputerModernShaper.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_WrapperArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_gtk_la-Gtk_t1lib_T1GlyphArea.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libmathview_backend_gtk_la-Gtk_AdobeShaper.lo: Gtk_AdobeShaper.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_AdobeShaper.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_AdobeShaper.Tpo" -c -o libmathview_backend_gtk_la-Gtk_AdobeShaper.lo `test -f 'Gtk_AdobeShaper.cc' || echo '$(srcdir)/'`Gtk_AdobeShaper.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_AdobeShaper.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_AdobeShaper.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_AdobeShaper.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_AdobeShaper.cc' object='libmathview_backend_gtk_la-Gtk_AdobeShaper.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_AdobeShaper.lo `test -f 'Gtk_AdobeShaper.cc' || echo '$(srcdir)/'`Gtk_AdobeShaper.cc libmathview_backend_gtk_la-Gtk_Backend.lo: Gtk_Backend.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_Backend.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_Backend.Tpo" -c -o libmathview_backend_gtk_la-Gtk_Backend.lo `test -f 'Gtk_Backend.cc' || echo '$(srcdir)/'`Gtk_Backend.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_Backend.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_Backend.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_Backend.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_Backend.cc' object='libmathview_backend_gtk_la-Gtk_Backend.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_Backend.lo `test -f 'Gtk_Backend.cc' || echo '$(srcdir)/'`Gtk_Backend.cc libmathview_backend_gtk_la-Gtk_BackgroundArea.lo: Gtk_BackgroundArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_BackgroundArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_BackgroundArea.Tpo" -c -o libmathview_backend_gtk_la-Gtk_BackgroundArea.lo `test -f 'Gtk_BackgroundArea.cc' || echo '$(srcdir)/'`Gtk_BackgroundArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_BackgroundArea.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_BackgroundArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_BackgroundArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_BackgroundArea.cc' object='libmathview_backend_gtk_la-Gtk_BackgroundArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_BackgroundArea.lo `test -f 'Gtk_BackgroundArea.cc' || echo '$(srcdir)/'`Gtk_BackgroundArea.cc libmathview_backend_gtk_la-Gtk_ColorArea.lo: Gtk_ColorArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_ColorArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_ColorArea.Tpo" -c -o libmathview_backend_gtk_la-Gtk_ColorArea.lo `test -f 'Gtk_ColorArea.cc' || echo '$(srcdir)/'`Gtk_ColorArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_ColorArea.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_ColorArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_ColorArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_ColorArea.cc' object='libmathview_backend_gtk_la-Gtk_ColorArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_ColorArea.lo `test -f 'Gtk_ColorArea.cc' || echo '$(srcdir)/'`Gtk_ColorArea.cc libmathview_backend_gtk_la-Gtk_DefaultPangoShaper.lo: Gtk_DefaultPangoShaper.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_DefaultPangoShaper.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_DefaultPangoShaper.Tpo" -c -o libmathview_backend_gtk_la-Gtk_DefaultPangoShaper.lo `test -f 'Gtk_DefaultPangoShaper.cc' || echo '$(srcdir)/'`Gtk_DefaultPangoShaper.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_DefaultPangoShaper.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_DefaultPangoShaper.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_DefaultPangoShaper.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_DefaultPangoShaper.cc' object='libmathview_backend_gtk_la-Gtk_DefaultPangoShaper.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_DefaultPangoShaper.lo `test -f 'Gtk_DefaultPangoShaper.cc' || echo '$(srcdir)/'`Gtk_DefaultPangoShaper.cc libmathview_backend_gtk_la-Gtk_InkArea.lo: Gtk_InkArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_InkArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_InkArea.Tpo" -c -o libmathview_backend_gtk_la-Gtk_InkArea.lo `test -f 'Gtk_InkArea.cc' || echo '$(srcdir)/'`Gtk_InkArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_InkArea.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_InkArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_InkArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_InkArea.cc' object='libmathview_backend_gtk_la-Gtk_InkArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_InkArea.lo `test -f 'Gtk_InkArea.cc' || echo '$(srcdir)/'`Gtk_InkArea.cc libmathview_backend_gtk_la-Gtk_MathGraphicDevice.lo: Gtk_MathGraphicDevice.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_MathGraphicDevice.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_MathGraphicDevice.Tpo" -c -o libmathview_backend_gtk_la-Gtk_MathGraphicDevice.lo `test -f 'Gtk_MathGraphicDevice.cc' || echo '$(srcdir)/'`Gtk_MathGraphicDevice.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_MathGraphicDevice.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_MathGraphicDevice.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_MathGraphicDevice.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_MathGraphicDevice.cc' object='libmathview_backend_gtk_la-Gtk_MathGraphicDevice.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_MathGraphicDevice.lo `test -f 'Gtk_MathGraphicDevice.cc' || echo '$(srcdir)/'`Gtk_MathGraphicDevice.cc libmathview_backend_gtk_la-Gtk_PangoComputerModernShaper.lo: Gtk_PangoComputerModernShaper.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_PangoComputerModernShaper.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoComputerModernShaper.Tpo" -c -o libmathview_backend_gtk_la-Gtk_PangoComputerModernShaper.lo `test -f 'Gtk_PangoComputerModernShaper.cc' || echo '$(srcdir)/'`Gtk_PangoComputerModernShaper.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoComputerModernShaper.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoComputerModernShaper.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoComputerModernShaper.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_PangoComputerModernShaper.cc' object='libmathview_backend_gtk_la-Gtk_PangoComputerModernShaper.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_PangoComputerModernShaper.lo `test -f 'Gtk_PangoComputerModernShaper.cc' || echo '$(srcdir)/'`Gtk_PangoComputerModernShaper.cc libmathview_backend_gtk_la-Gtk_PangoFontManager.lo: Gtk_PangoFontManager.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_PangoFontManager.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoFontManager.Tpo" -c -o libmathview_backend_gtk_la-Gtk_PangoFontManager.lo `test -f 'Gtk_PangoFontManager.cc' || echo '$(srcdir)/'`Gtk_PangoFontManager.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoFontManager.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoFontManager.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoFontManager.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_PangoFontManager.cc' object='libmathview_backend_gtk_la-Gtk_PangoFontManager.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_PangoFontManager.lo `test -f 'Gtk_PangoFontManager.cc' || echo '$(srcdir)/'`Gtk_PangoFontManager.cc libmathview_backend_gtk_la-Gtk_PangoGlyphArea.lo: Gtk_PangoGlyphArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_PangoGlyphArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoGlyphArea.Tpo" -c -o libmathview_backend_gtk_la-Gtk_PangoGlyphArea.lo `test -f 'Gtk_PangoGlyphArea.cc' || echo '$(srcdir)/'`Gtk_PangoGlyphArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoGlyphArea.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoGlyphArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoGlyphArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_PangoGlyphArea.cc' object='libmathview_backend_gtk_la-Gtk_PangoGlyphArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_PangoGlyphArea.lo `test -f 'Gtk_PangoGlyphArea.cc' || echo '$(srcdir)/'`Gtk_PangoGlyphArea.cc libmathview_backend_gtk_la-Gtk_PangoLayoutArea.lo: Gtk_PangoLayoutArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_PangoLayoutArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoLayoutArea.Tpo" -c -o libmathview_backend_gtk_la-Gtk_PangoLayoutArea.lo `test -f 'Gtk_PangoLayoutArea.cc' || echo '$(srcdir)/'`Gtk_PangoLayoutArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoLayoutArea.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoLayoutArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoLayoutArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_PangoLayoutArea.cc' object='libmathview_backend_gtk_la-Gtk_PangoLayoutArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_PangoLayoutArea.lo `test -f 'Gtk_PangoLayoutArea.cc' || echo '$(srcdir)/'`Gtk_PangoLayoutArea.cc libmathview_backend_gtk_la-Gtk_PangoLayoutLineArea.lo: Gtk_PangoLayoutLineArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_PangoLayoutLineArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoLayoutLineArea.Tpo" -c -o libmathview_backend_gtk_la-Gtk_PangoLayoutLineArea.lo `test -f 'Gtk_PangoLayoutLineArea.cc' || echo '$(srcdir)/'`Gtk_PangoLayoutLineArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoLayoutLineArea.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoLayoutLineArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoLayoutLineArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_PangoLayoutLineArea.cc' object='libmathview_backend_gtk_la-Gtk_PangoLayoutLineArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_PangoLayoutLineArea.lo `test -f 'Gtk_PangoLayoutLineArea.cc' || echo '$(srcdir)/'`Gtk_PangoLayoutLineArea.cc libmathview_backend_gtk_la-Gtk_PangoShaper.lo: Gtk_PangoShaper.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_PangoShaper.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoShaper.Tpo" -c -o libmathview_backend_gtk_la-Gtk_PangoShaper.lo `test -f 'Gtk_PangoShaper.cc' || echo '$(srcdir)/'`Gtk_PangoShaper.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoShaper.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoShaper.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_PangoShaper.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_PangoShaper.cc' object='libmathview_backend_gtk_la-Gtk_PangoShaper.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_PangoShaper.lo `test -f 'Gtk_PangoShaper.cc' || echo '$(srcdir)/'`Gtk_PangoShaper.cc libmathview_backend_gtk_la-Gtk_RenderingContext.lo: Gtk_RenderingContext.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_RenderingContext.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_RenderingContext.Tpo" -c -o libmathview_backend_gtk_la-Gtk_RenderingContext.lo `test -f 'Gtk_RenderingContext.cc' || echo '$(srcdir)/'`Gtk_RenderingContext.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_RenderingContext.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_RenderingContext.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_RenderingContext.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_RenderingContext.cc' object='libmathview_backend_gtk_la-Gtk_RenderingContext.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_RenderingContext.lo `test -f 'Gtk_RenderingContext.cc' || echo '$(srcdir)/'`Gtk_RenderingContext.cc libmathview_backend_gtk_la-Gtk_WrapperArea.lo: Gtk_WrapperArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_WrapperArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_WrapperArea.Tpo" -c -o libmathview_backend_gtk_la-Gtk_WrapperArea.lo `test -f 'Gtk_WrapperArea.cc' || echo '$(srcdir)/'`Gtk_WrapperArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_WrapperArea.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_WrapperArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_WrapperArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_WrapperArea.cc' object='libmathview_backend_gtk_la-Gtk_WrapperArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_WrapperArea.lo `test -f 'Gtk_WrapperArea.cc' || echo '$(srcdir)/'`Gtk_WrapperArea.cc libmathview_backend_gtk_la-Gtk_BoxGraphicDevice.lo: Gtk_BoxGraphicDevice.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_BoxGraphicDevice.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_BoxGraphicDevice.Tpo" -c -o libmathview_backend_gtk_la-Gtk_BoxGraphicDevice.lo `test -f 'Gtk_BoxGraphicDevice.cc' || echo '$(srcdir)/'`Gtk_BoxGraphicDevice.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_BoxGraphicDevice.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_BoxGraphicDevice.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_BoxGraphicDevice.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_BoxGraphicDevice.cc' object='libmathview_backend_gtk_la-Gtk_BoxGraphicDevice.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_BoxGraphicDevice.lo `test -f 'Gtk_BoxGraphicDevice.cc' || echo '$(srcdir)/'`Gtk_BoxGraphicDevice.cc libmathview_backend_gtk_la-Gtk_T1ComputerModernShaper.lo: Gtk_T1ComputerModernShaper.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_T1ComputerModernShaper.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_T1ComputerModernShaper.Tpo" -c -o libmathview_backend_gtk_la-Gtk_T1ComputerModernShaper.lo `test -f 'Gtk_T1ComputerModernShaper.cc' || echo '$(srcdir)/'`Gtk_T1ComputerModernShaper.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_T1ComputerModernShaper.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_T1ComputerModernShaper.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_T1ComputerModernShaper.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_T1ComputerModernShaper.cc' object='libmathview_backend_gtk_la-Gtk_T1ComputerModernShaper.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_T1ComputerModernShaper.lo `test -f 'Gtk_T1ComputerModernShaper.cc' || echo '$(srcdir)/'`Gtk_T1ComputerModernShaper.cc libmathview_backend_gtk_la-Gtk_t1lib_T1GlyphArea.lo: Gtk_t1lib_T1GlyphArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_gtk_la-Gtk_t1lib_T1GlyphArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_t1lib_T1GlyphArea.Tpo" -c -o libmathview_backend_gtk_la-Gtk_t1lib_T1GlyphArea.lo `test -f 'Gtk_t1lib_T1GlyphArea.cc' || echo '$(srcdir)/'`Gtk_t1lib_T1GlyphArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_t1lib_T1GlyphArea.Tpo" "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_t1lib_T1GlyphArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_gtk_la-Gtk_t1lib_T1GlyphArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Gtk_t1lib_T1GlyphArea.cc' object='libmathview_backend_gtk_la-Gtk_t1lib_T1GlyphArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_gtk_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_gtk_la-Gtk_t1lib_T1GlyphArea.lo `test -f 'Gtk_t1lib_T1GlyphArea.cc' || echo '$(srcdir)/'`Gtk_t1lib_T1GlyphArea.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-mathviewHEADERS: $(mathview_HEADERS) @$(NORMAL_INSTALL) test -z "$(mathviewdir)" || $(mkdir_p) "$(DESTDIR)$(mathviewdir)" @list='$(mathview_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(mathviewHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(mathviewdir)/$$f'"; \ $(mathviewHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(mathviewdir)/$$f"; \ done uninstall-mathviewHEADERS: @$(NORMAL_UNINSTALL) @list='$(mathview_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(mathviewdir)/$$f'"; \ rm -f "$(DESTDIR)$(mathviewdir)/$$f"; \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(mathviewdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-mathviewHEADERS install-exec-am: install-libLTLIBRARIES install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \ uninstall-mathviewHEADERS .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am \ install-libLTLIBRARIES install-man install-mathviewHEADERS \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-info-am uninstall-libLTLIBRARIES \ uninstall-mathviewHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoLayoutArea.cc��������������������������������������������0000644�0001750�0001750�00000007430�10661271102�020104� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Gtk_PangoLayoutArea.hh" #include "Gtk_RenderingContext.hh" #include "Point.hh" Gtk_PangoLayoutArea::Gtk_PangoLayoutArea(PangoLayout* _layout) : layout(_layout) { PangoRectangle rect; pango_layout_get_extents(layout, 0, &rect); PangoLayoutIter* iter = pango_layout_get_iter(layout); const scaled height = Gtk_RenderingContext::fromPangoPixels(pango_layout_iter_get_baseline(iter)); pango_layout_iter_free(iter); bbox = BoundingBox(Gtk_RenderingContext::fromPangoPixels(rect.width), height, Gtk_RenderingContext::fromPangoPixels(rect.height) - height); } Gtk_PangoLayoutArea::Gtk_PangoLayoutArea(PangoLayout* _layout, bool) : layout(_layout) { // this version of the constructor does not compute the bounding // box which is supposed to be initialized by a derived class // (see Gtk_PangoLayoutLineArea) } Gtk_PangoLayoutArea::~Gtk_PangoLayoutArea() { } BoundingBox Gtk_PangoLayoutArea::box() const { return bbox; } scaled Gtk_PangoLayoutArea::leftEdge() const { PangoRectangle rect; pango_layout_get_extents(layout, &rect, 0); return Gtk_RenderingContext::fromPangoPixels(PANGO_LBEARING(rect)); } scaled Gtk_PangoLayoutArea::rightEdge() const { PangoRectangle rect; pango_layout_get_extents(layout, &rect, 0); return Gtk_RenderingContext::fromPangoPixels(PANGO_RBEARING(rect)); } void Gtk_PangoLayoutArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { Gtk_RenderingContext& context = dynamic_cast(c); context.draw(x, y + bbox.height, layout); } bool Gtk_PangoLayoutArea::indexOfPosition(const scaled& x, const scaled& y, CharIndex& index) const { gint utf8_index; gint trailing; if (pango_layout_xy_to_index(layout, Gtk_RenderingContext::toPangoPixels(x), Gtk_RenderingContext::toPangoPixels(y + bbox.height), &utf8_index, &trailing)) { const gchar* buffer = pango_layout_get_text(layout); index = g_utf8_pointer_to_offset(buffer, buffer + utf8_index) + trailing; return true; } else return false; } bool Gtk_PangoLayoutArea::positionOfIndex(CharIndex index, Point* p, BoundingBox* b) const { const gchar* buffer = pango_layout_get_text(layout); if (index >= 0 && index < g_utf8_strlen(buffer, -1)) { const gchar* ptr = g_utf8_offset_to_pointer(buffer, index); PangoRectangle rect; pango_layout_index_to_pos(layout, ptr - buffer, &rect); if (p) { p->x += Gtk_RenderingContext::fromPangoPixels(rect.x); p->y += Gtk_RenderingContext::fromPangoPixels(rect.y); } if (b) *b = BoundingBox(Gtk_RenderingContext::fromPangoPixels(rect.width), Gtk_RenderingContext::fromPangoPixels(PANGO_ASCENT(rect)), Gtk_RenderingContext::fromPangoPixels(PANGO_DESCENT(rect))); return true; } else return false; } CharIndex Gtk_PangoLayoutArea::length() const { return g_utf8_strlen(pango_layout_get_text(layout), -1); } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_t1lib_T1GlyphArea.hh������������������������������������������0000644�0001750�0001750�00000003127�10661271102�020236� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_t1lib_T1GlyphArea_hh__ #define __Gtk_t1lib_T1GlyphArea_hh__ #include "GlyphArea.hh" class Gtk_t1lib_T1GlyphArea : public GlyphArea { protected: Gtk_t1lib_T1GlyphArea(const SmartPtr&, Char8); virtual ~Gtk_t1lib_T1GlyphArea(); public: static SmartPtr create(const SmartPtr&, Char8); virtual BoundingBox box(void) const; virtual scaled leftEdge(void) const; virtual scaled rightEdge(void) const; virtual void render(class RenderingContext&, const scaled&, const scaled&) const; SmartPtr getFont(void) const; Char8 getIndex(void) const { return index; } private: SmartPtr font; Char8 index; }; #endif // __Gtk_t1lib_T1GlyphArea_hh__ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoComputerModernShaper.cc����������������������������������0000644�0001750�0001750�00000005044�10661271102�022143� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "Gtk_PangoLayoutLineArea.hh" #include "Gtk_PangoComputerModernShaper.hh" #include "Gtk_DefaultPangoShaper.hh" Gtk_PangoComputerModernShaper::Gtk_PangoComputerModernShaper(const SmartPtr& l, const SmartPtr& conf) : ComputerModernShaper(l, conf) { setPostShapingMode(conf->getString(l, "gtk-backend/pango-computer-modern-shaper/post-shaping", "never")); } Gtk_PangoComputerModernShaper::~Gtk_PangoComputerModernShaper() { } SmartPtr Gtk_PangoComputerModernShaper::create(const SmartPtr& l, const SmartPtr& conf) { return new Gtk_PangoComputerModernShaper(l, conf); } void Gtk_PangoComputerModernShaper::setPangoShaper(const SmartPtr& shaper) { pangoShaper = shaper; } SmartPtr Gtk_PangoComputerModernShaper::getPangoShaper() const { return pangoShaper; } AreaRef Gtk_PangoComputerModernShaper::getGlyphArea(ComputerModernFamily::FontNameId fontNameId, ComputerModernFamily::FontSizeId designSize, UChar8 index, int size) const { Gtk_DefaultPangoShaper::PangoTextAttributes attributes; attributes.variant = NORMAL_VARIANT; attributes.family = ComputerModernFamily::nameOfFont(fontNameId, designSize); attributes.style = PANGO_STYLE_NORMAL; attributes.weight = PANGO_WEIGHT_NORMAL; gchar buffer[6]; gint length = g_unichar_to_utf8(toTTFGlyphIndex(ComputerModernFamily::encIdOfFontNameId(fontNameId), index), buffer); PangoLayout* layout = pangoShaper->createPangoLayout(buffer, length, size, attributes); return Gtk_PangoLayoutLineArea::create(layout); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_BoxGraphicDevice.cc�������������������������������������������0000644�0001750�0001750�00000017004�10661271102�020215� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AbstractLogger.hh" #include "Gtk_AreaFactory.hh" #include "Gtk_BoxGraphicDevice.hh" #include "Gtk_RenderingContext.hh" #include "FormattingContext.hh" #include "BoxMLElement.hh" #include "Configuration.hh" Gtk_BoxGraphicDevice::Gtk_BoxGraphicDevice(const SmartPtr& logger, const SmartPtr& conf) : BoxGraphicDevice(logger) { pango_context = gdk_pango_context_get(); } Gtk_BoxGraphicDevice::~Gtk_BoxGraphicDevice() { } SmartPtr Gtk_BoxGraphicDevice::create(const SmartPtr& logger, const SmartPtr& conf) { return new Gtk_BoxGraphicDevice(logger, conf); } void Gtk_BoxGraphicDevice::setFactory(const SmartPtr& f) { BoxGraphicDevice::setFactory(f); gtk_factory = f; } AreaRef Gtk_BoxGraphicDevice::dummy(const FormattingContext& context) const { return getFactory()->color(string(context, StringOfUCS4String(UCS4String(1, 0xfffd)), 0), RGBColor::RED()); } AreaRef Gtk_BoxGraphicDevice::string(const FormattingContext& context, const String& str, const scaled& width) const { #if 0 if (str.length() == 0) return dummy(context); else { const UTF8String utf8_string = str; PangoLayout* layout = pango_layout_new(pango_context); pango_layout_set_text(layout, utf8_string.data(), utf8_string.length()); if (width < scaled::zero()) pango_layout_set_width(layout, -1); else pango_layout_set_width(layout, Gtk_RenderingContext::toPangoPixels(width)); pango_layout_set_single_paragraph_mode(layout, TRUE); PangoAttrList* attrList = pango_attr_list_new(); PangoAttribute* aSize = pango_attr_size_new(Gtk_RenderingContext::toPangoPixels(context.getSize())); aSize->start_index = 0; aSize->end_index = utf8_string.length(); pango_attr_list_insert(attrList, aSize); pango_layout_set_attributes(layout, attrList); // set attributes... return gtk_factory->pangoLayout(layout); } #else return BoxGraphicDevice::string(context, str, width); #endif } #if 0 #include "BoundingBoxAux.hh" #include "scaledAux.hh" AreaRef Gtk_BoxGraphicDevice::paragraph(const FormattingContext& context, const BoxedParagraph& p, const scaled& width) const { const UTF8String utf8_string = p.getContent(); PangoLayout* layout = pango_layout_new(pango_context); pango_layout_set_text(layout, utf8_string.data(), utf8_string.length()); pango_layout_set_width(layout, Gtk_RenderingContext::toPangoPixels(width)); pango_layout_set_single_paragraph_mode(layout, TRUE); pango_layout_set_wrap(layout, PANGO_WRAP_WORD); //pango_layout_set_justify(layout, TRUE); // doesn't work???? PangoAttrList* attrList = pango_attr_list_new(); for (std::vector::const_iterator obj = p.begin(); obj != p.end(); obj++) if ((*obj).area) { const BoundingBox box = (*obj).area->box(); PangoRectangle rect; rect.x = 0; rect.y = -Gtk_RenderingContext::toPangoPixels(box.height); rect.width = Gtk_RenderingContext::toPangoPixels(box.width); rect.height = Gtk_RenderingContext::toPangoPixels(box.verticalExtent()); PangoAttribute* aShape = pango_attr_shape_new(&rect, &rect); aShape->start_index = (*obj).start_index; aShape->end_index = (*obj).end_index; pango_attr_list_insert(attrList, aShape); } else { #if 0 const RGBColor fColor = (*obj).foreground; PangoAttribute* fAttr = pango_attr_foreground_new(fColor.red << 8, fColor.green << 8, fColor.blue << 8); fAttr->start_index = (*obj).start_index; fAttr->end_index = (*obj).end_index; pango_attr_list_insert(attrList, fAttr); if (!(*obj).background.transparent) { const RGBColor bColor = (*obj).background; PangoAttribute* bAttr = pango_attr_background_new(bColor.red << 8, bColor.green << 8, bColor.blue << 8); bAttr->start_index = (*obj).start_index; bAttr->end_index = (*obj).end_index; pango_attr_list_insert(attrList, bAttr); } #endif PangoAttribute* aSize = pango_attr_size_new(Gtk_RenderingContext::toPangoPixels((*obj).size)); aSize->start_index = (*obj).start_index; aSize->end_index = (*obj).end_index; pango_attr_list_insert(attrList, aSize); } pango_layout_set_attributes(layout, attrList); PangoRectangle rect; pango_layout_get_extents(layout, 0, &rect); #if 0 PangoLayoutLine* first_line = pango_layout_get_line(layout, 0); PangoRectangle first_line_rect; pango_layout_line_get_extents(first_line, 0, &first_line_rect); const scaled first_line_ascent = Gtk_RenderingContext::fromPangoPixels(PANGO_ASCENT(first_line_rect)); #else PangoLayoutIter* iter = pango_layout_get_iter(layout); const scaled first_line_ascent = Gtk_RenderingContext::fromPangoPixels(pango_layout_iter_get_baseline(iter)); pango_layout_iter_free(iter); #endif BoundingBox finalBox(Gtk_RenderingContext::fromPangoPixels(rect.width), first_line_ascent, Gtk_RenderingContext::fromPangoPixels(rect.height) - first_line_ascent); // std::cerr << "the final box will be " << finalBox << " the first line ascent being " << first_line_ascent << std::endl; std::vector c; c.push_back(BoxedLayoutArea::XYArea(scaled::zero(), scaled::zero(), getFactory()->pangoLayout(layout))); for (std::vector::const_iterator obj = p.begin(); obj != p.end(); obj++) if ((*obj).area) { PangoRectangle pos; pango_layout_index_to_pos(layout, (*obj).start_index, &pos); #if 0 std::cerr << "Positioning object with box " << (*obj).area->box() << " at " << Gtk_RenderingContext::fromPangoPixels(pos.x) << "," << Gtk_RenderingContext::fromPangoPixels(pos.y) << "," << Gtk_RenderingContext::fromPangoPixels(pos.width) << "," << Gtk_RenderingContext::fromPangoPixels(pos.height) << std::endl; std::cerr << "The computation yields " << finalBox.height - Gtk_RenderingContext::fromPangoPixels(pos.y) - (*obj).area->box().height << std::endl; #endif PangoLayoutIter* iter = pango_layout_get_iter(layout); int baseline = pango_layout_iter_get_baseline(iter); while (baseline < pos.y) { pango_layout_iter_next_line(iter); baseline = pango_layout_iter_get_baseline(iter); } pango_layout_iter_free(iter); // std::cerr << "found object baseline " << baseline << std::endl; c.push_back(BoxedLayoutArea::XYArea(Gtk_RenderingContext::fromPangoPixels(pos.x), finalBox.height - Gtk_RenderingContext::fromPangoPixels(baseline), (*obj).area)); } return getFactory()->boxedLayout(finalBox, c); } #endif AreaRef Gtk_BoxGraphicDevice::wrapper(const FormattingContext& context, const AreaRef& base) const { return gtk_factory->wrapper(base, base->box(), context.getBoxMLElement()); } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/gtk/Gtk_DefaultPangoShaper.cc�����������������������������������������0000644�0001750�0001750�00000023571�10661271102�020571� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Configuration.hh" #include "Gtk_AreaFactory.hh" #include "Gtk_DefaultPangoShaper.hh" #include "Gtk_RenderingContext.hh" #include "MathMLElement.hh" #include "MathGraphicDevice.hh" #include "ShapingContext.hh" static PangoStyle parsePangoStyle(const String& s, PangoStyle v) { if (s == "italic") return PANGO_STYLE_ITALIC; else if (s == "oblique") return PANGO_STYLE_OBLIQUE; else return v; } static PangoWeight parsePangoWeight(const String& s, PangoWeight v) { if (s == "light") return PANGO_WEIGHT_LIGHT; else if (s == "bold") return PANGO_WEIGHT_BOLD; else return v; } Gtk_DefaultPangoShaper::Gtk_DefaultPangoShaper(const SmartPtr& logger, const SmartPtr& conf) { static const DefaultPangoTextAttributes defaultVariantDesc[] = { { "normal", NORMAL_VARIANT, "Serif", "normal", PANGO_STYLE_NORMAL, "normal", PANGO_WEIGHT_NORMAL }, { "bold", BOLD_VARIANT, "Serif", "normal", PANGO_STYLE_NORMAL, "bold", PANGO_WEIGHT_BOLD }, { "italic", ITALIC_VARIANT, "Serif", "italic", PANGO_STYLE_ITALIC, "normal", PANGO_WEIGHT_NORMAL }, { "bold-italic", BOLD_ITALIC_VARIANT, "Serif", "italic", PANGO_STYLE_ITALIC, "bold", PANGO_WEIGHT_BOLD }, { "double-struck", DOUBLE_STRUCK_VARIANT, "Sans", "normal", PANGO_STYLE_NORMAL, "bold", PANGO_WEIGHT_BOLD }, { "bold-fraktur", BOLD_FRAKTUR_VARIANT, "Serif", "normal", PANGO_STYLE_NORMAL, "bold", PANGO_WEIGHT_BOLD }, { "script", SCRIPT_VARIANT, "Sans", "normal", PANGO_STYLE_NORMAL, "normal", PANGO_WEIGHT_NORMAL }, { "bold-script", BOLD_SCRIPT_VARIANT, "Sans", "normal", PANGO_STYLE_NORMAL, "bold", PANGO_WEIGHT_BOLD }, { "fraktur", FRAKTUR_VARIANT, "Serif", "normal", PANGO_STYLE_NORMAL,"bold", PANGO_WEIGHT_BOLD }, { "sans-serif", SANS_SERIF_VARIANT, "Sans", "normal", PANGO_STYLE_NORMAL, "normal", PANGO_WEIGHT_NORMAL }, { "bold-sans-serif", BOLD_SANS_SERIF_VARIANT, "Sans", "normal", PANGO_STYLE_NORMAL, "bold", PANGO_WEIGHT_BOLD }, { "sans-serif-italic", SANS_SERIF_ITALIC_VARIANT, "Sans", "italic", PANGO_STYLE_ITALIC, "normal", PANGO_WEIGHT_NORMAL }, { "sans-serif-bold-italic", SANS_SERIF_BOLD_ITALIC_VARIANT, "Sans", "italic", PANGO_STYLE_ITALIC, "normal", PANGO_WEIGHT_NORMAL }, { "monospace", MONOSPACE_VARIANT, "Monospace", "normal", PANGO_STYLE_NORMAL, "normal", PANGO_WEIGHT_NORMAL } }; const String baseKey = "gtk-backend/pango-default-shaper/variants/"; for (unsigned i = 0; i < sizeof(defaultVariantDesc) / sizeof(DefaultPangoTextAttributes); i++) { const String key = baseKey + defaultVariantDesc[i].variant; const String family = conf->getString(logger, key + "/family", defaultVariantDesc[i].family); const String style = conf->getString(logger, key + "/style", defaultVariantDesc[i].style); const String weight = conf->getString(logger, key + "/weight", defaultVariantDesc[i].weight); const PangoStyle pangoStyle = parsePangoStyle(style, PANGO_STYLE_NORMAL); const PangoWeight pangoWeight = parsePangoWeight(weight, PANGO_WEIGHT_NORMAL); variantDesc[i].variant = defaultVariantDesc[i].variantId; variantDesc[i].family = family; variantDesc[i].style = pangoStyle; variantDesc[i].weight = pangoWeight; } } Gtk_DefaultPangoShaper::~Gtk_DefaultPangoShaper() { } SmartPtr Gtk_DefaultPangoShaper::create(const SmartPtr& l, const SmartPtr& conf) { return new Gtk_DefaultPangoShaper(l, conf); } void Gtk_DefaultPangoShaper::registerShaper(const SmartPtr&, unsigned) { // normal characters are not registered because the Pango shaper is supposed to // be the default shaper. It will be called anyway as soon as there's a // Unicode char that cannot be shaped otherwise } void Gtk_DefaultPangoShaper::unregisterShaper(const SmartPtr&, unsigned) { // nothing to do } void Gtk_DefaultPangoShaper::shape(ShapingContext& context) const { const unsigned n = context.chunkSize(); assert(n > 0); // is it worth specializing this to the case when n == 1???? gunichar* uni_buffer = new gunichar[n]; for (unsigned i = 0; i < n; i++) uni_buffer[i] = context.data()[i]; context.pushArea(n, shapeString(context, uni_buffer, n)); delete [] uni_buffer; } AreaRef Gtk_DefaultPangoShaper::shapeString(const ShapingContext& context, const gunichar* uni_buffer, unsigned n) const { glong length; gchar* buffer = g_ucs4_to_utf8(uni_buffer, n, NULL, &length, NULL); PangoLayout* layout = createPangoLayout(buffer, length, context.getSize(), getDefaultTextAttributes()); g_free(buffer); SmartPtr factory = smart_cast(context.getFactory()); assert(factory); // LUCA: what is the difference between PangoLayout and PangoLayoutLine? return factory->pangoLayoutLine(layout); } const Gtk_DefaultPangoShaper::PangoTextAttributes& Gtk_DefaultPangoShaper::getDefaultTextAttributes() { static const PangoTextAttributes desc = { NORMAL_VARIANT, "serif", PANGO_STYLE_NORMAL, PANGO_WEIGHT_NORMAL }; return desc; } const Gtk_DefaultPangoShaper::PangoTextAttributes& Gtk_DefaultPangoShaper::getTextAttributes(MathVariant variant) const { assert(variant >= NORMAL_VARIANT && variant <= MONOSPACE_VARIANT); // static const PangoTextAttributes variantDesc[] = // { // { NORMAL_VARIANT, "Serif", PANGO_STYLE_NORMAL, PANGO_WEIGHT_NORMAL }, // { BOLD_VARIANT, "Serif", PANGO_STYLE_NORMAL, PANGO_WEIGHT_BOLD }, // { ITALIC_VARIANT, "Serif", PANGO_STYLE_ITALIC, PANGO_WEIGHT_NORMAL }, // { BOLD_ITALIC_VARIANT, "Serif", PANGO_STYLE_ITALIC, PANGO_WEIGHT_BOLD }, // { DOUBLE_STRUCK_VARIANT, "Sans", PANGO_STYLE_NORMAL, PANGO_WEIGHT_BOLD }, // { BOLD_FRAKTUR_VARIANT, "Serif", PANGO_STYLE_NORMAL, PANGO_WEIGHT_BOLD }, // { SCRIPT_VARIANT, "Sans", PANGO_STYLE_NORMAL, PANGO_WEIGHT_NORMAL }, // { BOLD_SCRIPT_VARIANT, "Sans", PANGO_STYLE_NORMAL, PANGO_WEIGHT_BOLD }, // { FRAKTUR_VARIANT, "Serif", PANGO_STYLE_NORMAL, PANGO_WEIGHT_BOLD }, // { SANS_SERIF_VARIANT, "Sans", PANGO_STYLE_NORMAL, PANGO_WEIGHT_NORMAL }, // { BOLD_SANS_SERIF_VARIANT, "Sans", PANGO_STYLE_NORMAL, PANGO_WEIGHT_BOLD }, // { SANS_SERIF_ITALIC_VARIANT, "Sans", PANGO_STYLE_ITALIC, PANGO_WEIGHT_NORMAL }, // { SANS_SERIF_BOLD_ITALIC_VARIANT, "Sans", PANGO_STYLE_ITALIC, PANGO_WEIGHT_NORMAL }, // { MONOSPACE_VARIANT, "Monospace", PANGO_STYLE_NORMAL, PANGO_WEIGHT_NORMAL } // }; return variantDesc[variant - NORMAL_VARIANT]; } PangoLayout* Gtk_DefaultPangoShaper::createPangoLayout(const gchar* buffer, glong length, const scaled& sp_size, const PangoTextAttributes& attributes) const { // Apparently when setting font sizes the interpretation of PANGO_SCALE is different // (see Pango documentation) hence we do NOT use toPangoPixels const gint size = Gtk_RenderingContext::toPangoPoints(sp_size); // FIXME: I bet there are some leaks here, but using GObjectPtr just // gives a segfault!!! //GObjectPtr layout = pango_layout_new(context); PangoLayout* layout = pango_layout_new(context); pango_layout_set_text(layout, buffer, length); //GObjectPtr attrList = pango_attr_list_new(); PangoAttrList* attrList = pango_attr_list_new(); #if 1 PangoFontDescription* fontDesc = pango_font_description_new(); if (!attributes.family.empty()) pango_font_description_set_family_static(fontDesc, attributes.family.c_str()); if (attributes.weight != PANGO_WEIGHT_NORMAL) pango_font_description_set_weight(fontDesc, attributes.weight); if (attributes.style != PANGO_STYLE_NORMAL) pango_font_description_set_style(fontDesc, attributes.style); pango_font_description_set_size(fontDesc, size); PangoAttribute* fontDescAttr = pango_attr_font_desc_new(fontDesc); fontDescAttr->start_index = 0; fontDescAttr->end_index = length; pango_attr_list_insert(attrList, fontDescAttr); pango_font_description_free(fontDesc); //??? #else // PangoAttribute is not a GObject? PangoAttribute* sizeAttr = pango_attr_size_new(size); sizeAttr->start_index = 0; sizeAttr->end_index = length; pango_attr_list_insert(attrList, sizeAttr); #if 1 if (attributes.family) { PangoAttribute* familyAttr = pango_attr_family_new(attributes.family); familyAttr->start_index = 0; familyAttr->start_index = length; pango_attr_list_insert(attrList, familyAttr); } if (attributes.weight != PANGO_WEIGHT_NORMAL) { PangoAttribute* weightAttr = pango_attr_weight_new(attributes.weight); weightAttr->start_index = 0; weightAttr->end_index = length; pango_attr_list_insert(attrList, weightAttr); } if (attributes.style != PANGO_STYLE_NORMAL) { PangoAttribute* styleAttr = pango_attr_style_new(attributes.style); styleAttr->start_index = 0; styleAttr->end_index = length; pango_attr_list_insert(attrList, styleAttr); } #endif #endif pango_layout_set_attributes(layout, attrList); return layout; } bool Gtk_DefaultPangoShaper::isDefaultShaper() const { return true; } ���������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/���������������������������������������������������������������0000777�0001750�0001750�00000000000�10704625463�014533� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/ComputerModernFamily.cc����������������������������������������0000644�0001750�0001750�00000020357�10661271104�021061� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include #include "Configuration.hh" #include "ComputerModernFamily.hh" ComputerModernFamily::ComputerModernFamily(const SmartPtr&, const SmartPtr& conf) { std::vector fl = conf->getStringList("fonts/computer-modern/font-name"); for (unsigned fn = FN_NIL + 1; fn < FN_NOT_VALID; fn++) for (unsigned fs = FS_NIL + 1; fs < FS_NOT_VALID; fs++) { const String fontName = nameOfFont(FontNameId(fn), FontSizeId(fs)); configuredFont[fn][fs] = std::find(fl.begin(), fl.end(), fontName) != fl.end(); } } ComputerModernFamily::~ComputerModernFamily() { } SmartPtr ComputerModernFamily::create(const SmartPtr& l, const SmartPtr& conf) { return new ComputerModernFamily(l, conf); } int ComputerModernFamily::sizeOfFontSizeId(FontSizeId id) { assert(validFontSizeId(id)); static int size[] = { 5, 6, 7, 8, 9, 10, 12, 17 }; return size[id]; } ComputerModernFamily::FontSizeId ComputerModernFamily::fontSizeIdOfSize(int size) { static FontSizeId fontSizeId[] = { FS_5, FS_6, FS_7, FS_8, FS_9, FS_10, FS_NIL, FS_12, FS_NIL, FS_NIL, FS_NIL, FS_NIL, FS_17 }; if (size >= 5 && size <= 17) return fontSizeId[size - 5]; else return FS_NIL; } const char* ComputerModernFamily::nameOfFontNameId(FontNameId id) { assert(validFontNameId(id)); static const char* name[] = { "cmr", "cmb", "cmbx", "cmbxti", "cmti", "cmss", "cmssi", "cmssbx", "cmtt", "cmsy", "cmbsy", "cmmi", "cmmib", "cmex", "msam", "msbm" }; assert(sizeof(name) / sizeof(const char*) == FN_NOT_VALID); return name[id]; } String ComputerModernFamily::nameOfFont(FontNameId id, FontSizeId designSize) { std::ostringstream os; os << nameOfFontNameId(id) << sizeOfFontSizeId(designSize); return os.str(); } String ComputerModernFamily::nameOfFont(MathVariant variant, FontEncId encId, const scaled& size) const { assert(validFontEncId(encId)); scaled trueSize = size; FontSizeId sizeId; const FontNameId name = findFont(variant, encId, trueSize, sizeId); if (validFontNameId(name)) return nameOfFont(name, sizeId); else return ""; } ComputerModernFamily::FontEncId ComputerModernFamily::encIdOfFontNameId(FontNameId id) { assert(validFontNameId(id)); static FontEncId enc[] = { FE_CMR, FE_CMR, FE_CMR, FE_CMR, FE_CMR, FE_CMR, FE_CMR, FE_CMR, FE_CMR, FE_CMSY, FE_CMSY, FE_CMMI, FE_CMMI, FE_CMEX, FE_MSAM, FE_MSBM }; assert(sizeof(enc) / sizeof(FontEncId) == FN_NOT_VALID); return enc[id]; } bool ComputerModernFamily::fontEnabled(FontNameId name, FontSizeId size) const { assert(validFontNameId(name)); assert(validFontSizeId(size)); return configuredFont[name][size]; } ComputerModernFamily::FontNameId ComputerModernFamily::findBestFont(MathVariant variant, FontEncId encId, int size, FontSizeId& designSize) const { assert(validFontEncId(encId)); assert(validMathVariant(variant)); designSize = FS_5; int bestDiff = std::abs(size - sizeOfFontSizeId(designSize)); for (int i = FS_5; i < FS_NOT_VALID; i++) if (std::abs(size - sizeOfFontSizeId(FontSizeId(i))) < bestDiff) designSize = FontSizeId(i); static FontNameId family[FE_NOT_VALID][MONOSPACE_VARIANT - NORMAL_VARIANT + 1] = { { FN_CMR, FN_CMB, FN_CMTI, FN_CMBXTI, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_CMSS, FN_CMSSBX, FN_CMSSI, FN_NIL, FN_CMTT }, { FN_NIL, FN_NIL, FN_CMMI, FN_CMMIB, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL }, { FN_CMSY, FN_CMBSY, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL }, { FN_CMEX, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL }, { FN_MSAM, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL }, { FN_MSBM, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL, FN_NIL }, }; return family[encId - FE_CMR][variant - NORMAL_VARIANT]; } ComputerModernFamily::FontNameId ComputerModernFamily::findFont(MathVariant variant, FontEncId encId, scaled& size, FontSizeId& designSize) const { size = round(size); FontNameId family = findBestFont(variant, encId, size.toInt(), designSize); if (variant == BOLD_VARIANT && encId == FE_CMR && fontEnabled(FN_CMBX, designSize)) return FN_CMBX; else if (family != FN_NIL && fontEnabled(family, designSize)) return family; // we prefer scaling the font rather than renouncing to the precise family designSize = FS_10; if (family != FN_NIL && fontEnabled(family, designSize)) return family; switch (encId) { case FE_CMR: switch (variant) { case NORMAL_VARIANT: case BOLD_VARIANT: case ITALIC_VARIANT: case SCRIPT_VARIANT: case FRAKTUR_VARIANT: case SANS_SERIF_VARIANT: case MONOSPACE_VARIANT: case DOUBLE_STRUCK_VARIANT: if (fontEnabled(FN_CMR)) return FN_CMR; else return FN_NIL; case BOLD_ITALIC_VARIANT: if (fontEnabled(FN_CMTI)) return FN_CMTI; else if (fontEnabled(FN_CMB)) return FN_CMB; else if (fontEnabled(FN_CMR)) return FN_CMR; else return FN_NIL; case BOLD_FRAKTUR_VARIANT: case BOLD_SCRIPT_VARIANT: if (fontEnabled(FN_CMB)) return FN_CMB; else if (fontEnabled(FN_CMR)) return FN_CMR; else return FN_NIL; case BOLD_SANS_SERIF_VARIANT: if (fontEnabled(FN_CMSS)) return FN_CMSS; else if (fontEnabled(FN_CMB)) return FN_CMB; else if (fontEnabled(FN_CMR)) return FN_CMR; else return FN_NIL; case SANS_SERIF_ITALIC_VARIANT: if (fontEnabled(FN_CMSS)) return FN_CMSS; else if (fontEnabled(FN_CMTI)) return FN_CMTI; else if (fontEnabled(FN_CMR)) return FN_CMR; else return FN_NIL; case SANS_SERIF_BOLD_ITALIC_VARIANT: if (fontEnabled(FN_CMSSBX)) return FN_CMSSBX; else if (fontEnabled(FN_CMSSI)) return FN_CMSSI; else if (fontEnabled(FN_CMSS)) return FN_CMSS; else if (fontEnabled(FN_CMTI)) return FN_CMTI; else if (fontEnabled(FN_CMB)) return FN_CMB; else if (fontEnabled(FN_CMR)) return FN_CMR; else return FN_NIL; default: assert(false); } break; case FE_CMMI: switch (variant) { case BOLD_ITALIC_VARIANT: case BOLD_FRAKTUR_VARIANT: case BOLD_SCRIPT_VARIANT: case BOLD_SANS_SERIF_VARIANT: case SANS_SERIF_BOLD_ITALIC_VARIANT: if (fontEnabled(FN_CMMIB)) return FN_CMMIB; else if (fontEnabled(FN_CMMI)) return FN_CMMI; else return FN_NIL; default: if (fontEnabled(FN_CMMI)) return FN_CMMI; else return FN_NIL; } break; case FE_CMSY: switch (variant) { case BOLD_ITALIC_VARIANT: case BOLD_FRAKTUR_VARIANT: case BOLD_SCRIPT_VARIANT: case BOLD_SANS_SERIF_VARIANT: case SANS_SERIF_BOLD_ITALIC_VARIANT: if (fontEnabled(FN_CMBSY)) return FN_CMBSY; else if (fontEnabled(FN_CMSY)) return FN_CMSY; else return FN_NIL; default: if (fontEnabled(FN_CMSY)) return FN_CMSY; else return FN_NIL; } break; case FE_CMEX: if (fontEnabled(FN_CMEX)) return FN_CMEX; else return FN_NIL; case FE_MSAM: if (fontEnabled(FN_MSAM)) return FN_MSAM; else return FN_NIL; case FE_MSBM: if (fontEnabled(FN_MSBM)) return FN_MSBM; else return FN_NIL; default: assert(false); } return FN_NIL; } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/VerticalSpaceArea.hh�������������������������������������������0000644�0001750�0001750�00000003240�10661271104�020274� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __VerticalSpaceArea_hh__ #define __VerticalSpaceArea_hh__ #include "SimpleArea.hh" class GMV_MathView_EXPORT VerticalSpaceArea : public SimpleArea { protected: VerticalSpaceArea(scaled h, scaled d) : height(h), depth(d) { } virtual ~VerticalSpaceArea() { } public: // TODO: caching of areas: it is likely that there will be a large // number of horizontal space areas all with the same width static SmartPtr create(const scaled& h, const scaled& d = scaled::zero()) { return new VerticalSpaceArea(h, d); } virtual BoundingBox box(void) const; virtual scaled leftEdge(void) const; virtual scaled rightEdge(void) const; scaled getHeight(void) const { return height; } scaled getDepth(void) const { return depth; } private: scaled height; scaled depth; }; #endif // __VerticalSpaceArea_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/AreaId.hh������������������������������������������������������0000644�0001750�0001750�00000005302�10661271104�016104� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __AreaId_hh__ #define __AreaId_hh__ #include #include "Area.hh" #include "Point.hh" class GMV_MathView_EXPORT AreaId { public: AreaId(const AreaRef& r) : root(r) { }; void append(AreaIndex); void append(AreaIndex, const AreaRef&); void append(AreaIndex, const AreaRef&, const scaled&, const scaled&); void pop_back(void); bool empty(void) const { return pathV.empty(); } int size(void) const { return pathV.size(); } void clear(void) { pathV.clear(); areaV.clear(); originV.clear(); lengthV.clear(); } AreaRef getArea(int = -1) const; void getOrigin(class Point&, int = 0, int = -1) const; void accumulateOrigin(class Point&, int = 0, int = -1) const; CharIndex getLength(int = 0, int = -1) const; typedef std::vector PathVector; typedef std::vector AreaVector; typedef std::vector OriginVector; typedef std::vector LengthVector; const PathVector& getPath(void) const { return pathV; } const AreaVector& getAreas(void) const { validateAreas(); return areaV; } const OriginVector& getOrigins(void) const { validateOrigins(); return originV; } const LengthVector& getLengths(void) const { validateLengths(); return lengthV; } protected: AreaId(const AreaRef& r, const PathVector::const_iterator& begin, const PathVector::const_iterator& end) : root(r), pathV(begin, end) { } void accumulateOriginAux(const OriginVector::const_iterator&, const OriginVector::const_iterator&, class Point&) const; void accumulateLengthAux(const LengthVector::const_iterator&, const LengthVector::const_iterator&, CharIndex&) const; private: void validateAreas(void) const; void validateOrigins(void) const; void validateLengths(void) const; const AreaRef root; PathVector pathV; mutable AreaVector areaV; mutable OriginVector originV; mutable LengthVector lengthV; }; #endif // __AreaId_hh__ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/VerticalFillerArea.hh������������������������������������������0000644�0001750�0001750�00000002627�10661271104�020466� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __VerticalFillerArea_hh__ #define __VerticalFillerArea_hh__ #include "FillerArea.hh" class GMV_MathView_EXPORT VerticalFillerArea : public FillerArea { protected: VerticalFillerArea(void) { } virtual ~VerticalFillerArea() { } public: static SmartPtr create(void); virtual BoundingBox box(void) const; virtual AreaRef fit(const scaled&, const scaled&, const scaled&) const; virtual scaled leftEdge(void) const; virtual scaled rightEdge(void) const; virtual void strength(int&, int&, int&) const; }; #endif // __VerticalFillerArea_hh__ ���������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/ContainerArea.hh�����������������������������������������������0000644�0001750�0001750�00000002076�10661271104�017477� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __ContainerArea_hh__ #define __ContainerArea_hh__ #include "Area.hh" class GMV_MathView_EXPORT ContainerArea : public Area { protected: ContainerArea(void) { } virtual ~ContainerArea() { } }; #endif // __ContainerArea_hh__ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/BoxGraphicDevice.cc��������������������������������������������0000644�0001750�0001750�00000003535�10661271104�020121� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AreaFactory.hh" #include "BoxGraphicDevice.hh" #include "BoxMLElement.hh" #include "FormattingContext.hh" #include "ShaperManager.hh" BoxGraphicDevice::BoxGraphicDevice(const SmartPtr& logger) : GraphicDevice(logger) { } BoxGraphicDevice::~BoxGraphicDevice() { } scaled BoxGraphicDevice::ex(const FormattingContext& context) const { return string(context, "x", scaled::min())->box().height; } AreaRef BoxGraphicDevice::wrapper(const FormattingContext&, const AreaRef& area) const { return area; } AreaRef BoxGraphicDevice::dummy(const FormattingContext&) const { //assert(false); return getFactory()->horizontalSpace(scaled::zero()); } AreaRef BoxGraphicDevice::string(const FormattingContext& context, const String& str, const scaled&) const { const UCS4String source = UCS4StringOfString(str); const AreaRef res = getShaperManager()->shape(context, context.getBoxMLElement(), context.BGD()->getFactory(), source); return res; } �������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/VerticalFillerArea.cc������������������������������������������0000644�0001750�0001750�00000003005�10661271104�020443� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "VerticalFillerArea.hh" #include "VerticalSpaceArea.hh" SmartPtr VerticalFillerArea::create() { return new VerticalFillerArea(); } BoundingBox VerticalFillerArea::box() const { return BoundingBox(scaled::zero(), scaled::zero(), scaled::zero()); } AreaRef VerticalFillerArea::fit(const scaled&, const scaled& height, const scaled& depth) const { return VerticalSpaceArea::create(height, depth); } scaled VerticalFillerArea::leftEdge() const { return scaled::max(); } scaled VerticalFillerArea::rightEdge() const { return scaled::min(); } void VerticalFillerArea::strength(int& w, int& h, int& d) const { w = 0; h = d = 1; } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/Shaper.hh������������������������������������������������������0000644�0001750�0001750�00000003731�10661271104�016205� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Shaper_hh__ #define __Shaper_hh__ #include "Area.hh" class GMV_MathView_EXPORT Shaper : public Object { protected: Shaper(void) { } virtual ~Shaper() { } public: virtual void registerShaper(const SmartPtr&, unsigned) = 0; virtual void unregisterShaper(const SmartPtr&, unsigned) = 0; virtual void shape(class ShapingContext&) const = 0; virtual bool isDefaultShaper(void) const; virtual bool shapeCombiningChar(const ShapingContext&) const; virtual bool computeCombiningCharOffsetsAbove(const AreaRef&, const AreaRef&, scaled&, scaled&) const; virtual bool computeCombiningCharOffsetsBelow(const AreaRef&, const AreaRef&, scaled&) const; protected: virtual AreaRef composeStretchyCharV(const SmartPtr&, const AreaRef&, const AreaRef&, const AreaRef&, const AreaRef&, const AreaRef&, const scaled&) const; virtual AreaRef composeStretchyCharH(const SmartPtr&, const AreaRef&, const AreaRef&, const AreaRef&, const AreaRef&, const scaled&) const; }; #endif // __Shaper_hh__ ���������������������������������������gtkmathview-0.8.0/src/backend/common/ShapingContext.cc����������������������������������������������0000644�0001750�0001750�00000007270�10661271104�017711� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Element.hh" #include "AreaFactory.hh" #include "ShapingContext.hh" ShapingContext::ShapingContext(const SmartPtr& el, const SmartPtr& f, const UCS4String& src, const std::vector& s, const scaled& sz, MathVariant mv, bool mm, const scaled& v, const scaled& h) : element(el), factory(f), source(src), spec(s), size(sz), mathVariant(mv), mathMode(mm), vSpan(v), hSpan(h), index(0) { } SmartPtr ShapingContext::getElement() const { return element; } SmartPtr ShapingContext::getFactory() const { return factory; } unsigned ShapingContext::chunkSize() const { if (done()) return 0; else { unsigned n = 1; unsigned si = spec[index].getShaperId(); unsigned fi = spec[index].getFontId(); while (index + n < spec.size() && spec[index + n].getShaperId() == si && spec[index + n].getFontId() == fi) n++; return n; } } unsigned ShapingContext::getShaperId() const { assert(!done()); return spec[index].getShaperId(); } const GlyphSpec& ShapingContext::getSpec(int n) const { assert(index + n < spec.size()); return spec[index + n]; } const Char32* ShapingContext::data() const { assert(!done()); return source.data() + index; } AreaRef ShapingContext::area() const { // #if 0 if (res.size() == 1) return res[0]; else #endif return factory->glyphString(res, res_n, source); } Char32 ShapingContext::prevChar() const { return (index > 0) ? source[index - 1] : 0; } Char32 ShapingContext::thisChar() const { return (index < source.length()) ? source[index] : 0; } Char32 ShapingContext::nextChar() const { return (index + 1 < source.length()) ? source[index + 1] : 0; } UCS4String ShapingContext::prevString() const { return source.substr(0, index); } UCS4String ShapingContext::prevString(UCS4String::size_type l) const { if (l > index) l = index; return source.substr(index - l, l); } UCS4String ShapingContext::nextString() const { return source.substr(index, source.length() - index); } UCS4String ShapingContext::nextString(UCS4String::size_type l) const { if (l > source.length() - index) l = source.length() - index; return source.substr(index, l); } AreaRef ShapingContext::popArea(CharIndex& n) { assert(!empty()); n = res_n.back(); res_n.pop_back(); index -= n; AreaRef area = res.back(); res.pop_back(); return area; } void ShapingContext::pushArea(CharIndex n, const AreaRef& area) { assert(area); assert(index + n <= source.length()); index += n; res_n.push_back(n); res.push_back(area); } AreaRef ShapingContext::getArea(int i) const { if (i >= 0) { assert(i < res.size()); return res[i]; } else { assert(-i <= res.size()); return res[res.size() + i]; } } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/ShaperManager.cc�����������������������������������������������0000644�0001750�0001750�00000015307�10704610363�017472� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AbstractLogger.hh" #include "Shaper.hh" #include "NullShaper.hh" #include "ShapingContext.hh" #include "ShaperManager.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" #include "Element.hh" #include "MathMLElement.hh" #include "Area.hh" #include "GlyphArea.hh" ShaperManager::ShaperManager(const SmartPtr& l) : nextShaperId(0), logger(l), errorShaper(smart_cast(NullShaper::create(l))) { for (unsigned i = 0; i < MAX_SHAPERS; i++) shaper[i] = 0; } ShaperManager::~ShaperManager() { } SmartPtr ShaperManager::create(const SmartPtr& logger) { return new ShaperManager(logger); } AreaRef ShaperManager::shapeAux(ShapingContext& context) const { while (!context.done()) { const unsigned index = context.getIndex(); if (SmartPtr shaper = getShaper(context.getShaperId())) shaper->shape(context); if (index == context.getIndex()) { // this is very severe, either no shaper was configured, or // a Shaper has declared it is able to handle a character // but it turned out that it has eaten no characters from // the context! This would make sense for example if there // were a sort of fallback mechanism and a given shaper // could "refuse" to process a character in some context, // but unfortunately there is not! errorShaper->shape(context); // the default shapper cannot fail assert(index != context.getIndex()); } } return context.area(); } AreaRef ShaperManager::shape(const FormattingContext& ctxt, const SmartPtr& elem, const SmartPtr& factory, const UCS4String& source) const { std::vector spec; spec.reserve(source.length()); for (unsigned i = 0; i < source.length(); i++) spec.push_back(map(source[i])); ShapingContext context(elem, factory, source, spec, ctxt.getSize(), ctxt.getVariant(), ctxt.getMathMode()); return shapeAux(context); } AreaRef ShaperManager::shapeStretchy(const FormattingContext& ctxt, const SmartPtr& elem, const SmartPtr& factory, const UCS4String& source, const scaled& vSpan, const scaled& hSpan) const { std::vector spec; spec.reserve(source.length()); for (unsigned i = 0; i < source.length(); i++) spec.push_back(mapStretchy(source[i])); ShapingContext context(elem, factory, source, spec, ctxt.getSize(), ctxt.getVariant(), ctxt.getMathMode(), vSpan, hSpan); return shapeAux(context); } unsigned ShaperManager::registerShaper(const SmartPtr& s) { assert(s); assert(nextShaperId < MAX_SHAPERS); unsigned shaperId = nextShaperId++; // if the shaper is not capable of handling every character we // cannot assign it the index 0, because this index is the default // for characters that have not been explicitly registered. // In the worst case the error shaper will be used as fallback. if (shaperId == 0 && !s->isDefaultShaper()) shaperId = nextShaperId++; shaper[shaperId] = s; s->registerShaper(this, shaperId); return shaperId; } void ShaperManager::unregisterShapers() { // WARNING: this code was in the destructor, but this results in a loop. // if we are in the destructor the ref counter of the shaper manager is 0 // Now, if we call unregisterShaper then the ref counter gets incremented // and then decremented (the parameter is a smart pointer) resulting in // another call to the destructor for (unsigned i = 0; i < nextShaperId; i++) if (shaper[i]) shaper[i]->unregisterShaper(this, i); } GlyphSpec ShaperManager::registerChar(Char32 ch, const GlyphSpec& spec) { assert(ch <= BIGGEST_CHAR); GlyphSpec oldSpec = glyphSpec[ch]; //printf("registering %x (old spec shaper id was %d new is %d)\n", ch, oldSpec.getShaperId(), spec.getShaperId()); glyphSpec.set(ch, spec); return oldSpec; } GlyphSpec ShaperManager::registerStretchyChar(Char32 ch, const GlyphSpec& spec) { assert(ch <= BIGGEST_CHAR); GlyphSpec oldSpec = glyphSpec[ch]; //printf("registering stretchy %x (old spec shaper id was %d new is %d)\n", ch, oldSpec.getShaperId(), spec.getShaperId()); glyphSpec.set(ch | STRETCHY_FLAG, spec); return oldSpec; } const GlyphSpec& ShaperManager::map(Char32 ch) const { assert(ch <= BIGGEST_CHAR); return glyphSpec[ch]; } const GlyphSpec& ShaperManager::mapStretchy(Char32 ch) const { assert(ch <= BIGGEST_CHAR); return glyphSpec[ch | STRETCHY_FLAG]; } SmartPtr ShaperManager::getShaper(unsigned si) const { return (si < nextShaperId) ? shaper[si] : 0; } AreaRef ShaperManager::compose(const FormattingContext& context, const AreaRef base, const UCS4String baseSource, const AreaRef script, const UCS4String scriptSource, bool overScript) { scaled dx = scaled::zero(); scaled dy = scaled::zero(); scaled dxUnder= scaled::zero(); const GlyphSpec& baseGlyphSpec = map(baseSource[0]); const GlyphSpec& scriptGlyphSpec = map(scriptSource[0]); //we control if the base char and the combining char are render //to the same Shaper if (baseGlyphSpec.getShaperId() == scriptGlyphSpec.getShaperId()) { if (overScript) shaper[baseGlyphSpec.getShaperId()]->computeCombiningCharOffsetsAbove(base, script, dx, dy); else shaper[baseGlyphSpec.getShaperId()]->computeCombiningCharOffsetsBelow(base, script, dxUnder); } //we define a default values of dx and dy else { dx = (base->box().width + script->box().width)/ 2; dy = base->box().height + script->box().depth; } const AreaRef over = overScript ? script : NULL; const AreaRef under = overScript ? NULL : script; return context.MGD()->getFactory()->combinedGlyph(base, over, under, dx, dy, dxUnder); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/GlyphArea.hh���������������������������������������������������0000644�0001750�0001750�00000002554�10661271104�016641� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __GlyphArea_hh__ #define __GlyphArea_hh__ #include "SimpleArea.hh" #include "BoundingBox.hh" class GMV_MathView_EXPORT GlyphArea : public SimpleArea { protected: GlyphArea(void) { } virtual ~GlyphArea(); public: virtual bool indexOfPosition(const scaled&, const scaled&, CharIndex&) const; virtual bool positionOfIndex(CharIndex, class Point*, BoundingBox*) const; virtual bool searchByIndex(AreaId&, CharIndex) const; virtual SmartPtr getGlyphArea(void) const; }; #endif // __GlyphArea_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/AreaFactory.cc�������������������������������������������������0000644�0001750�0001750�00000007310�10661271104�017146� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AreaFactory.hh" AreaRef AreaFactory::background(const AreaRef& base, const RGBColor& c) const { std::vector o; o.reserve(2); o.push_back(color(ink(base), c)); o.push_back(base); return overlapArray(o); } AreaRef AreaFactory::horizontalLine(const scaled& thickness, const RGBColor& c) const { const scaled halfThickness = thickness / 2; std::vector h; h.reserve(2); h.push_back(verticalSpace(halfThickness, thickness - halfThickness)); h.push_back(horizontalFiller()); return color(ink(horizontalArray(h)), c); } AreaRef AreaFactory::fixedHorizontalLine(const scaled& thickness, const scaled& length, const RGBColor& c) const { const scaled halfThickness = thickness / 2; std::vector h; h.reserve(2); h.push_back(verticalSpace(halfThickness, thickness - halfThickness)); h.push_back(horizontalSpace(length)); return color(ink(horizontalArray(h)), c); } AreaRef AreaFactory::verticalLine(const scaled& thickness, const RGBColor& c) const { std::vector v; v.reserve(3); v.push_back(verticalFiller()); v.push_back(horizontalSpace(thickness)); v.push_back(verticalFiller()); return color(ink(verticalArray(v, 1)), c); } AreaRef AreaFactory::fixedVerticalLine(const scaled& thickness, const scaled& height, const scaled& depth, const RGBColor& c) const { std::vector v; v.reserve(2); v.push_back(horizontalSpace(thickness)); v.push_back(verticalSpace(height, depth)); return color(ink(verticalArray(v, 1)), c); } AreaRef AreaFactory::center(const AreaRef& area) const { std::vector h; h.reserve(3); h.push_back(horizontalFiller()); h.push_back(area); h.push_back(horizontalFiller()); return horizontalArray(h); } AreaRef AreaFactory::left(const AreaRef& area) const { std::vector h; h.reserve(2); h.push_back(area); h.push_back(horizontalFiller()); return horizontalArray(h); } AreaRef AreaFactory::right(const AreaRef& area) const { std::vector h; h.reserve(2); h.push_back(horizontalFiller()); h.push_back(area); return horizontalArray(h); } AreaRef AreaFactory::middle(const AreaRef& area) const { BoundingBox areaBox = area->box(); std::vector v; v.reserve(3); v.push_back(horizontalSpace(0)); v.push_back(verticalFiller()); v.push_back(shift(area, (areaBox.depth - areaBox.depth) / 2)); v.push_back(verticalFiller()); return verticalArray(v, 0); } AreaRef AreaFactory::top(const AreaRef& area) const { std::vector v; v.reserve(2); v.push_back(verticalFiller()); v.push_back(area); return verticalArray(v, 0); } AreaRef AreaFactory::bottom(const AreaRef& area) const { std::vector v; v.reserve(2); v.push_back(area); v.push_back(verticalFiller()); return verticalArray(v, 1); } AreaRef AreaFactory::freeze(const AreaRef& area) const { return box(area, area->box()); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/OverlapArrayArea.hh��������������������������������������������0000644�0001750�0001750�00000003434�10661271104�020163� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __OverlapArrayArea_hh__ #define __OverlapArrayArea_hh__ #include "LinearContainerArea.hh" class GMV_MathView_EXPORT OverlapArrayArea : public LinearContainerArea { protected: OverlapArrayArea(const std::vector& children) : LinearContainerArea(children) { } virtual ~OverlapArrayArea() { } public: static SmartPtr create(const std::vector& children) { return new OverlapArrayArea(children); } virtual AreaRef clone(const std::vector&) const; virtual AreaRef flatten(void) const; virtual void strength(int&, int&, int&) const; virtual AreaRef fit(const scaled&, const scaled&, const scaled&) const; virtual BoundingBox box(void) const; virtual void origin(AreaIndex, class Point&) const; virtual bool searchByCoords(class AreaId&, const scaled&, const scaled&) const; private: static void flattenAux(std::vector&, const std::vector&); }; #endif // __OverlapArrayArea_hh__ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/SearchingContext.hh��������������������������������������������0000644�0001750�0001750�00000003473�10661271104�020236� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SearchingContext_hh__ #define __SearchingContext_hh__ #include "Area.hh" #include "Rectangle.hh" class GMV_MathView_EXPORT SearchingContext { public: SearchingContext(const scaled& x, const scaled& y) : x0(x), y0(y) { } ~SearchingContext() { } bool accept(const Rectangle& rect) const { return rect.isInside(x0, y0); } bool accept(const BoundingBox& box, const scaled& x, const scaled& y) const { return accept(Rectangle(x, y, box)); } bool accept(AreaRef area, const scaled& x, const scaled& y) const { return accept(area->box(), x, y); } scaled getX(void) const { return x0; } scaled getY(void) const { return y0; } struct Result { scaled x; scaled y; AreaRef area; }; void setResult(AreaRef area, const scaled& x, const scaled& y) { result.area = area; result.x = x; result.y = y; } Result getResult(void) const { return result; } protected: scaled x0; scaled y0; Result result; }; #endif // __SearchingContext_hh__ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/ShapingContext.hh����������������������������������������������0000644�0001750�0001750�00000005436�10661271104�017725� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __ShapingContext_hh__ #define __ShapingContext_hh__ #include #include "String.hh" #include "GlyphSpec.hh" #include "Area.hh" #include "MathVariant.hh" class GMV_MathView_EXPORT ShapingContext { public: ShapingContext(const SmartPtr&, const SmartPtr&, const UCS4String&, const std::vector&, const scaled&, MathVariant, bool, const scaled& = 0, const scaled& = 0); MathVariant getMathVariant(void) const { return mathVariant; } bool inMathMode(void) const { return mathMode; } SmartPtr getElement(void) const; SmartPtr getFactory(void) const; UCS4String getSource(void) const { return source; } bool done(void) const { return index == source.length(); } bool empty(void) const { return res.empty(); } scaled getSize(void) const { return size; } scaled getVSpan(void) const { return vSpan; } scaled getHSpan(void) const { return hSpan; } unsigned chunkSize(void) const; unsigned getShaperId(void) const; unsigned nAreas(void) const { return res.size(); } AreaRef popArea(CharIndex&); void pushArea(CharIndex, const AreaRef&); AreaRef getArea(int = -1) const; AreaRef area(void) const; unsigned getIndex(void) const { return index; } const Char32* data(void) const; const GlyphSpec& getSpec(int = 0) const; Char32 prevChar(void) const; Char32 thisChar(void) const; Char32 nextChar(void) const; UCS4String prevString(void) const; UCS4String prevString(UCS4String::size_type) const; UCS4String nextString(void) const; UCS4String nextString(UCS4String::size_type) const; private: SmartPtr element; SmartPtr factory; UCS4String source; std::vector spec; scaled size; MathVariant mathVariant; bool mathMode; scaled vSpan; scaled hSpan; UCS4String::size_type index; std::vector res_n; std::vector res; }; #endif // __ShapingContext_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/Backend.cc�����������������������������������������������������0000644�0001750�0001750�00000003654�10661271104�016304� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "Backend.hh" #include "ShaperManager.hh" #include "MathGraphicDevice.hh" #if GMV_ENABLE_BOXML #include "BoxGraphicDevice.hh" #endif // GMV_ENABLE_BOXML Backend::Backend(const SmartPtr& logger, const SmartPtr&) : shaperManager(ShaperManager::create(logger)) { } Backend::~Backend() { shaperManager->unregisterShapers(); } SmartPtr Backend::getShaperManager() const { return shaperManager; } void Backend::setMathGraphicDevice(const SmartPtr& mgd) { mathGraphicDevice = mgd; if (mathGraphicDevice) mathGraphicDevice->setShaperManager(shaperManager); } SmartPtr Backend::getMathGraphicDevice() const { return mathGraphicDevice; } #if GMV_ENABLE_BOXML void Backend::setBoxGraphicDevice(const SmartPtr& bgd) { boxGraphicDevice = bgd; if (boxGraphicDevice) boxGraphicDevice->setShaperManager(shaperManager); } SmartPtr Backend::getBoxGraphicDevice() const { return boxGraphicDevice; } #endif // GMV_ENABLE_BOXML ������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/t1lib_TFM_T1Font.cc��������������������������������������������0000644�0001750�0001750�00000003076�10661271104�017667� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "TFM.hh" #include "t1lib_TFM_T1Font.hh" t1lib_TFM_T1Font::t1lib_TFM_T1Font(int fid, const scaled& s, const SmartPtr& _tfm) : t1lib_T1Font(fid, s), tfm(_tfm) { assert(tfm); } t1lib_TFM_T1Font::~t1lib_TFM_T1Font() { } SmartPtr t1lib_TFM_T1Font::create(int fid, const scaled& s, const SmartPtr& _tfm) { return new t1lib_TFM_T1Font(fid, s, _tfm); } SmartPtr t1lib_TFM_T1Font::getTFM() const { return tfm; } BoundingBox t1lib_TFM_T1Font::getGlyphBoundingBox(Char8 index) const { const float scale = tfm->getScale(getSize()); BoundingBox box = tfm->getGlyphBoundingBox(index); box.width *= scale; box.height *= scale; box.depth *= scale; return box; } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/StandardSymbolsShaper.hh���������������������������������������0000644�0001750�0001750�00000004166�10661271104�021242� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __StandardSymbolsShaper_hh__ #define __StandardSymbolsShaper_hh__ #include "HashMap.hh" #include "Shaper.hh" class GMV_MathView_EXPORT StandardSymbolsShaper : public Shaper { public: virtual void registerShaper(const SmartPtr&, unsigned); virtual void unregisterShaper(const SmartPtr&, unsigned); virtual void shape(class ShapingContext&) const; struct HStretchyChar { Char16 ch; Char8 normal; Char8 left; Char8 glue; Char8 right; }; struct VStretchyChar { Char16 ch; Char8 normal; Char8 top; Char8 glue; Char8 middle; Char8 bottom; }; protected: virtual void registerChar(const SmartPtr&, unsigned, Char16, Char8); virtual void registerStretchyCharH(const SmartPtr&, unsigned, const HStretchyChar&, Char8); virtual void registerStretchyCharV(const SmartPtr&, unsigned, const VStretchyChar&, Char8); virtual AreaRef getGlyphArea(const SmartPtr&, Char8, const scaled&) const = 0; AreaRef shapeChar(const class ShapingContext&) const; AreaRef shapeStretchyCharV(const class ShapingContext&) const; AreaRef shapeStretchyCharH(const class ShapingContext&) const; }; #endif // __StandardSymbolsShaper_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/FormattingContext.hh�������������������������������������������0000644�0001750�0001750�00000013052�10661271104�020437� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __FormattingContext_hh__ #define __FormattingContext_hh__ #include "scaled.hh" #include "Variant.hh" #include "RGBColor.hh" #include "Length.hh" // full path needed for Win32 #include "../../common/mathvariants/MathVariant.hh" #include "FastScopedHashMap.hh" class GMV_MathView_EXPORT FormattingContext { public: #if GMV_ENABLE_BOXML FormattingContext(const SmartPtr&, const SmartPtr&); #else FormattingContext(const SmartPtr&); #endif ~FormattingContext(); enum PropertyId { MATH_MODE, SIZE, ACTUAL_SIZE, VARIANT, COLOR, BACKGROUND_COLOR, SCRIPT_LEVEL, MIN_SIZE, DISPLAY_STYLE, SIZE_MULT, MATHML_ELEMENT, #if GMV_ENABLE_BOXML BOXML_ELEMENT, #endif AVAILABLE_WIDTH, STRETCH_OP, STRETCH_TO_WIDTH, STRETCH_TO_HEIGHT, STRETCH_TO_DEPTH, STRETCH_HORIZ, STRETCH_VERT, NEGATIVE_VERYVERYTHICK_SPACE, NEGATIVE_VERYTHICK_SPACE, NEGATIVE_THICK_SPACE, NEGATIVE_MEDIUM_SPACE, NEGATIVE_THIN_SPACE, NEGATIVE_VERYTHIN_SPACE, NEGATIVE_VERYVERYTHIN_SPACE, ZERO_SPACE, VERYVERYTHIN_SPACE, VERYTHIN_SPACE, THIN_SPACE, MEDIUM_SPACE, THICK_SPACE, VERYTHICK_SPACE, VERYVERYTHICK_SPACE, LAST_NAMED_PROPERTY_ENTRY }; bool getMathMode(void) const { return get(MATH_MODE); } void setMathMode(bool m) { set(MATH_MODE, m); } scaled getSize(void) const { return get(SIZE); } void setSize(const scaled& s) { set(SIZE, s); } scaled getActualSize(void) const { return get(ACTUAL_SIZE); } void setActualSize(const scaled& s) { set(ACTUAL_SIZE, s); } MathVariant getVariant(void) const { return get(VARIANT); } void setVariant(MathVariant v) { set(VARIANT, v); } RGBColor getColor(void) const { return get(COLOR); } void setColor(const RGBColor& c) { set(COLOR, c); } RGBColor getBackground(void) const { return get(BACKGROUND_COLOR); } void setBackground(const RGBColor& c) { set(BACKGROUND_COLOR, c); } int getScriptLevel(void) const { return get(SCRIPT_LEVEL); } void setScriptLevel(int l) { addScriptLevel(l - getScriptLevel()); } void addScriptLevel(int); scaled getMinSize(void) const { return get(MIN_SIZE); } void setMinSize(scaled s) { set(MIN_SIZE, s); } bool getDisplayStyle(void) const { return get(DISPLAY_STYLE); } void setDisplayStyle(bool b) { set(DISPLAY_STYLE, b); } double getSizeMultiplier(void) const { return get(SIZE_MULT); } void setSizeMultiplier(double f) { set(SIZE_MULT, f); } Length getMathSpace(int i) const { return get(i); } void setMathSpace(int i, const Length& l) { set(i, l); } scaled getAvailableWidth(void) const { return get(AVAILABLE_WIDTH); } void setAvailableWidth(const scaled& w) { set(AVAILABLE_WIDTH, w); } SmartPtr getStretchOperator(void) const; void setStretchOperator(const SmartPtr&); scaled getStretchToWidth(void) const { return get(STRETCH_TO_WIDTH); } void setStretchToWidth(const scaled& w) { set(STRETCH_TO_WIDTH, w); } scaled getStretchToHeight(void) const { return get(STRETCH_TO_HEIGHT); } void setStretchToHeight(const scaled& h) { set(STRETCH_TO_HEIGHT, h); } scaled getStretchToDepth(void) const { return get(STRETCH_TO_DEPTH); } void setStretchToDepth(const scaled& d) { set(STRETCH_TO_DEPTH, d); } scaled getStretchH(void) const { return get(STRETCH_HORIZ); } void setStretchH(const scaled& h) { set(STRETCH_HORIZ, h); } scaled getStretchV(void) const { return get(STRETCH_VERT); } void setStretchV(const scaled& v) { set(STRETCH_VERT, v); } void push(const SmartPtr&); SmartPtr getMathMLElement(void) const; SmartPtr MGD(void) const; #if GMV_ENABLE_BOXML void push(const SmartPtr&); SmartPtr getBoxMLElement(void) const; SmartPtr BGD(void) const; #endif // GMV_ENABLE_BOXML protected: template void set(int id, const T& v) { map.set(id, Variant::create(v)); } template T get(int id) const { return as(map.get(id)); } public: void push(void) { map.push(); } void pop() { map.pop(); } private: SmartPtr mathGraphicDevice; #if GMV_ENABLE_BOXML SmartPtr boxGraphicDevice; #endif // GMV_ENABLE_BOXML FastScopedHashMap > map; }; #endif // __FormattingContext_hh__ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/BoxArea.hh�����������������������������������������������������0000644�0001750�0001750�00000003072�10661271104�016302� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxArea_hh__ #define __BoxArea_hh__ #include "BinContainerArea.hh" class GMV_MathView_EXPORT BoxArea : public BinContainerArea { protected: BoxArea(const AreaRef&, const BoundingBox&); virtual ~BoxArea() { } public: static SmartPtr create(const AreaRef& area, const BoundingBox& b) { return new BoxArea(area, b); } virtual AreaRef clone(const AreaRef& area) const { return create(area, bbox); } virtual BoundingBox box(void) const { return bbox; } virtual AreaRef fit(const scaled&, const scaled&, const scaled&) const; virtual void strength(int&, int&, int&) const; virtual bool searchByCoords(class AreaId&, const scaled&, const scaled&) const; private: BoundingBox bbox; }; #endif // __BoxArea_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/SpaceShaper.hh�������������������������������������������������0000644�0001750�0001750�00000002774�10661271104�017167� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SpaceShaper_hh__ #define __SpaceShaper_hh__ #include "Shaper.hh" class GMV_MathView_EXPORT SpaceShaper : public Shaper { protected: SpaceShaper(void) { } virtual ~SpaceShaper() { } public: static SmartPtr create(void) { return new SpaceShaper(); } virtual void registerShaper(const SmartPtr&, unsigned); virtual void unregisterShaper(const SmartPtr&, unsigned); virtual void shape(class ShapingContext&) const; protected: static void shapeFixedSpace(class ShapingContext&, const class GlyphSpec&); static void pushSpace(class ShapingContext&, int, unsigned = 1); }; #endif // __SpaceShaper_hh__ ����gtkmathview-0.8.0/src/backend/common/HorizontalSpaceArea.cc�����������������������������������������0000644�0001750�0001750�00000002273�10661271104�020647� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "HorizontalSpaceArea.hh" HorizontalSpaceArea::~HorizontalSpaceArea() { } BoundingBox HorizontalSpaceArea::box() const { return BoundingBox(width, scaled::min(), scaled::min()); } scaled HorizontalSpaceArea::leftEdge() const { return scaled::min(); } scaled HorizontalSpaceArea::rightEdge() const { return scaled::min(); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/NullShaper.cc��������������������������������������������������0000644�0001750�0001750�00000004102�10661271104�017017� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AreaFactory.hh" #include "ShapingContext.hh" #include "ShaperManager.hh" #include "NullShaper.hh" #include "AbstractLogger.hh" NullShaper::NullShaper(const SmartPtr& l) : logger(l) { } NullShaper::~NullShaper() { } SmartPtr NullShaper::create(const SmartPtr& l) { return new NullShaper(l); } void NullShaper::registerShaper(const SmartPtr& sm, unsigned) { assert(sm); } void NullShaper::unregisterShaper(const SmartPtr&, unsigned) { } void NullShaper::shape(ShapingContext& context) const { assert(!context.done()); logger->out(LOG_WARNING, "shaping U+%04X as a red box", context.thisChar()); SmartPtr factory = context.getFactory(); std::vector c; c.reserve(2); const scaled hSpan = (context.getHSpan() != scaled::zero()) ? context.getHSpan() : context.getSize(); const scaled vSpan = (context.getVSpan() != scaled::zero()) ? context.getVSpan() : context.getSize(); c.push_back(factory->horizontalSpace(hSpan)); c.push_back(factory->verticalSpace(vSpan, 0)); context.pushArea(1, factory->background(factory->horizontalArray(c), RGBColor::RED())); } bool NullShaper::isDefaultShaper() const { return true; } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/t1lib_TFM_T1FontManager.hh�������������������������������������0000644�0001750�0001750�00000003132�10661271104�021165� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __t1lib_TFM_T1FontManager_hh__ #define __t1lib_TFM_T1FontManager_hh__ #include "t1lib_T1FontManager.hh" class GMV_MathView_EXPORT t1lib_TFM_T1FontManager : public t1lib_T1FontManager { protected: t1lib_TFM_T1FontManager(const SmartPtr&, const SmartPtr&, const SmartPtr&); virtual ~t1lib_TFM_T1FontManager(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&, const SmartPtr&); protected: virtual SmartPtr createT1Font(const String&, const scaled&) const; private: SmartPtr tfmManager; }; #endif // __t1lib_TFM_T1FontManager_hh__ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/ShiftArea.cc���������������������������������������������������0000644�0001750�0001750�00000003140�10661271104�016611� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "ShiftArea.hh" #include "AreaId.hh" #include "Point.hh" void ShiftArea::render(class RenderingContext& context, const scaled& x, const scaled& y) const { getChild()->render(context, x, y + shift); } BoundingBox ShiftArea::box() const { BoundingBox childBox = getChild()->box(); return childBox.defined() ? BoundingBox(childBox.width, childBox.height + shift, childBox.depth - shift) : childBox; } bool ShiftArea::searchByCoords(AreaId& id, const scaled& x, const scaled& y) const { id.append(0, getChild(), scaled::zero(), shift); if (getChild()->searchByCoords(id, x, y - shift)) return true; // ????? id.pop_back(); return false; } void ShiftArea::origin(AreaIndex i, Point& p) const { assert(i == 0); p.y += shift; } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/RenderingContext.hh��������������������������������������������0000644�0001750�0001750�00000002105�10661271104�020237� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __RenderingContext_hh__ #define __RenderingContext_hh__ #include "gmv_defines.h" class GMV_MathView_EXPORT RenderingContext { public: RenderingContext(void) { } virtual ~RenderingContext() { } }; #endif // __RenderingContext_hh__ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/t1lib_T1Font.hh������������������������������������������������0000644�0001750�0001750�00000003045�10661271104�017167� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __t1lib_T1Font_hh__ #define __t1lib_T1Font_hh__ #include "String.hh" #include "T1Font.hh" #include "SmartPtr.hh" #include "BoundingBox.hh" class GMV_MathView_EXPORT t1lib_T1Font : public T1Font { protected: t1lib_T1Font(int fid, const scaled& s) : T1Font(s), fontId(fid) { } virtual ~t1lib_T1Font(); public: static SmartPtr create(int fid, const scaled& s) { return new t1lib_T1Font(fid, s); } int getFontId(void) const { return fontId; } String getFontFileName(void) const; virtual scaled getGlyphLeftEdge(Char8) const; virtual scaled getGlyphRightEdge(Char8) const; virtual BoundingBox getGlyphBoundingBox(Char8) const; private: int fontId; }; #endif // __t1lib_T1Font_hh__ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/BinContainerArea.hh��������������������������������������������0000644�0001750�0001750�00000004656�10661271104�020136� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BinContainerArea_hh__ #define __BinContainerArea_hh__ #include "ContainerArea.hh" class GMV_MathView_EXPORT BinContainerArea : public ContainerArea { protected: BinContainerArea(const AreaRef& area) : child(area) { } virtual ~BinContainerArea() { } public: virtual AreaRef clone(const AreaRef&) const = 0; virtual BoundingBox box(void) const; virtual void render(class RenderingContext& context, const scaled& x, const scaled& y) const; virtual AreaRef fit(const scaled&, const scaled&, const scaled&) const; virtual scaled leftEdge(void) const; virtual scaled rightEdge(void) const; virtual void strength(int&, int&, int&) const; virtual AreaIndex size(void) const { return 1; } virtual AreaRef node(AreaIndex) const; virtual void origin(AreaIndex, class Point&) const; virtual AreaRef replace(AreaIndex, const AreaRef&) const; virtual CharIndex length(void) const; virtual CharIndex lengthTo(AreaIndex) const; virtual bool indexOfPosition(const scaled&, const scaled&, CharIndex&) const; virtual bool positionOfIndex(CharIndex, class Point*, BoundingBox*) const; virtual scaled getStep(void) const; virtual bool searchByArea(class AreaId&, const AreaRef&) const; virtual bool searchByCoords(class AreaId&, const scaled&, const scaled&) const; virtual bool searchByIndex(class AreaId&, CharIndex) const; virtual SmartPtr getGlyphStringArea(void) const; virtual SmartPtr getGlyphArea(void) const; AreaRef getChild(void) const { return child; } private: AreaRef child; }; #endif // __BinContainerArea_hh__ ����������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/NullShaper.hh��������������������������������������������������0000644�0001750�0001750�00000002724�10661271104�017041� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __NullShaper_hh__ #define __NullShaper_hh__ #include "Shaper.hh" class GMV_MathView_EXPORT NullShaper : public Shaper { protected: NullShaper(const SmartPtr&); virtual ~NullShaper(); public: static SmartPtr create(const SmartPtr&); virtual void registerShaper(const SmartPtr&, unsigned); virtual void unregisterShaper(const SmartPtr&, unsigned); virtual void shape(class ShapingContext&) const; virtual bool isDefaultShaper(void) const; private: SmartPtr logger; }; #endif // __NullShaper_hh__ ��������������������������������������������gtkmathview-0.8.0/src/backend/common/TFMFont.cc�����������������������������������������������������0000644�0001750�0001750�00000003202�10661271104�016217� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "TFM.hh" #include "TFMFont.hh" TFMFont::TFMFont(const SmartPtr& _tfm, const scaled& s) : T1Font(s), tfm(_tfm) { assert(tfm); } TFMFont::~TFMFont() { } SmartPtr TFMFont::create(const SmartPtr& _tfm, const scaled& s) { return new TFMFont(_tfm, s); } SmartPtr TFMFont::getTFM() const { return tfm; } scaled TFMFont::getGlyphLeftEdge(Char8) const { return 0; } scaled TFMFont::getGlyphRightEdge(Char8 index) const { return tfm->getGlyphBoundingBox(index).width * tfm->getScale(getSize()); } BoundingBox TFMFont::getGlyphBoundingBox(Char8 index) const { const float scale = tfm->getScale(getSize()); BoundingBox box = tfm->getGlyphBoundingBox(index); box.width *= scale; box.height *= scale; box.depth *= scale; return box; } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/GraphicDevice.hh�����������������������������������������������0000644�0001750�0001750�00000003776�10661271104�017471� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __GraphicDevice_hh__ #define __GraphicDevice_hh__ #include "Object.hh" #include "Length.hh" #include "scaled.hh" #include "AreaFactory.hh" class GMV_MathView_EXPORT GraphicDevice : public Object { protected: GraphicDevice(const SmartPtr&); virtual ~GraphicDevice(); public: SmartPtr getLogger(void) const; virtual void setFactory(const SmartPtr&); SmartPtr getFactory(void) const { return factory; } virtual void setShaperManager(const SmartPtr&); SmartPtr getShaperManager(void) const; // Length evaluation, fundamental properties virtual double dpi(const class FormattingContext&) const; virtual scaled evaluate(const class FormattingContext&, const Length&, const scaled&) const; virtual scaled em(const class FormattingContext&) const; virtual scaled ex(const class FormattingContext&) const = 0; virtual scaled defaultLineThickness(const class FormattingContext&) const; protected: SmartPtr shaperManager; private: SmartPtr logger; SmartPtr factory; }; #endif // __GraphicDevice_hh__ ��gtkmathview-0.8.0/src/backend/common/LinearContainerArea.cc�����������������������������������������0000644�0001750�0001750�00000010465�10704610363�020623� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "AreaId.hh" #include "LinearContainerArea.hh" #include "GlyphStringArea.hh" #include "GlyphArea.hh" void LinearContainerArea::render(class RenderingContext& context, const scaled& x, const scaled& y) const { for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) (*p)->render(context, x, y); } bool LinearContainerArea::searchByArea(AreaId& id, const AreaRef& area) const { if (this == area) return true; else { for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { id.append(p - content.begin(), *p); if ((*p)->searchByArea(id, area)) return true; id.pop_back(); } return false; } } bool LinearContainerArea::searchByIndex(AreaId& id, CharIndex index) const { for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { id.append(p - content.begin(), *p); if ((*p)->searchByIndex(id, index)) return true; id.pop_back(); index -= (*p)->length(); } return false; } #if 0 AreaRef LinearContainerArea::replace(const ReplacementContext& context) const { if (AreaRef newArea = context.get()) return newArea; else { std::vector newContent; newContent.reserve(content.size()); for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { ReplacementContext newContext(context, p - content.begin()); newContent.push_back(content[p - content.begin()]->replace(newContext)); } if (content == newContent) return this; else { SmartPtr thisCloned = this->clone(); SmartPtr newArea = smart_cast(thisCloned); assert(newArea); newArea->content = newContent; return newArea; } } } #endif scaled LinearContainerArea::leftEdge(void) const { scaled edge = scaled::max(); for (std::vector< AreaRef >::const_iterator p = content.begin(); p != content.end(); p++) edge = std::min(edge, (*p)->leftEdge()); return edge; } scaled LinearContainerArea::rightEdge(void) const { scaled edge = scaled::min(); for (std::vector< AreaRef >::const_iterator p = content.begin(); p != content.end(); p++) edge = std::max(edge, (*p)->rightEdge()); return edge; } AreaRef LinearContainerArea::node(AreaIndex i) const { assert(i >= 0 && i < content.size()); return content[i]; } CharIndex LinearContainerArea::lengthTo(AreaIndex i) const { assert(i >= 0 && i < content.size()); CharIndex length = 0; for (std::vector::const_iterator p = content.begin(); p != content.begin() + i; p++) length += (*p)->length(); return length; } SmartPtr LinearContainerArea::getGlyphStringArea() const { SmartPtr ptr = NULL; for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { if (!ptr && (((*p)->getGlyphStringArea()))) ptr = (*p)->getGlyphStringArea(); else if (ptr && (((*p)->getGlyphStringArea()))) { ptr = NULL; return ptr; } } return ptr; } SmartPtr LinearContainerArea::getGlyphArea() const { SmartPtr ptr = NULL; for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { if (!ptr && (((*p)->getGlyphArea()))) ptr = (*p)->getGlyphArea(); else if (ptr && (((*p)->getGlyphArea()))) { ptr = NULL; return ptr; } } return ptr; } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/WrapperArea.cc�������������������������������������������������0000644�0001750�0001750�00000002234�10661271104�017157� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "WrapperArea.hh" #include "Element.hh" WrapperArea::WrapperArea(const AreaRef& area, const BoundingBox& b, const SmartPtr& el) : BoxArea(area, b), element(el) { } WrapperArea::~WrapperArea() { } SmartPtr WrapperArea::getElement() const { return static_cast(element); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/VerticalSpaceArea.cc�������������������������������������������0000644�0001750�0001750�00000002173�10661271104�020266� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "VerticalSpaceArea.hh" BoundingBox VerticalSpaceArea::box() const { return BoundingBox(scaled::zero(), height, depth); } scaled VerticalSpaceArea::leftEdge() const { return scaled::max(); } scaled VerticalSpaceArea::rightEdge() const { return scaled::min(); } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/TFMFontManager.hh����������������������������������������������0000644�0001750�0001750�00000004175�10661271104�017536� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TFMFontManager_hh__ #define __TFMFontManager_hh__ #include "Object.hh" #include "String.hh" #include "StringHash.hh" #include "HashMap.hh" #include "SmartPtr.hh" #include "scaled.hh" class GMV_MathView_EXPORT TFMFontManager : public Object { protected: TFMFontManager(const SmartPtr&); virtual ~TFMFontManager(); public: static SmartPtr create(const SmartPtr&); SmartPtr getFont(const SmartPtr&, const scaled&) const; SmartPtr getFont(const String&, const scaled&) const; protected: virtual SmartPtr createFont(const SmartPtr&, const scaled&) const; private: struct CachedFontKey { CachedFontKey(const String& n, const scaled& sz) : name(n), size(sz) { } bool operator==(const CachedFontKey& key) const { return name == key.name && size == key.size; } String name; scaled size; }; struct CachedFontHash { size_t operator()(const CachedFontKey& key) const { return StringHash()(key.name) ^ key.size.getValue(); } }; typedef HASH_MAP_NS::hash_map,CachedFontHash> FontCache; mutable FontCache fontCache; SmartPtr tfmManager; }; #endif // __TFMFontManager_hh__ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/BoxedLayoutArea.hh���������������������������������������������0000644�0001750�0001750�00000005070�10661271104�020011� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxedLayoutArea_hh__ #define __BoxedLayoutArea_hh__ #include #include "ContainerArea.hh" class GMV_MathView_EXPORT BoxedLayoutArea : public ContainerArea { public: struct XYArea { XYArea(const scaled& dx0, const scaled& dy0, const AreaRef& area0) : dx(dx0), dy(dy0), area(area0) { } bool operator==(const XYArea& o) const { return dx == o.dx && dy == o.dy && area == o.area; } scaled dx; scaled dy; AreaRef area; }; protected: BoxedLayoutArea(const BoundingBox& b, const std::vector& c) : bbox(b), content(c) { } virtual ~BoxedLayoutArea() { } public: static SmartPtr create(const BoundingBox& b, const std::vector& c) { return new BoxedLayoutArea(b, c); } virtual AreaRef clone(const std::vector& c) const { return create(bbox, c); } virtual BoundingBox box(void) const { return bbox; } virtual void strength(int&, int&, int&) const; virtual AreaRef fit(const scaled&, const scaled&, const scaled&) const; virtual void render(class RenderingContext&, const scaled&, const scaled&) const; virtual scaled leftEdge(void) const; virtual scaled rightEdge(void) const; virtual AreaIndex size(void) const { return content.size(); } virtual AreaRef node(AreaIndex) const; virtual void origin(AreaIndex, class Point&) const; virtual CharIndex lengthTo(AreaIndex) const; //virtual AreaRef replace(unsigned, const AreaRef&) const; virtual bool searchByArea(class AreaId&, const AreaRef&) const; virtual bool searchByCoords(class AreaId&, const scaled&, const scaled&) const; virtual bool searchByIndex(class AreaId&, CharIndex) const; protected: BoundingBox bbox; std::vector content; }; #endif // __BoxedLayoutArea_hh__ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/IgnoreArea.hh��������������������������������������������������0000644�0001750�0001750�00000002623�10661271104�016776� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __IgnoreArea_hh__ #define __IgnoreArea_hh__ #include "BinContainerArea.hh" class GMV_MathView_EXPORT IgnoreArea : public BinContainerArea { protected: IgnoreArea(const AreaRef& area) : BinContainerArea(area) { } virtual ~IgnoreArea() { } public: static SmartPtr create(const AreaRef& area) { return new IgnoreArea(area); } virtual AreaRef clone(const AreaRef& area) const { return create(area); } virtual BoundingBox box(void) const; virtual scaled leftEdge(void) const; virtual scaled rightEdge(void) const; }; #endif // __IgnoreArea_hh__ �������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/Backend.hh�����������������������������������������������������0000644�0001750�0001750�00000003353�10661271104�016312� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Backend_hh__ #define __Backend_hh__ #include "Object.hh" #include "SmartPtr.hh" class GMV_MathView_EXPORT Backend : public Object { protected: Backend(const SmartPtr&, const SmartPtr&); virtual ~Backend(); public: SmartPtr getShaperManager(void) const; void setMathGraphicDevice(const SmartPtr&); virtual SmartPtr getMathGraphicDevice(void) const; #if GMV_ENABLE_BOXML void setBoxGraphicDevice(const SmartPtr&); virtual SmartPtr getBoxGraphicDevice(void) const; #endif // GMV_ENABLE_BOXML private: SmartPtr shaperManager; SmartPtr mathGraphicDevice; #if GMV_ENABLE_BOXML SmartPtr boxGraphicDevice; #endif // GMV_ENABLE_BOXML }; #endif // __Backend_hh__ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/InkArea.cc�����������������������������������������������������0000644�0001750�0001750�00000001707�10661271104�016264� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "InkArea.hh" AreaRef InkArea::clone(const AreaRef& area) const { return create(area); } ���������������������������������������������������������gtkmathview-0.8.0/src/backend/common/HorizontalFillerArea.cc����������������������������������������0000644�0001750�0001750�00000003052�10661271104�021025� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "HorizontalFillerArea.hh" #include "HorizontalSpaceArea.hh" SmartPtr HorizontalFillerArea::create() { return new HorizontalFillerArea(); } BoundingBox HorizontalFillerArea::box() const { return BoundingBox(); } AreaRef HorizontalFillerArea::fit(const scaled& width, const scaled&, const scaled&) const { //std::cout << "filler becoming space of " << width.toInt() << std::endl; return HorizontalSpaceArea::create(width); } void HorizontalFillerArea::strength(int& w, int& h, int& d) const { w = 1; h = d = 0; } scaled HorizontalFillerArea::leftEdge() const { return scaled::min(); } scaled HorizontalFillerArea::rightEdge() const { return scaled::min(); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/T1Font.hh������������������������������������������������������0000644�0001750�0001750�00000002644�10661271104�016100� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __T1Font_hh__ #define __T1Font_hh__ #include "Char.hh" #include "Object.hh" #include "SmartPtr.hh" #include "BoundingBox.hh" class GMV_MathView_EXPORT T1Font : public Object { protected: T1Font(const scaled& s) : size(s) { } virtual ~T1Font() { } public: virtual scaled getGlyphLeftEdge(Char8) const = 0; virtual scaled getGlyphRightEdge(Char8) const = 0; virtual BoundingBox getGlyphBoundingBox(Char8) const = 0; scaled getSize(void) const { return size; } float getScale(void) const { return getSize().toFloat(); } private: scaled size; }; #endif // __T1Font_hh__ ��������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/TFMComputerModernShaper.cc�������������������������������������0000644�0001750�0001750�00000020503�10704610363�021424� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "ShapingContext.hh" #include "TFM.hh" #include "TFMFont.hh" #include "TFMFontManager.hh" #include "TFMComputerModernShaper.hh" #include "AreaFactory.hh" #include "GlyphArea.hh" TFMComputerModernShaper::TFMComputerModernShaper(const SmartPtr& l, const SmartPtr& conf) : ComputerModernShaper(l, conf) { } TFMComputerModernShaper::~TFMComputerModernShaper() { } void TFMComputerModernShaper::setFontManager(const SmartPtr& fm) { assert(fm); tfmFontManager = fm; } SmartPtr TFMComputerModernShaper::getFontManager() const { return tfmFontManager; } ComputerModernFamily::FontNameId TFMComputerModernShaper::fontNameIdOfTFM(const SmartPtr& tfm) { assert(tfm); static const char* name[] = { "CMR", "CMB", "CMBX", "CMBXTI", "CMTI", "CMSS", "CMSSI", "CMSSBX", "CMTT", "CMSY", "CMBSY", "CMMI", "CMMIB", "CMEX", "MSAM", "MSBM" }; assert(sizeof(name) / sizeof(const char*) == ComputerModernFamily::FN_NOT_VALID); const String familyName = tfm->getFamily(); for (int i = 0; i < sizeof(name) / sizeof(const char*); i++) if (familyName == name[i]) return ComputerModernFamily::FontNameId(i); return ComputerModernFamily::FN_NIL; } void TFMComputerModernShaper::postShape(ShapingContext& context) const { if (context.nAreas() > 1) { UChar8 index1; UChar8 index2; SmartPtr font1; SmartPtr font2; if (getGlyphData(context.getArea(-2), font1, index1) && getGlyphData(context.getArea(-1), font2, index2)) { if (font1 == font2) { const SmartPtr tfm = font1->getTFM(); UChar8 newGlyph; UChar8 ligatureMode; scaled kerning; if (tfm->getGlyphLigature(index1, index2, newGlyph, ligatureMode)) { CharIndex n1; CharIndex n2; const AreaRef a2 = context.popArea(n2); const AreaRef a1 = context.popArea(n1); switch (ligatureMode) { default: { AreaRef newArea = getGlyphArea(fontNameIdOfTFM(tfm), ComputerModernFamily::fontSizeIdOfSize(tfm->getDesignSize().toInt()), newGlyph, font1->getSize().toInt()); context.pushArea(n1 + n2, newArea); } } } else if (tfm->getGlyphKerning(index1, index2, kerning)) { CharIndex n2; const AreaRef a2 = context.popArea(n2); context.pushArea(0, context.getFactory()->horizontalSpace(kerning * font1->getScale())); context.pushArea(n2, a2); } } } } } SmartPtr TFMComputerModernShaper::getFont(ComputerModernFamily::FontNameId fontNameId, ComputerModernFamily::FontSizeId designSize, const scaled& size) const { assert(tfmFontManager); return tfmFontManager->getFont(ComputerModernFamily::nameOfFont(fontNameId, designSize), size); } bool TFMComputerModernShaper::computeCombiningCharOffsetsAbove(const AreaRef& base, const AreaRef& script, scaled& dx, scaled& dy) const { AreaRef baseArea = base->getGlyphArea(); AreaRef scriptArea = script->getGlyphArea(); UChar8 accentIndex; UChar8 baseIndex; SmartPtr font; SmartPtr accentFont; SmartPtr baseFont; bool res; if (baseArea && scriptArea) { //we define a correct value of dx dx = (base->box().width - script->box().width) / 2; if (!getGlyphData(baseArea, baseFont, baseIndex)) return false; const bool accentData = getGlyphData(scriptArea, accentFont, accentIndex); scaled x_height; SmartPtr accentTFM; ComputerModernFamily::FontNameId accentNameId; if (accentData) { //we find a TFM accent font. The size //is very important to find a correct x_height, //that is the height that will use to //estimate the dy accentTFM = accentFont->getTFM(); accentNameId = fontNameIdOfTFM(accentTFM); ComputerModernFamily::FontSizeId designAccentSize; scaled accentSize = accentFont->getSize(); family->findFont(NORMAL_VARIANT, ComputerModernFamily::encIdOfFontNameId(accentNameId), accentSize, designAccentSize); SmartPtr exTFMFont = getFont(accentNameId, //ComputerModernFamily::FN_CMR, designAccentSize, accentFont->getSize()); const unsigned index = 5; //position of x-height const SmartPtr exTFM = exTFMFont->getTFM(); x_height = exTFM->getDimension(index) * accentFont->getScale(); } const SmartPtr baseTFM = baseFont->getTFM(); const ComputerModernFamily::FontNameId baseNameId = fontNameIdOfTFM(baseTFM); bool math = false; //we control if we have in the math mode //or in the text mode. The base font //affect the mode. switch (baseNameId) { //these are all the TeX text fonts case ComputerModernFamily::FN_CMR: case ComputerModernFamily::FN_CMB: case ComputerModernFamily::FN_CMBX: case ComputerModernFamily::FN_CMBXTI: case ComputerModernFamily::FN_CMTI: case ComputerModernFamily::FN_CMSS: case ComputerModernFamily::FN_CMSSI: case ComputerModernFamily::FN_CMSSBX: case ComputerModernFamily::FN_CMTT: math = false; break; //these are all the TeX math fonts case ComputerModernFamily::FN_CMSY: case ComputerModernFamily::FN_CMBSY: case ComputerModernFamily::FN_CMMI: case ComputerModernFamily::FN_CMMIB: case ComputerModernFamily::FN_CMEX: case ComputerModernFamily::FN_MSAM: case ComputerModernFamily::FN_MSBM: math = true; break; default: assert(false); /* IMPOSSIBLE */ } //in the math mode we estimate the dy //as indicated in the Appendix G of the TeXBook if (math) { if (accentData) dy = base->box().height - (std::min(base->box().height, x_height)); else { /* TODO */ } const ComputerModernFamily::FontEncId fontEncId = ComputerModernFamily::encIdOfFontNameId(baseNameId); //the skewchar is estimate only if the base char //belong to a family 1 or family 2 and if the //accent char not belong to a italic fonts if ((fontEncId == ComputerModernFamily::FE_CMMI || //family 1 (math italic font) fontEncId == ComputerModernFamily::FE_CMSY) && //family 2 (math symbol font) !(accentNameId == ComputerModernFamily::FN_CMBXTI || accentNameId == ComputerModernFamily::FN_CMTI || accentNameId == ComputerModernFamily::FN_CMMI || accentNameId == ComputerModernFamily::FN_CMSSI)) { const Char8 skewChar = (fontEncId == ComputerModernFamily::FE_CMMI) ? 0177 : 0060; scaled kerning; if (baseTFM->getGlyphKerning(baseIndex, skewChar, kerning)) { kerning *= baseFont->getScale(); //the kerning must be scaled to a font scale dx += kerning; } } } //if we are in the text mode we use define dx and //dy like the Tex primitive (accent) estimate dx and dy else { if (accentData) { const unsigned int slantIndex = 1; // position of slant const scaled baseSlant = baseFont->getTFM()->getDimension(slantIndex); const scaled accentSlant = accentTFM->getDimension(slantIndex); dx = dx + base->box().height * baseSlant - x_height * accentSlant; dy = base->box().height - x_height; } else { /* TODO */ } } res = true; } //we return to a defalt estimate of dx and dy else res = Shaper::computeCombiningCharOffsetsAbove(base, script, dx, dy); return res; } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/SimpleArea.hh��������������������������������������������������0000644�0001750�0001750�00000003273�10661271104�017006� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SimpleArea_hh__ #define __SimpleArea_hh__ #include "Area.hh" class GMV_MathView_EXPORT SimpleArea : public Area { protected: SimpleArea(void) { } virtual ~SimpleArea() { } public: virtual AreaRef fit(const scaled&, const scaled&, const scaled&) const; //virtual AreaRef replace(const class ReplacementContext&) const; virtual void render(class RenderingContext&, const scaled&, const scaled&) const; virtual void strength(int&, int&, int&) const; virtual AreaRef node(AreaIndex) const; virtual void origin(AreaIndex, class Point&) const; virtual CharIndex lengthTo(AreaIndex) const; virtual bool searchByArea(class AreaId&, const AreaRef&) const; virtual bool searchByCoords(class AreaId&, const scaled&, const scaled&) const; virtual bool searchByIndex(class AreaId&, CharIndex) const; }; #endif // __SimpleArea_hh__ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/GlyphWrapperArea.cc��������������������������������������������0000644�0001750�0001750�00000004101�10661271104�020156� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "GlyphWrapperArea.hh" #include "Rectangle.hh" AreaRef GlyphWrapperArea::node(AreaIndex) const { assert(false); } CharIndex GlyphWrapperArea::lengthTo(AreaIndex) const { assert(false); } void GlyphWrapperArea::origin(AreaIndex, Point&) const { assert(false); } bool GlyphWrapperArea::indexOfPosition(const scaled& x, const scaled& y, CharIndex& index) const { const BoundingBox bbox = box(); if (Rectangle(scaled::zero(), scaled::zero(), bbox).isInside(x, y)) { index = (x < bbox.width / 2) ? 0 : contentLength; return true; } else return false; } bool GlyphWrapperArea::positionOfIndex(CharIndex index, Point* p, BoundingBox* b) const { if (index == 0 && index < contentLength) { // do nothing about the Point if (b) *b = box(); return true; } else return false; } bool GlyphWrapperArea::searchByArea(AreaId&, const AreaRef& area) const { return this == area; } bool GlyphWrapperArea::searchByCoords(AreaId&, const scaled& x, const scaled& y) const { return Rectangle(scaled::zero(), scaled::zero(), box()).isInside(x, y); } bool GlyphWrapperArea::searchByIndex(AreaId&, CharIndex index) const { return index >= 0 && index < contentLength; } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/AreaIdAux.cc���������������������������������������������������0000644�0001750�0001750�00000002127�10661271104�016552� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AreaIdAux.hh" std::ostream& operator<<(std::ostream& os, const AreaId& box) { for (AreaId::PathVector::const_iterator p = box.getPath().begin(); p != box.getPath().end(); p++) os << "/" << (*p); return os; } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/GlyphSpec.hh���������������������������������������������������0000644�0001750�0001750�00000002665�10661271104�016666� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __GlyphSpec_hh__ #define __GlyphSpec_hh__ #include "gmv_defines.h" class GMV_MathView_EXPORT GlyphSpec { public: GlyphSpec(void) : shaperId(0), fontId(0), glyphId(0) { } GlyphSpec(unsigned si, unsigned fi, unsigned gi) : shaperId(si), fontId(fi), glyphId(gi) { } unsigned getGlyphId(void) const { return glyphId; } unsigned getShaperId(void) const { return shaperId; } unsigned getFontId(void) const { return fontId; } private: unsigned shaperId : 8; // this can be lowered to match ShaperManager::MAX_SHAPERS unsigned fontId : 8; unsigned glyphId : 16; }; #endif // __GlyphSpec_hh__ ���������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/ComputerModernFamily.hh����������������������������������������0000644�0001750�0001750�00000005556�10661271104�021077� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __ComputerModernFamily_hh__ #define __ComputerModernFamily_hh__ #include "Object.hh" #include "SmartPtr.hh" #include "String.hh" #include "scaled.hh" #include "MathVariant.hh" class GMV_MathView_EXPORT ComputerModernFamily : public Object { protected: ComputerModernFamily(const SmartPtr&, const SmartPtr&); virtual ~ComputerModernFamily(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); enum FontSizeId { FS_NIL = -1, FS_5, FS_6, FS_7, FS_8, FS_9, FS_10, FS_12, FS_17, FS_NOT_VALID }; enum FontEncId { FE_NIL = -1, FE_CMR, FE_CMMI, FE_CMSY, FE_CMEX, FE_MSAM, FE_MSBM, FE_COMBINING, FE_H_STRETCHY, FE_V_STRETCHY, FE_SPECIAL_STRETCHY, FE_NOT_VALID }; enum FontNameId { FN_NIL = -1, FN_CMR, FN_CMB, FN_CMBX, FN_CMBXTI, FN_CMTI, FN_CMSS, FN_CMSSI, FN_CMSSBX, FN_CMTT, FN_CMSY, FN_CMBSY, FN_CMMI, FN_CMMIB, FN_CMEX, FN_MSAM, FN_MSBM, FN_NOT_VALID }; static bool validFontNameId(FontNameId id) { return id > FN_NIL && id < FN_NOT_VALID; } static bool validFontEncId(FontEncId id) { return id > FE_NIL && id < FE_NOT_VALID; } static bool validFontSizeId(FontSizeId id) { return id > FS_NIL && id < FS_NOT_VALID; } static FontEncId encIdOfFontNameId(FontNameId); static FontSizeId fontSizeIdOfSize(int); static int sizeOfFontSizeId(FontSizeId); static const char* nameOfFontNameId(FontNameId); static String nameOfFont(FontNameId, FontSizeId); String nameOfFont(MathVariant, FontEncId, const scaled&) const; FontNameId findFont(MathVariant, FontEncId, scaled&, FontSizeId&) const; bool fontEnabled(FontNameId, FontSizeId = FS_10) const; protected: FontNameId findBestFont(MathVariant, FontEncId, int, FontSizeId&) const; private: bool configuredFont[FN_NOT_VALID][FS_NOT_VALID]; }; #endif // __ComputerModernFamily_hh__ ��������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/t1lib_T1Font.cc������������������������������������������������0000644�0001750�0001750�00000003274�10661271104�017161� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include //#include //#include #include "t1lib_T1Font.hh" t1lib_T1Font::~t1lib_T1Font() { } scaled t1lib_T1Font::getGlyphLeftEdge(Char8 index) const { return getScale() * T1_GetCharBBox(getFontId(), index).llx / 1000.0f; } scaled t1lib_T1Font::getGlyphRightEdge(Char8 index) const { return getScale() * T1_GetCharBBox(getFontId(), index).urx / 1000.0f; } BoundingBox t1lib_T1Font::getGlyphBoundingBox(Char8 index) const { const float scale = getScale(); const BBox charBox = T1_GetCharBBox(getFontId(), index); return BoundingBox(scale * T1_GetCharWidth(getFontId(), index) / 1000.0f, scale * charBox.ury / 1000.0f, scale * (-charBox.lly) / 1000.0f); } String t1lib_T1Font::getFontFileName(void) const { assert(fontId >= 0 && fontId < T1_GetNoFonts()); return T1_GetFontFileName(fontId); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/GlyphStringArea.hh���������������������������������������������0000644�0001750�0001750�00000004052�10661271104�020023� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __GlyphStringArea_hh__ #define __GlyphStringArea_hh__ #include "String.hh" #include "HorizontalArrayArea.hh" class GMV_MathView_EXPORT GlyphStringArea : public HorizontalArrayArea { protected: GlyphStringArea(const std::vector& children, const std::vector& c, const UCS4String& s) : HorizontalArrayArea(children), counters(c), source(s) { assert(children.size() == counters.size()); } virtual ~GlyphStringArea() { } public: static SmartPtr create(const std::vector& children, const std::vector& c, const UCS4String& s) { return new GlyphStringArea(children, c, s); } virtual AreaRef clone(const std::vector& c) const { return create(c, counters, source); } virtual CharIndex length(void) const; virtual CharIndex lengthTo(AreaIndex) const; virtual bool indexOfPosition(const scaled&, const scaled&, CharIndex&) const; virtual bool positionOfIndex(CharIndex, class Point*, BoundingBox*) const; const UCS4String& getSource() const { return source; } virtual SmartPtr getGlyphStringArea(void) const; private: std::vector counters; UCS4String source; }; #endif // __GlyphStringArea_hh__ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/t1lib_TFM_T1Font.hh��������������������������������������������0000644�0001750�0001750�00000002666�10661271104�017705� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __t1lib_TFM_T1Font_hh__ #define __t1lib_TFM_T1Font_hh__ #include "Char.hh" #include "t1lib_T1Font.hh" #include "SmartPtr.hh" #include "BoundingBox.hh" class GMV_MathView_EXPORT t1lib_TFM_T1Font : public t1lib_T1Font { protected: t1lib_TFM_T1Font(int, const scaled&, const SmartPtr&); virtual ~t1lib_TFM_T1Font(); public: static SmartPtr create(int, const scaled&, const SmartPtr&); SmartPtr getTFM(void) const; virtual BoundingBox getGlyphBoundingBox(Char8) const; private: SmartPtr tfm; }; #endif // __t1lib_TFM_T1Font_hh__ ��������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/AreaIdAux.hh���������������������������������������������������0000644�0001750�0001750�00000002026�10661271104�016562� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __AreaIdAux_hh__ #define __AreaIdAux_hh__ #include #include "AreaId.hh" GMV_MathView_EXPORT std::ostream& operator<<(std::ostream&, const AreaId&); #endif // __AreaIdAux_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/HorizontalFillerArea.hh����������������������������������������0000644�0001750�0001750�00000002645�10661271104�021046� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __HorizontalFillerArea_hh__ #define __HorizontalFillerArea_hh__ #include "FillerArea.hh" class GMV_MathView_EXPORT HorizontalFillerArea : public FillerArea { protected: HorizontalFillerArea(void) { } virtual ~HorizontalFillerArea() { } public: static SmartPtr create(void); virtual BoundingBox box(void) const; virtual AreaRef fit(const scaled&, const scaled&, const scaled&) const; virtual scaled leftEdge(void) const; virtual scaled rightEdge(void) const; virtual void strength(int&, int&, int&) const; }; #endif // __HorizontalFillerArea_hh__ �������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/t1lib_T1FontManager.hh�����������������������������������������0000644�0001750�0001750�00000004414�10661271104�020463� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __t1lib_T1FontManager_hh__ #define __t1lib_T1FontManager_hh__ #include "Object.hh" #include "String.hh" #include "HashMap.hh" #include "SmartPtr.hh" #include "scaled.hh" class GMV_MathView_EXPORT t1lib_T1FontManager : public Object { protected: t1lib_T1FontManager(const SmartPtr&, const SmartPtr&); virtual ~t1lib_T1FontManager(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); String getFontFileName(int) const; SmartPtr getT1Font(const String&, const scaled&) const; protected: int loadFont(const String&) const; int getFontId(const String&) const; virtual SmartPtr createT1Font(const String&, const scaled&) const; private: static bool firstTime; struct CachedT1FontKey { CachedT1FontKey(const String& n, const scaled& sz) : name(n), size(sz) { } bool operator==(const CachedT1FontKey& key) const { return name == key.name && size == key.size; } String name; scaled size; }; struct CachedT1FontHash { size_t operator()(const CachedT1FontKey& key) const { return StringHash()(key.name) ^ key.size.getValue(); } }; typedef HASH_MAP_NS::hash_map,CachedT1FontHash> T1FontCache; mutable T1FontCache fontCache; }; #endif // __t1lib_T1FontManager_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/WrapperArea.hh�������������������������������������������������0000644�0001750�0001750�00000002365�10661271104�017176� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __WrapperArea_hh__ #define __WrapperArea_hh__ #include "BoxArea.hh" #include "WeakPtr.hh" class GMV_MathView_EXPORT WrapperArea : public BoxArea { protected: WrapperArea(const AreaRef&, const BoundingBox&, const SmartPtr&); virtual ~WrapperArea(); public: virtual SmartPtr getElement(void) const; private: WeakPtr element; }; #endif // __WrapperArea_hh__ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/OverlapArrayArea.cc��������������������������������������������0000644�0001750�0001750�00000006523�10661271104�020153� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AreaId.hh" #include "OverlapArrayArea.hh" AreaRef OverlapArrayArea::clone(const std::vector& content) const { return create(content); } void OverlapArrayArea::flattenAux(std::vector& dest, const std::vector& source) { for (std::vector::const_iterator p = source.begin(); p != source.end(); p++) { AreaRef flattened = (*p)->flatten(); if (SmartPtr harea = smart_cast(flattened)) flattenAux(dest, harea->content); else dest.push_back(flattened); } } AreaRef OverlapArrayArea::flatten(void) const { std::vector newContent(content.size()); flattenAux(newContent, content); if (newContent != content) return clone(newContent); else return this; } BoundingBox OverlapArrayArea::box() const { BoundingBox bbox; for (std::vector< AreaRef >::const_iterator p = content.begin(); p != content.end(); p++) bbox.overlap((*p)->box()); return bbox; } void OverlapArrayArea::strength(int& w, int& h, int& d) const { w = h = d = 0; for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { int pw, ph, pd; (*p)->strength(pw, ph, pd); w = std::max(w, pw); h = std::max(h, ph); d = std::max(d, pd); } } AreaRef OverlapArrayArea::fit(const scaled& width, const scaled& height, const scaled& depth) const { std::vector newContent; newContent.reserve(content.size()); for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) newContent.push_back((*p)->fit(width, height, depth)); if (newContent == content) return this; else return clone(newContent); } bool OverlapArrayArea::searchByCoords(AreaId& id, const scaled& x, const scaled& y) const { // the last child area is also the last painted area. This means that // it may overlap some previous child area. Hence, if the user sees // something, we must first check the last painted area because it is // what the user sees for sure for (std::vector::const_reverse_iterator p = content.rbegin(); p != content.rend(); p++) { id.append(content.size() - (p - content.rbegin()) - 1, *p, scaled::zero(), scaled::zero()); if ((*p)->searchByCoords(id, x, y)) return true; id.pop_back(); } return false; } void OverlapArrayArea::origin(AreaIndex i, class Point&) const { assert(i >= 0 && i < content.size()); } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/CombinedGlyphArea.hh�������������������������������������������0000644�0001750�0001750�00000005570�10661271104�020303� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __CombinedGlyphArea_hh__ #define __CombinedGlyphArea_hh__ #include "Area.hh" #include "ContainerArea.hh" #include "BoundingBox.hh" class GMV_MathView_EXPORT CombinedGlyphArea : public ContainerArea { protected: CombinedGlyphArea(const AreaRef& , const AreaRef&, const AreaRef&, const scaled&, const scaled&, const scaled&); virtual ~CombinedGlyphArea(); public: static SmartPtr create(const AreaRef& baseArea, const AreaRef& accentArea, const AreaRef& underArea, const scaled& skewchar, const scaled& verticalSpace, const scaled& underSkew) { return new CombinedGlyphArea(baseArea, accentArea, underArea, skewchar, verticalSpace, underSkew); } virtual AreaRef clone(const AreaRef& nB, const AreaRef& nA, const AreaRef& nU, const scaled& nDx, const scaled& nDy, const scaled& nDxUnder) const { return create(nB, nA, nU, nDx, nDy, nDxUnder); } virtual BoundingBox box(void) const; virtual void render(class RenderingContext&, const scaled& x, const scaled& y) const; virtual AreaRef fit(const scaled&, const scaled&, const scaled&) const; virtual scaled leftEdge(void) const; virtual scaled rightEdge(void) const; virtual void strength(int&, int&, int&) const; virtual AreaRef node(AreaIndex) const; virtual void origin(AreaIndex, class Point&) const; virtual CharIndex lengthTo(AreaIndex) const; virtual bool searchByArea(class AreaId&, const AreaRef&) const; virtual bool searchByCoords(class AreaId&, const scaled&, const scaled&) const; virtual bool searchByIndex(class AreaId&, CharIndex) const; virtual bool indexOfPosition(const scaled&, const scaled&, CharIndex&) const; virtual bool positionOfIndex(CharIndex, class Point*, BoundingBox*) const; virtual SmartPtr getGlyphArea(void) const; virtual SmartPtr getGlyphStringArea(void) const; protected: BoundingBox bbox; AreaRef base; AreaRef accent; AreaRef under; scaled dx; scaled dy; scaled dxUnder; }; #endif // __CombinedGlyphArea_hh__ ����������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/HorizontalSpaceArea.hh�����������������������������������������0000644�0001750�0001750�00000003120�10661271104�020651� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __HorizontalSpaceArea_hh__ #define __HorizontalSpaceArea_hh__ #include "SimpleArea.hh" #include "BoundingBox.hh" class GMV_MathView_EXPORT HorizontalSpaceArea : public SimpleArea { protected: HorizontalSpaceArea(const scaled& w) : width(w) { } virtual ~HorizontalSpaceArea(); public: // TODO: caching of areas: it is likely that there will be a large // number of horizontal space areas all with the same width static SmartPtr create(const scaled& w) { return new HorizontalSpaceArea(w); } virtual BoundingBox box(void) const; virtual scaled leftEdge(void) const; virtual scaled rightEdge(void) const; scaled getWidth(void) const { return width; } private: scaled width; }; #endif // __HorizontalSpaceArea_hh__ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/TFMGlyphArea.cc������������������������������������������������0000644�0001750�0001750�00000002130�10661271104�017164� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "TFMFont.hh" #include "TFMGlyphArea.hh" TFMGlyphArea::TFMGlyphArea(const SmartPtr& f) : font(f) { } TFMGlyphArea::~TFMGlyphArea() { } SmartPtr TFMGlyphArea::getFont() const { return font; } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/CachedShapedString.hh������������������������������������������0000644�0001750�0001750�00000004452�10661271104�020447� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __CachedShapedString_hh__ #define __CachedShapedString_hh__ #include "String.hh" #include "StringHash.hh" struct GMV_MathView_EXPORT CachedShapedStringKey { CachedShapedStringKey(const String& s, MathVariant v, const scaled& sz) : source(s), variant(v), size(sz) { } bool operator==(const CachedShapedStringKey& key) const { return source == key.source && variant == key.variant && size == key.size; } String source; MathVariant variant; scaled size; }; struct GMV_MathView_EXPORT CachedShapedStringKeyHash { size_t operator()(const CachedShapedStringKey& key) const { return StringHash()(key.source) ^ key.variant ^ key.size.getValue(); } }; struct GMV_MathView_EXPORT CachedShapedStretchyStringKey : public CachedShapedStringKey { CachedShapedStretchyStringKey(const String& s, MathVariant v, const scaled& sz, const scaled& sh, const scaled& sv) : CachedShapedStringKey(s, v, sz), spanH(sh), spanV(sv) { } bool operator==(const CachedShapedStretchyStringKey& key) const { return source == key.source && variant == key.variant && size == key.size && spanH == key.spanH && spanV == key.spanV; } scaled spanH; scaled spanV; }; struct GMV_MathView_EXPORT CachedShapedStretchyStringKeyHash { size_t operator()(const CachedShapedStretchyStringKey& key) const { return StringHash()(key.source) ^ key.variant ^ key.size.getValue() ^ key.spanH.getValue() ^ key.spanV.getValue(); } }; #endif // __CachedShapedString_hh__ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gtkmathview-0.8.0/src/backend/common/ComputerModernShaper.cc����������������������������������������0000644�0001750�0001750�00000220750�10704610363�021063� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Area.hh" #include "AreaFactory.hh" #include "MathVariant.hh" #include "MathVariantMap.hh" #include "ComputerModernShaper.hh" #include "ShapingContext.hh" #include "ShaperManager.hh" #include "Configuration.hh" enum { NIL = ComputerModernFamily::FE_NIL, CMR = ComputerModernFamily::FE_CMR, CMM = ComputerModernFamily::FE_CMMI, CMS = ComputerModernFamily::FE_CMSY, CME = ComputerModernFamily::FE_CMEX, MSBM = ComputerModernFamily::FE_MSBM }; static ComputerModernShaper::PlainChar cmmMap[] = { { 0x002C, 0x3B }, // COMMA { 0x002E, 0x3A }, // FULL STOP { 0x002F, 0x3D }, // SOLIDUS // these are funny (short) digits and we don't want them // { 0x0030, 0x30 }, // DIGIT ZERO // { 0x0031, 0x31 }, // DIGIT ONE // { 0x0032, 0x32 }, // DIGIT TWO // { 0x0033, 0x33 }, // DIGIT THREE // { 0x0034, 0x34 }, // DIGIT FOUR // { 0x0035, 0x35 }, // DIGIT FIVE // { 0x0036, 0x36 }, // DIGIT SIX // { 0x0037, 0x37 }, // DIGIT SEVEN // { 0x0038, 0x38 }, // DIGIT EIGHT // { 0x0039, 0x39 }, // DIGIT NINE { 0x003C, 0x3C }, // LESS-THAN SIGN { 0x003E, 0x3E }, // GREATER-THAN SIGN { 0x0041, 0x41 }, // LATIN CAPITAL LETTER A { 0x0042, 0x42 }, // LATIN CAPITAL LETTER B { 0x0043, 0x43 }, // LATIN CAPITAL LETTER C { 0x0044, 0x44 }, // LATIN CAPITAL LETTER D { 0x0045, 0x45 }, // LATIN CAPITAL LETTER E { 0x0046, 0x46 }, // LATIN CAPITAL LETTER F { 0x0047, 0x47 }, // LATIN CAPITAL LETTER G { 0x0048, 0x48 }, // LATIN CAPITAL LETTER H { 0x0049, 0x49 }, // LATIN CAPITAL LETTER I { 0x004A, 0x4A }, // LATIN CAPITAL LETTER J { 0x004B, 0x4B }, // LATIN CAPITAL LETTER K { 0x004C, 0x4C }, // LATIN CAPITAL LETTER L { 0x004D, 0x4D }, // LATIN CAPITAL LETTER M { 0x004E, 0x4E }, // LATIN CAPITAL LETTER N { 0x004F, 0x4F }, // LATIN CAPITAL LETTER O { 0x0050, 0x50 }, // LATIN CAPITAL LETTER P { 0x0051, 0x51 }, // LATIN CAPITAL LETTER Q { 0x0052, 0x52 }, // LATIN CAPITAL LETTER R { 0x0053, 0x53 }, // LATIN CAPITAL LETTER S { 0x0054, 0x54 }, // LATIN CAPITAL LETTER T { 0x0055, 0x55 }, // LATIN CAPITAL LETTER U { 0x0056, 0x56 }, // LATIN CAPITAL LETTER V { 0x0057, 0x57 }, // LATIN CAPITAL LETTER W { 0x0058, 0x58 }, // LATIN CAPITAL LETTER X { 0x0059, 0x59 }, // LATIN CAPITAL LETTER Y { 0x005A, 0x5A }, // LATIN CAPITAL LETTER Z { 0x0061, 0x61 }, // LATIN SMALL LETTER A { 0x0062, 0x62 }, // LATIN SMALL LETTER B { 0x0063, 0x63 }, // LATIN SMALL LETTER C { 0x0064, 0x64 }, // LATIN SMALL LETTER D { 0x0065, 0x65 }, // LATIN SMALL LETTER E { 0x0066, 0x66 }, // LATIN SMALL LETTER F { 0x0067, 0x67 }, // LATIN SMALL LETTER G { 0x0068, 0x68 }, // LATIN SMALL LETTER H { 0x0069, 0x69 }, // LATIN SMALL LETTER I { 0x006A, 0x6A }, // LATIN SMALL LETTER J { 0x006B, 0x6B }, // LATIN SMALL LETTER K { 0x006C, 0x6C }, // LATIN SMALL LETTER L { 0x006D, 0x6D }, // LATIN SMALL LETTER M { 0x006E, 0x6E }, // LATIN SMALL LETTER N { 0x006F, 0x6F }, // LATIN SMALL LETTER O { 0x0070, 0x70 }, // LATIN SMALL LETTER P { 0x0071, 0x71 }, // LATIN SMALL LETTER Q { 0x0072, 0x72 }, // LATIN SMALL LETTER R { 0x0073, 0x73 }, // LATIN SMALL LETTER S { 0x0074, 0x74 }, // LATIN SMALL LETTER T { 0x0075, 0x75 }, // LATIN SMALL LETTER U { 0x0076, 0x76 }, // LATIN SMALL LETTER V { 0x0077, 0x77 }, // LATIN SMALL LETTER W { 0x0078, 0x78 }, // LATIN SMALL LETTER X { 0x0079, 0x79 }, // LATIN SMALL LETTER Y { 0x007A, 0x7A }, // LATIN SMALL LETTER Z { 0x0131, 0x7B }, // LATIN SMALL LETTER DOTLESS I { 0x0237, 0x7C }, // LATIN SMALL LETTER DOTLESS J { 0x025B, 0x22 }, // LATIN SMALL LETTER OPEN E, epsiv, varepsilon { 0x03B5, 0x22 }, // LATIN SMALL LETTER OPEN E, epsiv, varepsilon { 0x0311, 0x7F }, // COMBINING INVERTED BREVE { 0x0393, 0x00 }, // GREEK CAPITAL LETTER GAMMA { 0x0394, 0x01 }, // GREEK CAPITAL LETTER DELTA { 0x0398, 0x02 }, // GREEK CAPITAL LETTER THETA { 0x039B, 0x03 }, // GREEK CAPITAL LETTER LAMDA { 0x039E, 0x04 }, // GREEK CAPITAL LETTER XI { 0x03A0, 0x05 }, // GREEK CAPITAL LETTER PI { 0x03A3, 0x06 }, // GREEK CAPITAL LETTER SIGMA { 0x03A5, 0x07 }, // GREEK CAPITAL LETTER UPSILON { 0x03A6, 0x08 }, // GREEK CAPITAL LETTER PHI { 0x03A8, 0x09 }, // GREEK CAPITAL LETTER PSI { 0x03A9, 0x0A }, // GREEK CAPITAL LETTER OMEGA { 0x03B1, 0x0B }, // GREEK SMALL LETTER ALPHA { 0x03B2, 0x0C }, // GREEK SMALL LETTER BETA { 0x03B3, 0x0D }, // GREEK SMALL LETTER GAMMA { 0x03B4, 0x0E }, // GREEK SMALL LETTER DELTA { 0x03B6, 0x10 }, // GREEK SMALL LETTER ZETA { 0x03B7, 0x11 }, // GREEK SMALL LETTER ETA { 0x03B8, 0x12 }, // GREEK SMALL LETTER THETA { 0x03B9, 0x13 }, // GREEK SMALL LETTER IOTA { 0x03BA, 0x14 }, // GREEK SMALL LETTER KAPPA { 0x03BB, 0x15 }, // GREEK SMALL LETTER LAMDA { 0x03BC, 0x16 }, // GREEK SMALL LETTER MU { 0x03BD, 0x17 }, // GREEK SMALL LETTER NU { 0x03BE, 0x18 }, // GREEK SMALL LETTER XI { 0x03C0, 0x19 }, // GREEK SMALL LETTER PI { 0x03C1, 0x1A }, // GREEK SMALL LETTER RHO { 0x03C2, 0x26 }, // GREEK SMALL LETTER FINAL SIGMA { 0x03C3, 0x1B }, // GREEK SMALL LETTER SIGMA { 0x03C4, 0x1C }, // GREEK SMALL LETTER TAU { 0x03C5, 0x1D }, // GREEK SMALL LETTER UPSILON { 0x03C6, 0x1E }, // GREEK SMALL LETTER PHI { 0x03C7, 0x1F }, // GREEK SMALL LETTER CHI { 0x03C8, 0x20 }, // GREEK SMALL LETTER PSI { 0x03C9, 0x21 }, // GREEK SMALL LETTER OMEGA { 0x03D1, 0x23 }, // GREEK THETA SYMBOL { 0x03D5, 0x27 }, // GREEK PHI SYMBOL, phiv, varphi { 0x03D6, 0x24 }, // GREEK PI SYMBOL { 0x03F1, 0x25 }, // GREEK RHO SYMBOL { 0x03F5, 0x0F }, // GREEK SMALL LETTER EPSILON { 0x20D7, 0x7E }, // COMBINING RIGHT ARROW ABOVE { 0x2113, 0x60 }, // SCRIPT SMALL L { 0x2118, 0x7D }, // SCRIPT CAPITAL P { 0x21BC, 0x28 }, // LEFTWARDS HARPOON WITH BARB UPWARDS { 0x21BD, 0x29 }, // LEFTWARDS HARPOON WITH BARB DOWNWARDS { 0x21C0, 0x2A }, // RIGHTWARDS HARPOON WITH BARB UPWARDS { 0x21C1, 0x2B }, // RIGHTWARDS HARPOON WITH BARB DOWNWARDS { 0x2202, 0x40 }, // PARTIAL DIFFERENTIAL { 0x22C6, 0x3F }, // STAR OPERATOR { 0x2322, 0x5F }, // frown { 0x2323, 0x5E }, // smile { 0x25B9, 0x2E }, // WHITE RIGHT-POINTING SMALL TRIANGLE { 0x25C3, 0x2F }, // WHITE LEFT-POINTING SMALL TRIANGLE { 0x266D, 0x5B }, // MUSIC FLAT SIGN { 0x266E, 0x5C }, // MUSIC NATURAL SIGN { 0x266F, 0x5D }, // MUSIC SHARP SIGN { 0x0000, 0x00 } }; #if 0 static UChar8 cmmTTFMap[] = { /* 0x00 */ 0xa1, // Gamma /* 0x01 */ 0xa2, // Delta /* 0x02 */ 0xa3, // Theta /* 0x03 */ 0xa4, // Lambda /* 0x04 */ 0xa5, // Xi /* 0x05 */ 0xa6, // Pi /* 0x06 */ 0xa7, // Sigma /* 0x07 */ 0xa8, // Upsilon /* 0x08 */ 0xa9, // Phi /* 0x09 */ 0xaa, // Psi /* 0x0a */ 0xad, // Omega /* 0x0b */ 0xae, // alpha /* 0x0c */ 0xaf, // beta /* 0x0d */ 0xb0, // gamma /* 0x0e */ 0xb1, // delta /* 0x0f */ 0xb2, // epsilon1 /* 0x10 */ 0xb3, // zeta /* 0x11 */ 0xb4, // eta /* 0x12 */ 0xb5, // theta /* 0x13 */ 0xb6, // iota /* 0x14 */ 0x80, // kappa /* 0x15 */ 0xb8, // lambda /* 0x16 */ 0xb9, // mu /* 0x17 */ 0xba, // nu /* 0x18 */ 0xbb, // xi /* 0x19 */ 0xbc, // pi /* 0x1a */ 0xbd, // rho /* 0x1b */ 0xbe, // sigma /* 0x1c */ 0xbf, // tau /* 0x1d */ 0xc0, // upsilon /* 0x1e */ 0xc1, // phi /* 0x1f */ 0xc2, // chi /* 0x20 */ 0xc3, // psi /* 0x21 */ 0x21, // omega /* 0x22 */ 0x22, // epsilon /* 0x23 */ 0x23, // theta1 /* 0x24 */ 0x24, // pi1 /* 0x25 */ 0x25, // rho1 /* 0x26 */ 0x26, // sigma1 /* 0x27 */ 0x27, // phi1 /* 0x28 */ 0x28, // arrowlefttophalf /* 0x29 */ 0x29, // arrowleftbothalf /* 0x2a */ 0x2a, // arrowrighttophalf /* 0x2b */ 0x2b, // arrowrightbothalf /* 0x2c */ 0x2c, // arrowhookleft /* 0x2d */ 0x2d, // arrowhookright /* 0x2e */ 0x2e, // triangleright /* 0x2f */ 0x2f, // triangleleft /* 0x30 */ 0x30, // zerooldstyle /* 0x31 */ 0x31, // oneoldstyle /* 0x32 */ 0x32, // twooldstyle /* 0x33 */ 0x33, // threeoldstyle /* 0x34 */ 0x34, // fouroldstyle /* 0x35 */ 0x35, // fiveoldstyle /* 0x36 */ 0x36, // sixoldstyle /* 0x37 */ 0x37, // sevenoldstyle /* 0x38 */ 0x38, // eightoldstyle /* 0x39 */ 0x39, // nineoldstyle /* 0x3a */ 0x3a, // period /* 0x3b */ 0x3b, // comma /* 0x3c */ 0x3c, // less /* 0x3d */ 0x3d, // slash /* 0x3e */ 0x3e, // greater /* 0x3f */ 0x3f, // star /* 0x40 */ 0x40, // partialdiff /* 0x41 */ 0x41, // A /* 0x42 */ 0x42, // B /* 0x43 */ 0x43, // C /* 0x44 */ 0x44, // D /* 0x45 */ 0x45, // E /* 0x46 */ 0x46, // F /* 0x47 */ 0x47, // G /* 0x48 */ 0x48, // H /* 0x49 */ 0x49, // I /* 0x4a */ 0x4a, // J /* 0x4b */ 0x4b, // K /* 0x4c */ 0x4c, // L /* 0x4d */ 0x4d, // M /* 0x4e */ 0x4e, // N /* 0x4f */ 0x4f, // O /* 0x50 */ 0x50, // P /* 0x51 */ 0x51, // Q /* 0x52 */ 0x52, // R /* 0x53 */ 0x53, // S /* 0x54 */ 0x54, // T /* 0x55 */ 0x55, // U /* 0x56 */ 0x56, // V /* 0x57 */ 0x57, // W /* 0x58 */ 0x58, // X /* 0x59 */ 0x59, // Y /* 0x5a */ 0x5a, // Z /* 0x5b */ 0x5b, // flat /* 0x5c */ 0x5c, // natural /* 0x5d */ 0x5d, // sharp /* 0x5e */ 0x5e, // slurbelow /* 0x5f */ 0x5f, // slurabove /* 0x60 */ 0x60, // lscript /* 0x61 */ 0x61, // a /* 0x62 */ 0x62, // b /* 0x63 */ 0x63, // c /* 0x64 */ 0x64, // d /* 0x65 */ 0x65, // e /* 0x66 */ 0x66, // f /* 0x67 */ 0x67, // g /* 0x68 */ 0x68, // h /* 0x69 */ 0x69, // i /* 0x6a */ 0x6a, // j /* 0x6b */ 0x6b, // k /* 0x6c */ 0x6c, // l /* 0x6d */ 0x6d, // m /* 0x6e */ 0x6e, // n /* 0x6f */ 0x6f, // o /* 0x70 */ 0x70, // p /* 0x71 */ 0x71, // q /* 0x72 */ 0x72, // r /* 0x73 */ 0x73, // s /* 0x74 */ 0x74, // t /* 0x75 */ 0x75, // u /* 0x76 */ 0x76, // v /* 0x77 */ 0x77, // w /* 0x78 */ 0x78, // x /* 0x79 */ 0x79, // y /* 0x7a */ 0x7a, // z /* 0x7b */ 0x7b, // dotlessi /* 0x7c */ 0x7c, // dotlessj /* 0x7d */ 0x7d, // weierstrass /* 0x7e */ 0x7e, // vector /* 0x7f */ 0xc4, // tie }; #endif static ComputerModernShaper::PlainChar cmrMap[] = { { 0x0021, 0x21 }, // EXCLAMATION MARK { 0x0023, 0x23 }, // NUMBER SIGN { 0x0024, 0x24 }, // DOLLAR SIGN { 0x0025, 0x25 }, // PERCENT SIGN { 0x0026, 0x26 }, // AMPERSAND { 0x0027, 0x27 }, // APOSTROPHE { 0x0028, 0x28 }, // LEFT PARENTHESIS { 0x0029, 0x29 }, // RIGHT PARENTHESIS { 0x002A, 0x2A }, // ASTERISK { 0x002B, 0x2B }, // PLUS SIGN { 0x002C, 0x2C }, // COMMA { 0x002D, 0x2D }, // HYPHEN-MINUS { 0x002E, 0x2E }, // FULL STOP { 0x002F, 0x2F }, // SOLIDUS { 0x0030, 0x30 }, // DIGIT ZERO { 0x0031, 0x31 }, // DIGIT ONE { 0x0032, 0x32 }, // DIGIT TWO { 0x0033, 0x33 }, // DIGIT THREE { 0x0034, 0x34 }, // DIGIT FOUR { 0x0035, 0x35 }, // DIGIT FIVE { 0x0036, 0x36 }, // DIGIT SIX { 0x0037, 0x37 }, // DIGIT SEVEN { 0x0038, 0x38 }, // DIGIT EIGHT { 0x0039, 0x39 }, // DIGIT NINE { 0x003A, 0x3A }, // COLON { 0x003B, 0x3B }, // SEMICOLON { 0x003D, 0x3D }, // EQUALS SIGN { 0x003F, 0x3F }, // QUESTION MARK { 0x0040, 0x40 }, // COMMERCIAL AT { 0x0041, 0x41 }, // LATIN CAPITAL LETTER A { 0x0042, 0x42 }, // LATIN CAPITAL LETTER B { 0x0043, 0x43 }, // LATIN CAPITAL LETTER C { 0x0044, 0x44 }, // LATIN CAPITAL LETTER D { 0x0045, 0x45 }, // LATIN CAPITAL LETTER E { 0x0046, 0x46 }, // LATIN CAPITAL LETTER F { 0x0047, 0x47 }, // LATIN CAPITAL LETTER G { 0x0048, 0x48 }, // LATIN CAPITAL LETTER H { 0x0049, 0x49 }, // LATIN CAPITAL LETTER I { 0x004A, 0x4A }, // LATIN CAPITAL LETTER J { 0x004B, 0x4B }, // LATIN CAPITAL LETTER K { 0x004C, 0x4C }, // LATIN CAPITAL LETTER L { 0x004D, 0x4D }, // LATIN CAPITAL LETTER M { 0x004E, 0x4E }, // LATIN CAPITAL LETTER N { 0x004F, 0x4F }, // LATIN CAPITAL LETTER O { 0x0050, 0x50 }, // LATIN CAPITAL LETTER P { 0x0051, 0x51 }, // LATIN CAPITAL LETTER Q { 0x0052, 0x52 }, // LATIN CAPITAL LETTER R { 0x0053, 0x53 }, // LATIN CAPITAL LETTER S { 0x0054, 0x54 }, // LATIN CAPITAL LETTER T { 0x0055, 0x55 }, // LATIN CAPITAL LETTER U { 0x0056, 0x56 }, // LATIN CAPITAL LETTER V { 0x0057, 0x57 }, // LATIN CAPITAL LETTER W { 0x0058, 0x58 }, // LATIN CAPITAL LETTER X { 0x0059, 0x59 }, // LATIN CAPITAL LETTER Y { 0x005A, 0x5A }, // LATIN CAPITAL LETTER Z { 0x005B, 0x5B }, // LEFT SQUARE BRACKET { 0x005D, 0x5D }, // RIGHT SQUARE BRACKET { 0x0061, 0x61 }, // LATIN SMALL LETTER A { 0x0062, 0x62 }, // LATIN SMALL LETTER B { 0x0063, 0x63 }, // LATIN SMALL LETTER C { 0x0064, 0x64 }, // LATIN SMALL LETTER D { 0x0065, 0x65 }, // LATIN SMALL LETTER E { 0x0066, 0x66 }, // LATIN SMALL LETTER F { 0x0067, 0x67 }, // LATIN SMALL LETTER G { 0x0068, 0x68 }, // LATIN SMALL LETTER H { 0x0069, 0x69 }, // LATIN SMALL LETTER I { 0x006A, 0x6A }, // LATIN SMALL LETTER J { 0x006B, 0x6B }, // LATIN SMALL LETTER K { 0x006C, 0x6C }, // LATIN SMALL LETTER L { 0x006D, 0x6D }, // LATIN SMALL LETTER M { 0x006E, 0x6E }, // LATIN SMALL LETTER N { 0x006F, 0x6F }, // LATIN SMALL LETTER O { 0x0070, 0x70 }, // LATIN SMALL LETTER P { 0x0071, 0x71 }, // LATIN SMALL LETTER Q { 0x0072, 0x72 }, // LATIN SMALL LETTER R { 0x0073, 0x73 }, // LATIN SMALL LETTER S { 0x0074, 0x74 }, // LATIN SMALL LETTER T { 0x0075, 0x75 }, // LATIN SMALL LETTER U { 0x0076, 0x76 }, // LATIN SMALL LETTER V { 0x0077, 0x77 }, // LATIN SMALL LETTER W { 0x0078, 0x78 }, // LATIN SMALL LETTER X { 0x0079, 0x79 }, // LATIN SMALL LETTER Y { 0x007A, 0x7A }, // LATIN SMALL LETTER Z { 0x00A1, 0x3C }, // INVERTED EXCLAMATION MARK { 0x00AF, 0x16 }, // BAR { 0x00BF, 0x3E }, // INVERTED QUESTION MARK { 0x00C6, 0x1D }, // LATIN CAPITAL LETTER AE { 0x00D8, 0x1F }, // LATIN CAPITAL LETTER O WITH STROKE { 0x00DF, 0x19 }, // LATIN SMALL LETTER SHARP S { 0x00E6, 0x1A }, // LATIN SMALL LETTER AE { 0x00F8, 0x1C }, // LATIN SMALL LETTER O WITH STROKE { 0x0131, 0x10 }, // LATIN SMALL LETTER DOTLESS I { 0x0237, 0x11 }, // LATIN SMALL LETTER DOTLESS J { 0x0152, 0x1E }, // LATIN CAPITAL LIGATURE OE { 0x0153, 0x1B }, // LATIN SMALL LIGATURE OE { 0x0300, 0x12 }, // COMBINING GRAVE ACCENT { 0x0301, 0x13 }, // COMBINING ACUTE ACCENT { 0x0302, 0x5E }, // COMBINING CIRCUMFLEX ACCENT { 0x0303, 0x7E }, // COMBINING TILDE { 0x0304, 0x16 }, // COMBINING BAR { 0x0305, 0x16 }, // COMBINING OVERLINE { 0x0306, 0x15 }, // COMBINING BREVE { 0x0307, 0x5F }, // COMBINING DOT ABOVE { 0x0308, 0x7F }, // COMBINING DIAERESIS { 0x030A, 0x17 }, // COMBINING RING ABOVE { 0x030B, 0x7D }, // COMBINING DOUBLE ACUTE ACCENT { 0x030C, 0x14 }, // COMBINING CARON { 0x0327, 0x18 }, // COMBINING CEDILLA { 0x0337, 0x20 }, // COMBINING SHORT SOLIDUS OVERLAY { 0x0393, 0x00 }, // GREEK CAPITAL LETTER GAMMA { 0x0394, 0x01 }, // GREEK CAPITAL LETTER DELTA { 0x0398, 0x02 }, // GREEK CAPITAL LETTER THETA { 0x039B, 0x03 }, // GREEK CAPITAL LETTER LAMDA { 0x039E, 0x04 }, // GREEK CAPITAL LETTER XI { 0x03A0, 0x05 }, // GREEK CAPITAL LETTER PI { 0x03A3, 0x06 }, // GREEK CAPITAL LETTER SIGMA { 0x03A5, 0x07 }, // GREEK CAPITAL LETTER UPSILON { 0x03A6, 0x08 }, // GREEK CAPITAL LETTER PHI { 0x03A8, 0x09 }, // GREEK CAPITAL LETTER PSI { 0x03A9, 0x0A }, // GREEK CAPITAL LETTER OMEGA { 0x2013, 0x7B }, // EN DASH { 0x2014, 0x7C }, // EM DASH { 0x2018, 0x60 }, // LEFT SINGLE QUOTATION MARK { 0x201C, 0x5C }, // LEFT DOUBLE QUOTATION MARK { 0x201D, 0x22 }, // RIGHT DOUBLE QUOTATION MARK { 0xFB00, 0x0B }, // LATIN SMALL LIGATURE FF { 0xFB01, 0x0C }, // LATIN SMALL LIGATURE FI { 0xFB02, 0x0D }, // LATIN SMALL LIGATURE FL { 0xFB03, 0x0E }, // LATIN SMALL LIGATURE FFI { 0xFB04, 0x0F }, // LATIN SMALL LIGATURE FFL { 0x0000, 0x00 } }; #if 0 static UChar8 cmrTTFMap[] = { /* 0x00 */ 0xa1, // Gamma /* 0x01 */ 0xa2, // Delta /* 0x02 */ 0xa3, // Theta /* 0x03 */ 0xa4, // Lambda /* 0x04 */ 0xa5, // Xi /* 0x05 */ 0xa6, // Pi /* 0x06 */ 0xa7, // Sigma /* 0x07 */ 0xa8, // Upsilon /* 0x08 */ 0xa9, // Phi /* 0x09 */ 0xaa, // Psi /* 0x0a */ 0xad, // Omega /* 0x0b */ 0xae, // ff /* 0x0c */ 0xaf, // fi /* 0x0d */ 0xb0, // fl /* 0x0e */ 0xb1, // ffi /* 0x0f */ 0xb2, // ffl /* 0x10 */ 0xb3, // dotlessi /* 0x11 */ 0xb4, // dotlessj /* 0x12 */ 0xb5, // grave /* 0x13 */ 0xb6, // acute /* 0x14 */ 0xb8, // caron /* 0x15 */ 0xb8, // breve /* 0x16 */ 0xb9, // macron /* 0x17 */ 0xba, // ring /* 0x18 */ 0xbb, // cedilla /* 0x19 */ 0xbc, // germandbls /* 0x1a */ 0xbd, // ae /* 0x1b */ 0xbe, // oe /* 0x1c */ 0xbf, // oslash /* 0x1d */ 0xc0, // AE /* 0x1e */ 0xc1, // OE /* 0x1f */ 0xc2, // Oslash /* 0x20 */ 0xc3, // suppress /* 0x21 */ 0x21, // exclam /* 0x22 */ 0x22, // quotedblright /* 0x23 */ 0x23, // numbersign /* 0x24 */ 0x24, // dollar /* 0x25 */ 0x25, // percent /* 0x26 */ 0x26, // ampersand /* 0x27 */ 0x27, // quoteright /* 0x28 */ 0x28, // parenleft /* 0x29 */ 0x29, // parenright /* 0x2a */ 0x2a, // asterisk /* 0x2b */ 0x2b, // plus /* 0x2c */ 0x2c, // comma /* 0x2d */ 0x2d, // hyphen /* 0x2e */ 0x2e, // period /* 0x2f */ 0x2f, // slash /* 0x30 */ 0x30, // zero /* 0x31 */ 0x31, // one /* 0x32 */ 0x32, // two /* 0x33 */ 0x33, // three /* 0x34 */ 0x34, // four /* 0x35 */ 0x35, // five /* 0x36 */ 0x36, // six /* 0x37 */ 0x37, // seven /* 0x38 */ 0x38, // eight /* 0x39 */ 0x39, // nine /* 0x3a */ 0x3a, // colon /* 0x3b */ 0x3b, // semicolon /* 0x3c */ 0x3c, // exclamdown /* 0x3d */ 0x3d, // equal /* 0x3e */ 0x3e, // questiondown /* 0x3f */ 0x3f, // question /* 0x40 */ 0x40, // at /* 0x41 */ 0x41, // A /* 0x42 */ 0x42, // B /* 0x43 */ 0x43, // C /* 0x44 */ 0x44, // D /* 0x45 */ 0x45, // E /* 0x46 */ 0x46, // F /* 0x47 */ 0x47, // G /* 0x48 */ 0x48, // H /* 0x49 */ 0x49, // I /* 0x4a */ 0x4a, // J /* 0x4b */ 0x4b, // K /* 0x4c */ 0x4c, // L /* 0x4d */ 0x4d, // M /* 0x4e */ 0x4e, // N /* 0x4f */ 0x4f, // O /* 0x50 */ 0x50, // P /* 0x51 */ 0x51, // Q /* 0x52 */ 0x52, // R /* 0x53 */ 0x53, // S /* 0x54 */ 0x54, // T /* 0x55 */ 0x55, // U /* 0x56 */ 0x56, // V /* 0x57 */ 0x57, // W /* 0x58 */ 0x58, // X /* 0x59 */ 0x59, // Y /* 0x5a */ 0x5a, // Z /* 0x5b */ 0x5b, // bracketleft /* 0x5c */ 0x5c, // quotedblleft /* 0x5d */ 0x5d, // bracketright /* 0x5e */ 0x5e, // circumflex /* 0x5f */ 0x5f, // dotaccent /* 0x60 */ 0x60, // quoteleft /* 0x61 */ 0x61, // a /* 0x62 */ 0x62, // b /* 0x63 */ 0x63, // c /* 0x64 */ 0x64, // d /* 0x65 */ 0x65, // e /* 0x66 */ 0x66, // f /* 0x67 */ 0x67, // g /* 0x68 */ 0x68, // h /* 0x69 */ 0x69, // i /* 0x6a */ 0x6a, // j /* 0x6b */ 0x6b, // k /* 0x6c */ 0x6c, // l /* 0x6d */ 0x6d, // m /* 0x6e */ 0x6e, // n /* 0x6f */ 0x6f, // o /* 0x70 */ 0x70, // p /* 0x71 */ 0x71, // q /* 0x72 */ 0x72, // r /* 0x73 */ 0x73, // s /* 0x74 */ 0x74, // t /* 0x75 */ 0x75, // u /* 0x76 */ 0x76, // v /* 0x77 */ 0x77, // w /* 0x78 */ 0x78, // x /* 0x79 */ 0x79, // y /* 0x7a */ 0x7a, // z /* 0x7b */ 0x7c, // endash /* 0x7c */ 0x7b, // emdash /* 0x7d */ 0x7d, // hungarumlaut /* 0x7e */ 0x7e, // tilde /* 0x7f */ 0xc4, // dieresis }; #endif static ComputerModernShaper::PlainChar cmsMap[] = { { 0x007B, 0x66 }, // LEFT CURLY BRACKET { 0x007D, 0x67 }, // RIGHT CURLY BRACKET { 0x00A7, 0x78 }, // SECTION SIGN { 0x00AC, 0x3A }, // NOT SIGN { 0x00B1, 0x06 }, // PLUS-MINUS SIGN { 0x00B6, 0x7B }, // PILCROW SIGN { 0x00B7, 0x01 }, // MIDDLE DOT { 0x00D7, 0x02 }, // MULTIPLICATION SIGN { 0x00F7, 0x04 }, // DIVISION SIGN { 0x0338, 0x36 }, // COMBINING LONG SOLIDUS OVERLAY { 0x2020, 0x79 }, // DAGGER { 0x2021, 0x7A }, // DOUBLE DAGGER { 0x2032, 0x30 }, // PRIME { 0x210B, 0x48 }, // Script capital H { 0x2110, 0x49 }, // Script capital I { 0x2111, 0x3D }, // Fraktur capital I { 0x2112, 0x4C }, // Script capital L { 0x211B, 0x52 }, // SCRIPT CAPITAL R, ℛ { 0x211C, 0x3C }, // Fraktur capital R { 0x212C, 0x42 }, // Script capital B { 0x2130, 0x45 }, // Script capital E { 0x2131, 0x46 }, // Script capital F { 0x2133, 0x4D }, // Script capital M { 0x2135, 0x40 }, // Alef symbol { 0x2190, 0x20 }, { 0x2191, 0x22 }, // UPWARDS ARROW { 0x2192, 0x21 }, { 0x2193, 0x23 }, // DOWNWARDS ARROW { 0x2194, 0x24 }, // LEFT RIGHT ARROW { 0x2195, 0x6C }, // UP DOWN ARROW { 0x2196, 0x2D }, // NORTH WEST ARROW { 0x2197, 0x25 }, // NORTH EAST ARROW { 0x2198, 0x26 }, // SOUTH EAST ARROW { 0x2199, 0x2E }, // SOUTH WEST ARROW { 0x21D0, 0x28 }, { 0x21D1, 0x2A }, { 0x21D2, 0x29 }, { 0x21D3, 0x2B }, { 0x21D4, 0x2C }, // LEFT RIGHT DOUBLE ARROW { 0x21D5, 0x6D }, // UP DOWN DOUBLE ARROW { 0x2200, 0x38 }, // FOR ALL { 0x2203, 0x39 }, // THERE EXISTS { 0x2205, 0x3B }, // EMPTY SET { 0x2207, 0x72 }, // NABLA { 0x2208, 0x32 }, // ELEMENT OF { 0x220B, 0x33 }, // CONTAINS AS MEMBER { 0x2210, 0x71 }, // N-ARY COPRODUCT { 0x2212, 0x00 }, // Minus sign { 0x2213, 0x07 }, // MINUS-OR-PLUS SIGN { 0x2216, 0x6E }, // SET MINUS { 0x2218, 0x0E }, // RING OPERATOR { 0x2219, 0x0F }, // BULLET OPERATOR { 0x221A, 0x70 }, // SQUARE ROOT { 0x221D, 0x2F }, // PROPORTIONAL TO { 0x221E, 0x31 }, // INFINITY { 0x2223, 0x6A }, // DIVIDES { 0x2225, 0x6B }, // PARALLEL TO { 0x2227, 0x5E }, // Logical and { 0x2228, 0x5F }, // Logical or { 0x2229, 0x5C }, // Intersection { 0x222A, 0x5B }, // Union { 0x222B, 0x73 }, // INTEGRAL { 0x223C, 0x18 }, // TILDE OPERATOR { 0x2240, 0x6F }, // WREATH PRODUCT { 0x2242, 0x27 }, // MINUS TILDE { 0x2243, 0x10 }, // ASYMPTOTICALLY EQUAL TO { 0x2245, 0x19 }, // APPROXIMATELY EQUAL TO { 0x224D, 0x11 }, // EQUIVALENT TO { 0x2264, 0x14 }, // LESS-THAN OR EQUAL TO { 0x2265, 0x15 }, // GREATER-THAN OR EQUAL TO { 0x226A, 0x1C }, // Much less-than { 0x226B, 0x1D }, // Much greater-than { 0x227A, 0x1E }, // PRECEDES { 0x227B, 0x1F }, // SUCCEEDS { 0x227C, 0x16 }, // PRECEDES OR EQUAL TO { 0x227D, 0x17 }, // SUCCEEDS OR EQUAL TO { 0x2282, 0x1A }, // SUBSET OF { 0x2283, 0x1B }, // SUPERSET OF { 0x2286, 0x12 }, // SUBSET OF OR EQUAL TO { 0x2287, 0x13 }, // SUPERSET OF OR EQUAL TO { 0x228E, 0x5D }, // Multiset union { 0x2291, 0x76 }, // SQUARE IMAGE OF OR EQUAL TO { 0x2292, 0x77 }, // SQUARE ORIGINAL OF OR EQUAL TO { 0x2293, 0x75 }, // SQUARE CAP { 0x2294, 0x74 }, // SQUARE CUP { 0x2295, 0x08 }, // CIRCLED PLUS { 0x2296, 0x09 }, // CIRCLED MINUS { 0x2297, 0x0A }, // CIRCLED TIMES { 0x2298, 0x0B }, // CIRCLED DIVISION SLASH { 0x2299, 0x0C }, // CIRCLED DOT OPERATOR { 0x22A2, 0x60 }, // RIGHT TACK { 0x22A3, 0x61 }, // LEFT TACK { 0x22A4, 0x3E }, // DOWN TACK { 0x22A5, 0x3F }, // UP TACK { 0x22C4, 0x05 }, // DIAMOND OPERATOR { 0x22C5, 0x01 }, // DOT OPERATOR { 0x22C6, 0x03 }, // STAR OPERATOR { 0x2308, 0x64 }, // LEFT CEILING { 0x2309, 0x65 }, // RIGHT CEILING { 0x230A, 0x62 }, // LEFT FLOOR { 0x230B, 0x63 }, // RIGHT FLOOR { 0x2329, 0x68 }, // LEFT-POINTING ANGLE BRACKET { 0x232A, 0x69 }, // RIGHT-POINTING ANGLE BRACKET { 0x25B3, 0x34 }, // WHITE UP-POINTING TRIANGLE { 0x25BD, 0x35 }, // WHITE DOWN-POINTING TRIANGLE { 0x25CB, 0x0D }, // WHITE CIRCLE { 0x2660, 0x7F }, // BLACK SPADE SUIT { 0x2661, 0x7E }, // WHITE HEART SUIT { 0x2662, 0x7D }, // WHITE DIAMOND SUIT { 0x2663, 0x7C }, // BLACK CLUB SUIT { 0x1D49C, 0x41 }, // MATHEMATICAL SCRIPT CAPITAL A, 𝒜 { 0x1D49E, 0x43 }, // MATHEMATICAL SCRIPT CAPITAL C, 𝒞 { 0x1D49F, 0x44 }, // MATHEMATICAL SCRIPT CAPITAL D, 𝒟 { 0x1D4A2, 0x47 }, // MATHEMATICAL SCRIPT CAPITAL G, 𝒢 { 0x1D4A5, 0x4A }, // MATHEMATICAL SCRIPT CAPITAL J, 𝒥 { 0x1D4A6, 0x4B }, // MATHEMATICAL SCRIPT CAPITAL K, 𝒦 { 0x1D4A9, 0x4E }, // MATHEMATICAL SCRIPT CAPITAL N, 𝒩 { 0x1D4AA, 0x4F }, // MATHEMATICAL SCRIPT CAPITAL O, 𝒪 { 0x1D4AB, 0x50 }, // MATHEMATICAL SCRIPT CAPITAL P, 𝒫 { 0x1D4AC, 0x51 }, // MATHEMATICAL SCRIPT CAPITAL Q, 𝒬 { 0x1D4AE, 0x53 }, // MATHEMATICAL SCRIPT CAPITAL S, 𝒮 { 0x1D4AF, 0x54 }, // MATHEMATICAL SCRIPT CAPITAL T, 𝒯 { 0x1D4B0, 0x55 }, // MATHEMATICAL SCRIPT CAPITAL U, 𝒰 { 0x1D4B1, 0x56 }, // MATHEMATICAL SCRIPT CAPITAL V, 𝒱 { 0x1D4B2, 0x57 }, // MATHEMATICAL SCRIPT CAPITAL W, 𝒲 { 0x1D4B3, 0x58 }, // MATHEMATICAL SCRIPT CAPITAL X, 𝒳 { 0x1D4B4, 0x59 }, // MATHEMATICAL SCRIPT CAPITAL Y, 𝒴 { 0x1D4B5, 0x5A }, // MATHEMATICAL SCRIPT CAPITAL Z, 𝒵 { 0x0000, 0x00 } }; // characters are only available in this font static ComputerModernShaper::PlainChar cmeMap[] = { { 0x220F, 0x51 }, { 0x2211, 0x50 }, { 0x222E, 0x48 }, { 0x22C0, 0x56 }, { 0x22C1, 0x57 }, { 0x22C2, 0x54 }, { 0x22C3, 0x53 }, { 0x0000, 0x00 } }; static ComputerModernShaper::PlainChar msamMap[] = { { 0x22A1, 0x00 }, //squared dot { 0x229E, 0x01 }, //squared plus { 0x22A0, 0x02 }, //squared times { 0x25A1, 0x03 }, //white square (d'Alembertian :() { 0x25A0, 0x04 }, //black square { 0x00B7, 0x05 }, //center dot { 0x25CA, 0x06 }, //lozenge { 0x29EB, 0x07 }, //black lozenge { 0x21BB, 0x08 }, //circlearrowright { 0x21BA, 0x09 }, //circlearrowleft { 0x21CC, 0x0A }, //rightleftharpoons { 0x21CB, 0x0B }, //leftrightharpoons { 0x229F, 0x0C }, //squared minus // case 0x0D:pmath=mo; //Vdash precomposedNegative(0x22A9,0x22AE); { 0x22AA, 0x0E }, //Vvdash // case 0x0F:pmath=mo; //vDash precomposedNegative(0x22A8,0x22AD); { 0x21A0, 0x10 }, //twoheadrightarrow { 0x219E, 0x11 }, //twoheadleftarrow { 0x21C7, 0x12 }, //left paired arrows { 0x21C9, 0x13 }, //right paired arrows { 0x21C8, 0x14 }, //up paired arrows { 0x21CA, 0x15 }, //down paired arrows { 0x21BE, 0x16 }, //up harpoon right barb { 0x21C2, 0x17 }, //down harpoon right barb { 0x21BF, 0x18 }, //up harpoon left barb { 0x21C3, 0x19 }, //down harpoon left barb { 0x21A3, 0x1A }, //rightarrowtail { 0x21A2, 0x1B }, //leftarrowtail { 0x21C6, 0x1C }, //left over right arrows { 0x21C4, 0x1D }, //right over left arrows { 0x21B0, 0x1E }, //uparrow left tip { 0x21B1, 0x1F }, //uparrow right tip { 0x21DD, 0x20 }, //right squiggle arrow { 0x21AD, 0x21 }, //leftright wave arrow { 0x21AB, 0x22 }, //left arrow loop { 0x21AC, 0x23 }, //right arrow loop { 0x2257, 0x24 }, //ring equal { 0x227F, 0x25 }, //succeedes equivalent // case 0x26:pmath=mo; //greater equivalent precomposedNegative(0x2273,0x2275); { 0x2267, 0x27 }, //greater over equal { 0x22B8, 0x28 }, //multimap { 0x2234, 0x29 }, //therefore { 0x2235, 0x2A }, //because { 0x2251, 0x2B }, //geometric equal { 0x225C, 0x2C }, //delta equal { 0x227E, 0x2D }, //precedes equiv // case 0x2E:pmath=mo; //less equiv precomposedNegative(0x2272,0x2274); { 0x2AB7, 0x2F }, //precapprox { 0x22DC, 0x30 }, //equal less { 0x22DD, 0x31 }, //equal greater { 0x22DE, 0x32 }, //equal preceds { 0x22DF, 0x33 }, //equal succeedes // case 0x34:pmath=mo; //precedes equal precomposedNegative(0x227C,0x22E0); { 0x2266, 0x35 }, //less over equal { 0x2A7D, 0x36 }, //leqslant // case 0x37:pmath=mo; //less greater precomposedNegative(0x2276,0x2278); { 0x2035, 0x38 }, //back prime { 0x2012, 0x39 }, //figure dash { 0x2253, 0x3A }, //image approx { 0x2252, 0x3B }, //approx image // case 0x3C:pmath=mo; //succeeds equal precomposedNegative(0x227D,0x22E1); { 0x2267, 0x3D }, //greater over equal { 0x2A7E, 0x3E }, //greater equal slant // case 0x3F:pmath=mo; //greater lessprecomposedNegative(0x2277,0x2279); { 0x228F, 0x40 }, //square subset { 0x2290, 0x41 }, //square superset // case 0x42:pmath=mo; //normal subgroup // precomposedNegative(0x22B2,0x22EA); // case 0x43:pmath=mo; //contains as normal subgroup // precomposedNegative(0x22B3,0x22EB); // case 0x44:pmath=mo; //contains as normal subgroup equal // precomposedNegative(0x22B5,0x22ED); // case 0x45:pmath=mo; //normal subgroup equal // precomposedNegative(0x22B4,0x22EC); { 0x2605, 0x46 }, //bigstar { 0x226C, 0x47 }, //between { 0x25BE, 0x48 }, //black triangle down { 0x25B8, 0x49 }, //black triangle right { 0x25C2, 0x4A }, //black triangle left { 0x20D7, 0x4B }, //combining arrow right { 0x20D6, 0x4C }, //combining arrow left { 0x25B5, 0x4D }, //white triangle up { 0x25B4, 0x4E }, //black triangle up { 0x25BF, 0x4F }, //white triangle down { 0x2256, 0x50 }, //ring in equal to { 0x22DA, 0x51 }, //less equal greater { 0x22DB, 0x52 }, //greater equal less { 0x2A8B, 0x53 }, //less eqqual greater { 0x2A8C, 0x54 }, //greater eqqual less { 0x00A5, 0x55 }, //yuan { 0x21DB, 0x56 }, //right triple arrow { 0x21DA, 0x57 }, //left triple arrow { 0x2713, 0x58 }, //check mark { 0x22BB, 0x59 }, //xor { 0x22BC, 0x5A }, //nand { 0x2306, 0x5B }, //perspective { 0x2220, 0x5C }, //angle { 0x2221, 0x5D }, //measured angle { 0x2222, 0x5E }, //arc angle { 0x221D, 0x5F }, //propto { 0x2323, 0x60 }, //ssmile { 0x2322, 0x61 }, //sfrown { 0x22D0, 0x62 }, //double subset { 0x22D1, 0x63 }, //double superset { 0x22D2, 0x64 }, //double union { 0x22D3, 0x65 }, //double intersection { 0x22CF, 0x66 }, //curly logical and { 0x22CE, 0x67 }, //curly logical or { 0x22CB, 0x68 }, //left semidirect product { 0x22CC, 0x69 }, //right semidirect product { 0x2AC5, 0x6A }, //subseteqq { 0x2AC6, 0x6B }, //supseteqq { 0x224F, 0x6C }, //difference { 0x224E, 0x6D }, //geometrical equivalent { 0x22D8, 0x6E }, //very much less { 0x22D9, 0x6F }, //very much greater { 0x231C, 0x70 }, //top left corner { 0x231D, 0x71 }, //top right corner { 0x24C7, 0x72 }, //circle R { 0x24C8, 0x73 }, //circle S { 0x22D4, 0x74 }, //pitchfork { 0x2214, 0x75 }, //dot plus { 0x223D, 0x76 }, //reversed tilde { 0x22CD, 0x77 }, //reversed tilde equal { 0x231E, 0x78 }, //bottom left corner { 0x231F, 0x79 }, //bottom right corner { 0x2720, 0x7A }, //maltese cross { 0x2201, 0x7B }, //complement { 0x22BA, 0x7C }, //intercal { 0x229A, 0x7D }, //circled ring { 0x229B, 0x7E }, //circled asterisk { 0x229D, 0x7F }, //circled dash { 0x0000, 0x00 } }; static ComputerModernShaper::PlainChar msbmMap[] = { { 0x2268, 0x00 }, //less not equal { 0x2269, 0x01 }, //greater not equal { 0x2270, 0x02 }, //not less not equal { 0x2271, 0x03 }, //not greater not equal { 0x226E, 0x04 }, //not less { 0x226F, 0x05 }, //not greater { 0x2280, 0x06 }, //not precede { 0x2281, 0x07 }, //not succceed { 0x2268, 0x08 }, //less than not equal { 0x2269, 0x09 }, //greater than not equal { 0x2270, 0x0A }, //not less not equal { 0x2271, 0x0B }, //not greater not equal { 0x2A87, 0x0C }, //less not equal { 0x2A88, 0x0D }, //greater not equal // case 0x0E:p("");p(ul2utf8(0x2AAF));p(ul2utf8(0x0338));p("");break;//not precedes not equal // case 0x0F:p("");p(ul2utf8(0x2AB0));p(ul2utf8(0x0338));p("");break;//not succeeds not equal { 0x22E7, 0x10 }, //precedes not equivalent { 0x22E8, 0x11 }, //succeeds not equivalent { 0x22E6, 0x12 }, //less not equivalent { 0x22E7, 0x13 }, //greater not equivalent // case 0x14:p("");p(ul2utf8(0x2266));p(ul2utf8(0x0338));p("");break;//not less not equal // case 0x15:p("");p(ul2utf8(0x2267));p(ul2utf8(0x0338));p("");break;//not greater not equal { 0x2AB5, 0x16 }, //precedes not equal { 0x2AB6, 0x17 }, //succeedes not equal { 0x2AB9, 0x18 }, //precedes not approx { 0x2ABA, 0x19 }, //succeeds not approx { 0x2A89, 0x1A }, //less not approx { 0x2A8A, 0x1B }, //greater not approx { 0x2241, 0x1C }, //not tilde { 0x2247, 0x1D }, //not approximate not equal { 0x2571, 0x1E }, //diagup { 0x2572, 0x1F }, //diagdown // case 0x20:p("");p(ul2utf8(0x228A));p(ul2utf8(0xFE00));p("");break;//var subset not equal // case 0x21:p("");p(ul2utf8(0x228B));p(ul2utf8(0xFE00));p("");break;//var supset not equal // case 0x22:p("");p(ul2utf8(0x2AC5));p(ul2utf8(0x0338));p("");break;//not subset not eqqual // case 0x23:p("");p(ul2utf8(0x2AC6));p(ul2utf8(0x0338));p("");break;//not superset not eqqual { 0x2ACB, 0x24 }, //subset not eqqual { 0x2ACC, 0x25 }, //superset not eqqual // case 0x26:p("");p(ul2utf8(0x2ACB));p(ul2utf8(0xFE00));p("/");break;//var subset not eqqual // case 0x27:p("");p(ul2utf8(0x2ACC));p(ul2utf8(0xFE00));p("/");break;//var superset not eqqual { 0x228A, 0x28 }, //subset not equal { 0x228B, 0x29 }, //superset not equal { 0x2288, 0x2A }, //not subset not equal { 0x2289, 0x2B }, //not superset not equal { 0x2226, 0x2C }, //not parallel { 0x2224, 0x2D }, //not divide { 0x2224, 0x2E }, //short not divide { 0x2226, 0x2F }, //short not parallel { 0x22AC, 0x30 }, //does not prove { 0x22AE, 0x31 }, //does not force { 0x22AD, 0x32 }, //not true { 0x22AF, 0x33 }, //nVDash { 0x22ED, 0x34 }, //not triangle right not equal { 0x22EC, 0x35 }, //not triangle left not equal { 0x22EA, 0x36 }, //not triangle left { 0x22EC, 0x37 }, //not triangle right { 0x219A, 0x38 }, //not left arrow { 0x219B, 0x39 }, //not right arrow { 0x21CD, 0x3A }, //not left double arrow { 0x21CF, 0x3B }, //not right double arrow { 0x21CE, 0x3C }, //not left right double arrow { 0x21AE, 0x3D }, //not left right arrow { 0x22C7, 0x3E }, //division times { 0x2205, 0x3F }, //var empty set { 0x2204, 0x40 }, //not exist { 0x2102, 0x43 }, //double C { 0x210D, 0x48 }, //double H { 0x2115, 0x4E }, //double N { 0x2119, 0x50 }, //double P { 0x211A, 0x51 }, //double Q { 0x211D, 0x52 }, //double R { 0x2124, 0x5A }, //double Z { 0x2127, 0x66 }, //mho { 0x00D0, 0x67 }, //eth { 0x2242, 0x68 }, //minus tilde { 0x2136, 0x69 }, //beth { 0x2137, 0x6A }, //gimel { 0x2138, 0x6B }, //daleth { 0x22D6, 0x6C }, //less dot { 0x22D7, 0x6D }, //greater dot { 0x22C9, 0x6E }, //up down double arrow { 0x2216, 0x6F }, //set minus { 0x2223, 0x70 }, //shortmid { 0x2225, 0x71 }, //shortparallel { 0x2216, 0x72 }, //smallsetminus // case 0x73:pmath=mob; //thicksim precomposedNegative(0x223C, 0x2241); // case 0x74:pmath=mob; //thickapprox precomposedNegative(0x2248, 0x2249); { 0x224A, 0x75 }, //approxeq { 0x2AB8, 0x76 }, //succapprox { 0x2AB7, 0x77 }, //precapprox { 0x21B6, 0x78 }, //curve arrow left { 0x21B7, 0x79 }, //curve arrow right { 0x03DD, 0x7A }, //digamma { 0x03F0, 0x7B }, //varkappa { 0x006b, 0x7C }, //bbbk { 0x210F, 0x7D }, //hslash { 0x210F, 0x7E }, //hbar { 0x03F6, 0x7F }, //backepsilon { 0x0000, 0x00 } }; static ComputerModernShaper::PlainChar32 msbmMap32[] = { { 0x1D538, 0x41 }, //double A { 0x1D538, 0x42 }, //double B { 0x1D53B, 0x44 }, //double D { 0x1D53C, 0x45 }, //double E { 0x1D53D, 0x46 }, //double F { 0x1D53E, 0x47 }, //double G { 0x1D540, 0x49 }, //double I { 0x1D541, 0x4A }, //double J { 0x1D542, 0x4B }, //double K { 0x1D543, 0x4C }, //double L { 0x1D544, 0x4D }, //double M { 0x1D546, 0x4F }, //double O { 0x1D54A, 0x53 }, //double S { 0x1D54B, 0x54 }, //double T { 0x1D54C, 0x55 }, //double U { 0x1D54D, 0x56 }, //double V { 0x1D54E, 0x57 }, //double W { 0x1D54F, 0x58 }, //double X { 0x1D550, 0x59 }, //double Y { 0x0000, 0x00 } }; #if 0 static UChar8 cmsTTFMap[] = { /* 0x00 */ 0xa1, // minus /* 0x01 */ 0xa2, // periodcentered /* 0x02 */ 0xa3, // multiply /* 0x03 */ 0xa4, // asteriskmath /* 0x04 */ 0xa5, // divide /* 0x05 */ 0xa6, // diamondmath /* 0x06 */ 0xa7, // plusminus /* 0x07 */ 0xa8, // minusplus /* 0x08 */ 0xa9, // circleplus /* 0x09 */ 0xaa, // circleminus /* 0x0a */ 0xad, // circlemultiply /* 0x0b */ 0xae, // circledivide /* 0x0c */ 0xaf, // circledot /* 0x0d */ 0xb0, // circlecopyrt /* 0x0e */ 0xb1, // openbullet /* 0x0f */ 0xb2, // bullet /* 0x10 */ 0xb3, // equivasymptotic /* 0x11 */ 0xb4, // equivalence /* 0x12 */ 0xb5, // reflexsubset /* 0x13 */ 0xb6, // reflexsuperset /* 0x14 */ 0xb7, // lessequal /* 0x15 */ 0xb8, // greaterequal /* 0x16 */ 0xb9, // precedesequal /* 0x17 */ 0xba, // followsequal /* 0x18 */ 0xbb, // similar /* 0x19 */ 0xbc, // approxequal /* 0x1a */ 0xbd, // propersubset /* 0x1b */ 0xbe, // propersuperset /* 0x1c */ 0xbf, // lessmuch /* 0x1d */ 0xc0, // greatermuch /* 0x1e */ 0xc1, // precedes /* 0x1f */ 0xc2, // follows /* 0x20 */ 0xc3, // arrowleft /* 0x21 */ 0x21, // arrowright /* 0x22 */ 0x22, // arrowup /* 0x23 */ 0x23, // arrowdown /* 0x24 */ 0x24, // arrowboth /* 0x25 */ 0x25, // arrownortheast /* 0x26 */ 0x26, // arrowsoutheast /* 0x27 */ 0x27, // similarequal /* 0x28 */ 0x28, // arrowdblleft /* 0x29 */ 0x29, // arrowdblright /* 0x2a */ 0x2a, // arrowdblup /* 0x2b */ 0x2b, // arrowdbldown /* 0x2c */ 0x2c, // arrowdblboth /* 0x2d */ 0x2d, // arrownorthwest /* 0x2e */ 0x2e, // arrowsouthwest /* 0x2f */ 0x2f, // proportional /* 0x30 */ 0x30, // prime /* 0x31 */ 0x31, // infinity /* 0x32 */ 0x32, // element /* 0x33 */ 0x33, // owner /* 0x34 */ 0x34, // triangle /* 0x35 */ 0x35, // triangleinv /* 0x36 */ 0x36, // negationslash /* 0x37 */ 0x37, // mapsto /* 0x38 */ 0x38, // universal /* 0x39 */ 0x39, // existential /* 0x3a */ 0x3a, // logicalnot /* 0x3b */ 0x3b, // emptyset /* 0x3c */ 0x3c, // Rfractur /* 0x3d */ 0x3d, // Ifractur /* 0x3e */ 0x3e, // latticetop /* 0x3f */ 0x3f, // perpendicular /* 0x40 */ 0x40, // aleph /* 0x41 */ 0x41, // A /* 0x42 */ 0x42, // B /* 0x43 */ 0x43, // C /* 0x44 */ 0x44, // D /* 0x45 */ 0x45, // E /* 0x46 */ 0x46, // F /* 0x47 */ 0x47, // G /* 0x48 */ 0x48, // H /* 0x49 */ 0x49, // I /* 0x4a */ 0x4a, // J /* 0x4b */ 0x4b, // K /* 0x4c */ 0x4c, // L /* 0x4d */ 0x4d, // M /* 0x4e */ 0x4e, // N /* 0x4f */ 0x4f, // O /* 0x50 */ 0x50, // P /* 0x51 */ 0x51, // Q /* 0x52 */ 0x52, // R /* 0x53 */ 0x53, // S /* 0x54 */ 0x54, // T /* 0x55 */ 0x55, // U /* 0x56 */ 0x56, // V /* 0x57 */ 0x57, // W /* 0x58 */ 0x58, // X /* 0x59 */ 0x59, // Y /* 0x5a */ 0x5a, // Z /* 0x5b */ 0x5b, // union /* 0x5c */ 0x5c, // intersection /* 0x5d */ 0x5d, // unionmulti /* 0x5e */ 0x5e, // logicaland /* 0x5f */ 0x5f, // logicalor /* 0x60 */ 0x60, // turnstileleft /* 0x61 */ 0x61, // turnstileright /* 0x62 */ 0x62, // floorleft /* 0x63 */ 0x63, // floorright /* 0x64 */ 0x64, // ceilingleft /* 0x65 */ 0x65, // ceilingright /* 0x66 */ 0x66, // braceleft /* 0x67 */ 0x67, // braceright /* 0x68 */ 0x68, // angbracketleft /* 0x69 */ 0x69, // angbracketright /* 0x6a */ 0x6a, // bar /* 0x6b */ 0x6b, // bardbl /* 0x6c */ 0x6c, // arrowbothv /* 0x6d */ 0x6d, // arrowdblbothv /* 0x6e */ 0x6e, // backslash /* 0x6f */ 0x6f, // wreathproduct /* 0x70 */ 0x70, // radical /* 0x71 */ 0x71, // coproduct /* 0x72 */ 0x72, // nabla /* 0x73 */ 0x73, // integral /* 0x74 */ 0x74, // unionsq /* 0x75 */ 0x75, // intersectionsq /* 0x76 */ 0x76, // subsetsqequal /* 0x77 */ 0x77, // supersetsqequal /* 0x78 */ 0x78, // section /* 0x79 */ 0x79, // dagger /* 0x7a */ 0x7a, // daggerdbl /* 0x7b */ 0x7b, // paragraph /* 0x7c */ 0x7c, // club /* 0x7d */ 0x7d, // diamond /* 0x7e */ 0x7e, // heart /* 0x7f */ 0xc4, // spade }; #endif static ComputerModernShaper::HStretchyChar hMap[] = { // N L G R { 0x2190, {CMS, 0x20}, {CMS, 0x20}, {CMS, 0x00}, {NIL, 0x00} }, { 0x2192, {CMS, 0x21}, {NIL, 0x00}, {CMS, 0x00}, {CMS, 0x21} }, { 0x2194, {CMS, 0x24}, {CMS, 0x20}, {CMS, 0x00}, {CMS, 0x21} }, { 0x21a6, {NIL, 0x00}, {CMS, 0x37}, {CMS, 0x00}, {CMS, 0x21} }, { 0x21a9, {NIL, 0x00}, {CMS, 0x20}, {CMS, 0x00}, {CMM, 0x2D} }, { 0x21aa, {NIL, 0x00}, {CMM, 0x2C}, {CMS, 0x00}, {CMS, 0x21} }, { 0x21bc, {CMM, 0x28}, {NIL, 0x00}, {CMS, 0x00}, {NIL, 0x00} }, { 0x21bd, {CMM, 0x29}, {NIL, 0x00}, {CMS, 0x00}, {NIL, 0x00} }, { 0x21c0, {CMM, 0x2A}, {NIL, 0x00}, {CMS, 0x00}, {NIL, 0x00} }, { 0x21c1, {CMM, 0x2B}, {NIL, 0x00}, {CMS, 0x00}, {NIL, 0x00} }, { 0x21d0, {CMS, 0x28}, {CMS, 0x28}, {NIL, 0x00}, {NIL, 0x00} }, { 0x21d4, {CMS, 0x2C}, {CMS, 0x28}, {NIL, 0x00}, {CMS, 0x29} }, { 0x21d2, {CMS, 0x29}, {NIL, 0x00}, {NIL, 0x00}, {CMS, 0x29} }, { 0x0000, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} } }; static ComputerModernShaper::VStretchyChar vMap[] = { // N N1 N2 N3 N4 T G M B { 0x0028, { {CMR, 0x28}, {CME, 0x00}, {CME, 0x10}, {CME, 0x12}, {CME, 0x20} }, {CME, 0x30}, {CME, 0x42}, {NIL, 0x00}, {CME, 0x40} }, { 0x0029, { {CMR, 0x29}, {CME, 0x01}, {CME, 0x11}, {CME, 0x13}, {CME, 0x21} }, {CME, 0x31}, {CME, 0x43}, {NIL, 0x00}, {CME, 0x41} }, { 0x002F, { {CMR, 0x2F}, {CME, 0x0E}, {CME, 0x2E}, {CME, 0x1E}, {CME, 0x2C} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x005B, { {CMR, 0x5B}, {CME, 0x02}, {CME, 0x68}, {CME, 0x14}, {CME, 0x22} }, {CME, 0x32}, {CME, 0x36}, {NIL, 0x00}, {CME, 0x34} }, { 0x005D, { {CMR, 0x5D}, {CME, 0x03}, {CME, 0x69}, {CME, 0x15}, {CME, 0x23} }, {CME, 0x33}, {CME, 0x37}, {NIL, 0x00}, {CME, 0x35} }, { 0x007B, { {CMS, 0x66}, {CME, 0x08}, {CME, 0x6E}, {CME, 0x1A}, {CME, 0x28} }, {CME, 0x38}, {CME, 0x3E}, {CME, 0x3C}, {CME, 0x3A} }, { 0x007D, { {CMS, 0x67}, {CME, 0x09}, {CME, 0x6F}, {CME, 0x1B}, {CME, 0x29} }, {CME, 0x39}, {CME, 0x3E}, {CME, 0x3D}, {CME, 0x3B} }, { 0x2191, { {CMS, 0x22}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, {CME, 0x78}, {CME, 0x3F}, {NIL, 0x00}, {NIL, 0x00} }, { 0x2193, { {CMS, 0x23}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {CME, 0x3F}, {NIL, 0x00}, {CME, 0x79} }, { 0x2195, { {CMS, 0x6C}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, {CME, 0x78}, {CME, 0x3F}, {NIL, 0x00}, {CME, 0x79} }, { 0x21d1, { {CMS, 0x2a}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, {CME, 0x7E}, {CME, 0x77}, {NIL, 0x00}, {NIL, 0x00} }, { 0x21d3, { {CMS, 0x2b}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {CME, 0x77}, {NIL, 0x00}, {CME, 0x7F} }, { 0x21d5, { {CMS, 0x6D}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, {CME, 0x7E}, {CME, 0x77}, {NIL, 0x00}, {CME, 0x7F} }, { 0x220F, { {NIL, 0x00}, {CME, 0x51}, {CME, 0x59}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x2210, { {CMS, 0x71}, {CME, 0x60}, {CME, 0x61}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x2211, { {NIL, 0x00}, {CME, 0x50}, {CME, 0x58}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x2216, { {CMS, 0x6E}, {CME, 0x0F}, {CME, 0x2F}, {CME, 0x1F}, {CME, 0x2D} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x221A, { {CMS, 0x70}, {CME, 0x70}, {CME, 0x71}, {CME, 0x72}, {CME, 0x73} }, {CME, 0x76}, {CME, 0x75}, {NIL, 0x00}, {CME, 0x74} }, { 0x2223, { {CMS, 0x6A}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {CME, 0x0C}, {NIL, 0x00}, {NIL, 0x00} }, { 0x2225, { {CMS, 0x6B}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {CME, 0x0D}, {NIL, 0x00}, {NIL, 0x00} }, { 0x2227, { {CMS, 0x5E}, {CME, 0x56}, {CME, 0x5E}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x2228, { {CMS, 0x5F}, {CME, 0x57}, {CME, 0x5F}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x222B, { {CMS, 0x73}, {CME, 0x52}, {CME, 0x5A}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x222E, { {NIL, 0x00}, {CME, 0x48}, {CME, 0x49}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x228E, { {CMS, 0x5D}, {CME, 0x55}, {CME, 0x5D}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x2294, { {CMS, 0x74}, {CME, 0x46}, {CME, 0x47}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x2295, { {CMS, 0x08}, {CME, 0x4C}, {CME, 0x4D}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x2297, { {CMS, 0x0A}, {CME, 0x4E}, {CME, 0x4F}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x2299, { {CMS, 0x0C}, {CME, 0x4A}, {CME, 0x4B}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, // BEWARE: 22C2 and 22C3 are N-ARY union/intersection { 0x22C2, { {NIL, 0x00}, {CME, 0x54}, {CME, 0x5C}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x22C3, { {NIL, 0x00}, {CME, 0x53}, {CME, 0x5B}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x2308, { {CMS, 0x64}, {CME, 0x06}, {CME, 0x6C}, {CME, 0x18}, {CME, 0x26} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x2309, { {CMS, 0x65}, {CME, 0x07}, {CME, 0x6D}, {CME, 0x19}, {CME, 0x27} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x230A, { {CMS, 0x62}, {CME, 0x04}, {CME, 0x6A}, {CME, 0x16}, {CME, 0x24} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x230B, { {CMS, 0x63}, {CME, 0x05}, {CME, 0x6B}, {CME, 0x17}, {CME, 0x25} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x2329, { {CMS, 0x68}, {CME, 0x0A}, {CME, 0x44}, {CME, 0x1C}, {CME, 0x2A} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x232A, { {CMS, 0x69}, {CME, 0x0B}, {CME, 0x45}, {CME, 0x1D}, {CME, 0x2B} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, { 0x0000, { {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} }, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00}, {NIL, 0x00} } }; // TODO: add extra wide hat and tilde from MS?M fonts, but modify shapeBigCharH too! static ComputerModernShaper::HBigChar wideHatMap = { 0x0302, { {CME, 0x62}, {CME, 0x63}, {CME, 0x64}, {MSBM, 0x5B}, {MSBM, 0x5C} } }; static ComputerModernShaper::HBigChar wideTildeMap = { 0x0303, { {CME, 0x65}, {CME, 0x66}, {CME, 0x67}, {MSBM, 0x5D}, {MSBM, 0x5E} } }; #define WIDEHAT 0x0302 #define WIDETILDE 0x0303 #define OVERLINE 0x0305 #define UNDERLINE 0x0332 #define OVERBRACE 0XFE37 #define UNDERBRACE 0XFE38 static Char16 special[] = { WIDEHAT, WIDETILDE, OVERLINE, UNDERLINE, OVERBRACE, UNDERBRACE }; static ComputerModernShaper::CombiningChar combining[] = { { 0x0300, {CMR, 0x12} }, // COMBINING GRAVE ACCENT { 0x0301, {CMR, 0x13} }, // COMBINING ACUTE ACCENT { 0x0302, {CMR, 0x5E} }, // COMBINING CIRCUMFLEX ACCENT { 0x0303, {CMR, 0x7E} }, // COMBINING TILDE { 0x0304, {CMR, 0x16} }, // COMBINING BAR { 0x0305, {CMR, 0x16} }, // COMBINING OVERLINE { 0x0306, {CMR, 0x15} }, // COMBINING BREVE { 0x0307, {CMR, 0x5F} }, // COMBINING DOT ABOVE { 0x0308, {CMR, 0x7F} }, // COMBINING DIAERESIS { 0x030A, {CMR, 0x17} }, // COMBINING RING ABOVE { 0x030B, {CMR, 0x7D} }, // COMBINING DOUBLE ACUTE ACCENT { 0x030C, {CMR, 0x14} }, // COMBINING CARON { 0x0327, {CMR, 0x18} }, // COMBINING CEDILLA }; #if 0 static UChar8 cmexTTFMap[] = { /* 0x00 */ 0xa1, // parenleftbig /* 0x01 */ 0xa2, // parenrightbig /* 0x02 */ 0xa3, // bracketleftbig /* 0x03 */ 0xa4, // bracketrightbig /* 0x04 */ 0xa5, // floorleftbig /* 0x05 */ 0xa6, // floorrightbig /* 0x06 */ 0xa7, // ceilingleftbig /* 0x07 */ 0xa8, // ceilingrightbig /* 0x08 */ 0xa9, // braceleftbig /* 0x09 */ 0xaa, // bracerightbig /* 0x0a */ 0xad, // angbracketleftbig /* 0x0b */ 0xae, // angbracketrightbig /* 0x0c */ 0xaf, // vextendsingle /* 0x0d */ 0xb0, // vextenddouble /* 0x0e */ 0xb1, // slashbig /* 0x0f */ 0xb2, // backslashbig /* 0x10 */ 0xb3, // parenleftBig /* 0x11 */ 0xb4, // parenrightBig /* 0x12 */ 0xb5, // parenleftbigg /* 0x13 */ 0xb6, // parenrightbigg /* 0x14 */ 0xb7, // bracketleftbigg /* 0x15 */ 0xb8, // bracketrightbigg /* 0x16 */ 0xb9, // floorleftbigg /* 0x17 */ 0xba, // floorrightbigg /* 0x18 */ 0xbb, // ceilingleftbigg /* 0x19 */ 0xbc, // ceilingrightbigg /* 0x1a */ 0xbd, // braceleftbigg /* 0x1b */ 0xbe, // bracerightbigg /* 0x1c */ 0xbf, // angbracketleftbigg /* 0x1d */ 0xc0, // angbracketrightbigg /* 0x1e */ 0xc1, // slashbigg /* 0x1f */ 0xc2, // backslashbigg /* 0x20 */ 0xc3, // parenleftBigg /* 0x21 */ 0x21, // parenrightBigg /* 0x22 */ 0x22, // bracketleftBigg /* 0x23 */ 0x23, // bracketrightBigg /* 0x24 */ 0x24, // floorleftBigg /* 0x25 */ 0x25, // floorrightBigg /* 0x26 */ 0x26, // ceilingleftBigg /* 0x27 */ 0x27, // ceilingrightBigg /* 0x28 */ 0x28, // braceleftBigg /* 0x29 */ 0x29, // bracerightBigg /* 0x2a */ 0x2a, // angbracketleftBigg /* 0x2b */ 0x2b, // angbracketrightBigg /* 0x2c */ 0x2c, // slashBigg /* 0x2d */ 0x2d, // backslashBigg /* 0x2e */ 0x2e, // slashBig /* 0x2f */ 0x2f, // backslashBig /* 0x30 */ 0x30, // parenlefttp /* 0x31 */ 0x31, // parenrighttp /* 0x32 */ 0x32, // bracketlefttp /* 0x33 */ 0x33, // bracketrighttp /* 0x34 */ 0x34, // bracketleftbt /* 0x35 */ 0x35, // bracketrightbt /* 0x36 */ 0x36, // bracketleftex /* 0x37 */ 0x37, // bracketrightex /* 0x38 */ 0x38, // bracelefttp /* 0x39 */ 0x39, // bracerighttp /* 0x3a */ 0x3a, // braceleftbt /* 0x3b */ 0x3b, // bracerightbt /* 0x3c */ 0x3c, // braceleftmid /* 0x3d */ 0x3d, // bracerightmid /* 0x3e */ 0x3e, // braceex /* 0x3f */ 0x3f, // arrowvertex /* 0x40 */ 0x40, // parenleftbt /* 0x41 */ 0x41, // parenrightbt /* 0x42 */ 0x42, // parenleftex /* 0x43 */ 0x43, // parenrightex /* 0x44 */ 0x44, // angbracketleftBig /* 0x45 */ 0x45, // angbracketrightBig /* 0x46 */ 0x46, // unionsqtext /* 0x47 */ 0x47, // unionsqdisplay /* 0x48 */ 0x48, // contintegraltext /* 0x49 */ 0x49, // contintegraldisplay /* 0x4a */ 0x4a, // circledottext /* 0x4b */ 0x4b, // circledotdisplay /* 0x4c */ 0x4c, // circleplustext /* 0x4d */ 0x4d, // circleplusdisplay /* 0x4e */ 0x4e, // circlemultiplytext /* 0x4f */ 0x4f, // circlemultiplydisplay /* 0x50 */ 0x50, // summationtext /* 0x51 */ 0x51, // producttext /* 0x52 */ 0x52, // integraltext /* 0x53 */ 0x53, // uniontext /* 0x54 */ 0x54, // intersectiontext /* 0x55 */ 0x55, // unionmultitext /* 0x56 */ 0x56, // logicalandtext /* 0x57 */ 0x57, // logicalortext /* 0x58 */ 0x58, // summationdisplay /* 0x59 */ 0x59, // productdisplay /* 0x5a */ 0x5a, // integraldisplay /* 0x5b */ 0x5b, // uniondisplay /* 0x5c */ 0x5c, // intersectiondisplay /* 0x5d */ 0x5d, // unionmultidisplay /* 0x5e */ 0x5e, // logicalanddisplay /* 0x5f */ 0x5f, // logicalordisplay /* 0x60 */ 0x60, // coproducttext /* 0x61 */ 0x61, // coproductdisplay /* 0x62 */ 0x62, // hatwide /* 0x63 */ 0x63, // hatwider /* 0x64 */ 0x64, // hatwidest /* 0x65 */ 0x65, // tildewide /* 0x66 */ 0x66, // tildewider /* 0x67 */ 0x67, // tildewidest /* 0x68 */ 0x68, // bracketleftBig /* 0x69 */ 0x69, // bracketrightBig /* 0x6a */ 0x6a, // floorleftBig /* 0x6b */ 0x6b, // floorrightBig /* 0x6c */ 0x6c, // ceilingleftBig /* 0x6d */ 0x6d, // ceilingrightBig /* 0x6e */ 0x6e, // braceleftBig /* 0x6f */ 0x6f, // bracerightBig /* 0x70 */ 0x70, // radicalbig /* 0x71 */ 0x71, // radicalBig /* 0x72 */ 0x72, // radicalbigg /* 0x73 */ 0x73, // radicalBigg /* 0x74 */ 0x74, // radicalbt /* 0x75 */ 0x75, // radicalvertex /* 0x76 */ 0x76, // radicaltp /* 0x77 */ 0x77, // arrowvertexdbl /* 0x78 */ 0x78, // arrowtp /* 0x79 */ 0x79, // arrowbt /* 0x7a */ 0x7a, // bracehtipdownleft /* 0x7b */ 0x7b, // bracehtipdownright /* 0x7c */ 0x7c, // bracehtipupleft /* 0x7d */ 0x7d, // bracehtipupright /* 0x7e */ 0x7e, // arrowdbltp /* 0x7f */ 0xc4, // arrowdblbt }; #endif struct FontDesc { MathVariant variant; ComputerModernFamily::FontNameId name; }; static FontDesc variantDesc[] = { { NORMAL_VARIANT, ComputerModernFamily::FN_CMR }, { BOLD_VARIANT, ComputerModernFamily::FN_CMB }, { ITALIC_VARIANT, ComputerModernFamily::FN_CMTI }, { BOLD_ITALIC_VARIANT, ComputerModernFamily::FN_CMBXTI }, { SANS_SERIF_VARIANT, ComputerModernFamily::FN_CMSS }, { BOLD_SANS_SERIF_VARIANT, ComputerModernFamily::FN_CMSSBX }, { SANS_SERIF_ITALIC_VARIANT, ComputerModernFamily::FN_CMSSI }, { MONOSPACE_VARIANT, ComputerModernFamily::FN_CMTT } }; inline UChar8 makeFontId(ComputerModernFamily::FontEncId id, MathVariant variant = NORMAL_VARIANT) { assert(ComputerModernFamily::validFontEncId(id)); assert(validMathVariant(variant)); return id | ((variant - NORMAL_VARIANT) << 4); } inline ComputerModernFamily::FontEncId encIdOfFontId(UChar8 id) { return ComputerModernFamily::FontEncId(id & 0x0f); } inline MathVariant variantOfFontId(UChar8 id) { return MathVariant((id >> 4) + NORMAL_VARIANT); } UChar8 ComputerModernShaper::toTTFGlyphIndex(ComputerModernFamily::FontEncId name, UChar8 index) { static UChar8 ttfMap[] = { /* 0x00 */ 0xa1, /* 0x01 */ 0xa2, /* 0x02 */ 0xa3, /* 0x03 */ 0xa4, /* 0x04 */ 0xa5, /* 0x05 */ 0xa6, /* 0x06 */ 0xa7, /* 0x07 */ 0xa8, /* 0x08 */ 0xa9, /* 0x09 */ 0xaa, /* 0x0a */ 0xad, /* 0x0b */ 0xae, /* 0x0c */ 0xaf, /* 0x0d */ 0xb0, /* 0x0e */ 0xb1, /* 0x0f */ 0xb2, /* 0x10 */ 0xb3, /* 0x11 */ 0xb4, /* 0x12 */ 0xb5, /* 0x13 */ 0xb6, /* 0x14 */ 0xb7, /* 0x15 */ 0xb8, /* 0x16 */ 0xb9, /* 0x17 */ 0xba, /* 0x18 */ 0xbb, /* 0x19 */ 0xbc, /* 0x1a */ 0xbd, /* 0x1b */ 0xbe, /* 0x1c */ 0xbf, /* 0x1d */ 0xc0, /* 0x1e */ 0xc1, /* 0x1f */ 0xc2, /* 0x20 */ 0xc3, /* 0x21 */ 0x21, /* 0x22 */ 0x22, /* 0x23 */ 0x23, /* 0x24 */ 0x24, /* 0x25 */ 0x25, /* 0x26 */ 0x26, /* 0x27 */ 0x27, /* 0x28 */ 0x28, /* 0x29 */ 0x29, /* 0x2a */ 0x2a, /* 0x2b */ 0x2b, /* 0x2c */ 0x2c, /* 0x2d */ 0x2d, /* 0x2e */ 0x2e, /* 0x2f */ 0x2f, /* 0x30 */ 0x30, /* 0x31 */ 0x31, /* 0x32 */ 0x32, /* 0x33 */ 0x33, /* 0x34 */ 0x34, /* 0x35 */ 0x35, /* 0x36 */ 0x36, /* 0x37 */ 0x37, /* 0x38 */ 0x38, /* 0x39 */ 0x39, /* 0x3a */ 0x3a, /* 0x3b */ 0x3b, /* 0x3c */ 0x3c, /* 0x3d */ 0x3d, /* 0x3e */ 0x3e, /* 0x3f */ 0x3f, /* 0x40 */ 0x40, /* 0x41 */ 0x41, /* 0x42 */ 0x42, /* 0x43 */ 0x43, /* 0x44 */ 0x44, /* 0x45 */ 0x45, /* 0x46 */ 0x46, /* 0x47 */ 0x47, /* 0x48 */ 0x48, /* 0x49 */ 0x49, /* 0x4a */ 0x4a, /* 0x4b */ 0x4b, /* 0x4c */ 0x4c, /* 0x4d */ 0x4d, /* 0x4e */ 0x4e, /* 0x4f */ 0x4f, /* 0x50 */ 0x50, /* 0x51 */ 0x51, /* 0x52 */ 0x52, /* 0x53 */ 0x53, /* 0x54 */ 0x54, /* 0x55 */ 0x55, /* 0x56 */ 0x56, /* 0x57 */ 0x57, /* 0x58 */ 0x58, /* 0x59 */ 0x59, /* 0x5a */ 0x5a, /* 0x5b */ 0x5b, /* 0x5c */ 0x5c, /* 0x5d */ 0x5d, /* 0x5e */ 0x5e, /* 0x5f */ 0x5f, /* 0x60 */ 0x60, /* 0x61 */ 0x61, /* 0x62 */ 0x62, /* 0x63 */ 0x63, /* 0x64 */ 0x64, /* 0x65 */ 0x65, /* 0x66 */ 0x66, /* 0x67 */ 0x67, /* 0x68 */ 0x68, /* 0x69 */ 0x69, /* 0x6a */ 0x6a, /* 0x6b */ 0x6b, /* 0x6c */ 0x6c, /* 0x6d */ 0x6d, /* 0x6e */ 0x6e, /* 0x6f */ 0x6f, /* 0x70 */ 0x70, /* 0x71 */ 0x71, /* 0x72 */ 0x72, /* 0x73 */ 0x73, /* 0x74 */ 0x74, /* 0x75 */ 0x75, /* 0x76 */ 0x76, /* 0x77 */ 0x77, /* 0x78 */ 0x78, /* 0x79 */ 0x79, /* 0x7a */ 0x7a, /* 0x7b */ 0x7b, /* 0x7c */ 0x7c, /* 0x7d */ 0x7d, /* 0x7e */ 0x7e, /* 0x7f */ 0xc4, }; assert(index < sizeof(ttfMap)); return ttfMap[index]; } ComputerModernShaper::ComputerModernShaper(const SmartPtr& l, const SmartPtr& conf) : postShapingMode(POST_SHAPING_NEVER), family(ComputerModernFamily::create(l, conf)) { } ComputerModernShaper::~ComputerModernShaper() { } bool ComputerModernShaper::setPostShapingMode(const String& m) { if (m == "never") setPostShapingMode(POST_SHAPING_NEVER); else if (m == "always") setPostShapingMode(POST_SHAPING_ALWAYS); else if (m == "math") setPostShapingMode(POST_SHAPING_MATH); else if (m == "text") setPostShapingMode(POST_SHAPING_TEXT); else return false; return true; } void ComputerModernShaper::registerShaper(const SmartPtr& sm, unsigned shaperId) { assert(sm); for (unsigned j = 0; j < sizeof(variantDesc) / sizeof(FontDesc); j++) for (unsigned i = 0; cmrMap[i].ch; i++) { const Char32 vch = mapMathVariant(variantDesc[j].variant, cmrMap[i].ch); if (family->fontEnabled(variantDesc[j].name) && (variantDesc[j].variant == NORMAL_VARIANT || vch != cmrMap[i].ch)) sm->registerChar(vch, GlyphSpec(shaperId, makeFontId(ComputerModernFamily::encIdOfFontNameId(variantDesc[j].name), variantDesc[j].variant), cmrMap[i].index)); } for (unsigned i = 0; cmmMap[i].ch; i++) { const Char32 ch = cmmMap[i].ch; const Char32 ch1 = mapMathVariant(ITALIC_VARIANT, ch); if (family->fontEnabled(ComputerModernFamily::FN_CMMI)) { if (ch1 != ch) sm->registerChar(ch1, GlyphSpec(shaperId, makeFontId(ComputerModernFamily::FE_CMMI, ITALIC_VARIANT), cmmMap[i].index)); else sm->registerChar(ch, GlyphSpec(shaperId, makeFontId(ComputerModernFamily::FE_CMMI, NORMAL_VARIANT), cmmMap[i].index)); } const Char32 ch2 = mapMathVariant(BOLD_VARIANT, ch); if (ch2 != ch && family->fontEnabled(ComputerModernFamily::FN_CMMIB)) sm->registerChar(ch2, GlyphSpec(shaperId, makeFontId(ComputerModernFamily::FE_CMMI, BOLD_VARIANT), cmmMap[i].index)); const Char32 ch3 = mapMathVariant(BOLD_ITALIC_VARIANT, ch); if (ch3 != ch && ch3 != ch && family->fontEnabled(ComputerModernFamily::FN_CMMIB)) sm->registerChar(ch3, GlyphSpec(shaperId, makeFontId(ComputerModernFamily::FE_CMMI, BOLD_ITALIC_VARIANT), cmmMap[i].index)); } for (unsigned i = 0; cmsMap[i].ch; i++) { const Char32 ch = cmsMap[i].ch; const Char32 vch = mapMathVariant(BOLD_VARIANT, ch); if (family->fontEnabled(ComputerModernFamily::FN_CMSY)) sm->registerChar(ch, GlyphSpec(shaperId, makeFontId(ComputerModernFamily::FE_CMSY), cmsMap[i].index)); if (family->fontEnabled(ComputerModernFamily::FN_CMBSY) && vch != ch) sm->registerChar(vch, GlyphSpec(shaperId, makeFontId(ComputerModernFamily::FE_CMSY, BOLD_VARIANT), cmsMap[i].index)); } for (unsigned i = 0; cmeMap[i].ch; i++) { const Char32 ch = cmeMap[i].ch; if (family->fontEnabled(ComputerModernFamily::FN_CMEX)) sm->registerChar(ch, GlyphSpec(shaperId, makeFontId(ComputerModernFamily::FE_CMEX), cmeMap[i].index)); } for (unsigned i = 0; msamMap[i].ch; i++) { const Char32 ch = msamMap[i].ch; if (family->fontEnabled(ComputerModernFamily::FN_MSAM)) sm->registerChar(ch, GlyphSpec(shaperId, makeFontId(ComputerModernFamily::FE_MSAM), msamMap[i].index)); } for (unsigned i = 0; msbmMap[i].ch; i++) { const Char32 ch = msbmMap[i].ch; if (family->fontEnabled(ComputerModernFamily::FN_MSBM)) sm->registerChar(ch, GlyphSpec(shaperId, makeFontId(ComputerModernFamily::FE_MSBM), msbmMap[i].index)); } for (unsigned i = 0; msbmMap32[i].ch; i++) { const Char32 ch = msbmMap32[i].ch; if (family->fontEnabled(ComputerModernFamily::FN_MSBM)) sm->registerChar(ch, GlyphSpec(shaperId, makeFontId(ComputerModernFamily::FE_MSBM), msbmMap32[i].index)); } for (unsigned i = 0; vMap[i].ch; i++) sm->registerStretchyChar(vMap[i].ch, GlyphSpec(shaperId, makeFontId(ComputerModernFamily::FE_V_STRETCHY), i)); for (unsigned i = 0; hMap[i].ch; i++) sm->registerStretchyChar(hMap[i].ch, GlyphSpec(shaperId, makeFontId(ComputerModernFamily::FE_H_STRETCHY), i)); for (unsigned i = 0; i < sizeof(special) / sizeof(Char16); i++) sm->registerStretchyChar(special[i], GlyphSpec(shaperId, makeFontId(ComputerModernFamily::FE_SPECIAL_STRETCHY), 0)); for (unsigned i = 0; i < sizeof(combining) / sizeof(ComputerModernShaper::CombiningChar); i++) sm->registerChar(combining[i].ch, GlyphSpec(shaperId, makeFontId(ComputerModernFamily::FE_COMBINING), i)); } void ComputerModernShaper::unregisterShaper(const SmartPtr&, unsigned) { // nothing to do??? } void ComputerModernShaper::shape(ShapingContext& context) const { for (unsigned n = context.chunkSize(); n > 0; n--) { bool res = false; const ComputerModernFamily::FontEncId encId = encIdOfFontId(context.getSpec().getFontId()); switch (encId) { case ComputerModernFamily::FE_COMBINING: res = shapeCombiningChar(context); break; case ComputerModernFamily::FE_H_STRETCHY: res = shapeStretchyCharH(context); break; case ComputerModernFamily::FE_V_STRETCHY: res = shapeStretchyCharV(context); break; case ComputerModernFamily::FE_SPECIAL_STRETCHY: res = shapeSpecialStretchyChar(context); break; default: res = shapeChar(context, encId); break; } if (!res) break; switch (getPostShapingMode()) { case POST_SHAPING_ALWAYS: postShape(context); break; case POST_SHAPING_MATH: if (context.inMathMode()) postShape(context); break; case POST_SHAPING_TEXT: if (!context.inMathMode()) postShape(context); break; case POST_SHAPING_NEVER: break; default: assert(false); } } } void ComputerModernShaper::postShape(ShapingContext&) const { /* do nothing */ } bool ComputerModernShaper::shapeChar(ShapingContext& context, ComputerModernFamily::FontEncId encId) const { const MathVariant hardVariant = variantOfFontId(context.getSpec().getFontId()); const MathVariant softVariant = context.getMathVariant(); const MathVariant variant = (hardVariant != NORMAL_VARIANT) ? hardVariant : softVariant; context.pushArea(1, getGlyphArea(variant, encId, context.getSpec().getGlyphId(), context.getSize())); return true; } bool ComputerModernShaper::shapeStretchyCharV(ShapingContext& context) const { const MathVariant variant = context.getMathVariant(); const SmartPtr factory = context.getFactory(); const scaled size = context.getSize(); const scaled span = context.getVSpan() - (1 * size) / 10; // use tex formula const VStretchyChar& charSpec = vMap[context.getSpec().getGlyphId()]; AreaRef normal = 0; for (unsigned i = 0; i < 5; i++) if (AreaRef tryNormal = getGlyphArea(variant, charSpec.normal[i], size)) { if (tryNormal->box().verticalExtent() >= span) { context.pushArea(1, tryNormal); return true; } else normal = tryNormal; } AreaRef top = getGlyphArea(variant, charSpec.top, size); AreaRef glue = getGlyphArea(variant, charSpec.glue, size); AreaRef middle = getGlyphArea(variant, charSpec.middle, size); AreaRef bottom = getGlyphArea(variant, charSpec.bottom, size); context.pushArea(1, composeStretchyCharV(factory, normal, top, glue, middle, bottom, span)); return true; } bool ComputerModernShaper::shapeStretchyCharH(ShapingContext& context) const { const MathVariant variant = context.getMathVariant(); const SmartPtr factory = context.getFactory(); const scaled size = context.getSize(); const scaled span = context.getHSpan() - (1 * size) / 10; // use tex formula also for H? const HStretchyChar& charSpec = hMap[context.getSpec().getGlyphId()]; AreaRef normal = getGlyphArea(variant, charSpec.normal, size); AreaRef left = getGlyphArea(variant, charSpec.left, size); AreaRef glue = getGlyphArea(variant, charSpec.glue, size); AreaRef right = getGlyphArea(variant, charSpec.right, size); context.pushArea(1, composeStretchyCharH(factory, normal, left, glue, right, span)); return true; } bool ComputerModernShaper::shapeHorizontalBar(ShapingContext& context) const { const MathVariant variant = context.getMathVariant(); const SmartPtr factory = context.getFactory(); const scaled size = context.getSize(); const scaled span = context.getHSpan(); const AreaRef sqrt = getGlyphArea(variant, ComputerModernFamily::FE_CMEX, 0x70, size); const scaled thickness = sqrt->box().height; std::vector barC; barC.reserve(2); barC.push_back(factory->verticalSpace(thickness, 0)); barC.push_back(factory->horizontalSpace(span)); context.pushArea(1, factory->ink(factory->horizontalArray(barC))); return true; } bool ComputerModernShaper::shapeHorizontalBrace(ShapingContext& context) const { const MathVariant variant = context.getMathVariant(); const SmartPtr factory = context.getFactory(); const scaled size = context.getSize(); const scaled span = context.getHSpan() - (1 * size) / 10; AreaRef tipDL = getGlyphArea(variant, ComputerModernFamily::FE_CMEX, 0x7a, size); AreaRef tipDR = getGlyphArea(variant, ComputerModernFamily::FE_CMEX, 0x7b, size); AreaRef tipUL = getGlyphArea(variant, ComputerModernFamily::FE_CMEX, 0x7c, size); AreaRef tipUR = getGlyphArea(variant, ComputerModernFamily::FE_CMEX, 0x7d, size); const scaled thickness = tipDL->box().height; const scaled fixedWidth = tipDL->box().width + tipDR->box().width + tipUL->box().width + tipUR->box().width; const scaled barWidth = std::max(scaled::zero(), span - fixedWidth); std::vector barC; barC.reserve(2); barC.push_back(factory->verticalSpace(thickness, 0)); barC.push_back(factory->horizontalSpace(barWidth / 2)); const AreaRef bar = (barWidth > scaled::zero()) ? factory->ink(factory->horizontalArray(barC)) : 0; std::vector c; c.reserve(7); c.push_back(factory->verticalSpace(3 * thickness, 2 * thickness)); switch (context.thisChar()) { case UNDERBRACE: c.push_back(tipUL); if (bar) c.push_back(bar); c.push_back(tipDR); c.push_back(tipDL); if (bar) c.push_back(bar); c.push_back(tipUR); break; case OVERBRACE: c.push_back(tipDL); if (bar) c.push_back(bar); c.push_back(tipUR); c.push_back(tipUL); if (bar) c.push_back(bar); c.push_back(tipDR); break; default: assert(false); } context.pushArea(1, factory->horizontalArray(c)); return true; } bool ComputerModernShaper::shapeBigCharH(ShapingContext& context, const ComputerModernShaper::HBigChar& map) const { const MathVariant variant = context.getMathVariant(); const SmartPtr factory = context.getFactory(); const scaled size = context.getSize(); const scaled span = context.getHSpan() - (1 * size) / 10; const AreaRef ex = getGlyphArea(variant, ComputerModernFamily::FE_CMMI, 'x', size); std::vector accent; accent.reserve(2); AreaRef accentGlyph; for (unsigned i = 0; i < 5; i++) { AreaRef bigger = getGlyphArea(variant, map.big[i], size); if (!bigger) break; accentGlyph = bigger; if (accentGlyph && accentGlyph->box().width >= span) break; } assert(accentGlyph); accent.push_back(factory->verticalSpace(-ex->box().height, 0)); accent.push_back(factory->shift(accentGlyph, -ex->box().height)); context.pushArea(1, factory->verticalArray(accent, 1)); return true; } bool ComputerModernShaper::shapeSpecialStretchyChar(ShapingContext& context) const { switch (context.thisChar()) { case WIDEHAT: return shapeBigCharH(context, wideHatMap); case WIDETILDE: return shapeBigCharH(context, wideTildeMap); case OVERLINE: case UNDERLINE: return shapeHorizontalBar(context); case OVERBRACE: case UNDERBRACE: return shapeHorizontalBrace(context); default: assert(false); /* NOT IMPLEMENTED */ return false; } } #include bool ComputerModernShaper::shapeCombiningChar(ShapingContext& context) const { const MathVariant variant = context.getMathVariant(); const SmartPtr factory = context.getFactory(); const scaled size = context.getSize(); const CombiningChar& charSpec = combining[context.getSpec().getGlyphId()]; if (context.nAreas() == 0) { context.pushArea(1, getGlyphArea(variant, ComputerModernFamily::FontEncId(charSpec.spec.fontEnc), charSpec.spec.index, size)); return true; } CharIndex n; const AreaRef base = context.popArea(n); const AreaRef accentGlyph = getGlyphArea(variant, ComputerModernFamily::FontEncId(charSpec.spec.fontEnc), charSpec.spec.index, size); AreaRef accent = NULL; AreaRef under = NULL; scaled dx; scaled dy; scaled dxUnder; // The code "0x18" rappresent the index of Cedilla, that is the only combining char below. // This is not general condition. if (charSpec.spec.index == 0x18) { under = accentGlyph; computeCombiningCharOffsetsBelow(base, under, dxUnder); } else { accent = accentGlyph; computeCombiningCharOffsetsAbove(base, accent, dx, dy); } context.pushArea(n + 1, factory->combinedGlyph(base, accent, under, dx, dy, dxUnder)); return true; } AreaRef ComputerModernShaper::getGlyphArea(MathVariant variant, const GlyphIndex& glyph, const scaled& size) const { if (glyph.valid()) return getGlyphArea(variant, ComputerModernFamily::FontEncId(glyph.fontEnc), glyph.index, size); else return 0; } AreaRef ComputerModernShaper::getGlyphArea(MathVariant variant, ComputerModernFamily::FontEncId encId, UChar8 index, const scaled& size) const { scaled finalSize = size; ComputerModernFamily::FontSizeId designSize; const ComputerModernFamily::FontNameId fontNameId = family->findFont(variant, encId, finalSize, designSize); if (fontNameId != ComputerModernFamily::FN_NIL) return getGlyphArea(fontNameId, designSize, index, finalSize.toInt()); else return 0; } gtkmathview-0.8.0/src/backend/common/TFMGlyphArea.hh0000644000175000017500000000227010661271104017203 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TFMGlyphArea_hh__ #define __TFMGlyphArea_hh__ #include "GlyphArea.hh" class GMV_MathView_EXPORT TFMGlyphArea : public GlyphArea { protected: TFMGlyphArea(const SmartPtr&); virtual ~TFMGlyphArea(); public: SmartPtr getFont(void) const; private: SmartPtr font; }; #endif // __TFMGlyphArea_hh__ gtkmathview-0.8.0/src/backend/common/HideArea.cc0000644000175000017500000000172410661271104016413 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "HideArea.hh" void HideArea::render(class RenderingContext&, const scaled&, const scaled&) const { } gtkmathview-0.8.0/src/backend/common/StandardSymbolsShaper.cc0000644000175000017500000003721710661271104021233 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathVariant.hh" #include "MathVariantMap.hh" #include "ShaperManager.hh" #include "MathGraphicDevice.hh" #include "MathMLElement.hh" #include "StandardSymbolsShaper.hh" #include "ShapingContext.hh" struct GlyphMap { Char8 index; Char16 ch; }; GlyphMap symbolMap[] = { { 0x20, 0x0020 }, // SPACE // space { 0x21, 0x0021 }, // EXCLAMATION MARK // exclam { 0x22, 0x2200 }, // FOR ALL // universal { 0x23, 0x0023 }, // NUMBER SIGN // numbersign { 0x24, 0x2203 }, // THERE EXISTS // existential { 0x25, 0x0025 }, // PERCENT SIGN // percent { 0x26, 0x0026 }, // AMPERSAND // ampersand { 0x27, 0x220B }, // CONTAINS AS MEMBER // suchthat { 0x28, 0x0028 }, // LEFT PARENTHESIS // parenleft { 0x29, 0x0029 }, // RIGHT PARENTHESIS // parenright { 0x2A, 0x2217 }, // ASTERISK OPERATOR // asteriskmath { 0x2B, 0x002B }, // PLUS SIGN // plus { 0x2C, 0x002C }, // COMMA // comma { 0x2D, 0x2212 }, // MINUS SIGN // minus { 0x2E, 0x002E }, // FULL STOP // period { 0x2F, 0x002F }, // SOLIDUS // slash { 0x30, 0x0030 }, // DIGIT ZERO // zero { 0x31, 0x0031 }, // DIGIT ONE // one { 0x32, 0x0032 }, // DIGIT TWO // two { 0x33, 0x0033 }, // DIGIT THREE // three { 0x34, 0x0034 }, // DIGIT FOUR // four { 0x35, 0x0035 }, // DIGIT FIVE // five { 0x36, 0x0036 }, // DIGIT SIX // six { 0x37, 0x0037 }, // DIGIT SEVEN // seven { 0x38, 0x0038 }, // DIGIT EIGHT // eight { 0x39, 0x0039 }, // DIGIT NINE // nine { 0x3A, 0x003A }, // COLON // colon { 0x3B, 0x003B }, // SEMICOLON // semicolon { 0x3C, 0x003C }, // LESS-THAN SIGN // less { 0x3D, 0x003D }, // EQUALS SIGN // equal { 0x3E, 0x003E }, // GREATER-THAN SIGN // greater { 0x3F, 0x003F }, // QUESTION MARK // question { 0x40, 0x2245 }, // APPROXIMATELY EQUAL TO // congruent { 0x41, 0x0391 }, // GREEK CAPITAL LETTER ALPHA // Alpha { 0x42, 0x0392 }, // GREEK CAPITAL LETTER BETA // Beta { 0x43, 0x03A7 }, // GREEK CAPITAL LETTER CHI // Chi { 0x44, 0x0394 }, // GREEK CAPITAL LETTER DELTA // Delta { 0x44, 0x2206 }, // INCREMENT // Delta { 0x45, 0x0395 }, // GREEK CAPITAL LETTER EPSILON // Epsilon { 0x46, 0x03A6 }, // GREEK CAPITAL LETTER PHI // Phi { 0x47, 0x0393 }, // GREEK CAPITAL LETTER GAMMA // Gamma { 0x48, 0x0397 }, // GREEK CAPITAL LETTER ETA // Eta { 0x49, 0x0399 }, // GREEK CAPITAL LETTER IOTA // Iota { 0x4A, 0x03D1 }, // GREEK THETA SYMBOL // theta1 { 0x4B, 0x039A }, // GREEK CAPITAL LETTER KAPPA // Kappa { 0x4C, 0x039B }, // GREEK CAPITAL LETTER LAMDA // Lambda { 0x4D, 0x039C }, // GREEK CAPITAL LETTER MU // Mu { 0x4E, 0x039D }, // GREEK CAPITAL LETTER NU // Nu { 0x4F, 0x039F }, // GREEK CAPITAL LETTER OMICRON // Omicron { 0x50, 0x03A0 }, // GREEK CAPITAL LETTER PI // Pi { 0x51, 0x0398 }, // GREEK CAPITAL LETTER THETA // Theta { 0x52, 0x03A1 }, // GREEK CAPITAL LETTER RHO // Rho { 0x53, 0x03A3 }, // GREEK CAPITAL LETTER SIGMA // Sigma { 0x54, 0x03A4 }, // GREEK CAPITAL LETTER TAU // Tau { 0x55, 0x03A5 }, // GREEK CAPITAL LETTER UPSILON // Upsilon { 0x56, 0x03C2 }, // GREEK SMALL LETTER FINAL SIGMA // sigma1 { 0x57, 0x03A9 }, // GREEK CAPITAL LETTER OMEGA // Omega { 0x57, 0x2126 }, // OHM SIGN // Omega { 0x58, 0x039E }, // GREEK CAPITAL LETTER XI // Xi { 0x59, 0x03A8 }, // GREEK CAPITAL LETTER PSI // Psi { 0x5A, 0x0396 }, // GREEK CAPITAL LETTER ZETA // Zeta { 0x5B, 0x005B }, // LEFT SQUARE BRACKET // bracketleft { 0x5C, 0x2234 }, // THEREFORE // therefore { 0x5D, 0x005D }, // RIGHT SQUARE BRACKET // bracketright { 0x5E, 0x22A5 }, // UP TACK // perpendicular { 0x5F, 0x005F }, // LOW LINE // underscore { 0x60, 0xF8E5 }, // RADICAL EXTENDER // radicalex (CUS) { 0x61, 0x03B1 }, // GREEK SMALL LETTER ALPHA // alpha { 0x62, 0x03B2 }, // GREEK SMALL LETTER BETA // beta { 0x63, 0x03C7 }, // GREEK SMALL LETTER CHI // chi { 0x64, 0x03B4 }, // GREEK SMALL LETTER DELTA // delta { 0x65, 0x03B5 }, // GREEK SMALL LETTER EPSILON // epsilon { 0x66, 0x03C6 }, // GREEK SMALL LETTER PHI // phi { 0x67, 0x03B3 }, // GREEK SMALL LETTER GAMMA // gamma { 0x68, 0x03B7 }, // GREEK SMALL LETTER ETA // eta { 0x69, 0x03B9 }, // GREEK SMALL LETTER IOTA // iota { 0x6A, 0x03D5 }, // GREEK PHI SYMBOL // phi1 { 0x6B, 0x03BA }, // GREEK SMALL LETTER KAPPA // kappa { 0x6C, 0x03BB }, // GREEK SMALL LETTER LAMDA // lambda { 0x6D, 0x00B5 }, // MICRO SIGN // mu { 0x6D, 0x03BC }, // GREEK SMALL LETTER MU // mu { 0x6E, 0x03BD }, // GREEK SMALL LETTER NU // nu { 0x6F, 0x03BF }, // GREEK SMALL LETTER OMICRON // omicron { 0x70, 0x03C0 }, // GREEK SMALL LETTER PI // pi { 0x71, 0x03B8 }, // GREEK SMALL LETTER THETA // theta { 0x72, 0x03C1 }, // GREEK SMALL LETTER RHO // rho { 0x73, 0x03C3 }, // GREEK SMALL LETTER SIGMA // sigma { 0x74, 0x03C4 }, // GREEK SMALL LETTER TAU // tau { 0x75, 0x03C5 }, // GREEK SMALL LETTER UPSILON // upsilon { 0x76, 0x03D6 }, // GREEK PI SYMBOL // omega1 { 0x77, 0x03C9 }, // GREEK SMALL LETTER OMEGA // omega { 0x78, 0x03BE }, // GREEK SMALL LETTER XI // xi { 0x79, 0x03C8 }, // GREEK SMALL LETTER PSI // psi { 0x7A, 0x03B6 }, // GREEK SMALL LETTER ZETA // zeta { 0x7B, 0x007B }, // LEFT CURLY BRACKET // braceleft { 0x7C, 0x007C }, // VERTICAL LINE // bar { 0x7D, 0x007D }, // RIGHT CURLY BRACKET // braceright { 0x7E, 0x223C }, // TILDE OPERATOR // similar { 0xA0, 0x20AC }, // EURO SIGN // Euro { 0xA1, 0x03D2 }, // GREEK UPSILON WITH HOOK SYMBOL // Upsilon1 { 0xA2, 0x2032 }, // PRIME // minute { 0xA3, 0x2264 }, // LESS-THAN OR EQUAL TO // lessequal { 0xA4, 0x2044 }, // FRACTION SLASH // fraction { 0xA4, 0x2215 }, // DIVISION SLASH // fraction { 0xA5, 0x221E }, // INFINITY // infinity { 0xA6, 0x0192 }, // LATIN SMALL LETTER F WITH HOOK // florin { 0xA7, 0x2663 }, // BLACK CLUB SUIT // club { 0xA8, 0x2666 }, // BLACK DIAMOND SUIT // diamond { 0xA9, 0x2665 }, // BLACK HEART SUIT // heart { 0xAA, 0x2660 }, // BLACK SPADE SUIT // spade { 0xAB, 0x2194 }, // LEFT RIGHT ARROW // arrowboth { 0xAC, 0x2190 }, // LEFTWARDS ARROW // arrowleft { 0xAD, 0x2191 }, // UPWARDS ARROW // arrowup { 0xAE, 0x2192 }, // RIGHTWARDS ARROW // arrowright { 0xAF, 0x2193 }, // DOWNWARDS ARROW // arrowdown { 0xB0, 0x00B0 }, // DEGREE SIGN // degree { 0xB1, 0x00B1 }, // PLUS-MINUS SIGN // plusminus { 0xB2, 0x2033 }, // DOUBLE PRIME // second { 0xB3, 0x2265 }, // GREATER-THAN OR EQUAL TO // greaterequal { 0xB4, 0x00D7 }, // MULTIPLICATION SIGN // multiply { 0xB5, 0x221D }, // PROPORTIONAL TO // proportional { 0xB6, 0x2202 }, // PARTIAL DIFFERENTIAL // partialdiff { 0xB7, 0x2022 }, // BULLET // bullet { 0xB8, 0x00F7 }, // DIVISION SIGN // divide { 0xB9, 0x2260 }, // NOT EQUAL TO // notequal { 0xBA, 0x2261 }, // IDENTICAL TO // equivalence { 0xBB, 0x2248 }, // ALMOST EQUAL TO // approxequal { 0xBC, 0x2026 }, // HORIZONTAL ELLIPSIS // ellipsis { 0xBD, 0xF8E6 }, // VERTICAL ARROW EXTENDER // arrowvertex (CUS) { 0xBE, 0xF8E7 }, // HORIZONTAL ARROW EXTENDER // arrowhorizex (CUS) { 0xBF, 0x21B5 }, // DOWNWARDS ARROW WITH CORNER LEFTWARDS // carriagereturn { 0xC0, 0x2135 }, // ALEF SYMBOL // aleph { 0xC1, 0x2111 }, // BLACK-LETTER CAPITAL I // Ifraktur { 0xC2, 0x211C }, // BLACK-LETTER CAPITAL R // Rfraktur { 0xC3, 0x2118 }, // SCRIPT CAPITAL P // weierstrass { 0xC4, 0x2297 }, // CIRCLED TIMES // circlemultiply { 0xC5, 0x2295 }, // CIRCLED PLUS // circleplus { 0xC6, 0x2205 }, // EMPTY SET // emptyset { 0xC7, 0x2229 }, // INTERSECTION // intersection { 0xC8, 0x222A }, // UNION // union { 0xC9, 0x2283 }, // SUPERSET OF // propersuperset { 0xCA, 0x2287 }, // SUPERSET OF OR EQUAL TO // reflexsuperset { 0xCB, 0x2284 }, // NOT A SUBSET OF // notsubset { 0xCC, 0x2282 }, // SUBSET OF // propersubset { 0xCD, 0x2286 }, // SUBSET OF OR EQUAL TO // reflexsubset { 0xCE, 0x2208 }, // ELEMENT OF // element { 0xCF, 0x2209 }, // NOT AN ELEMENT OF // notelement { 0xD0, 0x2220 }, // ANGLE // angle { 0xD1, 0x2207 }, // NABLA // gradient { 0xD2, 0x00AE }, // REGISTERED SIGN SERIF // registerserif (CUS) CHANGED { 0xD3, 0x00A9 }, // COPYRIGHT SIGN SERIF // copyrightserif (CUS) CHANGED { 0xD4, 0x2122 }, // TRADE MARK SIGN SERIF // trademarkserif (CUS) CHANGED { 0xD5, 0x220F }, // N-ARY PRODUCT // product { 0xD6, 0x221A }, // SQUARE ROOT // radical { 0xD7, 0x22C5 }, // DOT OPERATOR // dotmath { 0xD8, 0x00AC }, // NOT SIGN // logicalnot { 0xD9, 0x2227 }, // LOGICAL AND // logicaland { 0xDA, 0x2228 }, // LOGICAL OR // logicalor { 0xDB, 0x21D4 }, // LEFT RIGHT DOUBLE ARROW // arrowdblboth { 0xDC, 0x21D0 }, // LEFTWARDS DOUBLE ARROW // arrowdblleft { 0xDD, 0x21D1 }, // UPWARDS DOUBLE ARROW // arrowdblup { 0xDE, 0x21D2 }, // RIGHTWARDS DOUBLE ARROW // arrowdblright { 0xDF, 0x21D3 }, // DOWNWARDS DOUBLE ARROW // arrowdbldown { 0xE0, 0x25CA }, // LOZENGE // lozenge { 0xE1, 0x2329 }, // LEFT-POINTING ANGLE BRACKET // angleleft { 0xE2, 0xF8E8 }, // REGISTERED SIGN SANS SERIF // registersans (CUS) { 0xE3, 0xF8E9 }, // COPYRIGHT SIGN SANS SERIF // copyrightsans (CUS) { 0xE4, 0xF8EA }, // TRADE MARK SIGN SANS SERIF // trademarksans (CUS) { 0xE5, 0x2211 }, // N-ARY SUMMATION // summation { 0xF1, 0x232A }, // RIGHT-POINTING ANGLE BRACKET // angleright { 0xF2, 0x222B }, // INTEGRAL // integral { 0xF3, 0x2320 }, // TOP HALF INTEGRAL // integraltp { 0xF4, 0xF8F5 }, // INTEGRAL EXTENDER // integralex (CUS) { 0xF5, 0x2321 }, // BOTTOM HALF INTEGRAL // integralbt { 0xF6, 0xF8F6 }, // RIGHT PAREN TOP // parenrighttp (CUS) { 0xF7, 0xF8F7 }, // RIGHT PAREN EXTENDER // parenrightex (CUS) { 0xF8, 0xF8F8 }, // RIGHT PAREN BOTTOM // parenrightbt (CUS) { 0xF9, 0xF8F9 }, // RIGHT SQUARE BRACKET TOP // bracketrighttp (CUS) { 0xFA, 0xF8FA }, // RIGHT SQUARE BRACKET EXTENDER // bracketrightex (CUS) { 0xFB, 0xF8FB }, // RIGHT SQUARE BRACKET BOTTOM // bracketrightbt (CUS) { 0xFC, 0xF8FC }, // RIGHT CURLY BRACKET TOP // bracerighttp (CUS) { 0xFD, 0xF8FD }, // RIGHT CURLY BRACKET MID // bracerightmid (CUS) { 0xFE, 0xF8FE }, // RIGHT CURLY BRACKET BOTTOM // bracerightbt (CUS) { 0x00, 0x0000 } }; static StandardSymbolsShaper::HStretchyChar hMap[] = { // N L G R { 0x2190, 0xAC, 0xAC, 0xBE, 0 }, { 0x2192, 0xAE, 0, 0xBE, 0xAE }, { 0x2194, 0xAB, 0xAC, 0xBE, 0xAE }, { 0, 0, 0, 0, 0 } }; static StandardSymbolsShaper::VStretchyChar vMap[] = { // N T G M B { 0x0028, 0x28, 0xE6, 0xE7, 0, 0xE8 }, { 0x0029, 0x29, 0xF6, 0xF7, 0, 0xF8 }, { 0x005B, 0x5B, 0xE9, 0xEA, 0, 0xEB }, { 0x005D, 0x5D, 0xF9, 0xFA, 0, 0xFB }, { 0x007B, 0x7B, 0xEC, 0xEF, 0xED, 0xEE }, { 0x007C, 0x7C, 0, 0x7C, 0, 0 }, { 0x007D, 0x7D, 0xFC, 0xEF, 0xFD, 0xFE }, { 0x2191, 0xAD, 0xAD, 0xBD, 0, 0 }, { 0x2193, 0xAF, 0, 0xBD, 0, 0xAF }, { 0x2195, 0, 0xAD, 0xBD, 0, 0xAF }, { 0x222B, 0xF2, 0xF3, 0xF4, 0, 0xF5 }, { 0, 0, 0, 0, 0, 0 } }; #define NORMAL_FONT_INDEX 0 #define H_STRETCHY_FONT_INDEX 1 #define V_STRETCHY_FONT_INDEX 2 void StandardSymbolsShaper::registerShaper(const SmartPtr& sm, unsigned shaperId) { assert(sm); for (unsigned i = 0; symbolMap[i].ch; i++) registerChar(sm, shaperId, symbolMap[i].ch, symbolMap[i].index); for (unsigned i = 0; vMap[i].ch != 0; i++) registerStretchyCharV(sm, shaperId, vMap[i], i); for (unsigned i = 0; hMap[i].ch != 0; i++) registerStretchyCharH(sm, shaperId, hMap[i], i); } void StandardSymbolsShaper::registerChar(const SmartPtr& sm, unsigned shaperId, Char16 ch, Char8 glyphId) { assert(ch); sm->registerChar(ch, GlyphSpec(shaperId, NORMAL_FONT_INDEX, glyphId)); } void StandardSymbolsShaper::registerStretchyCharV(const SmartPtr& sm, unsigned shaperId, const VStretchyChar& vMap, Char8 glyphId) { sm->registerStretchyChar(vMap.ch, GlyphSpec(shaperId, V_STRETCHY_FONT_INDEX, glyphId)); } void StandardSymbolsShaper::registerStretchyCharH(const SmartPtr& sm, unsigned shaperId, const HStretchyChar& hMap, Char8 glyphId) { sm->registerStretchyChar(hMap.ch, GlyphSpec(shaperId, H_STRETCHY_FONT_INDEX, glyphId)); } void StandardSymbolsShaper::unregisterShaper(const SmartPtr&, unsigned) { // nothing to do??? } void StandardSymbolsShaper::shape(ShapingContext& context) const { for (unsigned n = context.chunkSize(); n > 0; n--) { AreaRef res; switch (context.getSpec().getFontId()) { case H_STRETCHY_FONT_INDEX: res = shapeStretchyCharH(context); break; case V_STRETCHY_FONT_INDEX: res = shapeStretchyCharV(context); break; default: break; } // If we get here then either the character was not required // to stretch, or one of the stretchying methods has failed, // hence we shape it with no stretchying if (!res) res = shapeChar(context); if (!res) break; context.pushArea(1, res); } } AreaRef StandardSymbolsShaper::shapeChar(const ShapingContext& context) const { return getGlyphArea(context.getFactory(), context.getSpec().getGlyphId(), context.getSize()); } AreaRef StandardSymbolsShaper::shapeStretchyCharH(const ShapingContext& context) const { SmartPtr factory = context.getFactory(); const scaled size = context.getSize(); const HStretchyChar* charSpec = &hMap[context.getSpec().getGlyphId()]; AreaRef normal = (charSpec->normal != 0) ? getGlyphArea(factory, charSpec->normal, size) : 0; AreaRef left = (charSpec->left != 0) ? getGlyphArea(factory, charSpec->left, size) : 0; AreaRef glue = (charSpec->glue != 0) ? getGlyphArea(factory, charSpec->glue, size) : 0; AreaRef right = (charSpec->right != 0) ? getGlyphArea(factory, charSpec->right, size) : 0; return composeStretchyCharH(factory, normal, left, glue, right, context.getHSpan()); } AreaRef StandardSymbolsShaper::shapeStretchyCharV(const ShapingContext& context) const { SmartPtr factory = context.getFactory(); const scaled size = context.getSize(); const scaled span = context.getVSpan() - (1 * size) / 10; const VStretchyChar* charSpec = &vMap[context.getSpec().getGlyphId()]; AreaRef normal = (charSpec->normal != 0) ? getGlyphArea(factory, charSpec->normal, size) : 0; AreaRef top = (charSpec->top != 0) ? getGlyphArea(factory, charSpec->top, size) : 0; AreaRef glue = (charSpec->glue != 0) ? getGlyphArea(factory, charSpec->glue, size) : 0; AreaRef middle = (charSpec->middle != 0) ? getGlyphArea(factory, charSpec->middle, size) : 0; AreaRef bottom = (charSpec->bottom != 0) ? getGlyphArea(factory, charSpec->bottom, size) : 0; return composeStretchyCharV(factory, normal, top, glue, middle, bottom, span); } gtkmathview-0.8.0/src/backend/common/Area.cc0000644000175000017500000000314510661271104015620 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Area.hh" #include "Point.hh" #include "Element.hh" #include "Rectangle.hh" #include "GlyphStringArea.hh" #include "GlyphArea.hh" scaled Area::originX(AreaIndex i) const { Point p; origin(i, p); return p.x; } scaled Area::originY(AreaIndex i) const { Point p; origin(i, p); return p.y; } bool Area::indexOfPosition(const scaled&, const scaled&, CharIndex&) const { return false; } bool Area::positionOfIndex(CharIndex, class Point*, BoundingBox*) const { return false; } SmartPtr Area::getElement() const { return 0; } scaled Area::getStep() const { return 0; } SmartPtr Area::getGlyphStringArea() const { return 0; } SmartPtr Area::getGlyphArea() const { return 0; } gtkmathview-0.8.0/src/backend/common/ColorArea.cc0000644000175000017500000000173110661271104016616 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "ColorArea.hh" AreaRef ColorArea::clone(const AreaRef& area) const { return create(area, getColor()); } gtkmathview-0.8.0/src/backend/common/LinearContainerArea.hh0000644000175000017500000000400210661271104020621 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __LinearContainerArea_hh__ #define __LinearContainerArea_hh__ #include #include "ContainerArea.hh" class GMV_MathView_EXPORT LinearContainerArea : public ContainerArea { protected: LinearContainerArea(const std::vector& c) : content(c) { } virtual ~LinearContainerArea() { } public: virtual AreaRef clone(const std::vector&) const = 0; virtual void render(class RenderingContext&, const scaled&, const scaled&) const; virtual scaled leftEdge(void) const; virtual scaled rightEdge(void) const; virtual AreaIndex size(void) const { return content.size(); } virtual AreaRef node(AreaIndex) const; virtual CharIndex lengthTo(AreaIndex) const; //virtual AreaRef replace(const class ReplacementContext&) const; virtual bool searchByArea(class AreaId&, const AreaRef&) const; virtual bool searchByIndex(class AreaId&, CharIndex) const; virtual SmartPtr getGlyphStringArea(void) const; virtual SmartPtr getGlyphArea(void) const; const std::vector getChildren(void) const { return content; } protected: std::vector content; }; #endif // __LinearContainerArea_hh__ gtkmathview-0.8.0/src/backend/common/GraphicDevice.cc0000644000175000017500000000657510661271104017457 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "FormattingContext.hh" #include "GraphicDevice.hh" #include "ShaperManager.hh" GraphicDevice::GraphicDevice(const SmartPtr& l) : logger(l) { } GraphicDevice::~GraphicDevice() { } SmartPtr GraphicDevice::getLogger() const { return logger; } void GraphicDevice::setFactory(const SmartPtr& f) { factory = f; } void GraphicDevice::setShaperManager(const SmartPtr& sm) { shaperManager = sm; } SmartPtr GraphicDevice::getShaperManager() const { return shaperManager; } scaled GraphicDevice::evaluate(const FormattingContext& context, const Length& length, const scaled& defaultValue) const { switch (length.type) { case Length::UNDEFINED_UNIT: return defaultValue; case Length::PURE_UNIT: // error? return defaultValue * length.value; case Length::INFINITY_UNIT: return scaled::max(); case Length::LT_UNIT: return defaultLineThickness(context) * length.value; case Length::EM_UNIT: return em(context) * length.value; case Length::EX_UNIT: return ex(context) * length.value; case Length::PX_UNIT: return scaled((72.27 * length.value) / dpi(context)); case Length::IN_UNIT: return scaled(72.27 * length.value); case Length::CM_UNIT: return scaled(72.27 * (length.value / 2.54)); case Length::MM_UNIT: return scaled(72.27 * (length.value / 25.4)); case Length::PT_UNIT: return scaled(length.value); case Length::PC_UNIT: return scaled(12 * 72.27 * length.value); case Length::PERCENTAGE_UNIT: return (defaultValue * length.value) / 100.0; default: if (length.type >= Length::NEGATIVE_VERYVERYTHICK_SPACE && length.type <= Length::VERYVERYTHICK_SPACE) { Length newLength = context.getMathSpace(FormattingContext::NEGATIVE_VERYVERYTHICK_SPACE + length.type - Length::NEGATIVE_VERYVERYTHICK_SPACE); assert(newLength.type < Length::NEGATIVE_VERYVERYTHICK_SPACE || newLength.type > Length::VERYVERYTHICK_SPACE); return evaluate(context, newLength, defaultValue); } else { assert(false); return defaultValue; } } } double GraphicDevice::dpi(const FormattingContext&) const { return 72.0; } scaled GraphicDevice::em(const FormattingContext& context) const { return context.getSize(); } scaled GraphicDevice::defaultLineThickness(const FormattingContext& context) const { // at least 1px thick return std::max(context.getSize() / 10, scaled(72.27f / dpi(context))); } gtkmathview-0.8.0/src/backend/common/StepArea.cc0000644000175000017500000000241210661271104016450 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "StepArea.hh" StepArea::StepArea(const AreaRef& area, const scaled& s) : BinContainerArea(area), step(s) { } StepArea::~StepArea() { } SmartPtr StepArea::create(const AreaRef& area, const scaled& s) { return new StepArea(area, s); } AreaRef StepArea::clone(const AreaRef& area) const { return create(area, getStep()); } scaled StepArea::getStep() const { return getChild()->getStep() + step; } gtkmathview-0.8.0/src/backend/common/Area.hh0000644000175000017500000000500110661271104015623 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Area_hh__ #define __Area_hh__ #include "BoundingBox.hh" #include "Object.hh" #include "SmartPtr.hh" typedef SmartPtr AreaRef; typedef int CharIndex; typedef int AreaIndex; class GMV_MathView_EXPORT Area : public Object { protected: Area(void) { }; virtual ~Area() { }; public: virtual BoundingBox box(void) const = 0; virtual void render(class RenderingContext&, const scaled& x, const scaled& y) const = 0; virtual AreaRef fit(const scaled&, const scaled&, const scaled&) const = 0; virtual scaled leftEdge(void) const = 0; virtual scaled rightEdge(void) const = 0; virtual void strength(int&, int&, int&) const = 0; virtual AreaIndex size(void) const { return 0; } virtual AreaRef node(AreaIndex) const = 0; virtual void origin(AreaIndex, class Point&) const = 0; virtual CharIndex length(void) const { return 0; } virtual CharIndex lengthTo(AreaIndex) const = 0; virtual bool indexOfPosition(const scaled&, const scaled&, CharIndex&) const; virtual bool positionOfIndex(CharIndex, class Point* = 0, BoundingBox* = 0) const; virtual scaled getStep(void) const; virtual bool searchByArea(class AreaId&, const AreaRef&) const = 0; virtual bool searchByCoords(class AreaId&, const scaled&, const scaled&) const = 0; virtual bool searchByIndex(class AreaId&, CharIndex) const = 0; virtual AreaRef flatten(void) const { return this; } virtual SmartPtr getElement(void) const; virtual SmartPtr getGlyphStringArea(void) const; virtual SmartPtr getGlyphArea(void) const; scaled originX(AreaIndex) const; scaled originY(AreaIndex) const; }; #endif // __Area_hh__ gtkmathview-0.8.0/src/backend/common/ColorArea.hh0000644000175000017500000000262010661271104016626 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __ColorArea_hh__ #define __ColorArea_hh__ #include "RGBColor.hh" #include "BinContainerArea.hh" class GMV_MathView_EXPORT ColorArea : public BinContainerArea { protected: ColorArea(const AreaRef& area, const RGBColor& c) : BinContainerArea(area), color(c) { } virtual ~ColorArea() { } public: static SmartPtr create(const AreaRef& area, const RGBColor& c) { return new ColorArea(area, c); } virtual AreaRef clone(const AreaRef&) const; RGBColor getColor(void) const { return color; } private: RGBColor color; }; #endif // __ColorArea_hh__ gtkmathview-0.8.0/src/backend/common/AreaId.cc0000644000175000017500000001132210661271104016071 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AreaId.hh" void AreaId::append(AreaIndex step) { pathV.push_back(step); } void AreaId::append(AreaIndex step, const AreaRef& a) { assert(pathV.size() == areaV.size()); pathV.push_back(step); areaV.push_back(a); } void AreaId::append(AreaIndex step, const AreaRef& a, const scaled& x, const scaled& y) { assert(pathV.size() == originV.size()); append(step, a); originV.push_back(Point(x, y)); } void AreaId::pop_back() { assert(!pathV.empty()); pathV.pop_back(); const unsigned pathSize = pathV.size(); if (areaV.size() > pathSize) areaV.resize(pathSize); if (originV.size() > pathSize) originV.resize(pathSize); if (lengthV.size() > pathSize) lengthV.resize(pathSize); } AreaRef AreaId::getArea(int index) const { validateAreas(); if (index == 0) return root; else if (index > 0) { assert(index <= areaV.size()); return areaV[index - 1]; } else { assert(-index <= areaV.size()); return areaV[areaV.size() + index]; } } void AreaId::accumulateOrigin(Point& p, int begin, int end) const { validateOrigins(); const int beginA = (begin >= 0) ? begin : originV.size() + begin + 1; const int endA = (end >= 0) ? end : originV.size() + end + 1; assert(beginA >= 0 && beginA <= originV.size()); assert(endA >= 0 && endA <= originV.size()); accumulateOriginAux(originV.begin() + beginA, originV.begin() + endA, p); } void AreaId::getOrigin(Point& p, int begin, int end) const { p.set(scaled::zero(), scaled::zero()); accumulateOrigin(p, begin, end); } CharIndex AreaId::getLength(int begin, int end) const { validateLengths(); const int beginA = (begin >= 0) ? begin : lengthV.size() + begin + 1; const int endA = (end >= 0) ? end : lengthV.size() + end + 1; assert(beginA >= 0 && beginA <= lengthV.size()); assert(endA >= 0 && endA <= lengthV.size()); CharIndex acc = 0; accumulateLengthAux(lengthV.begin() + beginA, lengthV.begin() + endA, acc); return acc; } void AreaId::accumulateLengthAux(const LengthVector::const_iterator& begin, const LengthVector::const_iterator& end, CharIndex& index) const { for (LengthVector::const_iterator p = begin; p != end; p++) index += *p; } void AreaId::accumulateOriginAux(const OriginVector::const_iterator& begin, const OriginVector::const_iterator& end, Point& point) const { for (OriginVector::const_iterator p = begin; p != end; p++) { point.x += p->x; point.y += p->y; } } void AreaId::validateAreas() const { AreaRef prev = root; PathVector::const_iterator p = pathV.begin() + areaV.size(); while (p < pathV.end()) { areaV.push_back(prev->node(*p)); prev = areaV.back(); p++; } #if 0 while (areaV.size() < pathV.size()) { areaV.push_back(prev->node(pathV[areaV.size()])); prev = areaV[areaV.size() - 1]; } #endif } void AreaId::validateOrigins() const { validateAreas(); AreaRef prev = root; PathVector::const_iterator p = pathV.begin() + originV.size(); AreaVector::const_iterator q = areaV.begin() + originV.size(); while (p < pathV.end()) { Point o; prev->origin(*p, o); originV.push_back(o); prev = *q++; p++; } #if 0 while (originV.size() < areaV.size()) { Point o; prev->origin(pathV[originV.size()], o); originV.push_back(o); prev = areaV[originV.size() - 1]; } #endif } void AreaId::validateLengths() const { validateAreas(); AreaRef prev = root; PathVector::const_iterator p = pathV.begin() + lengthV.size(); AreaVector::const_iterator q = areaV.begin() + lengthV.size(); while (p < pathV.end()) { lengthV.push_back(prev->lengthTo(*p)); prev = *q++; p++; } #if 0 while (lengthV.size() < areaV.size()) { lengthV.push_back(prev->lengthTo(pathV[lengthV.size()])); prev = areaV[lengthV.size() - 1]; } #endif } gtkmathview-0.8.0/src/backend/common/MathGraphicDevice.hh0000644000175000017500000000773310661271104020300 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathGraphicDevice_hh__ #define __MathGraphicDevice_hh__ #include "String.hh" #include "GraphicDevice.hh" class GMV_MathView_EXPORT MathGraphicDevice : public GraphicDevice { protected: MathGraphicDevice(const SmartPtr&); virtual ~MathGraphicDevice(); public: virtual void clearCache(void) const; // Length evaluation, fundamental properties virtual scaled axis(const class FormattingContext&) const; virtual scaled ex(const class FormattingContext&) const; // token formatting AreaRef string(const class FormattingContext&, const String& str) const; virtual AreaRef glyph(const class FormattingContext&, const String& alt, const String& fontFamily, unsigned long index) const; // layout schemata virtual AreaRef fraction(const class FormattingContext&, const AreaRef& numerator, const AreaRef& denominator, const Length& lineThickness) const; virtual AreaRef bevelledFraction(const class FormattingContext&, const AreaRef& numerator, const AreaRef& denominator, const Length& lineThickness) const; virtual AreaRef radical(const class FormattingContext&, const AreaRef& radicand, const AreaRef& index) const; virtual AreaRef script(const class FormattingContext&, const AreaRef& base, const AreaRef& subScript, const Length& subScriptShift, const AreaRef& superScript, const Length& superScriptShift) const; virtual AreaRef multiScripts(const class FormattingContext&, const AreaRef& base, const std::vector& subScripts, const std::vector& preSubScripts, const Length& subScriptShift, const std::vector& superScripts, const std::vector& preSuperScripts, const Length& superScriptShift) const; virtual AreaRef underOver(const class FormattingContext&, const AreaRef& base, const AreaRef& underScript, bool accentUnder, const AreaRef& overScript, bool accent) const; virtual AreaRef enclose(const class FormattingContext&, const AreaRef& base, const String& notation) const; // extra methods virtual AreaRef wrapper(const class FormattingContext&, const AreaRef& area) const; virtual AreaRef dummy(const class FormattingContext& context) const; protected: AreaRef stretchedString(const class FormattingContext&, const String& str) const; AreaRef unstretchedString(const class FormattingContext&, const String& str) const; AreaRef stretchStringV(const class FormattingContext&, const String& str, const scaled& height, const scaled& depth) const; virtual void calculateDefaultScriptShift(const class FormattingContext&, const BoundingBox& baseBox, const BoundingBox& subScriptBox, const BoundingBox& superScriptBox, scaled& v, scaled& u) const; virtual void calculateScriptShift(const class FormattingContext&, const BoundingBox& baseBox, const BoundingBox& subScriptBox, const Length& subScriptMinShift, const BoundingBox& superScriptBox, const Length& superScriptMinShift, scaled& v, scaled& u) const; }; #endif // __MathGraphicDevice_hh__ gtkmathview-0.8.0/src/backend/common/VerticalArrayArea.hh0000644000175000017500000000426510661271104020327 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __VerticalArrayArea_hh__ #define __VerticalArrayArea_hh__ #include "LinearContainerArea.hh" class GMV_MathView_EXPORT VerticalArrayArea : public LinearContainerArea { protected: VerticalArrayArea(const std::vector&, AreaIndex); virtual ~VerticalArrayArea() { } public: static SmartPtr create(const std::vector& children, AreaIndex ref = 0) { return new VerticalArrayArea(children, ref); } virtual AreaRef clone(const std::vector& children) const { return create(children, getRefArea()); } virtual AreaRef flatten(void) const; virtual BoundingBox box(void) const; virtual void render(class RenderingContext&, const scaled&, const scaled&) const; virtual void strength(int&, int&, int&) const; virtual AreaRef fit(const scaled&, const scaled&, const scaled&) const; virtual void origin(AreaIndex, class Point&) const; virtual CharIndex lengthTo(AreaIndex) const; AreaIndex getRefArea(void) const { return refArea; } virtual bool searchByCoords(class AreaId&, const scaled&, const scaled&) const; virtual bool searchByIndex(class AreaId&, CharIndex) const; protected: scaled prepareChildBoxes(std::vector&) const; private: //static void flattenAux(std::vector&, const std::vector&, unsigned); AreaIndex refArea; }; #endif // __VerticalArrayArea_hh__ gtkmathview-0.8.0/src/backend/common/TFMComputerModernMathGraphicDevice.cc0000644000175000017500000000645510661271104023521 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "ComputerModernFamily.hh" #include "TFMManager.hh" #include "TFMComputerModernMathGraphicDevice.hh" #include "FormattingContext.hh" TFMComputerModernMathGraphicDevice::TFMComputerModernMathGraphicDevice(const SmartPtr& l) : MathGraphicDevice(l) { } TFMComputerModernMathGraphicDevice::~TFMComputerModernMathGraphicDevice() { } void TFMComputerModernMathGraphicDevice::setFamily(const SmartPtr& f) { family = f; } void TFMComputerModernMathGraphicDevice::setTFMManager(const SmartPtr& m) { tfmManager = m; } SmartPtr TFMComputerModernMathGraphicDevice::create(const SmartPtr& l) { return new TFMComputerModernMathGraphicDevice(l); } SmartPtr TFMComputerModernMathGraphicDevice::getTFM(const FormattingContext& context, ComputerModernFamily::FontEncId encId) const { const String fontName = family->nameOfFont(context.getVariant(), encId, context.getSize()); return tfmManager->getTFM(fontName); } scaled TFMComputerModernMathGraphicDevice::em(const FormattingContext& context) const { if (SmartPtr tfm = getTFM(context, ComputerModernFamily::FE_CMSY)) return tfm->getDimension(6) * tfm->getScale(context.getSize()); else return MathGraphicDevice::em(context); } scaled TFMComputerModernMathGraphicDevice::ex(const FormattingContext& context) const { if (SmartPtr tfm = getTFM(context, ComputerModernFamily::FE_CMSY)) return tfm->getDimension(5) * tfm->getScale(context.getSize()); else return MathGraphicDevice::ex(context); } scaled TFMComputerModernMathGraphicDevice::defaultLineThickness(const FormattingContext& context) const { if (SmartPtr tfm = getTFM(context, ComputerModernFamily::FE_CMEX)) return tfm->getDimension(8) * tfm->getScale(context.getSize()); else return MathGraphicDevice::defaultLineThickness(context); } scaled TFMComputerModernMathGraphicDevice::axis(const FormattingContext& context) const { if (SmartPtr tfm = getTFM(context, ComputerModernFamily::FE_CMSY)) return tfm->getDimension(22) * tfm->getScale(context.getSize()); else return MathGraphicDevice::axis(context); } AreaRef TFMComputerModernMathGraphicDevice::glyph(const class FormattingContext& context, const String& alt, const String& family, unsigned long index) const { return MathGraphicDevice::glyph(context, alt, family, index); } gtkmathview-0.8.0/src/backend/common/StepArea.hh0000644000175000017500000000240610661271104016465 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __StepArea_hh__ #define __StepArea_hh__ #include "BinContainerArea.hh" class GMV_MathView_EXPORT StepArea : public BinContainerArea { protected: StepArea(const AreaRef&, const scaled&); virtual ~StepArea(); public: static SmartPtr create(const AreaRef&, const scaled&); virtual AreaRef clone(const AreaRef&) const; virtual scaled getStep(void) const; private: scaled step; }; #endif // __StepArea_hh__ gtkmathview-0.8.0/src/backend/common/TFMFontManager.cc0000644000175000017500000000350010661271104017513 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "TFMManager.hh" #include "TFMFont.hh" #include "TFMFontManager.hh" TFMFontManager::TFMFontManager(const SmartPtr& tm) : tfmManager(tm) { } TFMFontManager::~TFMFontManager() { } SmartPtr TFMFontManager::create(const SmartPtr& tm) { return new TFMFontManager(tm); } SmartPtr TFMFontManager::createFont(const SmartPtr& tfm, const scaled& size) const { return TFMFont::create(tfm, size); } SmartPtr TFMFontManager::getFont(const SmartPtr& tfm, const scaled& size) const { const CachedFontKey key(tfm->getName(), size); FontCache::iterator p = fontCache.find(key); if (p != fontCache.end()) return p->second; else if (const SmartPtr font = createFont(tfm, size)) { fontCache[key] = font; return font; } else return 0; } SmartPtr TFMFontManager::getFont(const String& name, const scaled& size) const { return getFont(tfmManager->getTFM(name), size); } gtkmathview-0.8.0/src/backend/common/ComputerModernShaper.hh0000644000175000017500000000714110661271104021070 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __ComputerModernShaper_hh__ #define __ComputerModernShaper_hh__ #include "Char.hh" #include "Shaper.hh" #include "ComputerModernFamily.hh" class GMV_MathView_EXPORT ComputerModernShaper : public Shaper { protected: ComputerModernShaper(const SmartPtr&, const SmartPtr&); virtual ~ComputerModernShaper(); public: SmartPtr getFamily(void) const { return family; } virtual void registerShaper(const SmartPtr&, unsigned); virtual void unregisterShaper(const SmartPtr&, unsigned); virtual void shape(class ShapingContext&) const; enum PostShapingMode { POST_SHAPING_NEVER, POST_SHAPING_MATH, POST_SHAPING_TEXT, POST_SHAPING_ALWAYS }; PostShapingMode getPostShapingMode(void) const { return postShapingMode; } void setPostShapingMode(PostShapingMode m) { postShapingMode = m; } bool setPostShapingMode(const String&); struct GlyphIndex { signed char fontEnc; UChar8 index; bool valid(void) const { return ComputerModernFamily::validFontEncId(ComputerModernFamily::FontEncId(fontEnc)); } }; struct PlainChar { Char16 ch; UChar8 index; }; struct PlainChar32 { Char32 ch; UChar8 index; }; struct HStretchyChar { Char16 ch; GlyphIndex normal; GlyphIndex left; GlyphIndex glue; GlyphIndex right; }; struct VStretchyChar { Char16 ch; GlyphIndex normal[5]; GlyphIndex top; GlyphIndex glue; GlyphIndex middle; GlyphIndex bottom; }; struct HBigChar { Char16 ch; GlyphIndex big[5]; }; struct CombiningChar { Char16 ch; GlyphIndex spec; }; static UChar8 toTTFGlyphIndex(ComputerModernFamily::FontEncId, UChar8); protected: virtual void postShape(class ShapingContext&) const; virtual AreaRef getGlyphArea(ComputerModernFamily::FontNameId, ComputerModernFamily::FontSizeId, UChar8, int) const = 0; AreaRef getGlyphArea(MathVariant, ComputerModernFamily::FontEncId, UChar8, const scaled&) const; AreaRef getGlyphArea(MathVariant, const GlyphIndex&, const scaled&) const; bool shapeChar(class ShapingContext&, ComputerModernFamily::FontEncId) const; bool shapeStretchyCharV(class ShapingContext&) const; bool shapeStretchyCharH(class ShapingContext&) const; bool shapeBigCharH(class ShapingContext&, const ComputerModernShaper::HBigChar&) const; bool shapeHorizontalBrace(class ShapingContext&) const; bool shapeHorizontalBar(class ShapingContext&) const; bool shapeSpecialStretchyChar(class ShapingContext&) const; virtual bool shapeCombiningChar(class ShapingContext&) const; protected: PostShapingMode postShapingMode; SmartPtr family; }; #endif // __ComputerModernShaper_hh__ gtkmathview-0.8.0/src/backend/common/FillerArea.hh0000644000175000017500000000207010661271104016764 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __FillerArea_hh__ #define __FillerArea_hh__ #include "SimpleArea.hh" class GMV_MathView_EXPORT FillerArea : public SimpleArea { protected: FillerArea(void) { } virtual ~FillerArea() { } }; #endif // __FillerArea_hh__ gtkmathview-0.8.0/src/backend/common/VerticalArrayArea.cc0000644000175000017500000001623010661271104020310 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AreaId.hh" #include "Point.hh" #include "VerticalArrayArea.hh" VerticalArrayArea::VerticalArrayArea(const std::vector& children, AreaIndex r) : LinearContainerArea(children), refArea(r) { assert(content.size() > 0); assert(refArea >= 0 && refArea < content.size()); } // unsigned // VerticalArrayArea::flattenAux(std::vector& dest, const std::vector& source, unsigned refArea) // { // for (std::vector::const_iterator p = source.begin(); // p != source.end(); // p++) // { // AreaRef flattened = (*p)->flatten(); // if (SmartPtr harea = smart_cast(flattened)) // flattenAux(dest, harea->content); // else // dest.push_back(flattened); // } // } AreaRef VerticalArrayArea::flatten(void) const { // FIXME // std::vector newContent(content.size()); // unsigned newRefArea = flattenAux(newContent, content, refArea); // if (newContent != content) // return clone(newContent, newRefArea); // else return this; } BoundingBox VerticalArrayArea::box() const { BoundingBox bbox = content[refArea]->box(); for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { const AreaIndex i = p - content.begin(); if (i < refArea) bbox.over((*p)->box()); else if (i > refArea) bbox.under((*p)->box()); } return bbox; } scaled VerticalArrayArea::prepareChildBoxes(std::vector& box) const { box.reserve(content.size()); scaled depth = 0; for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { const AreaIndex i = p - content.begin(); box.push_back((*p)->box()); if (BoundingBox backBox = box.back()) if (i < refArea) depth += backBox.verticalExtent(); else if (i == refArea) depth += backBox.depth; } return depth; } void VerticalArrayArea::render(class RenderingContext& context, const scaled& x, const scaled& y0) const { std::vector box; scaled depth = prepareChildBoxes(box); scaled y = y0 - depth; for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { const AreaIndex i = p - content.begin(); if (box[i]) y += box[i].depth; (*p)->render(context, x, y); if (box[i]) y += box[i].height; } } void VerticalArrayArea::strength(int& w, int& h, int& d) const { w = h = d = 0; for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { int pw, ph, pd; (*p)->strength(pw, ph, pd); w = std::max(w, pw); if (p - content.begin() < refArea) d += ph + pd; else if (p - content.begin() > refArea) h += ph + pd; else { d += pd; h += ph; } } } AreaRef VerticalArrayArea::fit(const scaled& width, const scaled& height, const scaled& depth) const { int sw, sh, sd; strength(sw, sh, sd); BoundingBox box0 = box(); scaled aheight = box0 ? std::max(scaled::zero(), height - box0.height) : scaled::zero(); scaled adepth = box0 ? std::max(scaled::zero(), depth - box0.depth) : scaled::zero(); std::vector newContent; newContent.reserve(content.size()); for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { //std::cout << "fit vertical " << (p - content.begin()) << " width = " << width.toInt() << std::endl; int pw, ph, pd; (*p)->strength(pw, ph, pd); BoundingBox pbox = (*p)->box(); scaled pheight = pbox ? pbox.height : scaled::zero(); scaled pdepth = pbox ? pbox.depth : scaled::zero(); if (p - content.begin() < refArea && sd > 0) { pheight += (adepth * ph) / sd; pdepth += (adepth * pd) / sd; } else if (p - content.begin() > refArea && sh > 0) { pheight += (aheight * ph) / sh; pdepth += (aheight * pd) / sh; } else if (p - content.begin() == refArea && sh + sd > 0) { if (sh > 0) pheight += (aheight * ph) / sh; if (sd > 0) pdepth += (adepth * pd) / sd; } newContent.push_back((*p)->fit(width, pheight, pdepth)); } if (newContent == content) return this; else return clone(newContent); } bool VerticalArrayArea::searchByCoords(AreaId& id, const scaled& x, const scaled& y) const { std::vector box; scaled depth = prepareChildBoxes(box); scaled offset = -depth; for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { const AreaIndex i = p - content.begin(); offset += box[i].depth; id.append(i, *p, scaled::zero(), offset); if ((*p)->searchByCoords(id, x, y - offset)) return true; id.pop_back(); offset += box[i].height; } return false; } bool VerticalArrayArea::searchByIndex(AreaId& id, CharIndex index) const { for (std::vector::const_reverse_iterator p = content.rbegin(); p != content.rend(); p++) { id.append(content.size() - (p - content.rbegin()) - 1, *p); if ((*p)->searchByIndex(id, index)) return true; id.pop_back(); index -= (*p)->length(); } return false; } void VerticalArrayArea::origin(AreaIndex i, Point& point) const { assert(i >= 0 && i < content.size()); if (i < refArea) { if (BoundingBox idBox = content[i]->box()) point.y -= idBox.height; if (BoundingBox refBox = content[refArea]->box()) point.y -= refBox.depth; for (std::vector::const_iterator p = content.begin() + i + 1; p != content.begin() + refArea; p++) if (BoundingBox b = (*p)->box()) point.y -= b.verticalExtent(); } else if (i > refArea) { if (BoundingBox refBox = content[refArea]->box()) point.y += refBox.height; if (BoundingBox idBox = content[i]->box()) point.y += idBox.depth; for (std::vector::const_iterator p = content.begin() + refArea + 1; p != content.begin() + i; p++) if (BoundingBox b = (*p)->box()) point.y += b.verticalExtent(); } } CharIndex VerticalArrayArea::lengthTo(AreaIndex i) const { assert(i >= 0 && i < content.size()); CharIndex length = 0; for (std::vector::const_reverse_iterator p = content.rbegin(); p != content.rbegin() + i; p++) length += (*p)->length(); return length; } gtkmathview-0.8.0/src/backend/common/TFMComputerModernMathGraphicDevice.hh0000644000175000017500000000410110661271104023515 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TFMComputerModernMathGraphicDevice_hh__ #define __TFMComputerModernMathGraphicDevice_hh__ #include "MathGraphicDevice.hh" #include "ComputerModernFamily.hh" class GMV_MathView_EXPORT TFMComputerModernMathGraphicDevice : public MathGraphicDevice { protected: TFMComputerModernMathGraphicDevice(const SmartPtr&); virtual ~TFMComputerModernMathGraphicDevice(); public: void setFamily(const SmartPtr&); void setTFMManager(const SmartPtr&); static SmartPtr create(const SmartPtr&); virtual scaled em(const class FormattingContext&) const; virtual scaled ex(const class FormattingContext&) const; virtual scaled defaultLineThickness(const class FormattingContext&) const; virtual scaled axis(const class FormattingContext&) const; virtual AreaRef glyph(const class FormattingContext&, const String&, const String&, unsigned long) const; protected: SmartPtr getTFM(const class FormattingContext&, ComputerModernFamily::FontEncId) const; private: SmartPtr family; SmartPtr tfmManager; }; #endif // __TFMComputerModernMathGraphicDevice_hh__ gtkmathview-0.8.0/src/backend/common/Shaper.cc0000644000175000017500000001015410704610363016172 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Shaper.hh" #include "AreaFactory.hh" AreaRef Shaper::composeStretchyCharH(const SmartPtr& factory, const AreaRef& normal, const AreaRef& left, const AreaRef& glue, const AreaRef& right, const scaled& span) const { const scaled normalSize = normal ? normal->box().width : 0; const scaled leftSize = left ? left->box().width : 0; const scaled rightSize = right ? right->box().width : 0; const scaled glueSize = glue ? glue->box().width : 0; if (normalSize >= span) return normal; // Compute first the number of glue segments we have to use const int n = (glueSize > scaled::zero()) ? std::max(0, (span - leftSize - rightSize).getValue() / glueSize.getValue()) : 0; // Then the final number of glyphs const int gsN = (left ? 1 : 0) + n + (right ? 1 : 0); if (gsN == 0) return normal; std::vector h; h.reserve(gsN); if (left) h.push_back(left); for (int i = 0; i < n; i++) h.push_back(glue); if (right) h.push_back(right); return factory->glyphWrapper(factory->horizontalArray(h), 1); } AreaRef Shaper::composeStretchyCharV(const SmartPtr& factory, const AreaRef& normal, const AreaRef& top, const AreaRef& glue, const AreaRef& middle, const AreaRef& bottom, const scaled& span) const { const scaled normalSize = normal ? normal->box().verticalExtent() : 0; const scaled topSize = top ? top->box().verticalExtent() : 0; const scaled glueSize = glue ? glue->box().verticalExtent() : 0; const scaled middleSize = middle ? middle->box().verticalExtent() : 0; const scaled bottomSize = bottom ? bottom->box().verticalExtent() : 0; if (normalSize >= span) return normal; int n = (glueSize > scaled::zero()) ? std::max(0, (span - topSize - bottomSize - middleSize).getValue() / glueSize.getValue()) : 0; //std::cerr << "STRETCHYING: " << span << " N = " << n << std::endl; if (n % 2 == 1 && middle) n++; const int gsN = (top ? 1 : 0) + (middle ? 1 : 0) + n + (bottom ? 1 : 0); if (gsN == 0) return normal; std::vector v; v.reserve(gsN); if (bottom) v.push_back(bottom); if (middle) { for (int i = 0; i < n / 2; i++) v.push_back(glue); v.push_back(middle); for (int i = 0; i < n / 2; i++) v.push_back(glue); } else for (unsigned i = 0; i < n; i++) v.push_back(glue); if (top) v.push_back(top); // FIXME the 1 constant should not be hardcoded, the method // should have one more parameter saying how long the stretchy // character was return factory->glyphWrapper(factory->verticalArray(v, 0), 1); } bool Shaper::isDefaultShaper() const { return false; } bool Shaper::shapeCombiningChar(const ShapingContext&) const { return false; } bool Shaper::computeCombiningCharOffsetsAbove(const AreaRef& base, const AreaRef& script, scaled& dx, scaled& dy) const { //default value of dx and dy dx = (base->box().width - script->box().width) / 2; dy = base->box().height + script->box().depth; return true; } bool Shaper::computeCombiningCharOffsetsBelow(const AreaRef& base, const AreaRef& script, scaled& dxUnder) const { dxUnder = (base->box().width - script->box().width) / 2; return true; } gtkmathview-0.8.0/src/backend/common/Makefile.am0000644000175000017500000000752310704610363016503 00000000000000 NULL = if COND_TFM MAYBE_TFM_SUBDIRS = tfm MAYBE_TFM_L = $(top_builddir)/src/backend/common/tfm/libtfm.la else MAYBE_TFM_SUBDIRS = MAYBE_TFM_L = $(NULL) endif SUBDIRS = $(MAYBE_TFM_SUBDIRS) noinst_LTLIBRARIES = libbackend_common.la if COND_BOXML MAYBE_BOXML_S = \ BoxGraphicDevice.cc \ $(NULL) MAYBE_BOXML_H = \ BoxGraphicDevice.hh \ $(NULL) else MAYBE_BOXML_S = $(NULL) MAYBE_BOXML_H = $(NULL) endif if COND_TFM MAYBE_TFM_S = \ TFMComputerModernShaper.cc \ TFMComputerModernMathGraphicDevice.cc \ TFMFont.cc \ TFMFontManager.cc \ TFMGlyphArea.cc \ $(NULL) MAYBE_TFM_H = \ TFMComputerModernShaper.hh \ TFMComputerModernMathGraphicDevice.hh \ TFMFont.hh \ TFMFontManager.hh \ TFMGlyphArea.hh \ $(NULL) else MAYBE_TFM_S = $(NULL) MAYBE_TFM_H = $(NULL) endif if COND_T1LIB if COND_TFM MAYBE_T1LIB_TFM_S = \ t1lib_TFM_T1Font.cc \ t1lib_TFM_T1FontManager.cc \ $(NULL) MAYBE_T1LIB_TFM_H = \ t1lib_TFM_T1Font.hh \ t1lib_TFM_T1FontManager.hh \ $(NULL) else MAYBE_T1LIB_TFM_S = $(NULL) MAYBE_T1LIB_TFM_H = $(NULL) endif MAYBE_T1LIB_S = \ t1lib_T1Font.cc \ t1lib_T1FontManager.cc \ $(MAYBE_T1LIB_TFM_S) \ $(NULL) MAYBE_T1LIB_H = \ t1lib_T1Font.hh \ t1lib_T1FontManager.hh \ $(MAYBE_T1LIB_TFM_H) \ $(NULL) MAYBE_T1LIB_L = $(T1_LIBS) else MAYBE_T1LIB_S = $(NULL) MAYBE_T1LIB_H = $(NULL) MAYBE_T1LIB_L = $(NULL) endif libbackend_common_la_CPPFLAGS = -DGMV_MathView_DLL libbackend_common_la_SOURCES = \ Area.cc \ AreaFactory.cc \ AreaId.cc \ AreaIdAux.cc \ Backend.cc \ BinContainerArea.cc \ BoxArea.cc \ BoxedLayoutArea.cc \ ColorArea.cc \ CombinedGlyphArea.cc \ ComputerModernFamily.cc \ ComputerModernShaper.cc \ FormattingContext.cc \ GlyphArea.cc \ GlyphStringArea.cc \ GlyphWrapperArea.cc \ GraphicDevice.cc \ HideArea.cc \ HorizontalArrayArea.cc \ HorizontalFillerArea.cc \ HorizontalSpaceArea.cc \ IdArea.cc \ IgnoreArea.cc \ InkArea.cc \ LinearContainerArea.cc \ MathGraphicDevice.cc \ NullShaper.cc \ OverlapArrayArea.cc \ Shaper.cc \ ShaperManager.cc \ ShapingContext.cc \ ShiftArea.cc \ SimpleArea.cc \ SpaceShaper.cc \ StandardSymbolsShaper.cc \ StepArea.cc \ VerticalArrayArea.cc \ VerticalFillerArea.cc \ VerticalSpaceArea.cc \ WrapperArea.cc \ $(MAYBE_BOXML_S) \ $(MAYBE_TFM_S) \ $(MAYBE_T1LIB_S) \ $(MAYBE_TFM_H) \ $(MAYBE_T1LIB_H) \ $(MAYBE_BOXML_H) \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ Area.hh \ AreaFactory.hh \ AreaId.hh \ AreaIdAux.hh \ Backend.hh \ BinContainerArea.hh \ BoxArea.hh \ BoxedLayoutArea.hh \ CachedShapedString.hh \ ColorArea.hh \ CombinedGlyphArea.hh \ ComputerModernFamily.hh \ ComputerModernShaper.hh \ ContainerArea.hh \ FillerArea.hh \ FormattingContext.hh \ GlyphArea.hh \ GlyphSpec.hh \ GlyphStringArea.hh \ GlyphWrapperArea.hh \ GraphicDevice.hh \ HideArea.hh \ HorizontalArrayArea.hh \ HorizontalFillerArea.hh \ HorizontalSpaceArea.hh \ IdArea.hh \ IgnoreArea.hh \ InkArea.hh \ LinearContainerArea.hh \ MathGraphicDevice.hh \ NullShaper.hh \ OverlapArrayArea.hh \ RenderingContext.hh \ SearchingContext.hh \ Shaper.hh \ ShaperManager.hh \ ShapingContext.hh \ ShiftArea.hh \ SimpleArea.hh \ SpaceShaper.hh \ StandardSymbolsShaper.hh \ StepArea.hh \ T1Font.hh \ VerticalArrayArea.hh \ VerticalFillerArea.hh \ VerticalSpaceArea.hh \ WrapperArea.hh \ $(MAYBE_TFM_H) \ $(MAYBE_T1LIB_H) \ $(MAYBE_BOXML_H) \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/backend/common/tfm \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ $(T1_CFLAGS) \ $(NULL) libbackend_common_la_LIBADD = \ $(MAYBE_TFM_L) \ $(MAYBE_T1LIB_L) \ $(NULL) gtkmathview-0.8.0/src/backend/common/TFMComputerModernShaper.hh0000644000175000017500000000362210661271104021437 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TFMComputerModernShaper_hh__ #define __TFMComputerModernShaper_hh__ #include "ComputerModernShaper.hh" class GMV_MathView_EXPORT TFMComputerModernShaper : public ComputerModernShaper { protected: TFMComputerModernShaper(const SmartPtr&, const SmartPtr&); virtual ~TFMComputerModernShaper(); public: void setFontManager(const SmartPtr&); SmartPtr getFontManager(void) const; protected: static ComputerModernFamily::FontNameId fontNameIdOfTFM(const SmartPtr&); virtual void postShape(class ShapingContext&) const; virtual SmartPtr getFont(ComputerModernFamily::FontNameId, ComputerModernFamily::FontSizeId, const scaled&) const; virtual bool getGlyphData(const AreaRef&, SmartPtr&, UChar8&) const = 0; virtual bool computeCombiningCharOffsetsAbove(const AreaRef&, const AreaRef&, scaled&, scaled&) const; private: SmartPtr tfmFontManager; }; #endif // __TFMComputerModernShaper_hh__ gtkmathview-0.8.0/src/backend/common/HorizontalArrayArea.hh0000644000175000017500000000404610661271104020704 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __HorizontalArrayArea_hh__ #define __HorizontalArrayArea_hh__ #include "LinearContainerArea.hh" class GMV_MathView_EXPORT HorizontalArrayArea : public LinearContainerArea { protected: HorizontalArrayArea(const std::vector& children) : LinearContainerArea(children) { } virtual ~HorizontalArrayArea() { } public: static SmartPtr create(const std::vector&); virtual AreaRef clone(const std::vector& c) const { return create(c); } virtual AreaRef flatten(void) const; virtual BoundingBox box(void) const; virtual void render(class RenderingContext&, const scaled&, const scaled&) const; virtual scaled leftEdge(void) const; virtual scaled rightEdge(void) const; virtual AreaRef fit(const scaled&, const scaled&, const scaled&) const; virtual void strength(int&, int&, int&) const; virtual void origin(AreaIndex, class Point&) const; virtual scaled getStep(void) const; virtual bool searchByCoords(class AreaId&, const scaled&, const scaled&) const; scaled leftSide(AreaIndex) const; scaled rightSide(AreaIndex) const; private: static void flattenAux(std::vector&, const std::vector&); }; #endif // __HorizontalArrayArea_hh__ gtkmathview-0.8.0/src/backend/common/BoxGraphicDevice.hh0000644000175000017500000000272710661271104020135 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxGraphicDevice_hh__ #define __BoxGraphicDevice_hh__ #include "Area.hh" #include "String.hh" #include "GraphicDevice.hh" class GMV_MathView_EXPORT BoxGraphicDevice : public GraphicDevice { protected: BoxGraphicDevice(const SmartPtr&); virtual ~BoxGraphicDevice(); public: virtual scaled ex(const class FormattingContext&) const; virtual AreaRef string(const class FormattingContext&, const String&, const scaled&) const; virtual AreaRef dummy(const class FormattingContext&) const; virtual AreaRef wrapper(const class FormattingContext&, const AreaRef&) const; }; #endif // __BoxGraphicDevice_hh__ gtkmathview-0.8.0/src/backend/common/t1lib_TFM_T1FontManager.cc0000644000175000017500000000361310661271104021157 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "TFMManager.hh" #include "t1lib_TFM_T1Font.hh" #include "t1lib_TFM_T1FontManager.hh" t1lib_TFM_T1FontManager::t1lib_TFM_T1FontManager(const SmartPtr& logger, const SmartPtr& conf, const SmartPtr& tm) : t1lib_T1FontManager(logger, conf), tfmManager(tm) { } t1lib_TFM_T1FontManager::~t1lib_TFM_T1FontManager() { } SmartPtr t1lib_TFM_T1FontManager::create(const SmartPtr& logger, const SmartPtr& conf, const SmartPtr& tm) { return new t1lib_TFM_T1FontManager(logger, conf, tm); } SmartPtr t1lib_TFM_T1FontManager::createT1Font(const String& name, const scaled& size) const { if (SmartPtr tfm = tfmManager->getTFM(name)) { const int fontId = getFontId(name); if (fontId >= 0) return t1lib_TFM_T1Font::create(fontId, size, tfm); else return 0; } else return t1lib_T1FontManager::createT1Font(name, size); } gtkmathview-0.8.0/src/backend/common/InkArea.hh0000644000175000017500000000234710661271104016277 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __InkArea_hh__ #define __InkArea_hh__ #include "BinContainerArea.hh" class GMV_MathView_EXPORT InkArea : public BinContainerArea { protected: InkArea(const AreaRef& area) : BinContainerArea(area) { } virtual ~InkArea() { } public: static SmartPtr create(const AreaRef& area) { return new InkArea(area); } virtual AreaRef clone(const AreaRef&) const; }; #endif // __InkArea_hh__ gtkmathview-0.8.0/src/backend/common/GlyphStringArea.cc0000644000175000017500000000572410661271104020020 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "GlyphStringArea.hh" #include "Rectangle.hh" #include "Point.hh" CharIndex GlyphStringArea::length() const { CharIndex l = 0; // FIXME: this can be rewritten with an accumulator for (std::vector::const_iterator p = counters.begin(); p != counters.end(); p++) l += *p; return l; } CharIndex GlyphStringArea::lengthTo(AreaIndex index) const { assert(index >= 0 && index < content.size()); CharIndex acc = 0; for (std::vector::const_iterator p = counters.begin(); p != counters.begin() + index; p++) acc += *p; return acc; } bool GlyphStringArea::indexOfPosition(const scaled& x0, const scaled& y, CharIndex& index) const { const BoundingBox bbox = box(); index = 0; scaled x = x0; for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { const BoundingBox pbox((*p)->box().width, bbox.height, bbox.depth); if (Rectangle(scaled::zero(), scaled::zero(), pbox).isInside(x, y)) { CharIndex i; if ((*p)->indexOfPosition(x, y, i)) { index += i; return true; } else { if (x >= pbox.width / 2) index += counters[p - content.begin()]; return true; } } else { index += counters[p - content.begin()]; x -= (*p)->box().width; } } return false; } // #include bool GlyphStringArea::positionOfIndex(CharIndex index, Point* point, BoundingBox* b) const { for (std::vector::const_iterator p = counters.begin(); p != counters.end(); p++) if (index < *p) { if (content[p - counters.begin()]->positionOfIndex(index, point, b)) return true; else if (index == *p) { point->x += content[p - counters.begin()]->box().width; if (b) *b = content[p - counters.begin()]->box(); return true; } else return true; } else { // std::cerr << "GlyphStringArea::positionOfIndex iterating index = " << index << std::endl; index -= *p; point->x += content[p - counters.begin()]->box().width; } return false; } SmartPtr GlyphStringArea::getGlyphStringArea() const { return this; } gtkmathview-0.8.0/src/backend/common/BoxedLayoutArea.cc0000644000175000017500000000731710661271104020005 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AreaId.hh" #include "Point.hh" #include "BoxedLayoutArea.hh" void BoxedLayoutArea::render(class RenderingContext& context, const scaled& x, const scaled& y) const { for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) p->area->render(context, x + p->dx, y + p->dy); } bool BoxedLayoutArea::searchByArea(AreaId& id, const AreaRef& area) const { if (this == area) return true; else { for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { id.append(p - content.begin(), p->area); if (p->area->searchByArea(id, area)) return true; id.pop_back(); } return false; } } bool BoxedLayoutArea::searchByCoords(AreaId& id, const scaled& x, const scaled& y) const { // See OverlapArrayArea for the reason why the search must be done // from the last to the first area for (std::vector::const_reverse_iterator p = content.rbegin(); p != content.rend(); p++) { id.append(content.size() - (p - content.rbegin()) - 1, p->area, p->dx, p->dy); if (p->area->searchByCoords(id, x - p->dx, y - p->dy)) return true; id.pop_back(); } return false; } bool BoxedLayoutArea::searchByIndex(AreaId& id, CharIndex index) const { for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { id.append(p - content.begin(), p->area); if (p->area->searchByIndex(id, index)) return true; id.pop_back(); index -= p->area->length(); } return false; } scaled BoxedLayoutArea::leftEdge() const { return scaled::min(); // FIXME } scaled BoxedLayoutArea::rightEdge() const { return scaled::min(); // FIXME } void BoxedLayoutArea::strength(int& w, int& h, int& d) const { w = h = d = 0; } AreaRef BoxedLayoutArea::fit(const scaled& width, const scaled& height, const scaled& depth) const { std::vector newContent; newContent.reserve(content.size()); for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { BoundingBox pbox = p->area->box(); newContent.push_back(XYArea(p->dx, p->dy, p->area->fit(pbox.width, pbox.height, pbox.depth))); } if (newContent == content) return this; else return clone(newContent); } AreaRef BoxedLayoutArea::node(AreaIndex i) const { assert(i >= 0 && i < content.size()); return content[i].area; } void BoxedLayoutArea::origin(AreaIndex i, Point& p) const { assert(i >= 0 && i < content.size()); p.x += content[i].dx; p.y += content[i].dy; } CharIndex BoxedLayoutArea::lengthTo(AreaIndex i) const { assert(i >= 0 && i < content.size()); CharIndex length = 0; for (std::vector::const_iterator p = content.begin(); p != content.begin() + i; p++) length += p->area->length(); return length; } gtkmathview-0.8.0/src/backend/common/BinContainerArea.cc0000644000175000017500000000647710661271104020127 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AreaId.hh" #include "BinContainerArea.hh" #include "GlyphStringArea.hh" #include "GlyphArea.hh" BoundingBox BinContainerArea::box() const { return child->box(); } void BinContainerArea::render(class RenderingContext& context, const scaled& x, const scaled& y) const { child->render(context, x, y); } scaled BinContainerArea::leftEdge() const { return child->leftEdge(); } scaled BinContainerArea::rightEdge() const { return child->rightEdge(); } bool BinContainerArea::searchByArea(AreaId& id, const AreaRef& area) const { if (area == this) return true; else { id.append(0, child); if (child->searchByArea(id, area)) return true; id.pop_back(); return false; } } bool BinContainerArea::searchByCoords(AreaId& id, const scaled& x, const scaled& y) const { id.append(0, child, scaled::zero(), scaled::zero()); if (child->searchByCoords(id, x, y)) return true; id.pop_back(); return false; } bool BinContainerArea::searchByIndex(AreaId& id, CharIndex index) const { id.append(0, child); if (child->searchByIndex(id, index)) return true; id.pop_back(); return false; } AreaRef BinContainerArea::fit(const scaled& w, const scaled& h, const scaled& d) const { AreaRef fitChild = child->fit(w, h, d); if (fitChild == child) return this; else return clone(fitChild); } void BinContainerArea::strength(int& w, int& h, int& d) const { child->strength(w, h, d); } AreaRef BinContainerArea::node(AreaIndex i) const { assert(i == 0); return getChild(); } void BinContainerArea::origin(AreaIndex i, class Point&) const { assert(i == 0); } CharIndex BinContainerArea::lengthTo(AreaIndex i) const { assert(i == 0); return 0; } AreaRef BinContainerArea::replace(AreaIndex i, const AreaRef& newChild) const { assert(i == 0); return (child == newChild) ? this : clone(newChild); } bool BinContainerArea::indexOfPosition(const scaled& x, const scaled& y, CharIndex& index) const { return child->indexOfPosition(x, y, index); } bool BinContainerArea::positionOfIndex(CharIndex index, class Point* p, BoundingBox* b) const { return child->positionOfIndex(index, p, b); } CharIndex BinContainerArea::length() const { return child->length(); } scaled BinContainerArea::getStep() const { return child->getStep(); } SmartPtr BinContainerArea::getGlyphStringArea() const { return child->getGlyphStringArea(); } SmartPtr BinContainerArea::getGlyphArea() const { return child->getGlyphArea(); } gtkmathview-0.8.0/src/backend/common/HideArea.hh0000644000175000017500000000254110661271104016423 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __HideArea_hh__ #define __HideArea_hh__ #include "BinContainerArea.hh" class GMV_MathView_EXPORT HideArea : public BinContainerArea { protected: HideArea(const AreaRef& area) : BinContainerArea(area) { } virtual ~HideArea() { } public: static SmartPtr create(const AreaRef& area) { return new HideArea(area); } virtual AreaRef clone(const AreaRef& area) const { return create(area); } virtual void render(class RenderingContext&, const scaled&, const scaled&) const; }; #endif // __HideArea_hh__ gtkmathview-0.8.0/src/backend/common/HorizontalArrayArea.cc0000644000175000017500000001371310661271104020673 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AreaId.hh" #include "Point.hh" #include "HorizontalArrayArea.hh" SmartPtr HorizontalArrayArea::create(const std::vector& children) { return new HorizontalArrayArea(children); } void HorizontalArrayArea::flattenAux(std::vector& dest, const std::vector& source) { for (std::vector::const_iterator p = source.begin(); p != source.end(); p++) { AreaRef flattened = (*p)->flatten(); if (SmartPtr harea = smart_cast(flattened)) flattenAux(dest, harea->content); else dest.push_back(flattened); } } AreaRef HorizontalArrayArea::flatten(void) const { std::vector newContent(content.size()); flattenAux(newContent, content); if (newContent != content) return clone(newContent); else return this; } BoundingBox HorizontalArrayArea::box() const { BoundingBox bbox; scaled step = 0; for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { bbox.append((*p)->box()); const scaled childStep = (*p)->getStep(); bbox.height -= childStep; bbox.depth += childStep; step += childStep; } // must restore the baseline bbox.height += step; bbox.depth -= step; return bbox; } void HorizontalArrayArea::render(class RenderingContext& context, const scaled& x0, const scaled& y0) const { scaled x = x0; scaled y = y0; for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { (*p)->render(context, x, y); x += (*p)->box().horizontalExtent(); y += (*p)->getStep(); } } bool HorizontalArrayArea::searchByCoords(AreaId& id, const scaled& x, const scaled& y0) const { scaled offset; scaled y = y0; for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { id.append(p - content.begin(), *p, offset, scaled::zero()); if ((*p)->searchByCoords(id, x - offset, y)) return true; id.pop_back(); offset += (*p)->box().horizontalExtent(); y += (*p)->getStep(); } return false; } scaled HorizontalArrayArea::leftEdge() const { scaled edge = scaled::max(); scaled d = 0; for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { scaled pedge = (*p)->leftEdge(); if (pedge < scaled::max()) edge = std::min(edge, d + pedge); d += (*p)->box().horizontalExtent(); } return edge; } scaled HorizontalArrayArea::rightEdge() const { scaled edge = scaled::min(); scaled d = 0; for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { scaled pedge = (*p)->rightEdge(); if (pedge > scaled::min()) edge = std::max(edge, d + pedge); d += (*p)->box().horizontalExtent(); } return edge; } scaled HorizontalArrayArea::leftSide(AreaIndex i) const { assert(i >= 0 && i < content.size()); AreaIndex l = i; scaled redge = scaled::min(); while (redge == scaled::min() && l > 0) redge = content[l--]->rightEdge(); return (redge != scaled::min()) ? originX(i) + redge : scaled::zero(); } scaled HorizontalArrayArea::rightSide(AreaIndex i) const { assert(i >= 0 && i < content.size()); AreaIndex r = i; scaled ledge = scaled::max(); while (ledge == scaled::max() && r + 1 < content.size()) ledge = content[r++]->leftEdge(); return (ledge != scaled::max()) ? originX(i) + ledge : box().width; } void HorizontalArrayArea::strength(int& w, int& h, int& d) const { w = h = d = 0; for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { int pw; int ph; int pd; (*p)->strength(pw, ph, pd); w += pw; h = std::max(h, ph); d = std::max(d, pd); } } AreaRef HorizontalArrayArea::fit(const scaled& width, const scaled& height, const scaled& depth) const { int sw, sh, sd; strength(sw, sh, sd); BoundingBox box0 = box(); std::vector newContent; newContent.reserve(content.size()); for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) { int pw, ph, pd; (*p)->strength(pw, ph, pd); BoundingBox pbox = (*p)->box(); if (sw == 0 || pw == 0) newContent.push_back((*p)->fit(pbox.width, height, depth)); else { scaled pwidth = (std::max(pbox.width, width - box0.width) * pw) / sw; newContent.push_back((*p)->fit(pwidth, height, depth)); } } if (newContent == content) return this; else return clone(newContent); } void HorizontalArrayArea::origin(AreaIndex i, Point& point) const { assert(i >= 0 && i < content.size()); for (std::vector::const_iterator p = content.begin(); p != content.begin() + i; p++) { point.x += (*p)->box().horizontalExtent(); point.y += (*p)->getStep(); } } scaled HorizontalArrayArea::getStep() const { scaled step = 0; for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) step += (*p)->getStep(); return step; } gtkmathview-0.8.0/src/backend/common/ShaperManager.hh0000644000175000017500000000556610704610363017512 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __ShaperManager_hh__ #define __ShaperManager_hh__ #include "String.hh" #include "scaled.hh" #include "GlyphSpec.hh" #include "SparseMap.hh" #include "Area.hh" #include "Object.hh" #include "SmartPtr.hh" class GMV_MathView_EXPORT ShaperManager : public Object { protected: ShaperManager(const SmartPtr&); virtual ~ShaperManager(); public: static SmartPtr create(const SmartPtr&); SmartPtr shape(const class FormattingContext&, const SmartPtr&, const SmartPtr&, const UCS4String&) const; SmartPtr shapeStretchy(const class FormattingContext&, const SmartPtr&, const SmartPtr&, const UCS4String&, const scaled& = 0, const scaled& = 0) const; unsigned registerShaper(const SmartPtr&); void unregisterShapers(void); GlyphSpec registerChar(Char32 ch, const GlyphSpec& spec); GlyphSpec registerStretchyChar(Char32 ch, const GlyphSpec& spec); AreaRef compose(const FormattingContext& context, const AreaRef base, const UCS4String baseSource, const AreaRef script, const UCS4String scriptSource, bool overScript); private: const GlyphSpec& map(Char32 ch) const; const GlyphSpec& mapStretchy(Char32 ch) const; SmartPtr shapeAux(class ShapingContext&) const; SmartPtr getShaper(unsigned) const; static const unsigned MAX_SHAPERS = 16; static const unsigned HIGH_BITS = 16; static const unsigned LOW_BITS = 8; static const unsigned STRETCHY_BIT = LOW_BITS + HIGH_BITS; static const unsigned STRETCHY_FLAG = 1 << STRETCHY_BIT; static const Char32 BIGGEST_CHAR = (1 << (HIGH_BITS + 1 + LOW_BITS)) - 1; SparseMap glyphSpec; unsigned nextShaperId; SmartPtr logger; SmartPtr errorShaper; SmartPtr shaper[MAX_SHAPERS]; }; #endif // __ShaperManager_hh__ gtkmathview-0.8.0/src/backend/common/BoxArea.cc0000644000175000017500000000322710661271104016272 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "BoxArea.hh" #include "Rectangle.hh" BoxArea::BoxArea(const AreaRef& area, const BoundingBox& b) : BinContainerArea(area->fit(b.width, b.height, b.depth)), bbox(b) { } AreaRef BoxArea::fit(const scaled&, const scaled&, const scaled&) const { #if 0 AreaRef newChild = getChild()->fit(bbox.width, bbox.height, bbox.depth); if (newChild == getChild()) return this; else return clone(newChild); #endif return this; } void BoxArea::strength(int& w, int& h, int& d) const { w = h = d = 0; } bool BoxArea::searchByCoords(AreaId& id, const scaled& x, const scaled& y) const { if (Rectangle(scaled::zero(), scaled::zero(), box()).isInside(x, y)) { if (BinContainerArea::searchByCoords(id, x, y)) return true; return true; } else return false; } gtkmathview-0.8.0/src/backend/common/IdArea.cc0000644000175000017500000000157210661271104016077 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "IdArea.hh" gtkmathview-0.8.0/src/backend/common/CombinedGlyphArea.cc0000644000175000017500000000745410661271104020274 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "CombinedGlyphArea.hh" #include "ContainerArea.hh" #include "Rectangle.hh" #include "GlyphArea.hh" #include "GlyphStringArea.hh" CombinedGlyphArea::CombinedGlyphArea(const AreaRef& b, const AreaRef& a, const AreaRef& u, const scaled& skewchar, const scaled& verticalSpace, const scaled& underSkew) : ContainerArea(), base(b), accent(a), under(u), dx(skewchar), dy(verticalSpace), dxUnder(underSkew) { scaled width = base->box().width; scaled depth = under ? under->box().depth + base->box().depth : base->box().depth; scaled height = accent ? dy + accent->box().height : base->box().height; bbox = BoundingBox(width, height, depth); } CombinedGlyphArea::~CombinedGlyphArea() { } BoundingBox CombinedGlyphArea::box() const { return bbox; } void CombinedGlyphArea::render(class RenderingContext& rCxtx, const scaled& x, const scaled& y) const { if (accent) accent->render(rCxtx, x + dx, y + dy); if (under) under->render(rCxtx, x + dxUnder, y); base->render(rCxtx, x, y); } AreaRef CombinedGlyphArea::fit(const scaled& width, const scaled& height, const scaled& depth) const { return this; } scaled CombinedGlyphArea::leftEdge() const { return scaled::min(); // FIXME } scaled CombinedGlyphArea::rightEdge() const { return std::max(base->box().width, dx + accent->box().width); } void CombinedGlyphArea::strength(int& w, int& h, int& d) const { // I apply this method to an Area without children w = h = d = 0; } AreaRef CombinedGlyphArea::node(AreaIndex) const { // cannot have children assert(false); } void CombinedGlyphArea::origin(AreaIndex, class Point&) const { // cannot have children assert(false); } CharIndex CombinedGlyphArea::lengthTo(AreaIndex) const { // cannot have children assert(false); } bool CombinedGlyphArea::searchByArea(class AreaId&, const AreaRef& area) const { if (base == area) return true; else if (accent && accent == area) return true; else if (under && under == area) return true; else return false; } bool CombinedGlyphArea::searchByCoords(class AreaId& id, const scaled& x, const scaled& y) const { return Rectangle(scaled::zero(), scaled::zero(), bbox).isInside(x, y); } bool CombinedGlyphArea::searchByIndex(class AreaId&, CharIndex) const { return false; } bool CombinedGlyphArea::indexOfPosition(const scaled& x, const scaled& y, CharIndex& index) const { if (Rectangle(scaled::zero(), scaled::zero(), bbox).isInside(x, y)) { index = (x < bbox.width / 2) ? 0 : length(); return true; } else return false; } bool CombinedGlyphArea::positionOfIndex(CharIndex index, class Point*, BoundingBox* b) const { if (index == 0 && index < length()) { if (b) *b = bbox; return true; } else return false; } SmartPtr CombinedGlyphArea::getGlyphArea() const { return base->getGlyphArea(); } SmartPtr CombinedGlyphArea::getGlyphStringArea(void) const { return base->getGlyphStringArea(); } gtkmathview-0.8.0/src/backend/common/GlyphWrapperArea.hh0000644000175000017500000000376510661271104020207 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __GlyphWrapperArea_hh__ #define __GlyphWrapperArea_hh__ #include "BinContainerArea.hh" class GMV_MathView_EXPORT GlyphWrapperArea : public BinContainerArea { protected: GlyphWrapperArea(const AreaRef& area, CharIndex l) : BinContainerArea(area), contentLength(l) { } virtual ~GlyphWrapperArea() { } public: static SmartPtr create(const AreaRef& area, CharIndex l) { return new GlyphWrapperArea(area, l); } virtual AreaRef clone(const AreaRef& area) const { return create(area, length()); } virtual CharIndex length(void) const { return contentLength; } virtual CharIndex lengthTo(AreaIndex) const; virtual AreaRef node(AreaIndex) const; virtual void origin(AreaIndex, class Point&) const; virtual bool indexOfPosition(const scaled&, const scaled&, CharIndex&) const; virtual bool positionOfIndex(CharIndex, class Point*, BoundingBox*) const; virtual bool searchByArea(class AreaId&, const AreaRef&) const; virtual bool searchByCoords(class AreaId&, const scaled&, const scaled&) const; virtual bool searchByIndex(class AreaId&, CharIndex) const; private: CharIndex contentLength; }; #endif // __GlyphWrapperArea_hh__ gtkmathview-0.8.0/src/backend/common/SimpleArea.cc0000644000175000017500000000352510661271104016774 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AreaId.hh" #include "SimpleArea.hh" #include "Rectangle.hh" AreaRef SimpleArea::fit(const scaled&, const scaled&, const scaled&) const { return this; } void SimpleArea::strength(int& w, int& h, int& d) const { w = h = d = 0; } void SimpleArea::render(class RenderingContext&, const scaled&, const scaled&) const { } bool SimpleArea::searchByArea(AreaId&, const AreaRef& area) const { return this == area; } bool SimpleArea::searchByCoords(AreaId&, const scaled& x, const scaled& y) const { return Rectangle(scaled::zero(), scaled::zero(), box()).isInside(x, y); } bool SimpleArea::searchByIndex(AreaId&, CharIndex index) const { return false; } AreaRef SimpleArea::node(AreaIndex) const { // A leaf area cannot have children assert(false); } void SimpleArea::origin(AreaIndex, class Point&) const { // A leaf area cannot have children assert(false); } CharIndex SimpleArea::lengthTo(AreaIndex) const { // A leaf area cannot have children assert(false); } gtkmathview-0.8.0/src/backend/common/IgnoreArea.cc0000644000175000017500000000207410661271104016764 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "IgnoreArea.hh" BoundingBox IgnoreArea::box() const { return BoundingBox(); } scaled IgnoreArea::leftEdge() const { return scaled::min(); } scaled IgnoreArea::rightEdge() const { return scaled::min(); } gtkmathview-0.8.0/src/backend/common/IdArea.hh0000644000175000017500000000237410661271104016112 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __IdArea_hh__ #define __IdArea_hh__ #include "BinContainerArea.hh" class GMV_MathView_EXPORT IdArea : public BinContainerArea { protected: IdArea(const AreaRef& area) : BinContainerArea(area) { } virtual ~IdArea() { } public: static SmartPtr create(const AreaRef& area) { return new IdArea(area); } virtual AreaRef clone(const AreaRef& area) const { return create(area); } }; #endif // __IdArea_hh__ gtkmathview-0.8.0/src/backend/common/t1lib_T1FontManager.cc0000644000175000017500000000633610661271104020456 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "t1lib_T1Font.hh" #include "t1lib_T1FontManager.hh" bool t1lib_T1FontManager::firstTime = true; // #include t1lib_T1FontManager::t1lib_T1FontManager(const SmartPtr& logger, const SmartPtr& configuration) { if (firstTime) { if (getenv("T1LIB_CONFIG") == NULL) { logger->out(LOG_WARNING, "T1LIB_CONFIG environment variable not set"); String path = configuration->getString(logger, "default/t1lib/configuration", ""); setenv("T1LIB_CONFIG", path.c_str(), 1); } const void* res = T1_InitLib(LOGFILE | IGNORE_FONTDATABASE); assert(res != 0); firstTime = false; T1_SetLogLevel(T1LOG_DEBUG); } } t1lib_T1FontManager::~t1lib_T1FontManager() { const int res = T1_CloseLib(); assert(res == 0); firstTime = true; // should free the structures } SmartPtr t1lib_T1FontManager::create(const SmartPtr& logger, const SmartPtr& configuration) { return new t1lib_T1FontManager(logger, configuration); } int t1lib_T1FontManager::loadFont(const String& name) const { const int n = T1_GetNoFonts(); for (int i = 0; i < n; i++) if (name == T1_GetFontFileName(i)) return true; // font already in the database const int fontId = T1_AddFont(const_cast(name.c_str())); // DANGER, const cast if (fontId >= 0) T1_LoadFont(fontId); // std::cerr << "loading font " << name << " => " << fontId << std::endl; return fontId; } int t1lib_T1FontManager::getFontId(const String& name) const { const int n = T1_GetNoFonts(); for (int i = 0; i < n; i++) if (name == T1_GetFontFileName(i)) return i; return loadFont(name); } SmartPtr t1lib_T1FontManager::createT1Font(const String& name, const scaled& size) const { const int fontId = getFontId(name); if (fontId >= 0) return t1lib_T1Font::create(fontId, size); else return 0; } SmartPtr t1lib_T1FontManager::getT1Font(const String& name, const scaled& size) const { const CachedT1FontKey key(name, size); T1FontCache::iterator p = fontCache.find(key); if (p != fontCache.end()) return p->second; else if (const SmartPtr font = createT1Font(name, size)) { fontCache[key] = font; return font; } else return 0; } gtkmathview-0.8.0/src/backend/common/FormattingContext.cc0000644000175000017500000000643410661271104020433 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLElement.hh" #include "BoxMLElement.hh" #include "MathGraphicDevice.hh" #include "BoxGraphicDevice.hh" #include "FormattingContext.hh" #include #if GMV_ENABLE_BOXML FormattingContext::FormattingContext(const SmartPtr& md, const SmartPtr& bd) : mathGraphicDevice(md), boxGraphicDevice(bd) #else FormattingContext::FormattingContext(const SmartPtr& md) : mathGraphicDevice(md) #endif { setMathMode(true); setSize(mathGraphicDevice->evaluate(*this, Length(10.0, Length::PT_UNIT), scaled::zero())); setActualSize(getSize()); setVariant(NORMAL_VARIANT); setColor(RGBColor::BLACK()); setBackground(RGBColor::WHITE()); set(SCRIPT_LEVEL, 0); setMinSize(mathGraphicDevice->evaluate(*this, Length(6.0, Length::PT_UNIT), scaled::zero())); setDisplayStyle(false); setSizeMultiplier(0.71); for (int i = -7; i <= 7; i++) setMathSpace(ZERO_SPACE + i, Length(i / 18.0, Length::EM_UNIT)); setAvailableWidth(scaled::zero()); setStretchOperator(0); setStretchToWidth(scaled::zero()); setStretchToHeight(scaled::zero()); setStretchToDepth(scaled::zero()); setStretchH(scaled::zero()); setStretchV(scaled::zero()); } FormattingContext::~FormattingContext() { } void FormattingContext::addScriptLevel(int dl) { scaled aSize = getActualSize() * pow(getSizeMultiplier(), dl); setActualSize(aSize); setSize(std::max(getMinSize(), aSize)); set(SCRIPT_LEVEL, getScriptLevel() + dl); } SmartPtr FormattingContext::getStretchOperator() const { return get< SmartPtr >(STRETCH_OP); } void FormattingContext::setStretchOperator(const SmartPtr& op) { set< SmartPtr >(STRETCH_OP, op); } void FormattingContext::push(const SmartPtr& el) { push(); set(MATHML_ELEMENT, el); } SmartPtr FormattingContext::getMathMLElement() const { return get >(MATHML_ELEMENT); } SmartPtr FormattingContext::MGD() const { return mathGraphicDevice; } #if GMV_ENABLE_BOXML void FormattingContext::push(const SmartPtr& el) { push(); set(BOXML_ELEMENT, el); } SmartPtr FormattingContext::getBoxMLElement() const { return get< SmartPtr >(BOXML_ELEMENT); } SmartPtr FormattingContext::BGD() const { return boxGraphicDevice; } #endif // GMV_ENABLE_BOXML gtkmathview-0.8.0/src/backend/common/TFMFont.hh0000644000175000017500000000270410661271104016237 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TFMFont_hh__ #define __TFMFont_hh__ #include "Char.hh" #include "T1Font.hh" #include "SmartPtr.hh" #include "BoundingBox.hh" class GMV_MathView_EXPORT TFMFont : public T1Font { protected: TFMFont(const SmartPtr&, const scaled&); virtual ~TFMFont(); public: static SmartPtr create(const SmartPtr&, const scaled&); SmartPtr getTFM(void) const; virtual scaled getGlyphLeftEdge(Char8) const; virtual scaled getGlyphRightEdge(Char8) const; virtual BoundingBox getGlyphBoundingBox(Char8) const; private: SmartPtr tfm; }; #endif // __TFMFont_hh__ gtkmathview-0.8.0/src/backend/common/Makefile.in0000644000175000017500000027516210704610540016517 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/backend/common DIST_COMMON = $(am__mathview_HEADERS_DIST) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) am__DEPENDENCIES_1 = @COND_TFM_FALSE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) @COND_TFM_TRUE@am__DEPENDENCIES_2 = $(top_builddir)/src/backend/common/tfm/libtfm.la @COND_T1LIB_FALSE@am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1) @COND_T1LIB_TRUE@am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1) libbackend_common_la_DEPENDENCIES = $(am__DEPENDENCIES_2) \ $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_1) am__libbackend_common_la_SOURCES_DIST = Area.cc AreaFactory.cc \ AreaId.cc AreaIdAux.cc Backend.cc BinContainerArea.cc \ BoxArea.cc BoxedLayoutArea.cc ColorArea.cc \ CombinedGlyphArea.cc ComputerModernFamily.cc \ ComputerModernShaper.cc FormattingContext.cc GlyphArea.cc \ GlyphStringArea.cc GlyphWrapperArea.cc GraphicDevice.cc \ HideArea.cc HorizontalArrayArea.cc HorizontalFillerArea.cc \ HorizontalSpaceArea.cc IdArea.cc IgnoreArea.cc InkArea.cc \ LinearContainerArea.cc MathGraphicDevice.cc NullShaper.cc \ OverlapArrayArea.cc Shaper.cc ShaperManager.cc \ ShapingContext.cc ShiftArea.cc SimpleArea.cc SpaceShaper.cc \ StandardSymbolsShaper.cc StepArea.cc VerticalArrayArea.cc \ VerticalFillerArea.cc VerticalSpaceArea.cc WrapperArea.cc \ BoxGraphicDevice.cc TFMComputerModernShaper.cc \ TFMComputerModernMathGraphicDevice.cc TFMFont.cc \ TFMFontManager.cc TFMGlyphArea.cc t1lib_T1Font.cc \ t1lib_T1FontManager.cc t1lib_TFM_T1Font.cc \ t1lib_TFM_T1FontManager.cc TFMComputerModernShaper.hh \ TFMComputerModernMathGraphicDevice.hh TFMFont.hh \ TFMFontManager.hh TFMGlyphArea.hh t1lib_T1Font.hh \ t1lib_T1FontManager.hh t1lib_TFM_T1Font.hh \ t1lib_TFM_T1FontManager.hh BoxGraphicDevice.hh am__objects_1 = @COND_BOXML_FALSE@am__objects_2 = $(am__objects_1) @COND_BOXML_TRUE@am__objects_2 = \ @COND_BOXML_TRUE@ libbackend_common_la-BoxGraphicDevice.lo \ @COND_BOXML_TRUE@ $(am__objects_1) @COND_TFM_FALSE@am__objects_3 = $(am__objects_1) @COND_TFM_TRUE@am__objects_3 = libbackend_common_la-TFMComputerModernShaper.lo \ @COND_TFM_TRUE@ libbackend_common_la-TFMComputerModernMathGraphicDevice.lo \ @COND_TFM_TRUE@ libbackend_common_la-TFMFont.lo \ @COND_TFM_TRUE@ libbackend_common_la-TFMFontManager.lo \ @COND_TFM_TRUE@ libbackend_common_la-TFMGlyphArea.lo \ @COND_TFM_TRUE@ $(am__objects_1) @COND_T1LIB_TRUE@@COND_TFM_FALSE@am__objects_4 = $(am__objects_1) @COND_T1LIB_TRUE@@COND_TFM_TRUE@am__objects_4 = libbackend_common_la-t1lib_TFM_T1Font.lo \ @COND_T1LIB_TRUE@@COND_TFM_TRUE@ libbackend_common_la-t1lib_TFM_T1FontManager.lo \ @COND_T1LIB_TRUE@@COND_TFM_TRUE@ $(am__objects_1) @COND_T1LIB_FALSE@am__objects_5 = $(am__objects_1) @COND_T1LIB_TRUE@am__objects_5 = libbackend_common_la-t1lib_T1Font.lo \ @COND_T1LIB_TRUE@ libbackend_common_la-t1lib_T1FontManager.lo \ @COND_T1LIB_TRUE@ $(am__objects_4) $(am__objects_1) @COND_TFM_FALSE@am__objects_6 = $(am__objects_1) @COND_TFM_TRUE@am__objects_6 = $(am__objects_1) @COND_T1LIB_TRUE@@COND_TFM_FALSE@am__objects_7 = $(am__objects_1) @COND_T1LIB_TRUE@@COND_TFM_TRUE@am__objects_7 = $(am__objects_1) @COND_T1LIB_FALSE@am__objects_8 = $(am__objects_1) @COND_T1LIB_TRUE@am__objects_8 = $(am__objects_7) $(am__objects_1) @COND_BOXML_FALSE@am__objects_9 = $(am__objects_1) @COND_BOXML_TRUE@am__objects_9 = $(am__objects_1) am_libbackend_common_la_OBJECTS = libbackend_common_la-Area.lo \ libbackend_common_la-AreaFactory.lo \ libbackend_common_la-AreaId.lo \ libbackend_common_la-AreaIdAux.lo \ libbackend_common_la-Backend.lo \ libbackend_common_la-BinContainerArea.lo \ libbackend_common_la-BoxArea.lo \ libbackend_common_la-BoxedLayoutArea.lo \ libbackend_common_la-ColorArea.lo \ libbackend_common_la-CombinedGlyphArea.lo \ libbackend_common_la-ComputerModernFamily.lo \ libbackend_common_la-ComputerModernShaper.lo \ libbackend_common_la-FormattingContext.lo \ libbackend_common_la-GlyphArea.lo \ libbackend_common_la-GlyphStringArea.lo \ libbackend_common_la-GlyphWrapperArea.lo \ libbackend_common_la-GraphicDevice.lo \ libbackend_common_la-HideArea.lo \ libbackend_common_la-HorizontalArrayArea.lo \ libbackend_common_la-HorizontalFillerArea.lo \ libbackend_common_la-HorizontalSpaceArea.lo \ libbackend_common_la-IdArea.lo \ libbackend_common_la-IgnoreArea.lo \ libbackend_common_la-InkArea.lo \ libbackend_common_la-LinearContainerArea.lo \ libbackend_common_la-MathGraphicDevice.lo \ libbackend_common_la-NullShaper.lo \ libbackend_common_la-OverlapArrayArea.lo \ libbackend_common_la-Shaper.lo \ libbackend_common_la-ShaperManager.lo \ libbackend_common_la-ShapingContext.lo \ libbackend_common_la-ShiftArea.lo \ libbackend_common_la-SimpleArea.lo \ libbackend_common_la-SpaceShaper.lo \ libbackend_common_la-StandardSymbolsShaper.lo \ libbackend_common_la-StepArea.lo \ libbackend_common_la-VerticalArrayArea.lo \ libbackend_common_la-VerticalFillerArea.lo \ libbackend_common_la-VerticalSpaceArea.lo \ libbackend_common_la-WrapperArea.lo $(am__objects_2) \ $(am__objects_3) $(am__objects_5) $(am__objects_6) \ $(am__objects_8) $(am__objects_9) $(am__objects_1) libbackend_common_la_OBJECTS = $(am_libbackend_common_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libbackend_common_la_SOURCES) DIST_SOURCES = $(am__libbackend_common_la_SOURCES_DIST) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive am__mathview_HEADERS_DIST = Area.hh AreaFactory.hh AreaId.hh \ AreaIdAux.hh Backend.hh BinContainerArea.hh BoxArea.hh \ BoxedLayoutArea.hh CachedShapedString.hh ColorArea.hh \ CombinedGlyphArea.hh ComputerModernFamily.hh \ ComputerModernShaper.hh ContainerArea.hh FillerArea.hh \ FormattingContext.hh GlyphArea.hh GlyphSpec.hh \ GlyphStringArea.hh GlyphWrapperArea.hh GraphicDevice.hh \ HideArea.hh HorizontalArrayArea.hh HorizontalFillerArea.hh \ HorizontalSpaceArea.hh IdArea.hh IgnoreArea.hh InkArea.hh \ LinearContainerArea.hh MathGraphicDevice.hh NullShaper.hh \ OverlapArrayArea.hh RenderingContext.hh SearchingContext.hh \ Shaper.hh ShaperManager.hh ShapingContext.hh ShiftArea.hh \ SimpleArea.hh SpaceShaper.hh StandardSymbolsShaper.hh \ StepArea.hh T1Font.hh VerticalArrayArea.hh \ VerticalFillerArea.hh VerticalSpaceArea.hh WrapperArea.hh \ TFMComputerModernShaper.hh \ TFMComputerModernMathGraphicDevice.hh TFMFont.hh \ TFMFontManager.hh TFMGlyphArea.hh t1lib_T1Font.hh \ t1lib_T1FontManager.hh t1lib_TFM_T1Font.hh \ t1lib_TFM_T1FontManager.hh BoxGraphicDevice.hh am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(mathviewdir)" mathviewHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(mathview_HEADERS) ETAGS = etags CTAGS = ctags DIST_SUBDIRS = tfm DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = @COND_TFM_FALSE@MAYBE_TFM_SUBDIRS = @COND_TFM_TRUE@MAYBE_TFM_SUBDIRS = tfm @COND_TFM_FALSE@MAYBE_TFM_L = $(NULL) @COND_TFM_TRUE@MAYBE_TFM_L = $(top_builddir)/src/backend/common/tfm/libtfm.la SUBDIRS = $(MAYBE_TFM_SUBDIRS) noinst_LTLIBRARIES = libbackend_common.la @COND_BOXML_FALSE@MAYBE_BOXML_S = $(NULL) @COND_BOXML_TRUE@MAYBE_BOXML_S = \ @COND_BOXML_TRUE@ BoxGraphicDevice.cc \ @COND_BOXML_TRUE@ $(NULL) @COND_BOXML_FALSE@MAYBE_BOXML_H = $(NULL) @COND_BOXML_TRUE@MAYBE_BOXML_H = \ @COND_BOXML_TRUE@ BoxGraphicDevice.hh \ @COND_BOXML_TRUE@ $(NULL) @COND_TFM_FALSE@MAYBE_TFM_S = $(NULL) @COND_TFM_TRUE@MAYBE_TFM_S = \ @COND_TFM_TRUE@ TFMComputerModernShaper.cc \ @COND_TFM_TRUE@ TFMComputerModernMathGraphicDevice.cc \ @COND_TFM_TRUE@ TFMFont.cc \ @COND_TFM_TRUE@ TFMFontManager.cc \ @COND_TFM_TRUE@ TFMGlyphArea.cc \ @COND_TFM_TRUE@ $(NULL) @COND_TFM_FALSE@MAYBE_TFM_H = $(NULL) @COND_TFM_TRUE@MAYBE_TFM_H = \ @COND_TFM_TRUE@ TFMComputerModernShaper.hh \ @COND_TFM_TRUE@ TFMComputerModernMathGraphicDevice.hh \ @COND_TFM_TRUE@ TFMFont.hh \ @COND_TFM_TRUE@ TFMFontManager.hh \ @COND_TFM_TRUE@ TFMGlyphArea.hh \ @COND_TFM_TRUE@ $(NULL) @COND_T1LIB_TRUE@@COND_TFM_FALSE@MAYBE_T1LIB_TFM_S = $(NULL) @COND_T1LIB_TRUE@@COND_TFM_TRUE@MAYBE_T1LIB_TFM_S = \ @COND_T1LIB_TRUE@@COND_TFM_TRUE@ t1lib_TFM_T1Font.cc \ @COND_T1LIB_TRUE@@COND_TFM_TRUE@ t1lib_TFM_T1FontManager.cc \ @COND_T1LIB_TRUE@@COND_TFM_TRUE@ $(NULL) @COND_T1LIB_TRUE@@COND_TFM_FALSE@MAYBE_T1LIB_TFM_H = $(NULL) @COND_T1LIB_TRUE@@COND_TFM_TRUE@MAYBE_T1LIB_TFM_H = \ @COND_T1LIB_TRUE@@COND_TFM_TRUE@ t1lib_TFM_T1Font.hh \ @COND_T1LIB_TRUE@@COND_TFM_TRUE@ t1lib_TFM_T1FontManager.hh \ @COND_T1LIB_TRUE@@COND_TFM_TRUE@ $(NULL) @COND_T1LIB_FALSE@MAYBE_T1LIB_S = $(NULL) @COND_T1LIB_TRUE@MAYBE_T1LIB_S = \ @COND_T1LIB_TRUE@ t1lib_T1Font.cc \ @COND_T1LIB_TRUE@ t1lib_T1FontManager.cc \ @COND_T1LIB_TRUE@ $(MAYBE_T1LIB_TFM_S) \ @COND_T1LIB_TRUE@ $(NULL) @COND_T1LIB_FALSE@MAYBE_T1LIB_H = $(NULL) @COND_T1LIB_TRUE@MAYBE_T1LIB_H = \ @COND_T1LIB_TRUE@ t1lib_T1Font.hh \ @COND_T1LIB_TRUE@ t1lib_T1FontManager.hh \ @COND_T1LIB_TRUE@ $(MAYBE_T1LIB_TFM_H) \ @COND_T1LIB_TRUE@ $(NULL) @COND_T1LIB_FALSE@MAYBE_T1LIB_L = $(NULL) @COND_T1LIB_TRUE@MAYBE_T1LIB_L = $(T1_LIBS) libbackend_common_la_CPPFLAGS = -DGMV_MathView_DLL libbackend_common_la_SOURCES = \ Area.cc \ AreaFactory.cc \ AreaId.cc \ AreaIdAux.cc \ Backend.cc \ BinContainerArea.cc \ BoxArea.cc \ BoxedLayoutArea.cc \ ColorArea.cc \ CombinedGlyphArea.cc \ ComputerModernFamily.cc \ ComputerModernShaper.cc \ FormattingContext.cc \ GlyphArea.cc \ GlyphStringArea.cc \ GlyphWrapperArea.cc \ GraphicDevice.cc \ HideArea.cc \ HorizontalArrayArea.cc \ HorizontalFillerArea.cc \ HorizontalSpaceArea.cc \ IdArea.cc \ IgnoreArea.cc \ InkArea.cc \ LinearContainerArea.cc \ MathGraphicDevice.cc \ NullShaper.cc \ OverlapArrayArea.cc \ Shaper.cc \ ShaperManager.cc \ ShapingContext.cc \ ShiftArea.cc \ SimpleArea.cc \ SpaceShaper.cc \ StandardSymbolsShaper.cc \ StepArea.cc \ VerticalArrayArea.cc \ VerticalFillerArea.cc \ VerticalSpaceArea.cc \ WrapperArea.cc \ $(MAYBE_BOXML_S) \ $(MAYBE_TFM_S) \ $(MAYBE_T1LIB_S) \ $(MAYBE_TFM_H) \ $(MAYBE_T1LIB_H) \ $(MAYBE_BOXML_H) \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ Area.hh \ AreaFactory.hh \ AreaId.hh \ AreaIdAux.hh \ Backend.hh \ BinContainerArea.hh \ BoxArea.hh \ BoxedLayoutArea.hh \ CachedShapedString.hh \ ColorArea.hh \ CombinedGlyphArea.hh \ ComputerModernFamily.hh \ ComputerModernShaper.hh \ ContainerArea.hh \ FillerArea.hh \ FormattingContext.hh \ GlyphArea.hh \ GlyphSpec.hh \ GlyphStringArea.hh \ GlyphWrapperArea.hh \ GraphicDevice.hh \ HideArea.hh \ HorizontalArrayArea.hh \ HorizontalFillerArea.hh \ HorizontalSpaceArea.hh \ IdArea.hh \ IgnoreArea.hh \ InkArea.hh \ LinearContainerArea.hh \ MathGraphicDevice.hh \ NullShaper.hh \ OverlapArrayArea.hh \ RenderingContext.hh \ SearchingContext.hh \ Shaper.hh \ ShaperManager.hh \ ShapingContext.hh \ ShiftArea.hh \ SimpleArea.hh \ SpaceShaper.hh \ StandardSymbolsShaper.hh \ StepArea.hh \ T1Font.hh \ VerticalArrayArea.hh \ VerticalFillerArea.hh \ VerticalSpaceArea.hh \ WrapperArea.hh \ $(MAYBE_TFM_H) \ $(MAYBE_T1LIB_H) \ $(MAYBE_BOXML_H) \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/backend/common/tfm \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ $(T1_CFLAGS) \ $(NULL) libbackend_common_la_LIBADD = \ $(MAYBE_TFM_L) \ $(MAYBE_T1LIB_L) \ $(NULL) all: all-recursive .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/backend/common/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/backend/common/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libbackend_common.la: $(libbackend_common_la_OBJECTS) $(libbackend_common_la_DEPENDENCIES) $(CXXLINK) $(libbackend_common_la_LDFLAGS) $(libbackend_common_la_OBJECTS) $(libbackend_common_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-Area.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-AreaFactory.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-AreaId.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-AreaIdAux.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-Backend.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-BinContainerArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-BoxArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-BoxGraphicDevice.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-BoxedLayoutArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-ColorArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-CombinedGlyphArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-ComputerModernFamily.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-ComputerModernShaper.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-FormattingContext.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-GlyphArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-GlyphStringArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-GlyphWrapperArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-GraphicDevice.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-HideArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-HorizontalArrayArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-HorizontalFillerArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-HorizontalSpaceArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-IdArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-IgnoreArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-InkArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-LinearContainerArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-MathGraphicDevice.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-NullShaper.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-OverlapArrayArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-Shaper.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-ShaperManager.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-ShapingContext.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-ShiftArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-SimpleArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-SpaceShaper.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-StandardSymbolsShaper.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-StepArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-TFMComputerModernMathGraphicDevice.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-TFMComputerModernShaper.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-TFMFont.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-TFMFontManager.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-TFMGlyphArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-VerticalArrayArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-VerticalFillerArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-VerticalSpaceArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-WrapperArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-t1lib_T1Font.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-t1lib_T1FontManager.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-t1lib_TFM_T1Font.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbackend_common_la-t1lib_TFM_T1FontManager.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libbackend_common_la-Area.lo: Area.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-Area.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-Area.Tpo" -c -o libbackend_common_la-Area.lo `test -f 'Area.cc' || echo '$(srcdir)/'`Area.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-Area.Tpo" "$(DEPDIR)/libbackend_common_la-Area.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-Area.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Area.cc' object='libbackend_common_la-Area.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-Area.lo `test -f 'Area.cc' || echo '$(srcdir)/'`Area.cc libbackend_common_la-AreaFactory.lo: AreaFactory.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-AreaFactory.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-AreaFactory.Tpo" -c -o libbackend_common_la-AreaFactory.lo `test -f 'AreaFactory.cc' || echo '$(srcdir)/'`AreaFactory.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-AreaFactory.Tpo" "$(DEPDIR)/libbackend_common_la-AreaFactory.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-AreaFactory.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='AreaFactory.cc' object='libbackend_common_la-AreaFactory.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-AreaFactory.lo `test -f 'AreaFactory.cc' || echo '$(srcdir)/'`AreaFactory.cc libbackend_common_la-AreaId.lo: AreaId.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-AreaId.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-AreaId.Tpo" -c -o libbackend_common_la-AreaId.lo `test -f 'AreaId.cc' || echo '$(srcdir)/'`AreaId.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-AreaId.Tpo" "$(DEPDIR)/libbackend_common_la-AreaId.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-AreaId.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='AreaId.cc' object='libbackend_common_la-AreaId.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-AreaId.lo `test -f 'AreaId.cc' || echo '$(srcdir)/'`AreaId.cc libbackend_common_la-AreaIdAux.lo: AreaIdAux.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-AreaIdAux.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-AreaIdAux.Tpo" -c -o libbackend_common_la-AreaIdAux.lo `test -f 'AreaIdAux.cc' || echo '$(srcdir)/'`AreaIdAux.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-AreaIdAux.Tpo" "$(DEPDIR)/libbackend_common_la-AreaIdAux.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-AreaIdAux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='AreaIdAux.cc' object='libbackend_common_la-AreaIdAux.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-AreaIdAux.lo `test -f 'AreaIdAux.cc' || echo '$(srcdir)/'`AreaIdAux.cc libbackend_common_la-Backend.lo: Backend.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-Backend.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-Backend.Tpo" -c -o libbackend_common_la-Backend.lo `test -f 'Backend.cc' || echo '$(srcdir)/'`Backend.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-Backend.Tpo" "$(DEPDIR)/libbackend_common_la-Backend.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-Backend.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Backend.cc' object='libbackend_common_la-Backend.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-Backend.lo `test -f 'Backend.cc' || echo '$(srcdir)/'`Backend.cc libbackend_common_la-BinContainerArea.lo: BinContainerArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-BinContainerArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-BinContainerArea.Tpo" -c -o libbackend_common_la-BinContainerArea.lo `test -f 'BinContainerArea.cc' || echo '$(srcdir)/'`BinContainerArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-BinContainerArea.Tpo" "$(DEPDIR)/libbackend_common_la-BinContainerArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-BinContainerArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BinContainerArea.cc' object='libbackend_common_la-BinContainerArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-BinContainerArea.lo `test -f 'BinContainerArea.cc' || echo '$(srcdir)/'`BinContainerArea.cc libbackend_common_la-BoxArea.lo: BoxArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-BoxArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-BoxArea.Tpo" -c -o libbackend_common_la-BoxArea.lo `test -f 'BoxArea.cc' || echo '$(srcdir)/'`BoxArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-BoxArea.Tpo" "$(DEPDIR)/libbackend_common_la-BoxArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-BoxArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxArea.cc' object='libbackend_common_la-BoxArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-BoxArea.lo `test -f 'BoxArea.cc' || echo '$(srcdir)/'`BoxArea.cc libbackend_common_la-BoxedLayoutArea.lo: BoxedLayoutArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-BoxedLayoutArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-BoxedLayoutArea.Tpo" -c -o libbackend_common_la-BoxedLayoutArea.lo `test -f 'BoxedLayoutArea.cc' || echo '$(srcdir)/'`BoxedLayoutArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-BoxedLayoutArea.Tpo" "$(DEPDIR)/libbackend_common_la-BoxedLayoutArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-BoxedLayoutArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxedLayoutArea.cc' object='libbackend_common_la-BoxedLayoutArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-BoxedLayoutArea.lo `test -f 'BoxedLayoutArea.cc' || echo '$(srcdir)/'`BoxedLayoutArea.cc libbackend_common_la-ColorArea.lo: ColorArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-ColorArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-ColorArea.Tpo" -c -o libbackend_common_la-ColorArea.lo `test -f 'ColorArea.cc' || echo '$(srcdir)/'`ColorArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-ColorArea.Tpo" "$(DEPDIR)/libbackend_common_la-ColorArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-ColorArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ColorArea.cc' object='libbackend_common_la-ColorArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-ColorArea.lo `test -f 'ColorArea.cc' || echo '$(srcdir)/'`ColorArea.cc libbackend_common_la-CombinedGlyphArea.lo: CombinedGlyphArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-CombinedGlyphArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-CombinedGlyphArea.Tpo" -c -o libbackend_common_la-CombinedGlyphArea.lo `test -f 'CombinedGlyphArea.cc' || echo '$(srcdir)/'`CombinedGlyphArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-CombinedGlyphArea.Tpo" "$(DEPDIR)/libbackend_common_la-CombinedGlyphArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-CombinedGlyphArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='CombinedGlyphArea.cc' object='libbackend_common_la-CombinedGlyphArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-CombinedGlyphArea.lo `test -f 'CombinedGlyphArea.cc' || echo '$(srcdir)/'`CombinedGlyphArea.cc libbackend_common_la-ComputerModernFamily.lo: ComputerModernFamily.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-ComputerModernFamily.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-ComputerModernFamily.Tpo" -c -o libbackend_common_la-ComputerModernFamily.lo `test -f 'ComputerModernFamily.cc' || echo '$(srcdir)/'`ComputerModernFamily.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-ComputerModernFamily.Tpo" "$(DEPDIR)/libbackend_common_la-ComputerModernFamily.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-ComputerModernFamily.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ComputerModernFamily.cc' object='libbackend_common_la-ComputerModernFamily.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-ComputerModernFamily.lo `test -f 'ComputerModernFamily.cc' || echo '$(srcdir)/'`ComputerModernFamily.cc libbackend_common_la-ComputerModernShaper.lo: ComputerModernShaper.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-ComputerModernShaper.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-ComputerModernShaper.Tpo" -c -o libbackend_common_la-ComputerModernShaper.lo `test -f 'ComputerModernShaper.cc' || echo '$(srcdir)/'`ComputerModernShaper.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-ComputerModernShaper.Tpo" "$(DEPDIR)/libbackend_common_la-ComputerModernShaper.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-ComputerModernShaper.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ComputerModernShaper.cc' object='libbackend_common_la-ComputerModernShaper.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-ComputerModernShaper.lo `test -f 'ComputerModernShaper.cc' || echo '$(srcdir)/'`ComputerModernShaper.cc libbackend_common_la-FormattingContext.lo: FormattingContext.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-FormattingContext.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-FormattingContext.Tpo" -c -o libbackend_common_la-FormattingContext.lo `test -f 'FormattingContext.cc' || echo '$(srcdir)/'`FormattingContext.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-FormattingContext.Tpo" "$(DEPDIR)/libbackend_common_la-FormattingContext.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-FormattingContext.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='FormattingContext.cc' object='libbackend_common_la-FormattingContext.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-FormattingContext.lo `test -f 'FormattingContext.cc' || echo '$(srcdir)/'`FormattingContext.cc libbackend_common_la-GlyphArea.lo: GlyphArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-GlyphArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-GlyphArea.Tpo" -c -o libbackend_common_la-GlyphArea.lo `test -f 'GlyphArea.cc' || echo '$(srcdir)/'`GlyphArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-GlyphArea.Tpo" "$(DEPDIR)/libbackend_common_la-GlyphArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-GlyphArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='GlyphArea.cc' object='libbackend_common_la-GlyphArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-GlyphArea.lo `test -f 'GlyphArea.cc' || echo '$(srcdir)/'`GlyphArea.cc libbackend_common_la-GlyphStringArea.lo: GlyphStringArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-GlyphStringArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-GlyphStringArea.Tpo" -c -o libbackend_common_la-GlyphStringArea.lo `test -f 'GlyphStringArea.cc' || echo '$(srcdir)/'`GlyphStringArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-GlyphStringArea.Tpo" "$(DEPDIR)/libbackend_common_la-GlyphStringArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-GlyphStringArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='GlyphStringArea.cc' object='libbackend_common_la-GlyphStringArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-GlyphStringArea.lo `test -f 'GlyphStringArea.cc' || echo '$(srcdir)/'`GlyphStringArea.cc libbackend_common_la-GlyphWrapperArea.lo: GlyphWrapperArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-GlyphWrapperArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-GlyphWrapperArea.Tpo" -c -o libbackend_common_la-GlyphWrapperArea.lo `test -f 'GlyphWrapperArea.cc' || echo '$(srcdir)/'`GlyphWrapperArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-GlyphWrapperArea.Tpo" "$(DEPDIR)/libbackend_common_la-GlyphWrapperArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-GlyphWrapperArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='GlyphWrapperArea.cc' object='libbackend_common_la-GlyphWrapperArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-GlyphWrapperArea.lo `test -f 'GlyphWrapperArea.cc' || echo '$(srcdir)/'`GlyphWrapperArea.cc libbackend_common_la-GraphicDevice.lo: GraphicDevice.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-GraphicDevice.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-GraphicDevice.Tpo" -c -o libbackend_common_la-GraphicDevice.lo `test -f 'GraphicDevice.cc' || echo '$(srcdir)/'`GraphicDevice.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-GraphicDevice.Tpo" "$(DEPDIR)/libbackend_common_la-GraphicDevice.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-GraphicDevice.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='GraphicDevice.cc' object='libbackend_common_la-GraphicDevice.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-GraphicDevice.lo `test -f 'GraphicDevice.cc' || echo '$(srcdir)/'`GraphicDevice.cc libbackend_common_la-HideArea.lo: HideArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-HideArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-HideArea.Tpo" -c -o libbackend_common_la-HideArea.lo `test -f 'HideArea.cc' || echo '$(srcdir)/'`HideArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-HideArea.Tpo" "$(DEPDIR)/libbackend_common_la-HideArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-HideArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='HideArea.cc' object='libbackend_common_la-HideArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-HideArea.lo `test -f 'HideArea.cc' || echo '$(srcdir)/'`HideArea.cc libbackend_common_la-HorizontalArrayArea.lo: HorizontalArrayArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-HorizontalArrayArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-HorizontalArrayArea.Tpo" -c -o libbackend_common_la-HorizontalArrayArea.lo `test -f 'HorizontalArrayArea.cc' || echo '$(srcdir)/'`HorizontalArrayArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-HorizontalArrayArea.Tpo" "$(DEPDIR)/libbackend_common_la-HorizontalArrayArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-HorizontalArrayArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='HorizontalArrayArea.cc' object='libbackend_common_la-HorizontalArrayArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-HorizontalArrayArea.lo `test -f 'HorizontalArrayArea.cc' || echo '$(srcdir)/'`HorizontalArrayArea.cc libbackend_common_la-HorizontalFillerArea.lo: HorizontalFillerArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-HorizontalFillerArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-HorizontalFillerArea.Tpo" -c -o libbackend_common_la-HorizontalFillerArea.lo `test -f 'HorizontalFillerArea.cc' || echo '$(srcdir)/'`HorizontalFillerArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-HorizontalFillerArea.Tpo" "$(DEPDIR)/libbackend_common_la-HorizontalFillerArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-HorizontalFillerArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='HorizontalFillerArea.cc' object='libbackend_common_la-HorizontalFillerArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-HorizontalFillerArea.lo `test -f 'HorizontalFillerArea.cc' || echo '$(srcdir)/'`HorizontalFillerArea.cc libbackend_common_la-HorizontalSpaceArea.lo: HorizontalSpaceArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-HorizontalSpaceArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-HorizontalSpaceArea.Tpo" -c -o libbackend_common_la-HorizontalSpaceArea.lo `test -f 'HorizontalSpaceArea.cc' || echo '$(srcdir)/'`HorizontalSpaceArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-HorizontalSpaceArea.Tpo" "$(DEPDIR)/libbackend_common_la-HorizontalSpaceArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-HorizontalSpaceArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='HorizontalSpaceArea.cc' object='libbackend_common_la-HorizontalSpaceArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-HorizontalSpaceArea.lo `test -f 'HorizontalSpaceArea.cc' || echo '$(srcdir)/'`HorizontalSpaceArea.cc libbackend_common_la-IdArea.lo: IdArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-IdArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-IdArea.Tpo" -c -o libbackend_common_la-IdArea.lo `test -f 'IdArea.cc' || echo '$(srcdir)/'`IdArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-IdArea.Tpo" "$(DEPDIR)/libbackend_common_la-IdArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-IdArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='IdArea.cc' object='libbackend_common_la-IdArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-IdArea.lo `test -f 'IdArea.cc' || echo '$(srcdir)/'`IdArea.cc libbackend_common_la-IgnoreArea.lo: IgnoreArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-IgnoreArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-IgnoreArea.Tpo" -c -o libbackend_common_la-IgnoreArea.lo `test -f 'IgnoreArea.cc' || echo '$(srcdir)/'`IgnoreArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-IgnoreArea.Tpo" "$(DEPDIR)/libbackend_common_la-IgnoreArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-IgnoreArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='IgnoreArea.cc' object='libbackend_common_la-IgnoreArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-IgnoreArea.lo `test -f 'IgnoreArea.cc' || echo '$(srcdir)/'`IgnoreArea.cc libbackend_common_la-InkArea.lo: InkArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-InkArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-InkArea.Tpo" -c -o libbackend_common_la-InkArea.lo `test -f 'InkArea.cc' || echo '$(srcdir)/'`InkArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-InkArea.Tpo" "$(DEPDIR)/libbackend_common_la-InkArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-InkArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='InkArea.cc' object='libbackend_common_la-InkArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-InkArea.lo `test -f 'InkArea.cc' || echo '$(srcdir)/'`InkArea.cc libbackend_common_la-LinearContainerArea.lo: LinearContainerArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-LinearContainerArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-LinearContainerArea.Tpo" -c -o libbackend_common_la-LinearContainerArea.lo `test -f 'LinearContainerArea.cc' || echo '$(srcdir)/'`LinearContainerArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-LinearContainerArea.Tpo" "$(DEPDIR)/libbackend_common_la-LinearContainerArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-LinearContainerArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='LinearContainerArea.cc' object='libbackend_common_la-LinearContainerArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-LinearContainerArea.lo `test -f 'LinearContainerArea.cc' || echo '$(srcdir)/'`LinearContainerArea.cc libbackend_common_la-MathGraphicDevice.lo: MathGraphicDevice.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-MathGraphicDevice.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-MathGraphicDevice.Tpo" -c -o libbackend_common_la-MathGraphicDevice.lo `test -f 'MathGraphicDevice.cc' || echo '$(srcdir)/'`MathGraphicDevice.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-MathGraphicDevice.Tpo" "$(DEPDIR)/libbackend_common_la-MathGraphicDevice.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-MathGraphicDevice.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathGraphicDevice.cc' object='libbackend_common_la-MathGraphicDevice.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-MathGraphicDevice.lo `test -f 'MathGraphicDevice.cc' || echo '$(srcdir)/'`MathGraphicDevice.cc libbackend_common_la-NullShaper.lo: NullShaper.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-NullShaper.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-NullShaper.Tpo" -c -o libbackend_common_la-NullShaper.lo `test -f 'NullShaper.cc' || echo '$(srcdir)/'`NullShaper.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-NullShaper.Tpo" "$(DEPDIR)/libbackend_common_la-NullShaper.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-NullShaper.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='NullShaper.cc' object='libbackend_common_la-NullShaper.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-NullShaper.lo `test -f 'NullShaper.cc' || echo '$(srcdir)/'`NullShaper.cc libbackend_common_la-OverlapArrayArea.lo: OverlapArrayArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-OverlapArrayArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-OverlapArrayArea.Tpo" -c -o libbackend_common_la-OverlapArrayArea.lo `test -f 'OverlapArrayArea.cc' || echo '$(srcdir)/'`OverlapArrayArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-OverlapArrayArea.Tpo" "$(DEPDIR)/libbackend_common_la-OverlapArrayArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-OverlapArrayArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='OverlapArrayArea.cc' object='libbackend_common_la-OverlapArrayArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-OverlapArrayArea.lo `test -f 'OverlapArrayArea.cc' || echo '$(srcdir)/'`OverlapArrayArea.cc libbackend_common_la-Shaper.lo: Shaper.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-Shaper.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-Shaper.Tpo" -c -o libbackend_common_la-Shaper.lo `test -f 'Shaper.cc' || echo '$(srcdir)/'`Shaper.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-Shaper.Tpo" "$(DEPDIR)/libbackend_common_la-Shaper.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-Shaper.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Shaper.cc' object='libbackend_common_la-Shaper.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-Shaper.lo `test -f 'Shaper.cc' || echo '$(srcdir)/'`Shaper.cc libbackend_common_la-ShaperManager.lo: ShaperManager.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-ShaperManager.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-ShaperManager.Tpo" -c -o libbackend_common_la-ShaperManager.lo `test -f 'ShaperManager.cc' || echo '$(srcdir)/'`ShaperManager.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-ShaperManager.Tpo" "$(DEPDIR)/libbackend_common_la-ShaperManager.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-ShaperManager.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ShaperManager.cc' object='libbackend_common_la-ShaperManager.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-ShaperManager.lo `test -f 'ShaperManager.cc' || echo '$(srcdir)/'`ShaperManager.cc libbackend_common_la-ShapingContext.lo: ShapingContext.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-ShapingContext.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-ShapingContext.Tpo" -c -o libbackend_common_la-ShapingContext.lo `test -f 'ShapingContext.cc' || echo '$(srcdir)/'`ShapingContext.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-ShapingContext.Tpo" "$(DEPDIR)/libbackend_common_la-ShapingContext.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-ShapingContext.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ShapingContext.cc' object='libbackend_common_la-ShapingContext.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-ShapingContext.lo `test -f 'ShapingContext.cc' || echo '$(srcdir)/'`ShapingContext.cc libbackend_common_la-ShiftArea.lo: ShiftArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-ShiftArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-ShiftArea.Tpo" -c -o libbackend_common_la-ShiftArea.lo `test -f 'ShiftArea.cc' || echo '$(srcdir)/'`ShiftArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-ShiftArea.Tpo" "$(DEPDIR)/libbackend_common_la-ShiftArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-ShiftArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ShiftArea.cc' object='libbackend_common_la-ShiftArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-ShiftArea.lo `test -f 'ShiftArea.cc' || echo '$(srcdir)/'`ShiftArea.cc libbackend_common_la-SimpleArea.lo: SimpleArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-SimpleArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-SimpleArea.Tpo" -c -o libbackend_common_la-SimpleArea.lo `test -f 'SimpleArea.cc' || echo '$(srcdir)/'`SimpleArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-SimpleArea.Tpo" "$(DEPDIR)/libbackend_common_la-SimpleArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-SimpleArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='SimpleArea.cc' object='libbackend_common_la-SimpleArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-SimpleArea.lo `test -f 'SimpleArea.cc' || echo '$(srcdir)/'`SimpleArea.cc libbackend_common_la-SpaceShaper.lo: SpaceShaper.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-SpaceShaper.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-SpaceShaper.Tpo" -c -o libbackend_common_la-SpaceShaper.lo `test -f 'SpaceShaper.cc' || echo '$(srcdir)/'`SpaceShaper.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-SpaceShaper.Tpo" "$(DEPDIR)/libbackend_common_la-SpaceShaper.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-SpaceShaper.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='SpaceShaper.cc' object='libbackend_common_la-SpaceShaper.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-SpaceShaper.lo `test -f 'SpaceShaper.cc' || echo '$(srcdir)/'`SpaceShaper.cc libbackend_common_la-StandardSymbolsShaper.lo: StandardSymbolsShaper.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-StandardSymbolsShaper.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-StandardSymbolsShaper.Tpo" -c -o libbackend_common_la-StandardSymbolsShaper.lo `test -f 'StandardSymbolsShaper.cc' || echo '$(srcdir)/'`StandardSymbolsShaper.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-StandardSymbolsShaper.Tpo" "$(DEPDIR)/libbackend_common_la-StandardSymbolsShaper.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-StandardSymbolsShaper.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='StandardSymbolsShaper.cc' object='libbackend_common_la-StandardSymbolsShaper.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-StandardSymbolsShaper.lo `test -f 'StandardSymbolsShaper.cc' || echo '$(srcdir)/'`StandardSymbolsShaper.cc libbackend_common_la-StepArea.lo: StepArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-StepArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-StepArea.Tpo" -c -o libbackend_common_la-StepArea.lo `test -f 'StepArea.cc' || echo '$(srcdir)/'`StepArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-StepArea.Tpo" "$(DEPDIR)/libbackend_common_la-StepArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-StepArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='StepArea.cc' object='libbackend_common_la-StepArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-StepArea.lo `test -f 'StepArea.cc' || echo '$(srcdir)/'`StepArea.cc libbackend_common_la-VerticalArrayArea.lo: VerticalArrayArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-VerticalArrayArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-VerticalArrayArea.Tpo" -c -o libbackend_common_la-VerticalArrayArea.lo `test -f 'VerticalArrayArea.cc' || echo '$(srcdir)/'`VerticalArrayArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-VerticalArrayArea.Tpo" "$(DEPDIR)/libbackend_common_la-VerticalArrayArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-VerticalArrayArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='VerticalArrayArea.cc' object='libbackend_common_la-VerticalArrayArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-VerticalArrayArea.lo `test -f 'VerticalArrayArea.cc' || echo '$(srcdir)/'`VerticalArrayArea.cc libbackend_common_la-VerticalFillerArea.lo: VerticalFillerArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-VerticalFillerArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-VerticalFillerArea.Tpo" -c -o libbackend_common_la-VerticalFillerArea.lo `test -f 'VerticalFillerArea.cc' || echo '$(srcdir)/'`VerticalFillerArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-VerticalFillerArea.Tpo" "$(DEPDIR)/libbackend_common_la-VerticalFillerArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-VerticalFillerArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='VerticalFillerArea.cc' object='libbackend_common_la-VerticalFillerArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-VerticalFillerArea.lo `test -f 'VerticalFillerArea.cc' || echo '$(srcdir)/'`VerticalFillerArea.cc libbackend_common_la-VerticalSpaceArea.lo: VerticalSpaceArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-VerticalSpaceArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-VerticalSpaceArea.Tpo" -c -o libbackend_common_la-VerticalSpaceArea.lo `test -f 'VerticalSpaceArea.cc' || echo '$(srcdir)/'`VerticalSpaceArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-VerticalSpaceArea.Tpo" "$(DEPDIR)/libbackend_common_la-VerticalSpaceArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-VerticalSpaceArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='VerticalSpaceArea.cc' object='libbackend_common_la-VerticalSpaceArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-VerticalSpaceArea.lo `test -f 'VerticalSpaceArea.cc' || echo '$(srcdir)/'`VerticalSpaceArea.cc libbackend_common_la-WrapperArea.lo: WrapperArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-WrapperArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-WrapperArea.Tpo" -c -o libbackend_common_la-WrapperArea.lo `test -f 'WrapperArea.cc' || echo '$(srcdir)/'`WrapperArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-WrapperArea.Tpo" "$(DEPDIR)/libbackend_common_la-WrapperArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-WrapperArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='WrapperArea.cc' object='libbackend_common_la-WrapperArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-WrapperArea.lo `test -f 'WrapperArea.cc' || echo '$(srcdir)/'`WrapperArea.cc libbackend_common_la-BoxGraphicDevice.lo: BoxGraphicDevice.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-BoxGraphicDevice.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-BoxGraphicDevice.Tpo" -c -o libbackend_common_la-BoxGraphicDevice.lo `test -f 'BoxGraphicDevice.cc' || echo '$(srcdir)/'`BoxGraphicDevice.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-BoxGraphicDevice.Tpo" "$(DEPDIR)/libbackend_common_la-BoxGraphicDevice.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-BoxGraphicDevice.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxGraphicDevice.cc' object='libbackend_common_la-BoxGraphicDevice.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-BoxGraphicDevice.lo `test -f 'BoxGraphicDevice.cc' || echo '$(srcdir)/'`BoxGraphicDevice.cc libbackend_common_la-TFMComputerModernShaper.lo: TFMComputerModernShaper.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-TFMComputerModernShaper.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-TFMComputerModernShaper.Tpo" -c -o libbackend_common_la-TFMComputerModernShaper.lo `test -f 'TFMComputerModernShaper.cc' || echo '$(srcdir)/'`TFMComputerModernShaper.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-TFMComputerModernShaper.Tpo" "$(DEPDIR)/libbackend_common_la-TFMComputerModernShaper.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-TFMComputerModernShaper.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='TFMComputerModernShaper.cc' object='libbackend_common_la-TFMComputerModernShaper.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-TFMComputerModernShaper.lo `test -f 'TFMComputerModernShaper.cc' || echo '$(srcdir)/'`TFMComputerModernShaper.cc libbackend_common_la-TFMComputerModernMathGraphicDevice.lo: TFMComputerModernMathGraphicDevice.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-TFMComputerModernMathGraphicDevice.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-TFMComputerModernMathGraphicDevice.Tpo" -c -o libbackend_common_la-TFMComputerModernMathGraphicDevice.lo `test -f 'TFMComputerModernMathGraphicDevice.cc' || echo '$(srcdir)/'`TFMComputerModernMathGraphicDevice.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-TFMComputerModernMathGraphicDevice.Tpo" "$(DEPDIR)/libbackend_common_la-TFMComputerModernMathGraphicDevice.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-TFMComputerModernMathGraphicDevice.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='TFMComputerModernMathGraphicDevice.cc' object='libbackend_common_la-TFMComputerModernMathGraphicDevice.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-TFMComputerModernMathGraphicDevice.lo `test -f 'TFMComputerModernMathGraphicDevice.cc' || echo '$(srcdir)/'`TFMComputerModernMathGraphicDevice.cc libbackend_common_la-TFMFont.lo: TFMFont.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-TFMFont.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-TFMFont.Tpo" -c -o libbackend_common_la-TFMFont.lo `test -f 'TFMFont.cc' || echo '$(srcdir)/'`TFMFont.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-TFMFont.Tpo" "$(DEPDIR)/libbackend_common_la-TFMFont.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-TFMFont.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='TFMFont.cc' object='libbackend_common_la-TFMFont.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-TFMFont.lo `test -f 'TFMFont.cc' || echo '$(srcdir)/'`TFMFont.cc libbackend_common_la-TFMFontManager.lo: TFMFontManager.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-TFMFontManager.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-TFMFontManager.Tpo" -c -o libbackend_common_la-TFMFontManager.lo `test -f 'TFMFontManager.cc' || echo '$(srcdir)/'`TFMFontManager.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-TFMFontManager.Tpo" "$(DEPDIR)/libbackend_common_la-TFMFontManager.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-TFMFontManager.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='TFMFontManager.cc' object='libbackend_common_la-TFMFontManager.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-TFMFontManager.lo `test -f 'TFMFontManager.cc' || echo '$(srcdir)/'`TFMFontManager.cc libbackend_common_la-TFMGlyphArea.lo: TFMGlyphArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-TFMGlyphArea.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-TFMGlyphArea.Tpo" -c -o libbackend_common_la-TFMGlyphArea.lo `test -f 'TFMGlyphArea.cc' || echo '$(srcdir)/'`TFMGlyphArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-TFMGlyphArea.Tpo" "$(DEPDIR)/libbackend_common_la-TFMGlyphArea.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-TFMGlyphArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='TFMGlyphArea.cc' object='libbackend_common_la-TFMGlyphArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-TFMGlyphArea.lo `test -f 'TFMGlyphArea.cc' || echo '$(srcdir)/'`TFMGlyphArea.cc libbackend_common_la-t1lib_T1Font.lo: t1lib_T1Font.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-t1lib_T1Font.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-t1lib_T1Font.Tpo" -c -o libbackend_common_la-t1lib_T1Font.lo `test -f 't1lib_T1Font.cc' || echo '$(srcdir)/'`t1lib_T1Font.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-t1lib_T1Font.Tpo" "$(DEPDIR)/libbackend_common_la-t1lib_T1Font.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-t1lib_T1Font.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='t1lib_T1Font.cc' object='libbackend_common_la-t1lib_T1Font.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-t1lib_T1Font.lo `test -f 't1lib_T1Font.cc' || echo '$(srcdir)/'`t1lib_T1Font.cc libbackend_common_la-t1lib_T1FontManager.lo: t1lib_T1FontManager.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-t1lib_T1FontManager.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-t1lib_T1FontManager.Tpo" -c -o libbackend_common_la-t1lib_T1FontManager.lo `test -f 't1lib_T1FontManager.cc' || echo '$(srcdir)/'`t1lib_T1FontManager.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-t1lib_T1FontManager.Tpo" "$(DEPDIR)/libbackend_common_la-t1lib_T1FontManager.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-t1lib_T1FontManager.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='t1lib_T1FontManager.cc' object='libbackend_common_la-t1lib_T1FontManager.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-t1lib_T1FontManager.lo `test -f 't1lib_T1FontManager.cc' || echo '$(srcdir)/'`t1lib_T1FontManager.cc libbackend_common_la-t1lib_TFM_T1Font.lo: t1lib_TFM_T1Font.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-t1lib_TFM_T1Font.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-t1lib_TFM_T1Font.Tpo" -c -o libbackend_common_la-t1lib_TFM_T1Font.lo `test -f 't1lib_TFM_T1Font.cc' || echo '$(srcdir)/'`t1lib_TFM_T1Font.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-t1lib_TFM_T1Font.Tpo" "$(DEPDIR)/libbackend_common_la-t1lib_TFM_T1Font.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-t1lib_TFM_T1Font.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='t1lib_TFM_T1Font.cc' object='libbackend_common_la-t1lib_TFM_T1Font.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-t1lib_TFM_T1Font.lo `test -f 't1lib_TFM_T1Font.cc' || echo '$(srcdir)/'`t1lib_TFM_T1Font.cc libbackend_common_la-t1lib_TFM_T1FontManager.lo: t1lib_TFM_T1FontManager.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libbackend_common_la-t1lib_TFM_T1FontManager.lo -MD -MP -MF "$(DEPDIR)/libbackend_common_la-t1lib_TFM_T1FontManager.Tpo" -c -o libbackend_common_la-t1lib_TFM_T1FontManager.lo `test -f 't1lib_TFM_T1FontManager.cc' || echo '$(srcdir)/'`t1lib_TFM_T1FontManager.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libbackend_common_la-t1lib_TFM_T1FontManager.Tpo" "$(DEPDIR)/libbackend_common_la-t1lib_TFM_T1FontManager.Plo"; else rm -f "$(DEPDIR)/libbackend_common_la-t1lib_TFM_T1FontManager.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='t1lib_TFM_T1FontManager.cc' object='libbackend_common_la-t1lib_TFM_T1FontManager.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libbackend_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libbackend_common_la-t1lib_TFM_T1FontManager.lo `test -f 't1lib_TFM_T1FontManager.cc' || echo '$(srcdir)/'`t1lib_TFM_T1FontManager.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-mathviewHEADERS: $(mathview_HEADERS) @$(NORMAL_INSTALL) test -z "$(mathviewdir)" || $(mkdir_p) "$(DESTDIR)$(mathviewdir)" @list='$(mathview_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(mathviewHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(mathviewdir)/$$f'"; \ $(mathviewHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(mathviewdir)/$$f"; \ done uninstall-mathviewHEADERS: @$(NORMAL_UNINSTALL) @list='$(mathview_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(mathviewdir)/$$f'"; \ rm -f "$(DESTDIR)$(mathviewdir)/$$f"; \ done # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(mathviewdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-mathviewHEADERS install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-mathviewHEADERS uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ clean clean-generic clean-libtool clean-noinstLTLIBRARIES \ clean-recursive ctags ctags-recursive distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-recursive distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-exec install-exec-am install-info \ install-info-am install-man install-mathviewHEADERS \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ maintainer-clean-recursive mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \ pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-info-am uninstall-mathviewHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/src/backend/common/ShiftArea.hh0000644000175000017500000000323710661271104016632 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __ShiftArea_hh__ #define __ShiftArea_hh__ #include "BinContainerArea.hh" class GMV_MathView_EXPORT ShiftArea : public BinContainerArea { protected: ShiftArea(const AreaRef& area, const scaled& s) : BinContainerArea(area), shift(s) { } virtual ~ShiftArea() { } public: static SmartPtr create(const AreaRef& area, const scaled& s) { return new ShiftArea(area, s); } virtual AreaRef clone(const AreaRef& area) const { return create(area, getShift()); } virtual void render(class RenderingContext&, const scaled&, const scaled&) const; virtual BoundingBox box(void) const; virtual void origin(AreaIndex, class Point&) const; virtual bool searchByCoords(class AreaId&, const scaled&, const scaled&) const; scaled getShift(void) const { return shift; } private: scaled shift; }; #endif // __ShiftArea_hh__ gtkmathview-0.8.0/src/backend/common/AreaFactory.hh0000644000175000017500000001216710661271104017166 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __AreaFactory_hh__ #define __AreaFactory_hh__ #include "BoxArea.hh" #include "BoxedLayoutArea.hh" #include "ColorArea.hh" #include "GlyphStringArea.hh" #include "GlyphWrapperArea.hh" #include "HideArea.hh" #include "HorizontalArrayArea.hh" #include "HorizontalFillerArea.hh" #include "HorizontalSpaceArea.hh" #include "IdArea.hh" #include "IgnoreArea.hh" #include "InkArea.hh" #include "Object.hh" #include "OverlapArrayArea.hh" #include "ShiftArea.hh" #include "StepArea.hh" #include "VerticalArrayArea.hh" #include "VerticalFillerArea.hh" #include "VerticalSpaceArea.hh" #include "CombinedGlyphArea.hh" class GMV_MathView_EXPORT AreaFactory : public Object { protected: AreaFactory(void) { } virtual ~AreaFactory() { } public: static SmartPtr create(void) { return new AreaFactory(); } virtual SmartPtr glyphWrapper(const AreaRef& area, CharIndex length) const { return GlyphWrapperArea::create(area, length); } virtual SmartPtr box(const AreaRef& area, const BoundingBox& box) const { return BoxArea::create(area, box); } virtual SmartPtr color(const AreaRef& area, const RGBColor& color) const { return ColorArea::create(area, color); } virtual SmartPtr hide(const AreaRef& area) const { return HideArea::create(area); } virtual SmartPtr horizontalArray(const std::vector& content) const { return HorizontalArrayArea::create(content); } virtual SmartPtr glyphString(const std::vector& content, const std::vector& counters, UCS4String s) const { return GlyphStringArea::create(content, counters, s); } virtual SmartPtr verticalArray(const std::vector& content, AreaIndex ref) const { return VerticalArrayArea::create(content, ref); } virtual SmartPtr overlapArray(const std::vector& content) const { return OverlapArrayArea::create(content); } virtual SmartPtr id(const AreaRef& area) const { return IdArea::create(area); } virtual SmartPtr ignore(const AreaRef& area) const { return IgnoreArea::create(area); } virtual SmartPtr ink(const AreaRef& area) const { return InkArea::create(area); } virtual SmartPtr horizontalSpace(const scaled& w) const { return HorizontalSpaceArea::create(w); } virtual SmartPtr verticalSpace(const scaled& h, const scaled& d) const { return VerticalSpaceArea::create(h, d); } virtual SmartPtr horizontalFiller(void) const { return HorizontalFillerArea::create(); } virtual SmartPtr verticalFiller(void) const { return VerticalFillerArea::create(); } virtual SmartPtr shift(const AreaRef& area, const scaled& s) const { return ShiftArea::create(area, s); } virtual SmartPtr step(const AreaRef& area, const scaled& s) const { return StepArea::create(area, s); } virtual SmartPtr boxedLayout(const BoundingBox& box, const std::vector& content) const { return BoxedLayoutArea::create(box, content); } virtual SmartPtr combinedGlyph(const AreaRef& base, const AreaRef& accent, const AreaRef& under, const scaled& dx, const scaled& dy, const scaled& dxUnder) const { return CombinedGlyphArea::create(base, accent, under, dx, dy, dxUnder); } // macro areas virtual AreaRef background(const AreaRef& area, const RGBColor& color) const; virtual AreaRef horizontalLine(const scaled& thickness, const RGBColor& color) const; virtual AreaRef fixedHorizontalLine(const scaled& thickness, const scaled& length, const RGBColor& color) const; virtual AreaRef verticalLine(const scaled& thickness, const RGBColor& color) const; virtual AreaRef fixedVerticalLine(const scaled& thickness, const scaled& height, const scaled& depth, const RGBColor& color) const; virtual AreaRef center(const AreaRef& area) const; virtual AreaRef left(const AreaRef& area) const; virtual AreaRef right(const AreaRef& area) const; virtual AreaRef middle(const AreaRef& area) const; virtual AreaRef top(const AreaRef& area) const; virtual AreaRef bottom(const AreaRef& area) const; virtual AreaRef freeze(const AreaRef& area) const; }; #endif // __AreaFactory_hh__ gtkmathview-0.8.0/src/backend/common/tfm/0000777000175000017500000000000010704625465015323 500000000000000gtkmathview-0.8.0/src/backend/common/tfm/cmsy7.cc0000644000175000017500000003162110704611260016577 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMSY", 0xf0, "TeX math symbols", 0x00700000, 0x4f21e285, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x0012baf2 }, { 0x07, "extra_space", 0x00000000 }, { 0x08, "num1", 0x000bb78e }, { 0x09, "num2", 0x00062477 }, { 0x0a, "num3", 0x00078a0e }, { 0x0b, "denom1", 0x000c08ce }, { 0x0c, "denom2", 0x000581e7 }, { 0x0d, "sup1", 0x00080a6b }, { 0x0e, "sup2", 0x0006e5d9 }, { 0x0f, "sup3", 0x00049249 }, { 0x10, "sub1", 0x00024925 }, { 0x11, "sub2", 0x00049249 }, { 0x12, "supdrop", 0x0005a697 }, { 0x13, "subdrop", 0x00012492 }, { 0x14, "delim1", 0x001b3332 }, { 0x15, "delim2", 0x001283a9 }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Kerning C_41_Kerning[] = { { 0x30, 0x000371d0 } }; static TFM::Kerning C_42_Kerning[] = { { 0x30, 0x000275de } }; static TFM::Kerning C_43_Kerning[] = { { 0x30, 0x000275de } }; static TFM::Kerning C_44_Kerning[] = { { 0x30, 0x000179eb } }; static TFM::Kerning C_45_Kerning[] = { { 0x30, 0x0001f7e5 } }; static TFM::Kerning C_46_Kerning[] = { { 0x30, 0x0001f7e5 } }; static TFM::Kerning C_47_Kerning[] = { { 0x30, 0x0001f7e5 } }; static TFM::Kerning C_48_Kerning[] = { { 0x30, 0x0001f7e5 } }; static TFM::Kerning C_49_Kerning[] = { { 0x30, 0x00007df9 } }; static TFM::Kerning C_4a_Kerning[] = { { 0x30, 0x0002f3d7 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x30, 0x0000fbf2 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x30, 0x000275de } }; static TFM::Kerning C_4d_Kerning[] = { { 0x30, 0x000275de } }; static TFM::Kerning C_4e_Kerning[] = { { 0x30, 0x000179eb } }; static TFM::Kerning C_4f_Kerning[] = { { 0x30, 0x0001f7e5 } }; static TFM::Kerning C_50_Kerning[] = { { 0x30, 0x000179eb } }; static TFM::Kerning C_51_Kerning[] = { { 0x30, 0x0001f7e5 } }; static TFM::Kerning C_52_Kerning[] = { { 0x30, 0x000179eb } }; static TFM::Kerning C_53_Kerning[] = { { 0x30, 0x000275de } }; static TFM::Kerning C_54_Kerning[] = { { 0x30, 0x00007df9 } }; static TFM::Kerning C_55_Kerning[] = { { 0x30, 0x000179eb } }; static TFM::Kerning C_56_Kerning[] = { { 0x30, 0x00007df9 } }; static TFM::Kerning C_57_Kerning[] = { { 0x30, 0x000179eb } }; static TFM::Kerning C_58_Kerning[] = { { 0x30, 0x000275de } }; static TFM::Kerning C_59_Kerning[] = { { 0x30, 0x000179eb } }; static TFM::Kerning C_5a_Kerning[] = { { 0x30, 0x000275de } }; static TFM::Character character[] = { { 0x00, 0x000e4929, 0x0009e7a0, 0x0001e7a0, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x00056db9, 0x000771c9, 0xffff71c9, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000e4929, 0x0009e7a0, 0x0001e7a0, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x00095d79, 0x000771c7, 0xffff71c7, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000e4929, 0x0009e7a0, 0x0001e7a0, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x00095d79, 0x000771c9, 0xffff71c9, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000e4929, 0x0009e7a0, 0x0001e7a0, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000e4929, 0x0009e7a0, 0x0001e7a0, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000e4929, 0x0009e7a0, 0x0001e7a0, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000e4929, 0x0009e7a0, 0x0001e7a0, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000e4929, 0x0009e7a0, 0x0001e7a0, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000e4929, 0x0009e7a0, 0x0001e7a0, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x000e4929, 0x0009e7a0, 0x0001e7a0, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x001238e9, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x00095d79, 0x000771c9, 0xffff71c9, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x00095d79, 0x000771c9, 0xffff71c9, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x000e4929, 0x0007e6e5, 0xffffe6e5, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x000e4929, 0x0007e6e5, 0xffffe6e5, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000e4929, 0x000af7ae, 0x0002f7ae, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000e4929, 0x000af7ae, 0x0002f7ae, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000e4929, 0x000af7ae, 0x0002f7ae, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000e4929, 0x000af7ae, 0x0002f7ae, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000e4929, 0x000af7ae, 0x0002f7ae, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000e4929, 0x000af7ae, 0x0002f7ae, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x000e4929, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000e4929, 0x000840d5, 0x000040d5, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000e4929, 0x000935f7, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000e4929, 0x000935f7, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x001238e9, 0x000935f7, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x001238e9, 0x000935f7, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000e4929, 0x000935f7, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000e4929, 0x000935f7, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x001238e9, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x001238e9, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x00095d79, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x00095d79, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x001238e9, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x001238e9, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x001238e9, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000e4929, 0x0007e6e5, 0xffffe6e5, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x001238e9, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x001238e9, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000b5559, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000b5559, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x001238e9, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x001238e9, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x001238e9, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000e4929, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00054515, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x001238e9, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000c5149, 0x000935f7, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000c5149, 0x000935f7, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00104109, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00104109, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00000000, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00000000, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000a5969, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000a5969, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000c5149, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00095d79, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000d4d39, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000d4d39, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000e4929, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000e4929, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000b5559, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000eae80, 0x000aeef0, 0x00000000, 0x00000000, 1, C_41_Kerning, 0, 0 }, { 0x42, 0x000c0e15, 0x000aeef0, 0x00000000, 0x00006470, 1, C_42_Kerning, 0, 0 }, { 0x43, 0x0009ec47, 0x000aeef0, 0x00000000, 0x0000cc92, 1, C_43_Kerning, 0, 0 }, { 0x44, 0x000e3b30, 0x000aeef0, 0x00000000, 0x00007df9, 1, C_44_Kerning, 0, 0 }, { 0x45, 0x0009db75, 0x000aeef0, 0x00000000, 0x000159a0, 1, C_45_Kerning, 0, 0 }, { 0x46, 0x000d17fb, 0x000aeef0, 0x00000000, 0x00019cd9, 1, C_46_Kerning, 0, 0 }, { 0x47, 0x000b042b, 0x000aeef0, 0x00018e39, 0x0000e772, 1, C_47_Kerning, 0, 0 }, { 0x48, 0x000fa887, 0x000aeef0, 0x00000000, 0x00000000, 1, C_48_Kerning, 0, 0 }, { 0x49, 0x000a5812, 0x000aeef0, 0x00000000, 0x000109f7, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000c83ae, 0x000aeef0, 0x00018e39, 0x0002fab7, 1, C_4a_Kerning, 0, 0 }, { 0x4b, 0x000df265, 0x000aeef0, 0x00000000, 0x00000589, 1, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000caadb, 0x000aeef0, 0x00000000, 0x00000000, 1, C_4c_Kerning, 0, 0 }, { 0x4d, 0x00157ba7, 0x000aeef0, 0x00000000, 0x00000000, 1, C_4d_Kerning, 0, 0 }, { 0x4e, 0x000ef819, 0x000aeef0, 0x00000000, 0x000267c9, 1, C_4e_Kerning, 0, 0 }, { 0x4f, 0x000e7e50, 0x000aeef0, 0x00000000, 0x00007df9, 1, C_4f_Kerning, 0, 0 }, { 0x50, 0x000cf249, 0x000aeef0, 0x00000000, 0x000156e2, 1, C_50_Kerning, 0, 0 }, { 0x51, 0x000ef987, 0x000aeef0, 0x00018e39, 0x00000000, 1, C_51_Kerning, 0, 0 }, { 0x52, 0x000fb252, 0x000aeef0, 0x00000000, 0x00000000, 1, C_52_Kerning, 0, 0 }, { 0x53, 0x000b3c29, 0x000aeef0, 0x00000000, 0x00012720, 1, C_53_Kerning, 0, 0 }, { 0x54, 0x000a5d79, 0x000aeef0, 0x00000000, 0x00000000, 1, C_54_Kerning, 0, 0 }, { 0x55, 0x000b7c1b, 0x000aeef0, 0x00000000, 0x00019cd9, 1, C_55_Kerning, 0, 0 }, { 0x56, 0x000b84d2, 0x000aeef0, 0x00000000, 0x000156e2, 1, C_56_Kerning, 0, 0 }, { 0x57, 0x00122967, 0x000aeef0, 0x00000000, 0x000156e2, 1, C_57_Kerning, 0, 0 }, { 0x58, 0x000d1a09, 0x000aeef0, 0x00000000, 0x000257c5, 1, C_58_Kerning, 0, 0 }, { 0x59, 0x000c3ade, 0x000aeef0, 0x00018e39, 0x000156e2, 1, C_59_Kerning, 0, 0 }, { 0x5a, 0x000d2b97, 0x000aeef0, 0x00000000, 0x00014a47, 1, C_5a_Kerning, 0, 0 }, { 0x5b, 0x000c5149, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000c5149, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000c5149, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000c5149, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000c5149, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000b5559, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x000b5559, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00086189, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00086189, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00086189, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00086189, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x00095d79, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x00095d79, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x00076599, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x00076599, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00056db9, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x00095d79, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x00095d79, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000b5559, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x00095d79, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x00056db9, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x000f0415, 0x0000c6f2, 0x000f390e, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x000dbf02, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x000f4519, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x0007e59b, 0x000b1c72, 0x00031c72, 0x0001f7e0, 0, 0, 0, 0 }, { 0x74, 0x000c5149, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x000c5149, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x000e4929, 0x000af7ae, 0x0002f7ae, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000e4929, 0x000af7ae, 0x0002f7ae, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x0008618b, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00086189, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x00086189, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000b5559, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x000e4929, 0x000b1c72, 0x000212f7, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x000e4929, 0x000b1c72, 0x000212f7, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000e4929, 0x000b1c72, 0x000212f7, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000e4929, 0x000b1c72, 0x000212f7, 0x00000000, 0, 0, 0, 0 } }; void cmsy7_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmr9.cc0000644000175000017500000004221410704611257016415 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMR", 0xec, "TeX text", 0x00900000, 0x6fb48bc7, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00057b40 }, { 0x03, "space_stretch", 0x0002bda0 }, { 0x04, "space_shrink", 0x0001d3c0 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x001071c0 }, { 0x07, "extra_space", 0x0001d3c0 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x000140c9 }, { 0x27, 0x000140c9 }, { 0x29, 0x000140c9 }, { 0x3f, 0x000140c9 }, { 0x5d, 0x000140c9 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffabf89 }, { 0x6c, 0xfffb6ea0 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001d3c0 }, { 0x3f, 0x0001d3c0 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 }, { 0x54, 0xfffea130 }, { 0x55, 0xffff8b10 }, { 0x56, 0xfffe2c40 }, { 0x57, 0xfffe2c40 }, { 0x59, 0xfffea130 }, { 0x74, 0xffff8b10 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff8b10 }, { 0x56, 0xffff8b10 }, { 0x57, 0xffff8b10 }, { 0x58, 0xffff8b10 }, { 0x59, 0xffff8b10 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffe2c40 }, { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 }, { 0x61, 0xfffea130 }, { 0x65, 0xfffea130 }, { 0x6f, 0xfffea130 }, { 0x72, 0xfffea130 }, { 0x75, 0xfffea130 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x000074f0 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffea130 }, { 0x56, 0xfffe2c40 }, { 0x57, 0xfffe2c40 }, { 0x59, 0xfffea130 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff8b10 }, { 0x56, 0xffff8b10 }, { 0x57, 0xffff8b10 }, { 0x58, 0xffff8b10 }, { 0x59, 0xffff8b10 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffea130 }, { 0x2e, 0xfffea130 }, { 0x41, 0xfffea130 }, { 0x61, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 }, { 0x54, 0xfffea130 }, { 0x55, 0xffff8b10 }, { 0x56, 0xfffe2c40 }, { 0x57, 0xfffe2c40 }, { 0x59, 0xfffea130 }, { 0x74, 0xffff8b10 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffea130 }, { 0x61, 0xfffea130 }, { 0x65, 0xfffea130 }, { 0x6f, 0xfffea130 }, { 0x72, 0xfffea130 }, { 0x75, 0xfffea130 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffe2c40 }, { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 }, { 0x61, 0xfffea130 }, { 0x65, 0xfffea130 }, { 0x6f, 0xfffea130 }, { 0x72, 0xfffea130 }, { 0x75, 0xfffea130 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffe2c40 }, { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 }, { 0x61, 0xfffea130 }, { 0x65, 0xfffea130 }, { 0x6f, 0xfffea130 }, { 0x72, 0xfffea130 }, { 0x75, 0xfffea130 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffea130 }, { 0x61, 0xfffea130 }, { 0x65, 0xfffea130 }, { 0x6f, 0xfffea130 }, { 0x72, 0xfffea130 }, { 0x75, 0xfffea130 } }; static TFM::Kerning C_61_Kerning[] = { { 0x6a, 0x0000e9e0 }, { 0x76, 0xffff8b10 }, { 0x77, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x000074f0 }, { 0x64, 0x000074f0 }, { 0x65, 0x000074f0 }, { 0x6a, 0x0000e9e0 }, { 0x6f, 0x000074f0 }, { 0x71, 0x000074f0 }, { 0x76, 0xffff8b10 }, { 0x77, 0xffff8b10 }, { 0x78, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_63_Kerning[] = { { 0x68, 0xffff8b10 }, { 0x6b, 0xffff8b10 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x000140c9 }, { 0x27, 0x000140c9 }, { 0x29, 0x000140c9 }, { 0x3f, 0x000140c9 }, { 0x5d, 0x000140c9 } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x000074f0 } }; static TFM::Kerning C_68_Kerning[] = { { 0x62, 0xffff8b10 }, { 0x74, 0xffff8b10 }, { 0x75, 0xffff8b10 }, { 0x76, 0xffff8b10 }, { 0x77, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff1620 }, { 0x61, 0xffff8b10 }, { 0x63, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 } }; static TFM::Kerning C_6d_Kerning[] = { { 0x62, 0xffff8b10 }, { 0x74, 0xffff8b10 }, { 0x75, 0xffff8b10 }, { 0x76, 0xffff8b10 }, { 0x77, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_6e_Kerning[] = { { 0x62, 0xffff8b10 }, { 0x74, 0xffff8b10 }, { 0x75, 0xffff8b10 }, { 0x76, 0xffff8b10 }, { 0x77, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x000074f0 }, { 0x64, 0x000074f0 }, { 0x65, 0x000074f0 }, { 0x6a, 0x0000e9e0 }, { 0x6f, 0x000074f0 }, { 0x71, 0x000074f0 }, { 0x76, 0xffff8b10 }, { 0x77, 0xffff8b10 }, { 0x78, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x000074f0 }, { 0x64, 0x000074f0 }, { 0x65, 0x000074f0 }, { 0x6a, 0x0000e9e0 }, { 0x6f, 0x000074f0 }, { 0x71, 0x000074f0 }, { 0x76, 0xffff8b10 }, { 0x77, 0xffff8b10 }, { 0x78, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff8b10 } }; static TFM::Kerning C_76_Kerning[] = { { 0x61, 0xffff1620 }, { 0x61, 0xffff8b10 }, { 0x63, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff8b10 }, { 0x63, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffea130 }, { 0x2e, 0xfffea130 }, { 0x61, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000a46c7, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000db420, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000cca40, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000b6ace, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000af680, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000c54ae, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000be060, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000cca40, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000be060, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000cca40, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000be060, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000997b0, 0x000b1c72, 0x00000000, 0x000140c9, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x000922c0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000922c0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000db420, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000db420, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00049160, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00050650, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000838e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000838e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000838e0, 0x000a0e39, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000838e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000838e0, 0x0009217e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000c54ae, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00074f00, 0x00000000, 0x0002b8e4, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000838e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000be060, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000cca40, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x000838e0, 0x000871c7, 0x00018e39, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000ed827, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x0010abe7, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000cca40, 0x000bb60b, 0x0000c71c, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00049160, 0x0006e38e, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x00049160, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x000838e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000db420, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000838e0, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000db420, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000cca40, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x00049160, 0x000b1c72, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x00066520, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00066520, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000838e0, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000cca40, 0x00097b40, 0x00017b40, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00049160, 0x0001ba79, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00057b40, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x00049160, 0x0001ba79, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000838e0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000838e0, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000838e0, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000838e0, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000838e0, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000838e0, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000838e0, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000838e0, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000838e0, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000838e0, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000838e0, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00049160, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00049160, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00049160, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000cca40, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x0007c3f0, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x0007c3f0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000cca40, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000c54ae, 0x000aeeee, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000ba597, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000be060, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000c8f77, 0x000aeeee, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000b30a7, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000abbb7, 0x000aeeee, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000ce754, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000c54ae, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x0005ef8e, 0x000aeeee, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x00087307, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000cc99e, 0x000aeeee, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000a46c7, 0x000aeeee, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000f124e, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000c54ae, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000cca40, 0x000aeeee, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000b30a7, 0x000aeeee, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000cca40, 0x000aeeee, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000c1a87, 0x000aeeee, 0x00000000, 0x00000000, 10, C_52_Kerning, 0, 0 }, { 0x53, 0x000922c0, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000be060, 0x000aeeee, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000c54ae, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000c54ae, 0x000aeeee, 0x00000000, 0x00003a79, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x0010e60e, 0x000aeeee, 0x00000000, 0x00003a79, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000c54ae, 0x000aeeee, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000c54ae, 0x000aeeee, 0x00000000, 0x0000693e, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000a0ca0, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x00049160, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000838e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00049160, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000838e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00049160, 0x000ab49b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x00049160, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x000838e0, 0x0006e38e, 0x00000000, 0x00000000, 4, C_61_Kerning, 0, 0 }, { 0x62, 0x000922c0, 0x000b1c72, 0x00000000, 0x00000000, 10, C_62_Kerning, 0, 0 }, { 0x63, 0x00074f00, 0x0006e38e, 0x00000000, 0x00000000, 2, C_63_Kerning, 0, 0 }, { 0x64, 0x000922c0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00075095, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x00050650, 0x000b1c72, 0x00000000, 0x000140c9, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x000838e0, 0x0006e38e, 0x00031c72, 0x00003a79, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000922c0, 0x000b1c72, 0x00000000, 0x00000000, 6, C_68_Kerning, 0, 0 }, { 0x69, 0x00049160, 0x000ab49b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00050650, 0x000ab49b, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x0008add0, 0x000b1c72, 0x00000000, 0x00000000, 5, C_6b_Kerning, 0, 0 }, { 0x6c, 0x00049160, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000db420, 0x0006e38e, 0x00000000, 0x00000000, 6, C_6d_Kerning, 0, 0 }, { 0x6e, 0x000922c0, 0x0006e38e, 0x00000000, 0x00000000, 6, C_6e_Kerning, 0, 0 }, { 0x6f, 0x000838e0, 0x0006e38e, 0x00000000, 0x00000000, 10, C_6f_Kerning, 0, 0 }, { 0x70, 0x000922c0, 0x0006e38e, 0x00031c72, 0x00000000, 10, C_70_Kerning, 0, 0 }, { 0x71, 0x0008add0, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x00066e9c, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x00067c84, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00066520, 0x0009d75e, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x000922c0, 0x0006e38e, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x0008add0, 0x0006e38e, 0x00000000, 0x00003a79, 5, C_76_Kerning, 0, 0 }, { 0x77, 0x000be060, 0x0006e38e, 0x00000000, 0x00003a79, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x0008add0, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x0008add0, 0x0006e38e, 0x00031c72, 0x00003a79, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x00074f00, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000838e0, 0x0006e38e, 0x00000000, 0x000074f0, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x001071c0, 0x0006e38e, 0x00000000, 0x000074f0, 0, 0, 0, 0 }, { 0x7d, 0x000838e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000838e0, 0x000ab49b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000838e0, 0x000ab49b, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmr9_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmss17.cc0000644000175000017500000003761510704611257016671 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMSS", 0xdb, "TeX text", 0x01147ae0, 0x05d6c61f, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x000503f1 }, { 0x03, "space_stretch", 0x000281f8 }, { 0x04, "space_shrink", 0x0001abfb }, { 0x05, "x_height", 0x0006e34b }, { 0x06, "quad", 0x000f0bd3 }, { 0x07, "extra_space", 0x0001abfb } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x00010b7d }, { 0x27, 0x00010b7d }, { 0x29, 0x00010b7d }, { 0x3f, 0x00010b7d }, { 0x5d, 0x00010b7d } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffc2600 }, { 0x6c, 0xfffc7012 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001abfb }, { 0x3f, 0x0001abfb } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 }, { 0x54, 0xfffebf04 }, { 0x55, 0xffff9501 }, { 0x56, 0xfffe5405 }, { 0x57, 0xfffe5405 }, { 0x59, 0xfffebf04 }, { 0x74, 0xffff9501 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff9501 }, { 0x56, 0xffff9501 }, { 0x57, 0xffff9501 }, { 0x58, 0xffff9501 }, { 0x59, 0xffff9501 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffebf04 }, { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 }, { 0x61, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 }, { 0x72, 0xffff9501 }, { 0x75, 0xffff9501 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x00006aff } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffebf04 }, { 0x56, 0xfffe5405 }, { 0x57, 0xfffe5405 }, { 0x59, 0xfffebf04 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff9501 }, { 0x56, 0xffff9501 }, { 0x57, 0xffff9501 }, { 0x58, 0xffff9501 }, { 0x59, 0xffff9501 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffebf04 }, { 0x2e, 0xfffebf04 }, { 0x41, 0xfffebf04 }, { 0x61, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffebf04 }, { 0x61, 0xfffebf04 }, { 0x65, 0xfffebf04 }, { 0x6f, 0xfffebf04 }, { 0x72, 0xfffebf04 }, { 0x75, 0xfffebf04 }, { 0x79, 0xfffebf04 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffebf04 }, { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 }, { 0x61, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 }, { 0x72, 0xffff9501 }, { 0x75, 0xffff9501 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffebf04 }, { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 }, { 0x61, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 }, { 0x72, 0xffff9501 }, { 0x75, 0xffff9501 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffebf04 }, { 0x61, 0xfffebf04 }, { 0x65, 0xfffebf04 }, { 0x6f, 0xfffebf04 }, { 0x72, 0xfffebf04 }, { 0x75, 0xfffebf04 } }; static TFM::Kerning C_61_Kerning[] = { { 0x72, 0xffff9501 }, { 0x77, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x00006aff }, { 0x64, 0x00006aff }, { 0x65, 0x00006aff }, { 0x6f, 0x00006aff }, { 0x71, 0x00006aff }, { 0x72, 0xffff9501 }, { 0x77, 0xffff9501 }, { 0x78, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x00010b7d }, { 0x27, 0x00010b7d }, { 0x29, 0x00010b7d }, { 0x3f, 0x00010b7d }, { 0x5d, 0x00010b7d } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x00006aff } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff9501 }, { 0x63, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x00006aff }, { 0x64, 0x00006aff }, { 0x65, 0x00006aff }, { 0x6f, 0x00006aff }, { 0x71, 0x00006aff }, { 0x72, 0xffff9501 }, { 0x77, 0xffff9501 }, { 0x78, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x00006aff }, { 0x64, 0x00006aff }, { 0x65, 0x00006aff }, { 0x6f, 0x00006aff }, { 0x71, 0x00006aff }, { 0x72, 0xffff9501 }, { 0x77, 0xffff9501 }, { 0x78, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff9501 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff9501 }, { 0x63, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffebf04 }, { 0x2e, 0xfffebf04 }, { 0x61, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000823ee, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000c89da, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000bb3dd, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x00092803, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000a07e2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000a9c07, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000adddf, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000bb3dd, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000adddf, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000bb3dd, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000adddf, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x0008c6e6, 0x000b1c72, 0x00000000, 0x00010b7d, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x00080ce4, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x00080ce4, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000c3ad7, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000c3ad7, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00038fee, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x0003faec, 0x0006e34b, 0x00031cb5, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000785e9, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000785e9, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000785e9, 0x000a0e28, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000785e9, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000785e9, 0x000999ce, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x0009fe00, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x0006afec, 0x00000000, 0x0002b91f, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000736e7, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000adddf, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000bb3dd, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x000785e9, 0x000871a6, 0x00018e5b, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000cefe8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000e9be3, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000bb3dd, 0x000be3a0, 0x0000c72e, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00038fee, 0x0006e34b, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x0004cbfa, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x000785e9, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000c89da, 0x000b1c72, 0x00031cb5, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000785e9, 0x000bfc50, 0x0000dfde, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000c89da, 0x000bfc50, 0x0000dfde, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000b64da, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x00042df3, 0x000b1c72, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x0005d9ee, 0x000bfc50, 0x0003fc93, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x0005d9ee, 0x000bfc50, 0x0003fc93, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000785e9, 0x000bfc50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000bb3dd, 0x000903cf, 0x00010413, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00042df3, 0x00014938, 0x00020195, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x000503f1, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x00042df3, 0x00014938, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000785e9, 0x000bfc50, 0x0003fc93, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000785e9, 0x000a7e6b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000785e9, 0x000a7e6b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000785e9, 0x000a7e6b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000785e9, 0x000a7e6b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000785e9, 0x000a7e6b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000785e9, 0x000a7e6b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000785e9, 0x000a7e6b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000785e9, 0x000a7e6b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000785e9, 0x000a7e6b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000785e9, 0x000a7e6b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00042df3, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00042df3, 0x0006e34b, 0x00020195, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x0004cbfa, 0x0007ffbc, 0x00031cb5, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000bb3dd, 0x0005b073, 0xfffdb0b7, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00071aeb, 0x0007ffbc, 0x00031cb5, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00071aeb, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000a07e2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x0009fe00, 0x000b1c72, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000a02f1, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x00099ce3, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000ad8ee, 0x000b1c72, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x0008f9ec, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x00088eed, 0x000b1c72, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000a07e2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000a9c07, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x00042412, 0x000b1c72, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000715fa, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000a68ff, 0x000b1c72, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000823ee, 0x000b1c72, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000d1dff, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000a9c07, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000b15d6, 0x000b1c72, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000997f2, 0x000b1c72, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000b15d6, 0x000b1c72, 0x00020195, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x0009b3ed, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x00085be7, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000a3fd9, 0x000b1c72, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000a4d04, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x0009fe00, 0x000b1c72, 0x00000000, 0x0000357f, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x000e2bf4, 0x000b1c72, 0x00000000, 0x0000357f, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x0009fe00, 0x000b1c72, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x0009fe00, 0x000b1c72, 0x00000000, 0x0000604c, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000931e4, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x00045db1, 0x000bfc50, 0x0003fc93, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000785e9, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00045db1, 0x000bfc50, 0x0003fc93, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000785e9, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00042df3, 0x000a8230, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x00042df3, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x000736e7, 0x0006e34b, 0x00000000, 0x00000000, 3, C_61_Kerning, 0, 0 }, { 0x62, 0x0007bde1, 0x000b1c72, 0x00000000, 0x00000000, 9, C_62_Kerning, 0, 0 }, { 0x63, 0x0006afec, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x0007bde1, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x0006afec, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000498f2, 0x000b1c72, 0x00000000, 0x00010b7d, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x000785e9, 0x0006e34b, 0x00031cb5, 0x0000357f, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x0007bde1, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x00038fee, 0x000a8230, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x0003faec, 0x000a8230, 0x00031cb5, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000752e2, 0x000b1c72, 0x00000000, 0x00000000, 4, C_6b_Kerning, 0, 0 }, { 0x6c, 0x00038fee, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000bebd5, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x0007bde1, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x000785e9, 0x0006e34b, 0x00000000, 0x00000000, 9, C_6f_Kerning, 0, 0 }, { 0x70, 0x0007bde1, 0x0006e34b, 0x00031cb5, 0x00000000, 9, C_70_Kerning, 0, 0 }, { 0x71, 0x0007bde1, 0x0006e34b, 0x00031cb5, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x00051fed, 0x0006e34b, 0x00000000, 0x0000357f, 0, 0, 0, 0 }, { 0x73, 0x0005c489, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00056ef0, 0x0008db1a, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x0007bde1, 0x0006e34b, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x0006e7e4, 0x0006e34b, 0x00000000, 0x0000357f, 0, 0, 0, 0 }, { 0x77, 0x000a3fda, 0x0006e34b, 0x00000000, 0x0000357f, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x0006e7e4, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x0006e7e4, 0x0006e34b, 0x00031cb5, 0x0000357f, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x0006886a, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000785e9, 0x0006e34b, 0x00000000, 0x00006aff, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x000f0bd3, 0x0006e34b, 0x00000000, 0x00006aff, 0, 0, 0, 0 }, { 0x7d, 0x000785e9, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000785e9, 0x000a7b9a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000785e9, 0x000a8230, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmss17_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmsy10.cc0000644000175000017500000003162210704611254016655 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMSY", 0xea, "TeX math symbols", 0x00a00000, 0x21222c9a, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x00100003 }, { 0x07, "extra_space", 0x00000000 }, { 0x08, "num1", 0x000ad2fa }, { 0x09, "num2", 0x00064cba }, { 0x0a, "num3", 0x00071986 }, { 0x0b, "denom1", 0x000af9a8 }, { 0x0c, "denom2", 0x00058478 }, { 0x0d, "sup1", 0x00069b35 }, { 0x0e, "sup2", 0x0005ce68 }, { 0x0f, "sup3", 0x00049f4a }, { 0x10, "sub1", 0x00026666 }, { 0x11, "sub2", 0x0003f49a }, { 0x12, "supdrop", 0x00062d80 }, { 0x13, "subdrop", 0x0000cccd }, { 0x14, "delim1", 0x00263d70 }, { 0x15, "delim2", 0x001028f6 }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Kerning C_41_Kerning[] = { { 0x30, 0x00031c78 } }; static TFM::Kerning C_42_Kerning[] = { { 0x30, 0x000238e8 } }; static TFM::Kerning C_43_Kerning[] = { { 0x30, 0x000238e8 } }; static TFM::Kerning C_44_Kerning[] = { { 0x30, 0x00015558 } }; static TFM::Kerning C_45_Kerning[] = { { 0x30, 0x0001c720 } }; static TFM::Kerning C_46_Kerning[] = { { 0x30, 0x0001c720 } }; static TFM::Kerning C_47_Kerning[] = { { 0x30, 0x0001c720 } }; static TFM::Kerning C_48_Kerning[] = { { 0x30, 0x0001c720 } }; static TFM::Kerning C_49_Kerning[] = { { 0x30, 0x000071c8 } }; static TFM::Kerning C_4a_Kerning[] = { { 0x30, 0x0002aab0 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x30, 0x0000e390 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x30, 0x000238e8 } }; static TFM::Kerning C_4d_Kerning[] = { { 0x30, 0x000238e8 } }; static TFM::Kerning C_4e_Kerning[] = { { 0x30, 0x00015558 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x30, 0x0001c720 } }; static TFM::Kerning C_50_Kerning[] = { { 0x30, 0x00015558 } }; static TFM::Kerning C_51_Kerning[] = { { 0x30, 0x0001c720 } }; static TFM::Kerning C_52_Kerning[] = { { 0x30, 0x00015558 } }; static TFM::Kerning C_53_Kerning[] = { { 0x30, 0x000238e8 } }; static TFM::Kerning C_54_Kerning[] = { { 0x30, 0x000071c8 } }; static TFM::Kerning C_55_Kerning[] = { { 0x30, 0x00015558 } }; static TFM::Kerning C_56_Kerning[] = { { 0x30, 0x000071c8 } }; static TFM::Kerning C_57_Kerning[] = { { 0x30, 0x00015558 } }; static TFM::Kerning C_58_Kerning[] = { { 0x30, 0x000238e8 } }; static TFM::Kerning C_59_Kerning[] = { { 0x30, 0x00015558 } }; static TFM::Kerning C_5a_Kerning[] = { { 0x30, 0x000238e8 } }; static TFM::Character character[] = { { 0x00, 0x000c71ca, 0x00095556, 0x00015556, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000471c8, 0x00071c73, 0xffff1c73, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000c71ca, 0x00095556, 0x00015556, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x00080002, 0x000771c8, 0xffff71c8, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000c71ca, 0x00095556, 0x00015556, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x00080002, 0x00071c73, 0xffff1c73, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000c71ca, 0x00095556, 0x00015556, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000c71ca, 0x00095556, 0x00015556, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000c71ca, 0x00095556, 0x00015556, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000c71ca, 0x00095556, 0x00015556, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000c71ca, 0x00095556, 0x00015556, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000c71ca, 0x00095556, 0x00015556, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x000c71ca, 0x00095556, 0x00015556, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x00100003, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x00080002, 0x00071c73, 0xffff1c73, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x00080002, 0x00071c73, 0xffff1c73, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x000c71ca, 0x00076b83, 0xffff6b83, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x000c71ca, 0x00076b83, 0xffff6b83, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000c71ca, 0x000a2cf0, 0x00022cf0, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000c71ca, 0x000a2cf0, 0x00022cf0, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000c71ca, 0x000a2cf0, 0x00022cf0, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000c71ca, 0x000a2cf0, 0x00022cf0, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000c71ca, 0x000a2cf0, 0x00022cf0, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000c71ca, 0x000a2cf0, 0x00022cf0, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x000c71ca, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000c71ca, 0x0007bade, 0xffffbade, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000c71ca, 0x0008a025, 0x0000a025, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000c71ca, 0x0008a025, 0x0000a025, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00100003, 0x0008a025, 0x0000a025, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x00100003, 0x0008a025, 0x0000a025, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000c71ca, 0x0008a025, 0x0000a025, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000c71ca, 0x0008a025, 0x0000a025, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00100003, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x00100003, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x00080002, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x00080002, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00100003, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x00100003, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x00100003, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000c71ca, 0x00076b83, 0xffff6b83, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x00100003, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00100003, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x0009c71e, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x0009c71e, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00100003, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00100003, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x00100003, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000c71ca, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00046666, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00100003, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000aaaad, 0x0008a025, 0x0000a025, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000aaaad, 0x0008a025, 0x0000a025, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000e38e6, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000e38e6, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00000000, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00000000, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x0008e390, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x0008e390, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000aaaad, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00080002, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000b8e3b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000b8e3b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000c71ca, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000c71ca, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x0009c71e, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000cc68a, 0x000aeeee, 0x00000000, 0x00000000, 1, C_41_Kerning, 0, 0 }, { 0x42, 0x000a824b, 0x000aeeee, 0x00000000, 0x00007c92, 1, C_42_Kerning, 0, 0 }, { 0x43, 0x00086caa, 0x000aeeee, 0x00000000, 0x0000eef2, 1, C_43_Kerning, 0, 0 }, { 0x44, 0x000c57a0, 0x000aeeee, 0x00000000, 0x000071c8, 1, C_44_Kerning, 0, 0 }, { 0x45, 0x000871cb, 0x000aeeee, 0x00000000, 0x00016e5a, 1, C_45_Kerning, 0, 0 }, { 0x46, 0x000b7ffe, 0x000aeeee, 0x00000000, 0x000196c2, 1, C_46_Kerning, 0, 0 }, { 0x47, 0x00098492, 0x000aeeee, 0x00018e3a, 0x0000f2e8, 1, C_47_Kerning, 0, 0 }, { 0x48, 0x000d8325, 0x000aeeee, 0x00000000, 0x0000278b, 1, C_48_Kerning, 0, 0 }, { 0x49, 0x0008b656, 0x000aeeee, 0x00000000, 0x00012e60, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000ad830, 0x000aeeee, 0x00018e3a, 0x00000000, 1, C_4a_Kerning, 0, 0 }, { 0x4b, 0x000c30f3, 0x000aeeee, 0x00000000, 0x00003b2b, 1, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000b091d, 0x000aeeee, 0x00000000, 0x00000000, 1, C_4c_Kerning, 0, 0 }, { 0x4d, 0x001336e3, 0x000aeeee, 0x00000000, 0x00000000, 1, C_4d_Kerning, 0, 0 }, { 0x4e, 0x000d20bb, 0x000aeeee, 0x00000000, 0x00025b96, 1, C_4e_Kerning, 0, 0 }, { 0x4f, 0x000cbce2, 0x000aeeee, 0x00000000, 0x000071c8, 1, C_4f_Kerning, 0, 0 }, { 0x50, 0x000b2103, 0x000aeeee, 0x00000000, 0x000150c8, 1, C_50_Kerning, 0, 0 }, { 0x51, 0x000d1115, 0x000aeeee, 0x00018e3a, 0x00000000, 1, C_51_Kerning, 0, 0 }, { 0x52, 0x000d8f60, 0x000aeeee, 0x00000000, 0x00000000, 1, C_52_Kerning, 0, 0 }, { 0x53, 0x0009b05e, 0x000aeeee, 0x00000000, 0x0001332e, 1, C_53_Kerning, 0, 0 }, { 0x54, 0x0008b6dd, 0x000aeeee, 0x00000000, 0x0000278b, 1, C_54_Kerning, 0, 0 }, { 0x55, 0x000a0368, 0x000aeeee, 0x00000000, 0x000196c2, 1, C_55_Kerning, 0, 0 }, { 0x56, 0x0009cdf5, 0x000aeeee, 0x00000000, 0x000150c8, 1, C_56_Kerning, 0, 0 }, { 0x57, 0x000fcdf6, 0x000aeeee, 0x00000000, 0x000150c8, 1, C_57_Kerning, 0, 0 }, { 0x58, 0x000b69aa, 0x000aeeee, 0x00000000, 0x000257c5, 1, C_58_Kerning, 0, 0 }, { 0x59, 0x000ab182, 0x000aeeee, 0x00018e3a, 0x000150c8, 1, C_59_Kerning, 0, 0 }, { 0x5a, 0x000b987a, 0x000aeeee, 0x00000000, 0x00014566, 1, C_5a_Kerning, 0, 0 }, { 0x5b, 0x000aaaad, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000aaaad, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000aaaad, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000aaaad, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000aaaad, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x0009c71e, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x0009c71e, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00071c73, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00071c73, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00071c73, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00071c73, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x00080002, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x00080002, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x000638e5, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x000638e5, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x000471c8, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x00080002, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x00080002, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x0009c71e, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x00080002, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x000471c8, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x000d5558, 0x0000a3d6, 0x000f5c2a, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x000c0002, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x000d5558, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x0006aaad, 0x000b1c72, 0x00031c72, 0x0001c71d, 0, 0, 0, 0 }, { 0x74, 0x000aaaad, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x000aaaad, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x000c71ca, 0x000a2cf0, 0x00022cf0, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000c71ca, 0x000a2cf0, 0x00022cf0, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x00071c75, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00071c73, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x00071c73, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x0009c71e, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x000c71ca, 0x000b1c72, 0x000212f6, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x000c71ca, 0x000b1c72, 0x000212f6, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000c71ca, 0x000b1c72, 0x000212f6, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000c71ca, 0x000b1c72, 0x000212f6, 0x00000000, 0, 0, 0, 0 } }; void cmsy10_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmss12.cc0000644000175000017500000003761510704611257016664 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMSS", 0xe6, "TeX text", 0x00c00000, 0x82ce5236, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x000538e0 }, { 0x03, "space_stretch", 0x00029c70 }, { 0x04, "space_shrink", 0x0001bda0 }, { 0x05, "x_height", 0x00071c71 }, { 0x06, "quad", 0x000faaa0 }, { 0x07, "extra_space", 0x0001bda0 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x00011684 }, { 0x27, 0x00011684 }, { 0x29, 0x00011684 }, { 0x3f, 0x00011684 }, { 0x5d, 0x00011684 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffc0720 }, { 0x6c, 0xfffc509b } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001bda0 }, { 0x3f, 0x0001bda0 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 }, { 0x54, 0xfffeb1c8 }, { 0x55, 0xffff9098 }, { 0x56, 0xfffe4260 }, { 0x57, 0xfffe4260 }, { 0x59, 0xfffeb1c8 }, { 0x74, 0xffff9098 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff9098 }, { 0x56, 0xffff9098 }, { 0x57, 0xffff9098 }, { 0x58, 0xffff9098 }, { 0x59, 0xffff9098 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffeb1c8 }, { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 }, { 0x61, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 }, { 0x72, 0xffff9098 }, { 0x75, 0xffff9098 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x00006f68 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffeb1c8 }, { 0x56, 0xfffe4260 }, { 0x57, 0xfffe4260 }, { 0x59, 0xfffeb1c8 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff9098 }, { 0x56, 0xffff9098 }, { 0x57, 0xffff9098 }, { 0x58, 0xffff9098 }, { 0x59, 0xffff9098 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffeb1c8 }, { 0x2e, 0xfffeb1c8 }, { 0x41, 0xfffeb1c8 }, { 0x61, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffeb1c8 }, { 0x61, 0xfffeb1c8 }, { 0x65, 0xfffeb1c8 }, { 0x6f, 0xfffeb1c8 }, { 0x72, 0xfffeb1c8 }, { 0x75, 0xfffeb1c8 }, { 0x79, 0xfffeb1c8 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffeb1c8 }, { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 }, { 0x61, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 }, { 0x72, 0xffff9098 }, { 0x75, 0xffff9098 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffeb1c8 }, { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 }, { 0x61, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 }, { 0x72, 0xffff9098 }, { 0x75, 0xffff9098 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffeb1c8 }, { 0x61, 0xfffeb1c8 }, { 0x65, 0xfffeb1c8 }, { 0x6f, 0xfffeb1c8 }, { 0x72, 0xfffeb1c8 }, { 0x75, 0xfffeb1c8 } }; static TFM::Kerning C_61_Kerning[] = { { 0x72, 0xffff9098 }, { 0x77, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x00006f68 }, { 0x64, 0x00006f68 }, { 0x65, 0x00006f68 }, { 0x6f, 0x00006f68 }, { 0x71, 0x00006f68 }, { 0x72, 0xffff9098 }, { 0x77, 0xffff9098 }, { 0x78, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x00011684 }, { 0x27, 0x00011684 }, { 0x29, 0x00011684 }, { 0x3f, 0x00011684 }, { 0x5d, 0x00011684 } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x00006f68 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff9098 }, { 0x63, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x00006f68 }, { 0x64, 0x00006f68 }, { 0x65, 0x00006f68 }, { 0x6f, 0x00006f68 }, { 0x71, 0x00006f68 }, { 0x72, 0xffff9098 }, { 0x77, 0xffff9098 }, { 0x78, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x00006f68 }, { 0x64, 0x00006f68 }, { 0x65, 0x00006f68 }, { 0x6f, 0x00006f68 }, { 0x71, 0x00006f68 }, { 0x72, 0xffff9098 }, { 0x77, 0xffff9098 }, { 0x78, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff9098 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff9098 }, { 0x63, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffeb1c8 }, { 0x2e, 0xfffeb1c8 }, { 0x61, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x0008767d, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000d0e30, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000c2f60, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x00097b3b, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000a71c0, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000afb3b, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000b5090, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000c2f60, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000b5090, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000c2f60, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000b5090, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x00092388, 0x000b1c71, 0x00000000, 0x00011684, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x00085ecb, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x00085ecb, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000cb8db, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000cb8db, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x0003af65, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00041ecd, 0x00071c71, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x0007d550, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x0007d550, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x0007d550, 0x000a1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x0007d550, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x0007d550, 0x0009b9d5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000a5a0b, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x0006f680, 0x00000000, 0x0002b8e3, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00077ffb, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000b5090, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000c2f60, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x0007d550, 0x0008aaab, 0x00018e39, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000d71bd, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000f2f5d, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000c2f60, 0x000be38d, 0x0000c71c, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x0003af65, 0x00071c71, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x0004fb40, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x0007d550, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000d0e30, 0x000b1c71, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x0007d550, 0x000c0000, 0x0000e38f, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000d0e30, 0x000c0000, 0x0000e38f, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000bda0b, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x00045a10, 0x000b1c71, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x000617b0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000617b0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x0007d550, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000c2f60, 0x000938e0, 0x000138e0, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00045a10, 0x00014bdb, 0x00020000, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x000538e0, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x00045a10, 0x00014bdb, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x0007d550, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x0007d550, 0x000a7b43, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x0007d550, 0x000a7b43, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x0007d550, 0x000a7b43, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x0007d550, 0x000a7b43, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x0007d550, 0x000a7b43, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x0007d550, 0x000a7b43, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x0007d550, 0x000a7b43, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x0007d550, 0x000a7b43, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x0007d550, 0x000a7b43, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x0007d550, 0x000a7b43, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00045a10, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00045a10, 0x00071c71, 0x00020000, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x0004fb40, 0x00080000, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000c2f60, 0x0005d27c, 0xfffdd27c, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000765e8, 0x00080000, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000765e8, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000a71c0, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000a5a0b, 0x000b1c71, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000a65e5, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000a0258, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000b44b5, 0x000b1c71, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x0009554d, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x0008e5e5, 0x000b1c71, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000a71c0, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000afb3b, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x0004425b, 0x000b1c71, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x00075a0d, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000ac973, 0x000b1c71, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x0008767d, 0x000b1c71, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000d97ab, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000afb3b, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000b8e30, 0x000b1c71, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x0009f67d, 0x000b1c71, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000b8e30, 0x000b1c71, 0x00020000, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000a154d, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x0008b420, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000aaf60, 0x000b1c71, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000aaaa3, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000a5a0b, 0x000b1c71, 0x00000000, 0x000037b4, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x000eb41b, 0x000b1c71, 0x00000000, 0x000037b4, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000a5a0b, 0x000b1c71, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000a5a0b, 0x000b1c71, 0x00000000, 0x00006444, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000992f0, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x0004871b, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x0007d550, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x0004871b, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x0007d550, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00045a10, 0x000ad80b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x00045a10, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x00077ffb, 0x00071c71, 0x00000000, 0x00000000, 3, C_61_Kerning, 0, 0 }, { 0x62, 0x00080975, 0x000b1c71, 0x00000000, 0x00000000, 9, C_62_Kerning, 0, 0 }, { 0x63, 0x0006f680, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00080975, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x0006f680, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x0004c978, 0x000b1c71, 0x00000000, 0x00011684, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x0007d550, 0x00071c71, 0x00031c71, 0x000037b4, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x00080975, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x0003af65, 0x000ad80b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00041ecd, 0x000ad80b, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x00079a0d, 0x000b1c71, 0x00000000, 0x00000000, 4, C_6b_Kerning, 0, 0 }, { 0x6c, 0x0003af65, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000c6385, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x00080975, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x0007d550, 0x00071c71, 0x00000000, 0x00000000, 9, C_6f_Kerning, 0, 0 }, { 0x70, 0x00080975, 0x00071c71, 0x00031c71, 0x00000000, 9, C_70_Kerning, 0, 0 }, { 0x71, 0x00080975, 0x00071c71, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x000552f3, 0x00071c71, 0x00000000, 0x000037b4, 0, 0, 0, 0 }, { 0x73, 0x00060168, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x0005a848, 0x00092495, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x00080975, 0x00071c71, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x00072aa5, 0x00071c71, 0x00000000, 0x000037b4, 0, 0, 0, 0 }, { 0x77, 0x000aa5e5, 0x00071c71, 0x00000000, 0x000037b4, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x00072aa5, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00072aa5, 0x00071c71, 0x00031c71, 0x000037b4, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x0006cbd5, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x0007d550, 0x00071c71, 0x00000000, 0x00006f68, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x000faaa0, 0x00071c71, 0x00000000, 0x00006f68, 0, 0, 0, 0 }, { 0x7d, 0x0007d550, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x0007d550, 0x000ace90, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x0007d550, 0x000ad80b, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmss12_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmmi6.cc0000644000175000017500000004544610704611256016567 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMMI", 0xf2, "TeX math italic", 0x00600000, 0x10cdbece, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38d }, { 0x06, "quad", 0x001471c0 }, { 0x07, "extra_space", 0x00000000 } }; static TFM::Kerning C_00_Kerning[] = { { 0x3a, 0xfffded0b }, { 0x3b, 0xfffded0b }, { 0x3d, 0xfffef685 }, { 0x7f, 0x00018e38 } }; static TFM::Kerning C_01_Kerning[] = { { 0x7f, 0x00031c70 } }; static TFM::Kerning C_02_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_03_Kerning[] = { { 0x7f, 0x00031c70 } }; static TFM::Kerning C_04_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_05_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 }, { 0x3d, 0xfffef685 }, { 0x7f, 0x0001097b } }; static TFM::Kerning C_06_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_07_Kerning[] = { { 0x3a, 0xfffded0b }, { 0x3b, 0xfffded0b }, { 0x3d, 0xfffef685 }, { 0x7f, 0x0001097b } }; static TFM::Kerning C_08_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_09_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 }, { 0x3d, 0xfffef685 }, { 0x7f, 0x0001097b } }; static TFM::Kerning C_0a_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x7f, 0x000084bd } }; static TFM::Kerning C_0c_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_0e_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 }, { 0x7f, 0x0001097b } }; static TFM::Kerning C_0f_Kerning[] = { { 0x7f, 0x0001097b } }; static TFM::Kerning C_10_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_11_Kerning[] = { { 0x7f, 0x0001097b } }; static TFM::Kerning C_12_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_13_Kerning[] = { { 0x7f, 0x0001097b } }; static TFM::Kerning C_16_Kerning[] = { { 0x7f, 0x000084bd } }; static TFM::Kerning C_17_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 }, { 0x7f, 0x000084bd } }; static TFM::Kerning C_18_Kerning[] = { { 0x7f, 0x000212f5 } }; static TFM::Kerning C_1a_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_1b_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 } }; static TFM::Kerning C_1c_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 }, { 0x7f, 0x000084bd } }; static TFM::Kerning C_1d_Kerning[] = { { 0x7f, 0x000084bd } }; static TFM::Kerning C_1e_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_1f_Kerning[] = { { 0x7f, 0x0001097b } }; static TFM::Kerning C_20_Kerning[] = { { 0x7f, 0x000212f5 } }; static TFM::Kerning C_22_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_23_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_25_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_26_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_27_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_3d_Kerning[] = { { 0x01, 0xfffef685 }, { 0x41, 0xfffef685 }, { 0x4d, 0xfffef685 }, { 0x4e, 0xfffef685 }, { 0x59, 0x0001097b }, { 0x5a, 0xfffef685 } }; static TFM::Kerning C_40_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_41_Kerning[] = { { 0x7f, 0x000297b3 } }; static TFM::Kerning C_42_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_43_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 }, { 0x3d, 0xffff7b43 }, { 0x7f, 0x00018e38 } }; static TFM::Kerning C_44_Kerning[] = { { 0x7f, 0x0001097b } }; static TFM::Kerning C_45_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_46_Kerning[] = { { 0x3a, 0xfffded0b }, { 0x3b, 0xfffded0b }, { 0x3d, 0xfffef685 }, { 0x7f, 0x00018e38 } }; static TFM::Kerning C_47_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_48_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 }, { 0x3d, 0xfffef685 }, { 0x7f, 0x0001097b } }; static TFM::Kerning C_49_Kerning[] = { { 0x7f, 0x000212f5 } }; static TFM::Kerning C_4a_Kerning[] = { { 0x3a, 0xfffded0b }, { 0x3b, 0xfffded0b }, { 0x3d, 0xfffef685 }, { 0x7f, 0x00031c70 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 }, { 0x3d, 0xfffef685 }, { 0x7f, 0x0001097b } }; static TFM::Kerning C_4c_Kerning[] = { { 0x7f, 0x000084bd } }; static TFM::Kerning C_4d_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 }, { 0x3d, 0xfffef685 }, { 0x7f, 0x00018e38 } }; static TFM::Kerning C_4e_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 }, { 0x3d, 0xfffe71c8 }, { 0x3d, 0xffff7b43 }, { 0x7f, 0x00018e38 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_50_Kerning[] = { { 0x3a, 0xfffded0b }, { 0x3b, 0xfffded0b }, { 0x3d, 0xfffef685 }, { 0x7f, 0x00018e38 } }; static TFM::Kerning C_51_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_52_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_53_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 }, { 0x3d, 0xfffef685 }, { 0x7f, 0x00018e38 } }; static TFM::Kerning C_54_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 }, { 0x3d, 0xffff7b43 }, { 0x7f, 0x00018e38 } }; static TFM::Kerning C_55_Kerning[] = { { 0x3a, 0xfffded0b }, { 0x3b, 0xfffded0b }, { 0x3d, 0xfffef685 }, { 0x7f, 0x000084bd } }; static TFM::Kerning C_56_Kerning[] = { { 0x3a, 0xfffce390 }, { 0x3b, 0xfffce390 }, { 0x3d, 0xfffded0b } }; static TFM::Kerning C_57_Kerning[] = { { 0x3a, 0xfffce390 }, { 0x3b, 0xfffce390 }, { 0x3d, 0xfffded0b } }; static TFM::Kerning C_58_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 }, { 0x3d, 0xfffe71c8 }, { 0x3d, 0xffff7b43 }, { 0x7f, 0x00018e38 } }; static TFM::Kerning C_59_Kerning[] = { { 0x3a, 0xfffce390 }, { 0x3b, 0xfffce390 }, { 0x3d, 0xfffded0b } }; static TFM::Kerning C_5a_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 }, { 0x3d, 0xfffef685 }, { 0x7f, 0x00018e38 } }; static TFM::Kerning C_60_Kerning[] = { { 0x7f, 0x000212f5 } }; static TFM::Kerning C_63_Kerning[] = { { 0x7f, 0x0001097b } }; static TFM::Kerning C_64_Kerning[] = { { 0x59, 0x0001097b }, { 0x5a, 0xfffef685 }, { 0x66, 0xfffce390 }, { 0x6a, 0xfffded0b }, { 0x7f, 0x00031c70 } }; static TFM::Kerning C_65_Kerning[] = { { 0x7f, 0x0001097b } }; static TFM::Kerning C_66_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 }, { 0x7f, 0x00031c70 } }; static TFM::Kerning C_67_Kerning[] = { { 0x7f, 0x000084bd } }; static TFM::Kerning C_68_Kerning[] = { { 0x7f, 0xffff7b43 } }; static TFM::Kerning C_6a_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 } }; static TFM::Kerning C_6c_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x7f, 0x0001097b } }; static TFM::Kerning C_70_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_71_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_72_Kerning[] = { { 0x3a, 0xfffef685 }, { 0x3b, 0xfffef685 }, { 0x7f, 0x0001097b } }; static TFM::Kerning C_73_Kerning[] = { { 0x7f, 0x0001097b } }; static TFM::Kerning C_74_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_75_Kerning[] = { { 0x7f, 0x000084bd } }; static TFM::Kerning C_76_Kerning[] = { { 0x7f, 0x000084bd } }; static TFM::Kerning C_77_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_78_Kerning[] = { { 0x7f, 0x000084bd } }; static TFM::Kerning C_79_Kerning[] = { { 0x7f, 0x0001097b } }; static TFM::Kerning C_7a_Kerning[] = { { 0x7f, 0x0001097b } }; static TFM::Kerning C_7b_Kerning[] = { { 0x7f, 0x000084bd } }; static TFM::Kerning C_7c_Kerning[] = { { 0x7f, 0x00018e38 } }; static TFM::Kerning C_7d_Kerning[] = { { 0x7f, 0x000212f5 } }; static TFM::Character character[] = { { 0x00, 0x000be1a5, 0x000aeef0, 0x00000000, 0x0000db05, 4, C_00_Kerning, 0, 0 }, { 0x01, 0x001071c0, 0x000aeef0, 0x00000000, 0x00000000, 1, C_01_Kerning, 0, 0 }, { 0x02, 0x000ef1f0, 0x000aeef0, 0x00000000, 0x000084bd, 1, C_02_Kerning, 0, 0 }, { 0x03, 0x000dbf80, 0x000aeef0, 0x00000000, 0x00000000, 1, C_03_Kerning, 0, 0 }, { 0x04, 0x000e84bb, 0x000aeef0, 0x00000000, 0x00006e38, 1, C_04_Kerning, 0, 0 }, { 0x05, 0x000ffe15, 0x000aeef0, 0x00000000, 0x000084bd, 4, C_05_Kerning, 0, 0 }, { 0x06, 0x000f39d3, 0x000aeef0, 0x00000000, 0x0000db05, 1, C_06_Kerning, 0, 0 }, { 0x07, 0x000bc718, 0x000aeef0, 0x00000000, 0x0000db05, 4, C_07_Kerning, 0, 0 }, { 0x08, 0x000d5550, 0x000aeef0, 0x00000000, 0x00000000, 1, C_08_Kerning, 0, 0 }, { 0x09, 0x000c7fc8, 0x000aeef0, 0x00000000, 0x0000d27b, 4, C_09_Kerning, 0, 0 }, { 0x0a, 0x000f22d3, 0x000aeef0, 0x00000000, 0x0000c408, 1, C_0a_Kerning, 0, 0 }, { 0x0b, 0x000cdf48, 0x0006e38d, 0x00000000, 0x00000000, 1, C_0b_Kerning, 0, 0 }, { 0x0c, 0x000b2b25, 0x000b1c73, 0x00031c73, 0x0000d27b, 1, C_0c_Kerning, 0, 0 }, { 0x0d, 0x000a6e88, 0x0006e38d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x00090f2b, 0x000b1c73, 0x00000000, 0x00008dc0, 3, C_0e_Kerning, 0, 0 }, { 0x0f, 0x00085f48, 0x0006e38d, 0x00000000, 0x00000000, 1, C_0f_Kerning, 0, 0 }, { 0x10, 0x000925eb, 0x000b1c73, 0x00031c73, 0x0000f558, 1, C_10_Kerning, 0, 0 }, { 0x11, 0x000a4dbb, 0x0006e38d, 0x00031c73, 0x000092f8, 1, C_11_Kerning, 0, 0 }, { 0x12, 0x000971cb, 0x000b1c73, 0x00000000, 0x000084bd, 1, C_12_Kerning, 0, 0 }, { 0x13, 0x00077685, 0x0006e38d, 0x00000000, 0x00000000, 1, C_13_Kerning, 0, 0 }, { 0x14, 0x000b9c70, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000bc718, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000c0000, 0x0006e38d, 0x00031c73, 0x00000000, 1, C_16_Kerning, 0, 0 }, { 0x17, 0x0009f1c3, 0x0006e38d, 0x00000000, 0x00000f0d, 3, C_17_Kerning, 0, 0 }, { 0x18, 0x000925eb, 0x000b1c73, 0x00031c73, 0x0000709b, 1, C_18_Kerning, 0, 0 }, { 0x19, 0x000ba0b0, 0x0006e38d, 0x00000000, 0x000092f8, 0, 0, 0, 0 }, { 0x1a, 0x000a3960, 0x0006e38d, 0x00031c73, 0x00000000, 1, C_1a_Kerning, 0, 0 }, { 0x1b, 0x000b76fb, 0x0006e38d, 0x00000000, 0x000092f8, 2, C_1b_Kerning, 0, 0 }, { 0x1c, 0x0009501b, 0x0006e38d, 0x00000000, 0x0000c408, 3, C_1c_Kerning, 0, 0 }, { 0x1d, 0x000b0978, 0x0006e38d, 0x00000000, 0x000092f5, 1, C_1d_Kerning, 0, 0 }, { 0x1e, 0x000bdfc3, 0x000b1c73, 0x00031c73, 0x00000000, 1, C_1e_Kerning, 0, 0 }, { 0x1f, 0x000c4718, 0x0006e38d, 0x00031c73, 0x00000000, 1, C_1f_Kerning, 0, 0 }, { 0x20, 0x000d1c6d, 0x000b1c73, 0x00031c73, 0x000092f5, 1, C_20_Kerning, 0, 0 }, { 0x21, 0x000c7a4b, 0x0006e38d, 0x00000000, 0x000092f5, 0, 0, 0, 0 }, { 0x22, 0x00096310, 0x0006e38d, 0x00000000, 0x00000000, 1, C_22_Kerning, 0, 0 }, { 0x23, 0x000c02d5, 0x000b1c73, 0x00000000, 0x00000000, 1, C_23_Kerning, 0, 0 }, { 0x24, 0x00105993, 0x0006e38d, 0x00000000, 0x000084bd, 0, 0, 0, 0 }, { 0x25, 0x000a3960, 0x0006e38d, 0x00031c73, 0x00000000, 1, C_25_Kerning, 0, 0 }, { 0x26, 0x0007ce35, 0x0006e38d, 0x00018e3b, 0x0000709b, 1, C_26_Kerning, 0, 0 }, { 0x27, 0x000cfc30, 0x0006e38d, 0x00031c73, 0x00000000, 1, C_27_Kerning, 0, 0 }, { 0x28, 0x00138e30, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00138e30, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00138e30, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x00138e30, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x000612f5, 0x00081080, 0x00001080, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x000612f5, 0x00081080, 0x00001080, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x000a38e0, 0x000771c8, 0xffff71c8, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000a38e0, 0x000771c8, 0xffff71c8, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000a38e0, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000a38e0, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000a38e0, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000a38e0, 0x0006e38d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000a38e0, 0x0006e38d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000a38e0, 0x0006e38d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000a38e0, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000a38e0, 0x0006e38d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000a38e0, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000a38e0, 0x0006e38d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000612f5, 0x0001ed0b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x000612f5, 0x0001ed0b, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000f6845, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000a38e0, 0x000c0000, 0x00040000, 0x00000000, 6, C_3d_Kerning, 0, 0 }, { 0x3e, 0x000f6845, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000a38e0, 0x000771c8, 0xffff71c8, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000a89f5, 0x000b1c73, 0x00000000, 0x00000000, 1, C_40_Kerning, 0, 0 }, { 0x41, 0x000ec8fb, 0x000aeef0, 0x00000000, 0x00000000, 1, C_41_Kerning, 0, 0 }, { 0x42, 0x000ed32d, 0x000aeef0, 0x00000000, 0x0000c408, 1, C_42_Kerning, 0, 0 }, { 0x43, 0x000e23a0, 0x000aeef0, 0x00000000, 0x00005553, 4, C_43_Kerning, 0, 0 }, { 0x44, 0x000ff8f5, 0x000aeef0, 0x00000000, 0x000084bd, 1, C_44_Kerning, 0, 0 }, { 0x45, 0x000e6570, 0x000aeef0, 0x00000000, 0x0000db05, 1, C_45_Kerning, 0, 0 }, { 0x46, 0x000c6663, 0x000aeef0, 0x00000000, 0x0000db05, 4, C_46_Kerning, 0, 0 }, { 0x47, 0x000f3f20, 0x000aeef0, 0x00000000, 0x00000000, 1, C_47_Kerning, 0, 0 }, { 0x48, 0x000ffe15, 0x000aeef0, 0x00000000, 0x000084bd, 4, C_48_Kerning, 0, 0 }, { 0x49, 0x0008c350, 0x000aeef0, 0x00000000, 0x00008dc0, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000ae7d3, 0x000aeef0, 0x00000000, 0x000092f5, 4, C_4a_Kerning, 0, 0 }, { 0x4b, 0x00106938, 0x000aeef0, 0x00000000, 0x00005553, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000d8a68, 0x000aeef0, 0x00000000, 0x00000000, 1, C_4c_Kerning, 0, 0 }, { 0x4d, 0x001295c8, 0x000aeef0, 0x00000000, 0x000092f8, 4, C_4d_Kerning, 0, 0 }, { 0x4e, 0x000f7958, 0x000aeef0, 0x00000000, 0x000092f8, 5, C_4e_Kerning, 0, 0 }, { 0x4f, 0x000ef1f0, 0x000aeef0, 0x00000000, 0x000084bd, 1, C_4f_Kerning, 0, 0 }, { 0x50, 0x000c7ac5, 0x000aeef0, 0x00000000, 0x0000db05, 4, C_50_Kerning, 0, 0 }, { 0x51, 0x000f76ad, 0x000aeef0, 0x00031c73, 0x00000000, 1, C_51_Kerning, 0, 0 }, { 0x52, 0x000ec10b, 0x000aeef0, 0x00000000, 0x00000f0d, 1, C_52_Kerning, 0, 0 }, { 0x53, 0x000c1b7d, 0x000aeef0, 0x00000000, 0x0000d920, 4, C_53_Kerning, 0, 0 }, { 0x54, 0x000bb2b5, 0x000aeef0, 0x00000000, 0x0000db05, 4, C_54_Kerning, 0, 0 }, { 0x55, 0x000d68d8, 0x000aeef0, 0x00000000, 0x000092f8, 4, C_55_Kerning, 0, 0 }, { 0x56, 0x000bac8d, 0x000aeef0, 0x00000000, 0x0000ed8d, 3, C_56_Kerning, 0, 0 }, { 0x57, 0x00126a2b, 0x000aeef0, 0x00000000, 0x0000db05, 3, C_57_Kerning, 0, 0 }, { 0x58, 0x001005ab, 0x000aeef0, 0x00000000, 0x00008dc0, 5, C_58_Kerning, 0, 0 }, { 0x59, 0x000b9f45, 0x000aeef0, 0x00000000, 0x0000ed8d, 3, C_59_Kerning, 0, 0 }, { 0x5a, 0x000d6755, 0x000aeef0, 0x00000000, 0x00005553, 4, C_5a_Kerning, 0, 0 }, { 0x5b, 0x000825eb, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000825eb, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000825eb, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00138e30, 0x0005b8e5, 0xfffdb8e5, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00138e30, 0x0005b8e5, 0xfffdb8e5, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x00084bdb, 0x000b1c73, 0x00000000, 0x00000000, 1, C_60_Kerning, 0, 0 }, { 0x61, 0x000acc53, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x0008c353, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x0008f240, 0x0006e38d, 0x00000000, 0x00000000, 1, C_63_Kerning, 0, 0 }, { 0x64, 0x000a4795, 0x000b1c73, 0x00000000, 0x00000000, 5, C_64_Kerning, 0, 0 }, { 0x65, 0x00096c90, 0x0006e38d, 0x00000000, 0x00000000, 1, C_65_Kerning, 0, 0 }, { 0x66, 0x00099c70, 0x000b1c73, 0x00031c73, 0x0000a12d, 3, C_66_Kerning, 0, 0 }, { 0x67, 0x0009b955, 0x0006e38d, 0x00031c73, 0x000092f8, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000b9c70, 0x000b1c73, 0x00000000, 0x00000000, 1, C_68_Kerning, 0, 0 }, { 0x69, 0x00072130, 0x000a99bd, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00082f68, 0x000a99bd, 0x00031c73, 0x0000ed8d, 2, C_6a_Kerning, 0, 0 }, { 0x6b, 0x000a92f5, 0x000b1c73, 0x00000000, 0x00005553, 0, 0, 0, 0 }, { 0x6c, 0x00066d0b, 0x000b1c73, 0x00000000, 0x00000000, 1, C_6c_Kerning, 0, 0 }, { 0x6d, 0x00117ffb, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x000c5095, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x0009cccd, 0x0006e38d, 0x00000000, 0x00000000, 1, C_6f_Kerning, 0, 0 }, { 0x70, 0x000a4795, 0x0006e38d, 0x00031c73, 0x00000000, 1, C_70_Kerning, 0, 0 }, { 0x71, 0x000921a5, 0x0006e38d, 0x00031c73, 0x000092f8, 1, C_71_Kerning, 0, 0 }, { 0x72, 0x0009471b, 0x0006e38d, 0x00000000, 0x000084bd, 3, C_72_Kerning, 0, 0 }, { 0x73, 0x00095a13, 0x0006e38d, 0x00000000, 0x00000000, 1, C_73_Kerning, 0, 0 }, { 0x74, 0x0007a12d, 0x0009d75d, 0x00000000, 0x00000000, 1, C_74_Kerning, 0, 0 }, { 0x75, 0x000bcbd8, 0x0006e38d, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x0009fffd, 0x0006e38d, 0x00000000, 0x000092f5, 1, C_76_Kerning, 0, 0 }, { 0x77, 0x000e4aa5, 0x0006e38d, 0x00000000, 0x00006e38, 1, C_77_Kerning, 0, 0 }, { 0x78, 0x000b2aa8, 0x0006e38d, 0x00000000, 0x00000000, 1, C_78_Kerning, 0, 0 }, { 0x79, 0x000a212b, 0x0006e38d, 0x00031c73, 0x000092f8, 1, C_79_Kerning, 0, 0 }, { 0x7a, 0x0009897b, 0x0006e38d, 0x00000000, 0x0000a12d, 1, C_7a_Kerning, 0, 0 }, { 0x7b, 0x00072130, 0x0006e38d, 0x00000000, 0x00000000, 1, C_7b_Kerning, 0, 0 }, { 0x7c, 0x0007aaab, 0x0006e38d, 0x00031c73, 0x00000000, 1, C_7c_Kerning, 0, 0 }, { 0x7d, 0x000c982b, 0x0006e38d, 0x00031c73, 0x00000000, 1, C_7d_Kerning, 0, 0 }, { 0x7e, 0x000a38e0, 0x000b8643, 0x00000000, 0x0000d920, 0, 0, 0, 0 }, { 0x7f, 0x000612f5, 0x000b1c73, 0x00000000, 0x0000f558, 0, 0, 0, 0 } }; void cmmi6_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/msbm9.cc0000644000175000017500000002567710704611262016604 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "MSBM", 0xec, "TeX math symbols", 0x00900000, 0xaa00b561, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x0004ccd0 }, { 0x03, "space_stretch", 0x00026660 }, { 0x04, "space_shrink", 0x000199a0 }, { 0x05, "x_height", 0x0007684c }, { 0x06, "quad", 0x00100000 }, { 0x07, "extra_space", 0x000199a0 }, { 0x08, "num1", 0x000a590b }, { 0x09, "num2", 0x00068e24 }, { 0x0a, "num3", 0x0007327c }, { 0x0b, "denom1", 0x000ada00 }, { 0x0c, "denom2", 0x00056deb }, { 0x0d, "sup1", 0x0007af95 }, { 0x0e, "sup2", 0x0006cc07 }, { 0x0f, "sup3", 0x000497b4 }, { 0x10, "sub1", 0x0001c71c }, { 0x11, "sub2", 0x0002d09e }, { 0x12, "supdrop", 0x0005a134 }, { 0x13, "subdrop", 0x0000e38e }, { 0x14, "delim1", 0x002a7d27 }, { 0x15, "delim2", 0x00102d84 }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Character character[] = { { 0x00, 0x000cca40, 0x000c7740, 0x00046420, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000cca40, 0x000c7740, 0x00046420, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000cca40, 0x000d3007, 0x00052e4b, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000cca40, 0x000d3007, 0x00052e4b, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000cca40, 0x000b8e69, 0x00038e69, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000cca40, 0x000b8e69, 0x00038e69, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000cca40, 0x000b8e69, 0x00038e69, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000cca40, 0x000b8e69, 0x00038e69, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000cca40, 0x000c7740, 0x00046420, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000cca40, 0x000c7740, 0x00046420, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000cca40, 0x000d3007, 0x00052e4b, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000cca40, 0x000d3007, 0x00052e4b, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x000cca40, 0x000a6f37, 0x00026f37, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000cca40, 0x000a6f37, 0x00026f37, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000cca40, 0x000d3007, 0x00052e4b, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000cca40, 0x000d3007, 0x00052e4b, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x000cca40, 0x000c005c, 0x0004005c, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x000cca40, 0x000c005c, 0x0004005c, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000cca40, 0x000c005c, 0x0004005c, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000cca40, 0x000c005c, 0x0004005c, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000cca40, 0x000f21c0, 0x000721c0, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000cca40, 0x000f21c0, 0x000721c0, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000cca40, 0x000c7740, 0x00046420, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000cca40, 0x000c7740, 0x00046420, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x000cca40, 0x000c7740, 0x00048a60, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000cca40, 0x000c7740, 0x00048a60, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000cca40, 0x000c7740, 0x00048a60, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000cca40, 0x000c7740, 0x00048a60, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x000cca40, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000cca40, 0x000d3007, 0x00052e4b, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000e9e00, 0x000b05b0, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000e9e00, 0x000c005c, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x000cca40, 0x000a6f37, 0x00026f37, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x000cca40, 0x000a6f37, 0x00026f37, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x000cca40, 0x000c7740, 0x00046420, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000cca40, 0x000c7740, 0x00046420, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000cca40, 0x000cece4, 0x0004ece4, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000cca40, 0x000cece4, 0x0004ece4, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000cca40, 0x000c7740, 0x00046420, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000cca40, 0x000c7740, 0x00046420, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x000cca40, 0x000a6f37, 0x00026f37, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000cca40, 0x000a6f37, 0x00026f37, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000cca40, 0x000d3007, 0x00052e4b, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000cca40, 0x000d3007, 0x00052e4b, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x000838e0, 0x000c005c, 0x0004005c, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00049160, 0x000c005c, 0x0004005c, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x0003a780, 0x00097ff4, 0x00017ff4, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00066520, 0x00097ff4, 0x00017ff4, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000a0ca0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000be060, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000a0ca0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000be060, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000cca40, 0x000d3007, 0x00052e4b, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000cca40, 0x000d3007, 0x00052e4b, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000cca40, 0x000b8e69, 0x00038e69, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000cca40, 0x000b8e69, 0x00038e69, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x001071c0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x001071c0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x001071c0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x001071c0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x001071c0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x001071c0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000cca40, 0x00097ff4, 0x00017ff4, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000cca40, 0x00097ff4, 0x00017ff4, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000922c0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000b8e39, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x000aaaab, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000b8e39, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000b8e39, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x000aaaab, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x0009c71c, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x000c71c7, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000c71c7, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x000638e4, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4a, 0x00080000, 0x000b05b0, 0x0002aaab, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000c71c7, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x000aaaab, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x000f1c72, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000b8e39, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000c71c7, 0x000b05b0, 0x0002aaab, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x0009c71c, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x000c71c7, 0x000b05b0, 0x0002aaab, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000b8e39, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x0008e38e, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000aaaab, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x000b8e39, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000b8e39, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x00100000, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x000b8e39, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x000b8e39, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x000aaaab, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x001f0fc0, 0x000d3007, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00265ec0, 0x000d3007, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x001f0fc0, 0x000d3007, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00265ec0, 0x000e6664, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000922c0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x000a8190, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000be060, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x000922c0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x000cca40, 0x00079357, 0xffff9357, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x000af680, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00074f00, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000af680, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x000cca40, 0x0008d0c9, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000cca40, 0x0008d0c9, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x000cca40, 0x00097ff4, 0x00017ff4, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x000cca40, 0x00097ff4, 0x00017ff4, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x0003a780, 0x00097ff4, 0x00017ff4, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x00066520, 0x00097ff4, 0x00017ff4, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x000cca40, 0x00097ff4, 0x00017ff4, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x000cca40, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x000cca40, 0x0007e639, 0xffffe639, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x000cca40, 0x00097ff4, 0x00017ff4, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x000cca40, 0x000c7740, 0x00048a60, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000cca40, 0x000c7740, 0x00048a60, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x001071c0, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x001071c0, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x000cca40, 0x00097ff4, 0x00017ff4, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000af680, 0x0006e38e, 0x00000000, 0x0000add4, 0, 0, 0, 0 }, { 0x7c, 0x0008e38e, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x0008e6b4, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x0008e6b4, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00070fcb, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void msbm9_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmmi7.cc0000644000175000017500000004544610704611256016570 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMMI", 0xf0, "TeX math italic", 0x00700000, 0x30659772, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x0012baf2 }, { 0x07, "extra_space", 0x00000000 } }; static TFM::Kerning C_00_Kerning[] = { { 0x3a, 0xfffe0820 }, { 0x3b, 0xfffe0820 }, { 0x3d, 0xffff0410 }, { 0x7f, 0x000179eb } }; static TFM::Kerning C_01_Kerning[] = { { 0x7f, 0x0002f3d7 } }; static TFM::Kerning C_02_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_03_Kerning[] = { { 0x7f, 0x0002f3d7 } }; static TFM::Kerning C_04_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_05_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 }, { 0x3d, 0xffff0410 }, { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_06_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_07_Kerning[] = { { 0x3a, 0xfffe0820 }, { 0x3b, 0xfffe0820 }, { 0x3d, 0xffff0410 }, { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_08_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_09_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 }, { 0x3d, 0xffff0410 }, { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_0a_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_0b_Kerning[] = { { 0x7f, 0x00007df9 } }; static TFM::Kerning C_0c_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_0e_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 }, { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_0f_Kerning[] = { { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_10_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_11_Kerning[] = { { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_12_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_13_Kerning[] = { { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_16_Kerning[] = { { 0x7f, 0x00007df9 } }; static TFM::Kerning C_17_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 }, { 0x7f, 0x00007df9 } }; static TFM::Kerning C_18_Kerning[] = { { 0x7f, 0x0001f7e5 } }; static TFM::Kerning C_1a_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_1b_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 } }; static TFM::Kerning C_1c_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 }, { 0x7f, 0x00007df9 } }; static TFM::Kerning C_1d_Kerning[] = { { 0x7f, 0x00007df9 } }; static TFM::Kerning C_1e_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_1f_Kerning[] = { { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_20_Kerning[] = { { 0x7f, 0x0001f7e5 } }; static TFM::Kerning C_22_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_23_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_25_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_26_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_27_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_3d_Kerning[] = { { 0x01, 0xffff0410 }, { 0x41, 0xffff0410 }, { 0x4d, 0xffff0410 }, { 0x4e, 0xffff0410 }, { 0x59, 0x0000fbf0 }, { 0x5a, 0xffff0410 } }; static TFM::Kerning C_40_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_41_Kerning[] = { { 0x7f, 0x000275de } }; static TFM::Kerning C_42_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_43_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 }, { 0x3d, 0xffff8207 }, { 0x7f, 0x000179eb } }; static TFM::Kerning C_44_Kerning[] = { { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_45_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_46_Kerning[] = { { 0x3a, 0xfffe0820 }, { 0x3b, 0xfffe0820 }, { 0x3d, 0xffff0410 }, { 0x7f, 0x000179eb } }; static TFM::Kerning C_47_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_48_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 }, { 0x3d, 0xffff0410 }, { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_49_Kerning[] = { { 0x7f, 0x0001f7e5 } }; static TFM::Kerning C_4a_Kerning[] = { { 0x3a, 0xfffe0820 }, { 0x3b, 0xfffe0820 }, { 0x3d, 0xffff0410 }, { 0x7f, 0x0002f3d7 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 }, { 0x3d, 0xffff0410 }, { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x7f, 0x00007df9 } }; static TFM::Kerning C_4d_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 }, { 0x3d, 0xffff0410 }, { 0x7f, 0x000179eb } }; static TFM::Kerning C_4e_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 }, { 0x3d, 0xfffe8617 }, { 0x3d, 0xffff8207 }, { 0x7f, 0x000179eb } }; static TFM::Kerning C_4f_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_50_Kerning[] = { { 0x3a, 0xfffe0820 }, { 0x3b, 0xfffe0820 }, { 0x3d, 0xffff0410 }, { 0x7f, 0x000179eb } }; static TFM::Kerning C_51_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_52_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_53_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 }, { 0x3d, 0xffff0410 }, { 0x7f, 0x000179eb } }; static TFM::Kerning C_54_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 }, { 0x3d, 0xffff8207 }, { 0x7f, 0x000179eb } }; static TFM::Kerning C_55_Kerning[] = { { 0x3a, 0xfffe0820 }, { 0x3b, 0xfffe0820 }, { 0x3d, 0xffff0410 }, { 0x7f, 0x00007df9 } }; static TFM::Kerning C_56_Kerning[] = { { 0x3a, 0xfffd0c30 }, { 0x3b, 0xfffd0c30 }, { 0x3d, 0xfffe0820 } }; static TFM::Kerning C_57_Kerning[] = { { 0x3a, 0xfffd0c30 }, { 0x3b, 0xfffd0c30 }, { 0x3d, 0xfffe0820 } }; static TFM::Kerning C_58_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 }, { 0x3d, 0xfffe8617 }, { 0x3d, 0xffff8207 }, { 0x7f, 0x000179eb } }; static TFM::Kerning C_59_Kerning[] = { { 0x3a, 0xfffd0c30 }, { 0x3b, 0xfffd0c30 }, { 0x3d, 0xfffe0820 } }; static TFM::Kerning C_5a_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 }, { 0x3d, 0xffff0410 }, { 0x7f, 0x000179eb } }; static TFM::Kerning C_60_Kerning[] = { { 0x7f, 0x0001f7e5 } }; static TFM::Kerning C_63_Kerning[] = { { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_64_Kerning[] = { { 0x59, 0x0000fbf0 }, { 0x5a, 0xffff0410 }, { 0x66, 0xfffd0c30 }, { 0x6a, 0xfffe0820 }, { 0x7f, 0x0002f3d7 } }; static TFM::Kerning C_65_Kerning[] = { { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_66_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 }, { 0x7f, 0x0002f3d7 } }; static TFM::Kerning C_67_Kerning[] = { { 0x7f, 0x00007df9 } }; static TFM::Kerning C_68_Kerning[] = { { 0x7f, 0xffff8207 } }; static TFM::Kerning C_6a_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 } }; static TFM::Kerning C_6c_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_6f_Kerning[] = { { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_70_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_71_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_72_Kerning[] = { { 0x3a, 0xffff0410 }, { 0x3b, 0xffff0410 }, { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_73_Kerning[] = { { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_74_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_75_Kerning[] = { { 0x7f, 0x00007df9 } }; static TFM::Kerning C_76_Kerning[] = { { 0x7f, 0x00007df9 } }; static TFM::Kerning C_77_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_78_Kerning[] = { { 0x7f, 0x00007df9 } }; static TFM::Kerning C_79_Kerning[] = { { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_7a_Kerning[] = { { 0x7f, 0x0000fbf2 } }; static TFM::Kerning C_7b_Kerning[] = { { 0x7f, 0x00007df9 } }; static TFM::Kerning C_7c_Kerning[] = { { 0x7f, 0x000179eb } }; static TFM::Kerning C_7d_Kerning[] = { { 0x7f, 0x0001f7e5 } }; static TFM::Character character[] = { { 0x00, 0x000b199e, 0x000aeef0, 0x00000000, 0x0000dfe5, 4, C_00_Kerning, 0, 0 }, { 0x01, 0x000f4519, 0x000aeef0, 0x00000000, 0x00000000, 1, C_01_Kerning, 0, 0 }, { 0x02, 0x000de722, 0x000aeef0, 0x00000000, 0x00007df9, 1, C_02_Kerning, 0, 0 }, { 0x03, 0x000cc312, 0x000aeef0, 0x00000000, 0x00000000, 1, C_03_Kerning, 0, 0 }, { 0x04, 0x000d8310, 0x000aeef0, 0x00000000, 0x000062e0, 1, C_04_Kerning, 0, 0 }, { 0x05, 0x000ef84e, 0x000aeef0, 0x00000000, 0x00006e39, 4, C_05_Kerning, 0, 0 }, { 0x06, 0x000e2e57, 0x000aeef0, 0x00000000, 0x0000e11e, 1, C_06_Kerning, 0, 0 }, { 0x07, 0x000ad75e, 0x000aeef0, 0x00000000, 0x0000dfe5, 4, C_07_Kerning, 0, 0 }, { 0x08, 0x000c5147, 0x000aeef0, 0x00000000, 0x00000000, 1, C_08_Kerning, 0, 0 }, { 0x09, 0x000b785e, 0x000aeef0, 0x00000000, 0x0000c769, 4, C_09_Kerning, 0, 0 }, { 0x0a, 0x000e14a5, 0x000aeef0, 0x00000000, 0x0000c769, 1, C_0a_Kerning, 0, 0 }, { 0x0b, 0x000be205, 0x0006e38e, 0x00000000, 0x00000000, 1, C_0b_Kerning, 0, 0 }, { 0x0c, 0x000a5d47, 0x000b1c72, 0x00031c72, 0x0000d27e, 1, C_0c_Kerning, 0, 0 }, { 0x0d, 0x000999e9, 0x0006e38e, 0x00031c72, 0x0000fbf0, 0, 0, 0, 0 }, { 0x0e, 0x00084ed7, 0x000b1c72, 0x00000000, 0x00009485, 3, C_0e_Kerning, 0, 0 }, { 0x0f, 0x00079e49, 0x0006e38e, 0x00000000, 0x00000000, 1, C_0f_Kerning, 0, 0 }, { 0x10, 0x00085147, 0x000b1c72, 0x00031c72, 0x00000000, 1, C_10_Kerning, 0, 0 }, { 0x11, 0x00096ae5, 0x0006e38e, 0x00031c72, 0x000092f7, 1, C_11_Kerning, 0, 0 }, { 0x12, 0x0008b4d2, 0x000b1c72, 0x00000000, 0x00007df9, 1, C_12_Kerning, 0, 0 }, { 0x13, 0x0006c3be, 0x0006e38e, 0x00000000, 0x00000000, 1, C_13_Kerning, 0, 0 }, { 0x14, 0x000ab37e, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000ad762, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000b1d27, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_16_Kerning, 0, 0 }, { 0x17, 0x00092a02, 0x0006e38e, 0x00000000, 0x000014f9, 3, C_17_Kerning, 0, 0 }, { 0x18, 0x00085147, 0x000b1c72, 0x00031c72, 0x00008bae, 1, C_18_Kerning, 0, 0 }, { 0x19, 0x000ab050, 0x0006e38e, 0x00000000, 0x000092f7, 0, 0, 0, 0 }, { 0x1a, 0x00097bc0, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_1a_Kerning, 0, 0 }, { 0x1b, 0x000a9785, 0x0006e38e, 0x00000000, 0x000092f7, 2, C_1b_Kerning, 0, 0 }, { 0x1c, 0x00086dee, 0x0006e38e, 0x00000000, 0x0000d27e, 3, C_1c_Kerning, 0, 0 }, { 0x1d, 0x000a2087, 0x0006e38e, 0x00000000, 0x000092f7, 1, C_1d_Kerning, 0, 0 }, { 0x1e, 0x000afd92, 0x000b1c72, 0x00031c72, 0x00000000, 1, C_1e_Kerning, 0, 0 }, { 0x1f, 0x000b6bb2, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_1f_Kerning, 0, 0 }, { 0x20, 0x000c1867, 0x000b1c72, 0x00031c72, 0x000092f7, 1, C_20_Kerning, 0, 0 }, { 0x21, 0x000b83d0, 0x0006e38e, 0x00000000, 0x000092f7, 0, 0, 0, 0 }, { 0x22, 0x0008a2c0, 0x0006e38e, 0x00000000, 0x00000000, 1, C_22_Kerning, 0, 0 }, { 0x23, 0x000b09a5, 0x000b1c72, 0x00000000, 0x00000000, 1, C_23_Kerning, 0, 0 }, { 0x24, 0x000f3307, 0x0006e38e, 0x00000000, 0x00007df9, 0, 0, 0, 0 }, { 0x25, 0x00097bc0, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_25_Kerning, 0, 0 }, { 0x26, 0x0007071e, 0x0006e38e, 0x00018e39, 0x00007df9, 1, C_26_Kerning, 0, 0 }, { 0x27, 0x000c05b5, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_27_Kerning, 0, 0 }, { 0x28, 0x001238e9, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x001238e9, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x001238e9, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x001238e9, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00056db9, 0x0007e6e5, 0xffffe6e5, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00056db9, 0x0007e6e5, 0xffffe6e5, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x00095d79, 0x000771c7, 0xffff71c7, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00095d79, 0x000771c7, 0xffff71c7, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00095d79, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00095d79, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00095d79, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00095d79, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00095d79, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00095d79, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00095d79, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00095d79, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00095d79, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00095d79, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00056db9, 0x0001d75e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00056db9, 0x0001d75e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000e4929, 0x000935f7, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x00095d79, 0x000c0000, 0x00040000, 0x00000000, 6, C_3d_Kerning, 0, 0 }, { 0x3e, 0x000e4929, 0x000935f7, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00095d79, 0x000771c7, 0xffff71c7, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x0009c2d9, 0x000b1c72, 0x00000000, 0x0000fbf0, 1, C_40_Kerning, 0, 0 }, { 0x41, 0x000dbf02, 0x000aeef0, 0x00000000, 0x00000000, 1, C_41_Kerning, 0, 0 }, { 0x42, 0x000dcf92, 0x000aeef0, 0x00000000, 0x0000c769, 1, C_42_Kerning, 0, 0 }, { 0x43, 0x000d1c37, 0x000aeef0, 0x00000000, 0x000017b7, 4, C_43_Kerning, 0, 0 }, { 0x44, 0x000ef1f5, 0x000aeef0, 0x00000000, 0x00007df9, 1, C_44_Kerning, 0, 0 }, { 0x45, 0x000d6b4b, 0x000aeef0, 0x00000000, 0x0000e11e, 1, C_45_Kerning, 0, 0 }, { 0x46, 0x000b9797, 0x000aeef0, 0x00000000, 0x0000dfe5, 4, C_46_Kerning, 0, 0 }, { 0x47, 0x000e3b17, 0x000aeef0, 0x00000000, 0x00000000, 1, C_47_Kerning, 0, 0 }, { 0x48, 0x000ef84e, 0x000aeef0, 0x00000000, 0x00006e39, 4, C_48_Kerning, 0, 0 }, { 0x49, 0x000819d2, 0x000aeef0, 0x00000000, 0x00008bae, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000a1cdb, 0x000aeef0, 0x00000000, 0x000092f7, 4, C_4a_Kerning, 0, 0 }, { 0x4b, 0x000f5bde, 0x000aeef0, 0x00000000, 0x000017b7, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000c8a2e, 0x000aeef0, 0x00000000, 0x00000000, 1, C_4c_Kerning, 0, 0 }, { 0x4d, 0x00116e25, 0x000aeef0, 0x00000000, 0x00009485, 4, C_4d_Kerning, 0, 0 }, { 0x4e, 0x000e7a55, 0x000aeef0, 0x00000000, 0x00009485, 5, C_4e_Kerning, 0, 0 }, { 0x4f, 0x000de722, 0x000aeef0, 0x00000000, 0x00007df9, 1, C_4f_Kerning, 0, 0 }, { 0x50, 0x000ba329, 0x000aeef0, 0x00000000, 0x0000dfe5, 4, C_50_Kerning, 0, 0 }, { 0x51, 0x000e651b, 0x000aeef0, 0x00031c72, 0x00000000, 1, C_51_Kerning, 0, 0 }, { 0x52, 0x000dc50e, 0x000aeef0, 0x00000000, 0x000014f9, 1, C_52_Kerning, 0, 0 }, { 0x53, 0x000b3950, 0x000aeef0, 0x00000000, 0x0000dfe5, 4, C_53_Kerning, 0, 0 }, { 0x54, 0x000acbcb, 0x000aeef0, 0x00000000, 0x0000dfe5, 4, C_54_Kerning, 0, 0 }, { 0x55, 0x000c7395, 0x000aeef0, 0x00000000, 0x00009485, 4, C_55_Kerning, 0, 0 }, { 0x56, 0x000acb32, 0x000aeef0, 0x00000000, 0x0000ecb2, 3, C_56_Kerning, 0, 0 }, { 0x57, 0x001130c9, 0x000aeef0, 0x00000000, 0x0000dfe5, 3, C_57_Kerning, 0, 0 }, { 0x58, 0x000efd62, 0x000aeef0, 0x00000000, 0x00008bae, 5, C_58_Kerning, 0, 0 }, { 0x59, 0x000abe9b, 0x000aeef0, 0x00000000, 0x0000ecb2, 3, C_59_Kerning, 0, 0 }, { 0x5a, 0x000c743b, 0x000aeef0, 0x00000000, 0x000017b7, 4, C_5a_Kerning, 0, 0 }, { 0x5b, 0x00076599, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00076599, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00076599, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x001238e9, 0x0005b8e5, 0xfffdb8e5, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x001238e9, 0x0005b8e5, 0xfffdb8e5, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x0007a6a0, 0x000b1c72, 0x00000000, 0x00000000, 1, C_60_Kerning, 0, 0 }, { 0x61, 0x0009ea25, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x000809c2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00082b27, 0x0006e38e, 0x00000000, 0x00000000, 1, C_63_Kerning, 0, 0 }, { 0x64, 0x000983e0, 0x000b1c72, 0x00000000, 0x00000000, 5, C_64_Kerning, 0, 0 }, { 0x65, 0x0008ac1b, 0x0006e38e, 0x00000000, 0x00000000, 1, C_65_Kerning, 0, 0 }, { 0x66, 0x0008e9ae, 0x000b1c72, 0x00031c72, 0x0000a7f5, 3, C_66_Kerning, 0, 0 }, { 0x67, 0x0008ead2, 0x0006e38e, 0x00031c72, 0x000092f7, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000ab37e, 0x000b1c72, 0x00000000, 0x00000000, 1, C_68_Kerning, 0, 0 }, { 0x69, 0x0006778b, 0x000a9659, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00079047, 0x000a9659, 0x00031c72, 0x0000ecb2, 2, C_6a_Kerning, 0, 0 }, { 0x6b, 0x0009b78e, 0x000b1c72, 0x00000000, 0x000062e0, 0, 0, 0, 0 }, { 0x6c, 0x0005c7cb, 0x000b1c72, 0x00000000, 0x000017b7, 1, C_6c_Kerning, 0, 0 }, { 0x6d, 0x0010383e, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x000b4c8e, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x000905b2, 0x0006e38e, 0x00000000, 0x00000000, 1, C_6f_Kerning, 0, 0 }, { 0x70, 0x00096c2b, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_70_Kerning, 0, 0 }, { 0x71, 0x000860a9, 0x0006e38e, 0x00031c72, 0x000092f7, 1, C_71_Kerning, 0, 0 }, { 0x72, 0x00087ca2, 0x0006e38e, 0x00000000, 0x00007df9, 3, C_72_Kerning, 0, 0 }, { 0x73, 0x0008a085, 0x0006e38e, 0x00000000, 0x00000000, 1, C_73_Kerning, 0, 0 }, { 0x74, 0x0006e7a2, 0x0009d75e, 0x00000000, 0x00000000, 1, C_74_Kerning, 0, 0 }, { 0x75, 0x000ace97, 0x0006e38e, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x00092497, 0x0006e38e, 0x00000000, 0x000092f7, 1, C_76_Kerning, 0, 0 }, { 0x77, 0x000d3915, 0x0006e38e, 0x00000000, 0x00006e39, 1, C_77_Kerning, 0, 0 }, { 0x78, 0x000a5d79, 0x0006e38e, 0x00000000, 0x00000000, 1, C_78_Kerning, 0, 0 }, { 0x79, 0x0009451b, 0x0006e38e, 0x00031c72, 0x000092f7, 1, C_79_Kerning, 0, 0 }, { 0x7a, 0x0008bba0, 0x0006e38e, 0x00000000, 0x0000a7f5, 1, C_7a_Kerning, 0, 0 }, { 0x7b, 0x000660de, 0x0006e38e, 0x00000000, 0x00000000, 1, C_7b_Kerning, 0, 0 }, { 0x7c, 0x00071250, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_7c_Kerning, 0, 0 }, { 0x7d, 0x000bae8b, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_7d_Kerning, 0, 0 }, { 0x7e, 0x00095d79, 0x000b7feb, 0x00000000, 0x0000e11e, 0, 0, 0, 0 }, { 0x7f, 0x00056db9, 0x000b1c72, 0x00000000, 0x0000fbf0, 0, 0, 0, 0 } }; void cmmi7_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmmi9.cc0000644000175000017500000004544610704611256016572 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMMI", 0xec, "TeX math italic", 0x00900000, 0x35f99e22, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x001071c0 }, { 0x07, "extra_space", 0x00000000 } }; static TFM::Kerning C_00_Kerning[] = { { 0x3a, 0xfffe2c40 }, { 0x3b, 0xfffe2c40 }, { 0x3d, 0xffff1620 }, { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_01_Kerning[] = { { 0x7f, 0x0002bda0 } }; static TFM::Kerning C_02_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_03_Kerning[] = { { 0x7f, 0x0002bda0 } }; static TFM::Kerning C_04_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_05_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 }, { 0x3d, 0xffff1620 }, { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_06_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_07_Kerning[] = { { 0x3a, 0xfffe2c40 }, { 0x3b, 0xfffe2c40 }, { 0x3d, 0xffff1620 }, { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_08_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_09_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 }, { 0x3d, 0xffff1620 }, { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_0a_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x7f, 0x000074f0 } }; static TFM::Kerning C_0c_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_0e_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 }, { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_0f_Kerning[] = { { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_10_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_11_Kerning[] = { { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_12_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_13_Kerning[] = { { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_16_Kerning[] = { { 0x7f, 0x000074f0 } }; static TFM::Kerning C_17_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 }, { 0x7f, 0x000074f0 } }; static TFM::Kerning C_18_Kerning[] = { { 0x7f, 0x0001d3c0 } }; static TFM::Kerning C_1a_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_1b_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 } }; static TFM::Kerning C_1c_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 }, { 0x7f, 0x000074f0 } }; static TFM::Kerning C_1d_Kerning[] = { { 0x7f, 0x000074f0 } }; static TFM::Kerning C_1e_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_1f_Kerning[] = { { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_20_Kerning[] = { { 0x7f, 0x0001d3c0 } }; static TFM::Kerning C_22_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_23_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_25_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_26_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_27_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_3d_Kerning[] = { { 0x01, 0xffff1620 }, { 0x41, 0xffff1620 }, { 0x4d, 0xffff1620 }, { 0x4e, 0xffff1620 }, { 0x59, 0x0000e9e0 }, { 0x5a, 0xffff1620 } }; static TFM::Kerning C_40_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_41_Kerning[] = { { 0x7f, 0x000248b0 } }; static TFM::Kerning C_42_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_43_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 }, { 0x3d, 0xffff8b10 }, { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_44_Kerning[] = { { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_45_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_46_Kerning[] = { { 0x3a, 0xfffe2c40 }, { 0x3b, 0xfffe2c40 }, { 0x3d, 0xffff1620 }, { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_47_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_48_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 }, { 0x3d, 0xffff1620 }, { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_49_Kerning[] = { { 0x7f, 0x0001d3c0 } }; static TFM::Kerning C_4a_Kerning[] = { { 0x3a, 0xfffe2c40 }, { 0x3b, 0xfffe2c40 }, { 0x3d, 0xffff1620 }, { 0x7f, 0x0002bda0 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 }, { 0x3d, 0xffff1620 }, { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x7f, 0x000074f0 } }; static TFM::Kerning C_4d_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 }, { 0x3d, 0xffff1620 }, { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_4e_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 }, { 0x3d, 0xfffea130 }, { 0x3d, 0xffff8b10 }, { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_50_Kerning[] = { { 0x3a, 0xfffe2c40 }, { 0x3b, 0xfffe2c40 }, { 0x3d, 0xffff1620 }, { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_51_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_52_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_53_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 }, { 0x3d, 0xffff1620 }, { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_54_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 }, { 0x3d, 0xffff8b10 }, { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_55_Kerning[] = { { 0x3a, 0xfffe2c40 }, { 0x3b, 0xfffe2c40 }, { 0x3d, 0xffff1620 }, { 0x7f, 0x000074f0 } }; static TFM::Kerning C_56_Kerning[] = { { 0x3a, 0xfffd4260 }, { 0x3b, 0xfffd4260 }, { 0x3d, 0xfffe2c40 } }; static TFM::Kerning C_57_Kerning[] = { { 0x3a, 0xfffd4260 }, { 0x3b, 0xfffd4260 }, { 0x3d, 0xfffe2c40 } }; static TFM::Kerning C_58_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 }, { 0x3d, 0xfffea130 }, { 0x3d, 0xffff8b10 }, { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_59_Kerning[] = { { 0x3a, 0xfffd4260 }, { 0x3b, 0xfffd4260 }, { 0x3d, 0xfffe2c40 } }; static TFM::Kerning C_5a_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 }, { 0x3d, 0xffff1620 }, { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_60_Kerning[] = { { 0x7f, 0x0001d3c0 } }; static TFM::Kerning C_63_Kerning[] = { { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_64_Kerning[] = { { 0x59, 0x0000e9e0 }, { 0x5a, 0xffff1620 }, { 0x66, 0xfffd4260 }, { 0x6a, 0xfffe2c40 }, { 0x7f, 0x0002bda0 } }; static TFM::Kerning C_65_Kerning[] = { { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_66_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 }, { 0x7f, 0x0002bda0 } }; static TFM::Kerning C_67_Kerning[] = { { 0x7f, 0x000074f0 } }; static TFM::Kerning C_68_Kerning[] = { { 0x7f, 0xffff8b10 } }; static TFM::Kerning C_6a_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 } }; static TFM::Kerning C_6c_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_70_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_71_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_72_Kerning[] = { { 0x3a, 0xffff1620 }, { 0x3b, 0xffff1620 }, { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_73_Kerning[] = { { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_74_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_75_Kerning[] = { { 0x7f, 0x000074f0 } }; static TFM::Kerning C_76_Kerning[] = { { 0x7f, 0x000074f0 } }; static TFM::Kerning C_77_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_78_Kerning[] = { { 0x7f, 0x000074f0 } }; static TFM::Kerning C_79_Kerning[] = { { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_7a_Kerning[] = { { 0x7f, 0x0000e9e0 } }; static TFM::Kerning C_7b_Kerning[] = { { 0x7f, 0x000074f0 } }; static TFM::Kerning C_7c_Kerning[] = { { 0x7f, 0x00015ed0 } }; static TFM::Kerning C_7d_Kerning[] = { { 0x7f, 0x0001d3c0 } }; static TFM::Character character[] = { { 0x00, 0x000a0b0c, 0x000aeeee, 0x00000000, 0x0000e8ee, 4, C_00_Kerning, 0, 0 }, { 0x01, 0x000db420, 0x000aeeee, 0x00000000, 0x00000000, 1, C_01_Kerning, 0, 0 }, { 0x02, 0x000c8354, 0x000aeeee, 0x00000000, 0x000074f0, 1, C_02_Kerning, 0, 0 }, { 0x03, 0x000b6ace, 0x000aeeee, 0x00000000, 0x00000000, 1, C_03_Kerning, 0, 0 }, { 0x04, 0x000c2b70, 0x000aeeee, 0x00000000, 0x00006e39, 1, C_04_Kerning, 0, 0 }, { 0x05, 0x000d9a37, 0x000aeeee, 0x00000000, 0x000092f7, 4, C_05_Kerning, 0, 0 }, { 0x06, 0x000cc9a0, 0x000aeeee, 0x00000000, 0x0000e93e, 1, C_06_Kerning, 0, 0 }, { 0x07, 0x000997b0, 0x000aeeee, 0x00000000, 0x0000e8ee, 4, C_07_Kerning, 0, 0 }, { 0x08, 0x000af680, 0x000aeeee, 0x00000000, 0x00000000, 1, C_08_Kerning, 0, 0 }, { 0x09, 0x000a1910, 0x000aeeee, 0x00000000, 0x0000cbee, 4, C_09_Kerning, 0, 0 }, { 0x0a, 0x000cac4e, 0x000aeeee, 0x00000000, 0x0000cbee, 1, C_0a_Kerning, 0, 0 }, { 0x0b, 0x000a89f0, 0x0006e38e, 0x00000000, 0x00000329, 1, C_0b_Kerning, 0, 0 }, { 0x0c, 0x0009446b, 0x000b1c72, 0x00031c72, 0x0000d5a5, 1, C_0c_Kerning, 0, 0 }, { 0x0d, 0x00087e57, 0x0006e38e, 0x00031c72, 0x0000e9e0, 0, 0, 0, 0 }, { 0x0e, 0x00074b35, 0x000b1c72, 0x00000000, 0x00009a64, 3, C_0e_Kerning, 0, 0 }, { 0x0f, 0x0006a98c, 0x0006e38e, 0x00000000, 0x00000000, 1, C_0f_Kerning, 0, 0 }, { 0x10, 0x000735b7, 0x000b1c72, 0x00031c72, 0x000043f4, 1, C_10_Kerning, 0, 0 }, { 0x11, 0x00083609, 0x0006e38e, 0x00031c72, 0x000092f7, 1, C_11_Kerning, 0, 0 }, { 0x12, 0x0007b290, 0x000b1c72, 0x00000000, 0x000074f0, 1, C_12_Kerning, 0, 0 }, { 0x13, 0x0005d22b, 0x0006e38e, 0x00000000, 0x00000000, 1, C_13_Kerning, 0, 0 }, { 0x14, 0x000979ab, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000997b0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x0009e849, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_16_Kerning, 0, 0 }, { 0x17, 0x00081c6e, 0x0006e38e, 0x00000000, 0x00000329, 3, C_17_Kerning, 0, 0 }, { 0x18, 0x000735b7, 0x000b1c72, 0x00031c72, 0x0000afce, 1, C_18_Kerning, 0, 0 }, { 0x19, 0x00096962, 0x0006e38e, 0x00000000, 0x000092f7, 0, 0, 0, 0 }, { 0x1a, 0x00087892, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_1a_Kerning, 0, 0 }, { 0x1b, 0x0009672c, 0x0006e38e, 0x00000000, 0x000092f7, 2, C_1b_Kerning, 0, 0 }, { 0x1c, 0x00073d24, 0x0006e38e, 0x00000000, 0x0000d5a5, 3, C_1c_Kerning, 0, 0 }, { 0x1d, 0x0008e6b4, 0x0006e38e, 0x00000000, 0x000092f7, 1, C_1d_Kerning, 0, 0 }, { 0x1e, 0x0009c9a0, 0x000b1c72, 0x00031c72, 0x00000000, 1, C_1e_Kerning, 0, 0 }, { 0x1f, 0x000a40c7, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_1f_Kerning, 0, 0 }, { 0x20, 0x000aba74, 0x000b1c72, 0x00031c72, 0x000092f7, 1, C_20_Kerning, 0, 0 }, { 0x21, 0x000a3b15, 0x0006e38e, 0x00000000, 0x000092f7, 0, 0, 0, 0 }, { 0x22, 0x0007a247, 0x0006e38e, 0x00000000, 0x00000000, 1, C_22_Kerning, 0, 0 }, { 0x23, 0x0009c077, 0x000b1c72, 0x00000000, 0x00000000, 1, C_23_Kerning, 0, 0 }, { 0x24, 0x000da3d9, 0x0006e38e, 0x00000000, 0x000074f0, 0, 0, 0, 0 }, { 0x25, 0x00087892, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_25_Kerning, 0, 0 }, { 0x26, 0x0005fd9e, 0x0006e38e, 0x00018e39, 0x00007819, 1, C_26_Kerning, 0, 0 }, { 0x27, 0x000abcfb, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_27_Kerning, 0, 0 }, { 0x28, 0x001071c0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x001071c0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x001071c0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x001071c0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00049160, 0x00079357, 0xffff9357, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00049160, 0x00079357, 0xffff9357, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x000838e0, 0x000771c7, 0xffff71c7, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000838e0, 0x000771c7, 0xffff71c7, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000838e0, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000838e0, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000838e0, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000838e0, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000838e0, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000838e0, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000838e0, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000838e0, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000838e0, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000838e0, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00049160, 0x0001ba79, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00049160, 0x0001ba79, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000cca40, 0x0008d0c9, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000838e0, 0x000c0000, 0x00040000, 0x00000000, 6, C_3d_Kerning, 0, 0 }, { 0x3e, 0x000cca40, 0x0008d0c9, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000838e0, 0x000771c7, 0xffff71c7, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x0008b307, 0x000b1c72, 0x00000000, 0x0000e9e0, 1, C_40_Kerning, 0, 0 }, { 0x41, 0x000c54ae, 0x000aeeee, 0x00000000, 0x00000000, 1, C_41_Kerning, 0, 0 }, { 0x42, 0x000c7185, 0x000aeeee, 0x00000000, 0x0000cbee, 1, C_42_Kerning, 0, 0 }, { 0x43, 0x000bbceb, 0x000aeeee, 0x00000000, 0x00001ce0, 4, C_43_Kerning, 0, 0 }, { 0x44, 0x000d8f67, 0x000aeeee, 0x00000000, 0x000074f0, 1, C_44_Kerning, 0, 0 }, { 0x45, 0x000c19e7, 0x000aeeee, 0x00000000, 0x0000e93e, 1, C_45_Kerning, 0, 0 }, { 0x46, 0x000a7ffc, 0x000aeeee, 0x00000000, 0x0000e8ee, 4, C_46_Kerning, 0, 0 }, { 0x47, 0x000ce050, 0x000aeeee, 0x00000000, 0x00000000, 1, C_47_Kerning, 0, 0 }, { 0x48, 0x000d9a37, 0x000aeeee, 0x00000000, 0x000092f7, 4, C_48_Kerning, 0, 0 }, { 0x49, 0x00073030, 0x000aeeee, 0x00000000, 0x000074f0, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x00090f7b, 0x000aeeee, 0x00000000, 0x00009a64, 4, C_4a_Kerning, 0, 0 }, { 0x4b, 0x000ded05, 0x000aeeee, 0x00000000, 0x00001ce0, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000b30a7, 0x000aeeee, 0x00000000, 0x00000000, 1, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000fe2e7, 0x000aeeee, 0x00000000, 0x0000afce, 4, C_4d_Kerning, 0, 0 }, { 0x4e, 0x000d2547, 0x000aeeee, 0x00000000, 0x0000afce, 5, C_4e_Kerning, 0, 0 }, { 0x4f, 0x000c8354, 0x000aeeee, 0x00000000, 0x000074f0, 1, C_4f_Kerning, 0, 0 }, { 0x50, 0x000a7fd4, 0x000aeeee, 0x00000000, 0x0000e8ee, 4, C_50_Kerning, 0, 0 }, { 0x51, 0x000cf844, 0x000aeeee, 0x00031c72, 0x00000000, 1, C_51_Kerning, 0, 0 }, { 0x52, 0x000c712b, 0x000aeeee, 0x00000000, 0x00001ce0, 1, C_52_Kerning, 0, 0 }, { 0x53, 0x000a0bae, 0x000aeeee, 0x00000000, 0x0000e8ee, 4, C_53_Kerning, 0, 0 }, { 0x54, 0x000997d9, 0x000aeeee, 0x00000000, 0x0000e8ee, 4, C_54_Kerning, 0, 0 }, { 0x55, 0x000b2f54, 0x000aeeee, 0x00000000, 0x0000afce, 4, C_55_Kerning, 0, 0 }, { 0x56, 0x00099710, 0x000aeeee, 0x00000000, 0x0000e9e0, 3, C_56_Kerning, 0, 0 }, { 0x57, 0x000f8740, 0x000aeeee, 0x00000000, 0x0000e8ee, 3, C_57_Kerning, 0, 0 }, { 0x58, 0x000d9550, 0x000aeeee, 0x00000000, 0x000074f0, 5, C_58_Kerning, 0, 0 }, { 0x59, 0x00098b5c, 0x000aeeee, 0x00000000, 0x0000e9e0, 3, C_59_Kerning, 0, 0 }, { 0x5a, 0x000b3007, 0x000aeeee, 0x00000000, 0x00001ce0, 4, C_5a_Kerning, 0, 0 }, { 0x5b, 0x00066520, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00066520, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00066520, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x001071c0, 0x0005b8e4, 0xfffdb8e4, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x001071c0, 0x0005b8e4, 0xfffdb8e4, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x0006ca44, 0x000b1c72, 0x00000000, 0x00000000, 1, C_60_Kerning, 0, 0 }, { 0x61, 0x0008b630, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00070c00, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00071e7c, 0x0006e38e, 0x00000000, 0x00000000, 1, C_63_Kerning, 0, 0 }, { 0x64, 0x00088534, 0x000b1c72, 0x00000000, 0x00000000, 5, C_64_Kerning, 0, 0 }, { 0x65, 0x0007a520, 0x0006e38e, 0x00000000, 0x00000000, 1, C_65_Kerning, 0, 0 }, { 0x66, 0x0007fb40, 0x000b1c72, 0x00031c72, 0x0000b0fc, 3, C_66_Kerning, 0, 0 }, { 0x67, 0x0007d75e, 0x0006e38e, 0x00031c72, 0x000092f7, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000979ab, 0x000b1c72, 0x00000000, 0x00000000, 1, C_68_Kerning, 0, 0 }, { 0x69, 0x0005a084, 0x000a8eae, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x0006b8e2, 0x000a8eae, 0x00031c72, 0x00000000, 2, C_6a_Kerning, 0, 0 }, { 0x6b, 0x00088fcb, 0x000b1c72, 0x00000000, 0x00007819, 0, 0, 0, 0 }, { 0x6c, 0x0004e84b, 0x000b1c72, 0x00000000, 0x000043f4, 1, C_6c_Kerning, 0, 0 }, { 0x6d, 0x000e7cd2, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x0009eb72, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x0007f5e0, 0x0006e38e, 0x00000000, 0x00000000, 1, C_6f_Kerning, 0, 0 }, { 0x70, 0x00084142, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_70_Kerning, 0, 0 }, { 0x71, 0x000758f4, 0x0006e38e, 0x00031c72, 0x000092f7, 1, C_71_Kerning, 0, 0 }, { 0x72, 0x00076b74, 0x0006e38e, 0x00000000, 0x000074f0, 3, C_72_Kerning, 0, 0 }, { 0x73, 0x0007a915, 0x0006e38e, 0x00000000, 0x00000000, 1, C_73_Kerning, 0, 0 }, { 0x74, 0x0005f030, 0x0009d75e, 0x00000000, 0x00000000, 1, C_74_Kerning, 0, 0 }, { 0x75, 0x00097682, 0x0006e38e, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x0007fcd4, 0x0006e38e, 0x00000000, 0x000092f7, 1, C_76_Kerning, 0, 0 }, { 0x77, 0x000bc912, 0x0006e38e, 0x00000000, 0x00006e39, 1, C_77_Kerning, 0, 0 }, { 0x78, 0x0009522b, 0x0006e38e, 0x00000000, 0x00000000, 1, C_78_Kerning, 0, 0 }, { 0x79, 0x00081945, 0x0006e38e, 0x00031c72, 0x000092f7, 1, C_79_Kerning, 0, 0 }, { 0x7a, 0x0007a5eb, 0x0006e38e, 0x00000000, 0x0000b0fc, 1, C_7a_Kerning, 0, 0 }, { 0x7b, 0x00055a12, 0x0006e38e, 0x00000000, 0x00000000, 1, C_7b_Kerning, 0, 0 }, { 0x7c, 0x000643f2, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_7c_Kerning, 0, 0 }, { 0x7d, 0x000a73d2, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_7d_Kerning, 0, 0 }, { 0x7e, 0x000838e0, 0x000b72eb, 0x00000000, 0x0000e93e, 0, 0, 0, 0 }, { 0x7f, 0x00049160, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmmi9_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmsy8.cc0000644000175000017500000003162110704611260016600 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMSY", 0xee, "TeX math symbols", 0x00800000, 0xbe4bc80b, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x00110010 }, { 0x07, "extra_space", 0x00000000 }, { 0x08, "num1", 0x000b242c }, { 0x09, "num2", 0x00068a94 }, { 0x0a, "num3", 0x000751b0 }, { 0x0b, "denom1", 0x000bfc5a }, { 0x0c, "denom2", 0x00064650 }, { 0x0d, "sup1", 0x0006a58c }, { 0x0e, "sup2", 0x0005a58c }, { 0x0f, "sup3", 0x00048e38 }, { 0x10, "sub1", 0x00020000 }, { 0x11, "sub2", 0x00040000 }, { 0x12, "supdrop", 0x00065556 }, { 0x13, "subdrop", 0x00010000 }, { 0x14, "delim1", 0x0017cccc }, { 0x15, "delim2", 0x00123334 }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Kerning C_41_Kerning[] = { { 0x30, 0x00034e3c } }; static TFM::Kerning C_42_Kerning[] = { { 0x30, 0x00025c74 } }; static TFM::Kerning C_43_Kerning[] = { { 0x30, 0x00025c74 } }; static TFM::Kerning C_44_Kerning[] = { { 0x30, 0x00016aac } }; static TFM::Kerning C_45_Kerning[] = { { 0x30, 0x0001e390 } }; static TFM::Kerning C_46_Kerning[] = { { 0x30, 0x0001e390 } }; static TFM::Kerning C_47_Kerning[] = { { 0x30, 0x0001e390 } }; static TFM::Kerning C_48_Kerning[] = { { 0x30, 0x0001e390 } }; static TFM::Kerning C_49_Kerning[] = { { 0x30, 0x000078e4 } }; static TFM::Kerning C_4a_Kerning[] = { { 0x30, 0x0002d558 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x30, 0x0000f1c8 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x30, 0x00025c74 } }; static TFM::Kerning C_4d_Kerning[] = { { 0x30, 0x00025c74 } }; static TFM::Kerning C_4e_Kerning[] = { { 0x30, 0x00016aac } }; static TFM::Kerning C_4f_Kerning[] = { { 0x30, 0x0001e390 } }; static TFM::Kerning C_50_Kerning[] = { { 0x30, 0x00016aac } }; static TFM::Kerning C_51_Kerning[] = { { 0x30, 0x0001e390 } }; static TFM::Kerning C_52_Kerning[] = { { 0x30, 0x00016aac } }; static TFM::Kerning C_53_Kerning[] = { { 0x30, 0x00025c74 } }; static TFM::Kerning C_54_Kerning[] = { { 0x30, 0x000078e4 } }; static TFM::Kerning C_55_Kerning[] = { { 0x30, 0x00016aac } }; static TFM::Kerning C_56_Kerning[] = { { 0x30, 0x000078e4 } }; static TFM::Kerning C_57_Kerning[] = { { 0x30, 0x00016aac } }; static TFM::Kerning C_58_Kerning[] = { { 0x30, 0x00025c74 } }; static TFM::Kerning C_59_Kerning[] = { { 0x30, 0x00016aac } }; static TFM::Kerning C_5a_Kerning[] = { { 0x30, 0x00025c74 } }; static TFM::Character character[] = { { 0x00, 0x000d38f0, 0x0009aab0, 0x0001aab0, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x0004b8e8, 0x00074e3c, 0xffff4e3c, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000d38f0, 0x0009aab0, 0x0001aab0, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x00088008, 0x000771c8, 0xffff71c8, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000d38f0, 0x0009aab0, 0x0001aab0, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x00088008, 0x00074e3c, 0xffff4e3c, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000d38f0, 0x0009aab0, 0x0001aab0, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000d38f0, 0x0009aab0, 0x0001aab0, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000d38f0, 0x0009aab0, 0x0001aab0, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000d38f0, 0x0009aab0, 0x0001aab0, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000d38f0, 0x0009aab0, 0x0001aab0, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000d38f0, 0x0009aab0, 0x0001aab0, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x000d38f0, 0x0009aab0, 0x0001aab0, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x00110010, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x00088008, 0x00074e3c, 0xffff4e3c, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x00088008, 0x00074e3c, 0xffff4e3c, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x000d38f0, 0x0007bc4e, 0xffffbc4e, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x000d38f0, 0x0007bc4e, 0xffffbc4e, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000d38f0, 0x000ab2a2, 0x0002b2a2, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000d38f0, 0x000ab2a2, 0x0002b2a2, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000d38f0, 0x000ab2a2, 0x0002b2a2, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000d38f0, 0x000ab2a2, 0x0002b2a2, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000d38f0, 0x000ab2a2, 0x0002b2a2, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000d38f0, 0x000ab2a2, 0x0002b2a2, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x000d38f0, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000d38f0, 0x000812b6, 0x000012b6, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000d38f0, 0x00090290, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000d38f0, 0x00090290, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00110010, 0x00090290, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x00110010, 0x00090290, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000d38f0, 0x00090290, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000d38f0, 0x00090290, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00110010, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x00110010, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x00088008, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x00088008, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00110010, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x00110010, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x00110010, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000d38f0, 0x0007bc4e, 0xffffbc4e, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x00110010, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00110010, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000a6398, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000a6398, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00110010, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00110010, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x00110010, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000d38f0, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00049c72, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00110010, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000b5560, 0x00090290, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000b5560, 0x00090290, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000f1c80, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000f1c80, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00000000, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00000000, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000971d0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000971d0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000b5560, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00088008, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000c4728, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000c4728, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000d38f0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000d38f0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000a6398, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000d975c, 0x000aeeee, 0x00000000, 0x00000000, 1, C_41_Kerning, 0, 0 }, { 0x42, 0x000b1d56, 0x000aeeee, 0x00000000, 0x00006e7e, 1, C_42_Kerning, 0, 0 }, { 0x43, 0x0009009a, 0x000aeeee, 0x00000000, 0x0000dae4, 1, C_43_Kerning, 0, 0 }, { 0x44, 0x000d25e2, 0x000aeeee, 0x00000000, 0x000078e4, 1, C_44_Kerning, 0, 0 }, { 0x45, 0x0008f8ec, 0x000aeeee, 0x00000000, 0x00016244, 1, C_45_Kerning, 0, 0 }, { 0x46, 0x000c2228, 0x000aeeee, 0x00000000, 0x00019a50, 1, C_46_Kerning, 0, 0 }, { 0x47, 0x000a1880, 0x000aeeee, 0x00018e3a, 0x0000ec3a, 1, C_47_Kerning, 0, 0 }, { 0x48, 0x000e77ce, 0x000aeeee, 0x00000000, 0x000004d8, 1, C_48_Kerning, 0, 0 }, { 0x49, 0x00095e2e, 0x000aeeee, 0x00000000, 0x000116c4, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000b85bc, 0x000aeeee, 0x00018e3a, 0x00000000, 1, C_4a_Kerning, 0, 0 }, { 0x4b, 0x000ceb4c, 0x000aeeee, 0x00000000, 0x00001be0, 1, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000bb0f6, 0x000aeeee, 0x00000000, 0x00000000, 1, C_4c_Kerning, 0, 0 }, { 0x4d, 0x00143b7a, 0x000aeeee, 0x00000000, 0x00000000, 1, C_4d_Kerning, 0, 0 }, { 0x4e, 0x000de7de, 0x000aeeee, 0x00000000, 0x000262b4, 1, C_4e_Kerning, 0, 0 }, { 0x4f, 0x000d773a, 0x000aeeee, 0x00000000, 0x000078e4, 1, C_4f_Kerning, 0, 0 }, { 0x50, 0x000be49a, 0x000aeeee, 0x00000000, 0x00015456, 1, C_50_Kerning, 0, 0 }, { 0x51, 0x000de230, 0x000aeeee, 0x00018e3a, 0x00000000, 1, C_51_Kerning, 0, 0 }, { 0x52, 0x000e829e, 0x000aeeee, 0x00000000, 0x00000000, 1, C_52_Kerning, 0, 0 }, { 0x53, 0x000a4b6a, 0x000aeeee, 0x00000000, 0x00012c26, 1, C_53_Kerning, 0, 0 }, { 0x54, 0x00096190, 0x000aeeee, 0x00000000, 0x000004d8, 1, C_54_Kerning, 0, 0 }, { 0x55, 0x000a9ae6, 0x000aeeee, 0x00000000, 0x00019a50, 1, C_55_Kerning, 0, 0 }, { 0x56, 0x000a7fc4, 0x000aeeee, 0x00000000, 0x00015456, 1, C_56_Kerning, 0, 0 }, { 0x57, 0x0010dfca, 0x000aeeee, 0x00000000, 0x00015456, 1, C_57_Kerning, 0, 0 }, { 0x58, 0x000c1a0c, 0x000aeeee, 0x00000000, 0x000257c6, 1, C_58_Kerning, 0, 0 }, { 0x59, 0x000b4b22, 0x000aeeee, 0x00018e3a, 0x00015456, 1, C_59_Kerning, 0, 0 }, { 0x5a, 0x000c37cc, 0x000aeeee, 0x00000000, 0x0001483e, 1, C_5a_Kerning, 0, 0 }, { 0x5b, 0x000b5560, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000b5560, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000b5560, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000b5560, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000b5560, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000a6398, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x000a6398, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00078e40, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00078e40, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00078e40, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00078e40, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x00088008, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x00088008, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x00069c78, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x00069c78, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x0004b8e8, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x00088008, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x00088008, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000a6398, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x00088008, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x0004b8e8, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x000e2ab8, 0x0000b852, 0x000f47ae, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x000cbbc8, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x000e2ab8, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x000718ea, 0x000b1c72, 0x00031c72, 0x0001e390, 0, 0, 0, 0 }, { 0x74, 0x000b5560, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x000b5560, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x000d38f0, 0x000ab2a2, 0x0002b2a2, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000d38f0, 0x000ab2a2, 0x0002b2a2, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x00078e40, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00078e40, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x00078e40, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000a6398, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x000d38f0, 0x000b1c72, 0x000212f6, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x000d38f0, 0x000b1c72, 0x000212f6, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000d38f0, 0x000b1c72, 0x000212f6, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000d38f0, 0x000b1c72, 0x000212f6, 0x00000000, 0, 0, 0, 0 } }; void cmsy8_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/msam9.cc0000644000175000017500000002567710704611261016602 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "MSAM", 0xec, "TeX math symbols", 0x00900000, 0xd3b18c07, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x001071c0 }, { 0x07, "extra_space", 0x00000000 }, { 0x08, "num1", 0x000a590b }, { 0x09, "num2", 0x00068e24 }, { 0x0a, "num3", 0x0007327c }, { 0x0b, "denom1", 0x000ada00 }, { 0x0c, "denom2", 0x00056deb }, { 0x0d, "sup1", 0x0007af95 }, { 0x0e, "sup2", 0x0006cc07 }, { 0x0f, "sup3", 0x000497b4 }, { 0x10, "sub1", 0x0001c71c }, { 0x11, "sub2", 0x0002d09e }, { 0x12, "supdrop", 0x0005a134 }, { 0x13, "subdrop", 0x0000e38e }, { 0x14, "delim1", 0x002a7d27 }, { 0x15, "delim2", 0x00102d84 }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Character character[] = { { 0x00, 0x000cca40, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000cca40, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000cca40, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000cca40, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000cca40, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x00049160, 0x0008da2c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000af680, 0x000b1732, 0x0001d3c0, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000af680, 0x000b1732, 0x0001d3c0, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000cca40, 0x00095d04, 0x000181c0, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000cca40, 0x00095d04, 0x000181c0, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x001071c0, 0x0008648c, 0x00004919, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x001071c0, 0x0008648c, 0x00004919, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x000cca40, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000be060, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000e9e00, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000a0ca0, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x001071c0, 0x0008648c, 0x00004919, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x001071c0, 0x0008648c, 0x00004919, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x001071c0, 0x000b1732, 0x0002f3c7, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x001071c0, 0x000b1732, 0x0002f3c7, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000db420, 0x000b1732, 0x00032932, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000db420, 0x000b1732, 0x00032932, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x0006da10, 0x000b1732, 0x00032932, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x0006da10, 0x000b1732, 0x00032932, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x0006da10, 0x000b1732, 0x00032932, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x0006da10, 0x000b1732, 0x00032932, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x00124580, 0x0008648c, 0x00004919, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x00124580, 0x0008648c, 0x00004919, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x001071c0, 0x000b1732, 0x0002f3c7, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x001071c0, 0x000b1732, 0x0002f3c7, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000838e0, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000838e0, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x001071c0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x0016d6e0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x001071c0, 0x0008da2c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x001071c0, 0x0008da2c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000cca40, 0x000bff4e, 0x0003ff4e, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000cca40, 0x000bff4e, 0x0003ff4e, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000cca40, 0x000bff4e, 0x0003ff4e, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000cca40, 0x000c7740, 0x00047740, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x00124580, 0x0008da2c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000af680, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000af680, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000cca40, 0x00095d04, 0x000181c0, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x000cca40, 0x000ec7a0, 0x000181c0, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x000cca40, 0x000bff4e, 0x0003ff4e, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x000cca40, 0x000bff4e, 0x0003ff4e, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000cca40, 0x000c7740, 0x00047740, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000cca40, 0x000a64d5, 0x00026cc5, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000cca40, 0x000a64d5, 0x00026cc5, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000cca40, 0x000a64d5, 0x00026cc5, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000cca40, 0x000a64d5, 0x00026cc5, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000cca40, 0x000a64d5, 0x00026cc5, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000cca40, 0x000c7740, 0x00047740, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000cca40, 0x000a64d5, 0x00026cc5, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000cca40, 0x000b1732, 0x00032932, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00047819, 0x0008da2c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000838e0, 0x00078cb7, 0xffff8cb7, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000cca40, 0x00095d04, 0x000181c0, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x000cca40, 0x00095d04, 0x000181c0, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000cca40, 0x000a64d5, 0x00026cc5, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000cca40, 0x000c7740, 0x00047740, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000cca40, 0x000a64d5, 0x00026cc5, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000cca40, 0x000b1732, 0x00032932, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000cca40, 0x0008da2c, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000cca40, 0x0008da2c, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x000cca40, 0x0008da2c, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000cca40, 0x0008da2c, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000cca40, 0x000a64d5, 0x00026cc5, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x000cca40, 0x000a64d5, 0x00026cc5, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000f22c4, 0x000b1732, 0x00032932, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x000838e0, 0x000bff4e, 0x0003ff4e, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000ba130, 0x0008da2c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x000cca40, 0x0008da2c, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x4a, 0x000cca40, 0x0008da2c, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000838e0, 0x00078cb7, 0xffff8cb7, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x000838e0, 0x00078cb7, 0xffff8cb7, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x000ba130, 0x0008da2c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000ba130, 0x0008da2c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000ba130, 0x0008da2c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x000cca40, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x000cca40, 0x000ec7a0, 0x000698c0, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000cca40, 0x000ec7a0, 0x000698c0, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x000cca40, 0x00103730, 0x00083730, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000cca40, 0x00103730, 0x00083730, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x000c54ae, 0x000b1732, 0x00000000, 0x0000693e, 0, 0, 0, 0 }, { 0x56, 0x001071c0, 0x000a64d5, 0x00026cc5, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x001071c0, 0x000a64d5, 0x00026cc5, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x000db420, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x000a0ca0, 0x000b1732, 0x00032932, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x000a0ca0, 0x000b1732, 0x00032932, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x000a0ca0, 0x000bff4e, 0x00032932, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000be060, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000be060, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000be060, 0x0008648c, 0x00008000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000cca40, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000cca40, 0x000b1732, 0x00032932, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x000cca40, 0x000b1732, 0x00032932, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x000cca40, 0x0008da2c, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x000cca40, 0x0008da2c, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x000af680, 0x0008da2c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x000af680, 0x0008da2c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000c9c1e, 0x0008da2c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x000c9c1e, 0x0008da2c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x000cca40, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x000cca40, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x000cca40, 0x000c7740, 0x00047740, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000cca40, 0x000c7740, 0x00047740, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x000cca40, 0x00095d04, 0x000131c7, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000cca40, 0x00095d04, 0x000131c7, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x0015ed00, 0x0008da2c, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x0015ed00, 0x0008da2c, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x000838e0, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x000838e0, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x000f61eb, 0x000b1732, 0x00026cc5, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x000eaa9c, 0x000b1732, 0x00026cc5, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x000af680, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x000cca40, 0x000b4f00, 0x000181c0, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x000cca40, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000cca40, 0x00078cb7, 0xffff8cb7, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x000838e0, 0x00066520, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x000838e0, 0x00066520, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x000db420, 0x000b1732, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000838e0, 0x000d3339, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x000922c0, 0x0006e38e, 0x00032932, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x000cca40, 0x00095d04, 0x000181c0, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000cca40, 0x00095d04, 0x000181c0, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000cca40, 0x00095d04, 0x000181c0, 0x00000000, 0, 0, 0, 0 } }; void msam9_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmti12.cc0000644000175000017500000004140610704611260016636 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMTI", 0xe6, "TeX text", 0x00c00000, 0x9bbb8840, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x0005999d }, { 0x03, "space_stretch", 0x00026668 }, { 0x04, "space_shrink", 0x0001999b }, { 0x05, "x_height", 0x0006e38f }, { 0x06, "quad", 0x0010000b }, { 0x07, "extra_space", 0x0001999b } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x0001a7d4 }, { 0x27, 0x0001a7d4 }, { 0x29, 0x0001a7d4 }, { 0x3f, 0x0001a7d4 }, { 0x5d, 0x0001a7d4 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffafc31 }, { 0x6c, 0xfffbfffd } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001999b }, { 0x3f, 0x0001999b } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff9999 }, { 0x47, 0xffff9999 }, { 0x4f, 0xffff9999 }, { 0x51, 0xffff9999 }, { 0x54, 0xfffecccc }, { 0x55, 0xffff9999 }, { 0x56, 0xfffe6665 }, { 0x57, 0xfffe6665 }, { 0x59, 0xfffecccc }, { 0x61, 0xffff3333 }, { 0x62, 0xffff9999 }, { 0x63, 0xffff3333 }, { 0x64, 0xffff3333 }, { 0x65, 0xffff3333 }, { 0x67, 0xffff3333 }, { 0x68, 0xffff9999 }, { 0x69, 0xffff9999 }, { 0x6b, 0xffff9999 }, { 0x6c, 0xffff9999 }, { 0x6d, 0xffff9999 }, { 0x6e, 0xffff9999 }, { 0x6f, 0xffff3333 }, { 0x71, 0xffff3333 }, { 0x72, 0xffff9999 }, { 0x74, 0xffff9999 }, { 0x75, 0xffff9999 }, { 0x76, 0xffff9999 }, { 0x77, 0xffff9999 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff9999 }, { 0x56, 0xffff9999 }, { 0x57, 0xffff9999 }, { 0x58, 0xffff9999 }, { 0x59, 0xffff9999 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffe6665 }, { 0x43, 0xffff9999 }, { 0x47, 0xffff9999 }, { 0x4f, 0xffff9999 }, { 0x51, 0xffff9999 }, { 0x61, 0xfffecccc }, { 0x65, 0xfffecccc }, { 0x6f, 0xfffecccc }, { 0x72, 0xfffecccc }, { 0x75, 0xfffecccc } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff9999 }, { 0x47, 0xffff9999 }, { 0x4f, 0xffff9999 }, { 0x51, 0xffff9999 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffecccc }, { 0x56, 0xfffe6665 }, { 0x57, 0xfffe6665 }, { 0x59, 0xfffecccc }, { 0x61, 0xffff3333 }, { 0x63, 0xffff3333 }, { 0x64, 0xffff3333 }, { 0x65, 0xffff3333 }, { 0x67, 0xffff3333 }, { 0x6f, 0xffff3333 }, { 0x71, 0xffff3333 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff9999 }, { 0x56, 0xffff9999 }, { 0x57, 0xffff9999 }, { 0x58, 0xffff9999 }, { 0x59, 0xffff9999 } }; static TFM::Kerning C_50_Kerning[] = { { 0x41, 0xfffecccc } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff9999 }, { 0x47, 0xffff9999 }, { 0x4f, 0xffff9999 }, { 0x51, 0xffff9999 }, { 0x54, 0xfffecccc }, { 0x55, 0xffff9999 }, { 0x56, 0xfffe6665 }, { 0x57, 0xfffe6665 }, { 0x59, 0xfffecccc }, { 0x61, 0xffff3333 }, { 0x62, 0xffff9999 }, { 0x63, 0xffff3333 }, { 0x64, 0xffff3333 }, { 0x65, 0xffff3333 }, { 0x67, 0xffff3333 }, { 0x68, 0xffff9999 }, { 0x69, 0xffff9999 }, { 0x6b, 0xffff9999 }, { 0x6c, 0xffff9999 }, { 0x6d, 0xffff9999 }, { 0x6e, 0xffff9999 }, { 0x6f, 0xffff3333 }, { 0x71, 0xffff3333 }, { 0x72, 0xffff9999 }, { 0x74, 0xffff9999 }, { 0x75, 0xffff9999 }, { 0x76, 0xffff9999 }, { 0x77, 0xffff9999 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffecccc }, { 0x61, 0xfffecccc }, { 0x65, 0xfffecccc }, { 0x6f, 0xfffecccc }, { 0x72, 0xfffecccc }, { 0x75, 0xfffecccc }, { 0x79, 0xfffecccc } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffe6665 }, { 0x43, 0xffff9999 }, { 0x47, 0xffff9999 }, { 0x4f, 0xffff9999 }, { 0x51, 0xffff9999 }, { 0x61, 0xfffecccc }, { 0x65, 0xfffecccc }, { 0x6f, 0xfffecccc }, { 0x72, 0xfffecccc }, { 0x75, 0xfffecccc } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffecccc } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff9999 }, { 0x47, 0xffff9999 }, { 0x4f, 0xffff9999 }, { 0x51, 0xffff9999 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffecccc }, { 0x61, 0xfffecccc }, { 0x65, 0xfffecccc }, { 0x6f, 0xfffecccc }, { 0x72, 0xfffecccc }, { 0x75, 0xfffecccc } }; static TFM::Kerning C_62_Kerning[] = { { 0x61, 0xffff3333 }, { 0x63, 0xffff3333 }, { 0x64, 0xffff3333 }, { 0x65, 0xffff3333 }, { 0x67, 0xffff3333 }, { 0x6f, 0xffff3333 }, { 0x71, 0xffff3333 } }; static TFM::Kerning C_63_Kerning[] = { { 0x61, 0xffff3333 }, { 0x63, 0xffff3333 }, { 0x64, 0xffff3333 }, { 0x65, 0xffff3333 }, { 0x67, 0xffff3333 }, { 0x6f, 0xffff3333 }, { 0x71, 0xffff3333 } }; static TFM::Kerning C_64_Kerning[] = { { 0x6c, 0x0000cccd } }; static TFM::Kerning C_65_Kerning[] = { { 0x61, 0xffff3333 }, { 0x63, 0xffff3333 }, { 0x64, 0xffff3333 }, { 0x65, 0xffff3333 }, { 0x67, 0xffff3333 }, { 0x6f, 0xffff3333 }, { 0x71, 0xffff3333 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x0001a7d4 }, { 0x27, 0x0001a7d4 }, { 0x29, 0x0001a7d4 }, { 0x3f, 0x0001a7d4 }, { 0x5d, 0x0001a7d4 } }; static TFM::Kerning C_6c_Kerning[] = { { 0x6c, 0x0000cccd } }; static TFM::Kerning C_6e_Kerning[] = { { 0x27, 0xfffe6665 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x61, 0xffff3333 }, { 0x63, 0xffff3333 }, { 0x64, 0xffff3333 }, { 0x65, 0xffff3333 }, { 0x67, 0xffff3333 }, { 0x6f, 0xffff3333 }, { 0x71, 0xffff3333 } }; static TFM::Kerning C_70_Kerning[] = { { 0x61, 0xffff3333 }, { 0x63, 0xffff3333 }, { 0x64, 0xffff3333 }, { 0x65, 0xffff3333 }, { 0x67, 0xffff3333 }, { 0x6f, 0xffff3333 }, { 0x71, 0xffff3333 } }; static TFM::Kerning C_72_Kerning[] = { { 0x61, 0xffff3333 }, { 0x63, 0xffff3333 }, { 0x64, 0xffff3333 }, { 0x65, 0xffff3333 }, { 0x67, 0xffff3333 }, { 0x6f, 0xffff3333 }, { 0x71, 0xffff3333 } }; static TFM::Kerning C_77_Kerning[] = { { 0x6c, 0x0000cccd } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x0009d09f, 0x000aeeef, 0x00000000, 0x0001127c, 0, 0, 0, 0 }, { 0x01, 0x000cccd5, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000c0008, 0x000aeeef, 0x00000000, 0x0000e667, 0, 0, 0, 0 }, { 0x03, 0x000ad46b, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000a666d, 0x000aeeef, 0x00000000, 0x00009999, 0, 0, 0, 0 }, { 0x05, 0x000ba138, 0x000aeeef, 0x00000000, 0x00009a8c, 0, 0, 0, 0 }, { 0x06, 0x000b333b, 0x000aeeef, 0x00000000, 0x0000fac8, 0, 0, 0, 0 }, { 0x07, 0x000c0008, 0x000aeeef, 0x00000000, 0x00009999, 0, 0, 0, 0 }, { 0x08, 0x000b333b, 0x000aeeef, 0x00000000, 0x0000f778, 0, 0, 0, 0 }, { 0x09, 0x000c0008, 0x000aeeef, 0x00000000, 0x00009999, 0, 0, 0, 0 }, { 0x0a, 0x000b333b, 0x000aeeef, 0x00000000, 0x0001127c, 0, 0, 0, 0 }, { 0x0b, 0x000999a0, 0x000b1c71, 0x00031c71, 0x00010da5, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x0008ccd4, 0x000b1c71, 0x00031c71, 0x00013240, 0, 0, 0, 0 }, { 0x0d, 0x0009333b, 0x000b1c71, 0x00031c71, 0x00013240, 0, 0, 0, 0 }, { 0x0e, 0x000dccd8, 0x000b1c71, 0x00031c71, 0x00013240, 0, 0, 0, 0 }, { 0x0f, 0x000e000b, 0x000b1c71, 0x00031c71, 0x00013240, 0, 0, 0, 0 }, { 0x10, 0x0004ccd0, 0x0006e38f, 0x00000000, 0x00013241, 0, 0, 0, 0 }, { 0x11, 0x00053337, 0x0006e38f, 0x00031c71, 0x00009a8c, 0, 0, 0, 0 }, { 0x12, 0x00080005, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00080005, 0x000b1c71, 0x00000000, 0x0000fac8, 0, 0, 0, 0 }, { 0x14, 0x00080005, 0x000a0e39, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00080005, 0x000b1c71, 0x00000000, 0x0000760c, 0, 0, 0, 0 }, { 0x16, 0x00080005, 0x000905b0, 0x00000000, 0x00012d83, 0, 0, 0, 0 }, { 0x17, 0x000d0984, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00073338, 0x00000000, 0x0002b8e3, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x0008666c, 0x000b1c71, 0x00031c71, 0x0001527d, 0, 0, 0, 0 }, { 0x1a, 0x000b333b, 0x0006e38f, 0x00000000, 0x00013240, 0, 0, 0, 0 }, { 0x1b, 0x000b333b, 0x0006e38f, 0x00000000, 0x00013240, 0, 0, 0, 0 }, { 0x1c, 0x00080005, 0x000871c8, 0x00018e39, 0x0000a665, 0, 0, 0, 0 }, { 0x1d, 0x000dd0a1, 0x000aeeef, 0x00000000, 0x0000fac8, 0, 0, 0, 0 }, { 0x1e, 0x000f6a3c, 0x000aeeef, 0x00000000, 0x0000fac8, 0, 0, 0, 0 }, { 0x1f, 0x000c0008, 0x000bb60b, 0x0000c71c, 0x0000e667, 0, 0, 0, 0 }, { 0x20, 0x00040003, 0x0006e38f, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x0004ccd0, 0x000b1c71, 0x00000000, 0x00010b29, 0, 0, 1, C_21_Ligature }, { 0x22, 0x00080005, 0x000b1c71, 0x00000000, 0x00010da5, 0, 0, 0, 0 }, { 0x23, 0x000cccd5, 0x000b1c71, 0x00031c70, 0x00010b29, 0, 0, 0, 0 }, { 0x24, 0x000c155c, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000cccd5, 0x000c0000, 0x0000e38f, 0x00013241, 0, 0, 0, 0 }, { 0x26, 0x000c0008, 0x000b1c71, 0x00000000, 0x0000fac8, 0, 0, 0, 0 }, { 0x27, 0x0004ccd0, 0x000b1c71, 0x00000000, 0x00010b29, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x0006666b, 0x000c0000, 0x00040000, 0x0000e667, 0, 0, 0, 0 }, { 0x29, 0x0006666b, 0x000c0000, 0x00040000, 0x00009999, 0, 0, 0, 0 }, { 0x2a, 0x00080005, 0x000c0000, 0x00000000, 0x0000760c, 0, 0, 0, 0 }, { 0x2b, 0x000c0008, 0x0008ccd0, 0x0000ccd0, 0x00009999, 0, 0, 0, 0 }, { 0x2c, 0x0004ccd0, 0x00018e39, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0005999d, 0x0006e38f, 0x00000000, 0x0000760c, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x0004ccd0, 0x00018e39, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00080005, 0x000c0000, 0x00040000, 0x0000e667, 0, 0, 0, 0 }, { 0x30, 0x00080005, 0x000a5f5c, 0x00000000, 0x00013240, 0, 0, 0, 0 }, { 0x31, 0x00080005, 0x000a5f5c, 0x00000000, 0x00013240, 0, 0, 0, 0 }, { 0x32, 0x00080005, 0x000a5f5c, 0x00000000, 0x00013240, 0, 0, 0, 0 }, { 0x33, 0x00080005, 0x000a5f5c, 0x00000000, 0x00013240, 0, 0, 0, 0 }, { 0x34, 0x00080005, 0x000a5f5c, 0x00031c71, 0x00013240, 0, 0, 0, 0 }, { 0x35, 0x00080005, 0x000a5f5c, 0x00000000, 0x00013240, 0, 0, 0, 0 }, { 0x36, 0x00080005, 0x000a5f5c, 0x00000000, 0x00013240, 0, 0, 0, 0 }, { 0x37, 0x00080005, 0x000a5f5c, 0x00031c71, 0x00013240, 0, 0, 0, 0 }, { 0x38, 0x00080005, 0x000a5f5c, 0x00000000, 0x00013240, 0, 0, 0, 0 }, { 0x39, 0x00080005, 0x000a5f5c, 0x00000000, 0x00013240, 0, 0, 0, 0 }, { 0x3a, 0x0004ccd0, 0x0006e38f, 0x00000000, 0x0000e667, 0, 0, 0, 0 }, { 0x3b, 0x0004ccd0, 0x0006e38f, 0x00031c71, 0x0000e667, 0, 0, 0, 0 }, { 0x3c, 0x0004ccd0, 0x00080000, 0x00031c71, 0x00012d83, 0, 0, 0, 0 }, { 0x3d, 0x000c0008, 0x0005c641, 0xfffdc641, 0x00010b29, 0, 0, 0, 0 }, { 0x3e, 0x00080005, 0x00080000, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00080005, 0x000b1c71, 0x00000000, 0x00010da5, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000c0008, 0x000b1c71, 0x00000000, 0x0000f778, 0, 0, 0, 0 }, { 0x41, 0x000ba138, 0x000aeeef, 0x00000000, 0x00000000, 28, C_41_Kerning, 0, 0 }, { 0x42, 0x000b03d3, 0x000aeeef, 0x00000000, 0x0001127c, 0, 0, 0, 0 }, { 0x43, 0x000b333b, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000bd0a0, 0x000aeeef, 0x00000000, 0x0000e667, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000a9d6c, 0x000aeeef, 0x00000000, 0x0000fac8, 0, 0, 0, 0 }, { 0x46, 0x000a3705, 0x000aeeef, 0x00000000, 0x0001127c, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000c1b88, 0x000aeeef, 0x00000000, 0x00009999, 0, 0, 0, 0 }, { 0x48, 0x000ba138, 0x000aeeef, 0x00000000, 0x00009a8c, 0, 0, 0, 0 }, { 0x49, 0x0006079b, 0x000aeeef, 0x00000000, 0x0000a665, 0, 0, 0, 0 }, { 0x4a, 0x00083704, 0x000aeeef, 0x00000000, 0x00012d83, 0, 0, 0, 0 }, { 0x4b, 0x000c079f, 0x000aeeef, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x0009d09f, 0x000aeeef, 0x00000000, 0x00000000, 11, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000e07a0, 0x000aeeef, 0x00000000, 0x00009a8c, 0, 0, 0, 0 }, { 0x4e, 0x000ba138, 0x000aeeef, 0x00000000, 0x00009a8c, 0, 0, 0, 0 }, { 0x4f, 0x000c0008, 0x000aeeef, 0x00000000, 0x0000e667, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000a9d6c, 0x000aeeef, 0x00000000, 0x0001127c, 1, C_50_Kerning, 0, 0 }, { 0x51, 0x000c0008, 0x000aeeef, 0x00031c71, 0x0000e667, 0, 0, 0, 0 }, { 0x52, 0x000b6a39, 0x000aeeef, 0x00000000, 0x0000a665, 28, C_52_Kerning, 0, 0 }, { 0x53, 0x0008ccd3, 0x000aeeef, 0x00000000, 0x0000ec17, 0, 0, 0, 0 }, { 0x54, 0x000b333b, 0x000aeeef, 0x00000000, 0x0001127c, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000ba138, 0x000aeeef, 0x00000000, 0x00009a8c, 0, 0, 0, 0 }, { 0x56, 0x000ba138, 0x000aeeef, 0x00000000, 0x0000f778, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x000fa13b, 0x000aeeef, 0x00000000, 0x0000f778, 1, C_57_Kerning, 0, 0 }, { 0x58, 0x000ba138, 0x000aeeef, 0x00000000, 0x0000a665, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000ba138, 0x000aeeef, 0x00000000, 0x00010b29, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000999a0, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x0004ccd0, 0x000c0000, 0x00040000, 0x0000fac8, 0, 0, 0, 0 }, { 0x5c, 0x00080005, 0x000b1c71, 0x00000000, 0x0000ec17, 0, 0, 0, 0 }, { 0x5d, 0x0004ccd0, 0x000c0000, 0x00040000, 0x00013241, 0, 0, 0, 0 }, { 0x5e, 0x00080005, 0x000b1c71, 0x00000000, 0x0001127c, 0, 0, 0, 0 }, { 0x5f, 0x0004ccd0, 0x000a9e7c, 0x00000000, 0x00009a8c, 0, 0, 0, 0 }, { 0x60, 0x0004ccd0, 0x000b1c71, 0x00000000, 0x00010b29, 0, 0, 1, C_60_Ligature }, { 0x61, 0x00080005, 0x0006e38f, 0x00000000, 0x00013241, 0, 0, 0, 0 }, { 0x62, 0x00073338, 0x000b1c71, 0x00000000, 0x0000fac8, 7, C_62_Kerning, 0, 0 }, { 0x63, 0x00073338, 0x0006e38f, 0x00000000, 0x0000ec17, 7, C_63_Kerning, 0, 0 }, { 0x64, 0x00080005, 0x000b1c71, 0x00000000, 0x00013240, 1, C_64_Kerning, 0, 0 }, { 0x65, 0x00073338, 0x0006e38f, 0x00000000, 0x00013240, 7, C_65_Kerning, 0, 0 }, { 0x66, 0x0004ccd0, 0x000b1c71, 0x00031c71, 0x00010da5, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x00073338, 0x0006e38f, 0x00031c71, 0x0000760c, 0, 0, 0, 0 }, { 0x68, 0x00080005, 0x000b1c71, 0x00000000, 0x00013241, 0, 0, 0, 0 }, { 0x69, 0x0004ccd0, 0x000a5f5c, 0x00000000, 0x00010b29, 0, 0, 0, 0 }, { 0x6a, 0x0004ccd0, 0x000a5f5c, 0x00031c71, 0x0001527d, 0, 0, 0, 0 }, { 0x6b, 0x00073338, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x00040003, 0x000b1c71, 0x00000000, 0x00013240, 1, C_6c_Kerning, 0, 0 }, { 0x6d, 0x000cccd5, 0x0006e38f, 0x00000000, 0x00013241, 0, 0, 0, 0 }, { 0x6e, 0x0008ccd3, 0x0006e38f, 0x00000000, 0x00013241, 1, C_6e_Kerning, 0, 0 }, { 0x6f, 0x00080005, 0x0006e38f, 0x00000000, 0x0000fac8, 7, C_6f_Kerning, 0, 0 }, { 0x70, 0x00080005, 0x0006e38f, 0x00031c71, 0x0000fac8, 7, C_70_Kerning, 0, 0 }, { 0x71, 0x00073338, 0x0006e38f, 0x00031c71, 0x0000760c, 0, 0, 0, 0 }, { 0x72, 0x0006999f, 0x0006e38f, 0x00000000, 0x00000000, 7, C_72_Kerning, 0, 0 }, { 0x73, 0x0006666c, 0x0006e38f, 0x00000000, 0x0001527d, 0, 0, 0, 0 }, { 0x74, 0x00053337, 0x0009d75f, 0x00000000, 0x0000ec17, 0, 0, 0, 0 }, { 0x75, 0x0008666c, 0x0006e38f, 0x00000000, 0x00013241, 0, 0, 0, 0 }, { 0x76, 0x00073338, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000a666d, 0x0006e38f, 0x00000000, 0x00000000, 1, C_77_Kerning, 0, 0 }, { 0x78, 0x00073338, 0x0006e38f, 0x00000000, 0x0000e667, 0, 0, 0, 0 }, { 0x79, 0x0007999f, 0x0006e38f, 0x00031c71, 0x0000760c, 0, 0, 0, 0 }, { 0x7a, 0x0006666b, 0x0006e38f, 0x00000000, 0x0000f778, 0, 0, 0, 0 }, { 0x7b, 0x00080005, 0x0006e38f, 0x00000000, 0x00009a8c, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x0010000b, 0x0006e38f, 0x00000000, 0x00009a8c, 0, 0, 0, 0 }, { 0x7d, 0x00080005, 0x000b1c71, 0x00000000, 0x00010da5, 0, 0, 0, 0 }, { 0x7e, 0x00080005, 0x000a9e7c, 0x00000000, 0x0000a665, 0, 0, 0, 0 }, { 0x7f, 0x00080005, 0x000a9e7c, 0x00000000, 0x00010da5, 0, 0, 0, 0 } }; void cmti12_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmr7.cc0000644000175000017500000004221410704611257016413 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMR", 0xf0, "TeX text", 0x00700000, 0xd993a052, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x000628a5 }, { 0x03, "space_stretch", 0x0002f3d0 }, { 0x04, "space_shrink", 0x0001f7e0 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x001238e9 }, { 0x07, "extra_space", 0x0001f7e0 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x0001471e }, { 0x27, 0x0001471e }, { 0x29, 0x0001471e }, { 0x3f, 0x0001471e }, { 0x5d, 0x0001471e } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffa1c6e }, { 0x6c, 0xfffad34b } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001f7e0 }, { 0x3f, 0x0001f7e0 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff8207 }, { 0x47, 0xffff8207 }, { 0x4f, 0xffff8207 }, { 0x51, 0xffff8207 }, { 0x54, 0xfffe8617 }, { 0x55, 0xffff8207 }, { 0x56, 0xfffe0820 }, { 0x57, 0xfffe0820 }, { 0x59, 0xfffe8617 }, { 0x74, 0xffff8207 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff8207 }, { 0x56, 0xffff8207 }, { 0x57, 0xffff8207 }, { 0x58, 0xffff8207 }, { 0x59, 0xffff8207 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffe0820 }, { 0x43, 0xffff8207 }, { 0x47, 0xffff8207 }, { 0x4f, 0xffff8207 }, { 0x51, 0xffff8207 }, { 0x61, 0xfffe8617 }, { 0x65, 0xfffe8617 }, { 0x6f, 0xfffe8617 }, { 0x72, 0xfffe8617 }, { 0x75, 0xfffe8617 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x00007df9 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff8207 }, { 0x47, 0xffff8207 }, { 0x4f, 0xffff8207 }, { 0x51, 0xffff8207 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffe8617 }, { 0x56, 0xfffe0820 }, { 0x57, 0xfffe0820 }, { 0x59, 0xfffe8617 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff8207 }, { 0x56, 0xffff8207 }, { 0x57, 0xffff8207 }, { 0x58, 0xffff8207 }, { 0x59, 0xffff8207 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffe8617 }, { 0x2e, 0xfffe8617 }, { 0x41, 0xfffe8617 }, { 0x61, 0xffff8207 }, { 0x65, 0xffff8207 }, { 0x6f, 0xffff8207 } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff8207 }, { 0x47, 0xffff8207 }, { 0x4f, 0xffff8207 }, { 0x51, 0xffff8207 }, { 0x54, 0xfffe8617 }, { 0x55, 0xffff8207 }, { 0x56, 0xfffe0820 }, { 0x57, 0xfffe0820 }, { 0x59, 0xfffe8617 }, { 0x74, 0xffff8207 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffe8617 }, { 0x61, 0xfffe8617 }, { 0x65, 0xfffe8617 }, { 0x6f, 0xfffe8617 }, { 0x72, 0xfffe8617 }, { 0x75, 0xfffe8617 }, { 0x79, 0xffff8207 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffe0820 }, { 0x43, 0xffff8207 }, { 0x47, 0xffff8207 }, { 0x4f, 0xffff8207 }, { 0x51, 0xffff8207 }, { 0x61, 0xfffe8617 }, { 0x65, 0xfffe8617 }, { 0x6f, 0xfffe8617 }, { 0x72, 0xfffe8617 }, { 0x75, 0xfffe8617 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffe0820 }, { 0x43, 0xffff8207 }, { 0x47, 0xffff8207 }, { 0x4f, 0xffff8207 }, { 0x51, 0xffff8207 }, { 0x61, 0xfffe8617 }, { 0x65, 0xfffe8617 }, { 0x6f, 0xfffe8617 }, { 0x72, 0xfffe8617 }, { 0x75, 0xfffe8617 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff8207 }, { 0x47, 0xffff8207 }, { 0x4f, 0xffff8207 }, { 0x51, 0xffff8207 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffe8617 }, { 0x61, 0xfffe8617 }, { 0x65, 0xfffe8617 }, { 0x6f, 0xfffe8617 }, { 0x72, 0xfffe8617 }, { 0x75, 0xfffe8617 } }; static TFM::Kerning C_61_Kerning[] = { { 0x6a, 0x0000fbf0 }, { 0x76, 0xffff8207 }, { 0x77, 0xffff8207 }, { 0x79, 0xffff8207 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x00007df9 }, { 0x64, 0x00007df9 }, { 0x65, 0x00007df9 }, { 0x6a, 0x0000fbf0 }, { 0x6f, 0x00007df9 }, { 0x71, 0x00007df9 }, { 0x76, 0xffff8207 }, { 0x77, 0xffff8207 }, { 0x78, 0xffff8207 }, { 0x79, 0xffff8207 } }; static TFM::Kerning C_63_Kerning[] = { { 0x68, 0xffff8207 }, { 0x6b, 0xffff8207 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x0001471e }, { 0x27, 0x0001471e }, { 0x29, 0x0001471e }, { 0x3f, 0x0001471e }, { 0x5d, 0x0001471e } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x00007df9 } }; static TFM::Kerning C_68_Kerning[] = { { 0x62, 0xffff8207 }, { 0x74, 0xffff8207 }, { 0x75, 0xffff8207 }, { 0x76, 0xffff8207 }, { 0x77, 0xffff8207 }, { 0x79, 0xffff8207 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff0410 }, { 0x61, 0xffff8207 }, { 0x63, 0xffff8207 }, { 0x65, 0xffff8207 }, { 0x6f, 0xffff8207 } }; static TFM::Kerning C_6d_Kerning[] = { { 0x62, 0xffff8207 }, { 0x74, 0xffff8207 }, { 0x75, 0xffff8207 }, { 0x76, 0xffff8207 }, { 0x77, 0xffff8207 }, { 0x79, 0xffff8207 } }; static TFM::Kerning C_6e_Kerning[] = { { 0x62, 0xffff8207 }, { 0x74, 0xffff8207 }, { 0x75, 0xffff8207 }, { 0x76, 0xffff8207 }, { 0x77, 0xffff8207 }, { 0x79, 0xffff8207 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x00007df9 }, { 0x64, 0x00007df9 }, { 0x65, 0x00007df9 }, { 0x6a, 0x0000fbf0 }, { 0x6f, 0x00007df9 }, { 0x71, 0x00007df9 }, { 0x76, 0xffff8207 }, { 0x77, 0xffff8207 }, { 0x78, 0xffff8207 }, { 0x79, 0xffff8207 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x00007df9 }, { 0x64, 0x00007df9 }, { 0x65, 0x00007df9 }, { 0x6a, 0x0000fbf0 }, { 0x6f, 0x00007df9 }, { 0x71, 0x00007df9 }, { 0x76, 0xffff8207 }, { 0x77, 0xffff8207 }, { 0x78, 0xffff8207 }, { 0x79, 0xffff8207 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff8207 }, { 0x79, 0xffff8207 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff8207 } }; static TFM::Kerning C_76_Kerning[] = { { 0x61, 0xffff0410 }, { 0x61, 0xffff8207 }, { 0x63, 0xffff8207 }, { 0x65, 0xffff8207 }, { 0x6f, 0xffff8207 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff8207 }, { 0x63, 0xffff8207 }, { 0x65, 0xffff8207 }, { 0x6f, 0xffff8207 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffe8617 }, { 0x2e, 0xfffe8617 }, { 0x61, 0xffff8207 }, { 0x65, 0xffff8207 }, { 0x6f, 0xffff8207 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000b4d39, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000f0415, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000e0825, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000c820e, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000c1045, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000d7dfe, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000d0c35, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000e0825, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000d0c35, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000e0825, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000d0c35, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000ad762, 0x000b1c72, 0x00000000, 0x0001471e, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x000a5969, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000a5969, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000f861e, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000f861e, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00052cb5, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x0005aaae, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00091c75, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00091c75, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x00091c75, 0x000a0e39, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00091c75, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00091c75, 0x00092ff0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000d7dfe, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00082085, 0x00000000, 0x0002b8e5, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00091c77, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000d0c35, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000e0825, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00091c75, 0x000871c7, 0x00018e39, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x001038e9, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x001230c9, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000e0825, 0x000bb60e, 0x0000c71e, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00052cb5, 0x0006e38e, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x00052cb5, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x00091c75, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000f0415, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00091c75, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000f0415, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000e0825, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x00052cb5, 0x000b1c72, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x00072495, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00072495, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00091c75, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000e0825, 0x0009e7a0, 0x0001e7a0, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00052cb5, 0x0001d75e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x000628a5, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x00052cb5, 0x0001d75e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00091c75, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00091c75, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00091c75, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00091c75, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00091c75, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00091c75, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00091c75, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00091c75, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00091c75, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00091c75, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00091c75, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00052cb5, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00052cb5, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00052cb5, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000e0825, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00089e7e, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00089e7e, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000e0825, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000d7dfe, 0x000aeef0, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000cc722, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000d0c35, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000dc312, 0x000aeef0, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000c4929, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000bcb32, 0x000aeef0, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000e2497, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000d7dfe, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x00069a6e, 0x000aeef0, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x00095559, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000dfbf7, 0x000aeef0, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000b4d39, 0x000aeef0, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x001071ce, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000d7dfe, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000e0825, 0x000aeef0, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000c4929, 0x000aeef0, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000e0825, 0x000aeef0, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000d4519, 0x000aeef0, 0x00000000, 0x00000000, 10, C_52_Kerning, 0, 0 }, { 0x53, 0x000a1865, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000d0c35, 0x000aeef0, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000d7dfe, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000d7dfe, 0x000aeef0, 0x00000000, 0x00003efb, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x001269ae, 0x000aeef0, 0x00000000, 0x00003efb, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000d7dfe, 0x000aeef0, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000d7dfe, 0x000aeef0, 0x00000000, 0x00007160, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000b1455, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x00052cb5, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00091c75, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00052cb5, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00091c75, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00052cb5, 0x000ac30e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x00052cb5, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x00091c75, 0x0006e38e, 0x00000000, 0x00000000, 4, C_61_Kerning, 0, 0 }, { 0x62, 0x000a1865, 0x000b1c72, 0x00000000, 0x00000000, 10, C_62_Kerning, 0, 0 }, { 0x63, 0x00082085, 0x0006e38e, 0x00000000, 0x00000000, 2, C_63_Kerning, 0, 0 }, { 0x64, 0x000a1865, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00082085, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x0005aaae, 0x000b1c72, 0x00000000, 0x0001471e, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x00091c75, 0x0006e38e, 0x00031c72, 0x00003efb, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000a1865, 0x000b1c72, 0x00000000, 0x00000000, 6, C_68_Kerning, 0, 0 }, { 0x69, 0x00052cb5, 0x000ac30e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x0005aaae, 0x000ac30e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x00099a6e, 0x000b1c72, 0x00000000, 0x00000000, 5, C_6b_Kerning, 0, 0 }, { 0x6c, 0x00052cb5, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000f0415, 0x0006e38e, 0x00000000, 0x00000000, 6, C_6d_Kerning, 0, 0 }, { 0x6e, 0x000a1865, 0x0006e38e, 0x00000000, 0x00000000, 6, C_6e_Kerning, 0, 0 }, { 0x6f, 0x00091c75, 0x0006e38e, 0x00000000, 0x00000000, 10, C_6f_Kerning, 0, 0 }, { 0x70, 0x000a1865, 0x0006e38e, 0x00031c72, 0x00000000, 10, C_70_Kerning, 0, 0 }, { 0x71, 0x00099a6b, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x00072495, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x00073dc7, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00072495, 0x0009d75e, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x000a1865, 0x0006e38e, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x00099a6e, 0x0006e38e, 0x00000000, 0x00003efb, 5, C_76_Kerning, 0, 0 }, { 0x77, 0x000d0c35, 0x0006e38e, 0x00000000, 0x00003efb, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x00099a6e, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00099a6e, 0x0006e38e, 0x00031c72, 0x00003efb, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x00082085, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00091c75, 0x0006e38e, 0x00000000, 0x00007df9, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x001238e9, 0x0006e38e, 0x00000000, 0x00007df9, 0, 0, 0, 0 }, { 0x7d, 0x00091c75, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x00091c75, 0x000ac30e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00091c75, 0x000ac30e, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmr7_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmssi12.cc0000644000175000017500000003761710704611257017037 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMSSI", 0xe6, "TeX text", 0x00c00000, 0xda0322cd, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x000366a0 }, { 0x02, "space", 0x000538e0 }, { 0x03, "space_stretch", 0x00029c70 }, { 0x04, "space_shrink", 0x0001bda0 }, { 0x05, "x_height", 0x00071c71 }, { 0x06, "quad", 0x000faaa0 }, { 0x07, "extra_space", 0x0001bda0 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x00011684 }, { 0x27, 0x00011684 }, { 0x29, 0x00011684 }, { 0x3f, 0x00011684 }, { 0x5d, 0x00011684 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffc0720 }, { 0x6c, 0xfffc509b } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001bda0 }, { 0x3f, 0x0001bda0 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 }, { 0x54, 0xfffeb1c8 }, { 0x55, 0xffff9098 }, { 0x56, 0xfffe4260 }, { 0x57, 0xfffe4260 }, { 0x59, 0xfffeb1c8 }, { 0x74, 0xffff9098 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff9098 }, { 0x56, 0xffff9098 }, { 0x57, 0xffff9098 }, { 0x58, 0xffff9098 }, { 0x59, 0xffff9098 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffeb1c8 }, { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 }, { 0x61, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 }, { 0x72, 0xffff9098 }, { 0x75, 0xffff9098 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x00006f68 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffeb1c8 }, { 0x56, 0xfffe4260 }, { 0x57, 0xfffe4260 }, { 0x59, 0xfffeb1c8 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff9098 }, { 0x56, 0xffff9098 }, { 0x57, 0xffff9098 }, { 0x58, 0xffff9098 }, { 0x59, 0xffff9098 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffeb1c8 }, { 0x2e, 0xfffeb1c8 }, { 0x41, 0xfffeb1c8 }, { 0x61, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffeb1c8 }, { 0x61, 0xfffeb1c8 }, { 0x65, 0xfffeb1c8 }, { 0x6f, 0xfffeb1c8 }, { 0x72, 0xfffeb1c8 }, { 0x75, 0xfffeb1c8 }, { 0x79, 0xfffeb1c8 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffeb1c8 }, { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 }, { 0x61, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 }, { 0x72, 0xffff9098 }, { 0x75, 0xffff9098 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffeb1c8 }, { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 }, { 0x61, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 }, { 0x72, 0xffff9098 }, { 0x75, 0xffff9098 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffeb1c8 }, { 0x61, 0xfffeb1c8 }, { 0x65, 0xfffeb1c8 }, { 0x6f, 0xfffeb1c8 }, { 0x72, 0xfffeb1c8 }, { 0x75, 0xfffeb1c8 } }; static TFM::Kerning C_61_Kerning[] = { { 0x72, 0xffff9098 }, { 0x77, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x00006f68 }, { 0x64, 0x00006f68 }, { 0x65, 0x00006f68 }, { 0x6f, 0x00006f68 }, { 0x71, 0x00006f68 }, { 0x72, 0xffff9098 }, { 0x77, 0xffff9098 }, { 0x78, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x00011684 }, { 0x27, 0x00011684 }, { 0x29, 0x00011684 }, { 0x3f, 0x00011684 }, { 0x5d, 0x00011684 } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x00006f68 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff9098 }, { 0x63, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x00006f68 }, { 0x64, 0x00006f68 }, { 0x65, 0x00006f68 }, { 0x6f, 0x00006f68 }, { 0x71, 0x00006f68 }, { 0x72, 0xffff9098 }, { 0x77, 0xffff9098 }, { 0x78, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x00006f68 }, { 0x64, 0x00006f68 }, { 0x65, 0x00006f68 }, { 0x6f, 0x00006f68 }, { 0x71, 0x00006f68 }, { 0x72, 0xffff9098 }, { 0x77, 0xffff9098 }, { 0x78, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff9098 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff9098 }, { 0x63, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffeb1c8 }, { 0x2e, 0xfffeb1c8 }, { 0x61, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x0008767d, 0x000b1c71, 0x00000000, 0x00003777, 0, 0, 0, 0 }, { 0x01, 0x000d0e30, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000c2f60, 0x000b1c71, 0x00000000, 0x0000575f, 0, 0, 0, 0 }, { 0x03, 0x00097b3b, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000a71c0, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000afb3b, 0x000b1c71, 0x00000000, 0x0000b719, 0, 0, 0, 0 }, { 0x06, 0x000b5090, 0x000b1c71, 0x00000000, 0x0000cd67, 0, 0, 0, 0 }, { 0x07, 0x000c2f60, 0x000b1c71, 0x00000000, 0x00004b05, 0, 0, 0, 0 }, { 0x08, 0x000b5090, 0x000b1c71, 0x00000000, 0x0000bee5, 0, 0, 0, 0 }, { 0x09, 0x000c2f60, 0x000b1c71, 0x00000000, 0x00004b05, 0, 0, 0, 0 }, { 0x0a, 0x000b5090, 0x000b1c71, 0x00000000, 0x00008a0f, 0, 0, 0, 0 }, { 0x0b, 0x00092388, 0x000b1c71, 0x00000000, 0x00006b3f, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x00085ecb, 0x000b1c71, 0x00000000, 0x00008a0f, 0, 0, 0, 0 }, { 0x0d, 0x00085ecb, 0x000b1c71, 0x00000000, 0x00007f1c, 0, 0, 0, 0 }, { 0x0e, 0x000cb8db, 0x000b1c71, 0x00000000, 0x00008a0f, 0, 0, 0, 0 }, { 0x0f, 0x000cb8db, 0x000b1c71, 0x00000000, 0x00007f1c, 0, 0, 0, 0 }, { 0x10, 0x0003af65, 0x00071c71, 0x00000000, 0x0000b719, 0, 0, 0, 0 }, { 0x11, 0x00041ecd, 0x00071c71, 0x00031c71, 0x0000b719, 0, 0, 0, 0 }, { 0x12, 0x0007d550, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x0007d550, 0x000b1c71, 0x00000000, 0x0000575f, 0, 0, 0, 0 }, { 0x14, 0x0007d550, 0x000a1c71, 0x00000000, 0x0000bee5, 0, 0, 0, 0 }, { 0x15, 0x0007d550, 0x000b1c71, 0x00000000, 0x00006b3f, 0, 0, 0, 0 }, { 0x16, 0x0007d550, 0x0009b9d5, 0x00000000, 0x0000cd67, 0, 0, 0, 0 }, { 0x17, 0x000b7c40, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x0006f680, 0x00000000, 0x0002b8e3, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00077ffb, 0x000b1c71, 0x00000000, 0x0000575f, 0, 0, 0, 0 }, { 0x1a, 0x000b5090, 0x00071c71, 0x00000000, 0x00004b05, 0, 0, 0, 0 }, { 0x1b, 0x000c2f60, 0x00071c71, 0x00000000, 0x00004b05, 0, 0, 0, 0 }, { 0x1c, 0x0007d550, 0x0008aaab, 0x00018e39, 0x0000cced, 0, 0, 0, 0 }, { 0x1d, 0x000d71bd, 0x000b1c71, 0x00000000, 0x0000cd67, 0, 0, 0, 0 }, { 0x1e, 0x000f2f5d, 0x000b1c71, 0x00000000, 0x0000cd67, 0, 0, 0, 0 }, { 0x1f, 0x000c2f60, 0x000be38d, 0x0000c71c, 0x0000575f, 0, 0, 0, 0 }, { 0x20, 0x0003af65, 0x00071c71, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x0004fb40, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x0007d550, 0x000b1c71, 0x00000000, 0x000016ec, 0, 0, 0, 0 }, { 0x23, 0x000d0e30, 0x000b1c71, 0x00031c70, 0x0000cd67, 0, 0, 0, 0 }, { 0x24, 0x0007d550, 0x000c0000, 0x0000e38f, 0x0000b719, 0, 0, 0, 0 }, { 0x25, 0x000d0e30, 0x000c0000, 0x0000e38f, 0x0000826f, 0, 0, 0, 0 }, { 0x26, 0x000bda0b, 0x000b1c71, 0x00000000, 0x00008a0f, 0, 0, 0, 0 }, { 0x27, 0x00045a10, 0x000b1c71, 0x00000000, 0x00007f1c, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x000617b0, 0x000c0000, 0x00040000, 0x000016ec, 0, 0, 0, 0 }, { 0x29, 0x000617b0, 0x000c0000, 0x00040000, 0x00006a40, 0, 0, 0, 0 }, { 0x2a, 0x0007d550, 0x000c0000, 0x00000000, 0x0000cced, 0, 0, 0, 0 }, { 0x2b, 0x000c2f60, 0x000938e0, 0x000138e0, 0x00006a40, 0, 0, 0, 0 }, { 0x2c, 0x00045a10, 0x00014bdb, 0x00020000, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x000538e0, 0x00071c71, 0x00000000, 0x00005211, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x00045a10, 0x00014bdb, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x0007d550, 0x000c0000, 0x00040000, 0x000016ec, 0, 0, 0, 0 }, { 0x30, 0x0007d550, 0x000a7b43, 0x00000000, 0x0000b719, 0, 0, 0, 0 }, { 0x31, 0x0007d550, 0x000a7b43, 0x00000000, 0x0000b719, 0, 0, 0, 0 }, { 0x32, 0x0007d550, 0x000a7b43, 0x00000000, 0x0000b719, 0, 0, 0, 0 }, { 0x33, 0x0007d550, 0x000a7b43, 0x00000000, 0x0000b719, 0, 0, 0, 0 }, { 0x34, 0x0007d550, 0x000a7b43, 0x00000000, 0x0000b719, 0, 0, 0, 0 }, { 0x35, 0x0007d550, 0x000a7b43, 0x00000000, 0x0000b719, 0, 0, 0, 0 }, { 0x36, 0x0007d550, 0x000a7b43, 0x00000000, 0x0000b719, 0, 0, 0, 0 }, { 0x37, 0x0007d550, 0x000a7b43, 0x00000000, 0x0000b719, 0, 0, 0, 0 }, { 0x38, 0x0007d550, 0x000a7b43, 0x00000000, 0x0000b719, 0, 0, 0, 0 }, { 0x39, 0x0007d550, 0x000a7b43, 0x00000000, 0x0000b719, 0, 0, 0, 0 }, { 0x3a, 0x00045a10, 0x00071c71, 0x00000000, 0x00006b3f, 0, 0, 0, 0 }, { 0x3b, 0x00045a10, 0x00071c71, 0x00020000, 0x00006b3f, 0, 0, 0, 0 }, { 0x3c, 0x0004fb40, 0x00080000, 0x00031c71, 0x00004b05, 0, 0, 0, 0 }, { 0x3d, 0x000c2f60, 0x0005d27c, 0xfffdd27c, 0x0000cd67, 0, 0, 0, 0 }, { 0x3e, 0x000765e8, 0x00080000, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000765e8, 0x000b1c71, 0x00000000, 0x0000bee5, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000a71c0, 0x000b1c71, 0x00000000, 0x0000575f, 0, 0, 0, 0 }, { 0x41, 0x000a5a0b, 0x000b1c71, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000a65e5, 0x000b1c71, 0x00000000, 0x00008a0f, 0, 0, 0, 0 }, { 0x43, 0x000a0258, 0x000b1c71, 0x00000000, 0x0000cd67, 0, 0, 0, 0 }, { 0x44, 0x000b44b5, 0x000b1c71, 0x00000000, 0x0000575f, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x0009554d, 0x000b1c71, 0x00000000, 0x0000cd67, 0, 0, 0, 0 }, { 0x46, 0x0008e5e5, 0x000b1c71, 0x00000000, 0x00003777, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000a71c0, 0x000b1c71, 0x00000000, 0x0000cd67, 0, 0, 0, 0 }, { 0x48, 0x000afb3b, 0x000b1c71, 0x00000000, 0x0000b719, 0, 0, 0, 0 }, { 0x49, 0x0004425b, 0x000b1c71, 0x00000000, 0x00003777, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x00075a0d, 0x000b1c71, 0x00000000, 0x0000b719, 0, 0, 0, 0 }, { 0x4b, 0x000ac973, 0x000b1c71, 0x00000000, 0x0000cd67, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x0008767d, 0x000b1c71, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000d97ab, 0x000b1c71, 0x00000000, 0x0000b719, 0, 0, 0, 0 }, { 0x4e, 0x000afb3b, 0x000b1c71, 0x00000000, 0x0000b719, 0, 0, 0, 0 }, { 0x4f, 0x000b8e30, 0x000b1c71, 0x00000000, 0x0000575f, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x0009f67d, 0x000b1c71, 0x00000000, 0x00008a0f, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000b8e30, 0x000b1c71, 0x00020000, 0x0000575f, 0, 0, 0, 0 }, { 0x52, 0x000a154d, 0x000b1c71, 0x00000000, 0x00008a0f, 0, 0, 0, 0 }, { 0x53, 0x0008b420, 0x000b1c71, 0x00000000, 0x0000575f, 0, 0, 0, 0 }, { 0x54, 0x000aaf60, 0x000b1c71, 0x00000000, 0x00003777, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000aaaa3, 0x000b1c71, 0x00000000, 0x0000b719, 0, 0, 0, 0 }, { 0x56, 0x000a5a0b, 0x000b1c71, 0x00000000, 0x0000575f, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x000eb41b, 0x000b1c71, 0x00000000, 0x0000575f, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000a5a0b, 0x000b1c71, 0x00000000, 0x00003777, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000a5a0b, 0x000b1c71, 0x00000000, 0x00006a40, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000992f0, 0x000b1c71, 0x00000000, 0x0000cd67, 0, 0, 0, 0 }, { 0x5b, 0x0004871b, 0x000c0000, 0x00040000, 0x00005211, 0, 0, 0, 0 }, { 0x5c, 0x0007d550, 0x000b1c71, 0x00000000, 0x00004b05, 0, 0, 0, 0 }, { 0x5d, 0x0004871b, 0x000c0000, 0x00040000, 0x000016ec, 0, 0, 0, 0 }, { 0x5e, 0x0007d550, 0x000b1c71, 0x00000000, 0x0000826f, 0, 0, 0, 0 }, { 0x5f, 0x00045a10, 0x000ad80b, 0x00000000, 0x00006a40, 0, 0, 0, 0 }, { 0x60, 0x00045a10, 0x000b1c71, 0x00000000, 0x00007f1c, 0, 0, 1, C_60_Ligature }, { 0x61, 0x00077ffb, 0x00071c71, 0x00000000, 0x00003777, 3, C_61_Kerning, 0, 0 }, { 0x62, 0x00080975, 0x000b1c71, 0x00000000, 0x00007f1c, 9, C_62_Kerning, 0, 0 }, { 0x63, 0x0006f680, 0x00071c71, 0x00000000, 0x0000a088, 0, 0, 0, 0 }, { 0x64, 0x00080975, 0x000b1c71, 0x00000000, 0x00007f1c, 0, 0, 0, 0 }, { 0x65, 0x0006f680, 0x00071c71, 0x00000000, 0x00004b05, 0, 0, 0, 0 }, { 0x66, 0x0004c978, 0x000b1c71, 0x00000000, 0x00006b3f, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x0007d550, 0x00071c71, 0x00031c71, 0x0000a088, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x00080975, 0x000b1c71, 0x00000000, 0x0000575f, 0, 0, 0, 0 }, { 0x69, 0x0003af65, 0x000ad80b, 0x00000000, 0x0000826f, 0, 0, 0, 0 }, { 0x6a, 0x00041ecd, 0x000ad80b, 0x00031c71, 0x00006a40, 0, 0, 0, 0 }, { 0x6b, 0x00079a0d, 0x000b1c71, 0x00000000, 0x0000a088, 4, C_6b_Kerning, 0, 0 }, { 0x6c, 0x0003af65, 0x000b1c71, 0x00000000, 0x00007f1c, 0, 0, 0, 0 }, { 0x6d, 0x000c6385, 0x00071c71, 0x00000000, 0x0000575f, 0, 0, 0, 0 }, { 0x6e, 0x00080975, 0x00071c71, 0x00000000, 0x0000575f, 0, 0, 0, 0 }, { 0x6f, 0x0007d550, 0x00071c71, 0x00000000, 0x00003777, 9, C_6f_Kerning, 0, 0 }, { 0x70, 0x00080975, 0x00071c71, 0x00031c71, 0x0000a088, 9, C_70_Kerning, 0, 0 }, { 0x71, 0x00080975, 0x00071c71, 0x00031c71, 0x0000b719, 0, 0, 0, 0 }, { 0x72, 0x000552f3, 0x00071c71, 0x00000000, 0x0000a088, 0, 0, 0, 0 }, { 0x73, 0x00060168, 0x00071c71, 0x00000000, 0x00006b3f, 0, 0, 0, 0 }, { 0x74, 0x0005a848, 0x00092495, 0x00000000, 0x00005211, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x00080975, 0x00071c71, 0x00000000, 0x0000b719, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x00072aa5, 0x00071c71, 0x00000000, 0x0000a088, 0, 0, 0, 0 }, { 0x77, 0x000aa5e5, 0x00071c71, 0x00000000, 0x0000a088, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x00072aa5, 0x00071c71, 0x00000000, 0x00005211, 0, 0, 0, 0 }, { 0x79, 0x00072aa5, 0x00071c71, 0x00031c71, 0x0000a088, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x0006cbd5, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x0007d550, 0x00071c71, 0x00000000, 0x0000cced, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x000faaa0, 0x00071c71, 0x00000000, 0x0000cced, 0, 0, 0, 0 }, { 0x7d, 0x0007d550, 0x000b1c71, 0x00000000, 0x0000575f, 0, 0, 0, 0 }, { 0x7e, 0x0007d550, 0x000ace90, 0x00000000, 0x00003777, 0, 0, 0, 0 }, { 0x7f, 0x0007d550, 0x000ad80b, 0x00000000, 0x000016ec, 0, 0, 0, 0 } }; void cmssi12_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmssi9.cc0000644000175000017500000003761610704611260016756 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMSSI", 0xec, "TeX text", 0x00900000, 0x2ba19717, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x000366a0 }, { 0x02, "space", 0x00057b40 }, { 0x03, "space_stretch", 0x0002bda0 }, { 0x04, "space_shrink", 0x0001d3c0 }, { 0x05, "x_height", 0x00071c72 }, { 0x06, "quad", 0x001071c0 }, { 0x07, "extra_space", 0x0001d3c0 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x00012459 }, { 0x27, 0x00012459 }, { 0x29, 0x00012459 }, { 0x3f, 0x00012459 }, { 0x5d, 0x00012459 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffbbda4 }, { 0x6c, 0xfffc12f9 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001d3c0 }, { 0x3f, 0x0001d3c0 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 }, { 0x54, 0xfffea130 }, { 0x55, 0xffff8b10 }, { 0x56, 0xfffe2c40 }, { 0x57, 0xfffe2c40 }, { 0x59, 0xfffea130 }, { 0x74, 0xffff8b10 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff8b10 }, { 0x56, 0xffff8b10 }, { 0x57, 0xffff8b10 }, { 0x58, 0xffff8b10 }, { 0x59, 0xffff8b10 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffea130 }, { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 }, { 0x61, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 }, { 0x72, 0xffff8b10 }, { 0x75, 0xffff8b10 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x000074f0 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffea130 }, { 0x56, 0xfffe2c40 }, { 0x57, 0xfffe2c40 }, { 0x59, 0xfffea130 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff8b10 }, { 0x56, 0xffff8b10 }, { 0x57, 0xffff8b10 }, { 0x58, 0xffff8b10 }, { 0x59, 0xffff8b10 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffea130 }, { 0x2e, 0xfffea130 }, { 0x41, 0xfffea130 }, { 0x61, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffea130 }, { 0x61, 0xfffea130 }, { 0x65, 0xfffea130 }, { 0x6f, 0xfffea130 }, { 0x72, 0xfffea130 }, { 0x75, 0xfffea130 }, { 0x79, 0xfffea130 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffea130 }, { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 }, { 0x61, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 }, { 0x72, 0xffff8b10 }, { 0x75, 0xffff8b10 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffea130 }, { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 }, { 0x61, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 }, { 0x72, 0xffff8b10 }, { 0x75, 0xffff8b10 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffea130 }, { 0x61, 0xfffea130 }, { 0x65, 0xfffea130 }, { 0x6f, 0xfffea130 }, { 0x72, 0xfffea130 }, { 0x75, 0xfffea130 } }; static TFM::Kerning C_61_Kerning[] = { { 0x72, 0xffff8b10 }, { 0x77, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x000074f0 }, { 0x64, 0x000074f0 }, { 0x65, 0x000074f0 }, { 0x6f, 0x000074f0 }, { 0x71, 0x000074f0 }, { 0x72, 0xffff8b10 }, { 0x77, 0xffff8b10 }, { 0x78, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x00012459 }, { 0x27, 0x00012459 }, { 0x29, 0x00012459 }, { 0x3f, 0x00012459 }, { 0x5d, 0x00012459 } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x000074f0 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff8b10 }, { 0x63, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x000074f0 }, { 0x64, 0x000074f0 }, { 0x65, 0x000074f0 }, { 0x6f, 0x000074f0 }, { 0x71, 0x000074f0 }, { 0x72, 0xffff8b10 }, { 0x77, 0xffff8b10 }, { 0x78, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x000074f0 }, { 0x64, 0x000074f0 }, { 0x65, 0x000074f0 }, { 0x6f, 0x000074f0 }, { 0x71, 0x000074f0 }, { 0x72, 0xffff8b10 }, { 0x77, 0xffff8b10 }, { 0x78, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff8b10 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff8b10 }, { 0x63, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffea130 }, { 0x2e, 0xfffea130 }, { 0x61, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x0008f680, 0x000b1c72, 0x00000000, 0x00002944, 0, 0, 0, 0 }, { 0x01, 0x000db420, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000cca40, 0x000b1c72, 0x00000000, 0x00004c89, 0, 0, 0, 0 }, { 0x03, 0x000a12f2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000af680, 0x000b1c72, 0x00000000, 0x0000e7ab, 0, 0, 0, 0 }, { 0x05, 0x000ba12b, 0x000b1c72, 0x00000000, 0x00008244, 0, 0, 0, 0 }, { 0x06, 0x000be060, 0x000b1c72, 0x00000000, 0x0000d207, 0, 0, 0, 0 }, { 0x07, 0x000cca40, 0x000b1c72, 0x00000000, 0x00003e60, 0, 0, 0, 0 }, { 0x08, 0x000be060, 0x000b1c72, 0x00000000, 0x0000b95c, 0, 0, 0, 0 }, { 0x09, 0x000cca40, 0x000b1c72, 0x00000000, 0x00003e60, 0, 0, 0, 0 }, { 0x0a, 0x000be060, 0x000b1c72, 0x00000000, 0x0000a557, 0, 0, 0, 0 }, { 0x0b, 0x000997b0, 0x000b1c72, 0x00000000, 0x000064b9, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x0008d094, 0x000b1c72, 0x00000000, 0x00007ce7, 0, 0, 0, 0 }, { 0x0d, 0x0008d094, 0x000b1c72, 0x00000000, 0x0000764e, 0, 0, 0, 0 }, { 0x0e, 0x000d61f4, 0x000b1c72, 0x00000000, 0x00007ce7, 0, 0, 0, 0 }, { 0x0f, 0x000d61f4, 0x000b1c72, 0x00000000, 0x0000764e, 0, 0, 0, 0 }, { 0x10, 0x0003ed07, 0x00071c72, 0x00000000, 0x0000ac09, 0, 0, 0, 0 }, { 0x11, 0x000461f7, 0x00071c72, 0x00031c72, 0x0000ac09, 0, 0, 0, 0 }, { 0x12, 0x000838e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000838e0, 0x000b1c72, 0x00000000, 0x000049f5, 0, 0, 0, 0 }, { 0x14, 0x000838e0, 0x000a1c72, 0x00000000, 0x0000ac09, 0, 0, 0, 0 }, { 0x15, 0x000838e0, 0x000b1c72, 0x00000000, 0x000064b9, 0, 0, 0, 0 }, { 0x16, 0x000838e0, 0x0009ceb2, 0x00000000, 0x00002944, 0, 0, 0, 0 }, { 0x17, 0x000c1f07, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00074f00, 0x00000000, 0x0002b8e4, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x0007e6b4, 0x000b1c72, 0x00000000, 0x000049f5, 0, 0, 0, 0 }, { 0x1a, 0x000be060, 0x00071c72, 0x00000000, 0x00003e60, 0, 0, 0, 0 }, { 0x1b, 0x000cca40, 0x00071c72, 0x00000000, 0x00003e60, 0, 0, 0, 0 }, { 0x1c, 0x000838e0, 0x0008aaab, 0x00018e39, 0x0000c30c, 0, 0, 0, 0 }, { 0x1d, 0x000e2c39, 0x000b1c72, 0x00000000, 0x0000d207, 0, 0, 0, 0 }, { 0x1e, 0x000ffff9, 0x000b1c72, 0x00000000, 0x0000d207, 0, 0, 0, 0 }, { 0x1f, 0x000cca40, 0x000be38e, 0x0000c71c, 0x00004c89, 0, 0, 0, 0 }, { 0x20, 0x0003ed07, 0x00071c72, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x000535b9, 0x000b1c72, 0x00000000, 0x0000e7ab, 0, 0, 1, C_21_Ligature }, { 0x22, 0x000838e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000db420, 0x000b1c72, 0x00031c72, 0x0000d207, 0, 0, 0, 0 }, { 0x24, 0x000838e0, 0x000c0000, 0x0000e38e, 0x0000ac09, 0, 0, 0, 0 }, { 0x25, 0x000db420, 0x000c0000, 0x0000e38e, 0x00007ce7, 0, 0, 0, 0 }, { 0x26, 0x000c7814, 0x000b1c72, 0x00000000, 0x0000764e, 0, 0, 0, 0 }, { 0x27, 0x00049160, 0x000b1c72, 0x00000000, 0x0000602e, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x00066520, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00066520, 0x000c0000, 0x00040000, 0x000064b9, 0, 0, 0, 0 }, { 0x2a, 0x000838e0, 0x000c0000, 0x00000000, 0x0000b95c, 0, 0, 0, 0 }, { 0x2b, 0x000cca40, 0x00097b40, 0x00017b40, 0x000064b9, 0, 0, 0, 0 }, { 0x2c, 0x00049160, 0x000161f9, 0x00020652, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00057b40, 0x00071c72, 0x00000000, 0x00004c89, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x00049160, 0x000161f9, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000838e0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000838e0, 0x000a7819, 0x00000000, 0x0000ac09, 0, 0, 0, 0 }, { 0x31, 0x000838e0, 0x000a7819, 0x00000000, 0x0000ac09, 0, 0, 0, 0 }, { 0x32, 0x000838e0, 0x000a7819, 0x00000000, 0x0000ac09, 0, 0, 0, 0 }, { 0x33, 0x000838e0, 0x000a7819, 0x00000000, 0x0000ac09, 0, 0, 0, 0 }, { 0x34, 0x000838e0, 0x000a7819, 0x00000000, 0x0000ac09, 0, 0, 0, 0 }, { 0x35, 0x000838e0, 0x000a7819, 0x00000000, 0x0000ac09, 0, 0, 0, 0 }, { 0x36, 0x000838e0, 0x000a7819, 0x00000000, 0x0000ac09, 0, 0, 0, 0 }, { 0x37, 0x000838e0, 0x000a7819, 0x00000000, 0x0000ac09, 0, 0, 0, 0 }, { 0x38, 0x000838e0, 0x000a7819, 0x00000000, 0x0000ac09, 0, 0, 0, 0 }, { 0x39, 0x000838e0, 0x000a7819, 0x00000000, 0x0000ac09, 0, 0, 0, 0 }, { 0x3a, 0x00049160, 0x00071c72, 0x00000000, 0x0000602e, 0, 0, 0, 0 }, { 0x3b, 0x00049160, 0x00071c72, 0x00020652, 0x0000602e, 0, 0, 0, 0 }, { 0x3c, 0x000535b9, 0x00080000, 0x00031c72, 0x00003e60, 0, 0, 0, 0 }, { 0x3d, 0x000cca40, 0x00060247, 0xfffe0247, 0x0000d207, 0, 0, 0, 0 }, { 0x3e, 0x0007c3f0, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x0007c3f0, 0x000b1c72, 0x00000000, 0x0000c30c, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000af680, 0x000b1c72, 0x00000000, 0x00004c89, 0, 0, 0, 0 }, { 0x41, 0x000afcd2, 0x000b1c72, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000af9a9, 0x000b1c72, 0x00000000, 0x0000a557, 0, 0, 0, 0 }, { 0x43, 0x000a8190, 0x000b1c72, 0x00000000, 0x0000d207, 0, 0, 0, 0 }, { 0x44, 0x000be389, 0x000b1c72, 0x00000000, 0x00004c89, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x0009e060, 0x000b1c72, 0x00000000, 0x0000d207, 0, 0, 0, 0 }, { 0x46, 0x00096b70, 0x000b1c72, 0x00000000, 0x00002944, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000af680, 0x000b1c72, 0x00000000, 0x0000d207, 0, 0, 0, 0 }, { 0x48, 0x000ba12b, 0x000b1c72, 0x00000000, 0x00008244, 0, 0, 0, 0 }, { 0x49, 0x000497b2, 0x000b1c72, 0x00000000, 0x00002944, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x0007c719, 0x000b1c72, 0x00000000, 0x00008244, 0, 0, 0, 0 }, { 0x4b, 0x000b71c2, 0x000b1c72, 0x00000000, 0x0000d207, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x0008f680, 0x000b1c72, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000e5ecb, 0x000b1c72, 0x00000000, 0x00008244, 0, 0, 0, 0 }, { 0x4e, 0x000ba12b, 0x000b1c72, 0x00000000, 0x00008244, 0, 0, 0, 0 }, { 0x4f, 0x000c25e7, 0x000b1c72, 0x00000000, 0x00004c89, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000a84b9, 0x000b1c72, 0x00000000, 0x0000a557, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000c25e7, 0x000b1c72, 0x00020652, 0x00004c89, 0, 0, 0, 0 }, { 0x52, 0x000aa77c, 0x000b1c72, 0x00000000, 0x0000a557, 0, 0, 0, 0 }, { 0x53, 0x000922c0, 0x000b1c72, 0x00000000, 0x000049f5, 0, 0, 0, 0 }, { 0x54, 0x000b3c07, 0x000b1c72, 0x00000000, 0x00002944, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000b4efe, 0x000b1c72, 0x00000000, 0x00008244, 0, 0, 0, 0 }, { 0x56, 0x000afcd2, 0x000b1c72, 0x00000000, 0x00004c89, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x000f8e32, 0x000b1c72, 0x00000000, 0x00004c89, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000afcd2, 0x000b1c72, 0x00000000, 0x00002944, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000afcd2, 0x000b1c72, 0x00000000, 0x0000602e, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000a0ca0, 0x000b1c72, 0x00000000, 0x0000d207, 0, 0, 0, 0 }, { 0x5b, 0x0004c71b, 0x000c0000, 0x00040000, 0x000049f5, 0, 0, 0, 0 }, { 0x5c, 0x000838e0, 0x000b1c72, 0x00000000, 0x00003e60, 0, 0, 0, 0 }, { 0x5d, 0x0004c71b, 0x000c0000, 0x00040000, 0x0000c30c, 0, 0, 0, 0 }, { 0x5e, 0x000838e0, 0x000b1c72, 0x00000000, 0x0000764e, 0, 0, 0, 0 }, { 0x5f, 0x00049160, 0x000aec97, 0x00000000, 0x00007ce7, 0, 0, 0, 0 }, { 0x60, 0x00049160, 0x000b1c72, 0x00000000, 0x0000602e, 0, 0, 1, C_60_Ligature }, { 0x61, 0x0007e6b4, 0x00071c72, 0x00000000, 0x00002944, 3, C_61_Kerning, 0, 0 }, { 0x62, 0x00087e67, 0x000b1c72, 0x00000000, 0x00008244, 9, C_62_Kerning, 0, 0 }, { 0x63, 0x00074f00, 0x00071c72, 0x00000000, 0x0000b95c, 0, 0, 0, 0 }, { 0x64, 0x00087e67, 0x000b1c72, 0x00000000, 0x0000764e, 0, 0, 0, 0 }, { 0x65, 0x00074f02, 0x00071c72, 0x00000000, 0x00003e60, 0, 0, 0, 0 }, { 0x66, 0x00050650, 0x000b1c72, 0x00000000, 0x000064b9, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x000838e0, 0x00071c72, 0x00031c72, 0x0000a557, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x00087e67, 0x000b1c72, 0x00000000, 0x000049f5, 0, 0, 0, 0 }, { 0x69, 0x0003ed07, 0x000aec97, 0x00000000, 0x00008244, 0, 0, 0, 0 }, { 0x6a, 0x000461f7, 0x000aec97, 0x00031c72, 0x0000602e, 0, 0, 0, 0 }, { 0x6b, 0x00080977, 0x000b1c72, 0x00000000, 0x0000b95c, 4, C_6b_Kerning, 0, 0 }, { 0x6c, 0x0003ed07, 0x000b1c72, 0x00000000, 0x0000764e, 0, 0, 0, 0 }, { 0x6d, 0x000d0fc7, 0x00071c72, 0x00000000, 0x000049f5, 0, 0, 0, 0 }, { 0x6e, 0x00087e67, 0x00071c72, 0x00000000, 0x000049f5, 0, 0, 0, 0 }, { 0x6f, 0x000838e0, 0x00071c72, 0x00000000, 0x00002944, 9, C_6f_Kerning, 0, 0 }, { 0x70, 0x00087e67, 0x00071c72, 0x00031c72, 0x0000a557, 9, C_70_Kerning, 0, 0 }, { 0x71, 0x00087e67, 0x00071c72, 0x00031c72, 0x0000ac09, 0, 0, 0, 0 }, { 0x72, 0x00059e04, 0x00071c72, 0x00000000, 0x0000a557, 0, 0, 0, 0 }, { 0x73, 0x00064dbe, 0x00071c72, 0x00000000, 0x000064b9, 0, 0, 0, 0 }, { 0x74, 0x0005f030, 0x00092495, 0x00000000, 0x000049f5, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x00087e67, 0x00071c72, 0x00000000, 0x0000ac09, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x00079487, 0x00071c72, 0x00000000, 0x0000a557, 0, 0, 0, 0 }, { 0x77, 0x000b3c07, 0x00071c72, 0x00000000, 0x0000a557, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x00079487, 0x00071c72, 0x00000000, 0x00004c89, 0, 0, 0, 0 }, { 0x79, 0x00079487, 0x00071c72, 0x00031c72, 0x0000a557, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x000725e9, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000838e0, 0x00071c72, 0x00000000, 0x0000d207, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x001071c0, 0x00071c72, 0x00000000, 0x0000d207, 0, 0, 0, 0 }, { 0x7d, 0x000838e0, 0x000b1c72, 0x00000000, 0x000049f5, 0, 0, 0, 0 }, { 0x7e, 0x000838e0, 0x000ad9a0, 0x00000000, 0x0000e7ab, 0, 0, 0, 0 }, { 0x7f, 0x000838e0, 0x000aec97, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmssi9_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/TFM.hh0000644000175000017500000000556210661271102016201 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TFM_hh__ #define __TFM_hh__ #include "Object.hh" #include "SmartPtr.hh" #include "scaled.hh" #include "Char.hh" #include "String.hh" #include "BoundingBox.hh" class TFM : public Object { public: enum { UNITY_SHIFT = 20 }; struct Font { const char* family; unsigned char face; const char* codingScheme; int designSize; int checksum; unsigned int nDimensions; unsigned int nCharacters; }; struct Dimension { unsigned index; const char* name; int value; }; struct Kerning { UChar8 index; int value; }; struct Ligature { UChar8 index; UChar8 mode; UChar8 result; }; struct Character { UChar8 index; int width; int height; int depth; int italicCorrection; unsigned char nKernings; const Kerning* kerning; unsigned char nLigatures; const Ligature* ligature; }; protected: TFM(const String&, const Font*, const Dimension*, const Character*); virtual ~TFM(); public: static SmartPtr create(const String& _name, const Font* _font, const Dimension* _dimension, const Character* _character) { return new TFM(_name, _font, _dimension, _character); } String getName(void) const { return name; } String getFamily(void) const { return font->family; } unsigned char getFace(void) const { return font->face; } String getCodingScheme(void) const { return font->codingScheme; } scaled getDesignSize(void) const; String getDimensionName(unsigned) const; scaled getDimension(unsigned) const; scaled getDimension(const String&) const; BoundingBox getGlyphBoundingBox(UChar8) const; scaled getGlyphItalicCorrection(UChar8) const; bool getGlyphKerning(UChar8, UChar8, scaled&) const; bool getGlyphLigature(UChar8, UChar8, UChar8&, UChar8&) const; float getScale(const scaled&) const; protected: static scaled scaledOfFIX(int); const Character& getCharacter(UChar8) const; private: const String name; const Font* font; const Dimension* dimension; const Character* character; }; #endif // __TFM_hh__ gtkmathview-0.8.0/src/backend/common/tfm/cmbx12.cc0000644000175000017500000004221710704611255016640 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMBX", 0xe6, "TeX text", 0x00c00000, 0xc2d64ea0, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00060000 }, { 0x03, "space_stretch", 0x00030000 }, { 0x04, "space_shrink", 0x00020000 }, { 0x05, "x_height", 0x00071c71 }, { 0x06, "quad", 0x00120000 }, { 0x07, "extra_space", 0x00020000 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x0001a38f }, { 0x27, 0x0001a38f }, { 0x29, 0x0001a38f }, { 0x3f, 0x0001a38f }, { 0x5d, 0x0001a38f } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffa25ec }, { 0x6c, 0xfffb0000 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x00020000 }, { 0x3f, 0x00020000 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff8000 }, { 0x47, 0xffff8000 }, { 0x4f, 0xffff8000 }, { 0x51, 0xffff8000 }, { 0x54, 0xfffe8000 }, { 0x55, 0xffff8000 }, { 0x56, 0xfffe0000 }, { 0x57, 0xfffe0000 }, { 0x59, 0xfffe8000 }, { 0x74, 0xffff8000 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff8000 }, { 0x56, 0xffff8000 }, { 0x57, 0xffff8000 }, { 0x58, 0xffff8000 }, { 0x59, 0xffff8000 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffe0000 }, { 0x43, 0xffff8000 }, { 0x47, 0xffff8000 }, { 0x4f, 0xffff8000 }, { 0x51, 0xffff8000 }, { 0x61, 0xfffe8000 }, { 0x65, 0xfffe8000 }, { 0x6f, 0xfffe8000 }, { 0x72, 0xfffe8000 }, { 0x75, 0xfffe8000 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x00008000 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff8000 }, { 0x47, 0xffff8000 }, { 0x4f, 0xffff8000 }, { 0x51, 0xffff8000 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffe8000 }, { 0x56, 0xfffe0000 }, { 0x57, 0xfffe0000 }, { 0x59, 0xfffe8000 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff8000 }, { 0x56, 0xffff8000 }, { 0x57, 0xffff8000 }, { 0x58, 0xffff8000 }, { 0x59, 0xffff8000 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffe8000 }, { 0x2e, 0xfffe8000 }, { 0x41, 0xfffe8000 }, { 0x61, 0xffff8000 }, { 0x65, 0xffff8000 }, { 0x6f, 0xffff8000 } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff8000 }, { 0x47, 0xffff8000 }, { 0x4f, 0xffff8000 }, { 0x51, 0xffff8000 }, { 0x54, 0xfffe8000 }, { 0x55, 0xffff8000 }, { 0x56, 0xfffe0000 }, { 0x57, 0xfffe0000 }, { 0x59, 0xfffe8000 }, { 0x74, 0xffff8000 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffe8000 }, { 0x61, 0xfffe8000 }, { 0x65, 0xfffe8000 }, { 0x6f, 0xfffe8000 }, { 0x72, 0xfffe8000 }, { 0x75, 0xfffe8000 }, { 0x79, 0xffff8000 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffe0000 }, { 0x43, 0xffff8000 }, { 0x47, 0xffff8000 }, { 0x4f, 0xffff8000 }, { 0x51, 0xffff8000 }, { 0x61, 0xfffe8000 }, { 0x65, 0xfffe8000 }, { 0x6f, 0xfffe8000 }, { 0x72, 0xfffe8000 }, { 0x75, 0xfffe8000 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffe0000 }, { 0x43, 0xffff8000 }, { 0x47, 0xffff8000 }, { 0x4f, 0xffff8000 }, { 0x51, 0xffff8000 }, { 0x61, 0xfffe8000 }, { 0x65, 0xfffe8000 }, { 0x6f, 0xfffe8000 }, { 0x72, 0xfffe8000 }, { 0x75, 0xfffe8000 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff8000 }, { 0x47, 0xffff8000 }, { 0x4f, 0xffff8000 }, { 0x51, 0xffff8000 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffe8000 }, { 0x61, 0xfffe8000 }, { 0x65, 0xfffe8000 }, { 0x6f, 0xfffe8000 }, { 0x72, 0xfffe8000 }, { 0x75, 0xfffe8000 } }; static TFM::Kerning C_61_Kerning[] = { { 0x6a, 0x00010000 }, { 0x76, 0xffff8000 }, { 0x77, 0xffff8000 }, { 0x79, 0xffff8000 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x00008000 }, { 0x64, 0x00008000 }, { 0x65, 0x00008000 }, { 0x6a, 0x00010000 }, { 0x6f, 0x00008000 }, { 0x71, 0x00008000 }, { 0x76, 0xffff8000 }, { 0x77, 0xffff8000 }, { 0x78, 0xffff8000 }, { 0x79, 0xffff8000 } }; static TFM::Kerning C_63_Kerning[] = { { 0x68, 0xffff8000 }, { 0x6b, 0xffff8000 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x0001a38f }, { 0x27, 0x0001a38f }, { 0x29, 0x0001a38f }, { 0x3f, 0x0001a38f }, { 0x5d, 0x0001a38f } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x00008000 } }; static TFM::Kerning C_68_Kerning[] = { { 0x62, 0xffff8000 }, { 0x74, 0xffff8000 }, { 0x75, 0xffff8000 }, { 0x76, 0xffff8000 }, { 0x77, 0xffff8000 }, { 0x79, 0xffff8000 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff0000 }, { 0x61, 0xffff8000 }, { 0x63, 0xffff8000 }, { 0x65, 0xffff8000 }, { 0x6f, 0xffff8000 } }; static TFM::Kerning C_6d_Kerning[] = { { 0x62, 0xffff8000 }, { 0x74, 0xffff8000 }, { 0x75, 0xffff8000 }, { 0x76, 0xffff8000 }, { 0x77, 0xffff8000 }, { 0x79, 0xffff8000 } }; static TFM::Kerning C_6e_Kerning[] = { { 0x62, 0xffff8000 }, { 0x74, 0xffff8000 }, { 0x75, 0xffff8000 }, { 0x76, 0xffff8000 }, { 0x77, 0xffff8000 }, { 0x79, 0xffff8000 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x00008000 }, { 0x64, 0x00008000 }, { 0x65, 0x00008000 }, { 0x6a, 0x00010000 }, { 0x6f, 0x00008000 }, { 0x71, 0x00008000 }, { 0x76, 0xffff8000 }, { 0x77, 0xffff8000 }, { 0x78, 0xffff8000 }, { 0x79, 0xffff8000 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x00008000 }, { 0x64, 0x00008000 }, { 0x65, 0x00008000 }, { 0x6a, 0x00010000 }, { 0x6f, 0x00008000 }, { 0x71, 0x00008000 }, { 0x76, 0xffff8000 }, { 0x77, 0xffff8000 }, { 0x78, 0xffff8000 }, { 0x79, 0xffff8000 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff8000 }, { 0x79, 0xffff8000 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff8000 } }; static TFM::Kerning C_76_Kerning[] = { { 0x61, 0xffff0000 }, { 0x61, 0xffff8000 }, { 0x63, 0xffff8000 }, { 0x65, 0xffff8000 }, { 0x6f, 0xffff8000 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff8000 }, { 0x63, 0xffff8000 }, { 0x65, 0xffff8000 }, { 0x6f, 0xffff8000 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffe8000 }, { 0x2e, 0xfffe8000 }, { 0x61, 0xffff8000 }, { 0x65, 0xffff8000 }, { 0x6f, 0xffff8000 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000ad098, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000f0000, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000e0000, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000c97b5, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000c0000, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000e12f8, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000d0000, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000e0000, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000d0000, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000e0000, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000d0000, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000a8000, 0x000b1c71, 0x00000000, 0x0001a38f, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x000a0000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000a0000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000f0000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000f0000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00050000, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00058000, 0x00071c71, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00090000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00090000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x00090000, 0x000a1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00090000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00090000, 0x00097ba1, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000d97b5, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00080000, 0x00000000, 0x0002b8e3, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00092f69, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000d0000, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000e0000, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00090000, 0x0008aaab, 0x00018e39, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x00104bdb, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00124bdb, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000e0000, 0x000bc16c, 0x0000c71c, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00050000, 0x00071c71, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x00057b43, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x00094bdb, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000f0000, 0x000b1c71, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00090000, 0x000c0000, 0x0000e38f, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000f0000, 0x000c0000, 0x0000e38f, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000e0000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x00050000, 0x000b1c71, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x00070000, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00070000, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00090000, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000e0000, 0x000a0000, 0x00020000, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00050000, 0x00024bdb, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00060000, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x00050000, 0x00024bdb, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00090000, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00090000, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00090000, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00090000, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00090000, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00090000, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00090000, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00090000, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00090000, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00090000, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00090000, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00050000, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00050000, 0x00071c71, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00057b43, 0x00080000, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000e0000, 0x00062ea7, 0xfffe2ea7, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00088000, 0x00080000, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00088000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000e0000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000d97b5, 0x000afa50, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000ccbdb, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000d0000, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000dcbdb, 0x000afa50, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000bd098, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000b5098, 0x000afa50, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000e25ed, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000e12f8, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x0006b427, 0x000afa50, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x00094bdb, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000e17b5, 0x000afa50, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000ad098, 0x000afa50, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x001112f8, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000e12f8, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000d84bd, 0x000afa50, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000c4bdb, 0x000afa50, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000d84bd, 0x000afa50, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000d6d0b, 0x000afa50, 0x00000000, 0x00000000, 10, C_52_Kerning, 0, 0 }, { 0x53, 0x000a0000, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000c84bd, 0x000afa50, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000dd557, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000d97b5, 0x000afa50, 0x00000000, 0x00004000, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x001297b5, 0x000afa50, 0x00000000, 0x00004000, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000d97b5, 0x000afa50, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000d97b5, 0x000afa50, 0x00000000, 0x00007333, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000b0000, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x00050000, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00094bdb, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00050000, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00090000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00050000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x00050000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x0008c000, 0x00071c71, 0x00000000, 0x00000000, 4, C_61_Kerning, 0, 0 }, { 0x62, 0x000a0000, 0x000b1c71, 0x00000000, 0x00000000, 10, C_62_Kerning, 0, 0 }, { 0x63, 0x00080000, 0x00071c71, 0x00000000, 0x00000000, 2, C_63_Kerning, 0, 0 }, { 0x64, 0x000a0000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00083685, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x00058000, 0x000b1c71, 0x00000000, 0x0001a38f, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x00090000, 0x00071c71, 0x00031c71, 0x00004000, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000a0000, 0x000b1c71, 0x00000000, 0x00000000, 6, C_68_Kerning, 0, 0 }, { 0x69, 0x00050000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00058000, 0x000b1c71, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x00098000, 0x000b1c71, 0x00000000, 0x00000000, 5, C_6b_Kerning, 0, 0 }, { 0x6c, 0x00050000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000f0000, 0x00071c71, 0x00000000, 0x00000000, 6, C_6d_Kerning, 0, 0 }, { 0x6e, 0x000a0000, 0x00071c71, 0x00000000, 0x00000000, 6, C_6e_Kerning, 0, 0 }, { 0x6f, 0x00090000, 0x00071c71, 0x00000000, 0x00000000, 10, C_6f_Kerning, 0, 0 }, { 0x70, 0x000a0000, 0x00071c71, 0x00031c71, 0x00000000, 10, C_70_Kerning, 0, 0 }, { 0x71, 0x00098000, 0x00071c71, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x00075a14, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x0007199b, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00070000, 0x000a28a3, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x000a0000, 0x00071c71, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x00098000, 0x00071c71, 0x00000000, 0x00004000, 5, C_76_Kerning, 0, 0 }, { 0x77, 0x000d0000, 0x00071c71, 0x00000000, 0x00004000, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x00098000, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00098000, 0x00071c71, 0x00031c71, 0x00004000, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x00080000, 0x00071c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00090000, 0x00071c71, 0x00000000, 0x00008000, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x00120000, 0x00071c71, 0x00000000, 0x00008000, 0, 0, 0, 0 }, { 0x7d, 0x00090000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x00090000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00090000, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmbx12_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmssi17.cc0000644000175000017500000003761710704611260017036 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMSSI", 0xdb, "TeX text", 0x01147ae0, 0xa08fee75, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x000366a0 }, { 0x02, "space", 0x000503f1 }, { 0x03, "space_stretch", 0x000281f8 }, { 0x04, "space_shrink", 0x0001abfb }, { 0x05, "x_height", 0x0006e34b }, { 0x06, "quad", 0x000f0bd3 }, { 0x07, "extra_space", 0x0001abfb } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x00010b7d }, { 0x27, 0x00010b7d }, { 0x29, 0x00010b7d }, { 0x3f, 0x00010b7d }, { 0x5d, 0x00010b7d } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffc2600 }, { 0x6c, 0xfffc7012 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001abfb }, { 0x3f, 0x0001abfb } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 }, { 0x54, 0xfffebf04 }, { 0x55, 0xffff9501 }, { 0x56, 0xfffe5405 }, { 0x57, 0xfffe5405 }, { 0x59, 0xfffebf04 }, { 0x74, 0xffff9501 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff9501 }, { 0x56, 0xffff9501 }, { 0x57, 0xffff9501 }, { 0x58, 0xffff9501 }, { 0x59, 0xffff9501 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffebf04 }, { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 }, { 0x61, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 }, { 0x72, 0xffff9501 }, { 0x75, 0xffff9501 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x00006aff } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffebf04 }, { 0x56, 0xfffe5405 }, { 0x57, 0xfffe5405 }, { 0x59, 0xfffebf04 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff9501 }, { 0x56, 0xffff9501 }, { 0x57, 0xffff9501 }, { 0x58, 0xffff9501 }, { 0x59, 0xffff9501 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffebf04 }, { 0x2e, 0xfffebf04 }, { 0x41, 0xfffebf04 }, { 0x61, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffebf04 }, { 0x61, 0xfffebf04 }, { 0x65, 0xfffebf04 }, { 0x6f, 0xfffebf04 }, { 0x72, 0xfffebf04 }, { 0x75, 0xfffebf04 }, { 0x79, 0xfffebf04 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffebf04 }, { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 }, { 0x61, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 }, { 0x72, 0xffff9501 }, { 0x75, 0xffff9501 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffebf04 }, { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 }, { 0x61, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 }, { 0x72, 0xffff9501 }, { 0x75, 0xffff9501 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffebf04 }, { 0x61, 0xfffebf04 }, { 0x65, 0xfffebf04 }, { 0x6f, 0xfffebf04 }, { 0x72, 0xfffebf04 }, { 0x75, 0xfffebf04 } }; static TFM::Kerning C_61_Kerning[] = { { 0x72, 0xffff9501 }, { 0x77, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x00006aff }, { 0x64, 0x00006aff }, { 0x65, 0x00006aff }, { 0x6f, 0x00006aff }, { 0x71, 0x00006aff }, { 0x72, 0xffff9501 }, { 0x77, 0xffff9501 }, { 0x78, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x00010b7d }, { 0x27, 0x00010b7d }, { 0x29, 0x00010b7d }, { 0x3f, 0x00010b7d }, { 0x5d, 0x00010b7d } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x00006aff } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff9501 }, { 0x63, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x00006aff }, { 0x64, 0x00006aff }, { 0x65, 0x00006aff }, { 0x6f, 0x00006aff }, { 0x71, 0x00006aff }, { 0x72, 0xffff9501 }, { 0x77, 0xffff9501 }, { 0x78, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x00006aff }, { 0x64, 0x00006aff }, { 0x65, 0x00006aff }, { 0x6f, 0x00006aff }, { 0x71, 0x00006aff }, { 0x72, 0xffff9501 }, { 0x77, 0xffff9501 }, { 0x78, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff9501 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff9501 }, { 0x63, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffebf04 }, { 0x2e, 0xfffebf04 }, { 0x61, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000823ee, 0x000b1c72, 0x00000000, 0x00003997, 0, 0, 0, 0 }, { 0x01, 0x000c89da, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000bb3dd, 0x000b1c72, 0x00000000, 0x00006f6d, 0, 0, 0, 0 }, { 0x03, 0x00092803, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000a07e2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000a9c07, 0x000b1c72, 0x00000000, 0x0000ca94, 0, 0, 0, 0 }, { 0x06, 0x000adddf, 0x000b1c72, 0x00000000, 0x0000d217, 0, 0, 0, 0 }, { 0x07, 0x000bb3dd, 0x000b1c72, 0x00000000, 0x00005067, 0, 0, 0, 0 }, { 0x08, 0x000adddf, 0x000b1c72, 0x00000000, 0x0000c34e, 0, 0, 0, 0 }, { 0x09, 0x000bb3dd, 0x000b1c72, 0x00000000, 0x00005067, 0, 0, 0, 0 }, { 0x0a, 0x000adddf, 0x000b1c72, 0x00000000, 0x0000b490, 0, 0, 0, 0 }, { 0x0b, 0x0008c6e6, 0x000b1c72, 0x00000000, 0x00006f6d, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x00080ce4, 0x000b1c72, 0x00000000, 0x000086d7, 0, 0, 0, 0 }, { 0x0d, 0x00080ce4, 0x000b1c72, 0x00000000, 0x000084d3, 0, 0, 0, 0 }, { 0x0e, 0x000c3ad7, 0x000b1c72, 0x00000000, 0x000086d7, 0, 0, 0, 0 }, { 0x0f, 0x000c3ad7, 0x000b1c72, 0x00000000, 0x000084d3, 0, 0, 0, 0 }, { 0x10, 0x00038fee, 0x0006e34b, 0x00000000, 0x0000b490, 0, 0, 0, 0 }, { 0x11, 0x0003faec, 0x0006e34b, 0x00031cb5, 0x0000b490, 0, 0, 0, 0 }, { 0x12, 0x000785e9, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000785e9, 0x000b1c72, 0x00000000, 0x00006ea2, 0, 0, 0, 0 }, { 0x14, 0x000785e9, 0x000a0e28, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000785e9, 0x000b1c72, 0x00000000, 0x00008025, 0, 0, 0, 0 }, { 0x16, 0x000785e9, 0x000999ce, 0x00000000, 0x00003875, 0, 0, 0, 0 }, { 0x17, 0x000b3068, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x0006afec, 0x00000000, 0x0002b91f, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000736e7, 0x000b1c72, 0x00000000, 0x00006ea2, 0, 0, 0, 0 }, { 0x1a, 0x000adddf, 0x0006e34b, 0x00000000, 0x00005067, 0, 0, 0, 0 }, { 0x1b, 0x000bb3dd, 0x0006e34b, 0x00000000, 0x00005067, 0, 0, 0, 0 }, { 0x1c, 0x000785e9, 0x000871a6, 0x00018e5b, 0x0000d217, 0, 0, 0, 0 }, { 0x1d, 0x000cefe8, 0x000b1c72, 0x00000000, 0x0000d217, 0, 0, 0, 0 }, { 0x1e, 0x000e9be3, 0x000b1c72, 0x00000000, 0x0000d217, 0, 0, 0, 0 }, { 0x1f, 0x000bb3dd, 0x000be3a0, 0x0000c72e, 0x00006f6d, 0, 0, 0, 0 }, { 0x20, 0x00038fee, 0x0006e34b, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x0004cbfa, 0x000b1c72, 0x00000000, 0x00003875, 0, 0, 1, C_21_Ligature }, { 0x22, 0x000785e9, 0x000b1c72, 0x00000000, 0x00003875, 0, 0, 0, 0 }, { 0x23, 0x000c89da, 0x000b1c72, 0x00031cb5, 0x0000ca94, 0, 0, 0, 0 }, { 0x24, 0x000785e9, 0x000bfc50, 0x0000dfde, 0x0000b490, 0, 0, 0, 0 }, { 0x25, 0x000c89da, 0x000bfc50, 0x0000dfde, 0x000086d7, 0, 0, 0, 0 }, { 0x26, 0x000b64da, 0x000b1c72, 0x00000000, 0x000084d3, 0, 0, 0, 0 }, { 0x27, 0x00042df3, 0x000b1c72, 0x00000000, 0x0000a03d, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x0005d9ee, 0x000bfc50, 0x0003fc93, 0x00003875, 0, 0, 0, 0 }, { 0x29, 0x0005d9ee, 0x000bfc50, 0x0003fc93, 0x00006ea2, 0, 0, 0, 0 }, { 0x2a, 0x000785e9, 0x000bfc50, 0x00000000, 0x0000ca94, 0, 0, 0, 0 }, { 0x2b, 0x000bb3dd, 0x000903cf, 0x00010413, 0x00006ea2, 0, 0, 0, 0 }, { 0x2c, 0x00042df3, 0x00014938, 0x00020195, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x000503f1, 0x0006e34b, 0x00000000, 0x00005067, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x00042df3, 0x00014938, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000785e9, 0x000bfc50, 0x0003fc93, 0x00003875, 0, 0, 0, 0 }, { 0x30, 0x000785e9, 0x000a7e6b, 0x00000000, 0x0000b490, 0, 0, 0, 0 }, { 0x31, 0x000785e9, 0x000a7e6b, 0x00000000, 0x0000b490, 0, 0, 0, 0 }, { 0x32, 0x000785e9, 0x000a7e6b, 0x00000000, 0x0000b490, 0, 0, 0, 0 }, { 0x33, 0x000785e9, 0x000a7e6b, 0x00000000, 0x0000b490, 0, 0, 0, 0 }, { 0x34, 0x000785e9, 0x000a7e6b, 0x00000000, 0x0000b490, 0, 0, 0, 0 }, { 0x35, 0x000785e9, 0x000a7e6b, 0x00000000, 0x0000b490, 0, 0, 0, 0 }, { 0x36, 0x000785e9, 0x000a7e6b, 0x00000000, 0x0000b490, 0, 0, 0, 0 }, { 0x37, 0x000785e9, 0x000a7e6b, 0x00000000, 0x0000b490, 0, 0, 0, 0 }, { 0x38, 0x000785e9, 0x000a7e6b, 0x00000000, 0x0000b490, 0, 0, 0, 0 }, { 0x39, 0x000785e9, 0x000a7e6b, 0x00000000, 0x0000b490, 0, 0, 0, 0 }, { 0x3a, 0x00042df3, 0x0006e34b, 0x00000000, 0x00006f6d, 0, 0, 0, 0 }, { 0x3b, 0x00042df3, 0x0006e34b, 0x00020195, 0x00006f6d, 0, 0, 0, 0 }, { 0x3c, 0x0004cbfa, 0x0007ffbc, 0x00031cb5, 0x00005cdf, 0, 0, 0, 0 }, { 0x3d, 0x000bb3dd, 0x0005b073, 0xfffdb0b7, 0x0000ca94, 0, 0, 0, 0 }, { 0x3e, 0x00071aeb, 0x0007ffbc, 0x00031cb5, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00071aeb, 0x000b1c72, 0x00000000, 0x0000c34e, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000a07e2, 0x000b1c72, 0x00000000, 0x00006f6d, 0, 0, 0, 0 }, { 0x41, 0x0009fe00, 0x000b1c72, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000a02f1, 0x000b1c72, 0x00000000, 0x0000b490, 0, 0, 0, 0 }, { 0x43, 0x00099ce3, 0x000b1c72, 0x00000000, 0x0000d217, 0, 0, 0, 0 }, { 0x44, 0x000ad8ee, 0x000b1c72, 0x00000000, 0x00006f6d, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x0008f9ec, 0x000b1c72, 0x00000000, 0x0000d217, 0, 0, 0, 0 }, { 0x46, 0x00088eed, 0x000b1c72, 0x00000000, 0x00003997, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000a07e2, 0x000b1c72, 0x00000000, 0x0000d217, 0, 0, 0, 0 }, { 0x48, 0x000a9c07, 0x000b1c72, 0x00000000, 0x0000ca94, 0, 0, 0, 0 }, { 0x49, 0x00042412, 0x000b1c72, 0x00000000, 0x00003997, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000715fa, 0x000b1c72, 0x00000000, 0x0000ca94, 0, 0, 0, 0 }, { 0x4b, 0x000a68ff, 0x000b1c72, 0x00000000, 0x0000d217, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000823ee, 0x000b1c72, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000d1dff, 0x000b1c72, 0x00000000, 0x0000ca94, 0, 0, 0, 0 }, { 0x4e, 0x000a9c07, 0x000b1c72, 0x00000000, 0x0000ca94, 0, 0, 0, 0 }, { 0x4f, 0x000b15d6, 0x000b1c72, 0x00000000, 0x00006f6d, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000997f2, 0x000b1c72, 0x00000000, 0x0000b490, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000b15d6, 0x000b1c72, 0x00020195, 0x00006f6d, 0, 0, 0, 0 }, { 0x52, 0x0009b3ed, 0x000b1c72, 0x00000000, 0x0000b490, 0, 0, 0, 0 }, { 0x53, 0x00085be7, 0x000b1c72, 0x00000000, 0x00006ea2, 0, 0, 0, 0 }, { 0x54, 0x000a3fd9, 0x000b1c72, 0x00000000, 0x00003997, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000a4d04, 0x000b1c72, 0x00000000, 0x0000ca94, 0, 0, 0, 0 }, { 0x56, 0x0009fe00, 0x000b1c72, 0x00000000, 0x00005cdf, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x000e2bf4, 0x000b1c72, 0x00000000, 0x00005cdf, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x0009fe00, 0x000b1c72, 0x00000000, 0x00003997, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x0009fe00, 0x000b1c72, 0x00000000, 0x00006ea2, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000931e4, 0x000b1c72, 0x00000000, 0x0000d217, 0, 0, 0, 0 }, { 0x5b, 0x00045db1, 0x000bfc50, 0x0003fc93, 0x00005855, 0, 0, 0, 0 }, { 0x5c, 0x000785e9, 0x000b1c72, 0x00000000, 0x00005067, 0, 0, 0, 0 }, { 0x5d, 0x00045db1, 0x000bfc50, 0x0003fc93, 0x00005cdf, 0, 0, 0, 0 }, { 0x5e, 0x000785e9, 0x000b1c72, 0x00000000, 0x000084d3, 0, 0, 0, 0 }, { 0x5f, 0x00042df3, 0x000a8230, 0x00000000, 0x00006ea2, 0, 0, 0, 0 }, { 0x60, 0x00042df3, 0x000b1c72, 0x00000000, 0x0000a03d, 0, 0, 1, C_60_Ligature }, { 0x61, 0x000736e7, 0x0006e34b, 0x00000000, 0x00003997, 3, C_61_Kerning, 0, 0 }, { 0x62, 0x0007bde1, 0x000b1c72, 0x00000000, 0x00008025, 9, C_62_Kerning, 0, 0 }, { 0x63, 0x0006afec, 0x0006e34b, 0x00000000, 0x00008025, 0, 0, 0, 0 }, { 0x64, 0x0007bde1, 0x000b1c72, 0x00000000, 0x000084d3, 0, 0, 0, 0 }, { 0x65, 0x0006afec, 0x0006e34b, 0x00000000, 0x00005067, 0, 0, 0, 0 }, { 0x66, 0x000498f2, 0x000b1c72, 0x00000000, 0x00006f6d, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x000785e9, 0x0006e34b, 0x00031cb5, 0x0000a03d, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x0007bde1, 0x000b1c72, 0x00000000, 0x00005855, 0, 0, 0, 0 }, { 0x69, 0x00038fee, 0x000a8230, 0x00000000, 0x00006f6d, 0, 0, 0, 0 }, { 0x6a, 0x0003faec, 0x000a8230, 0x00031cb5, 0x00005855, 0, 0, 0, 0 }, { 0x6b, 0x000752e2, 0x000b1c72, 0x00000000, 0x00008025, 4, C_6b_Kerning, 0, 0 }, { 0x6c, 0x00038fee, 0x000b1c72, 0x00000000, 0x000084d3, 0, 0, 0, 0 }, { 0x6d, 0x000bebd5, 0x0006e34b, 0x00000000, 0x00005855, 0, 0, 0, 0 }, { 0x6e, 0x0007bde1, 0x0006e34b, 0x00000000, 0x00005855, 0, 0, 0, 0 }, { 0x6f, 0x000785e9, 0x0006e34b, 0x00000000, 0x00003997, 9, C_6f_Kerning, 0, 0 }, { 0x70, 0x0007bde1, 0x0006e34b, 0x00031cb5, 0x0000a03d, 9, C_70_Kerning, 0, 0 }, { 0x71, 0x0007bde1, 0x0006e34b, 0x00031cb5, 0x0000b490, 0, 0, 0, 0 }, { 0x72, 0x00051fed, 0x0006e34b, 0x00000000, 0x0000a03d, 0, 0, 0, 0 }, { 0x73, 0x0005c489, 0x0006e34b, 0x00000000, 0x00005cdf, 0, 0, 0, 0 }, { 0x74, 0x00056ef0, 0x0008db1a, 0x00000000, 0x00005855, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x0007bde1, 0x0006e34b, 0x00000000, 0x0000b490, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x0006e7e4, 0x0006e34b, 0x00000000, 0x0000a03d, 0, 0, 0, 0 }, { 0x77, 0x000a3fda, 0x0006e34b, 0x00000000, 0x0000a03d, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x0006e7e4, 0x0006e34b, 0x00000000, 0x00003997, 0, 0, 0, 0 }, { 0x79, 0x0006e7e4, 0x0006e34b, 0x00031cb5, 0x0000a03d, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x0006886a, 0x0006e34b, 0x00000000, 0x0000c34e, 0, 0, 0, 0 }, { 0x7b, 0x000785e9, 0x0006e34b, 0x00000000, 0x000086d7, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x000f0bd3, 0x0006e34b, 0x00000000, 0x000086d7, 0, 0, 0, 0 }, { 0x7d, 0x000785e9, 0x000b1c72, 0x00000000, 0x00006ea2, 0, 0, 0, 0 }, { 0x7e, 0x000785e9, 0x000a7b9a, 0x00000000, 0x0000d217, 0, 0, 0, 0 }, { 0x7f, 0x000785e9, 0x000a8230, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmssi17_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/msam7.cc0000644000175000017500000002567710704611261016600 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "MSAM", 0xf0, "TeX math symbols", 0x00700000, 0xb875ee37, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x0012baf2 }, { 0x07, "extra_space", 0x00000000 }, { 0x08, "num1", 0x000bb78e }, { 0x09, "num2", 0x00062477 }, { 0x0a, "num3", 0x00078a0e }, { 0x0b, "denom1", 0x000c08ce }, { 0x0c, "denom2", 0x000581e7 }, { 0x0d, "sup1", 0x00080a6b }, { 0x0e, "sup2", 0x0006e5d9 }, { 0x0f, "sup3", 0x00049249 }, { 0x10, "sub1", 0x00024925 }, { 0x11, "sub2", 0x00049249 }, { 0x12, "supdrop", 0x0005a697 }, { 0x13, "subdrop", 0x00012492 }, { 0x14, "delim1", 0x001b3332 }, { 0x15, "delim2", 0x001283a9 }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Character character[] = { { 0x00, 0x000e4929, 0x000be7a0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000e4929, 0x000be7a0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000e4929, 0x000be7a0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000e4929, 0x000be7a0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000e4929, 0x000be7a0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x00056db9, 0x00090cc2, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000c5149, 0x000b05b0, 0x0001f9d9, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000c5149, 0x000b05b0, 0x0001f9d9, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000e4929, 0x0009c81e, 0x0001f9d9, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000e4929, 0x0009c81e, 0x0001f9d9, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x001238e9, 0x00087630, 0x00007630, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x001238e9, 0x00087630, 0x00007630, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x000e4929, 0x000be7a0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000d4d39, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x00104109, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000b5559, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x001238e9, 0x00087630, 0x00007630, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x001238e9, 0x00087630, 0x00007630, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x001238e9, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x001238e9, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000f4519, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000f4519, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x0007e392, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x0007e392, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x0007e392, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x0007e392, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x001430c9, 0x00087630, 0x00007630, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x001430c9, 0x00087630, 0x00007630, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x001238e9, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x001238e9, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00095d79, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x00095d79, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x001238e9, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x00191c79, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x001238e9, 0x00090cc2, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x001238e9, 0x00090cc2, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000e4929, 0x000c92c0, 0x0004aa8b, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000e4929, 0x000c92c0, 0x0004aa8b, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000e4929, 0x000c92c0, 0x0004aa8b, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000e4929, 0x000d3219, 0x00054759, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x001430c9, 0x00090cc2, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000c5149, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000c5149, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000e4929, 0x0009c81e, 0x0001f9d9, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x000dc720, 0x000fcf40, 0x0001f9d9, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x000e4929, 0x000c92c0, 0x000475a7, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x000e4929, 0x000c92c0, 0x000475a7, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000e4929, 0x000d3219, 0x00054759, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000e4929, 0x000d3219, 0x00051cdb, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000e4929, 0x000be7a0, 0x0003ebe7, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00054515, 0x00090cc2, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x0008db70, 0x0007d952, 0xffffd952, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000e4929, 0x000a0c15, 0x0001f9d9, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x000e4929, 0x000a0c15, 0x0001f9d9, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000e4929, 0x000d3219, 0x00051cdb, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000e4929, 0x000be7a0, 0x0003ebe7, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000e4929, 0x00090cc2, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000e4929, 0x00090cc2, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x000e4929, 0x00090cc2, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000e4929, 0x00090cc2, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000fb6e0, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x00095d79, 0x000be7a0, 0x0003ebe7, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000c5969, 0x00090cc2, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x000e4929, 0x00090cc2, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x4a, 0x000e4929, 0x00090cc2, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x0008db70, 0x0007d952, 0xffffd952, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x0008db70, 0x0007d952, 0xffffd952, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x000c5969, 0x00090cc2, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000c5969, 0x00090cc2, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000c5969, 0x00090cc2, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x000e4929, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x000e4929, 0x000f7690, 0x00077690, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000e4929, 0x000f7690, 0x00077690, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x000e4929, 0x00113847, 0x00093847, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000e4929, 0x00113847, 0x00093847, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x000dbf02, 0x000b05b0, 0x00000000, 0x00007160, 0, 0, 0, 0 }, { 0x56, 0x001238e9, 0x000a9540, 0x0002a772, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x001238e9, 0x000a9540, 0x0002a772, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x000f4519, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x000b5559, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x000b5559, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x000b5559, 0x000be7a0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000d4d39, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000d4d39, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000d4d39, 0x00087630, 0x00007630, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000e4929, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x000e4929, 0x00090cc2, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x000e4929, 0x00090cc2, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x000c5149, 0x00090cc2, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x000c5149, 0x00090cc2, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000e16c5, 0x00090cc2, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x000e16c5, 0x00090cc2, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x000e4929, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x000e4929, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x000e4929, 0x000d3219, 0x00051cdb, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000e4929, 0x000d3219, 0x00051cdb, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x000e4929, 0x0009c81e, 0x0001a89b, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000e4929, 0x0009c81e, 0x0001a89b, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x00182089, 0x00090cc2, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x00182089, 0x00090cc2, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x00095d79, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x00095d79, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x000fd759, 0x000a9540, 0x0002a772, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x000f1c6e, 0x000a9540, 0x0002a772, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x000c5149, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x000e4929, 0x000be7a0, 0x0001f9d9, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x000e4929, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000e4929, 0x0007d952, 0xffffd952, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x00095d79, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00095d79, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x000f4519, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00095d79, 0x000d3219, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x000a5969, 0x0006e38e, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x000e4929, 0x0009c81e, 0x0001f9d9, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000e4929, 0x0009c81e, 0x0001f9d9, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000e4929, 0x0009c81e, 0x0001f9d9, 0x00000000, 0, 0, 0, 0 } }; void msam7_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmssi10.cc0000644000175000017500000003761710704611255017033 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMSSI", 0xea, "TeX text", 0x00a00000, 0xc5558de9, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x000366a0 }, { 0x02, "space", 0x00055556 }, { 0x03, "space_stretch", 0x0002aaab }, { 0x04, "space_shrink", 0x0001c71d }, { 0x05, "x_height", 0x00071c72 }, { 0x06, "quad", 0x00100003 }, { 0x07, "extra_space", 0x0001c71d } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x00011c72 }, { 0x27, 0x00011c72 }, { 0x29, 0x00011c72 }, { 0x3f, 0x00011c72 }, { 0x5d, 0x00011c72 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffbdddb }, { 0x6c, 0xfffc2d82 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001c71d }, { 0x3f, 0x0001c71d } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x54, 0xfffeaaaa }, { 0x55, 0xffff8e38 }, { 0x56, 0xfffe38e3 }, { 0x57, 0xfffe38e3 }, { 0x59, 0xfffeaaaa }, { 0x74, 0xffff8e38 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff8e38 }, { 0x56, 0xffff8e38 }, { 0x57, 0xffff8e38 }, { 0x58, 0xffff8e38 }, { 0x59, 0xffff8e38 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffeaaaa }, { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x61, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 }, { 0x72, 0xffff8e38 }, { 0x75, 0xffff8e38 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x000071c8 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffeaaaa }, { 0x56, 0xfffe38e3 }, { 0x57, 0xfffe38e3 }, { 0x59, 0xfffeaaaa } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff8e38 }, { 0x56, 0xffff8e38 }, { 0x57, 0xffff8e38 }, { 0x58, 0xffff8e38 }, { 0x59, 0xffff8e38 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffeaaaa }, { 0x2e, 0xfffeaaaa }, { 0x41, 0xfffeaaaa }, { 0x61, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffeaaaa }, { 0x61, 0xfffeaaaa }, { 0x65, 0xfffeaaaa }, { 0x6f, 0xfffeaaaa }, { 0x72, 0xfffeaaaa }, { 0x75, 0xfffeaaaa }, { 0x79, 0xfffeaaaa } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffeaaaa }, { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x61, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 }, { 0x72, 0xffff8e38 }, { 0x75, 0xffff8e38 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffeaaaa }, { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x61, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 }, { 0x72, 0xffff8e38 }, { 0x75, 0xffff8e38 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffeaaaa }, { 0x61, 0xfffeaaaa }, { 0x65, 0xfffeaaaa }, { 0x6f, 0xfffeaaaa }, { 0x72, 0xfffeaaaa }, { 0x75, 0xfffeaaaa } }; static TFM::Kerning C_61_Kerning[] = { { 0x72, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x000071c8 }, { 0x64, 0x000071c8 }, { 0x65, 0x000071c8 }, { 0x6f, 0x000071c8 }, { 0x71, 0x000071c8 }, { 0x72, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x78, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x00011c72 }, { 0x27, 0x00011c72 }, { 0x29, 0x00011c72 }, { 0x3f, 0x00011c72 }, { 0x5d, 0x00011c72 } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x000071c8 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff8e38 }, { 0x63, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x000071c8 }, { 0x64, 0x000071c8 }, { 0x65, 0x000071c8 }, { 0x6f, 0x000071c8 }, { 0x71, 0x000071c8 }, { 0x72, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x78, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x000071c8 }, { 0x64, 0x000071c8 }, { 0x65, 0x000071c8 }, { 0x6f, 0x000071c8 }, { 0x71, 0x000071c8 }, { 0x72, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x78, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff8e38 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff8e38 }, { 0x63, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffeaaaa }, { 0x2e, 0xfffeaaaa }, { 0x61, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x0008aaad, 0x000b1c72, 0x00000000, 0x00000cf3, 0, 0, 0, 0 }, { 0x01, 0x000d5558, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000c71ca, 0x000b1c72, 0x00000000, 0x00004fb2, 0, 0, 0, 0 }, { 0x03, 0x0009c720, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000aaaad, 0x000b1c72, 0x00000000, 0x0000d05a, 0, 0, 0, 0 }, { 0x05, 0x000b555a, 0x000b1c72, 0x00000000, 0x0000800e, 0, 0, 0, 0 }, { 0x06, 0x000b8e3b, 0x000b1c72, 0x00000000, 0x0000c685, 0, 0, 0, 0 }, { 0x07, 0x000c71ca, 0x000b1c72, 0x00000000, 0x00004188, 0, 0, 0, 0 }, { 0x08, 0x000b8e3b, 0x000b1c72, 0x00000000, 0x0000bc85, 0, 0, 0, 0 }, { 0x09, 0x000c71ca, 0x000b1c72, 0x00000000, 0x00004188, 0, 0, 0, 0 }, { 0x0a, 0x000b8e3b, 0x000b1c72, 0x00000000, 0x00009f56, 0, 0, 0, 0 }, { 0x0b, 0x00095558, 0x000b1c72, 0x00000000, 0x00006680, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x000893eb, 0x000b1c72, 0x00000000, 0x00007d40, 0, 0, 0, 0 }, { 0x0d, 0x000893eb, 0x000b1c72, 0x00000000, 0x000067e0, 0, 0, 0, 0 }, { 0x0e, 0x000d05b3, 0x000b1c72, 0x00000000, 0x00007d40, 0, 0, 0, 0 }, { 0x0f, 0x000d05b3, 0x000b1c72, 0x00000000, 0x000067e0, 0, 0, 0, 0 }, { 0x10, 0x0003d27e, 0x00071c72, 0x00000000, 0x0000aac3, 0, 0, 0, 0 }, { 0x11, 0x00044446, 0x00071c72, 0x00031c72, 0x0000aac3, 0, 0, 0, 0 }, { 0x12, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00080002, 0x000b1c72, 0x00000000, 0x00006680, 0, 0, 0, 0 }, { 0x14, 0x00080002, 0x000a1c72, 0x00000000, 0x0000bc85, 0, 0, 0, 0 }, { 0x15, 0x00080002, 0x000b1c72, 0x00000000, 0x000067e0, 0, 0, 0, 0 }, { 0x16, 0x00080002, 0x0009be00, 0x00000000, 0x00000cf3, 0, 0, 0, 0 }, { 0x17, 0x000bcce3, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00071c73, 0x00000000, 0x0002b8e3, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x0007b05e, 0x000b1c72, 0x00000000, 0x00006680, 0, 0, 0, 0 }, { 0x1a, 0x000b8e3b, 0x00071c72, 0x00000000, 0x00004188, 0, 0, 0, 0 }, { 0x1b, 0x000c71ca, 0x00071c72, 0x00000000, 0x00004188, 0, 0, 0, 0 }, { 0x1c, 0x00080002, 0x0008aaab, 0x00018e3a, 0x0000c685, 0, 0, 0, 0 }, { 0x1d, 0x000dc720, 0x000b1c72, 0x00000000, 0x0000c685, 0, 0, 0, 0 }, { 0x1e, 0x000f8e3d, 0x000b1c72, 0x00000000, 0x0000c685, 0, 0, 0, 0 }, { 0x1f, 0x000c71ca, 0x000be38e, 0x0000c71d, 0x00004fb2, 0, 0, 0, 0 }, { 0x20, 0x0003d27e, 0x00071c72, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x00051c73, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x00080002, 0x000b1c72, 0x00000000, 0x00000cf3, 0, 0, 0, 0 }, { 0x23, 0x000d5558, 0x000b1c72, 0x00031c70, 0x0000d05a, 0, 0, 0, 0 }, { 0x24, 0x00080002, 0x000c0000, 0x0000e38e, 0x00009f56, 0, 0, 0, 0 }, { 0x25, 0x000d5558, 0x000c0000, 0x0000e38e, 0x0000800e, 0, 0, 0, 0 }, { 0x26, 0x000c2225, 0x000b1c72, 0x00000000, 0x00007d40, 0, 0, 0, 0 }, { 0x27, 0x000471c8, 0x000b1c72, 0x00000000, 0x00007d35, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x000638e5, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000638e5, 0x000c0000, 0x00040000, 0x000067e0, 0, 0, 0, 0 }, { 0x2a, 0x00080002, 0x000c0000, 0x00000000, 0x0000aac3, 0, 0, 0, 0 }, { 0x2b, 0x000c71ca, 0x00095556, 0x00015556, 0x000067e0, 0, 0, 0, 0 }, { 0x2c, 0x000471c8, 0x00015555, 0x00020000, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00055556, 0x00071c72, 0x00000000, 0x00004fb2, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x000471c8, 0x00015555, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00080002, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00080002, 0x000a7d28, 0x00000000, 0x00009f56, 0, 0, 0, 0 }, { 0x31, 0x00080002, 0x000a7d28, 0x00000000, 0x00009f56, 0, 0, 0, 0 }, { 0x32, 0x00080002, 0x000a7d28, 0x00000000, 0x00009f56, 0, 0, 0, 0 }, { 0x33, 0x00080002, 0x000a7d28, 0x00000000, 0x00009f56, 0, 0, 0, 0 }, { 0x34, 0x00080002, 0x000a7d28, 0x00000000, 0x00009f56, 0, 0, 0, 0 }, { 0x35, 0x00080002, 0x000a7d28, 0x00000000, 0x00009f56, 0, 0, 0, 0 }, { 0x36, 0x00080002, 0x000a7d28, 0x00000000, 0x00009f56, 0, 0, 0, 0 }, { 0x37, 0x00080002, 0x000a7d28, 0x00000000, 0x00009f56, 0, 0, 0, 0 }, { 0x38, 0x00080002, 0x000a7d28, 0x00000000, 0x00009f56, 0, 0, 0, 0 }, { 0x39, 0x00080002, 0x000a7d28, 0x00000000, 0x00009f56, 0, 0, 0, 0 }, { 0x3a, 0x000471c8, 0x00071c72, 0x00000000, 0x00006680, 0, 0, 0, 0 }, { 0x3b, 0x000471c8, 0x00071c72, 0x00020000, 0x00006680, 0, 0, 0, 0 }, { 0x3c, 0x00051c73, 0x00080000, 0x00031c72, 0x00004188, 0, 0, 0, 0 }, { 0x3d, 0x000c71ca, 0x0005eb85, 0xfffdeb85, 0x0000d05a, 0, 0, 0, 0 }, { 0x3e, 0x00078e3b, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00078e3b, 0x000b1c72, 0x00000000, 0x0000bc85, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000aaaad, 0x000b1c72, 0x00000000, 0x00004fb2, 0, 0, 0, 0 }, { 0x41, 0x000aaaae, 0x000b1c72, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000aaaae, 0x000b1c72, 0x00000000, 0x00009f56, 0, 0, 0, 0 }, { 0x43, 0x000a38e6, 0x000b1c72, 0x00000000, 0x0000c685, 0, 0, 0, 0 }, { 0x44, 0x000b8e3d, 0x000b1c72, 0x00000000, 0x00004fb2, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x00098e3b, 0x000b1c72, 0x00000000, 0x0000c685, 0, 0, 0, 0 }, { 0x46, 0x00091c75, 0x000b1c72, 0x00000000, 0x00000cf3, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000aaaad, 0x000b1c72, 0x00000000, 0x0000c685, 0, 0, 0, 0 }, { 0x48, 0x000b555a, 0x000b1c72, 0x00000000, 0x0000800e, 0, 0, 0, 0 }, { 0x49, 0x000471ca, 0x000b1c72, 0x00000000, 0x00000cf3, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x00078e3b, 0x000b1c72, 0x00000000, 0x0000800e, 0, 0, 0, 0 }, { 0x4b, 0x000b1c76, 0x000b1c72, 0x00000000, 0x0000c685, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x0008aaad, 0x000b1c72, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000e0005, 0x000b1c72, 0x00000000, 0x0000800e, 0, 0, 0, 0 }, { 0x4e, 0x000b555a, 0x000b1c72, 0x00000000, 0x0000800e, 0, 0, 0, 0 }, { 0x4f, 0x000bc71e, 0x000b1c72, 0x00000000, 0x00004fb2, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000a38e6, 0x000b1c72, 0x00000000, 0x00009f56, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000bc71e, 0x000b1c72, 0x00020000, 0x00004fb2, 0, 0, 0, 0 }, { 0x52, 0x000a5558, 0x000b1c72, 0x00000000, 0x00009f56, 0, 0, 0, 0 }, { 0x53, 0x0008e390, 0x000b1c72, 0x00000000, 0x00006680, 0, 0, 0, 0 }, { 0x54, 0x000ae390, 0x000b1c72, 0x00000000, 0x00000cf3, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000b0005, 0x000b1c72, 0x00000000, 0x0000800e, 0, 0, 0, 0 }, { 0x56, 0x000aaaae, 0x000b1c72, 0x00000000, 0x000048d2, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x000f1c76, 0x000b1c72, 0x00000000, 0x000048d2, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000aaaae, 0x000b1c72, 0x00000000, 0x00000cf3, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000aaaae, 0x000b1c72, 0x00000000, 0x00004fb2, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x0009c71e, 0x000b1c72, 0x00000000, 0x0000c685, 0, 0, 0, 0 }, { 0x5b, 0x00049f4b, 0x000c0000, 0x00040000, 0x00004188, 0, 0, 0, 0 }, { 0x5c, 0x00080002, 0x000b1c72, 0x00000000, 0x0000282b, 0, 0, 0, 0 }, { 0x5d, 0x00049f4b, 0x000c0000, 0x00040000, 0x0000d05a, 0, 0, 0, 0 }, { 0x5e, 0x00080002, 0x000b1c72, 0x00000000, 0x00007d40, 0, 0, 0, 0 }, { 0x5f, 0x000471c8, 0x000adeae, 0x00000000, 0x00006680, 0, 0, 0, 0 }, { 0x60, 0x000471c8, 0x000b1c72, 0x00000000, 0x00007d35, 0, 0, 1, C_60_Ligature }, { 0x61, 0x0007b05d, 0x00071c72, 0x00000000, 0x0000282b, 3, C_61_Kerning, 0, 0 }, { 0x62, 0x00084446, 0x000b1c72, 0x00000000, 0x00007d35, 9, C_62_Kerning, 0, 0 }, { 0x63, 0x00071c73, 0x00071c72, 0x00000000, 0x0000aac3, 0, 0, 0, 0 }, { 0x64, 0x00084446, 0x000b1c72, 0x00000000, 0x000067e0, 0, 0, 0, 0 }, { 0x65, 0x00071c73, 0x00071c72, 0x00000000, 0x00004188, 0, 0, 0, 0 }, { 0x66, 0x0004e390, 0x000b1c72, 0x00000000, 0x00006680, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x00080002, 0x00071c72, 0x00031c72, 0x0000800e, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x00084446, 0x000b1c72, 0x00000000, 0x000048d2, 0, 0, 0, 0 }, { 0x69, 0x0003d27e, 0x000adeae, 0x00000000, 0x00007d35, 0, 0, 0, 0 }, { 0x6a, 0x00044446, 0x000adeae, 0x00031c72, 0x000048d2, 0, 0, 0, 0 }, { 0x6b, 0x0007d280, 0x000b1c72, 0x00000000, 0x0000aac3, 4, C_6b_Kerning, 0, 0 }, { 0x6c, 0x0003d27e, 0x000b1c72, 0x00000000, 0x000067e0, 0, 0, 0, 0 }, { 0x6d, 0x000cb60e, 0x00071c72, 0x00000000, 0x000048d2, 0, 0, 0, 0 }, { 0x6e, 0x00084446, 0x00071c72, 0x00000000, 0x000048d2, 0, 0, 0, 0 }, { 0x6f, 0x00080002, 0x00071c72, 0x00000000, 0x0000282b, 9, C_6f_Kerning, 0, 0 }, { 0x70, 0x00084446, 0x00071c72, 0x00031c72, 0x00009f56, 9, C_70_Kerning, 0, 0 }, { 0x71, 0x00084446, 0x00071c72, 0x00031c72, 0x0000aac3, 0, 0, 0, 0 }, { 0x72, 0x0005777a, 0x00071c72, 0x00000000, 0x0000800e, 0, 0, 0, 0 }, { 0x73, 0x00062223, 0x00071c72, 0x00000000, 0x000067e0, 0, 0, 0, 0 }, { 0x74, 0x0005c71d, 0x00092495, 0x00000000, 0x000048d2, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x00084446, 0x00071c72, 0x00000000, 0x0000aac3, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x000760b8, 0x00071c72, 0x00000000, 0x0000800e, 0, 0, 0, 0 }, { 0x77, 0x000aeef2, 0x00071c72, 0x00000000, 0x0000800e, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x000760b8, 0x00071c72, 0x00000000, 0x00004fb2, 0, 0, 0, 0 }, { 0x79, 0x000760b8, 0x00071c72, 0x00031c72, 0x0000800e, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x0006f4a0, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00080002, 0x00071c72, 0x00000000, 0x0000c685, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x00100003, 0x00071c72, 0x00000000, 0x0000c685, 0, 0, 0, 0 }, { 0x7d, 0x00080002, 0x000b1c72, 0x00000000, 0x00006680, 0, 0, 0, 0 }, { 0x7e, 0x00080002, 0x000ad34e, 0x00000000, 0x0000282b, 0, 0, 0, 0 }, { 0x7f, 0x00080002, 0x000adeae, 0x00000000, 0x00000cf3, 0, 0, 0, 0 } }; void cmssi10_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmtt9.cc0000644000175000017500000002515410704611261016602 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMTT", 0xec, "TeX typewriter text", 0x00900000, 0xdfa44e00, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00086660 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x0010ccc0 }, { 0x07, "extra_space", 0x00086660 } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x0e } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x0f } }; static TFM::Character character[] = { { 0x00, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x00086660, 0x000638e4, 0x00038e39, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x00086660, 0x000638e4, 0x00038e39, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00086660, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00086660, 0x0006e38e, 0x00038e39, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x00086660, 0x00090e39, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00086660, 0x00091c70, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00086660, 0x00000000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x00086660, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x00086660, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00086660, 0x0008aaab, 0x0001c71c, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x00086660, 0x000aaaab, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00086660, 0x00038195, 0x0001c71c, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00086660, 0x000b1c72, 0x00015555, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x00086660, 0x000b1c72, 0x00015555, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x00086660, 0x000b1c72, 0x00015555, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00086660, 0x000b1c72, 0x00015555, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00086660, 0x00085555, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x00086660, 0x00087d25, 0xfffeb609, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00086660, 0x0002097c, 0x000238e4, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00086660, 0x00087d25, 0xfffeb609, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x00086660, 0x0002097c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00086660, 0x000b1c72, 0x00015555, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00086660, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00086660, 0x0006e38e, 0x000238e4, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00086660, 0x0008ed0b, 0xffff25ee, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x00086660, 0x0006afe2, 0xfffce8c5, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00086660, 0x0008ed0b, 0xffff25ee, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4a, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x00086660, 0x0009c71c, 0x000238e4, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x00086660, 0x000b1c72, 0x00015555, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00086660, 0x000b1c72, 0x00015555, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00086660, 0x000b1c72, 0x00015555, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00086660, 0x00000000, 0x00018f2b, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x00086660, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00086660, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00086660, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x00086660, 0x0006e38e, 0x00038e39, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00086660, 0x0009c71c, 0x00038e39, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x00086660, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x00086660, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x00086660, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x00086660, 0x0006e38e, 0x00038e39, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x00086660, 0x0006e38e, 0x00038e39, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x00086660, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x00086660, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00086660, 0x0008db70, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x00086660, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x00086660, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x00086660, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x00086660, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00086660, 0x0006e38e, 0x00038e39, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x00086660, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00086660, 0x000b1c72, 0x00015555, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x00086660, 0x000b1c72, 0x00015555, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x00086660, 0x000b1c72, 0x00015555, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00086660, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmtt9_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmss9.cc0000644000175000017500000003761410704611257016611 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMSS", 0xec, "TeX text", 0x00900000, 0xd26fc777, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00057b40 }, { 0x03, "space_stretch", 0x0002bda0 }, { 0x04, "space_shrink", 0x0001d3c0 }, { 0x05, "x_height", 0x00071c72 }, { 0x06, "quad", 0x001071c0 }, { 0x07, "extra_space", 0x0001d3c0 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x00012459 }, { 0x27, 0x00012459 }, { 0x29, 0x00012459 }, { 0x3f, 0x00012459 }, { 0x5d, 0x00012459 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffbbda4 }, { 0x6c, 0xfffc12f9 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001d3c0 }, { 0x3f, 0x0001d3c0 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 }, { 0x54, 0xfffea130 }, { 0x55, 0xffff8b10 }, { 0x56, 0xfffe2c40 }, { 0x57, 0xfffe2c40 }, { 0x59, 0xfffea130 }, { 0x74, 0xffff8b10 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff8b10 }, { 0x56, 0xffff8b10 }, { 0x57, 0xffff8b10 }, { 0x58, 0xffff8b10 }, { 0x59, 0xffff8b10 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffea130 }, { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 }, { 0x61, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 }, { 0x72, 0xffff8b10 }, { 0x75, 0xffff8b10 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x000074f0 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffea130 }, { 0x56, 0xfffe2c40 }, { 0x57, 0xfffe2c40 }, { 0x59, 0xfffea130 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff8b10 }, { 0x56, 0xffff8b10 }, { 0x57, 0xffff8b10 }, { 0x58, 0xffff8b10 }, { 0x59, 0xffff8b10 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffea130 }, { 0x2e, 0xfffea130 }, { 0x41, 0xfffea130 }, { 0x61, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffea130 }, { 0x61, 0xfffea130 }, { 0x65, 0xfffea130 }, { 0x6f, 0xfffea130 }, { 0x72, 0xfffea130 }, { 0x75, 0xfffea130 }, { 0x79, 0xfffea130 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffea130 }, { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 }, { 0x61, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 }, { 0x72, 0xffff8b10 }, { 0x75, 0xffff8b10 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffea130 }, { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 }, { 0x61, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 }, { 0x72, 0xffff8b10 }, { 0x75, 0xffff8b10 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff8b10 }, { 0x47, 0xffff8b10 }, { 0x4f, 0xffff8b10 }, { 0x51, 0xffff8b10 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffea130 }, { 0x61, 0xfffea130 }, { 0x65, 0xfffea130 }, { 0x6f, 0xfffea130 }, { 0x72, 0xfffea130 }, { 0x75, 0xfffea130 } }; static TFM::Kerning C_61_Kerning[] = { { 0x72, 0xffff8b10 }, { 0x77, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x000074f0 }, { 0x64, 0x000074f0 }, { 0x65, 0x000074f0 }, { 0x6f, 0x000074f0 }, { 0x71, 0x000074f0 }, { 0x72, 0xffff8b10 }, { 0x77, 0xffff8b10 }, { 0x78, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x00012459 }, { 0x27, 0x00012459 }, { 0x29, 0x00012459 }, { 0x3f, 0x00012459 }, { 0x5d, 0x00012459 } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x000074f0 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff8b10 }, { 0x63, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x000074f0 }, { 0x64, 0x000074f0 }, { 0x65, 0x000074f0 }, { 0x6f, 0x000074f0 }, { 0x71, 0x000074f0 }, { 0x72, 0xffff8b10 }, { 0x77, 0xffff8b10 }, { 0x78, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x000074f0 }, { 0x64, 0x000074f0 }, { 0x65, 0x000074f0 }, { 0x6f, 0x000074f0 }, { 0x71, 0x000074f0 }, { 0x72, 0xffff8b10 }, { 0x77, 0xffff8b10 }, { 0x78, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff8b10 }, { 0x79, 0xffff8b10 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff8b10 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff8b10 }, { 0x63, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffea130 }, { 0x2e, 0xfffea130 }, { 0x61, 0xffff8b10 }, { 0x65, 0xffff8b10 }, { 0x6f, 0xffff8b10 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x0008f680, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000db420, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000cca40, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000a12f2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000af680, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000ba12b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000be060, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000cca40, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000be060, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000cca40, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000be060, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000997b0, 0x000b1c72, 0x00000000, 0x00012459, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x0008d094, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x0008d094, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000d61f4, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000d61f4, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x0003ed07, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x000461f7, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000838e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000838e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000838e0, 0x000a1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000838e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000838e0, 0x0009ceb2, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000afcd2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00074f00, 0x00000000, 0x0002b8e4, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x0007e6b4, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000be060, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000cca40, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x000838e0, 0x0008aaab, 0x00018e39, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000e2c39, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000ffff9, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000cca40, 0x000be38e, 0x0000c71c, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x0003ed07, 0x00071c72, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x000535b9, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x000838e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000db420, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000838e0, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000db420, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000c7814, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x00049160, 0x000b1c72, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x00066520, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00066520, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000838e0, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000cca40, 0x00097b40, 0x00017b40, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00049160, 0x000161f9, 0x00020652, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00057b40, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x00049160, 0x000161f9, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000838e0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000838e0, 0x000a7819, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000838e0, 0x000a7819, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000838e0, 0x000a7819, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000838e0, 0x000a7819, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000838e0, 0x000a7819, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000838e0, 0x000a7819, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000838e0, 0x000a7819, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000838e0, 0x000a7819, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000838e0, 0x000a7819, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000838e0, 0x000a7819, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00049160, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00049160, 0x00071c72, 0x00020652, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000535b9, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000cca40, 0x00060247, 0xfffe0247, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x0007c3f0, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x0007c3f0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000af680, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000afcd2, 0x000b1c72, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000af9a9, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000a8190, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000be389, 0x000b1c72, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x0009e060, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x00096b70, 0x000b1c72, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000af680, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000ba12b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x000497b2, 0x000b1c72, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x0007c719, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000b71c2, 0x000b1c72, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x0008f680, 0x000b1c72, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000e5ecb, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000ba12b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000c25e7, 0x000b1c72, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000a84b9, 0x000b1c72, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000c25e7, 0x000b1c72, 0x00020652, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000aa77c, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x000922c0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000b3c07, 0x000b1c72, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000b4efe, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000afcd2, 0x000b1c72, 0x00000000, 0x00003a79, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x000f8e32, 0x000b1c72, 0x00000000, 0x00003a79, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000afcd2, 0x000b1c72, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000afcd2, 0x000b1c72, 0x00000000, 0x0000693e, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000a0ca0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x0004c71b, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000838e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x0004c71b, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000838e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00049160, 0x000aec97, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x00049160, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x0007e6b4, 0x00071c72, 0x00000000, 0x00000000, 3, C_61_Kerning, 0, 0 }, { 0x62, 0x00087e67, 0x000b1c72, 0x00000000, 0x00000000, 9, C_62_Kerning, 0, 0 }, { 0x63, 0x00074f00, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00087e67, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00074f02, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x00050650, 0x000b1c72, 0x00000000, 0x00012459, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x000838e0, 0x00071c72, 0x00031c72, 0x00003a79, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x00087e67, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x0003ed07, 0x000aec97, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x000461f7, 0x000aec97, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x00080977, 0x000b1c72, 0x00000000, 0x00000000, 4, C_6b_Kerning, 0, 0 }, { 0x6c, 0x0003ed07, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000d0fc7, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x00087e67, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x000838e0, 0x00071c72, 0x00000000, 0x00000000, 9, C_6f_Kerning, 0, 0 }, { 0x70, 0x00087e67, 0x00071c72, 0x00031c72, 0x00000000, 9, C_70_Kerning, 0, 0 }, { 0x71, 0x00087e67, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x00059e04, 0x00071c72, 0x00000000, 0x00003a79, 0, 0, 0, 0 }, { 0x73, 0x00064dbe, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x0005f030, 0x00092495, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x00087e67, 0x00071c72, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x00079487, 0x00071c72, 0x00000000, 0x00003a79, 0, 0, 0, 0 }, { 0x77, 0x000b3c07, 0x00071c72, 0x00000000, 0x00003a79, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x00079487, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00079487, 0x00071c72, 0x00031c72, 0x00003a79, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x000725e9, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000838e0, 0x00071c72, 0x00000000, 0x000074f0, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x001071c0, 0x00071c72, 0x00000000, 0x000074f0, 0, 0, 0, 0 }, { 0x7d, 0x000838e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000838e0, 0x000ad9a0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000838e0, 0x000aec97, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmss9_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmbsy10.cc0000644000175000017500000003162410704611254017021 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMBSY", 0xea, "TeX math symbols", 0x00a00000, 0xe0c98c0c, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x00071c72 }, { 0x06, "quad", 0x00126660 }, { 0x07, "extra_space", 0x00000000 }, { 0x08, "num1", 0x000bf288 }, { 0x09, "num2", 0x0006c86e }, { 0x0a, "num3", 0x0007953b }, { 0x0b, "denom1", 0x000c1936 }, { 0x0c, "denom2", 0x0006002d }, { 0x0d, "sup1", 0x00069b35 }, { 0x0e, "sup2", 0x0005ce68 }, { 0x0f, "sup3", 0x00049f4a }, { 0x10, "sub1", 0x00026666 }, { 0x11, "sub2", 0x0004f290 }, { 0x12, "supdrop", 0x00062d80 }, { 0x13, "subdrop", 0x0000cccd }, { 0x14, "delim1", 0x00263d70 }, { 0x15, "delim2", 0x001028f6 }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Kerning C_41_Kerning[] = { { 0x30, 0x000393e8 } }; static TFM::Kerning C_42_Kerning[] = { { 0x30, 0x00028e38 } }; static TFM::Kerning C_43_Kerning[] = { { 0x30, 0x00028e38 } }; static TFM::Kerning C_44_Kerning[] = { { 0x30, 0x00018888 } }; static TFM::Kerning C_45_Kerning[] = { { 0x30, 0x00020b60 } }; static TFM::Kerning C_46_Kerning[] = { { 0x30, 0x00020b60 } }; static TFM::Kerning C_47_Kerning[] = { { 0x30, 0x00020b60 } }; static TFM::Kerning C_48_Kerning[] = { { 0x30, 0x00020b60 } }; static TFM::Kerning C_49_Kerning[] = { { 0x30, 0x000082d8 } }; static TFM::Kerning C_4a_Kerning[] = { { 0x30, 0x00031110 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x30, 0x000105b0 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x30, 0x00028e38 } }; static TFM::Kerning C_4d_Kerning[] = { { 0x30, 0x00028e38 } }; static TFM::Kerning C_4e_Kerning[] = { { 0x30, 0x00018888 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x30, 0x00020b60 } }; static TFM::Kerning C_50_Kerning[] = { { 0x30, 0x00018888 } }; static TFM::Kerning C_51_Kerning[] = { { 0x30, 0x00020b60 } }; static TFM::Kerning C_52_Kerning[] = { { 0x30, 0x00018888 } }; static TFM::Kerning C_53_Kerning[] = { { 0x30, 0x00028e38 } }; static TFM::Kerning C_54_Kerning[] = { { 0x30, 0x000082d8 } }; static TFM::Kerning C_55_Kerning[] = { { 0x30, 0x00018888 } }; static TFM::Kerning C_56_Kerning[] = { { 0x30, 0x000082d8 } }; static TFM::Kerning C_57_Kerning[] = { { 0x30, 0x00018888 } }; static TFM::Kerning C_58_Kerning[] = { { 0x30, 0x00028e38 } }; static TFM::Kerning C_59_Kerning[] = { { 0x30, 0x00018888 } }; static TFM::Kerning C_5a_Kerning[] = { { 0x30, 0x00028e38 } }; static TFM::Character character[] = { { 0x00, 0x000e4fa0, 0x000a2220, 0x00022220, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x00051c70, 0x000793e8, 0xffff93e8, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000e4fa0, 0x000a2220, 0x00022220, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x00093330, 0x00078e3a, 0xffff8e3a, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000e4fa0, 0x000a2220, 0x00022220, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x00093330, 0x000793e8, 0xffff93e8, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000e4fa0, 0x000a2220, 0x00022220, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000e4fa0, 0x000a2220, 0x00022220, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000e4fa0, 0x000a2220, 0x00022220, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000e4fa0, 0x000a2220, 0x00022220, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000e4fa0, 0x000a2220, 0x00022220, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000e4fa0, 0x000a2220, 0x00022220, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x000e4fa0, 0x000a2220, 0x00022220, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x00126660, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x00093330, 0x000793e8, 0xffff93e8, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x00093330, 0x000793e8, 0xffff93e8, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x000e4fa0, 0x0008091b, 0x0000091b, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x000e4fa0, 0x0008091b, 0x0000091b, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000e4fa0, 0x000b258d, 0x0003258d, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000e4fa0, 0x000b258d, 0x0003258d, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000e4fa0, 0x000b258d, 0x0003258d, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000e4fa0, 0x000b258d, 0x0003258d, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000e4fa0, 0x000b258d, 0x0003258d, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000e4fa0, 0x000b258d, 0x0003258d, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x000e4fa0, 0x000641fe, 0xfffe41fe, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000e4fa0, 0x00086420, 0x00006420, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000e4fa0, 0x00095e70, 0x00015e70, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000e4fa0, 0x00095e70, 0x00015e70, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00126660, 0x00095e70, 0x00015e70, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x00126660, 0x00095e70, 0x00015e70, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000e4fa0, 0x00095e70, 0x00015e70, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000e4fa0, 0x00095e70, 0x00015e70, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00126660, 0x000641fe, 0xfffe41fe, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x00126660, 0x000641fe, 0xfffe41fe, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x00093330, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x00093330, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00126660, 0x000641fe, 0xfffe41fe, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x00126660, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x00126660, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000e4fa0, 0x0008091b, 0x0000091b, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x00126660, 0x000641fe, 0xfffe41fe, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00126660, 0x000641fe, 0xfffe41fe, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000b3e90, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000b3e90, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00126660, 0x000641fe, 0xfffe41fe, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00126660, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x00126660, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000e4fa0, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000582d6, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00126660, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000c4440, 0x00095e70, 0x00015e70, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000c4440, 0x00095e70, 0x00015e70, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00105b00, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00105b00, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00000000, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00000000, 0x000641fe, 0xfffe41fe, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000a38e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000a38e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000c4440, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00093330, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000d49f0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000d49f0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000e4fa0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000e4fa0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000b3e90, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000ebb4d, 0x000afa50, 0x00000000, 0x00000000, 1, C_41_Kerning, 0, 0 }, { 0x42, 0x000bf72b, 0x000afa50, 0x00000000, 0x00005c33, 1, C_42_Kerning, 0, 0 }, { 0x43, 0x0009cec6, 0x000afa50, 0x00000000, 0x0000c11b, 1, C_43_Kerning, 0, 0 }, { 0x44, 0x000e45f5, 0x000afa50, 0x00000000, 0x000082d8, 1, C_44_Kerning, 0, 0 }, { 0x45, 0x0009b608, 0x000afa50, 0x00000000, 0x0001539e, 1, C_45_Kerning, 0, 0 }, { 0x46, 0x000d0682, 0x000afa50, 0x00000000, 0x0001a0b6, 1, C_46_Kerning, 0, 0 }, { 0x47, 0x000ae7d0, 0x000afa50, 0x00018e3a, 0x0000e44b, 1, C_47_Kerning, 0, 0 }, { 0x48, 0x000fcc58, 0x000afa50, 0x00000000, 0x00000000, 1, C_48_Kerning, 0, 0 }, { 0x49, 0x000a473b, 0x000afa50, 0x00000000, 0x00014d7a, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000c7896, 0x000afa50, 0x00018e3a, 0x00030002, 1, C_4a_Kerning, 0, 0 }, { 0x4b, 0x000df0a3, 0x000afa50, 0x00000000, 0x00000000, 1, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000c9c6d, 0x000afa50, 0x00000000, 0x00000000, 1, C_4c_Kerning, 0, 0 }, { 0x4d, 0x00160b93, 0x000afa50, 0x00000000, 0x00000000, 1, C_4d_Kerning, 0, 0 }, { 0x4e, 0x000eff45, 0x000afa50, 0x00000000, 0x00026ea6, 1, C_4e_Kerning, 0, 0 }, { 0x4f, 0x000e7d23, 0x000afa50, 0x00000000, 0x000082d8, 1, C_4f_Kerning, 0, 0 }, { 0x50, 0x000cf52d, 0x000afa50, 0x00000000, 0x00015a73, 1, C_50_Kerning, 0, 0 }, { 0x51, 0x000f06ce, 0x000afa50, 0x00018e3a, 0x00000000, 1, C_51_Kerning, 0, 0 }, { 0x52, 0x000fd54e, 0x000afa50, 0x00000000, 0x00000000, 1, C_52_Kerning, 0, 0 }, { 0x53, 0x000b2465, 0x000afa50, 0x00000000, 0x00012400, 1, C_53_Kerning, 0, 0 }, { 0x54, 0x000a4e68, 0x000afa50, 0x00000000, 0x0004471d, 1, C_54_Kerning, 0, 0 }, { 0x55, 0x000b6f78, 0x000afa50, 0x00000000, 0x0001a0b6, 1, C_55_Kerning, 0, 0 }, { 0x56, 0x000bcc38, 0x000afa50, 0x00000000, 0x00015a73, 1, C_56_Kerning, 0, 0 }, { 0x57, 0x0012b29b, 0x000afa50, 0x00000000, 0x00015a73, 1, C_57_Kerning, 0, 0 }, { 0x58, 0x000d114b, 0x000afa50, 0x00000000, 0x00025a36, 1, C_58_Kerning, 0, 0 }, { 0x59, 0x000c2343, 0x000afa50, 0x00018e3a, 0x00015a73, 1, C_59_Kerning, 0, 0 }, { 0x5a, 0x000d1875, 0x000afa50, 0x00000000, 0x00014d5d, 1, C_5a_Kerning, 0, 0 }, { 0x5b, 0x000c4440, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000c4440, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000c4440, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000c4440, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000c4440, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000b3e90, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x000b3e90, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00082d80, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00082d80, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00082d80, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00082d80, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x00093330, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x00093330, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x000727d0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x000727d0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00051c70, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x00093330, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x00093330, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000b3e90, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x00093330, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x00051c70, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x000f5550, 0x0000f5c3, 0x000f0a3d, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x000e6662, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x000f5550, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x0009199a, 0x000b1c72, 0x00031c72, 0x00020b60, 0, 0, 0, 0 }, { 0x74, 0x000c4440, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x000c4440, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x000e4fa0, 0x000b258d, 0x0003258d, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000e4fa0, 0x000b258d, 0x0003258d, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x00086c15, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00082d80, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x00082d80, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000b3e90, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x000e4fa0, 0x000b1c72, 0x000212f6, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x000e4fa0, 0x000b1c72, 0x000212f6, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000e4fa0, 0x000b1c72, 0x000212f6, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000e4fa0, 0x000b1c72, 0x000212f6, 0x00000000, 0, 0, 0, 0 } }; void cmbsy10_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmbx6.cc0000644000175000017500000004221610704611255016562 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMBX", 0xf2, "TeX text", 0x00600000, 0x8045c074, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00077f0b }, { 0x03, "space_stretch", 0x00039998 }, { 0x04, "space_shrink", 0x00026665 }, { 0x05, "x_height", 0x00071c73 }, { 0x06, "quad", 0x00163145 }, { 0x07, "extra_space", 0x00026665 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x0001ff0d }, { 0x27, 0x0001ff0d }, { 0x29, 0x0001ff0d }, { 0x3f, 0x0001ff0d }, { 0x5d, 0x0001ff0d } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfff8cccb }, { 0x6c, 0xfff9b428 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x00026665 }, { 0x3f, 0x00026665 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff6665 }, { 0x47, 0xffff6665 }, { 0x4f, 0xffff6665 }, { 0x51, 0xffff6665 }, { 0x54, 0xfffe3333 }, { 0x55, 0xffff6665 }, { 0x56, 0xfffd999b }, { 0x57, 0xfffd999b }, { 0x59, 0xfffe3333 }, { 0x74, 0xffff6665 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff6665 }, { 0x56, 0xffff6665 }, { 0x57, 0xffff6665 }, { 0x58, 0xffff6665 }, { 0x59, 0xffff6665 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffd999b }, { 0x43, 0xffff6665 }, { 0x47, 0xffff6665 }, { 0x4f, 0xffff6665 }, { 0x51, 0xffff6665 }, { 0x61, 0xfffe3333 }, { 0x65, 0xfffe3333 }, { 0x6f, 0xfffe3333 }, { 0x72, 0xfffe3333 }, { 0x75, 0xfffe3333 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x0000999b } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff6665 }, { 0x47, 0xffff6665 }, { 0x4f, 0xffff6665 }, { 0x51, 0xffff6665 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffe3333 }, { 0x56, 0xfffd999b }, { 0x57, 0xfffd999b }, { 0x59, 0xfffe3333 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff6665 }, { 0x56, 0xffff6665 }, { 0x57, 0xffff6665 }, { 0x58, 0xffff6665 }, { 0x59, 0xffff6665 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffe3333 }, { 0x2e, 0xfffe3333 }, { 0x41, 0xfffe3333 }, { 0x61, 0xffff6665 }, { 0x65, 0xffff6665 }, { 0x6f, 0xffff6665 } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff6665 }, { 0x47, 0xffff6665 }, { 0x4f, 0xffff6665 }, { 0x51, 0xffff6665 }, { 0x54, 0xfffe3333 }, { 0x55, 0xffff6665 }, { 0x56, 0xfffd999b }, { 0x57, 0xfffd999b }, { 0x59, 0xfffe3333 }, { 0x74, 0xffff6665 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffe3333 }, { 0x61, 0xfffe3333 }, { 0x65, 0xfffe3333 }, { 0x6f, 0xfffe3333 }, { 0x72, 0xfffe3333 }, { 0x75, 0xfffe3333 }, { 0x79, 0xffff6665 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffd999b }, { 0x43, 0xffff6665 }, { 0x47, 0xffff6665 }, { 0x4f, 0xffff6665 }, { 0x51, 0xffff6665 }, { 0x61, 0xfffe3333 }, { 0x65, 0xfffe3333 }, { 0x6f, 0xfffe3333 }, { 0x72, 0xfffe3333 }, { 0x75, 0xfffe3333 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffd999b }, { 0x43, 0xffff6665 }, { 0x47, 0xffff6665 }, { 0x4f, 0xffff6665 }, { 0x51, 0xffff6665 }, { 0x61, 0xfffe3333 }, { 0x65, 0xfffe3333 }, { 0x6f, 0xfffe3333 }, { 0x72, 0xfffe3333 }, { 0x75, 0xfffe3333 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff6665 }, { 0x47, 0xffff6665 }, { 0x4f, 0xffff6665 }, { 0x51, 0xffff6665 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffe3333 }, { 0x61, 0xfffe3333 }, { 0x65, 0xfffe3333 }, { 0x6f, 0xfffe3333 }, { 0x72, 0xfffe3333 }, { 0x75, 0xfffe3333 } }; static TFM::Kerning C_61_Kerning[] = { { 0x6a, 0x00013333 }, { 0x76, 0xffff6665 }, { 0x77, 0xffff6665 }, { 0x79, 0xffff6665 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x0000999b }, { 0x64, 0x0000999b }, { 0x65, 0x0000999b }, { 0x6a, 0x00013333 }, { 0x6f, 0x0000999b }, { 0x71, 0x0000999b }, { 0x76, 0xffff6665 }, { 0x77, 0xffff6665 }, { 0x78, 0xffff6665 }, { 0x79, 0xffff6665 } }; static TFM::Kerning C_63_Kerning[] = { { 0x68, 0xffff6665 }, { 0x6b, 0xffff6665 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x0001ff0d }, { 0x27, 0x0001ff0d }, { 0x29, 0x0001ff0d }, { 0x3f, 0x0001ff0d }, { 0x5d, 0x0001ff0d } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x0000999b } }; static TFM::Kerning C_68_Kerning[] = { { 0x62, 0xffff6665 }, { 0x74, 0xffff6665 }, { 0x75, 0xffff6665 }, { 0x76, 0xffff6665 }, { 0x77, 0xffff6665 }, { 0x79, 0xffff6665 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xfffecccd }, { 0x61, 0xffff6665 }, { 0x63, 0xffff6665 }, { 0x65, 0xffff6665 }, { 0x6f, 0xffff6665 } }; static TFM::Kerning C_6d_Kerning[] = { { 0x62, 0xffff6665 }, { 0x74, 0xffff6665 }, { 0x75, 0xffff6665 }, { 0x76, 0xffff6665 }, { 0x77, 0xffff6665 }, { 0x79, 0xffff6665 } }; static TFM::Kerning C_6e_Kerning[] = { { 0x62, 0xffff6665 }, { 0x74, 0xffff6665 }, { 0x75, 0xffff6665 }, { 0x76, 0xffff6665 }, { 0x77, 0xffff6665 }, { 0x79, 0xffff6665 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x0000999b }, { 0x64, 0x0000999b }, { 0x65, 0x0000999b }, { 0x6a, 0x00013333 }, { 0x6f, 0x0000999b }, { 0x71, 0x0000999b }, { 0x76, 0xffff6665 }, { 0x77, 0xffff6665 }, { 0x78, 0xffff6665 }, { 0x79, 0xffff6665 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x0000999b }, { 0x64, 0x0000999b }, { 0x65, 0x0000999b }, { 0x6a, 0x00013333 }, { 0x6f, 0x0000999b }, { 0x71, 0x0000999b }, { 0x76, 0xffff6665 }, { 0x77, 0xffff6665 }, { 0x78, 0xffff6665 }, { 0x79, 0xffff6665 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff6665 }, { 0x79, 0xffff6665 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff6665 } }; static TFM::Kerning C_76_Kerning[] = { { 0x61, 0xfffecccd }, { 0x61, 0xffff6665 }, { 0x63, 0xffff6665 }, { 0x65, 0xffff6665 }, { 0x6f, 0xffff6665 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff6665 }, { 0x63, 0xffff6665 }, { 0x65, 0xffff6665 }, { 0x6f, 0xffff6665 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffe3333 }, { 0x2e, 0xfffe3333 }, { 0x61, 0xffff6665 }, { 0x65, 0xffff6665 }, { 0x6f, 0xffff6665 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000d3330, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x00124bd3, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x001118a0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000f425b, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000eb23b, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x00110975, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000fe56d, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x001118a0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000fe56d, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x001118a0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000fe56d, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000d314b, 0x000b1c73, 0x00000000, 0x0001ff0d, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x000c97b0, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000c97b0, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x0012e388, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x0012e388, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00064bd8, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x0006e573, 0x00071c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000b18a3, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000b18a3, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000b18a3, 0x000a1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000b18a3, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000b18a3, 0x0009c71b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x0010758d, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x0009e570, 0x00000000, 0x0002b8e5, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000b5370, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000fe56d, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x001118a0, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x000b18a3, 0x0008aaad, 0x00018e3b, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x0013c715, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00162d7b, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x001118a0, 0x000bc16d, 0x0000c71d, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00064bd8, 0x00071c73, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x0006dfc0, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x000b5ce8, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x00124bd3, 0x000b1c73, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000b18a3, 0x000c0000, 0x0000e38d, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x00124bd3, 0x000c0000, 0x0000e38d, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x001118a0, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x00064bd8, 0x000b1c73, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x0008b23d, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x0008b23d, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000b18a3, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x001118a0, 0x000b3330, 0x00033330, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00064bd8, 0x0002aaab, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00077f0b, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x00064bd8, 0x0002aaab, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000b18a3, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000b18a3, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000b18a3, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000b18a3, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000b18a3, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000b18a3, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000b18a3, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000b18a3, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000b18a3, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000b18a3, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000b18a3, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00064bd8, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00064bd8, 0x00071c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x0006dfc0, 0x00080000, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x001118a0, 0x0006b05d, 0xfffeb05d, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000a7f0b, 0x00080000, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000a7f0b, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x001118a0, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x0010758d, 0x000afa50, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000f93e5, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000fe56d, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x0010c718, 0x000afa50, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000e6663, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000dcccb, 0x000afa50, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x00113ca8, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x00110975, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x00081a8d, 0x000afa50, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000b60b3, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x00110f28, 0x000afa50, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000d3330, 0x000afa50, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x0014a30d, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x00110975, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x001084b8, 0x000afa50, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000efa4b, 0x000afa50, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x001084b8, 0x000afa50, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x00104fa0, 0x000afa50, 0x00000000, 0x00000000, 10, C_52_Kerning, 0, 0 }, { 0x53, 0x000c4bd5, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000f5185, 0x000afa50, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x0010bf83, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x0010758d, 0x000afa50, 0x00000000, 0x00004ccd, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x0016758b, 0x000afa50, 0x00000000, 0x00004ccd, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x0010758d, 0x000afa50, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x0010758d, 0x000afa50, 0x00000000, 0x00008a3d, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000d7f08, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x000652ad, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000b5ce8, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000652ad, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000b18a3, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00064bd8, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x00064bd8, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x000acbd5, 0x00071c73, 0x00000000, 0x00000000, 4, C_61_Kerning, 0, 0 }, { 0x62, 0x000c4bd5, 0x000b1c73, 0x00000000, 0x00000000, 10, C_62_Kerning, 0, 0 }, { 0x63, 0x0009e570, 0x00071c73, 0x00000000, 0x00000000, 2, C_63_Kerning, 0, 0 }, { 0x64, 0x000c4bd5, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x000a24f8, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x0006e573, 0x000b1c73, 0x00000000, 0x0001ff0d, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x000b18a3, 0x00071c73, 0x00031c73, 0x00004ccd, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000c4bd5, 0x000b1c73, 0x00000000, 0x00000000, 6, C_68_Kerning, 0, 0 }, { 0x69, 0x00064bd8, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x0006e573, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000bb23d, 0x000b1c73, 0x00000000, 0x00000000, 5, C_6b_Kerning, 0, 0 }, { 0x6c, 0x00064bd8, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x00124bd3, 0x00071c73, 0x00000000, 0x00000000, 6, C_6d_Kerning, 0, 0 }, { 0x6e, 0x000c4bd5, 0x00071c73, 0x00000000, 0x00000000, 6, C_6e_Kerning, 0, 0 }, { 0x6f, 0x000b18a3, 0x00071c73, 0x00000000, 0x00000000, 10, C_6f_Kerning, 0, 0 }, { 0x70, 0x000c4bd5, 0x00071c73, 0x00031c73, 0x00000000, 10, C_70_Kerning, 0, 0 }, { 0x71, 0x000bb23b, 0x00071c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x00092315, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x0008d0f5, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x0008b23d, 0x000a28a5, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x000c4bd5, 0x00071c73, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x000bb23d, 0x00071c73, 0x00000000, 0x00004ccd, 5, C_76_Kerning, 0, 0 }, { 0x77, 0x000fe56d, 0x00071c73, 0x00000000, 0x00004ccd, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x000bb23d, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x000bb23d, 0x00071c73, 0x00031c73, 0x00004ccd, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x0009e570, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000b18a3, 0x00071c73, 0x00000000, 0x0000999b, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x00163145, 0x00071c73, 0x00000000, 0x0000999b, 0, 0, 0, 0 }, { 0x7d, 0x000b18a3, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000b18a3, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000b18a3, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmbx6_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmr6.cc0000644000175000017500000004221410704611257016412 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMR", 0xf2, "TeX text", 0x00600000, 0xb94161a8, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x0006aaa5 }, { 0x03, "space_stretch", 0x00031c70 }, { 0x04, "space_shrink", 0x000212f5 }, { 0x05, "x_height", 0x0006e38d }, { 0x06, "quad", 0x00138e2b }, { 0x07, "extra_space", 0x000212f5 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x00014bd8 }, { 0x27, 0x00014bd8 }, { 0x29, 0x00014bd8 }, { 0x3f, 0x00014bd8 }, { 0x5d, 0x00014bd8 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfff9a500 }, { 0x6c, 0xfffa5ed5 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x000212f5 }, { 0x3f, 0x000212f5 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff7b43 }, { 0x47, 0xffff7b43 }, { 0x4f, 0xffff7b43 }, { 0x51, 0xffff7b43 }, { 0x54, 0xfffe71c8 }, { 0x55, 0xffff7b43 }, { 0x56, 0xfffded0b }, { 0x57, 0xfffded0b }, { 0x59, 0xfffe71c8 }, { 0x74, 0xffff7b43 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff7b43 }, { 0x56, 0xffff7b43 }, { 0x57, 0xffff7b43 }, { 0x58, 0xffff7b43 }, { 0x59, 0xffff7b43 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffded0b }, { 0x43, 0xffff7b43 }, { 0x47, 0xffff7b43 }, { 0x4f, 0xffff7b43 }, { 0x51, 0xffff7b43 }, { 0x61, 0xfffe71c8 }, { 0x65, 0xfffe71c8 }, { 0x6f, 0xfffe71c8 }, { 0x72, 0xfffe71c8 }, { 0x75, 0xfffe71c8 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x000084bd } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff7b43 }, { 0x47, 0xffff7b43 }, { 0x4f, 0xffff7b43 }, { 0x51, 0xffff7b43 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffe71c8 }, { 0x56, 0xfffded0b }, { 0x57, 0xfffded0b }, { 0x59, 0xfffe71c8 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff7b43 }, { 0x56, 0xffff7b43 }, { 0x57, 0xffff7b43 }, { 0x58, 0xffff7b43 }, { 0x59, 0xffff7b43 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffe71c8 }, { 0x2e, 0xfffe71c8 }, { 0x41, 0xfffe71c8 }, { 0x61, 0xffff7b43 }, { 0x65, 0xffff7b43 }, { 0x6f, 0xffff7b43 } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff7b43 }, { 0x47, 0xffff7b43 }, { 0x4f, 0xffff7b43 }, { 0x51, 0xffff7b43 }, { 0x54, 0xfffe71c8 }, { 0x55, 0xffff7b43 }, { 0x56, 0xfffded0b }, { 0x57, 0xfffded0b }, { 0x59, 0xfffe71c8 }, { 0x74, 0xffff7b43 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffe71c8 }, { 0x61, 0xfffe71c8 }, { 0x65, 0xfffe71c8 }, { 0x6f, 0xfffe71c8 }, { 0x72, 0xfffe71c8 }, { 0x75, 0xfffe71c8 }, { 0x79, 0xffff7b43 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffded0b }, { 0x43, 0xffff7b43 }, { 0x47, 0xffff7b43 }, { 0x4f, 0xffff7b43 }, { 0x51, 0xffff7b43 }, { 0x61, 0xfffe71c8 }, { 0x65, 0xfffe71c8 }, { 0x6f, 0xfffe71c8 }, { 0x72, 0xfffe71c8 }, { 0x75, 0xfffe71c8 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffded0b }, { 0x43, 0xffff7b43 }, { 0x47, 0xffff7b43 }, { 0x4f, 0xffff7b43 }, { 0x51, 0xffff7b43 }, { 0x61, 0xfffe71c8 }, { 0x65, 0xfffe71c8 }, { 0x6f, 0xfffe71c8 }, { 0x72, 0xfffe71c8 }, { 0x75, 0xfffe71c8 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff7b43 }, { 0x47, 0xffff7b43 }, { 0x4f, 0xffff7b43 }, { 0x51, 0xffff7b43 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffe71c8 }, { 0x61, 0xfffe71c8 }, { 0x65, 0xfffe71c8 }, { 0x6f, 0xfffe71c8 }, { 0x72, 0xfffe71c8 }, { 0x75, 0xfffe71c8 } }; static TFM::Kerning C_61_Kerning[] = { { 0x6a, 0x0001097b }, { 0x76, 0xffff7b43 }, { 0x77, 0xffff7b43 }, { 0x79, 0xffff7b43 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x000084bd }, { 0x64, 0x000084bd }, { 0x65, 0x000084bd }, { 0x6a, 0x0001097b }, { 0x6f, 0x000084bd }, { 0x71, 0x000084bd }, { 0x76, 0xffff7b43 }, { 0x77, 0xffff7b43 }, { 0x78, 0xffff7b43 }, { 0x79, 0xffff7b43 } }; static TFM::Kerning C_63_Kerning[] = { { 0x68, 0xffff7b43 }, { 0x6b, 0xffff7b43 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x00014bd8 }, { 0x27, 0x00014bd8 }, { 0x29, 0x00014bd8 }, { 0x3f, 0x00014bd8 }, { 0x5d, 0x00014bd8 } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x000084bd } }; static TFM::Kerning C_68_Kerning[] = { { 0x62, 0xffff7b43 }, { 0x74, 0xffff7b43 }, { 0x75, 0xffff7b43 }, { 0x76, 0xffff7b43 }, { 0x77, 0xffff7b43 }, { 0x79, 0xffff7b43 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xfffef685 }, { 0x61, 0xffff7b43 }, { 0x63, 0xffff7b43 }, { 0x65, 0xffff7b43 }, { 0x6f, 0xffff7b43 } }; static TFM::Kerning C_6d_Kerning[] = { { 0x62, 0xffff7b43 }, { 0x74, 0xffff7b43 }, { 0x75, 0xffff7b43 }, { 0x76, 0xffff7b43 }, { 0x77, 0xffff7b43 }, { 0x79, 0xffff7b43 } }; static TFM::Kerning C_6e_Kerning[] = { { 0x62, 0xffff7b43 }, { 0x74, 0xffff7b43 }, { 0x75, 0xffff7b43 }, { 0x76, 0xffff7b43 }, { 0x77, 0xffff7b43 }, { 0x79, 0xffff7b43 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x000084bd }, { 0x64, 0x000084bd }, { 0x65, 0x000084bd }, { 0x6a, 0x0001097b }, { 0x6f, 0x000084bd }, { 0x71, 0x000084bd }, { 0x76, 0xffff7b43 }, { 0x77, 0xffff7b43 }, { 0x78, 0xffff7b43 }, { 0x79, 0xffff7b43 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x000084bd }, { 0x64, 0x000084bd }, { 0x65, 0x000084bd }, { 0x6a, 0x0001097b }, { 0x6f, 0x000084bd }, { 0x71, 0x000084bd }, { 0x76, 0xffff7b43 }, { 0x77, 0xffff7b43 }, { 0x78, 0xffff7b43 }, { 0x79, 0xffff7b43 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff7b43 }, { 0x79, 0xffff7b43 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff7b43 } }; static TFM::Kerning C_76_Kerning[] = { { 0x61, 0xfffef685 }, { 0x61, 0xffff7b43 }, { 0x63, 0xffff7b43 }, { 0x65, 0xffff7b43 }, { 0x6f, 0xffff7b43 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff7b43 }, { 0x63, 0xffff7b43 }, { 0x65, 0xffff7b43 }, { 0x6f, 0xffff7b43 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffe71c8 }, { 0x2e, 0xfffe71c8 }, { 0x61, 0xffff7b43 }, { 0x65, 0xffff7b43 }, { 0x6f, 0xffff7b43 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000c0f23, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000ffff5, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000ef67b, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000d4db5, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000ce385, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000e5730, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000ded00, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000ef67b, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000ded00, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000ef67b, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000ded00, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000bc713, 0x000b1c73, 0x00000000, 0x00014bd8, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x000b4255, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000b4255, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x0010e380, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x0010e380, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x0005a12b, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x000625e8, 0x0006e38d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x0009c715, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x0009c715, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x0009c715, 0x000a0e3b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x0009c715, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x0009c715, 0x0009425d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000e5730, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x0008bd9b, 0x00000000, 0x0002b8e5, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x0009c715, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000ded00, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000ef67b, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x0009c715, 0x000871c8, 0x00018e3b, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x00113e88, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x0013517d, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000ef67b, 0x000bb60d, 0x0000c71d, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x0005a12b, 0x0006e38d, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x0005a12b, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x0009c715, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000ffff5, 0x000b1c73, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x0009c715, 0x000c0000, 0x0000e38d, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000ffff5, 0x000c0000, 0x0000e38d, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000ef67b, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x0005a12b, 0x000b1c73, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x0007b420, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x0007b420, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x0009c715, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000ef67b, 0x000a38e0, 0x000238e0, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x0005a12b, 0x0001ed0b, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0006aaa5, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x0005a12b, 0x0001ed0b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x0009c715, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x0009c715, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x0009c715, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x0009c715, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x0009c715, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x0009c715, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x0009c715, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x0009c715, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x0009c715, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x0009c715, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x0009c715, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x0005a12b, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x0005a12b, 0x0006e38d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x0005a12b, 0x00080000, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000ef67b, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00094258, 0x00080000, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00094258, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000ef67b, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000e5730, 0x000aeef0, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000d9d5b, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000ded00, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000ea6d5, 0x000aeef0, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000d189d, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000c93e0, 0x000aeef0, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000f1108, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000e5730, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x000714d5, 0x000aeef0, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x0009fc2d, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000edbed, 0x000aeef0, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000c0f23, 0x000aeef0, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x001173a0, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000e5730, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000ef67b, 0x000aeef0, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000d189d, 0x000aeef0, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000ef67b, 0x000aeef0, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000e2218, 0x000aeef0, 0x00000000, 0x00000000, 10, C_52_Kerning, 0, 0 }, { 0x53, 0x000ad090, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000ded00, 0x000aeef0, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000e5730, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000e5730, 0x000aeef0, 0x00000000, 0x00004260, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x00138695, 0x000aeef0, 0x00000000, 0x00004260, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000e5730, 0x000aeef0, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000e5730, 0x000aeef0, 0x00000000, 0x00007778, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000bda0b, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x0005a12b, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x0009c715, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x0005a12b, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x0009c715, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x0005a12b, 0x000acde3, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x0005a12b, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x0009c715, 0x0006e38d, 0x00000000, 0x00000000, 4, C_61_Kerning, 0, 0 }, { 0x62, 0x000ad090, 0x000b1c73, 0x00000000, 0x00000000, 10, C_62_Kerning, 0, 0 }, { 0x63, 0x0008bd9b, 0x0006e38d, 0x00000000, 0x00000000, 2, C_63_Kerning, 0, 0 }, { 0x64, 0x000ad090, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x0008bd9d, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000625e8, 0x000b1c73, 0x00000000, 0x00014bd8, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x0009c715, 0x0006e38d, 0x00031c73, 0x00004260, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000ad090, 0x000b1c73, 0x00000000, 0x00000000, 6, C_68_Kerning, 0, 0 }, { 0x69, 0x0005a12b, 0x000acde3, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x000625e8, 0x000acde3, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000a4bd3, 0x000b1c73, 0x00000000, 0x00000000, 5, C_6b_Kerning, 0, 0 }, { 0x6c, 0x0005a12b, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000ffff5, 0x0006e38d, 0x00000000, 0x00000000, 6, C_6d_Kerning, 0, 0 }, { 0x6e, 0x000ad090, 0x0006e38d, 0x00000000, 0x00000000, 6, C_6e_Kerning, 0, 0 }, { 0x6f, 0x0009c715, 0x0006e38d, 0x00000000, 0x00000000, 10, C_6f_Kerning, 0, 0 }, { 0x70, 0x000ad090, 0x0006e38d, 0x00031c73, 0x00000000, 10, C_70_Kerning, 0, 0 }, { 0x71, 0x000a4bd3, 0x0006e38d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x0007b420, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x0007cead, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x0007b420, 0x0009d75d, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x000ad090, 0x0006e38d, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x000a4bd3, 0x0006e38d, 0x00000000, 0x00004260, 5, C_76_Kerning, 0, 0 }, { 0x77, 0x000ded00, 0x0006e38d, 0x00000000, 0x00004260, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x000a4bd3, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x000a4bd3, 0x0006e38d, 0x00031c73, 0x00004260, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x0008bd9b, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x0009c715, 0x0006e38d, 0x00000000, 0x000084bd, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x00138e2b, 0x0006e38d, 0x00000000, 0x000084bd, 0, 0, 0, 0 }, { 0x7d, 0x0009c715, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x0009c715, 0x000acde3, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x0009c715, 0x000acde3, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmr6_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmti7.cc0000644000175000017500000004140510704611260016561 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMTI", 0xf0, "TeX text", 0x00700000, 0x747d5cca, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x0006d4f2 }, { 0x03, "space_stretch", 0x0002d1b0 }, { 0x04, "space_shrink", 0x0001e120 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x00134d45 }, { 0x07, "extra_space", 0x0001e120 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x0001c2a5 }, { 0x27, 0x0001c2a5 }, { 0x29, 0x0001c2a5 }, { 0x3f, 0x0001c2a5 }, { 0x5d, 0x0001c2a5 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfff9e2b9 }, { 0x6c, 0xfffb0c2e } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001e120 }, { 0x3f, 0x0001e120 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff87b7 }, { 0x47, 0xffff87b7 }, { 0x4f, 0xffff87b7 }, { 0x51, 0xffff87b7 }, { 0x54, 0xfffe9727 }, { 0x55, 0xffff87b7 }, { 0x56, 0xfffe1ee0 }, { 0x57, 0xfffe1ee0 }, { 0x59, 0xfffe9727 }, { 0x61, 0xffff0f70 }, { 0x62, 0xffff87b7 }, { 0x63, 0xffff0f70 }, { 0x64, 0xffff0f70 }, { 0x65, 0xffff0f70 }, { 0x67, 0xffff0f70 }, { 0x68, 0xffff87b7 }, { 0x69, 0xffff87b7 }, { 0x6b, 0xffff87b7 }, { 0x6c, 0xffff87b7 }, { 0x6d, 0xffff87b7 }, { 0x6e, 0xffff87b7 }, { 0x6f, 0xffff0f70 }, { 0x71, 0xffff0f70 }, { 0x72, 0xffff87b7 }, { 0x74, 0xffff87b7 }, { 0x75, 0xffff87b7 }, { 0x76, 0xffff87b7 }, { 0x77, 0xffff87b7 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff87b7 }, { 0x56, 0xffff87b7 }, { 0x57, 0xffff87b7 }, { 0x58, 0xffff87b7 }, { 0x59, 0xffff87b7 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffe1ee0 }, { 0x43, 0xffff87b7 }, { 0x47, 0xffff87b7 }, { 0x4f, 0xffff87b7 }, { 0x51, 0xffff87b7 }, { 0x61, 0xfffe9727 }, { 0x65, 0xfffe9727 }, { 0x6f, 0xfffe9727 }, { 0x72, 0xfffe9727 }, { 0x75, 0xfffe9727 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff87b7 }, { 0x47, 0xffff87b7 }, { 0x4f, 0xffff87b7 }, { 0x51, 0xffff87b7 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffe9727 }, { 0x56, 0xfffe1ee0 }, { 0x57, 0xfffe1ee0 }, { 0x59, 0xfffe9727 }, { 0x61, 0xffff0f70 }, { 0x63, 0xffff0f70 }, { 0x64, 0xffff0f70 }, { 0x65, 0xffff0f70 }, { 0x67, 0xffff0f70 }, { 0x6f, 0xffff0f70 }, { 0x71, 0xffff0f70 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff87b7 }, { 0x56, 0xffff87b7 }, { 0x57, 0xffff87b7 }, { 0x58, 0xffff87b7 }, { 0x59, 0xffff87b7 } }; static TFM::Kerning C_50_Kerning[] = { { 0x41, 0xfffe9727 } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff87b7 }, { 0x47, 0xffff87b7 }, { 0x4f, 0xffff87b7 }, { 0x51, 0xffff87b7 }, { 0x54, 0xfffe9727 }, { 0x55, 0xffff87b7 }, { 0x56, 0xfffe1ee0 }, { 0x57, 0xfffe1ee0 }, { 0x59, 0xfffe9727 }, { 0x61, 0xffff0f70 }, { 0x62, 0xffff87b7 }, { 0x63, 0xffff0f70 }, { 0x64, 0xffff0f70 }, { 0x65, 0xffff0f70 }, { 0x67, 0xffff0f70 }, { 0x68, 0xffff87b7 }, { 0x69, 0xffff87b7 }, { 0x6b, 0xffff87b7 }, { 0x6c, 0xffff87b7 }, { 0x6d, 0xffff87b7 }, { 0x6e, 0xffff87b7 }, { 0x6f, 0xffff0f70 }, { 0x71, 0xffff0f70 }, { 0x72, 0xffff87b7 }, { 0x74, 0xffff87b7 }, { 0x75, 0xffff87b7 }, { 0x76, 0xffff87b7 }, { 0x77, 0xffff87b7 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffe9727 }, { 0x61, 0xfffe9727 }, { 0x65, 0xfffe9727 }, { 0x6f, 0xfffe9727 }, { 0x72, 0xfffe9727 }, { 0x75, 0xfffe9727 }, { 0x79, 0xfffe9727 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffe1ee0 }, { 0x43, 0xffff87b7 }, { 0x47, 0xffff87b7 }, { 0x4f, 0xffff87b7 }, { 0x51, 0xffff87b7 }, { 0x61, 0xfffe9727 }, { 0x65, 0xfffe9727 }, { 0x6f, 0xfffe9727 }, { 0x72, 0xfffe9727 }, { 0x75, 0xfffe9727 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffe9727 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff87b7 }, { 0x47, 0xffff87b7 }, { 0x4f, 0xffff87b7 }, { 0x51, 0xffff87b7 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffe9727 }, { 0x61, 0xfffe9727 }, { 0x65, 0xfffe9727 }, { 0x6f, 0xfffe9727 }, { 0x72, 0xfffe9727 }, { 0x75, 0xfffe9727 } }; static TFM::Kerning C_62_Kerning[] = { { 0x61, 0xffff0f70 }, { 0x63, 0xffff0f70 }, { 0x64, 0xffff0f70 }, { 0x65, 0xffff0f70 }, { 0x67, 0xffff0f70 }, { 0x6f, 0xffff0f70 }, { 0x71, 0xffff0f70 } }; static TFM::Kerning C_63_Kerning[] = { { 0x61, 0xffff0f70 }, { 0x63, 0xffff0f70 }, { 0x64, 0xffff0f70 }, { 0x65, 0xffff0f70 }, { 0x67, 0xffff0f70 }, { 0x6f, 0xffff0f70 }, { 0x71, 0xffff0f70 } }; static TFM::Kerning C_64_Kerning[] = { { 0x6c, 0x0000f090 } }; static TFM::Kerning C_65_Kerning[] = { { 0x61, 0xffff0f70 }, { 0x63, 0xffff0f70 }, { 0x64, 0xffff0f70 }, { 0x65, 0xffff0f70 }, { 0x67, 0xffff0f70 }, { 0x6f, 0xffff0f70 }, { 0x71, 0xffff0f70 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x0001c2a5 }, { 0x27, 0x0001c2a5 }, { 0x29, 0x0001c2a5 }, { 0x3f, 0x0001c2a5 }, { 0x5d, 0x0001c2a5 } }; static TFM::Kerning C_6c_Kerning[] = { { 0x6c, 0x0000f090 } }; static TFM::Kerning C_6e_Kerning[] = { { 0x27, 0xfffe1ee0 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x61, 0xffff0f70 }, { 0x63, 0xffff0f70 }, { 0x64, 0xffff0f70 }, { 0x65, 0xffff0f70 }, { 0x67, 0xffff0f70 }, { 0x6f, 0xffff0f70 }, { 0x71, 0xffff0f70 } }; static TFM::Kerning C_70_Kerning[] = { { 0x61, 0xffff0f70 }, { 0x63, 0xffff0f70 }, { 0x64, 0xffff0f70 }, { 0x65, 0xffff0f70 }, { 0x67, 0xffff0f70 }, { 0x6f, 0xffff0f70 }, { 0x71, 0xffff0f70 } }; static TFM::Kerning C_72_Kerning[] = { { 0x61, 0xffff0f70 }, { 0x63, 0xffff0f70 }, { 0x64, 0xffff0f70 }, { 0x65, 0xffff0f70 }, { 0x67, 0xffff0f70 }, { 0x6f, 0xffff0f70 }, { 0x71, 0xffff0f70 } }; static TFM::Kerning C_77_Kerning[] = { { 0x6c, 0x0000f090 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000bc0a7, 0x000ad8fe, 0x00000000, 0x0000f2cb, 0, 0, 0, 0 }, { 0x01, 0x000f4a02, 0x000ad8fe, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000e5972, 0x000ad8fe, 0x00000000, 0x0000c42e, 0, 0, 0, 0 }, { 0x03, 0x000cea1b, 0x000ad8fe, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000c7852, 0x000ad8fe, 0x00000000, 0x000067d2, 0, 0, 0, 0 }, { 0x05, 0x000ddaab, 0x000ad8fe, 0x00000000, 0x00006429, 0, 0, 0, 0 }, { 0x06, 0x000d68e2, 0x000ad8fe, 0x00000000, 0x0000c375, 0, 0, 0, 0 }, { 0x07, 0x000e5972, 0x000ad8fe, 0x00000000, 0x00006429, 0, 0, 0, 0 }, { 0x08, 0x000d68e2, 0x000ad8fe, 0x00000000, 0x0000e595, 0, 0, 0, 0 }, { 0x09, 0x000e5972, 0x000ad8fe, 0x00000000, 0x00006429, 0, 0, 0, 0 }, { 0x0a, 0x000d68e2, 0x000ad8fe, 0x00000000, 0x000133e9, 0, 0, 0, 0 }, { 0x0b, 0x000bc8c7, 0x000b1c72, 0x00031c72, 0x0000f05b, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x000ad839, 0x000b1c72, 0x00031c72, 0x0000e595, 0, 0, 0, 0 }, { 0x0d, 0x000b5080, 0x000b1c72, 0x00031c72, 0x0000e595, 0, 0, 0, 0 }, { 0x0e, 0x0010f8be, 0x000b1c72, 0x00031c72, 0x0000e595, 0, 0, 0, 0 }, { 0x0f, 0x001134e2, 0x000b1c72, 0x00031c72, 0x0000e595, 0, 0, 0, 0 }, { 0x10, 0x0005e462, 0x0006e38e, 0x00000000, 0x00006e1e, 0, 0, 0, 0 }, { 0x11, 0x00065cab, 0x0006e38e, 0x00031c72, 0x00006e1e, 0, 0, 0, 0 }, { 0x12, 0x0009a6a2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x0009a6a2, 0x000b1c72, 0x00000000, 0x00006429, 0, 0, 0, 0 }, { 0x14, 0x0009a6a2, 0x000a0e39, 0x00000000, 0x000133e9, 0, 0, 0, 0 }, { 0x15, 0x0009a6a2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x0009a6a2, 0x00092b10, 0x00000000, 0x00013670, 0, 0, 0, 0 }, { 0x17, 0x000f42f7, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x0008b612, 0x00000000, 0x0002b8e5, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000a1eee, 0x000b1c72, 0x00031c72, 0x00012aab, 0, 0, 0, 0 }, { 0x1a, 0x000d68e2, 0x0006e38e, 0x00000000, 0x00012aab, 0, 0, 0, 0 }, { 0x1b, 0x000d68e2, 0x0006e38e, 0x00000000, 0x00012aab, 0, 0, 0, 0 }, { 0x1c, 0x0009a6a2, 0x000871c7, 0x00018e39, 0x000087b7, 0, 0, 0, 0 }, { 0x1d, 0x00107377, 0x000ad8fe, 0x00000000, 0x0000c375, 0, 0, 0, 0 }, { 0x1e, 0x00125497, 0x000ad8fe, 0x00000000, 0x0000c375, 0, 0, 0, 0 }, { 0x1f, 0x000e5972, 0x000bb60e, 0x0000c71e, 0x0000c42e, 0, 0, 0, 0 }, { 0x20, 0x0004f3d2, 0x0006e38e, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x0005e462, 0x000b1c72, 0x00000000, 0x0000c42e, 0, 0, 1, C_21_Ligature }, { 0x22, 0x0009a6a2, 0x000b1c72, 0x00000000, 0x0000c42e, 0, 0, 0, 0 }, { 0x23, 0x000f4a02, 0x000b1c72, 0x00031c72, 0x00011102, 0, 0, 0, 0 }, { 0x24, 0x000e1560, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000f4a02, 0x000c0000, 0x0000e38e, 0x00011102, 0, 0, 0, 0 }, { 0x26, 0x000e5972, 0x000b1c72, 0x00000000, 0x00006429, 0, 0, 0, 0 }, { 0x27, 0x0005e462, 0x000b1c72, 0x00000000, 0x0000c42e, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x0007c582, 0x000c0000, 0x00040000, 0x000087b7, 0, 0, 0, 0 }, { 0x29, 0x0007c582, 0x000c0000, 0x00040000, 0x000087b7, 0, 0, 0, 0 }, { 0x2a, 0x0009a6a2, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000e5972, 0x0009a360, 0x0001a360, 0x000087b7, 0, 0, 0, 0 }, { 0x2c, 0x0005e462, 0x0001d75e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0006d4f2, 0x0006e38e, 0x00000000, 0x00006429, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x0005e462, 0x0001d75e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x0009a6a2, 0x000c0000, 0x00040000, 0x000087b7, 0, 0, 0, 0 }, { 0x30, 0x0009a6a2, 0x000a4fa5, 0x00000000, 0x00012aab, 0, 0, 0, 0 }, { 0x31, 0x0009a6a2, 0x000a4fa5, 0x00000000, 0x00012aab, 0, 0, 0, 0 }, { 0x32, 0x0009a6a2, 0x000a4fa5, 0x00000000, 0x00012aab, 0, 0, 0, 0 }, { 0x33, 0x0009a6a2, 0x000a4fa5, 0x00000000, 0x00012aab, 0, 0, 0, 0 }, { 0x34, 0x0009a6a2, 0x000a4fa5, 0x00031c72, 0x00012aab, 0, 0, 0, 0 }, { 0x35, 0x0009a6a2, 0x000a4fa5, 0x00000000, 0x00012aab, 0, 0, 0, 0 }, { 0x36, 0x0009a6a2, 0x000a4fa5, 0x00000000, 0x00012aab, 0, 0, 0, 0 }, { 0x37, 0x0009a6a2, 0x000a4fa5, 0x00031c72, 0x00012aab, 0, 0, 0, 0 }, { 0x38, 0x0009a6a2, 0x000a4fa5, 0x00000000, 0x00012aab, 0, 0, 0, 0 }, { 0x39, 0x0009a6a2, 0x000a4fa5, 0x00000000, 0x00012aab, 0, 0, 0, 0 }, { 0x3a, 0x0005e462, 0x0006e38e, 0x00000000, 0x0000c375, 0, 0, 0, 0 }, { 0x3b, 0x0005e462, 0x0006e38e, 0x00031c72, 0x0000c375, 0, 0, 0, 0 }, { 0x3c, 0x0005e462, 0x00080000, 0x00031c72, 0x00010a90, 0, 0, 0, 0 }, { 0x3d, 0x000e5972, 0x00062530, 0xfffe2530, 0x00011102, 0, 0, 0, 0 }, { 0x3e, 0x0009a6a2, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x0009a6a2, 0x000b1c72, 0x00000000, 0x0000c855, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000e5972, 0x000b1c72, 0x00000000, 0x0000c855, 0, 0, 0, 0 }, { 0x41, 0x000ddaab, 0x000ad8fe, 0x00000000, 0x00000000, 28, C_41_Kerning, 0, 0 }, { 0x42, 0x000d2980, 0x000ad8fe, 0x00000000, 0x000133e9, 0, 0, 0, 0 }, { 0x43, 0x000d68e2, 0x000ad8fe, 0x00000000, 0x000133e9, 0, 0, 0, 0 }, { 0x44, 0x000e1a10, 0x000ad8fe, 0x00000000, 0x0000c42e, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000cb137, 0x000ad8fe, 0x00000000, 0x0000c375, 0, 0, 0, 0 }, { 0x46, 0x000c38f0, 0x000ad8fe, 0x00000000, 0x0000f2cb, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000e75e5, 0x000ad8fe, 0x00000000, 0x00013670, 0, 0, 0, 0 }, { 0x48, 0x000ddaab, 0x000ad8fe, 0x00000000, 0x00006429, 0, 0, 0, 0 }, { 0x49, 0x000746bb, 0x000ad8fe, 0x00000000, 0x00006e1e, 0, 0, 0, 0 }, { 0x4a, 0x0009df87, 0x000ad8fe, 0x00000000, 0x0000f05b, 0, 0, 0, 0 }, { 0x4b, 0x000e52f5, 0x000ad8fe, 0x00000000, 0x000133e9, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000bc0a7, 0x000ad8fe, 0x00000000, 0x00000000, 11, C_4c_Kerning, 0, 0 }, { 0x4d, 0x0010ac5b, 0x000ad8fe, 0x00000000, 0x00006429, 0, 0, 0, 0 }, { 0x4e, 0x000ddaab, 0x000ad8fe, 0x00000000, 0x00006429, 0, 0, 0, 0 }, { 0x4f, 0x000e5972, 0x000ad8fe, 0x00000000, 0x0000c42e, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000cb137, 0x000ad8fe, 0x00000000, 0x000133e9, 1, C_50_Kerning, 0, 0 }, { 0x51, 0x000e5972, 0x000ad8fe, 0x00031c72, 0x0000c42e, 0, 0, 0, 0 }, { 0x52, 0x000da1c7, 0x000ad8fe, 0x00000000, 0x000067d2, 28, C_52_Kerning, 0, 0 }, { 0x53, 0x000a9732, 0x000ad8fe, 0x00000000, 0x0000c375, 0, 0, 0, 0 }, { 0x54, 0x000d68e2, 0x000ad8fe, 0x00000000, 0x0000f2cb, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000ddaab, 0x000ad8fe, 0x00000000, 0x00006429, 0, 0, 0, 0 }, { 0x56, 0x000ddaab, 0x000ad8fe, 0x00000000, 0x0000c42e, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x00128d7b, 0x000ad8fe, 0x00000000, 0x0000c42e, 1, C_57_Kerning, 0, 0 }, { 0x58, 0x000ddaab, 0x000ad8fe, 0x00000000, 0x00006e1e, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000ddaab, 0x000ad8fe, 0x00000000, 0x0000e595, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000b87c2, 0x000ad8fe, 0x00000000, 0x000133e9, 0, 0, 0, 0 }, { 0x5b, 0x0005e462, 0x000c0000, 0x00040000, 0x0000c855, 0, 0, 0, 0 }, { 0x5c, 0x0009a6a2, 0x000b1c72, 0x00000000, 0x0000c375, 0, 0, 0, 0 }, { 0x5d, 0x0005e462, 0x000c0000, 0x00040000, 0x00010a90, 0, 0, 0, 0 }, { 0x5e, 0x0009a6a2, 0x000b1c72, 0x00000000, 0x0000f05b, 0, 0, 0, 0 }, { 0x5f, 0x0005e462, 0x000ad8fe, 0x00000000, 0x00006e1e, 0, 0, 0, 0 }, { 0x60, 0x0005e462, 0x000b1c72, 0x00000000, 0x0000c42e, 0, 0, 1, C_60_Ligature }, { 0x61, 0x0009a6a2, 0x0006e38e, 0x00000000, 0x00006e1e, 0, 0, 0, 0 }, { 0x62, 0x0008b612, 0x000b1c72, 0x00000000, 0x0000f2cb, 7, C_62_Kerning, 0, 0 }, { 0x63, 0x0008b612, 0x0006e38e, 0x00000000, 0x0000c855, 7, C_63_Kerning, 0, 0 }, { 0x64, 0x0009a6a2, 0x000b1c72, 0x00000000, 0x0000e595, 1, C_64_Kerning, 0, 0 }, { 0x65, 0x0008b612, 0x0006e38e, 0x00000000, 0x00012aab, 7, C_65_Kerning, 0, 0 }, { 0x66, 0x0005e465, 0x000b1c72, 0x00031c72, 0x0000f05b, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x0008b612, 0x0006e38e, 0x00031c72, 0x000067d2, 0, 0, 0, 0 }, { 0x68, 0x0009a6a2, 0x000b1c72, 0x00000000, 0x00006e1e, 0, 0, 0, 0 }, { 0x69, 0x0005e462, 0x000a8209, 0x00000000, 0x0000c375, 0, 0, 0, 0 }, { 0x6a, 0x0005e462, 0x000a8209, 0x00031c72, 0x00013670, 0, 0, 0, 0 }, { 0x6b, 0x0008b612, 0x000b1c72, 0x00000000, 0x000067d2, 0, 0, 0, 0 }, { 0x6c, 0x0004f3d2, 0x000b1c72, 0x00000000, 0x0000e595, 1, C_6c_Kerning, 0, 0 }, { 0x6d, 0x000f4a02, 0x0006e38e, 0x00000000, 0x00006e1e, 0, 0, 0, 0 }, { 0x6e, 0x000a9732, 0x0006e38e, 0x00000000, 0x00006e1e, 1, C_6e_Kerning, 0, 0 }, { 0x6f, 0x0009a6a2, 0x0006e38e, 0x00000000, 0x0000f2cb, 7, C_6f_Kerning, 0, 0 }, { 0x70, 0x0009a6a2, 0x0006e38e, 0x00031c72, 0x0000f2cb, 7, C_70_Kerning, 0, 0 }, { 0x71, 0x0008b612, 0x0006e38e, 0x00031c72, 0x000067d2, 0, 0, 0, 0 }, { 0x72, 0x000801a7, 0x0006e38e, 0x00000000, 0x000067d2, 7, C_72_Kerning, 0, 0 }, { 0x73, 0x0007c582, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00065cab, 0x0009d75e, 0x00000000, 0x0000f05b, 0, 0, 0, 0 }, { 0x75, 0x000a1eeb, 0x0006e38e, 0x00000000, 0x00006e1e, 0, 0, 0, 0 }, { 0x76, 0x0008b612, 0x0006e38e, 0x00000000, 0x000067d2, 0, 0, 0, 0 }, { 0x77, 0x000c7852, 0x0006e38e, 0x00000000, 0x000067d2, 1, C_77_Kerning, 0, 0 }, { 0x78, 0x0008b615, 0x0006e38e, 0x00000000, 0x0000e595, 0, 0, 0, 0 }, { 0x79, 0x00092e5b, 0x0006e38e, 0x00031c72, 0x000067d2, 0, 0, 0, 0 }, { 0x7a, 0x0007c585, 0x0006e38e, 0x00000000, 0x00010a90, 0, 0, 0, 0 }, { 0x7b, 0x0009a6a2, 0x0006e38e, 0x00000000, 0x00011102, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x00134d45, 0x0006e38e, 0x00000000, 0x00011102, 0, 0, 0, 0 }, { 0x7d, 0x0009a6a2, 0x000b1c72, 0x00000000, 0x0000c855, 0, 0, 0, 0 }, { 0x7e, 0x0009a6a2, 0x000ad8fe, 0x00000000, 0x000087b7, 0, 0, 0, 0 }, { 0x7f, 0x0009a6a2, 0x000ad8fe, 0x00000000, 0x0000f2cb, 0, 0, 0, 0 } }; void cmti7_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmbx8.cc0000644000175000017500000004221610704611256016565 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMBX", 0xee, "TeX text", 0x00800000, 0x32c740c9, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x0006888c }, { 0x03, "space_stretch", 0x00034446 }, { 0x04, "space_shrink", 0x00022d84 }, { 0x05, "x_height", 0x00071c72 }, { 0x06, "quad", 0x001399a4 }, { 0x07, "extra_space", 0x00022d84 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x0001e4fa }, { 0x27, 0x0001e4fa }, { 0x29, 0x0001e4fa }, { 0x3f, 0x0001e4fa }, { 0x5d, 0x0001e4fa } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfff99b02 }, { 0x6c, 0xfffa8e36 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x00022d84 }, { 0x3f, 0x00022d84 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff749e }, { 0x47, 0xffff749e }, { 0x4f, 0xffff749e }, { 0x51, 0xffff749e }, { 0x54, 0xfffe5ddc }, { 0x55, 0xffff749e }, { 0x56, 0xfffdd27c }, { 0x57, 0xfffdd27c }, { 0x59, 0xfffe5ddc }, { 0x74, 0xffff749e } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff749e }, { 0x56, 0xffff749e }, { 0x57, 0xffff749e }, { 0x58, 0xffff749e }, { 0x59, 0xffff749e } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffdd27c }, { 0x43, 0xffff749e }, { 0x47, 0xffff749e }, { 0x4f, 0xffff749e }, { 0x51, 0xffff749e }, { 0x61, 0xfffe5ddc }, { 0x65, 0xfffe5ddc }, { 0x6f, 0xfffe5ddc }, { 0x72, 0xfffe5ddc }, { 0x75, 0xfffe5ddc } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x00008b62 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff749e }, { 0x47, 0xffff749e }, { 0x4f, 0xffff749e }, { 0x51, 0xffff749e } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffe5ddc }, { 0x56, 0xfffdd27c }, { 0x57, 0xfffdd27c }, { 0x59, 0xfffe5ddc } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff749e }, { 0x56, 0xffff749e }, { 0x57, 0xffff749e }, { 0x58, 0xffff749e }, { 0x59, 0xffff749e } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffe5ddc }, { 0x2e, 0xfffe5ddc }, { 0x41, 0xfffe5ddc }, { 0x61, 0xffff749e }, { 0x65, 0xffff749e }, { 0x6f, 0xffff749e } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff749e }, { 0x47, 0xffff749e }, { 0x4f, 0xffff749e }, { 0x51, 0xffff749e }, { 0x54, 0xfffe5ddc }, { 0x55, 0xffff749e }, { 0x56, 0xfffdd27c }, { 0x57, 0xfffdd27c }, { 0x59, 0xfffe5ddc }, { 0x74, 0xffff749e } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffe5ddc }, { 0x61, 0xfffe5ddc }, { 0x65, 0xfffe5ddc }, { 0x6f, 0xfffe5ddc }, { 0x72, 0xfffe5ddc }, { 0x75, 0xfffe5ddc }, { 0x79, 0xffff749e } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffdd27c }, { 0x43, 0xffff749e }, { 0x47, 0xffff749e }, { 0x4f, 0xffff749e }, { 0x51, 0xffff749e }, { 0x61, 0xfffe5ddc }, { 0x65, 0xfffe5ddc }, { 0x6f, 0xfffe5ddc }, { 0x72, 0xfffe5ddc }, { 0x75, 0xfffe5ddc } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffdd27c }, { 0x43, 0xffff749e }, { 0x47, 0xffff749e }, { 0x4f, 0xffff749e }, { 0x51, 0xffff749e }, { 0x61, 0xfffe5ddc }, { 0x65, 0xfffe5ddc }, { 0x6f, 0xfffe5ddc }, { 0x72, 0xfffe5ddc }, { 0x75, 0xfffe5ddc } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff749e }, { 0x47, 0xffff749e }, { 0x4f, 0xffff749e }, { 0x51, 0xffff749e } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffe5ddc }, { 0x61, 0xfffe5ddc }, { 0x65, 0xfffe5ddc }, { 0x6f, 0xfffe5ddc }, { 0x72, 0xfffe5ddc }, { 0x75, 0xfffe5ddc } }; static TFM::Kerning C_61_Kerning[] = { { 0x6a, 0x000116c2 }, { 0x76, 0xffff749e }, { 0x77, 0xffff749e }, { 0x79, 0xffff749e } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x00008b62 }, { 0x64, 0x00008b62 }, { 0x65, 0x00008b62 }, { 0x6a, 0x000116c2 }, { 0x6f, 0x00008b62 }, { 0x71, 0x00008b62 }, { 0x76, 0xffff749e }, { 0x77, 0xffff749e }, { 0x78, 0xffff749e }, { 0x79, 0xffff749e } }; static TFM::Kerning C_63_Kerning[] = { { 0x68, 0xffff749e }, { 0x6b, 0xffff749e } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x0001e4fa }, { 0x27, 0x0001e4fa }, { 0x29, 0x0001e4fa }, { 0x3f, 0x0001e4fa }, { 0x5d, 0x0001e4fa } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x00008b62 } }; static TFM::Kerning C_68_Kerning[] = { { 0x62, 0xffff749e }, { 0x74, 0xffff749e }, { 0x75, 0xffff749e }, { 0x76, 0xffff749e }, { 0x77, 0xffff749e }, { 0x79, 0xffff749e } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xfffee93e }, { 0x61, 0xffff749e }, { 0x63, 0xffff749e }, { 0x65, 0xffff749e }, { 0x6f, 0xffff749e } }; static TFM::Kerning C_6d_Kerning[] = { { 0x62, 0xffff749e }, { 0x74, 0xffff749e }, { 0x75, 0xffff749e }, { 0x76, 0xffff749e }, { 0x77, 0xffff749e }, { 0x79, 0xffff749e } }; static TFM::Kerning C_6e_Kerning[] = { { 0x62, 0xffff749e }, { 0x74, 0xffff749e }, { 0x75, 0xffff749e }, { 0x76, 0xffff749e }, { 0x77, 0xffff749e }, { 0x79, 0xffff749e } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x00008b62 }, { 0x64, 0x00008b62 }, { 0x65, 0x00008b62 }, { 0x6a, 0x000116c2 }, { 0x6f, 0x00008b62 }, { 0x71, 0x00008b62 }, { 0x76, 0xffff749e }, { 0x77, 0xffff749e }, { 0x78, 0xffff749e }, { 0x79, 0xffff749e } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x00008b62 }, { 0x64, 0x00008b62 }, { 0x65, 0x00008b62 }, { 0x6a, 0x000116c2 }, { 0x6f, 0x00008b62 }, { 0x71, 0x00008b62 }, { 0x76, 0xffff749e }, { 0x77, 0xffff749e }, { 0x78, 0xffff749e }, { 0x79, 0xffff749e } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff749e }, { 0x79, 0xffff749e } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff749e } }; static TFM::Kerning C_76_Kerning[] = { { 0x61, 0xfffee93e }, { 0x61, 0xffff749e }, { 0x63, 0xffff749e }, { 0x65, 0xffff749e }, { 0x6f, 0xffff749e } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff749e }, { 0x63, 0xffff749e }, { 0x65, 0xffff749e }, { 0x6f, 0xffff749e } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffe5ddc }, { 0x2e, 0xfffe5ddc }, { 0x61, 0xffff749e }, { 0x65, 0xffff749e }, { 0x6f, 0xffff749e } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000bc172, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x0010555e, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000f3e9c, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000daab0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000d1118, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000f4722, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000e27da, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000f3e9c, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000e27da, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000f3e9c, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000e27da, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000b6ef6, 0x000b1c72, 0x00000000, 0x0001e4fa, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x000ae394, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000ae394, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x0010555e, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x0010555e, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x000571ca, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x0005fd2c, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x0009ccd2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x0009ccd2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x0009ccd2, 0x000a1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x0009ccd2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x0009ccd2, 0x0009a220, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000ec172, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x0008b610, 0x00000000, 0x0002b8e4, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000a34a2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000e27da, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000f3e9c, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x0009ccd2, 0x0008aaac, 0x00018e3a, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x0011b8ec, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x0013e670, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000f3e9c, 0x000bc16c, 0x0000c71c, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x000571ca, 0x00071c72, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x0005f77a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x000a2d86, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x0010555e, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x0009ccd2, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x0010555e, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000f3e9c, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000571ca, 0x000b1c72, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x00079f4e, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00079f4e, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x0009ccd2, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000f3e9c, 0x000a888c, 0x0002888c, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x000571ca, 0x00028e38, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0006888c, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x000571ca, 0x00028e38, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x0009ccd2, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x0009ccd2, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x0009ccd2, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x0009ccd2, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x0009ccd2, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x0009ccd2, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x0009ccd2, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x0009ccd2, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x0009ccd2, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x0009ccd2, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x0009ccd2, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000571ca, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x000571ca, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x0005f77a, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000f3e9c, 0x000675c4, 0xfffe75c4, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00094172, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00094172, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000f3e9c, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000ec172, 0x000afa50, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000de946, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000e27da, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000f0008, 0x000afa50, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000cd834, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000c4cd4, 0x000afa50, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000f6502, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000f4722, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x0007582e, 0x000afa50, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000a199e, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000f4cd4, 0x000afa50, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000bc172, 0x000afa50, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x00128b68, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000f4722, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000eb8ec, 0x000afa50, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000d5de4, 0x000afa50, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000eb8ec, 0x000afa50, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000ea500, 0x000afa50, 0x00000000, 0x00000000, 10, C_52_Kerning, 0, 0 }, { 0x53, 0x000ae394, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000da22a, 0x000afa50, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000f044a, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000ec172, 0x000afa50, 0x00000000, 0x000045b0, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x0014333c, 0x000afa50, 0x00000000, 0x000045b0, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000ec172, 0x000afa50, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000ec172, 0x000afa50, 0x00000000, 0x00007d70, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000bfa56, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x000571ca, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000a2d86, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000571ca, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x0009ccd2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000571ca, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000571ca, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x00098722, 0x00071c72, 0x00000000, 0x00000000, 4, C_61_Kerning, 0, 0 }, { 0x62, 0x000ae394, 0x000b1c72, 0x00000000, 0x00000000, 10, C_62_Kerning, 0, 0 }, { 0x63, 0x0008b610, 0x00071c72, 0x00000000, 0x00000000, 2, C_63_Kerning, 0, 0 }, { 0x64, 0x000ae394, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x0008fa54, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x0005fd2c, 0x000b1c72, 0x00000000, 0x0001e4fa, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x0009ccd2, 0x00071c72, 0x00031c72, 0x000045b0, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000ae394, 0x000b1c72, 0x00000000, 0x00000000, 6, C_68_Kerning, 0, 0 }, { 0x69, 0x000571ca, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x0005fd2c, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000a5834, 0x000b1c72, 0x00000000, 0x00000000, 5, C_6b_Kerning, 0, 0 }, { 0x6c, 0x000571ca, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x0010555e, 0x00071c72, 0x00000000, 0x00000000, 6, C_6d_Kerning, 0, 0 }, { 0x6e, 0x000ae394, 0x00071c72, 0x00000000, 0x00000000, 6, C_6e_Kerning, 0, 0 }, { 0x6f, 0x0009ccd2, 0x00071c72, 0x00000000, 0x00000000, 10, C_6f_Kerning, 0, 0 }, { 0x70, 0x000ae394, 0x00071c72, 0x00031c72, 0x00000000, 10, C_70_Kerning, 0, 0 }, { 0x71, 0x000a5832, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x0008199e, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x0007bb2e, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00079f4e, 0x000a28a4, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x000ae394, 0x00071c72, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x000a5834, 0x00071c72, 0x00000000, 0x000045b0, 5, C_76_Kerning, 0, 0 }, { 0x77, 0x000e27da, 0x00071c72, 0x00000000, 0x000045b0, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x000a5834, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x000a5834, 0x00071c72, 0x00031c72, 0x000045b0, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x0008b610, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x0009ccd2, 0x00071c72, 0x00000000, 0x00008b62, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x001399a4, 0x00071c72, 0x00000000, 0x00008b62, 0, 0, 0, 0 }, { 0x7d, 0x0009ccd2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x0009ccd2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x0009ccd2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmbx8_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmr8.cc0000644000175000017500000004221410704611257016414 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMR", 0xee, "TeX text", 0x00800000, 0x7c7b5907, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x0005aab0 }, { 0x03, "space_stretch", 0x0002d558 }, { 0x04, "space_shrink", 0x0001e390 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x00110010 }, { 0x07, "extra_space", 0x0001e390 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x0001438e }, { 0x27, 0x0001438e }, { 0x29, 0x0001438e }, { 0x3f, 0x0001438e }, { 0x5d, 0x0001438e } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffa93e4 }, { 0x6c, 0xfffb4718 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001e390 }, { 0x3f, 0x0001e390 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c }, { 0x54, 0xfffe9554 }, { 0x55, 0xffff871c }, { 0x56, 0xfffe1c70 }, { 0x57, 0xfffe1c70 }, { 0x59, 0xfffe9554 }, { 0x74, 0xffff871c } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff871c }, { 0x56, 0xffff871c }, { 0x57, 0xffff871c }, { 0x58, 0xffff871c }, { 0x59, 0xffff871c } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffe1c70 }, { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c }, { 0x61, 0xfffe9554 }, { 0x65, 0xfffe9554 }, { 0x6f, 0xfffe9554 }, { 0x72, 0xfffe9554 }, { 0x75, 0xfffe9554 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x000078e4 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffe9554 }, { 0x56, 0xfffe1c70 }, { 0x57, 0xfffe1c70 }, { 0x59, 0xfffe9554 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff871c }, { 0x56, 0xffff871c }, { 0x57, 0xffff871c }, { 0x58, 0xffff871c }, { 0x59, 0xffff871c } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffe9554 }, { 0x2e, 0xfffe9554 }, { 0x41, 0xfffe9554 }, { 0x61, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c }, { 0x54, 0xfffe9554 }, { 0x55, 0xffff871c }, { 0x56, 0xfffe1c70 }, { 0x57, 0xfffe1c70 }, { 0x59, 0xfffe9554 }, { 0x74, 0xffff871c } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffe9554 }, { 0x61, 0xfffe9554 }, { 0x65, 0xfffe9554 }, { 0x6f, 0xfffe9554 }, { 0x72, 0xfffe9554 }, { 0x75, 0xfffe9554 }, { 0x79, 0xffff871c } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffe1c70 }, { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c }, { 0x61, 0xfffe9554 }, { 0x65, 0xfffe9554 }, { 0x6f, 0xfffe9554 }, { 0x72, 0xfffe9554 }, { 0x75, 0xfffe9554 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffe1c70 }, { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c }, { 0x61, 0xfffe9554 }, { 0x65, 0xfffe9554 }, { 0x6f, 0xfffe9554 }, { 0x72, 0xfffe9554 }, { 0x75, 0xfffe9554 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffe9554 }, { 0x61, 0xfffe9554 }, { 0x65, 0xfffe9554 }, { 0x6f, 0xfffe9554 }, { 0x72, 0xfffe9554 }, { 0x75, 0xfffe9554 } }; static TFM::Kerning C_61_Kerning[] = { { 0x6a, 0x0000f1c8 }, { 0x76, 0xffff871c }, { 0x77, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x000078e4 }, { 0x64, 0x000078e4 }, { 0x65, 0x000078e4 }, { 0x6a, 0x0000f1c8 }, { 0x6f, 0x000078e4 }, { 0x71, 0x000078e4 }, { 0x76, 0xffff871c }, { 0x77, 0xffff871c }, { 0x78, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_63_Kerning[] = { { 0x68, 0xffff871c }, { 0x6b, 0xffff871c } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x0001438e }, { 0x27, 0x0001438e }, { 0x29, 0x0001438e }, { 0x3f, 0x0001438e }, { 0x5d, 0x0001438e } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x000078e4 } }; static TFM::Kerning C_68_Kerning[] = { { 0x62, 0xffff871c }, { 0x74, 0xffff871c }, { 0x75, 0xffff871c }, { 0x76, 0xffff871c }, { 0x77, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff0e38 }, { 0x61, 0xffff871c }, { 0x63, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c } }; static TFM::Kerning C_6d_Kerning[] = { { 0x62, 0xffff871c }, { 0x74, 0xffff871c }, { 0x75, 0xffff871c }, { 0x76, 0xffff871c }, { 0x77, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_6e_Kerning[] = { { 0x62, 0xffff871c }, { 0x74, 0xffff871c }, { 0x75, 0xffff871c }, { 0x76, 0xffff871c }, { 0x77, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x000078e4 }, { 0x64, 0x000078e4 }, { 0x65, 0x000078e4 }, { 0x6a, 0x0000f1c8 }, { 0x6f, 0x000078e4 }, { 0x71, 0x000078e4 }, { 0x76, 0xffff871c }, { 0x77, 0xffff871c }, { 0x78, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x000078e4 }, { 0x64, 0x000078e4 }, { 0x65, 0x000078e4 }, { 0x6a, 0x0000f1c8 }, { 0x6f, 0x000078e4 }, { 0x71, 0x000078e4 }, { 0x76, 0xffff871c }, { 0x77, 0xffff871c }, { 0x78, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff871c } }; static TFM::Kerning C_76_Kerning[] = { { 0x61, 0xffff0e38 }, { 0x61, 0xffff871c }, { 0x63, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff871c }, { 0x63, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffe9554 }, { 0x2e, 0xfffe9554 }, { 0x61, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000a9de8, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000e2ab8, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000d38f0, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000bca00, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000b5560, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000cbbc8, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000c4728, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000d38f0, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000c4728, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000d38f0, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000c4728, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x0009eab4, 0x000b1c72, 0x00000000, 0x0001438e, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x000971d0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000971d0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000e2ab8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000e2ab8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x0004b8e8, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x000531cc, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00088008, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00088008, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x00088008, 0x000a0e3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00088008, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00088008, 0x00092d82, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000cbbc8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00078e40, 0x00000000, 0x0002b8e4, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00088008, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000c4728, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000d38f0, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00088008, 0x000871c8, 0x00018e3a, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000f56d0, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00113a60, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000d38f0, 0x000bb60a, 0x0000c71c, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x0004b8e8, 0x0006e38e, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x0004b8e8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x00088008, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000e2ab8, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00088008, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000e2ab8, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000d38f0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x0004b8e8, 0x000b1c72, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x00069c78, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00069c78, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00088008, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000d38f0, 0x0009aab0, 0x0001aab0, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x0004b8e8, 0x0001c71c, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0005aab0, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x0004b8e8, 0x0001c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00088008, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00088008, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00088008, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00088008, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00088008, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00088008, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00088008, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00088008, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00088008, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00088008, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00088008, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x0004b8e8, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x0004b8e8, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x0004b8e8, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000d38f0, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00080724, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00080724, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000d38f0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000cbbc8, 0x000aeeee, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000c0894, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000c4728, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000cfa5c, 0x000aeeee, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000b8fb0, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000b16cc, 0x000aeeee, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000d5618, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000cbbc8, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x00061f50, 0x000aeeee, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x0008ba58, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000d34ac, 0x000aeeee, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000a9de8, 0x000aeeee, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000f9120, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000cbbc8, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000d38f0, 0x000aeeee, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000b8fb0, 0x000aeeee, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000d38f0, 0x000aeeee, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000c8178, 0x000aeeee, 0x00000000, 0x00000000, 10, C_52_Kerning, 0, 0 }, { 0x53, 0x000971d0, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000c4728, 0x000aeeee, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000cbbc8, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000cbbc8, 0x000aeeee, 0x00000000, 0x00003c72, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x001174b0, 0x000aeeee, 0x00000000, 0x00003c72, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000cbbc8, 0x000aeeee, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000cbbc8, 0x000aeeee, 0x00000000, 0x00006cce, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000a6398, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x0004b8e8, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00088008, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x0004b8e8, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00088008, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x0004b8e8, 0x000abaec, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x0004b8e8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 4, C_61_Kerning, 0, 0 }, { 0x62, 0x000971d0, 0x000b1c72, 0x00000000, 0x00000000, 10, C_62_Kerning, 0, 0 }, { 0x63, 0x00078e40, 0x0006e38e, 0x00000000, 0x00000000, 2, C_63_Kerning, 0, 0 }, { 0x64, 0x000971d0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00078e40, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000531cc, 0x000b1c72, 0x00000000, 0x0001438e, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x00088008, 0x0006e38e, 0x00031c72, 0x00003c72, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000971d0, 0x000b1c72, 0x00000000, 0x00000000, 6, C_68_Kerning, 0, 0 }, { 0x69, 0x0004b8e8, 0x000abaec, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x000531cc, 0x000abaec, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x0008f8ec, 0x000b1c72, 0x00000000, 0x00000000, 5, C_6b_Kerning, 0, 0 }, { 0x6c, 0x0004b8e8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000e2ab8, 0x0006e38e, 0x00000000, 0x00000000, 6, C_6d_Kerning, 0, 0 }, { 0x6e, 0x000971d0, 0x0006e38e, 0x00000000, 0x00000000, 6, C_6e_Kerning, 0, 0 }, { 0x6f, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 10, C_6f_Kerning, 0, 0 }, { 0x70, 0x000971d0, 0x0006e38e, 0x00031c72, 0x00000000, 10, C_70_Kerning, 0, 0 }, { 0x71, 0x0008f8ec, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x0006a006, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x0006b4a6, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00069c78, 0x0009d75e, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x000971d0, 0x0006e38e, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x0008f8ec, 0x0006e38e, 0x00000000, 0x00003c72, 5, C_76_Kerning, 0, 0 }, { 0x77, 0x000c4728, 0x0006e38e, 0x00000000, 0x00003c72, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x0008f8ec, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x0008f8ec, 0x0006e38e, 0x00031c72, 0x00003c72, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x00078e40, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00088008, 0x0006e38e, 0x00000000, 0x000078e4, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x00110010, 0x0006e38e, 0x00000000, 0x000078e4, 0, 0, 0, 0 }, { 0x7d, 0x00088008, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x00088008, 0x000abaec, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00088008, 0x000abaec, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmr8_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/TFMManager.cc0000644000175000017500000000473210661271102017460 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "TFMManager.hh" #define DECLARE_TABLE(n) extern void n(TFM::Font*&, TFM::Dimension*&, TFM::Character*&); DECLARE_TABLE(cmr10_tables) DECLARE_TABLE(cmb10_tables) DECLARE_TABLE(cmbxti10_tables) DECLARE_TABLE(cmti10_tables) DECLARE_TABLE(cmss10_tables) DECLARE_TABLE(cmssi10_tables) DECLARE_TABLE(cmssbx10_tables) DECLARE_TABLE(cmtt10_tables) DECLARE_TABLE(cmsy10_tables) DECLARE_TABLE(cmbsy10_tables) DECLARE_TABLE(cmmi10_tables) DECLARE_TABLE(cmmib10_tables) DECLARE_TABLE(cmex10_tables) DECLARE_TABLE(msam10_tables) DECLARE_TABLE(msbm10_tables) TFMManager::TFMManager() { static TFMTable table[] = { { "cmr10", cmr10_tables }, { "cmb10", cmb10_tables }, { "cmbxti10", cmbxti10_tables }, { "cmti10", cmti10_tables }, { "cmss10", cmss10_tables }, { "cmssi10", cmssi10_tables }, { "cmssbx10", cmssbx10_tables }, { "cmtt10", cmtt10_tables }, { "cmsy10", cmsy10_tables }, { "cmbsy10", cmbsy10_tables }, { "cmmi10", cmmi10_tables }, { "cmmib10", cmmib10_tables }, { "cmex10", cmex10_tables }, { "msam10", msam10_tables }, { "msbm10", msbm10_tables }, { 0, 0 } }; for (unsigned i = 0; table[i].name != 0; i++) { TFM::Font* font; TFM::Dimension* dimension; TFM::Character* character; (table[i].tables)(font, dimension, character); tfmCache[table[i].name] = TFM::create(table[i].name, font, dimension, character); } } TFMManager::~TFMManager() { } SmartPtr TFMManager::getTFM(const String& name) const { const TFMCache::const_iterator p = tfmCache.find(name); if (p != tfmCache.end()) return p->second; else return 0; } gtkmathview-0.8.0/src/backend/common/tfm/cmbx9.cc0000644000175000017500000004221610704611256016566 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMBX", 0xec, "TeX text", 0x00900000, 0x740c893a, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00064fa0 }, { 0x03, "space_stretch", 0x000327d0 }, { 0x04, "space_shrink", 0x00021a8b }, { 0x05, "x_height", 0x00071c72 }, { 0x06, "quad", 0x0012eee0 }, { 0x07, "extra_space", 0x00021a8b } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x0001cfa5 }, { 0x27, 0x0001cfa5 }, { 0x29, 0x0001cfa5 }, { 0x3f, 0x0001cfa5 }, { 0x5d, 0x0001cfa5 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfff9ccce }, { 0x6c, 0xfffabda5 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x00021a8b }, { 0x3f, 0x00021a8b } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff795c }, { 0x47, 0xffff795c }, { 0x4f, 0xffff795c }, { 0x51, 0xffff795c }, { 0x54, 0xfffe6c17 }, { 0x55, 0xffff795c }, { 0x56, 0xfffde575 }, { 0x57, 0xfffde575 }, { 0x59, 0xfffe6c17 }, { 0x74, 0xffff795c } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff795c }, { 0x56, 0xffff795c }, { 0x57, 0xffff795c }, { 0x58, 0xffff795c }, { 0x59, 0xffff795c } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffde575 }, { 0x43, 0xffff795c }, { 0x47, 0xffff795c }, { 0x4f, 0xffff795c }, { 0x51, 0xffff795c }, { 0x61, 0xfffe6c17 }, { 0x65, 0xfffe6c17 }, { 0x6f, 0xfffe6c17 }, { 0x72, 0xfffe6c17 }, { 0x75, 0xfffe6c17 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x000086a4 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff795c }, { 0x47, 0xffff795c }, { 0x4f, 0xffff795c }, { 0x51, 0xffff795c } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffe6c17 }, { 0x56, 0xfffde575 }, { 0x57, 0xfffde575 }, { 0x59, 0xfffe6c17 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff795c }, { 0x56, 0xffff795c }, { 0x57, 0xffff795c }, { 0x58, 0xffff795c }, { 0x59, 0xffff795c } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffe6c17 }, { 0x2e, 0xfffe6c17 }, { 0x41, 0xfffe6c17 }, { 0x61, 0xffff795c }, { 0x65, 0xffff795c }, { 0x6f, 0xffff795c } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff795c }, { 0x47, 0xffff795c }, { 0x4f, 0xffff795c }, { 0x51, 0xffff795c }, { 0x54, 0xfffe6c17 }, { 0x55, 0xffff795c }, { 0x56, 0xfffde575 }, { 0x57, 0xfffde575 }, { 0x59, 0xfffe6c17 }, { 0x74, 0xffff795c } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffe6c17 }, { 0x61, 0xfffe6c17 }, { 0x65, 0xfffe6c17 }, { 0x6f, 0xfffe6c17 }, { 0x72, 0xfffe6c17 }, { 0x75, 0xfffe6c17 }, { 0x79, 0xffff795c } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffde575 }, { 0x43, 0xffff795c }, { 0x47, 0xffff795c }, { 0x4f, 0xffff795c }, { 0x51, 0xffff795c }, { 0x61, 0xfffe6c17 }, { 0x65, 0xfffe6c17 }, { 0x6f, 0xfffe6c17 }, { 0x72, 0xfffe6c17 }, { 0x75, 0xfffe6c17 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffde575 }, { 0x43, 0xffff795c }, { 0x47, 0xffff795c }, { 0x4f, 0xffff795c }, { 0x51, 0xffff795c }, { 0x61, 0xfffe6c17 }, { 0x65, 0xfffe6c17 }, { 0x6f, 0xfffe6c17 }, { 0x72, 0xfffe6c17 }, { 0x75, 0xfffe6c17 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff795c }, { 0x47, 0xffff795c }, { 0x4f, 0xffff795c }, { 0x51, 0xffff795c } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffe6c17 }, { 0x61, 0xfffe6c17 }, { 0x65, 0xfffe6c17 }, { 0x6f, 0xfffe6c17 }, { 0x72, 0xfffe6c17 }, { 0x75, 0xfffe6c17 } }; static TFM::Kerning C_61_Kerning[] = { { 0x6a, 0x00010d45 }, { 0x76, 0xffff795c }, { 0x77, 0xffff795c }, { 0x79, 0xffff795c } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x000086a4 }, { 0x64, 0x000086a4 }, { 0x65, 0x000086a4 }, { 0x6a, 0x00010d45 }, { 0x6f, 0x000086a4 }, { 0x71, 0x000086a4 }, { 0x76, 0xffff795c }, { 0x77, 0xffff795c }, { 0x78, 0xffff795c }, { 0x79, 0xffff795c } }; static TFM::Kerning C_63_Kerning[] = { { 0x68, 0xffff795c }, { 0x6b, 0xffff795c } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x0001cfa5 }, { 0x27, 0x0001cfa5 }, { 0x29, 0x0001cfa5 }, { 0x3f, 0x0001cfa5 }, { 0x5d, 0x0001cfa5 } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x000086a4 } }; static TFM::Kerning C_68_Kerning[] = { { 0x62, 0xffff795c }, { 0x74, 0xffff795c }, { 0x75, 0xffff795c }, { 0x76, 0xffff795c }, { 0x77, 0xffff795c }, { 0x79, 0xffff795c } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xfffef2bb }, { 0x61, 0xffff795c }, { 0x63, 0xffff795c }, { 0x65, 0xffff795c }, { 0x6f, 0xffff795c } }; static TFM::Kerning C_6d_Kerning[] = { { 0x62, 0xffff795c }, { 0x74, 0xffff795c }, { 0x75, 0xffff795c }, { 0x76, 0xffff795c }, { 0x77, 0xffff795c }, { 0x79, 0xffff795c } }; static TFM::Kerning C_6e_Kerning[] = { { 0x62, 0xffff795c }, { 0x74, 0xffff795c }, { 0x75, 0xffff795c }, { 0x76, 0xffff795c }, { 0x77, 0xffff795c }, { 0x79, 0xffff795c } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x000086a4 }, { 0x64, 0x000086a4 }, { 0x65, 0x000086a4 }, { 0x6a, 0x00010d45 }, { 0x6f, 0x000086a4 }, { 0x71, 0x000086a4 }, { 0x76, 0xffff795c }, { 0x77, 0xffff795c }, { 0x78, 0xffff795c }, { 0x79, 0xffff795c } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x000086a4 }, { 0x64, 0x000086a4 }, { 0x65, 0x000086a4 }, { 0x6a, 0x00010d45 }, { 0x6f, 0x000086a4 }, { 0x71, 0x000086a4 }, { 0x76, 0xffff795c }, { 0x77, 0xffff795c }, { 0x78, 0xffff795c }, { 0x79, 0xffff795c } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff795c }, { 0x79, 0xffff795c } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff795c } }; static TFM::Kerning C_76_Kerning[] = { { 0x61, 0xfffef2bb }, { 0x61, 0xffff795c }, { 0x63, 0xffff795c }, { 0x65, 0xffff795c }, { 0x6f, 0xffff795c } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff795c }, { 0x63, 0xffff795c }, { 0x65, 0xffff795c }, { 0x6f, 0xffff795c } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffe6c17 }, { 0x2e, 0xfffe6c17 }, { 0x61, 0xffff795c }, { 0x65, 0xffff795c }, { 0x6f, 0xffff795c } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000b5f69, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000fc710, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000eb9cb, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000d3c04, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000c9f40, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000eca3c, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000dac85, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000eb9cb, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000dac85, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000eb9cb, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000dac85, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000b0b59, 0x000b1c72, 0x00000000, 0x0001cfa5, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x000a84b5, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000a84b5, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000fc710, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000fc710, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x0005425b, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x0005c8fe, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00097770, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00097770, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x00097770, 0x000a1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00097770, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00097770, 0x0009948b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000e4949, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00086a2b, 0x00000000, 0x0002b8e4, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x0009de7e, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000dac85, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000eb9cb, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00097770, 0x0008aaab, 0x00018e39, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x001122b7, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00133d42, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000eb9cb, 0x000bc16c, 0x0000c71c, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x0005425b, 0x00071c72, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x0005c34e, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x0009e1a4, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000fc710, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00097770, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000fc710, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000eb9cb, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x0005425b, 0x000b1c72, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x00075ce5, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00075ce5, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00097770, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000eb9cb, 0x000a4fa0, 0x00024fa0, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x0005425b, 0x000284be, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00064fa0, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x0005425b, 0x000284be, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00097770, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00097770, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00097770, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00097770, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00097770, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00097770, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00097770, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00097770, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00097770, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00097770, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00097770, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x0005425b, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x0005425b, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x0005c34e, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000eb9cb, 0x00065b07, 0xfffe5b07, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x0008f0ce, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x0008f0ce, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000eb9cb, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000e4949, 0x000afa50, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000d7445, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000dac85, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000e818b, 0x000afa50, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000c6cae, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000be60c, 0x000afa50, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000ee0fc, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000eca3c, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x00072405, 0x000afa50, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x0009c5d2, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000ecfec, 0x000afa50, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000b5f69, 0x000afa50, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x0011f20c, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000eca3c, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000e38d7, 0x000afa50, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000ceda2, 0x000afa50, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000e38d7, 0x000afa50, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000e3002, 0x000afa50, 0x00000000, 0x00000000, 10, C_52_Kerning, 0, 0 }, { 0x53, 0x000a84b5, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000d2b92, 0x000afa50, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000e89c4, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000e4949, 0x000afa50, 0x00000000, 0x00004352, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x00138ba4, 0x000afa50, 0x00000000, 0x00004352, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000e4949, 0x000afa50, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000e4949, 0x000afa50, 0x00000000, 0x0000792c, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000b91fb, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x0005425b, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x0009e1a4, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x0005425b, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00097770, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x0005425b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x0005425b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x0009341e, 0x00071c72, 0x00000000, 0x00000000, 4, C_61_Kerning, 0, 0 }, { 0x62, 0x000a84b5, 0x000b1c72, 0x00000000, 0x00000000, 10, C_62_Kerning, 0, 0 }, { 0x63, 0x00086a2b, 0x00071c72, 0x00000000, 0x00000000, 2, C_63_Kerning, 0, 0 }, { 0x64, 0x000a84b5, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x0008b005, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x0005c8fe, 0x000b1c72, 0x00000000, 0x0001cfa5, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x00097770, 0x00071c72, 0x00031c72, 0x00004352, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000a84b5, 0x000b1c72, 0x00000000, 0x00000000, 6, C_68_Kerning, 0, 0 }, { 0x69, 0x0005425b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x0005c8fe, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x0009fe14, 0x000b1c72, 0x00000000, 0x00000000, 5, C_6b_Kerning, 0, 0 }, { 0x6c, 0x0005425b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000fc710, 0x00071c72, 0x00000000, 0x00000000, 6, C_6d_Kerning, 0, 0 }, { 0x6e, 0x000a84b5, 0x00071c72, 0x00000000, 0x00000000, 6, C_6e_Kerning, 0, 0 }, { 0x6f, 0x00097770, 0x00071c72, 0x00000000, 0x00000000, 10, C_6f_Kerning, 0, 0 }, { 0x70, 0x000a84b5, 0x00071c72, 0x00031c72, 0x00000000, 10, C_70_Kerning, 0, 0 }, { 0x71, 0x0009fe12, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x0007cf52, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x000777d4, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00075ce5, 0x000a28a4, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x000a84b5, 0x00071c72, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x0009fe14, 0x00071c72, 0x00000000, 0x00004352, 5, C_76_Kerning, 0, 0 }, { 0x77, 0x000dac85, 0x00071c72, 0x00000000, 0x00004352, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x0009fe14, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x0009fe14, 0x00071c72, 0x00031c72, 0x00004352, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x00086a2b, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00097770, 0x00071c72, 0x00000000, 0x000086a4, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x0012eee0, 0x00071c72, 0x00000000, 0x000086a4, 0, 0, 0, 0 }, { 0x7d, 0x00097770, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x00097770, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00097770, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmbx9_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/TFMManager.hh0000644000175000017500000000307310661271102017467 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TFMManager_hh__ #define __TFMManager_hh__ #include "HashMap.hh" #include "Object.hh" #include "SmartPtr.hh" #include "String.hh" #include "StringHash.hh" #include "TFM.hh" #include "scaled.hh" class TFMManager : public Object { protected: TFMManager(void); virtual ~TFMManager(); public: static SmartPtr create(void) { return new TFMManager(); } SmartPtr getTFM(const String&) const; protected: typedef void (*TFMTables)(TFM::Font*&, TFM::Dimension*&, TFM::Character*&); private: typedef HASH_MAP_NS::hash_map,StringHash> TFMCache; mutable TFMCache tfmCache; struct TFMTable { const char* name; TFMTables tables; }; }; #endif // __TFMManager_hh__ gtkmathview-0.8.0/src/backend/common/tfm/cmr5.cc0000644000175000017500000004113610704611257016413 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMR", 0xf4, "TeX text without f-ligatures", 0x00500000, 0x86039b5a, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00078e40 }, { 0x03, "space_stretch", 0x0003555a }, { 0x04, "space_shrink", 0x000238e6 }, { 0x05, "x_height", 0x0006e38d }, { 0x06, "quad", 0x0015c733 }, { 0x07, "extra_space", 0x000238e6 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfff8d276 }, { 0x6c, 0xfff98e33 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x000238e6 }, { 0x3f, 0x000238e6 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff71c6 }, { 0x47, 0xffff71c6 }, { 0x4f, 0xffff71c6 }, { 0x51, 0xffff71c6 }, { 0x54, 0xfffe5553 }, { 0x55, 0xffff71c6 }, { 0x56, 0xfffdc71a }, { 0x57, 0xfffdc71a }, { 0x59, 0xfffe5553 }, { 0x74, 0xffff71c6 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff71c6 }, { 0x56, 0xffff71c6 }, { 0x57, 0xffff71c6 }, { 0x58, 0xffff71c6 }, { 0x59, 0xffff71c6 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffdc71a }, { 0x43, 0xffff71c6 }, { 0x47, 0xffff71c6 }, { 0x4f, 0xffff71c6 }, { 0x51, 0xffff71c6 }, { 0x61, 0xfffe5553 }, { 0x65, 0xfffe5553 }, { 0x6f, 0xfffe5553 }, { 0x72, 0xfffe5553 }, { 0x75, 0xfffe5553 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x00008e3a } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff71c6 }, { 0x47, 0xffff71c6 }, { 0x4f, 0xffff71c6 }, { 0x51, 0xffff71c6 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffe5553 }, { 0x56, 0xfffdc71a }, { 0x57, 0xfffdc71a }, { 0x59, 0xfffe5553 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff71c6 }, { 0x56, 0xffff71c6 }, { 0x57, 0xffff71c6 }, { 0x58, 0xffff71c6 }, { 0x59, 0xffff71c6 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffe5553 }, { 0x2e, 0xfffe5553 }, { 0x41, 0xfffe5553 }, { 0x61, 0xffff71c6 }, { 0x65, 0xffff71c6 }, { 0x6f, 0xffff71c6 } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff71c6 }, { 0x47, 0xffff71c6 }, { 0x4f, 0xffff71c6 }, { 0x51, 0xffff71c6 }, { 0x54, 0xfffe5553 }, { 0x55, 0xffff71c6 }, { 0x56, 0xfffdc71a }, { 0x57, 0xfffdc71a }, { 0x59, 0xfffe5553 }, { 0x74, 0xffff71c6 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffe5553 }, { 0x61, 0xfffe5553 }, { 0x65, 0xfffe5553 }, { 0x6f, 0xfffe5553 }, { 0x72, 0xfffe5553 }, { 0x75, 0xfffe5553 }, { 0x79, 0xffff71c6 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffdc71a }, { 0x43, 0xffff71c6 }, { 0x47, 0xffff71c6 }, { 0x4f, 0xffff71c6 }, { 0x51, 0xffff71c6 }, { 0x61, 0xfffe5553 }, { 0x65, 0xfffe5553 }, { 0x6f, 0xfffe5553 }, { 0x72, 0xfffe5553 }, { 0x75, 0xfffe5553 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffdc71a }, { 0x43, 0xffff71c6 }, { 0x47, 0xffff71c6 }, { 0x4f, 0xffff71c6 }, { 0x51, 0xffff71c6 }, { 0x61, 0xfffe5553 }, { 0x65, 0xfffe5553 }, { 0x6f, 0xfffe5553 }, { 0x72, 0xfffe5553 }, { 0x75, 0xfffe5553 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff71c6 }, { 0x47, 0xffff71c6 }, { 0x4f, 0xffff71c6 }, { 0x51, 0xffff71c6 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffe5553 }, { 0x61, 0xfffe5553 }, { 0x65, 0xfffe5553 }, { 0x6f, 0xfffe5553 }, { 0x72, 0xfffe5553 }, { 0x75, 0xfffe5553 } }; static TFM::Kerning C_61_Kerning[] = { { 0x6a, 0x00011c73 }, { 0x76, 0xffff71c6 }, { 0x77, 0xffff71c6 }, { 0x79, 0xffff71c6 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x00008e3a }, { 0x64, 0x00008e3a }, { 0x65, 0x00008e3a }, { 0x6a, 0x00011c73 }, { 0x6f, 0x00008e3a }, { 0x71, 0x00008e3a }, { 0x76, 0xffff71c6 }, { 0x77, 0xffff71c6 }, { 0x78, 0xffff71c6 }, { 0x79, 0xffff71c6 } }; static TFM::Kerning C_63_Kerning[] = { { 0x68, 0xffff71c6 }, { 0x6b, 0xffff71c6 } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x00008e3a } }; static TFM::Kerning C_68_Kerning[] = { { 0x62, 0xffff71c6 }, { 0x74, 0xffff71c6 }, { 0x75, 0xffff71c6 }, { 0x76, 0xffff71c6 }, { 0x77, 0xffff71c6 }, { 0x79, 0xffff71c6 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xfffee38d }, { 0x61, 0xffff71c6 }, { 0x63, 0xffff71c6 }, { 0x65, 0xffff71c6 }, { 0x6f, 0xffff71c6 } }; static TFM::Kerning C_6d_Kerning[] = { { 0x62, 0xffff71c6 }, { 0x74, 0xffff71c6 }, { 0x75, 0xffff71c6 }, { 0x76, 0xffff71c6 }, { 0x77, 0xffff71c6 }, { 0x79, 0xffff71c6 } }; static TFM::Kerning C_6e_Kerning[] = { { 0x62, 0xffff71c6 }, { 0x74, 0xffff71c6 }, { 0x75, 0xffff71c6 }, { 0x76, 0xffff71c6 }, { 0x77, 0xffff71c6 }, { 0x79, 0xffff71c6 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x00008e3a }, { 0x64, 0x00008e3a }, { 0x65, 0x00008e3a }, { 0x6a, 0x00011c73 }, { 0x6f, 0x00008e3a }, { 0x71, 0x00008e3a }, { 0x76, 0xffff71c6 }, { 0x77, 0xffff71c6 }, { 0x78, 0xffff71c6 }, { 0x79, 0xffff71c6 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x00008e3a }, { 0x64, 0x00008e3a }, { 0x65, 0x00008e3a }, { 0x6a, 0x00011c73 }, { 0x6f, 0x00008e3a }, { 0x71, 0x00008e3a }, { 0x76, 0xffff71c6 }, { 0x77, 0xffff71c6 }, { 0x78, 0xffff71c6 }, { 0x79, 0xffff71c6 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff71c6 }, { 0x79, 0xffff71c6 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff71c6 } }; static TFM::Kerning C_76_Kerning[] = { { 0x61, 0xfffee38d }, { 0x61, 0xffff71c6 }, { 0x63, 0xffff71c6 }, { 0x65, 0xffff71c6 }, { 0x6f, 0xffff71c6 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff71c6 }, { 0x63, 0xffff71c6 }, { 0x65, 0xffff71c6 }, { 0x6f, 0xffff71c6 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffe5553 }, { 0x2e, 0xfffe5553 }, { 0x61, 0xffff71c6 }, { 0x65, 0xffff71c6 }, { 0x6f, 0xffff71c6 } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x0e } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x0f } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000d4a03, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x00118e4d, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x001071da, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000e93fa, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000e38f3, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000fb06d, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000f5566, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x001071da, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000f5566, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x001071da, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000f5566, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000ae39a, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x000ae39a, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000671cd, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000671cd, 0x00080000, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000a5560, 0x00080000, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x000671cd, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00070006, 0x0006e38d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000ae39a, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000ae39a, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000ae39a, 0x000a0e3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000ae39a, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000ae39a, 0x000949f3, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000fb06d, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x0009c726, 0x00000000, 0x0002b8e6, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000ae39a, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000f5566, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x001071da, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x000ae39a, 0x000871c6, 0x00018e3a, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x0012d843, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x0015112a, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x001071da, 0x000bb60d, 0x0000c71d, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x000671cd, 0x0006e38d, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x000671cd, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x000ae39a, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x00118e4d, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000ae39a, 0x000c0000, 0x0000e38d, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x00118e4d, 0x000c0000, 0x0000e38d, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x001071da, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000671cd, 0x000b1c73, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x0008aab3, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x0008aab3, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000ae39a, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x001071da, 0x000aaab3, 0x0002aab3, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x000671cd, 0x0001f4a0, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00078e40, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x000671cd, 0x0001f4a0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000ae39a, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000ae39a, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000ae39a, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000ae39a, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000ae39a, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000ae39a, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000ae39a, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000ae39a, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000ae39a, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000ae39a, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000ae39a, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000671cd, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x000671cd, 0x0006e38d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x001071da, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x001071da, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x001071da, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000a5560, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x001071da, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000fb06d, 0x000ae04d, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000ef4b0, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000f5566, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x00101123, 0x000ae04d, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000e6676, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000dd83d, 0x000ae04d, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x0010889d, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000fb06d, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x0007e946, 0x000ae04d, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000b111d, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x00103ea6, 0x000ae04d, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000d4a03, 0x000ae04d, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x001305c6, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000fb06d, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x001071da, 0x000ae04d, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000e6676, 0x000ae04d, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x001071da, 0x000ae04d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000f82ea, 0x000ae04d, 0x00000000, 0x00000000, 10, C_52_Kerning, 0, 0 }, { 0x53, 0x000c000d, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000f5566, 0x000ae04d, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000fb06d, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000fb06d, 0x000ae04d, 0x00000000, 0x0000471d, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x00153ead, 0x000ae04d, 0x00000000, 0x0000471d, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000fb06d, 0x000ae04d, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000fb06d, 0x000ae04d, 0x00000000, 0x00008000, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000d1c80, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x000671cd, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000ae39a, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000671cd, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000ae39a, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000671cd, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000671cd, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x000ae39a, 0x0006e38d, 0x00000000, 0x00000000, 4, C_61_Kerning, 0, 0 }, { 0x62, 0x000c000d, 0x000b1c73, 0x00000000, 0x00000000, 10, C_62_Kerning, 0, 0 }, { 0x63, 0x0009c726, 0x0006e38d, 0x00000000, 0x00000000, 2, C_63_Kerning, 0, 0 }, { 0x64, 0x000c000d, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x0009c726, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x00070006, 0x000b1c73, 0x00000000, 0x0001693d, 0, 0, 0, 0 }, { 0x67, 0x000ae39a, 0x0006e38d, 0x00031c73, 0x0000471d, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000c000d, 0x000b1c73, 0x00000000, 0x00000000, 6, C_68_Kerning, 0, 0 }, { 0x69, 0x000671cd, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00070006, 0x000ae04d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000b71d3, 0x000b1c73, 0x00000000, 0x00000000, 5, C_6b_Kerning, 0, 0 }, { 0x6c, 0x000671cd, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x00118e4d, 0x0006e38d, 0x00000000, 0x00000000, 6, C_6d_Kerning, 0, 0 }, { 0x6e, 0x000c000d, 0x0006e38d, 0x00000000, 0x00000000, 6, C_6e_Kerning, 0, 0 }, { 0x6f, 0x000ae39a, 0x0006e38d, 0x00000000, 0x00000000, 10, C_6f_Kerning, 0, 0 }, { 0x70, 0x000c000d, 0x0006e38d, 0x00031c73, 0x00000000, 10, C_70_Kerning, 0, 0 }, { 0x71, 0x000b71d3, 0x0006e38d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x0008aab3, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x0008c726, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x0008aab3, 0x0009d75d, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x000c000d, 0x0006e38d, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x000b71d3, 0x0006e38d, 0x00000000, 0x0000471d, 5, C_76_Kerning, 0, 0 }, { 0x77, 0x000f5566, 0x0006e38d, 0x00000000, 0x0000471d, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x000b71d3, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x000b71d3, 0x0006e38d, 0x00031c73, 0x0000471d, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x0009c726, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000ae39a, 0x0006e38d, 0x00000000, 0x00008e3a, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x0015c733, 0x0006e38d, 0x00000000, 0x00008e3a, 0, 0, 0, 0 }, { 0x7d, 0x000ae39a, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000ae39a, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000ae39a, 0x000ae04d, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmr5_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/msbm5.cc0000644000175000017500000002567710704611261016577 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "MSBM", 0xf4, "TeX math symbols", 0x00500000, 0xfdf62117, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x0004ccd0 }, { 0x03, "space_stretch", 0x00026660 }, { 0x04, "space_shrink", 0x000199a0 }, { 0x05, "x_height", 0x00076840 }, { 0x06, "quad", 0x00100000 }, { 0x07, "extra_space", 0x000199a0 }, { 0x08, "num1", 0x000ecdca }, { 0x09, "num2", 0x0006330d }, { 0x0a, "num3", 0x000810ed }, { 0x0b, "denom1", 0x00106763 }, { 0x0c, "denom2", 0x000882b3 }, { 0x0d, "sup1", 0x00080e90 }, { 0x0e, "sup2", 0x000674f6 }, { 0x0f, "sup3", 0x0004b60d }, { 0x10, "sub1", 0x00033333 }, { 0x11, "sub2", 0x00066666 }, { 0x12, "supdrop", 0x0007e940 }, { 0x13, "subdrop", 0x0001999a }, { 0x14, "delim1", 0x001fae13 }, { 0x15, "delim2", 0x0016b853 }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Character character[] = { { 0x00, 0x00115566, 0x000df15d, 0x0005da00, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x00115566, 0x000df15d, 0x0005da00, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x00115566, 0x000eeee6, 0x0006eee6, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x00115566, 0x000eeee6, 0x0006eee6, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x00115566, 0x000cf3aa, 0x0004f3aa, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x00115566, 0x000cf3aa, 0x0004f3aa, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x00115566, 0x000cf3aa, 0x0004f3aa, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x00115566, 0x000cf3aa, 0x0004f3aa, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x00115566, 0x000df15d, 0x0005da00, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x00115566, 0x000df15d, 0x0005da00, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x00115566, 0x000eeee6, 0x0006eee6, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x00115566, 0x000eeee6, 0x0006eee6, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x00115566, 0x000b8256, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x00115566, 0x000b8256, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x00115566, 0x000eeee6, 0x0006eee6, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x00115566, 0x000eeee6, 0x0006eee6, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00115566, 0x000cf3aa, 0x0004f3aa, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00115566, 0x000d446d, 0x000555a0, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00115566, 0x000cf3aa, 0x0004f3aa, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00115566, 0x000d446d, 0x000555a0, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x00115566, 0x00112f5a, 0x00092f5a, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00115566, 0x00112f5a, 0x00092f5a, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00115566, 0x000df15d, 0x0005da00, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x00115566, 0x000df15d, 0x0005da00, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00115566, 0x000df15d, 0x000608ba, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00115566, 0x000df15d, 0x000608ba, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x00115566, 0x000df15d, 0x000608ba, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x00115566, 0x000df15d, 0x000608ba, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00115566, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x00115566, 0x000eeee6, 0x0006eee6, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00138e4d, 0x000b05b0, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x00138e4d, 0x000c0000, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00115566, 0x000b8256, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x00115566, 0x000b8256, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x00115566, 0x000df15d, 0x0005da00, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x00115566, 0x000df15d, 0x0005da00, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00115566, 0x000e7036, 0x00067a0d, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x00115566, 0x000e7036, 0x00067a0d, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x00115566, 0x000df15d, 0x0005da00, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x00115566, 0x000df15d, 0x0005da00, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x00115566, 0x000b8256, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00115566, 0x000b8256, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00115566, 0x000eeee6, 0x0006eee6, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x00115566, 0x000eeee6, 0x0006eee6, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x000bc726, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0007555a, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x000638e6, 0x000a96aa, 0x000296aa, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00098e40, 0x000a96aa, 0x000296aa, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000e000d, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x001038f3, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000e000d, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x001038f3, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00115566, 0x000eeee6, 0x0006eee6, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00115566, 0x000eeee6, 0x0006eee6, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00115566, 0x000cf3aa, 0x0004f3aa, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00115566, 0x000cf3aa, 0x0004f3aa, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x0015c733, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x0015c733, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x0015c733, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x0015c733, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x0015c733, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x0015c733, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00115566, 0x000a96aa, 0x000296aa, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00115566, 0x000a96aa, 0x000296aa, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000ce39a, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000b8e26, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x000aaa9a, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000b8e26, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000b8e26, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x000aaa9a, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x0009c70d, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x000c71b3, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000c71b3, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x000638da, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4a, 0x0007fff3, 0x000b05b0, 0x000296aa, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000c71b3, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x000aaa9a, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x000f1c5a, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000b8e26, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000c71b3, 0x000b05b0, 0x000296aa, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x0009c70d, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x000c71b3, 0x000b05b0, 0x000296aa, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000b8e26, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x0008e380, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000aaa9a, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x000b8e26, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000b8e26, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x000fffe6, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x000b8e26, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x000b8e26, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x000aaa9a, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x00278e66, 0x000d446d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00307200, 0x000d446d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00278e66, 0x000d446d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00307200, 0x000e7036, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000ce39a, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x000e8e46, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x001038f3, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x000ce39a, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x00115566, 0x00083ca6, 0x00003ca6, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x000f1c80, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x000aaab3, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000f1c80, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x00115566, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x00115566, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x00115566, 0x000a96aa, 0x000296aa, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x00115566, 0x000a96aa, 0x000296aa, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x000638e6, 0x000a96aa, 0x000296aa, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x00098e40, 0x000a96aa, 0x000296aa, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x00115566, 0x000a96aa, 0x000296aa, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x00115566, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00115566, 0x00089da6, 0x00009da6, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x00115566, 0x000a96aa, 0x000296aa, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x00115566, 0x000df15d, 0x000608ba, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x00115566, 0x000df15d, 0x000608ba, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x0015c733, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x0015c733, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x00115566, 0x000a96aa, 0x000296aa, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000f1c80, 0x0006e38d, 0x00000000, 0x0000e390, 0, 0, 0, 0 }, { 0x7c, 0x0008e380, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x000caab6, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000caab6, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000a555d, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void msbm5_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmmi5.cc0000644000175000017500000004544610704611256016566 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMMI", 0xf4, "TeX math italic", 0x00500000, 0x4f0dda5c, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38d }, { 0x06, "quad", 0x00178e4d }, { 0x07, "extra_space", 0x00000000 } }; static TFM::Kerning C_00_Kerning[] = { { 0x3a, 0xfffdc71a }, { 0x3b, 0xfffdc71a }, { 0x3d, 0xfffee38d }, { 0x7f, 0x0001aaad } }; static TFM::Kerning C_01_Kerning[] = { { 0x7f, 0x0003555a } }; static TFM::Kerning C_02_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_03_Kerning[] = { { 0x7f, 0x0003555a } }; static TFM::Kerning C_04_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_05_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d }, { 0x3d, 0xfffee38d }, { 0x7f, 0x00011c73 } }; static TFM::Kerning C_06_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_07_Kerning[] = { { 0x3a, 0xfffdc71a }, { 0x3b, 0xfffdc71a }, { 0x3d, 0xfffee38d }, { 0x7f, 0x00011c73 } }; static TFM::Kerning C_08_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_09_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d }, { 0x3d, 0xfffee38d }, { 0x7f, 0x00011c73 } }; static TFM::Kerning C_0a_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_0b_Kerning[] = { { 0x7f, 0x00008e3a } }; static TFM::Kerning C_0c_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_0e_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d }, { 0x7f, 0x00011c73 } }; static TFM::Kerning C_0f_Kerning[] = { { 0x7f, 0x00011c73 } }; static TFM::Kerning C_10_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_11_Kerning[] = { { 0x7f, 0x00011c73 } }; static TFM::Kerning C_12_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_13_Kerning[] = { { 0x7f, 0x00011c73 } }; static TFM::Kerning C_16_Kerning[] = { { 0x7f, 0x00008e3a } }; static TFM::Kerning C_17_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d }, { 0x7f, 0x00008e3a } }; static TFM::Kerning C_18_Kerning[] = { { 0x7f, 0x000238e6 } }; static TFM::Kerning C_1a_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_1b_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d } }; static TFM::Kerning C_1c_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d }, { 0x7f, 0x00008e3a } }; static TFM::Kerning C_1d_Kerning[] = { { 0x7f, 0x00008e3a } }; static TFM::Kerning C_1e_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_1f_Kerning[] = { { 0x7f, 0x00011c73 } }; static TFM::Kerning C_20_Kerning[] = { { 0x7f, 0x000238e6 } }; static TFM::Kerning C_22_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_23_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_25_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_26_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_27_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_3d_Kerning[] = { { 0x01, 0xfffee38d }, { 0x41, 0xfffee38d }, { 0x4d, 0xfffee38d }, { 0x4e, 0xfffee38d }, { 0x59, 0x00011c73 }, { 0x5a, 0xfffee38d } }; static TFM::Kerning C_40_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_41_Kerning[] = { { 0x7f, 0x0002c720 } }; static TFM::Kerning C_42_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_43_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d }, { 0x3d, 0xffff71c6 }, { 0x7f, 0x0001aaad } }; static TFM::Kerning C_44_Kerning[] = { { 0x7f, 0x00011c73 } }; static TFM::Kerning C_45_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_46_Kerning[] = { { 0x3a, 0xfffdc71a }, { 0x3b, 0xfffdc71a }, { 0x3d, 0xfffee38d }, { 0x7f, 0x0001aaad } }; static TFM::Kerning C_47_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_48_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d }, { 0x3d, 0xfffee38d }, { 0x7f, 0x00011c73 } }; static TFM::Kerning C_49_Kerning[] = { { 0x7f, 0x000238e6 } }; static TFM::Kerning C_4a_Kerning[] = { { 0x3a, 0xfffdc71a }, { 0x3b, 0xfffdc71a }, { 0x3d, 0xfffee38d }, { 0x7f, 0x0003555a } }; static TFM::Kerning C_4b_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d }, { 0x3d, 0xfffee38d }, { 0x7f, 0x00011c73 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x7f, 0x00008e3a } }; static TFM::Kerning C_4d_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d }, { 0x3d, 0xfffee38d }, { 0x7f, 0x0001aaad } }; static TFM::Kerning C_4e_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d }, { 0x3d, 0xfffe5553 }, { 0x3d, 0xffff71c6 }, { 0x7f, 0x0001aaad } }; static TFM::Kerning C_4f_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_50_Kerning[] = { { 0x3a, 0xfffdc71a }, { 0x3b, 0xfffdc71a }, { 0x3d, 0xfffee38d }, { 0x7f, 0x0001aaad } }; static TFM::Kerning C_51_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_52_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_53_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d }, { 0x3d, 0xfffee38d }, { 0x7f, 0x0001aaad } }; static TFM::Kerning C_54_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d }, { 0x3d, 0xffff71c6 }, { 0x7f, 0x0001aaad } }; static TFM::Kerning C_55_Kerning[] = { { 0x3a, 0xfffdc71a }, { 0x3b, 0xfffdc71a }, { 0x3d, 0xfffee38d }, { 0x7f, 0x00008e3a } }; static TFM::Kerning C_56_Kerning[] = { { 0x3a, 0xfffcaaa6 }, { 0x3b, 0xfffcaaa6 }, { 0x3d, 0xfffdc71a } }; static TFM::Kerning C_57_Kerning[] = { { 0x3a, 0xfffcaaa6 }, { 0x3b, 0xfffcaaa6 }, { 0x3d, 0xfffdc71a } }; static TFM::Kerning C_58_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d }, { 0x3d, 0xfffe5553 }, { 0x3d, 0xffff71c6 }, { 0x7f, 0x0001aaad } }; static TFM::Kerning C_59_Kerning[] = { { 0x3a, 0xfffcaaa6 }, { 0x3b, 0xfffcaaa6 }, { 0x3d, 0xfffdc71a } }; static TFM::Kerning C_5a_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d }, { 0x3d, 0xfffee38d }, { 0x7f, 0x0001aaad } }; static TFM::Kerning C_60_Kerning[] = { { 0x7f, 0x000238e6 } }; static TFM::Kerning C_63_Kerning[] = { { 0x7f, 0x00011c73 } }; static TFM::Kerning C_64_Kerning[] = { { 0x59, 0x00011c73 }, { 0x5a, 0xfffee38d }, { 0x66, 0xfffcaaa6 }, { 0x6a, 0xfffdc71a }, { 0x7f, 0x0003555a } }; static TFM::Kerning C_65_Kerning[] = { { 0x7f, 0x00011c73 } }; static TFM::Kerning C_66_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d }, { 0x7f, 0x0003555a } }; static TFM::Kerning C_67_Kerning[] = { { 0x7f, 0x00008e3a } }; static TFM::Kerning C_68_Kerning[] = { { 0x7f, 0xffff71c6 } }; static TFM::Kerning C_6a_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d } }; static TFM::Kerning C_6c_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_6f_Kerning[] = { { 0x7f, 0x00011c73 } }; static TFM::Kerning C_70_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_71_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_72_Kerning[] = { { 0x3a, 0xfffee38d }, { 0x3b, 0xfffee38d }, { 0x7f, 0x00011c73 } }; static TFM::Kerning C_73_Kerning[] = { { 0x7f, 0x00011c73 } }; static TFM::Kerning C_74_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_75_Kerning[] = { { 0x7f, 0x00008e3a } }; static TFM::Kerning C_76_Kerning[] = { { 0x7f, 0x00008e3a } }; static TFM::Kerning C_77_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_78_Kerning[] = { { 0x7f, 0x00008e3a } }; static TFM::Kerning C_79_Kerning[] = { { 0x7f, 0x00011c73 } }; static TFM::Kerning C_7a_Kerning[] = { { 0x7f, 0x00011c73 } }; static TFM::Kerning C_7b_Kerning[] = { { 0x7f, 0x00008e3a } }; static TFM::Kerning C_7c_Kerning[] = { { 0x7f, 0x0001aaad } }; static TFM::Kerning C_7d_Kerning[] = { { 0x7f, 0x000238e6 } }; static TFM::Character character[] = { { 0x00, 0x000d5286, 0x000aeef0, 0x00000000, 0x0000d27d, 4, C_00_Kerning, 0, 0 }, { 0x01, 0x001271da, 0x000aeef0, 0x00000000, 0x00000000, 1, C_01_Kerning, 0, 0 }, { 0x02, 0x0010c29d, 0x000aeef0, 0x00000000, 0x00008e3a, 1, C_02_Kerning, 0, 0 }, { 0x03, 0x000f7786, 0x000aeef0, 0x00000000, 0x00000000, 1, C_03_Kerning, 0, 0 }, { 0x04, 0x00104896, 0x000aeef0, 0x00000000, 0x0000425d, 1, C_04_Kerning, 0, 0 }, { 0x05, 0x0011c453, 0x000aeef0, 0x00000000, 0x00004aaa, 4, C_05_Kerning, 0, 0 }, { 0x06, 0x00110b70, 0x000aeef0, 0x00000000, 0x0000d27d, 1, C_06_Kerning, 0, 0 }, { 0x07, 0x000d71d3, 0x000aeef0, 0x00000000, 0x0000d27d, 4, C_07_Kerning, 0, 0 }, { 0x08, 0x000f1c80, 0x000aeef0, 0x00000000, 0x00000000, 1, C_08_Kerning, 0, 0 }, { 0x09, 0x000e4bb6, 0x000aeef0, 0x00000000, 0x0000bf4a, 4, C_09_Kerning, 0, 0 }, { 0x0a, 0x0010f83d, 0x000aeef0, 0x00000000, 0x0000bf4a, 1, C_0a_Kerning, 0, 0 }, { 0x0b, 0x000e9cf6, 0x0006e38d, 0x00000000, 0x00000000, 1, C_0b_Kerning, 0, 0 }, { 0x0c, 0x000ca670, 0x000b1c73, 0x00031c73, 0x0000d27d, 1, C_0c_Kerning, 0, 0 }, { 0x0d, 0x000bf353, 0x0006e38d, 0x00031c73, 0x00011c73, 0, 0, 0, 0 }, { 0x0e, 0x000a777d, 0x000b1c73, 0x00000000, 0x00008443, 3, C_0e_Kerning, 0, 0 }, { 0x0f, 0x0009d116, 0x0006e38d, 0x00000000, 0x00000000, 1, C_0f_Kerning, 0, 0 }, { 0x10, 0x000aaab3, 0x000b1c73, 0x00031c73, 0x0000d8e3, 1, C_10_Kerning, 0, 0 }, { 0x11, 0x000be673, 0x0006e38d, 0x00031c73, 0x000092f6, 1, C_11_Kerning, 0, 0 }, { 0x12, 0x000ad55a, 0x000b1c73, 0x00000000, 0x00008e3a, 1, C_12_Kerning, 0, 0 }, { 0x13, 0x0008cbe0, 0x0006e38d, 0x00000000, 0x00000000, 1, C_13_Kerning, 0, 0 }, { 0x14, 0x000d3dad, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000d71d3, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000d98b3, 0x0006e38d, 0x00031c73, 0x00000000, 1, C_16_Kerning, 0, 0 }, { 0x17, 0x000b648a, 0x0006e38d, 0x00000000, 0x00000000, 3, C_17_Kerning, 0, 0 }, { 0x18, 0x000aaab3, 0x000b1c73, 0x00031c73, 0x00004aaa, 1, C_18_Kerning, 0, 0 }, { 0x19, 0x000d4c60, 0x0006e38d, 0x00000000, 0x000092f6, 0, 0, 0, 0 }, { 0x1a, 0x000b9de6, 0x0006e38d, 0x00031c73, 0x00000000, 1, C_1a_Kerning, 0, 0 }, { 0x1b, 0x000d0af0, 0x0006e38d, 0x00000000, 0x000092f6, 2, C_1b_Kerning, 0, 0 }, { 0x1c, 0x000ae7dd, 0x0006e38d, 0x00000000, 0x000092f6, 3, C_1c_Kerning, 0, 0 }, { 0x1d, 0x000caab6, 0x0006e38d, 0x00000000, 0x000092f6, 1, C_1d_Kerning, 0, 0 }, { 0x1e, 0x000d7780, 0x000b1c73, 0x00031c73, 0x00000000, 1, C_1e_Kerning, 0, 0 }, { 0x1f, 0x000dd560, 0x0006e38d, 0x00031c73, 0x00000000, 1, C_1f_Kerning, 0, 0 }, { 0x20, 0x000ee39d, 0x000b1c73, 0x00031c73, 0x000092f6, 1, C_20_Kerning, 0, 0 }, { 0x21, 0x000e2e83, 0x0006e38d, 0x00000000, 0x000092f6, 0, 0, 0, 0 }, { 0x22, 0x000acb66, 0x0006e38d, 0x00000000, 0x00000000, 1, C_22_Kerning, 0, 0 }, { 0x23, 0x000daf76, 0x000b1c73, 0x00000000, 0x00000000, 1, C_23_Kerning, 0, 0 }, { 0x24, 0x00125123, 0x0006e38d, 0x00000000, 0x00008e3a, 0, 0, 0, 0 }, { 0x25, 0x000b9de6, 0x0006e38d, 0x00031c73, 0x00000000, 1, C_25_Kerning, 0, 0 }, { 0x26, 0x00094006, 0x0006e38d, 0x00018e3a, 0x000006c0, 1, C_26_Kerning, 0, 0 }, { 0x27, 0x000eb066, 0x0006e38d, 0x00031c73, 0x00000000, 1, C_27_Kerning, 0, 0 }, { 0x28, 0x0015c733, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x0015c733, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x0015c733, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x0015c733, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x0007555a, 0x00083ca6, 0x00003ca6, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0007555a, 0x00083ca6, 0x00003ca6, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x000bc726, 0x000771c6, 0xffff71c6, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000bc726, 0x000771c6, 0xffff71c6, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000bc726, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000bc726, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000bc726, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000bc726, 0x0006e38d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000bc726, 0x0006e38d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000bc726, 0x0006e38d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000bc726, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000bc726, 0x0006e38d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000bc726, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000bc726, 0x0006e38d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x0007555a, 0x0001f4a0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x0007555a, 0x0001f4a0, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00115566, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000bc726, 0x000c0000, 0x00040000, 0x00000000, 6, C_3d_Kerning, 0, 0 }, { 0x3e, 0x00115566, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000bc726, 0x000771c6, 0xffff71c6, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000bfbc0, 0x000b1c73, 0x00000000, 0x00011c73, 1, C_40_Kerning, 0, 0 }, { 0x41, 0x001093fa, 0x000aeef0, 0x00000000, 0x00000000, 1, C_41_Kerning, 0, 0 }, { 0x42, 0x00109786, 0x000aeef0, 0x00000000, 0x0000bf4a, 1, C_42_Kerning, 0, 0 }, { 0x43, 0x000fef90, 0x000aeef0, 0x00000000, 0x000116c0, 4, C_43_Kerning, 0, 0 }, { 0x44, 0x0011c20d, 0x000aeef0, 0x00000000, 0x00008e3a, 1, C_44_Kerning, 0, 0 }, { 0x45, 0x00101c80, 0x000aeef0, 0x00000000, 0x0000d27d, 1, C_45_Kerning, 0, 0 }, { 0x46, 0x000de0c0, 0x000aeef0, 0x00000000, 0x0000d27d, 4, C_46_Kerning, 0, 0 }, { 0x47, 0x00110650, 0x000aeef0, 0x00000000, 0x00000000, 1, C_47_Kerning, 0, 0 }, { 0x48, 0x0011c453, 0x000aeef0, 0x00000000, 0x00004aaa, 4, C_48_Kerning, 0, 0 }, { 0x49, 0x000a0723, 0x000aeef0, 0x00000000, 0x00006e3a, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000c5de6, 0x000aeef0, 0x00000000, 0x00008443, 4, C_4a_Kerning, 0, 0 }, { 0x4b, 0x001238f6, 0x000aeef0, 0x00000000, 0x000116c0, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000f4a03, 0x000aeef0, 0x00000000, 0x00000000, 1, C_4c_Kerning, 0, 0 }, { 0x4d, 0x00148b73, 0x000aeef0, 0x00000000, 0x00008e3a, 4, C_4d_Kerning, 0, 0 }, { 0x4e, 0x0011361a, 0x000aeef0, 0x00000000, 0x00008e3a, 5, C_4e_Kerning, 0, 0 }, { 0x4f, 0x0010c29d, 0x000aeef0, 0x00000000, 0x00008e3a, 1, C_4f_Kerning, 0, 0 }, { 0x50, 0x000e0176, 0x000aeef0, 0x00000000, 0x0000d27d, 4, C_50_Kerning, 0, 0 }, { 0x51, 0x001150d6, 0x000aeef0, 0x00031c73, 0x00000000, 1, C_51_Kerning, 0, 0 }, { 0x52, 0x00107aba, 0x000aeef0, 0x00000000, 0x000006c0, 1, C_52_Kerning, 0, 0 }, { 0x53, 0x000db340, 0x000aeef0, 0x00000000, 0x0000cfa3, 4, C_53_Kerning, 0, 0 }, { 0x54, 0x000d511d, 0x000aeef0, 0x00000000, 0x0000d27d, 4, C_54_Kerning, 0, 0 }, { 0x55, 0x000f1a36, 0x000aeef0, 0x00000000, 0x00008e3a, 4, C_55_Kerning, 0, 0 }, { 0x56, 0x000d3ea0, 0x000aeef0, 0x00000000, 0x0000d8e3, 3, C_56_Kerning, 0, 0 }, { 0x57, 0x0014778d, 0x000aeef0, 0x00000000, 0x0000d27d, 3, C_57_Kerning, 0, 0 }, { 0x58, 0x0011ce4a, 0x000aeef0, 0x00000000, 0x00006e3a, 5, C_58_Kerning, 0, 0 }, { 0x59, 0x000d3066, 0x000aeef0, 0x00000000, 0x0000d8e3, 3, C_59_Kerning, 0, 0 }, { 0x5a, 0x000f16d0, 0x000aeef0, 0x00000000, 0x000116c0, 4, C_5a_Kerning, 0, 0 }, { 0x5b, 0x00098e40, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00098e40, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00098e40, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x0015c733, 0x0005b8e3, 0xfffdb8e3, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x0015c733, 0x0005b8e3, 0xfffdb8e3, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x00098e3d, 0x000b1c73, 0x00000000, 0x00000000, 1, C_60_Kerning, 0, 0 }, { 0x61, 0x000c6410, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x000a2226, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x000a640d, 0x0006e38d, 0x00000000, 0x00000000, 1, C_63_Kerning, 0, 0 }, { 0x64, 0x000bd5d6, 0x000b1c73, 0x00000000, 0x00000000, 5, C_64_Kerning, 0, 0 }, { 0x65, 0x000ad510, 0x0006e38d, 0x00000000, 0x00000000, 1, C_65_Kerning, 0, 0 }, { 0x66, 0x000af1cd, 0x000b1c73, 0x00031c73, 0x000097b3, 3, C_66_Kerning, 0, 0 }, { 0x67, 0x000b359a, 0x0006e38d, 0x00031c73, 0x000092f6, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000d3dad, 0x000b1c73, 0x00000000, 0x00000000, 1, C_68_Kerning, 0, 0 }, { 0x69, 0x00088983, 0x000aa9da, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00096943, 0x000aa9da, 0x00031c73, 0x0000f193, 2, C_6a_Kerning, 0, 0 }, { 0x6b, 0x000c213a, 0x000b1c73, 0x00000000, 0x0000425d, 0, 0, 0, 0 }, { 0x6c, 0x0007af6d, 0x000b1c73, 0x00000000, 0x00000000, 1, C_6c_Kerning, 0, 0 }, { 0x6d, 0x0013a603, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x000e17c3, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x000b3e9a, 0x0006e38d, 0x00000000, 0x00000000, 1, C_6f_Kerning, 0, 0 }, { 0x70, 0x000bd5da, 0x0006e38d, 0x00031c73, 0x00000000, 1, C_70_Kerning, 0, 0 }, { 0x71, 0x000a8aed, 0x0006e38d, 0x00031c73, 0x000092f6, 1, C_71_Kerning, 0, 0 }, { 0x72, 0x000abdaa, 0x0006e38d, 0x00000000, 0x00008e3a, 3, C_72_Kerning, 0, 0 }, { 0x73, 0x000ab8ea, 0x0006e38d, 0x00000000, 0x00000000, 1, C_73_Kerning, 0, 0 }, { 0x74, 0x000904c6, 0x0009d75d, 0x00000000, 0x00000000, 1, C_74_Kerning, 0, 0 }, { 0x75, 0x000d898a, 0x0006e38d, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x000b8e43, 0x0006e38d, 0x00000000, 0x000092f6, 1, C_76_Kerning, 0, 0 }, { 0x77, 0x001024cd, 0x0006e38d, 0x00000000, 0x00006e3a, 1, C_77_Kerning, 0, 0 }, { 0x78, 0x000caab3, 0x0006e38d, 0x00000000, 0x00000000, 1, C_78_Kerning, 0, 0 }, { 0x79, 0x000bb066, 0x0006e38d, 0x00031c73, 0x000092f6, 1, C_79_Kerning, 0, 0 }, { 0x7a, 0x000b04c6, 0x0006e38d, 0x00000000, 0x000097b3, 1, C_7a_Kerning, 0, 0 }, { 0x7b, 0x00088983, 0x0006e38d, 0x00000000, 0x00000000, 1, C_7b_Kerning, 0, 0 }, { 0x7c, 0x0008db0a, 0x0006e38d, 0x00031c73, 0x00000000, 1, C_7c_Kerning, 0, 0 }, { 0x7d, 0x000e3a5d, 0x0006e38d, 0x00031c73, 0x00000000, 1, C_7d_Kerning, 0, 0 }, { 0x7e, 0x000bc726, 0x000b8f23, 0x00000000, 0x0000cfa3, 0, 0, 0, 0 }, { 0x7f, 0x0007555a, 0x000b1c73, 0x00000000, 0x0000f193, 0, 0, 0, 0 } }; void cmmi5_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmtt12.cc0000644000175000017500000002515510704611261016655 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMTT", 0xe6, "TeX typewriter text", 0x00c00000, 0xdf86b554, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00083bbc }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38f }, { 0x06, "quad", 0x00107778 }, { 0x07, "extra_space", 0x00083bbc } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x0e } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x0f } }; static TFM::Character character[] = { { 0x00, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x00083bbc, 0x0009c71c, 0xfffffffd, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x00083bbc, 0x0009c71c, 0xfffffffd, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x00083bbc, 0x000638e3, 0x00038e39, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x00083bbc, 0x000638e3, 0x00038e39, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00083bbc, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00083bbc, 0x0006e38f, 0x00038e39, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x00083bbc, 0x00090e39, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00083bbc, 0x0008fe19, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00083bbc, 0x00000000, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x00083bbc, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x00083bbc, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00083bbc, 0x0008aaac, 0x0001c71d, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x00083bbc, 0x000aaaab, 0x0000e38f, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00083bbc, 0x000384bd, 0x0001c71d, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x00083bbc, 0x0009c71c, 0xfffffffd, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00083bbc, 0x000b1c71, 0x00015555, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x00083bbc, 0x000b1c71, 0x00015555, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x00083bbc, 0x000b1c71, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00083bbc, 0x000b1c71, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00083bbc, 0x00085557, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x00083bbc, 0x00086ae0, 0xfffea3c3, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00083bbc, 0x0001ce38, 0x000238e4, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00083bbc, 0x00086ae0, 0xfffea3c3, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x00083bbc, 0x0001ce38, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00083bbc, 0x000b1c71, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00083bbc, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00083bbc, 0x0006e38f, 0x000238e4, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00083bbc, 0x0008da14, 0xffff12f7, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x00083bbc, 0x00069ce9, 0xfffcd5cc, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00083bbc, 0x0008da14, 0xffff12f7, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4a, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x00083bbc, 0x0009c71c, 0x000238e4, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x00083bbc, 0x000b1c71, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00083bbc, 0x000b1c71, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00083bbc, 0x000b1c71, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00083bbc, 0x00000000, 0x00017c30, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x00083bbc, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00083bbc, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00083bbc, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x00083bbc, 0x0006e38f, 0x00038e39, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00083bbc, 0x0009c71c, 0x00038e39, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x00083bbc, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x00083bbc, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x00083bbc, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x00083bbc, 0x0006e38f, 0x00038e39, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x00083bbc, 0x0006e38f, 0x00038e39, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x00083bbc, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x00083bbc, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00083bbc, 0x0008db71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x00083bbc, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x00083bbc, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x00083bbc, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x00083bbc, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00083bbc, 0x0006e38f, 0x00038e39, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x00083bbc, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00083bbc, 0x000b1c71, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x00083bbc, 0x000b1c71, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x00083bbc, 0x000b1c71, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00083bbc, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmtt12_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/msbm7.cc0000644000175000017500000002567710704611261016601 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "MSBM", 0xf0, "TeX math symbols", 0x00700000, 0x7179c081, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x0004ccd0 }, { 0x03, "space_stretch", 0x00026660 }, { 0x04, "space_shrink", 0x000199a0 }, { 0x05, "x_height", 0x00076847 }, { 0x06, "quad", 0x00100000 }, { 0x07, "extra_space", 0x000199a0 }, { 0x08, "num1", 0x000bb78e }, { 0x09, "num2", 0x00062477 }, { 0x0a, "num3", 0x00078a0e }, { 0x0b, "denom1", 0x000c08ce }, { 0x0c, "denom2", 0x000581e7 }, { 0x0d, "sup1", 0x00080a6b }, { 0x0e, "sup2", 0x0006e5d9 }, { 0x0f, "sup3", 0x00049249 }, { 0x10, "sub1", 0x00024925 }, { 0x11, "sub2", 0x00049249 }, { 0x12, "supdrop", 0x0005a697 }, { 0x13, "subdrop", 0x00012492 }, { 0x14, "delim1", 0x001b3332 }, { 0x15, "delim2", 0x001283a9 }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Character character[] = { { 0x00, 0x000e4929, 0x000d3219, 0x00051cdb, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000e4929, 0x000d3219, 0x00051cdb, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000e4929, 0x000df3a9, 0x0005f3a9, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000e4929, 0x000df3a9, 0x0005f3a9, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000e4929, 0x000c14e2, 0x000414e2, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000e4929, 0x000c14e2, 0x000414e2, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000e4929, 0x000c14e2, 0x000414e2, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000e4929, 0x000c14e2, 0x000414e2, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000e4929, 0x000d3219, 0x00051cdb, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000e4929, 0x000d3219, 0x00051cdb, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000e4929, 0x000df3a9, 0x0005f3a9, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000e4929, 0x000df3a9, 0x0005f3a9, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000e4929, 0x000df3a9, 0x0005f3a9, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000e4929, 0x000df3a9, 0x0005f3a9, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x000e4929, 0x000c75a7, 0x000475a7, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x000e4929, 0x000cafd9, 0x0004afd9, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000e4929, 0x000c75a7, 0x000475a7, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000e4929, 0x000cafd9, 0x0004afd9, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000e4929, 0x001010ab, 0x000810ab, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000e4929, 0x001010ab, 0x000810ab, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000e4929, 0x000d3219, 0x00051cdb, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000e4929, 0x000d3219, 0x00051cdb, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x000e4929, 0x000d3219, 0x00054759, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000e4929, 0x000d3219, 0x00054759, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000e4929, 0x000d3219, 0x00054759, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000e4929, 0x000d3219, 0x00054759, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x000e4929, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000e4929, 0x000df3a9, 0x0005f3a9, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00104109, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x00104109, 0x000c14e2, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x000e4929, 0x000d3219, 0x00051cdb, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000e4929, 0x000d3219, 0x00051cdb, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000e4929, 0x000db145, 0x0005b145, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000e4929, 0x000db145, 0x0005b145, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000e4929, 0x000d3219, 0x00051cdb, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000e4929, 0x000d3219, 0x00051cdb, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000e4929, 0x000b05b0, 0x00030a10, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000e4929, 0x000df3a9, 0x0005f3a9, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000e4929, 0x000df3a9, 0x0005f3a9, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00095d79, 0x000c14e2, 0x000414e2, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00056db9, 0x000c14e2, 0x000414e2, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x000471c9, 0x0009f515, 0x0001f515, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00076599, 0x0009f515, 0x0001f515, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000b5559, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000d4d39, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000b5559, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000d4d39, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000e4929, 0x000df3a9, 0x0005f3a9, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000e4929, 0x000df3a9, 0x0005f3a9, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000e4929, 0x000c14e2, 0x000414e2, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000e4929, 0x000c14e2, 0x000414e2, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x001238e9, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x001238e9, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x001238e9, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x001238e9, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x001238e9, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x001238e9, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000e4929, 0x0009f515, 0x0001f515, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000e4929, 0x0009f515, 0x0001f515, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000a5969, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000b8e32, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x000aaaa5, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000b8e32, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000b8e32, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x000aaaa5, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x0009c717, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x000c71c0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000c71c0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x000638e0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4a, 0x0007fffb, 0x000b05b0, 0x0002aaa9, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000c71c0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x000aaaa5, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x000f1c69, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000b8e32, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000c71c0, 0x000b05b0, 0x0002aaa9, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x0009c717, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x000c71c0, 0x000b05b0, 0x0002aaa9, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000b8e32, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x0008e389, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000aaaa5, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x000b8e32, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000b8e32, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x000ffff7, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x000b8e32, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x000b8e32, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x000aaaa5, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x0021f7e9, 0x000d3219, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x0029d769, 0x000d3219, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x0021f7e9, 0x000d3219, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x0029d769, 0x000e6665, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000a5969, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x000bd350, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000d4d39, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x000a5969, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x000e4929, 0x0007e6e5, 0xffffe6e5, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x000c5149, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00086189, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000c5149, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x000e4929, 0x000935f7, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000e4929, 0x000935f7, 0x000135f7, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x000e4929, 0x0009f515, 0x0001f515, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x000e4929, 0x0009f515, 0x0001f515, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x000471c9, 0x0009f515, 0x0001f515, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x00076599, 0x0009f515, 0x0001f515, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x000e4929, 0x0009f515, 0x0001f515, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x000e4929, 0x00062530, 0xfffe2530, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x000e4929, 0x000840d5, 0x000040d5, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x000e4929, 0x0009f515, 0x0001f515, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x000e4929, 0x000d3219, 0x00054759, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000e4929, 0x000d3219, 0x00054759, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x001238e9, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x001238e9, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x000e4929, 0x0009f515, 0x0001f515, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000c5149, 0x0006e38e, 0x00000000, 0x0000c30e, 0, 0, 0, 0 }, { 0x7c, 0x0008e389, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x000a2087, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000a2087, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00081c75, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void msbm7_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmb10.cc0000644000175000017500000004221510704611254016443 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMB", 0xea, "TeX text", 0x00a00000, 0xd20b9e26, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00055556 }, { 0x03, "space_stretch", 0x0002aaab }, { 0x04, "space_shrink", 0x0001c71d }, { 0x05, "x_height", 0x00071c72 }, { 0x06, "quad", 0x00100003 }, { 0x07, "extra_space", 0x0001c71d } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x0001c71d }, { 0x27, 0x0001c71d }, { 0x29, 0x0001c71d }, { 0x3f, 0x0001c71d }, { 0x5d, 0x0001c71d } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffa9996 }, { 0x6c, 0xfffb8e38 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001c71d }, { 0x3f, 0x0001c71d } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x54, 0xfffeaaaa }, { 0x55, 0xffff8e38 }, { 0x56, 0xfffe38e3 }, { 0x57, 0xfffe38e3 }, { 0x59, 0xfffeaaaa }, { 0x74, 0xffff8e38 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff8e38 }, { 0x56, 0xffff8e38 }, { 0x57, 0xffff8e38 }, { 0x58, 0xffff8e38 }, { 0x59, 0xffff8e38 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffe38e3 }, { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x61, 0xfffeaaaa }, { 0x65, 0xfffeaaaa }, { 0x6f, 0xfffeaaaa }, { 0x72, 0xfffeaaaa }, { 0x75, 0xfffeaaaa } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x000071c8 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffeaaaa }, { 0x56, 0xfffe38e3 }, { 0x57, 0xfffe38e3 }, { 0x59, 0xfffeaaaa } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff8e38 }, { 0x56, 0xffff8e38 }, { 0x57, 0xffff8e38 }, { 0x58, 0xffff8e38 }, { 0x59, 0xffff8e38 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffeaaaa }, { 0x2e, 0xfffeaaaa }, { 0x41, 0xfffeaaaa }, { 0x61, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x54, 0xfffeaaaa }, { 0x55, 0xffff8e38 }, { 0x56, 0xfffe38e3 }, { 0x57, 0xfffe38e3 }, { 0x59, 0xfffeaaaa }, { 0x74, 0xffff8e38 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffeaaaa }, { 0x61, 0xfffeaaaa }, { 0x65, 0xfffeaaaa }, { 0x6f, 0xfffeaaaa }, { 0x72, 0xfffeaaaa }, { 0x75, 0xfffeaaaa }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffe38e3 }, { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x61, 0xfffeaaaa }, { 0x65, 0xfffeaaaa }, { 0x6f, 0xfffeaaaa }, { 0x72, 0xfffeaaaa }, { 0x75, 0xfffeaaaa } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffe38e3 }, { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x61, 0xfffeaaaa }, { 0x65, 0xfffeaaaa }, { 0x6f, 0xfffeaaaa }, { 0x72, 0xfffeaaaa }, { 0x75, 0xfffeaaaa } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffeaaaa }, { 0x61, 0xfffeaaaa }, { 0x65, 0xfffeaaaa }, { 0x6f, 0xfffeaaaa }, { 0x72, 0xfffeaaaa }, { 0x75, 0xfffeaaaa } }; static TFM::Kerning C_61_Kerning[] = { { 0x6a, 0x0000e38e }, { 0x76, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x000071c8 }, { 0x64, 0x000071c8 }, { 0x65, 0x000071c8 }, { 0x6a, 0x0000e38e }, { 0x6f, 0x000071c8 }, { 0x71, 0x000071c8 }, { 0x76, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x78, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_63_Kerning[] = { { 0x68, 0xffff8e38 }, { 0x6b, 0xffff8e38 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x0001c71d }, { 0x27, 0x0001c71d }, { 0x29, 0x0001c71d }, { 0x3f, 0x0001c71d }, { 0x5d, 0x0001c71d } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x000071c8 } }; static TFM::Kerning C_68_Kerning[] = { { 0x62, 0xffff8e38 }, { 0x74, 0xffff8e38 }, { 0x75, 0xffff8e38 }, { 0x76, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff1c72 }, { 0x61, 0xffff8e38 }, { 0x63, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Kerning C_6d_Kerning[] = { { 0x62, 0xffff8e38 }, { 0x74, 0xffff8e38 }, { 0x75, 0xffff8e38 }, { 0x76, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_6e_Kerning[] = { { 0x62, 0xffff8e38 }, { 0x74, 0xffff8e38 }, { 0x75, 0xffff8e38 }, { 0x76, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x000071c8 }, { 0x64, 0x000071c8 }, { 0x65, 0x000071c8 }, { 0x6a, 0x0000e38e }, { 0x6f, 0x000071c8 }, { 0x71, 0x000071c8 }, { 0x76, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x78, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x000071c8 }, { 0x64, 0x000071c8 }, { 0x65, 0x000071c8 }, { 0x6a, 0x0000e38e }, { 0x6f, 0x000071c8 }, { 0x71, 0x000071c8 }, { 0x76, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x78, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff8e38 } }; static TFM::Kerning C_76_Kerning[] = { { 0x61, 0xffff1c72 }, { 0x61, 0xffff8e38 }, { 0x63, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff8e38 }, { 0x63, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffeaaaa }, { 0x2e, 0xfffeaaaa }, { 0x61, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x0009999d, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000d5558, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000c71ca, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000b3336, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000aaaad, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000c888b, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000b8e3b, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000c71ca, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000b8e3b, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000c71ca, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000b8e3b, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x00095558, 0x000b1c72, 0x00000000, 0x0001c71d, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x0008e390, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x0008e390, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000d5558, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000d5558, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x000471c8, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x0004e390, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x00080002, 0x000a1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00080002, 0x000989aa, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000c16c5, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00071c73, 0x00000000, 0x0002b8e3, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x0008f4a0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000b8e3b, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000c71ca, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00080002, 0x0008aaab, 0x00018e3a, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000e7d2b, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00104448, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000c71ca, 0x000bc16d, 0x0000c71d, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x000471c8, 0x00071c72, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x0004e38e, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x0008b60d, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000d5558, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00080002, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000d5558, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000c71ca, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000471c8, 0x000b1c72, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x000638e5, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000638e5, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00080002, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000c71ca, 0x00095556, 0x00015556, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x000471c8, 0x00027d28, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00055556, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x000471c8, 0x00027d28, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00080002, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000471c8, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x000471c8, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x0004e38e, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000c71ca, 0x000641fe, 0xfffe41fe, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00078e3b, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00078e3b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000c71ca, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000c16c5, 0x000afa50, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000b60ba, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000b8e3b, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000c4448, 0x000afa50, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000a7d2b, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000a0b65, 0x000afa50, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000c93ed, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000c888b, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x00065b08, 0x000afa50, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x00084446, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000c888d, 0x000afa50, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x0009999d, 0x000afa50, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000f3336, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000c888b, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000c0003, 0x000afa50, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000aeef2, 0x000afa50, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000c0003, 0x000afa50, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000c27d5, 0x000afa50, 0x00000000, 0x00000000, 10, C_52_Kerning, 0, 0 }, { 0x53, 0x0008e390, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000b1c75, 0x000afa50, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000c4fa8, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000c16c5, 0x000afa50, 0x00000000, 0x000038e3, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x0010888d, 0x000afa50, 0x00000000, 0x000038e3, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000c16c5, 0x000afa50, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000c16c5, 0x000afa50, 0x00000000, 0x00006666, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x0009c71e, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x00047ae3, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x0008b60d, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00047ae3, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000471c8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000471c8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x0007c71e, 0x00071c72, 0x00000000, 0x00000000, 4, C_61_Kerning, 0, 0 }, { 0x62, 0x0008e390, 0x000b1c72, 0x00000000, 0x00000000, 10, C_62_Kerning, 0, 0 }, { 0x63, 0x00071c73, 0x00071c72, 0x00000000, 0x00000000, 2, C_63_Kerning, 0, 0 }, { 0x64, 0x0008e390, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00077778, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x0004e390, 0x000b1c72, 0x00000000, 0x0001c71d, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x00080002, 0x00071c72, 0x00031c72, 0x000038e3, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x0008e390, 0x000b1c72, 0x00000000, 0x00000000, 6, C_68_Kerning, 0, 0 }, { 0x69, 0x000471c8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x0004e390, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000871ca, 0x000b1c72, 0x00000000, 0x00000000, 5, C_6b_Kerning, 0, 0 }, { 0x6c, 0x000471c8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000d5558, 0x00071c72, 0x00000000, 0x00000000, 6, C_6d_Kerning, 0, 0 }, { 0x6e, 0x0008e390, 0x00071c72, 0x00000000, 0x00000000, 6, C_6e_Kerning, 0, 0 }, { 0x6f, 0x00080002, 0x00071c72, 0x00000000, 0x00000000, 10, C_6f_Kerning, 0, 0 }, { 0x70, 0x0008e390, 0x00071c72, 0x00031c72, 0x00000000, 10, C_70_Kerning, 0, 0 }, { 0x71, 0x000871c8, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x0006d830, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x00064fa6, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00063e95, 0x000a28a3, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x0008e390, 0x00071c72, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x000871ca, 0x00071c72, 0x00000000, 0x000038e3, 5, C_76_Kerning, 0, 0 }, { 0x77, 0x000b8e3b, 0x00071c72, 0x00000000, 0x000038e3, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x000871ca, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x000871ca, 0x00071c72, 0x00031c72, 0x000038e3, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x00071c73, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00080002, 0x00071c72, 0x00000000, 0x000071c8, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x00100003, 0x00071c72, 0x00000000, 0x000071c8, 0, 0, 0, 0 }, { 0x7d, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmb10_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmex9.cc0000644000175000017500000002532510704611256016573 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMEX", 0xec, "TeX math extension", 0x00900000, 0x7ac0d369, 13, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x001071c0 }, { 0x07, "extra_space", 0x00000000 }, { 0x08, "default_rule_thickness", 0x0000acf2 }, { 0x09, "big_op_spacing1", 0x0001c71c }, { 0x0a, "big_op_spacing2", 0x0002aaab }, { 0x0b, "big_op_spacing3", 0x00033334 }, { 0x0c, "big_op_spacing4", 0x0009add4 }, { 0x0d, "big_op_spacing5", 0x0001c71c } }; static TFM::Character character[] = { { 0x00, 0x00078977, 0x0000acf2, 0x0012864e, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x00078977, 0x0000acf2, 0x0012864e, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x0006da10, 0x0000acf2, 0x0012864e, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x0006da10, 0x0000acf2, 0x0012864e, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x0007c3f0, 0x0000acf2, 0x0012864e, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x0007c3f0, 0x0000acf2, 0x0012864e, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x0007c3f0, 0x0000acf2, 0x0012864e, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x0007c3f0, 0x0000acf2, 0x0012864e, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000997b2, 0x0000acf2, 0x0012864e, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000997b2, 0x0000acf2, 0x0012864e, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x0007c3f2, 0x0000acf2, 0x0012864e, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x0007c3f2, 0x0000acf2, 0x0012864e, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x00057b40, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000922c0, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x0009804c, 0x0000acf2, 0x0012864e, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x0009804c, 0x0000acf2, 0x0012864e, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x0009d227, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x0009d227, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000c1ad7, 0x0000acf2, 0x0025b98e, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000c1ad7, 0x0000acf2, 0x0025b98e, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x0008add0, 0x0000acf2, 0x0025b98e, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x0008add0, 0x0000acf2, 0x0025b98e, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000997b0, 0x0000acf2, 0x0025b98e, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000997b0, 0x0000acf2, 0x0025b98e, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x000997b0, 0x0000acf2, 0x0025b98e, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000997b0, 0x0000acf2, 0x0025b98e, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000c5552, 0x0000acf2, 0x0025b98e, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000c5552, 0x0000acf2, 0x0025b98e, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x000c5552, 0x0000acf2, 0x0025b98e, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000c5552, 0x0000acf2, 0x0025b98e, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00112cdb, 0x0000acf2, 0x0025b98e, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x00112cdb, 0x0000acf2, 0x0025b98e, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x000d04b7, 0x0000acf2, 0x002f532e, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x000d04b7, 0x0000acf2, 0x002f532e, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x000997b0, 0x0000acf2, 0x002f532e, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000997b0, 0x0000acf2, 0x002f532e, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000a8190, 0x0000acf2, 0x002f532e, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000a8190, 0x0000acf2, 0x002f532e, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000a8190, 0x0000acf2, 0x002f532e, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000a8190, 0x0000acf2, 0x002f532e, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x000d3f30, 0x0000acf2, 0x002f532e, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000d3f30, 0x0000acf2, 0x002f532e, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000d3f30, 0x0000acf2, 0x002f532e, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000d3f30, 0x0000acf2, 0x002f532e, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00150320, 0x0000acf2, 0x002f532e, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00150320, 0x0000acf2, 0x002f532e, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x000d5694, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000d5694, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000e6387, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000e6387, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000af680, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000af680, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000af680, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000af680, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000af680, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000af680, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000e9e00, 0x00000000, 0x000e6670, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000e9e00, 0x00000000, 0x000e6670, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000e9e00, 0x00000000, 0x000e6670, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x000e9e00, 0x00000000, 0x000e6670, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000e9e00, 0x00000000, 0x001ccce0, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000e9e00, 0x00000000, 0x001ccce0, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000e9e00, 0x00000000, 0x0004ccd0, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000af680, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000e6387, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000e6387, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x000e6387, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000e6387, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000a0ca0, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x000a0ca0, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000db420, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x00124580, 0x0001999b, 0x0018000c, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x0007c3f0, 0x00000000, 0x0011c729, 0x00033290, 0, 0, 0, 0 }, { 0x49, 0x000922c0, 0x00000000, 0x00238e52, 0x00074f00, 0, 0, 0, 0 }, { 0x4a, 0x00124580, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x0018d965, 0x0001999b, 0x0018000c, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x00124580, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x0018d965, 0x0001999b, 0x0018000c, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x00124580, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x0018d965, 0x0001999b, 0x0018000c, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x00115ba0, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x000f87e0, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x0007c3f0, 0x00000000, 0x0011c729, 0x00033290, 0, 0, 0, 0 }, { 0x53, 0x000db420, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000db420, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x000db420, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000db420, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x000db420, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x0017c0c0, 0x0001999b, 0x0018000c, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x00150320, 0x0001999b, 0x0018000c, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x000922c0, 0x00000000, 0x00238e52, 0x00074f00, 0, 0, 0, 0 }, { 0x5b, 0x00124580, 0x0001999b, 0x0018000c, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00124580, 0x0001999b, 0x0018000c, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00124580, 0x0001999b, 0x0018000c, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00124580, 0x0001999b, 0x0018000c, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00124580, 0x0001999b, 0x0018000c, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000f87e0, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x00150320, 0x0001999b, 0x0018000c, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x000922c0, 0x000b8e39, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x001071c0, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x0017c0c0, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x000922c0, 0x000b8e39, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x001071c0, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x0017c0c0, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x0007c3f0, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x0007c3f0, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x0008add0, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x0008add0, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x0008add0, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x0008add0, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x000af680, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x000af680, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x001071c0, 0x0000acf2, 0x0012864e, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x001071c0, 0x0000acf2, 0x001c1fee, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x001071c0, 0x0000acf2, 0x0025b98e, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x001071c0, 0x0000acf2, 0x002f532e, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00115ba0, 0x00000000, 0x001ccce0, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x00115ba0, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x00115ba0, 0x0000acf2, 0x0008ecae, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000cca40, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x000af680, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x000af680, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x00073339, 0x000206d5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00073339, 0x000206d5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x00073339, 0x000206d5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x00073339, 0x000206d5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000cca40, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000cca40, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 } }; void cmex9_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmr17.cc0000644000175000017500000004221510704611257016475 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMR", 0xdb, "TeX text", 0x01147ae0, 0x44d3ed74, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x0004d488 }, { 0x03, "space_stretch", 0x000281f8 }, { 0x04, "space_shrink", 0x0001abfb }, { 0x05, "x_height", 0x0006e34b }, { 0x06, "quad", 0x000ead01 }, { 0x07, "extra_space", 0x0001abfb } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x0000f2cc }, { 0x27, 0x0000f2cc }, { 0x29, 0x0000f2cc }, { 0x3f, 0x0000f2cc }, { 0x5d, 0x0000f2cc } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffb61ca }, { 0x6c, 0xfffc0176 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001abfb }, { 0x3f, 0x0001abfb } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 }, { 0x54, 0xfffebf04 }, { 0x55, 0xffff9501 }, { 0x56, 0xfffe5405 }, { 0x57, 0xfffe5405 }, { 0x59, 0xfffebf04 }, { 0x74, 0xffff9501 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff9501 }, { 0x56, 0xffff9501 }, { 0x57, 0xffff9501 }, { 0x58, 0xffff9501 }, { 0x59, 0xffff9501 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffe5405 }, { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 }, { 0x61, 0xfffebf04 }, { 0x65, 0xfffebf04 }, { 0x6f, 0xfffebf04 }, { 0x72, 0xfffebf04 }, { 0x75, 0xfffebf04 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x00006aff } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffebf04 }, { 0x56, 0xfffe5405 }, { 0x57, 0xfffe5405 }, { 0x59, 0xfffebf04 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff9501 }, { 0x56, 0xffff9501 }, { 0x57, 0xffff9501 }, { 0x58, 0xffff9501 }, { 0x59, 0xffff9501 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffebf04 }, { 0x2e, 0xfffebf04 }, { 0x41, 0xfffebf04 }, { 0x61, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 }, { 0x54, 0xfffebf04 }, { 0x55, 0xffff9501 }, { 0x56, 0xfffe5405 }, { 0x57, 0xfffe5405 }, { 0x59, 0xfffebf04 }, { 0x74, 0xffff9501 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffebf04 }, { 0x61, 0xfffebf04 }, { 0x65, 0xfffebf04 }, { 0x6f, 0xfffebf04 }, { 0x72, 0xfffebf04 }, { 0x75, 0xfffebf04 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffe5405 }, { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 }, { 0x61, 0xfffebf04 }, { 0x65, 0xfffebf04 }, { 0x6f, 0xfffebf04 }, { 0x72, 0xfffebf04 }, { 0x75, 0xfffebf04 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffe5405 }, { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 }, { 0x61, 0xfffebf04 }, { 0x65, 0xfffebf04 }, { 0x6f, 0xfffebf04 }, { 0x72, 0xfffebf04 }, { 0x75, 0xfffebf04 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff9501 }, { 0x47, 0xffff9501 }, { 0x4f, 0xffff9501 }, { 0x51, 0xffff9501 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffebf04 }, { 0x61, 0xfffebf04 }, { 0x65, 0xfffebf04 }, { 0x6f, 0xfffebf04 }, { 0x72, 0xfffebf04 }, { 0x75, 0xfffebf04 } }; static TFM::Kerning C_61_Kerning[] = { { 0x6a, 0x0000d5fd }, { 0x76, 0xffff9501 }, { 0x77, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x00006aff }, { 0x64, 0x00006aff }, { 0x65, 0x00006aff }, { 0x6a, 0x0000d5fd }, { 0x6f, 0x00006aff }, { 0x71, 0x00006aff }, { 0x76, 0xffff9501 }, { 0x77, 0xffff9501 }, { 0x78, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_63_Kerning[] = { { 0x68, 0xffff9501 }, { 0x6b, 0xffff9501 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x0000f2cc }, { 0x27, 0x0000f2cc }, { 0x29, 0x0000f2cc }, { 0x3f, 0x0000f2cc }, { 0x5d, 0x0000f2cc } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x00006aff } }; static TFM::Kerning C_68_Kerning[] = { { 0x62, 0xffff9501 }, { 0x74, 0xffff9501 }, { 0x75, 0xffff9501 }, { 0x76, 0xffff9501 }, { 0x77, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff2a03 }, { 0x61, 0xffff9501 }, { 0x63, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 } }; static TFM::Kerning C_6d_Kerning[] = { { 0x62, 0xffff9501 }, { 0x74, 0xffff9501 }, { 0x75, 0xffff9501 }, { 0x76, 0xffff9501 }, { 0x77, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_6e_Kerning[] = { { 0x62, 0xffff9501 }, { 0x74, 0xffff9501 }, { 0x75, 0xffff9501 }, { 0x76, 0xffff9501 }, { 0x77, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x00006aff }, { 0x64, 0x00006aff }, { 0x65, 0x00006aff }, { 0x6a, 0x0000d5fd }, { 0x6f, 0x00006aff }, { 0x71, 0x00006aff }, { 0x76, 0xffff9501 }, { 0x77, 0xffff9501 }, { 0x78, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x00006aff }, { 0x64, 0x00006aff }, { 0x65, 0x00006aff }, { 0x6a, 0x0000d5fd }, { 0x6f, 0x00006aff }, { 0x71, 0x00006aff }, { 0x76, 0xffff9501 }, { 0x77, 0xffff9501 }, { 0x78, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff9501 }, { 0x79, 0xffff9501 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff9501 } }; static TFM::Kerning C_76_Kerning[] = { { 0x61, 0xffff2a03 }, { 0x61, 0xffff9501 }, { 0x63, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff9501 }, { 0x63, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffebf04 }, { 0x2e, 0xfffebf04 }, { 0x61, 0xffff9501 }, { 0x65, 0xffff9501 }, { 0x6f, 0xffff9501 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x00093728, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000c5a71, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000b8474, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000a41d3, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x0009d879, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000b17d1, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000aae76, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000b8474, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000aae76, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000b8474, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000aae76, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x00086814, 0x000b1c72, 0x00000000, 0x0000f2cc, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x0007fd15, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x0007fd15, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000bfb9f, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000bfb9f, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x0003fe8a, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00046989, 0x0006e34b, 0x00031cb5, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00075680, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00075680, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x00075680, 0x000a0e28, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00075680, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00075680, 0x0008f3e0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000b17d1, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00068083, 0x00000000, 0x0002b91f, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00075680, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000aae76, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000b8474, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00075680, 0x000871a6, 0x00018e5b, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000d651c, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000f1117, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000b8474, 0x000bb589, 0x0000c72e, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x0003fe8a, 0x0006e34b, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x0003fe8a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x00075680, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000c5a71, 0x000b1c72, 0x00031cb5, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00075680, 0x000bfc50, 0x0000dfde, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000c5a71, 0x000bfc50, 0x0000dfde, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000b8474, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x0003fe8a, 0x000b1c72, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x0005aa85, 0x000bfc50, 0x0003fc93, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x0005aa85, 0x000bfc50, 0x0003fc93, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00075680, 0x000bfc50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000b8474, 0x000903cf, 0x00010413, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x0003fe8a, 0x00014fce, 0x00031cb5, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0004d488, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x0003fe8a, 0x00014fce, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00075680, 0x000bfc50, 0x0003fc93, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00075680, 0x000a5054, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00075680, 0x000a5054, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00075680, 0x000a5054, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00075680, 0x000a5054, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00075680, 0x000a5054, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00075680, 0x000a5054, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00075680, 0x000a5054, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00075680, 0x000a5054, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00075680, 0x000a5054, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00075680, 0x000a5054, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x0003fe8a, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x0003fe8a, 0x0006e34b, 0x00031cb5, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x0003fe8a, 0x0007ffbc, 0x00031cb5, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000b8474, 0x0005b073, 0xfffdb0b7, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x0006eb82, 0x0007ffbc, 0x00031cb5, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x0006eb82, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000b8474, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000b17d1, 0x000aee5b, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000a7825, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000aae76, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000b4e22, 0x000aee5b, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000a0d26, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x0009a227, 0x000aee5b, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000b9eca, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000b17d1, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x00053de2, 0x000aee5b, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x00078b2e, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000b82cf, 0x000aee5b, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x00093728, 0x000aee5b, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000d99c9, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000b17d1, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000b8474, 0x000aee5b, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000a0d26, 0x000aee5b, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000b8474, 0x000aee5b, 0x00031cb5, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000ae323, 0x000aee5b, 0x00000000, 0x00000000, 10, C_52_Kerning, 0, 0 }, { 0x53, 0x00082c7e, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000aae76, 0x000aee5b, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000b17d1, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000b17d1, 0x000aee5b, 0x00000000, 0x0000357f, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x000f45c4, 0x000aee5b, 0x00000000, 0x0000357f, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000b17d1, 0x000aee5b, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000b17d1, 0x000aee5b, 0x00000000, 0x0000604c, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x0009027b, 0x000aee5b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x0003fe8a, 0x000bfc50, 0x0003fc93, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00075680, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x0003fe8a, 0x000bfc50, 0x0003fc93, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00075680, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x0003fe8a, 0x000a7ee5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x0003fe8a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x00075680, 0x0006e34b, 0x00000000, 0x00000000, 4, C_61_Kerning, 0, 0 }, { 0x62, 0x00082c7e, 0x000b1c72, 0x00000000, 0x00000000, 10, C_62_Kerning, 0, 0 }, { 0x63, 0x00068083, 0x0006e34b, 0x00000000, 0x00000000, 2, C_63_Kerning, 0, 0 }, { 0x64, 0x00082c7e, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00068083, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x00046989, 0x000b1c72, 0x00000000, 0x0000f2cc, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x00075680, 0x0006e34b, 0x00031cb5, 0x0000357f, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x00082c7e, 0x000b1c72, 0x00000000, 0x00000000, 6, C_68_Kerning, 0, 0 }, { 0x69, 0x0003fe8a, 0x000a7ee5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00046989, 0x000a7ee5, 0x00031cb5, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x0007c17f, 0x000b1c72, 0x00000000, 0x00000000, 5, C_6b_Kerning, 0, 0 }, { 0x6c, 0x0003fe8a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000c5a71, 0x0006e34b, 0x00000000, 0x00000000, 6, C_6d_Kerning, 0, 0 }, { 0x6e, 0x00082c7e, 0x0006e34b, 0x00000000, 0x00000000, 6, C_6e_Kerning, 0, 0 }, { 0x6f, 0x00075680, 0x0006e34b, 0x00000000, 0x00000000, 10, C_6f_Kerning, 0, 0 }, { 0x70, 0x00082c7e, 0x0006e34b, 0x00031cb5, 0x00000000, 10, C_70_Kerning, 0, 0 }, { 0x71, 0x0007c17f, 0x0006e34b, 0x00031cb5, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x0005aa85, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x0005bfec, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x0005aa85, 0x0009d6fe, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x00082c7e, 0x0006e34b, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x0007c17f, 0x0006e34b, 0x00000000, 0x0000357f, 5, C_76_Kerning, 0, 0 }, { 0x77, 0x000aae76, 0x0006e34b, 0x00000000, 0x0000357f, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x0007c17f, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x0007c17f, 0x0006e34b, 0x00031cb5, 0x0000357f, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x00068083, 0x0006e34b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00075680, 0x0006e34b, 0x00000000, 0x00006aff, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x000ead01, 0x0006e34b, 0x00000000, 0x00006aff, 0, 0, 0, 0 }, { 0x7d, 0x00075680, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x00075680, 0x000a7ee5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00075680, 0x000a7ee5, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmr17_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/msbm10.cc0000644000175000017500000002570010704611255016641 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "MSBM", 0xea, "TeX math symbols", 0x00a00000, 0x88b616c8, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x0004ccd0 }, { 0x03, "space_stretch", 0x00026660 }, { 0x04, "space_shrink", 0x000199a0 }, { 0x05, "x_height", 0x0007684d }, { 0x06, "quad", 0x00100000 }, { 0x07, "extra_space", 0x000199a0 }, { 0x08, "num1", 0x000ad2fa }, { 0x09, "num2", 0x00064cba }, { 0x0a, "num3", 0x00071986 }, { 0x0b, "denom1", 0x000af9a8 }, { 0x0c, "denom2", 0x00058478 }, { 0x0d, "sup1", 0x00069b35 }, { 0x0e, "sup2", 0x0005ce68 }, { 0x0f, "sup3", 0x00049f4a }, { 0x10, "sub1", 0x00026666 }, { 0x11, "sub2", 0x0003f49a }, { 0x12, "supdrop", 0x00062d80 }, { 0x13, "subdrop", 0x0000cccd }, { 0x14, "delim1", 0x00263d70 }, { 0x15, "delim2", 0x001028f6 }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Character character[] = { { 0x00, 0x000c71ca, 0x000c1dba, 0x000405d3, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000c71ca, 0x000c1dba, 0x000405d3, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000c71ca, 0x000cb386, 0x0004d808, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000c71ca, 0x000cb386, 0x0004d808, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000c71ca, 0x000b4ad0, 0x00034ad0, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000c71ca, 0x000b4ad0, 0x00034ad0, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000c71ca, 0x000b4ad0, 0x00034ad0, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000c71ca, 0x000b4ad0, 0x00034ad0, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000c71ca, 0x000c1dba, 0x000405d3, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000c71ca, 0x000c1dba, 0x000405d3, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000c71ca, 0x000cb386, 0x0004d808, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000c71ca, 0x000cb386, 0x0004d808, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x000c71ca, 0x000a2cf0, 0x00022cf0, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000c71ca, 0x000a2cf0, 0x00022cf0, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000c71ca, 0x000cb386, 0x0004d808, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000c71ca, 0x000cb386, 0x0004d808, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x000c71ca, 0x000bdb96, 0x0003b72d, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x000c71ca, 0x000bdb96, 0x0003b72d, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000c71ca, 0x000bdb96, 0x0003b72d, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000c71ca, 0x000bdb96, 0x0003b72d, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000c71ca, 0x000eb653, 0x0006b653, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000c71ca, 0x000eb653, 0x0006b653, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000c71ca, 0x000c1dba, 0x000405d3, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000c71ca, 0x000c1dba, 0x000405d3, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x000c71ca, 0x000c1dba, 0x00042fcb, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000c71ca, 0x000c1dba, 0x00042fcb, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000c71ca, 0x000c1dba, 0x00042fcb, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000c71ca, 0x000c1dba, 0x00042fcb, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x000c71ca, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000c71ca, 0x000cb386, 0x0004d808, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000e38e6, 0x000b05b0, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000e38e6, 0x000bdb96, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x000c71ca, 0x000a2cf0, 0x00022cf0, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x000c71ca, 0x000a2cf0, 0x00022cf0, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x000c71ca, 0x000c1dba, 0x000405d3, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000c71ca, 0x000c1dba, 0x000405d3, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000c71ca, 0x000cb386, 0x00048e9a, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000c71ca, 0x000cb386, 0x00048e9a, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000c71ca, 0x000c1dba, 0x000405d3, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000c71ca, 0x000c1dba, 0x000405d3, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x000c71ca, 0x000a2cf0, 0x00022cf0, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000c71ca, 0x000a2cf0, 0x00022cf0, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000c71ca, 0x000cb386, 0x0004d808, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000c71ca, 0x000cb386, 0x0004d808, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00080002, 0x000bdb96, 0x000405d3, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x000471c8, 0x000bdb96, 0x000405d3, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x00038e3a, 0x00094e80, 0x00014e80, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000638e5, 0x00094e80, 0x00014e80, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x0009c71e, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000b8e3b, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x0009c71e, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000b8e3b, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000c71ca, 0x000cb386, 0x0004d808, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000c71ca, 0x000cb386, 0x0004d808, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000c71ca, 0x000b4ad0, 0x00034ad0, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000c71ca, 0x000b4ad0, 0x00034ad0, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00100003, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00100003, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00100003, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00100003, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00100003, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x00100003, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000c71ca, 0x00094e80, 0x00014e80, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000c71ca, 0x00094e80, 0x00014e80, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x0008e390, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000b8e3b, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x000aaaad, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000b8e3b, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000b8e3b, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x000aaaad, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x0009c71e, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x000c71ca, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000c71ca, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x000638e5, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4a, 0x00080002, 0x000b05b0, 0x0002aaab, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000c71ca, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x000aaaad, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x000f1c75, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000b8e3b, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000c71ca, 0x000b05b0, 0x0002aaab, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x0009c71e, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x000c71ca, 0x000b05b0, 0x0002aaab, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000b8e3b, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x0008e390, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000aaaad, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x000b8e3b, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000b8e3b, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x00100003, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x000b8e3b, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x000b8e3b, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x000aaaad, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x001e38ea, 0x000d3338, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x0025555d, 0x000d3338, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x001e38ea, 0x000d3338, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x0025555d, 0x000e6665, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x0008e390, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x000a38e5, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000b8e3b, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x0008e390, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x000c71ca, 0x00076b83, 0xffff6b83, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x000aaaad, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00071c73, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000aaaad, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x000c71ca, 0x0008a025, 0x0000a025, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000c71ca, 0x0008a025, 0x0000a025, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x000c71ca, 0x00094e80, 0x00014e80, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x000c71ca, 0x00094e80, 0x00014e80, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x00038e3a, 0x00094e80, 0x00014e80, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x000638e5, 0x00094e80, 0x00014e80, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x000c71ca, 0x00094e80, 0x00014e80, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x000c71ca, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x000c71ca, 0x0007bade, 0xffffbade, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x000c71ca, 0x00094e80, 0x00014e80, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x000c71ca, 0x000c1dba, 0x00042fcb, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000c71ca, 0x000c1dba, 0x00042fcb, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x00100003, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00100003, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x000c71ca, 0x00094e80, 0x00014e80, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000aaaad, 0x0006e38e, 0x00000000, 0x0000a4fb, 0, 0, 0, 0 }, { 0x7c, 0x0008e390, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x0008a4fd, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x0008a4fd, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x0006dde0, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void msbm10_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmtt10.cc0000644000175000017500000002515510704611255016656 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMTT", 0xea, "TeX typewriter text", 0x00a00000, 0xdfea3c78, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00086662 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x0010ccc3 }, { 0x07, "extra_space", 0x00086662 } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x0e } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x0f } }; static TFM::Character character[] = { { 0x00, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x00086662, 0x000638e3, 0x00038e3a, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x00086662, 0x000638e3, 0x00038e3a, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00086662, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00086662, 0x0006e38e, 0x00038e3a, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x00086662, 0x00090e3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00086662, 0x00090c83, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00086662, 0x00000000, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x00086662, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x00086662, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00086662, 0x0008aaab, 0x0001c71d, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x00086662, 0x000aaaab, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00086662, 0x000382d8, 0x0001c71d, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00086662, 0x000b1c72, 0x00015555, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x00086662, 0x000b1c72, 0x00015555, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x00086662, 0x000b1c72, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00086662, 0x000b1c72, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00086662, 0x00085556, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x00086662, 0x00087d26, 0xfffeb60a, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00086662, 0x00020000, 0x000238e3, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00086662, 0x00087d26, 0xfffeb60a, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x00086662, 0x00020000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00086662, 0x000b1c72, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00086662, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00086662, 0x0006e38e, 0x000238e3, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00086662, 0x0008e38e, 0xffff1c72, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x00086662, 0x0006a665, 0xfffcdf48, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00086662, 0x0008e38e, 0xffff1c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4a, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x00086662, 0x0009c71d, 0x000238e3, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x00086662, 0x000b1c72, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00086662, 0x000b1c72, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00086662, 0x000b1c72, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00086662, 0x00000000, 0x000185ad, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x00086662, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00086662, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00086662, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x00086662, 0x0006e38e, 0x00038e3a, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00086662, 0x0009c71d, 0x00038e3a, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x00086662, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x00086662, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x00086662, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x00086662, 0x0006e38e, 0x00038e3a, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x00086662, 0x0006e38e, 0x00038e3a, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x00086662, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x00086662, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00086662, 0x0008db72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x00086662, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x00086662, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x00086662, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x00086662, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00086662, 0x0006e38e, 0x00038e3a, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x00086662, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00086662, 0x000b1c72, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x00086662, 0x000b1c72, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x00086662, 0x000b1c72, 0x00015553, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00086662, 0x0009c71d, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmtt10_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmmi8.cc0000644000175000017500000004544610704611256016571 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMMI", 0xee, "TeX math italic", 0x00800000, 0xd7011732, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x00110010 }, { 0x07, "extra_space", 0x00000000 } }; static TFM::Kerning C_00_Kerning[] = { { 0x3a, 0xfffe1c70 }, { 0x3b, 0xfffe1c70 }, { 0x3d, 0xffff0e38 }, { 0x7f, 0x00016aac } }; static TFM::Kerning C_01_Kerning[] = { { 0x7f, 0x0002d558 } }; static TFM::Kerning C_02_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_03_Kerning[] = { { 0x7f, 0x0002d558 } }; static TFM::Kerning C_04_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_05_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 }, { 0x3d, 0xffff0e38 }, { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_06_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_07_Kerning[] = { { 0x3a, 0xfffe1c70 }, { 0x3b, 0xfffe1c70 }, { 0x3d, 0xffff0e38 }, { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_08_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_09_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 }, { 0x3d, 0xffff0e38 }, { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_0a_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_0b_Kerning[] = { { 0x7f, 0x000078e4 } }; static TFM::Kerning C_0c_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_0e_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 }, { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_0f_Kerning[] = { { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_10_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_11_Kerning[] = { { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_12_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_13_Kerning[] = { { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_16_Kerning[] = { { 0x7f, 0x000078e4 } }; static TFM::Kerning C_17_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 }, { 0x7f, 0x000078e4 } }; static TFM::Kerning C_18_Kerning[] = { { 0x7f, 0x0001e390 } }; static TFM::Kerning C_1a_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_1b_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 } }; static TFM::Kerning C_1c_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 }, { 0x7f, 0x000078e4 } }; static TFM::Kerning C_1d_Kerning[] = { { 0x7f, 0x000078e4 } }; static TFM::Kerning C_1e_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_1f_Kerning[] = { { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_20_Kerning[] = { { 0x7f, 0x0001e390 } }; static TFM::Kerning C_22_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_23_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_25_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_26_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_27_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_3d_Kerning[] = { { 0x01, 0xffff0e38 }, { 0x41, 0xffff0e38 }, { 0x4d, 0xffff0e38 }, { 0x4e, 0xffff0e38 }, { 0x59, 0x0000f1c8 }, { 0x5a, 0xffff0e38 } }; static TFM::Kerning C_40_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_41_Kerning[] = { { 0x7f, 0x00025c74 } }; static TFM::Kerning C_42_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_43_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 }, { 0x3d, 0xffff871c }, { 0x7f, 0x00016aac } }; static TFM::Kerning C_44_Kerning[] = { { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_45_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_46_Kerning[] = { { 0x3a, 0xfffe1c70 }, { 0x3b, 0xfffe1c70 }, { 0x3d, 0xffff0e38 }, { 0x7f, 0x00016aac } }; static TFM::Kerning C_47_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_48_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 }, { 0x3d, 0xffff0e38 }, { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_49_Kerning[] = { { 0x7f, 0x0001e390 } }; static TFM::Kerning C_4a_Kerning[] = { { 0x3a, 0xfffe1c70 }, { 0x3b, 0xfffe1c70 }, { 0x3d, 0xffff0e38 }, { 0x7f, 0x0002d558 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 }, { 0x3d, 0xffff0e38 }, { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x7f, 0x000078e4 } }; static TFM::Kerning C_4d_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 }, { 0x3d, 0xffff0e38 }, { 0x7f, 0x00016aac } }; static TFM::Kerning C_4e_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 }, { 0x3d, 0xfffe9554 }, { 0x3d, 0xffff871c }, { 0x7f, 0x00016aac } }; static TFM::Kerning C_4f_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_50_Kerning[] = { { 0x3a, 0xfffe1c70 }, { 0x3b, 0xfffe1c70 }, { 0x3d, 0xffff0e38 }, { 0x7f, 0x00016aac } }; static TFM::Kerning C_51_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_52_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_53_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 }, { 0x3d, 0xffff0e38 }, { 0x7f, 0x00016aac } }; static TFM::Kerning C_54_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 }, { 0x3d, 0xffff871c }, { 0x7f, 0x00016aac } }; static TFM::Kerning C_55_Kerning[] = { { 0x3a, 0xfffe1c70 }, { 0x3b, 0xfffe1c70 }, { 0x3d, 0xffff0e38 }, { 0x7f, 0x000078e4 } }; static TFM::Kerning C_56_Kerning[] = { { 0x3a, 0xfffd2aa8 }, { 0x3b, 0xfffd2aa8 }, { 0x3d, 0xfffe1c70 } }; static TFM::Kerning C_57_Kerning[] = { { 0x3a, 0xfffd2aa8 }, { 0x3b, 0xfffd2aa8 }, { 0x3d, 0xfffe1c70 } }; static TFM::Kerning C_58_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 }, { 0x3d, 0xfffe9554 }, { 0x3d, 0xffff871c }, { 0x7f, 0x00016aac } }; static TFM::Kerning C_59_Kerning[] = { { 0x3a, 0xfffd2aa8 }, { 0x3b, 0xfffd2aa8 }, { 0x3d, 0xfffe1c70 } }; static TFM::Kerning C_5a_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 }, { 0x3d, 0xffff0e38 }, { 0x7f, 0x00016aac } }; static TFM::Kerning C_60_Kerning[] = { { 0x7f, 0x0001e390 } }; static TFM::Kerning C_63_Kerning[] = { { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_64_Kerning[] = { { 0x59, 0x0000f1c8 }, { 0x5a, 0xffff0e38 }, { 0x66, 0xfffd2aa8 }, { 0x6a, 0xfffe1c70 }, { 0x7f, 0x0002d558 } }; static TFM::Kerning C_65_Kerning[] = { { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_66_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 }, { 0x7f, 0x0002d558 } }; static TFM::Kerning C_67_Kerning[] = { { 0x7f, 0x000078e4 } }; static TFM::Kerning C_68_Kerning[] = { { 0x7f, 0xffff871c } }; static TFM::Kerning C_6a_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 } }; static TFM::Kerning C_6c_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_6f_Kerning[] = { { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_70_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_71_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_72_Kerning[] = { { 0x3a, 0xffff0e38 }, { 0x3b, 0xffff0e38 }, { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_73_Kerning[] = { { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_74_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_75_Kerning[] = { { 0x7f, 0x000078e4 } }; static TFM::Kerning C_76_Kerning[] = { { 0x7f, 0x000078e4 } }; static TFM::Kerning C_77_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_78_Kerning[] = { { 0x7f, 0x000078e4 } }; static TFM::Kerning C_79_Kerning[] = { { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_7a_Kerning[] = { { 0x7f, 0x0000f1c8 } }; static TFM::Kerning C_7b_Kerning[] = { { 0x7f, 0x000078e4 } }; static TFM::Kerning C_7c_Kerning[] = { { 0x7f, 0x00016aac } }; static TFM::Kerning C_7d_Kerning[] = { { 0x7f, 0x0001e390 } }; static TFM::Character character[] = { { 0x00, 0x000a4946, 0x000aeeee, 0x00000000, 0x0000e4fa, 4, C_00_Kerning, 0, 0 }, { 0x01, 0x000e2ab8, 0x000aeeee, 0x00000000, 0x00000000, 1, C_01_Kerning, 0, 0 }, { 0x02, 0x000ce628, 0x000aeeee, 0x00000000, 0x000078e4, 1, C_02_Kerning, 0, 0 }, { 0x03, 0x000bca00, 0x000aeeee, 0x00000000, 0x00000000, 1, C_03_Kerning, 0, 0 }, { 0x04, 0x000c88ee, 0x000aeeee, 0x00000000, 0x00006d0a, 1, C_04_Kerning, 0, 0 }, { 0x05, 0x000df728, 0x000aeeee, 0x00000000, 0x00006e38, 4, C_05_Kerning, 0, 0 }, { 0x06, 0x000d2cd8, 0x000aeeee, 0x00000000, 0x0000e5b0, 1, C_06_Kerning, 0, 0 }, { 0x07, 0x0009eab4, 0x000aeeee, 0x00000000, 0x0000e4fa, 4, C_07_Kerning, 0, 0 }, { 0x08, 0x000b5560, 0x000aeeee, 0x00000000, 0x00000000, 1, C_08_Kerning, 0, 0 }, { 0x09, 0x000a79ec, 0x000aeeee, 0x00000000, 0x0000c9f4, 4, C_09_Kerning, 0, 0 }, { 0x0a, 0x000d111c, 0x000aeeee, 0x00000000, 0x0000c9f4, 1, C_0a_Kerning, 0, 0 }, { 0x0b, 0x000aeb2e, 0x0006e38e, 0x00000000, 0x00000000, 1, C_0b_Kerning, 0, 0 }, { 0x0c, 0x000989fc, 0x000b1c72, 0x00031c72, 0x0000d27c, 1, C_0c_Kerning, 0, 0 }, { 0x0d, 0x0008c18c, 0x0006e38e, 0x00031c72, 0x0000f1c8, 0, 0, 0, 0 }, { 0x0e, 0x000785b8, 0x000b1c72, 0x00000000, 0x00009998, 3, C_0e_Kerning, 0, 0 }, { 0x0f, 0x0006df50, 0x0006e38e, 0x00000000, 0x00000000, 1, C_0f_Kerning, 0, 0 }, { 0x10, 0x000778ec, 0x000b1c72, 0x00031c72, 0x0000196c, 1, C_10_Kerning, 0, 0 }, { 0x11, 0x000887da, 0x0006e38e, 0x00031c72, 0x000092f6, 1, C_11_Kerning, 0, 0 }, { 0x12, 0x0007ee3e, 0x000b1c72, 0x00000000, 0x000078e4, 1, C_12_Kerning, 0, 0 }, { 0x13, 0x000604c2, 0x0006e38e, 0x00000000, 0x00000000, 1, C_13_Kerning, 0, 0 }, { 0x14, 0x0009cbe2, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x0009eab4, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000a3a1a, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_16_Kerning, 0, 0 }, { 0x17, 0x00085b4a, 0x0006e38e, 0x00000000, 0x00000000, 3, C_17_Kerning, 0, 0 }, { 0x18, 0x000778ec, 0x000b1c72, 0x00031c72, 0x00009ffe, 1, C_18_Kerning, 0, 0 }, { 0x19, 0x0009c31e, 0x0006e38e, 0x00000000, 0x000092f6, 0, 0, 0, 0 }, { 0x1a, 0x0008b4a6, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_1a_Kerning, 0, 0 }, { 0x1b, 0x0009b708, 0x0006e38e, 0x00000000, 0x000092f6, 2, C_1b_Kerning, 0, 0 }, { 0x1c, 0x00078b68, 0x0006e38e, 0x00000000, 0x0000d27c, 3, C_1c_Kerning, 0, 0 }, { 0x1d, 0x000938ec, 0x0006e38e, 0x00000000, 0x000092f6, 1, C_1d_Kerning, 0, 0 }, { 0x1e, 0x000a1b10, 0x000b1c72, 0x00031c72, 0x00000000, 1, C_1e_Kerning, 0, 0 }, { 0x1f, 0x000a8e40, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_1f_Kerning, 0, 0 }, { 0x20, 0x000b1c7c, 0x000b1c72, 0x00031c72, 0x000092f6, 1, C_20_Kerning, 0, 0 }, { 0x21, 0x000a920e, 0x0006e38e, 0x00000000, 0x000092f6, 0, 0, 0, 0 }, { 0x22, 0x0007d9a0, 0x0006e38e, 0x00000000, 0x00000000, 1, C_22_Kerning, 0, 0 }, { 0x23, 0x000a1cf4, 0x000b1c72, 0x00000000, 0x00000000, 1, C_23_Kerning, 0, 0 }, { 0x24, 0x000e1d34, 0x0006e38e, 0x00000000, 0x000078e4, 0, 0, 0, 0 }, { 0x25, 0x0008b4a6, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_25_Kerning, 0, 0 }, { 0x26, 0x000638ea, 0x0006e38e, 0x00018e3a, 0x000092f6, 1, C_26_Kerning, 0, 0 }, { 0x27, 0x000b13f4, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_27_Kerning, 0, 0 }, { 0x28, 0x00110010, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00110010, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00110010, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x00110010, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x0004b8e8, 0x0007bc4e, 0xffffbc4e, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0004b8e8, 0x0007bc4e, 0xffffbc4e, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x00088008, 0x000771c8, 0xffff71c8, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00088008, 0x000771c8, 0xffff71c8, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00088008, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00088008, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00088008, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00088008, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00088008, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00088008, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00088008, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x0004b8e8, 0x0001c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x0004b8e8, 0x0001c71c, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000d38f0, 0x00090290, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x00088008, 0x000c0000, 0x00040000, 0x00000000, 6, C_3d_Kerning, 0, 0 }, { 0x3e, 0x000d38f0, 0x00090290, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00088008, 0x000771c8, 0xffff71c8, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x0008f4a6, 0x000b1c72, 0x00000000, 0x0000f1c8, 1, C_40_Kerning, 0, 0 }, { 0x41, 0x000cbbc8, 0x000aeeee, 0x00000000, 0x00000000, 1, C_41_Kerning, 0, 0 }, { 0x42, 0x000cd288, 0x000aeeee, 0x00000000, 0x0000c9f4, 1, C_42_Kerning, 0, 0 }, { 0x43, 0x000c1dc4, 0x000aeeee, 0x00000000, 0x00003096, 4, C_43_Kerning, 0, 0 }, { 0x44, 0x000df264, 0x000aeeee, 0x00000000, 0x000078e4, 1, C_44_Kerning, 0, 0 }, { 0x45, 0x000c7560, 0x000aeeee, 0x00000000, 0x0000e5b0, 1, C_45_Kerning, 0, 0 }, { 0x46, 0x000ac22a, 0x000aeeee, 0x00000000, 0x0000e4fa, 4, C_46_Kerning, 0, 0 }, { 0x47, 0x000d3f30, 0x000aeeee, 0x00000000, 0x00000000, 1, C_47_Kerning, 0, 0 }, { 0x48, 0x000df728, 0x000aeeee, 0x00000000, 0x00006e38, 4, C_48_Kerning, 0, 0 }, { 0x49, 0x00075ef6, 0x000aeeee, 0x00000000, 0x000078e4, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x00094946, 0x000aeeee, 0x00000000, 0x00009998, 4, C_4a_Kerning, 0, 0 }, { 0x4b, 0x000e5618, 0x000aeeee, 0x00000000, 0x00003096, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000b8fb0, 0x000aeeee, 0x00000000, 0x00000000, 1, C_4c_Kerning, 0, 0 }, { 0x4d, 0x0010539c, 0x000aeeee, 0x00000000, 0x00009ffe, 4, C_4d_Kerning, 0, 0 }, { 0x4e, 0x000d7e44, 0x000aeeee, 0x00000000, 0x00009ffe, 5, C_4e_Kerning, 0, 0 }, { 0x4f, 0x000ce628, 0x000aeeee, 0x00000000, 0x000078e4, 1, C_4f_Kerning, 0, 0 }, { 0x50, 0x000ac724, 0x000aeeee, 0x00000000, 0x0000e4fa, 4, C_50_Kerning, 0, 0 }, { 0x51, 0x000d5f0c, 0x000aeeee, 0x00031c72, 0x00000000, 1, C_51_Kerning, 0, 0 }, { 0x52, 0x000ccdba, 0x000aeeee, 0x00000000, 0x0000196c, 1, C_52_Kerning, 0, 0 }, { 0x53, 0x000a56ca, 0x000aeeee, 0x00000000, 0x0000e4fa, 4, C_53_Kerning, 0, 0 }, { 0x54, 0x0009e5ba, 0x000aeeee, 0x00000000, 0x0000e4fa, 4, C_54_Kerning, 0, 0 }, { 0x55, 0x000b8040, 0x000aeeee, 0x00000000, 0x00009ffe, 4, C_55_Kerning, 0, 0 }, { 0x56, 0x0009e670, 0x000aeeee, 0x00000000, 0x0000ec10, 3, C_56_Kerning, 0, 0 }, { 0x57, 0x00100a04, 0x000aeeee, 0x00000000, 0x0000e4fa, 3, C_57_Kerning, 0, 0 }, { 0x58, 0x000dfb6e, 0x000aeeee, 0x00000000, 0x000078e4, 5, C_58_Kerning, 0, 0 }, { 0x59, 0x0009da5a, 0x000aeeee, 0x00000000, 0x0000ec10, 3, C_59_Kerning, 0, 0 }, { 0x5a, 0x000b8504, 0x000aeeee, 0x00000000, 0x00003096, 4, C_5a_Kerning, 0, 0 }, { 0x5b, 0x00069c78, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00069c78, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00069c78, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00110010, 0x0005b8e4, 0xfffdb8e4, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00110010, 0x0005b8e4, 0xfffdb8e4, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x0006f1cc, 0x000b1c72, 0x00000000, 0x00000000, 1, C_60_Kerning, 0, 0 }, { 0x61, 0x0009079e, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x000745b8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00075cf2, 0x0006e38e, 0x00000000, 0x00000000, 1, C_63_Kerning, 0, 0 }, { 0x64, 0x0008bf50, 0x000b1c72, 0x00000000, 0x00000000, 5, C_64_Kerning, 0, 0 }, { 0x65, 0x0007e2e0, 0x0006e38e, 0x00000000, 0x00000000, 1, C_65_Kerning, 0, 0 }, { 0x66, 0x00082ab0, 0x000b1c72, 0x00031c72, 0x0000ad0a, 3, C_66_Kerning, 0, 0 }, { 0x67, 0x00081706, 0x0006e38e, 0x00031c72, 0x000092f6, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x0009cbe2, 0x000b1c72, 0x00000000, 0x00000000, 1, C_68_Kerning, 0, 0 }, { 0x69, 0x0005c9b4, 0x000a93d0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x0006e004, 0x000a93d0, 0x00031c72, 0x0000ec10, 2, C_6a_Kerning, 0, 0 }, { 0x6b, 0x0008da1a, 0x000b1c72, 0x00000000, 0x00006d0a, 0, 0, 0, 0 }, { 0x6c, 0x000512fa, 0x000b1c72, 0x00000000, 0x00003096, 1, C_6c_Kerning, 0, 0 }, { 0x6d, 0x000f0988, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x000a50a0, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x00083780, 0x0006e38e, 0x00000000, 0x00000000, 1, C_6f_Kerning, 0, 0 }, { 0x70, 0x00088eba, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_70_Kerning, 0, 0 }, { 0x71, 0x00079706, 0x0006e38e, 0x00031c72, 0x000092f6, 1, C_71_Kerning, 0, 0 }, { 0x72, 0x0007abe0, 0x0006e38e, 0x00000000, 0x000078e4, 3, C_72_Kerning, 0, 0 }, { 0x73, 0x0007dc78, 0x0006e38e, 0x00000000, 0x00000000, 1, C_73_Kerning, 0, 0 }, { 0x74, 0x00062394, 0x0009d75e, 0x00000000, 0x00000000, 1, C_74_Kerning, 0, 0 }, { 0x75, 0x0009d7bc, 0x0006e38e, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x00084724, 0x0006e38e, 0x00000000, 0x000092f6, 1, C_76_Kerning, 0, 0 }, { 0x77, 0x000c3302, 0x0006e38e, 0x00000000, 0x00006e38, 1, C_77_Kerning, 0, 0 }, { 0x78, 0x000991ce, 0x0006e38e, 0x00000000, 0x00000000, 1, C_78_Kerning, 0, 0 }, { 0x79, 0x00086724, 0x0006e38e, 0x00031c72, 0x000092f6, 1, C_79_Kerning, 0, 0 }, { 0x7a, 0x0007e852, 0x0006e38e, 0x00000000, 0x0000ad0a, 1, C_7a_Kerning, 0, 0 }, { 0x7b, 0x000597b8, 0x0006e38e, 0x00000000, 0x00000000, 1, C_7b_Kerning, 0, 0 }, { 0x7c, 0x00066720, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_7c_Kerning, 0, 0 }, { 0x7d, 0x000ac670, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_7d_Kerning, 0, 0 }, { 0x7e, 0x00088008, 0x000b789c, 0x00000000, 0x0000e5b0, 0, 0, 0, 0 }, { 0x7f, 0x0004b8e8, 0x000b1c72, 0x00000000, 0x0000f1c8, 0, 0, 0, 0 } }; void cmmi8_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmti8.cc0000644000175000017500000004140510704611260016562 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMTI", 0xee, "TeX text", 0x00800000, 0x23d16690, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x000624fc }, { 0x03, "space_stretch", 0x0002a222 }, { 0x04, "space_shrink", 0x0001c16c }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x00118e3c }, { 0x07, "extra_space", 0x0001c16c } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x0001b6c2 }, { 0x27, 0x0001b6c2 }, { 0x29, 0x0001b6c2 }, { 0x3f, 0x0001b6c2 }, { 0x5d, 0x0001b6c2 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffa816a }, { 0x6c, 0xfffb9c70 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001c16c }, { 0x3f, 0x0001c16c } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff8fa4 }, { 0x47, 0xffff8fa4 }, { 0x4f, 0xffff8fa4 }, { 0x51, 0xffff8fa4 }, { 0x54, 0xfffeaeee }, { 0x55, 0xffff8fa4 }, { 0x56, 0xfffe3e94 }, { 0x57, 0xfffe3e94 }, { 0x59, 0xfffeaeee }, { 0x61, 0xffff1f4a }, { 0x62, 0xffff8fa4 }, { 0x63, 0xffff1f4a }, { 0x64, 0xffff1f4a }, { 0x65, 0xffff1f4a }, { 0x67, 0xffff1f4a }, { 0x68, 0xffff8fa4 }, { 0x69, 0xffff8fa4 }, { 0x6b, 0xffff8fa4 }, { 0x6c, 0xffff8fa4 }, { 0x6d, 0xffff8fa4 }, { 0x6e, 0xffff8fa4 }, { 0x6f, 0xffff1f4a }, { 0x71, 0xffff1f4a }, { 0x72, 0xffff8fa4 }, { 0x74, 0xffff8fa4 }, { 0x75, 0xffff8fa4 }, { 0x76, 0xffff8fa4 }, { 0x77, 0xffff8fa4 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff8fa4 }, { 0x56, 0xffff8fa4 }, { 0x57, 0xffff8fa4 }, { 0x58, 0xffff8fa4 }, { 0x59, 0xffff8fa4 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffe3e94 }, { 0x43, 0xffff8fa4 }, { 0x47, 0xffff8fa4 }, { 0x4f, 0xffff8fa4 }, { 0x51, 0xffff8fa4 }, { 0x61, 0xfffeaeee }, { 0x65, 0xfffeaeee }, { 0x6f, 0xfffeaeee }, { 0x72, 0xfffeaeee }, { 0x75, 0xfffeaeee } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff8fa4 }, { 0x47, 0xffff8fa4 }, { 0x4f, 0xffff8fa4 }, { 0x51, 0xffff8fa4 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffeaeee }, { 0x56, 0xfffe3e94 }, { 0x57, 0xfffe3e94 }, { 0x59, 0xfffeaeee }, { 0x61, 0xffff1f4a }, { 0x63, 0xffff1f4a }, { 0x64, 0xffff1f4a }, { 0x65, 0xffff1f4a }, { 0x67, 0xffff1f4a }, { 0x6f, 0xffff1f4a }, { 0x71, 0xffff1f4a } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff8fa4 }, { 0x56, 0xffff8fa4 }, { 0x57, 0xffff8fa4 }, { 0x58, 0xffff8fa4 }, { 0x59, 0xffff8fa4 } }; static TFM::Kerning C_50_Kerning[] = { { 0x41, 0xfffeaeee } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff8fa4 }, { 0x47, 0xffff8fa4 }, { 0x4f, 0xffff8fa4 }, { 0x51, 0xffff8fa4 }, { 0x54, 0xfffeaeee }, { 0x55, 0xffff8fa4 }, { 0x56, 0xfffe3e94 }, { 0x57, 0xfffe3e94 }, { 0x59, 0xfffeaeee }, { 0x61, 0xffff1f4a }, { 0x62, 0xffff8fa4 }, { 0x63, 0xffff1f4a }, { 0x64, 0xffff1f4a }, { 0x65, 0xffff1f4a }, { 0x67, 0xffff1f4a }, { 0x68, 0xffff8fa4 }, { 0x69, 0xffff8fa4 }, { 0x6b, 0xffff8fa4 }, { 0x6c, 0xffff8fa4 }, { 0x6d, 0xffff8fa4 }, { 0x6e, 0xffff8fa4 }, { 0x6f, 0xffff1f4a }, { 0x71, 0xffff1f4a }, { 0x72, 0xffff8fa4 }, { 0x74, 0xffff8fa4 }, { 0x75, 0xffff8fa4 }, { 0x76, 0xffff8fa4 }, { 0x77, 0xffff8fa4 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffeaeee }, { 0x61, 0xfffeaeee }, { 0x65, 0xfffeaeee }, { 0x6f, 0xfffeaeee }, { 0x72, 0xfffeaeee }, { 0x75, 0xfffeaeee }, { 0x79, 0xfffeaeee } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffe3e94 }, { 0x43, 0xffff8fa4 }, { 0x47, 0xffff8fa4 }, { 0x4f, 0xffff8fa4 }, { 0x51, 0xffff8fa4 }, { 0x61, 0xfffeaeee }, { 0x65, 0xfffeaeee }, { 0x6f, 0xfffeaeee }, { 0x72, 0xfffeaeee }, { 0x75, 0xfffeaeee } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffeaeee } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff8fa4 }, { 0x47, 0xffff8fa4 }, { 0x4f, 0xffff8fa4 }, { 0x51, 0xffff8fa4 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffeaeee }, { 0x61, 0xfffeaeee }, { 0x65, 0xfffeaeee }, { 0x6f, 0xfffeaeee }, { 0x72, 0xfffeaeee }, { 0x75, 0xfffeaeee } }; static TFM::Kerning C_62_Kerning[] = { { 0x61, 0xffff1f4a }, { 0x63, 0xffff1f4a }, { 0x64, 0xffff1f4a }, { 0x65, 0xffff1f4a }, { 0x67, 0xffff1f4a }, { 0x6f, 0xffff1f4a }, { 0x71, 0xffff1f4a } }; static TFM::Kerning C_63_Kerning[] = { { 0x61, 0xffff1f4a }, { 0x63, 0xffff1f4a }, { 0x64, 0xffff1f4a }, { 0x65, 0xffff1f4a }, { 0x67, 0xffff1f4a }, { 0x6f, 0xffff1f4a }, { 0x71, 0xffff1f4a } }; static TFM::Kerning C_64_Kerning[] = { { 0x6c, 0x0000e0b6 } }; static TFM::Kerning C_65_Kerning[] = { { 0x61, 0xffff1f4a }, { 0x63, 0xffff1f4a }, { 0x64, 0xffff1f4a }, { 0x65, 0xffff1f4a }, { 0x67, 0xffff1f4a }, { 0x6f, 0xffff1f4a }, { 0x71, 0xffff1f4a } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x0001b6c2 }, { 0x27, 0x0001b6c2 }, { 0x29, 0x0001b6c2 }, { 0x3f, 0x0001b6c2 }, { 0x5d, 0x0001b6c2 } }; static TFM::Kerning C_6c_Kerning[] = { { 0x6c, 0x0000e0b6 } }; static TFM::Kerning C_6e_Kerning[] = { { 0x27, 0xfffe3e94 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x61, 0xffff1f4a }, { 0x63, 0xffff1f4a }, { 0x64, 0xffff1f4a }, { 0x65, 0xffff1f4a }, { 0x67, 0xffff1f4a }, { 0x6f, 0xffff1f4a }, { 0x71, 0xffff1f4a } }; static TFM::Kerning C_70_Kerning[] = { { 0x61, 0xffff1f4a }, { 0x63, 0xffff1f4a }, { 0x64, 0xffff1f4a }, { 0x65, 0xffff1f4a }, { 0x67, 0xffff1f4a }, { 0x6f, 0xffff1f4a }, { 0x71, 0xffff1f4a } }; static TFM::Kerning C_72_Kerning[] = { { 0x61, 0xffff1f4a }, { 0x63, 0xffff1f4a }, { 0x64, 0xffff1f4a }, { 0x65, 0xffff1f4a }, { 0x67, 0xffff1f4a }, { 0x6f, 0xffff1f4a }, { 0x71, 0xffff1f4a } }; static TFM::Kerning C_77_Kerning[] = { { 0x6c, 0x0000e0b6 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000ac2da, 0x000aeeee, 0x00000000, 0x000112b4, 0, 0, 0, 0 }, { 0x01, 0x000e0b62, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000d2aac, 0x000aeeee, 0x00000000, 0x0000d82e, 0, 0, 0, 0 }, { 0x03, 0x000bdde0, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000b6940, 0x000aeeee, 0x00000000, 0x0000838e, 0, 0, 0, 0 }, { 0x05, 0x000cbe96, 0x000aeeee, 0x00000000, 0x000085b2, 0, 0, 0, 0 }, { 0x06, 0x000c49f6, 0x000aeeee, 0x00000000, 0x0000d82e, 0, 0, 0, 0 }, { 0x07, 0x000d2aac, 0x000aeeee, 0x00000000, 0x0000838e, 0, 0, 0, 0 }, { 0x08, 0x000c49f6, 0x000aeeee, 0x00000000, 0x0000ed82, 0, 0, 0, 0 }, { 0x09, 0x000d2aac, 0x000aeeee, 0x00000000, 0x0000838e, 0, 0, 0, 0 }, { 0x0a, 0x000c49f6, 0x000aeeee, 0x00000000, 0x00013334, 0, 0, 0, 0 }, { 0x0b, 0x000a888e, 0x000b1c72, 0x00031c72, 0x000104fc, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x0009a7da, 0x000b1c72, 0x00031c72, 0x000104fc, 0, 0, 0, 0 }, { 0x0d, 0x000a1834, 0x000b1c72, 0x00031c72, 0x000104fc, 0, 0, 0, 0 }, { 0x0e, 0x000f244c, 0x000b1c72, 0x00031c72, 0x000104fc, 0, 0, 0, 0 }, { 0x0f, 0x000f5c7a, 0x000b1c72, 0x00031c72, 0x000104fc, 0, 0, 0, 0 }, { 0x10, 0x00054446, 0x0006e38e, 0x00000000, 0x00006c16, 0, 0, 0, 0 }, { 0x11, 0x0005b4a2, 0x0006e38e, 0x00031c72, 0x000085b2, 0, 0, 0, 0 }, { 0x12, 0x0008c71e, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x0008c71e, 0x000b1c72, 0x00000000, 0x00008fa4, 0, 0, 0, 0 }, { 0x14, 0x0008c71e, 0x000a0e3a, 0x00000000, 0x0001488a, 0, 0, 0, 0 }, { 0x15, 0x0008c71e, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x0008c71e, 0x0009360a, 0x00000000, 0x0001488a, 0, 0, 0, 0 }, { 0x17, 0x000e26e2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x0007e668, 0x00000000, 0x0002b8e4, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x0009377c, 0x000b1c72, 0x00031c72, 0x00014888, 0, 0, 0, 0 }, { 0x1a, 0x000c49f6, 0x0006e38e, 0x00000000, 0x00013334, 0, 0, 0, 0 }, { 0x1b, 0x000c49f6, 0x0006e38e, 0x00000000, 0x00013334, 0, 0, 0, 0 }, { 0x1c, 0x0008c71e, 0x000871c8, 0x00018e3a, 0x000085b2, 0, 0, 0, 0 }, { 0x1d, 0x000f2668, 0x000aeeee, 0x00000000, 0x0000d82e, 0, 0, 0, 0 }, { 0x1e, 0x0010e7d4, 0x000aeeee, 0x00000000, 0x0000d82e, 0, 0, 0, 0 }, { 0x1f, 0x000d2aac, 0x000bb60a, 0x0000c71c, 0x0000d82e, 0, 0, 0, 0 }, { 0x20, 0x00046390, 0x0006e38e, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x00054446, 0x000b1c72, 0x00000000, 0x0000f4e8, 0, 0, 1, C_21_Ligature }, { 0x22, 0x0008ccce, 0x000b1c72, 0x00000000, 0x0000f4e8, 0, 0, 0, 0 }, { 0x23, 0x000e0b62, 0x000b1c72, 0x00031c70, 0x000112b4, 0, 0, 0, 0 }, { 0x24, 0x000d0e3a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000e0b62, 0x000c0000, 0x0000e38e, 0x00013334, 0, 0, 0, 0 }, { 0x26, 0x000d2aac, 0x000b1c72, 0x00000000, 0x00008fa4, 0, 0, 0, 0 }, { 0x27, 0x00054446, 0x000b1c72, 0x00000000, 0x0000f4e8, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x000705b2, 0x000c0000, 0x00040000, 0x0000d82e, 0, 0, 0, 0 }, { 0x29, 0x000705b2, 0x000c0000, 0x00040000, 0x00008fa4, 0, 0, 0, 0 }, { 0x2a, 0x0008c71e, 0x000c0000, 0x00000000, 0x00006c16, 0, 0, 0, 0 }, { 0x2b, 0x000d2aac, 0x0009360a, 0x00014444, 0x00008fa4, 0, 0, 0, 0 }, { 0x2c, 0x00054446, 0x0001c71c, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x000624fc, 0x0006e38e, 0x00000000, 0x00006c16, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x00054446, 0x0001c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x0008c71e, 0x000c0000, 0x00040000, 0x0000d82e, 0, 0, 0, 0 }, { 0x30, 0x0008c71e, 0x000a4fa6, 0x00000000, 0x00014888, 0, 0, 0, 0 }, { 0x31, 0x0008c71e, 0x000a4fa6, 0x00000000, 0x00014888, 0, 0, 0, 0 }, { 0x32, 0x0008c71e, 0x000a4fa6, 0x00000000, 0x00014888, 0, 0, 0, 0 }, { 0x33, 0x0008c71e, 0x000a4fa6, 0x00000000, 0x00014888, 0, 0, 0, 0 }, { 0x34, 0x0008c71e, 0x000a4fa6, 0x00031c72, 0x00014888, 0, 0, 0, 0 }, { 0x35, 0x0008c71e, 0x000a4fa6, 0x00000000, 0x00014888, 0, 0, 0, 0 }, { 0x36, 0x0008c71e, 0x000a4fa6, 0x00000000, 0x00014888, 0, 0, 0, 0 }, { 0x37, 0x0008c71e, 0x000a4fa6, 0x00031c72, 0x00014888, 0, 0, 0, 0 }, { 0x38, 0x0008c71e, 0x000a4fa6, 0x00000000, 0x00014888, 0, 0, 0, 0 }, { 0x39, 0x0008c71e, 0x000a4fa6, 0x00000000, 0x00014888, 0, 0, 0, 0 }, { 0x3a, 0x00054446, 0x0006e38e, 0x00000000, 0x0000db06, 0, 0, 0, 0 }, { 0x3b, 0x00054446, 0x0006e38e, 0x00031c72, 0x0000db06, 0, 0, 0, 0 }, { 0x3c, 0x00054446, 0x00080000, 0x00031c72, 0x00012222, 0, 0, 0, 0 }, { 0x3d, 0x000d2aac, 0x00060c3c, 0xfffe0c3c, 0x000112b4, 0, 0, 0, 0 }, { 0x3e, 0x0008c71e, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x0008c71e, 0x000b1c72, 0x00000000, 0x0000ed82, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000d2aac, 0x000b1c72, 0x00000000, 0x0000f4e8, 0, 0, 0, 0 }, { 0x41, 0x000cbe96, 0x000aeeee, 0x00000000, 0x00000000, 28, C_41_Kerning, 0, 0 }, { 0x42, 0x000c13ec, 0x000aeeee, 0x00000000, 0x00013334, 0, 0, 0, 0 }, { 0x43, 0x000c49f6, 0x000aeeee, 0x00000000, 0x0001488a, 0, 0, 0, 0 }, { 0x44, 0x000cf4a2, 0x000aeeee, 0x00000000, 0x0000d82e, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000ba390, 0x000aeeee, 0x00000000, 0x0000d82e, 0, 0, 0, 0 }, { 0x46, 0x000b3336, 0x000aeeee, 0x00000000, 0x000112b4, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000d47d4, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000cbe96, 0x000aeeee, 0x00000000, 0x000085b2, 0, 0, 0, 0 }, { 0x49, 0x0006999c, 0x000aeeee, 0x00000000, 0x00008fa4, 0, 0, 0, 0 }, { 0x4a, 0x0009016e, 0x000aeeee, 0x00000000, 0x00012222, 0, 0, 0, 0 }, { 0x4b, 0x000d2ef2, 0x000aeeee, 0x00000000, 0x0001488a, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000ac2da, 0x000aeeee, 0x00000000, 0x00000000, 11, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000f60b8, 0x000aeeee, 0x00000000, 0x000085b2, 0, 0, 0, 0 }, { 0x4e, 0x000cbe96, 0x000aeeee, 0x00000000, 0x000085b2, 0, 0, 0, 0 }, { 0x4f, 0x000d2aac, 0x000aeeee, 0x00000000, 0x0000d82e, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000ba390, 0x000aeeee, 0x00000000, 0x00013334, 1, C_50_Kerning, 0, 0 }, { 0x51, 0x000d2aac, 0x000aeeee, 0x00031c72, 0x0000d82e, 0, 0, 0, 0 }, { 0x52, 0x000c8446, 0x000aeeee, 0x00000000, 0x0000838e, 28, C_52_Kerning, 0, 0 }, { 0x53, 0x0009a7d4, 0x000aeeee, 0x00000000, 0x0000db06, 0, 0, 0, 0 }, { 0x54, 0x000c49f6, 0x000aeeee, 0x00000000, 0x000112b4, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000cbe96, 0x000aeeee, 0x00000000, 0x000085b2, 0, 0, 0, 0 }, { 0x56, 0x000cbe96, 0x000aeeee, 0x00000000, 0x0000ed82, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x00112224, 0x000aeeee, 0x00000000, 0x0000ed82, 1, C_57_Kerning, 0, 0 }, { 0x58, 0x000cbe96, 0x000aeeee, 0x00000000, 0x00008fa4, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000cbe96, 0x000aeeee, 0x00000000, 0x0000fb06, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000a888a, 0x000aeeee, 0x00000000, 0x0001488a, 0, 0, 0, 0 }, { 0x5b, 0x00054446, 0x000c0000, 0x00040000, 0x0000f4e8, 0, 0, 0, 0 }, { 0x5c, 0x0008ccce, 0x000b1c72, 0x00000000, 0x0000db06, 0, 0, 0, 0 }, { 0x5d, 0x00054446, 0x000c0000, 0x00040000, 0x00012222, 0, 0, 0, 0 }, { 0x5e, 0x0008c71e, 0x000b1c72, 0x00000000, 0x000104fc, 0, 0, 0, 0 }, { 0x5f, 0x00054446, 0x000abaec, 0x00000000, 0x00008fa4, 0, 0, 0, 0 }, { 0x60, 0x00054446, 0x000b1c72, 0x00000000, 0x0000f4e8, 0, 0, 1, C_60_Ligature }, { 0x61, 0x0008c71e, 0x0006e38e, 0x00000000, 0x00006c16, 0, 0, 0, 0 }, { 0x62, 0x0007e668, 0x000b1c72, 0x00000000, 0x0000fb06, 7, C_62_Kerning, 0, 0 }, { 0x63, 0x0007e668, 0x0006e38e, 0x00000000, 0x0000d82e, 7, C_63_Kerning, 0, 0 }, { 0x64, 0x0008c71e, 0x000b1c72, 0x00000000, 0x000104fc, 1, C_64_Kerning, 0, 0 }, { 0x65, 0x0007e668, 0x0006e38e, 0x00000000, 0x00013334, 7, C_65_Kerning, 0, 0 }, { 0x66, 0x00054448, 0x000b1c72, 0x00031c72, 0x000104fc, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x0007e668, 0x0006e38e, 0x00031c72, 0x0000838e, 0, 0, 0, 0 }, { 0x68, 0x0008c71e, 0x000b1c72, 0x00000000, 0x00006c16, 0, 0, 0, 0 }, { 0x69, 0x00054446, 0x000a820a, 0x00000000, 0x0000fb06, 0, 0, 0, 0 }, { 0x6a, 0x00054446, 0x000a820a, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x0007e668, 0x000b1c72, 0x00000000, 0x00006c16, 0, 0, 0, 0 }, { 0x6c, 0x00046390, 0x000b1c72, 0x00000000, 0x000104fc, 1, C_6c_Kerning, 0, 0 }, { 0x6d, 0x000e0b62, 0x0006e38e, 0x00000000, 0x00006c16, 0, 0, 0, 0 }, { 0x6e, 0x0009a7d4, 0x0006e38e, 0x00000000, 0x00006c16, 1, C_6e_Kerning, 0, 0 }, { 0x6f, 0x0008c71e, 0x0006e38e, 0x00000000, 0x0000fb06, 7, C_6f_Kerning, 0, 0 }, { 0x70, 0x0008c71e, 0x0006e38e, 0x00031c72, 0x0000fb06, 7, C_70_Kerning, 0, 0 }, { 0x71, 0x0007e668, 0x0006e38e, 0x00031c72, 0x0000838e, 0, 0, 0, 0 }, { 0x72, 0x00073de0, 0x0006e38e, 0x00000000, 0x00006c16, 7, C_72_Kerning, 0, 0 }, { 0x73, 0x000705b2, 0x0006e38e, 0x00000000, 0x00014888, 0, 0, 0, 0 }, { 0x74, 0x0005b4a2, 0x0009d75e, 0x00000000, 0x0000db06, 0, 0, 0, 0 }, { 0x75, 0x0009377a, 0x0006e38e, 0x00000000, 0x00006c16, 0, 0, 0, 0 }, { 0x76, 0x0007e668, 0x0006e38e, 0x00000000, 0x00006c16, 0, 0, 0, 0 }, { 0x77, 0x000b6940, 0x0006e38e, 0x00000000, 0x00006c16, 1, C_77_Kerning, 0, 0 }, { 0x78, 0x0007eaae, 0x0006e38e, 0x00000000, 0x0000fb06, 0, 0, 0, 0 }, { 0x79, 0x000856c4, 0x0006e38e, 0x00031c72, 0x0000838e, 0, 0, 0, 0 }, { 0x7a, 0x000705b4, 0x0006e38e, 0x00000000, 0x000104fc, 0, 0, 0, 0 }, { 0x7b, 0x0008c71e, 0x0006e38e, 0x00000000, 0x0000ed82, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x00118e3c, 0x0006e38e, 0x00000000, 0x0000ed82, 0, 0, 0, 0 }, { 0x7d, 0x0008c71e, 0x000b1c72, 0x00000000, 0x0000ed82, 0, 0, 0, 0 }, { 0x7e, 0x0008c71e, 0x000abaec, 0x00000000, 0x000085b2, 0, 0, 0, 0 }, { 0x7f, 0x0008c71e, 0x000abaec, 0x00000000, 0x000112b4, 0, 0, 0, 0 } }; void cmti8_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmti9.cc0000644000175000017500000004140510704611261016564 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMTI", 0xec, "TeX text", 0x00900000, 0xbc6a91b9, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x0005e06b }, { 0x03, "space_stretch", 0x000284c0 }, { 0x04, "space_shrink", 0x0001add5 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x0010ca55 }, { 0x07, "extra_space", 0x0001add5 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x0001af69 }, { 0x27, 0x0001af69 }, { 0x29, 0x0001af69 }, { 0x3f, 0x0001af69 }, { 0x5d, 0x0001af69 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffabc59 }, { 0x6c, 0xfffbcd6b } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001add5 }, { 0x3f, 0x0001add5 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff948b }, { 0x47, 0xffff948b }, { 0x4f, 0xffff948b }, { 0x51, 0xffff948b }, { 0x54, 0xfffebda0 }, { 0x55, 0xffff948b }, { 0x56, 0xfffe522b }, { 0x57, 0xfffe522b }, { 0x59, 0xfffebda0 }, { 0x61, 0xffff2915 }, { 0x62, 0xffff948b }, { 0x63, 0xffff2915 }, { 0x64, 0xffff2915 }, { 0x65, 0xffff2915 }, { 0x67, 0xffff2915 }, { 0x68, 0xffff948b }, { 0x69, 0xffff948b }, { 0x6b, 0xffff948b }, { 0x6c, 0xffff948b }, { 0x6d, 0xffff948b }, { 0x6e, 0xffff948b }, { 0x6f, 0xffff2915 }, { 0x71, 0xffff2915 }, { 0x72, 0xffff948b }, { 0x74, 0xffff948b }, { 0x75, 0xffff948b }, { 0x76, 0xffff948b }, { 0x77, 0xffff948b } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff948b }, { 0x56, 0xffff948b }, { 0x57, 0xffff948b }, { 0x58, 0xffff948b }, { 0x59, 0xffff948b } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffe522b }, { 0x43, 0xffff948b }, { 0x47, 0xffff948b }, { 0x4f, 0xffff948b }, { 0x51, 0xffff948b }, { 0x61, 0xfffebda0 }, { 0x65, 0xfffebda0 }, { 0x6f, 0xfffebda0 }, { 0x72, 0xfffebda0 }, { 0x75, 0xfffebda0 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff948b }, { 0x47, 0xffff948b }, { 0x4f, 0xffff948b }, { 0x51, 0xffff948b } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffebda0 }, { 0x56, 0xfffe522b }, { 0x57, 0xfffe522b }, { 0x59, 0xfffebda0 }, { 0x61, 0xffff2915 }, { 0x63, 0xffff2915 }, { 0x64, 0xffff2915 }, { 0x65, 0xffff2915 }, { 0x67, 0xffff2915 }, { 0x6f, 0xffff2915 }, { 0x71, 0xffff2915 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff948b }, { 0x56, 0xffff948b }, { 0x57, 0xffff948b }, { 0x58, 0xffff948b }, { 0x59, 0xffff948b } }; static TFM::Kerning C_50_Kerning[] = { { 0x41, 0xfffebda0 } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff948b }, { 0x47, 0xffff948b }, { 0x4f, 0xffff948b }, { 0x51, 0xffff948b }, { 0x54, 0xfffebda0 }, { 0x55, 0xffff948b }, { 0x56, 0xfffe522b }, { 0x57, 0xfffe522b }, { 0x59, 0xfffebda0 }, { 0x61, 0xffff2915 }, { 0x62, 0xffff948b }, { 0x63, 0xffff2915 }, { 0x64, 0xffff2915 }, { 0x65, 0xffff2915 }, { 0x67, 0xffff2915 }, { 0x68, 0xffff948b }, { 0x69, 0xffff948b }, { 0x6b, 0xffff948b }, { 0x6c, 0xffff948b }, { 0x6d, 0xffff948b }, { 0x6e, 0xffff948b }, { 0x6f, 0xffff2915 }, { 0x71, 0xffff2915 }, { 0x72, 0xffff948b }, { 0x74, 0xffff948b }, { 0x75, 0xffff948b }, { 0x76, 0xffff948b }, { 0x77, 0xffff948b } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffebda0 }, { 0x61, 0xfffebda0 }, { 0x65, 0xfffebda0 }, { 0x6f, 0xfffebda0 }, { 0x72, 0xfffebda0 }, { 0x75, 0xfffebda0 }, { 0x79, 0xfffebda0 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffe522b }, { 0x43, 0xffff948b }, { 0x47, 0xffff948b }, { 0x4f, 0xffff948b }, { 0x51, 0xffff948b }, { 0x61, 0xfffebda0 }, { 0x65, 0xfffebda0 }, { 0x6f, 0xfffebda0 }, { 0x72, 0xfffebda0 }, { 0x75, 0xfffebda0 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffebda0 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff948b }, { 0x47, 0xffff948b }, { 0x4f, 0xffff948b }, { 0x51, 0xffff948b } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffebda0 }, { 0x61, 0xfffebda0 }, { 0x65, 0xfffebda0 }, { 0x6f, 0xfffebda0 }, { 0x72, 0xfffebda0 }, { 0x75, 0xfffebda0 } }; static TFM::Kerning C_62_Kerning[] = { { 0x61, 0xffff2915 }, { 0x63, 0xffff2915 }, { 0x64, 0xffff2915 }, { 0x65, 0xffff2915 }, { 0x67, 0xffff2915 }, { 0x6f, 0xffff2915 }, { 0x71, 0xffff2915 } }; static TFM::Kerning C_63_Kerning[] = { { 0x61, 0xffff2915 }, { 0x63, 0xffff2915 }, { 0x64, 0xffff2915 }, { 0x65, 0xffff2915 }, { 0x67, 0xffff2915 }, { 0x6f, 0xffff2915 }, { 0x71, 0xffff2915 } }; static TFM::Kerning C_64_Kerning[] = { { 0x6c, 0x0000d6eb } }; static TFM::Kerning C_65_Kerning[] = { { 0x61, 0xffff2915 }, { 0x63, 0xffff2915 }, { 0x64, 0xffff2915 }, { 0x65, 0xffff2915 }, { 0x67, 0xffff2915 }, { 0x6f, 0xffff2915 }, { 0x71, 0xffff2915 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x0001af69 }, { 0x27, 0x0001af69 }, { 0x29, 0x0001af69 }, { 0x3f, 0x0001af69 }, { 0x5d, 0x0001af69 } }; static TFM::Kerning C_6c_Kerning[] = { { 0x6c, 0x0000d6eb } }; static TFM::Kerning C_6e_Kerning[] = { { 0x27, 0xfffe522b } }; static TFM::Kerning C_6f_Kerning[] = { { 0x61, 0xffff2915 }, { 0x63, 0xffff2915 }, { 0x64, 0xffff2915 }, { 0x65, 0xffff2915 }, { 0x67, 0xffff2915 }, { 0x6f, 0xffff2915 }, { 0x71, 0xffff2915 } }; static TFM::Kerning C_70_Kerning[] = { { 0x61, 0xffff2915 }, { 0x63, 0xffff2915 }, { 0x64, 0xffff2915 }, { 0x65, 0xffff2915 }, { 0x67, 0xffff2915 }, { 0x6f, 0xffff2915 }, { 0x71, 0xffff2915 } }; static TFM::Kerning C_72_Kerning[] = { { 0x61, 0xffff2915 }, { 0x63, 0xffff2915 }, { 0x64, 0xffff2915 }, { 0x65, 0xffff2915 }, { 0x67, 0xffff2915 }, { 0x6f, 0xffff2915 }, { 0x71, 0xffff2915 } }; static TFM::Kerning C_77_Kerning[] = { { 0x6c, 0x0000d6eb } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000a4d27, 0x000aeeee, 0x00000000, 0x0001106c, 0, 0, 0, 0 }, { 0x01, 0x000d6eab, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000c97c0, 0x000aeeee, 0x00000000, 0x0000e1f9, 0, 0, 0, 0 }, { 0x03, 0x000b5e39, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000ae9eb, 0x000aeeee, 0x00000000, 0x000070fc, 0, 0, 0, 0 }, { 0x05, 0x000c3524, 0x000aeeee, 0x00000000, 0x000094b2, 0, 0, 0, 0 }, { 0x06, 0x000bc0d5, 0x000aeeee, 0x00000000, 0x0000e1f9, 0, 0, 0, 0 }, { 0x07, 0x000c97c0, 0x000aeeee, 0x00000000, 0x0000948b, 0, 0, 0, 0 }, { 0x08, 0x000bc0d5, 0x000aeeee, 0x00000000, 0x0000f269, 0, 0, 0, 0 }, { 0x09, 0x000c97c0, 0x000aeeee, 0x00000000, 0x0000948b, 0, 0, 0, 0 }, { 0x0a, 0x000bc0d5, 0x000aeeee, 0x00000000, 0x0001106c, 0, 0, 0, 0 }, { 0x0b, 0x000a1300, 0x000b1c72, 0x00031c72, 0x00010d6e, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x00093c15, 0x000b1c72, 0x00031c72, 0x000111c5, 0, 0, 0, 0 }, { 0x0d, 0x0009a78b, 0x000b1c72, 0x00031c72, 0x000111c5, 0, 0, 0, 0 }, { 0x0e, 0x000e7b50, 0x000b1c72, 0x00031c72, 0x000111c5, 0, 0, 0, 0 }, { 0x0f, 0x000eb10b, 0x000b1c72, 0x00031c72, 0x000111c5, 0, 0, 0, 0 }, { 0x10, 0x00050980, 0x0006e38e, 0x00000000, 0x000143f5, 0, 0, 0, 0 }, { 0x11, 0x000574f5, 0x0006e38e, 0x00031c72, 0x0000961e, 0, 0, 0, 0 }, { 0x12, 0x0008652b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x0008652b, 0x000b1c72, 0x00000000, 0x0000f269, 0, 0, 0, 0 }, { 0x14, 0x0008652b, 0x000a0e39, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x0008652b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x0008652b, 0x000912f7, 0x00000000, 0x00012f67, 0, 0, 0, 0 }, { 0x17, 0x000d9d70, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00078e40, 0x00000000, 0x0002b8e4, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x0008d0a0, 0x000b1c72, 0x00031c72, 0x00014d6e, 0, 0, 0, 0 }, { 0x1a, 0x000bc0d5, 0x0006e38e, 0x00000000, 0x00013569, 0, 0, 0, 0 }, { 0x1b, 0x000bc0d5, 0x0006e38e, 0x00000000, 0x00013569, 0, 0, 0, 0 }, { 0x1c, 0x0008652b, 0x000871c7, 0x00018e39, 0x000094b2, 0, 0, 0, 0 }, { 0x1d, 0x000e7fbc, 0x000aeeee, 0x00000000, 0x0000e1f9, 0, 0, 0, 0 }, { 0x1e, 0x00102d92, 0x000aeeee, 0x00000000, 0x0000e1f9, 0, 0, 0, 0 }, { 0x1f, 0x000c97c0, 0x000bb60b, 0x0000c71c, 0x0000e1f9, 0, 0, 0, 0 }, { 0x20, 0x00043295, 0x0006e38e, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x00050980, 0x000b1c72, 0x00000000, 0x0001020e, 0, 0, 1, C_21_Ligature }, { 0x22, 0x000871ce, 0x000b1c72, 0x00000000, 0x0001106c, 0, 0, 0, 0 }, { 0x23, 0x000d6eab, 0x000b1c72, 0x00031c72, 0x000111c5, 0, 0, 0, 0 }, { 0x24, 0x000c93cb, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000d6eab, 0x000c0000, 0x0000e38e, 0x00012f67, 0, 0, 0, 0 }, { 0x26, 0x000c97c0, 0x000b1c72, 0x00000000, 0x0000f269, 0, 0, 0, 0 }, { 0x27, 0x00050980, 0x000b1c72, 0x00000000, 0x0001020e, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x0006b755, 0x000c0000, 0x00040000, 0x0000961e, 0, 0, 0, 0 }, { 0x29, 0x0006b755, 0x000c0000, 0x00040000, 0x0000948b, 0, 0, 0, 0 }, { 0x2a, 0x0008652b, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000c97c0, 0x000912f7, 0x00010980, 0x0000948b, 0, 0, 0, 0 }, { 0x2c, 0x00050980, 0x0001ba79, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0005e06b, 0x0006e38e, 0x00000000, 0x000070fc, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x00050980, 0x0001ba79, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x0008652b, 0x000c0000, 0x00040000, 0x0000961e, 0, 0, 0, 0 }, { 0x30, 0x0008652b, 0x000a4fa5, 0x00000000, 0x000111c5, 0, 0, 0, 0 }, { 0x31, 0x0008652b, 0x000a4fa5, 0x00000000, 0x000111c5, 0, 0, 0, 0 }, { 0x32, 0x0008652b, 0x000a4fa5, 0x00000000, 0x000111c5, 0, 0, 0, 0 }, { 0x33, 0x0008652b, 0x000a4fa5, 0x00000000, 0x000111c5, 0, 0, 0, 0 }, { 0x34, 0x0008652b, 0x000a4fa5, 0x00031c72, 0x000111c5, 0, 0, 0, 0 }, { 0x35, 0x0008652b, 0x000a4fa5, 0x00000000, 0x000111c5, 0, 0, 0, 0 }, { 0x36, 0x0008652b, 0x000a4fa5, 0x00000000, 0x000111c5, 0, 0, 0, 0 }, { 0x37, 0x0008652b, 0x000a4fa5, 0x00031c72, 0x000111c5, 0, 0, 0, 0 }, { 0x38, 0x0008652b, 0x000a4fa5, 0x00000000, 0x000111c5, 0, 0, 0, 0 }, { 0x39, 0x0008652b, 0x000a4fa5, 0x00000000, 0x000111c5, 0, 0, 0, 0 }, { 0x3a, 0x00050980, 0x0006e38e, 0x00000000, 0x0000e84b, 0, 0, 0, 0 }, { 0x3b, 0x00050980, 0x0006e38e, 0x00031c72, 0x0000e84b, 0, 0, 0, 0 }, { 0x3c, 0x00050980, 0x00080000, 0x00031c72, 0x00012f67, 0, 0, 0, 0 }, { 0x3d, 0x000c97c0, 0x0005f4e9, 0xfffdf4e9, 0x000111c5, 0, 0, 0, 0 }, { 0x3e, 0x0008652b, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x0008652b, 0x000b1c72, 0x00000000, 0x0000f269, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000c97c0, 0x000b1c72, 0x00000000, 0x0001020e, 0, 0, 0, 0 }, { 0x41, 0x000c3524, 0x000aeeee, 0x00000000, 0x00000000, 28, C_41_Kerning, 0, 0 }, { 0x42, 0x000b8f87, 0x000aeeee, 0x00000000, 0x0001106c, 0, 0, 0, 0 }, { 0x43, 0x000bc0d5, 0x000aeeee, 0x00000000, 0x000143f5, 0, 0, 0, 0 }, { 0x44, 0x000c6672, 0x000aeeee, 0x00000000, 0x0000e1f9, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000b2412, 0x000aeeee, 0x00000000, 0x0000e1f9, 0, 0, 0, 0 }, { 0x46, 0x000ab89c, 0x000aeeee, 0x00000000, 0x0001106c, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000cb4d4, 0x000aeeee, 0x00000000, 0x000070fc, 0, 0, 0, 0 }, { 0x48, 0x000c3524, 0x000aeeee, 0x00000000, 0x000094b2, 0, 0, 0, 0 }, { 0x49, 0x000654b9, 0x000aeeee, 0x00000000, 0x0000948b, 0, 0, 0, 0 }, { 0x4a, 0x00089f52, 0x000aeeee, 0x00000000, 0x00013569, 0, 0, 0, 0 }, { 0x4b, 0x000ca099, 0x000aeeee, 0x00000000, 0x000143f5, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000a4d27, 0x000aeeee, 0x00000000, 0x00000000, 11, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000eb9e4, 0x000aeeee, 0x00000000, 0x000094b2, 0, 0, 0, 0 }, { 0x4e, 0x000c3524, 0x000aeeee, 0x00000000, 0x000094b2, 0, 0, 0, 0 }, { 0x4f, 0x000c97c0, 0x000aeeee, 0x00000000, 0x0000e1f9, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000b2412, 0x000aeeee, 0x00000000, 0x0001106c, 1, C_50_Kerning, 0, 0 }, { 0x51, 0x000c97c0, 0x000aeeee, 0x00031c72, 0x0000e1f9, 0, 0, 0, 0 }, { 0x52, 0x000bfafc, 0x000aeeee, 0x00000000, 0x000094b2, 28, C_52_Kerning, 0, 0 }, { 0x53, 0x00093c15, 0x000aeeee, 0x00000000, 0x0000e1f9, 0, 0, 0, 0 }, { 0x54, 0x000bc0d5, 0x000aeeee, 0x00000000, 0x0001106c, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000c3524, 0x000aeeee, 0x00000000, 0x000094b2, 0, 0, 0, 0 }, { 0x56, 0x000c3524, 0x000aeeee, 0x00000000, 0x0000e84b, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x001067b9, 0x000aeeee, 0x00000000, 0x0000e84b, 1, C_57_Kerning, 0, 0 }, { 0x58, 0x000c3524, 0x000aeeee, 0x00000000, 0x0000948b, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000c3524, 0x000aeeee, 0x00000000, 0x0001020e, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000a1300, 0x000aeeee, 0x00000000, 0x000143f5, 0, 0, 0, 0 }, { 0x5b, 0x00050980, 0x000c0000, 0x00040000, 0x0000f269, 0, 0, 0, 0 }, { 0x5c, 0x000871ce, 0x000b1c72, 0x00000000, 0x0000e1f9, 0, 0, 0, 0 }, { 0x5d, 0x00050980, 0x000c0000, 0x00040000, 0x000143f5, 0, 0, 0, 0 }, { 0x5e, 0x0008652b, 0x000b1c72, 0x00000000, 0x00010d6e, 0, 0, 0, 0 }, { 0x5f, 0x00050980, 0x000ab49b, 0x00000000, 0x0000961e, 0, 0, 0, 0 }, { 0x60, 0x00050980, 0x000b1c72, 0x00000000, 0x0001020e, 0, 0, 1, C_60_Ligature }, { 0x61, 0x0008652b, 0x0006e38e, 0x00000000, 0x000143f5, 0, 0, 0, 0 }, { 0x62, 0x00078e40, 0x000b1c72, 0x00000000, 0x0001020e, 7, C_62_Kerning, 0, 0 }, { 0x63, 0x00078e40, 0x0006e38e, 0x00000000, 0x0000e1f9, 7, C_63_Kerning, 0, 0 }, { 0x64, 0x0008652b, 0x000b1c72, 0x00000000, 0x000111c5, 1, C_64_Kerning, 0, 0 }, { 0x65, 0x00078e40, 0x0006e38e, 0x00000000, 0x00013569, 7, C_65_Kerning, 0, 0 }, { 0x66, 0x00050980, 0x000b1c72, 0x00031c72, 0x00010d6e, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x00078e40, 0x0006e38e, 0x00031c72, 0x0000948b, 0, 0, 0, 0 }, { 0x68, 0x0008652b, 0x000b1c72, 0x00000000, 0x000143f5, 0, 0, 0, 0 }, { 0x69, 0x00050980, 0x000a7bb7, 0x00000000, 0x00010d6e, 0, 0, 0, 0 }, { 0x6a, 0x00050980, 0x000a7bb7, 0x00031c72, 0x00014d6e, 0, 0, 0, 0 }, { 0x6b, 0x00078e40, 0x000b1c72, 0x00000000, 0x000070fc, 0, 0, 0, 0 }, { 0x6c, 0x00043295, 0x000b1c72, 0x00000000, 0x000111c5, 1, C_6c_Kerning, 0, 0 }, { 0x6d, 0x000d6eab, 0x0006e38e, 0x00000000, 0x000143f5, 0, 0, 0, 0 }, { 0x6e, 0x00093c15, 0x0006e38e, 0x00000000, 0x000143f5, 1, C_6e_Kerning, 0, 0 }, { 0x6f, 0x0008652b, 0x0006e38e, 0x00000000, 0x0001020e, 7, C_6f_Kerning, 0, 0 }, { 0x70, 0x0008652b, 0x0006e38e, 0x00031c72, 0x0001020e, 7, C_70_Kerning, 0, 0 }, { 0x71, 0x00078e40, 0x0006e38e, 0x00031c72, 0x0000948b, 0, 0, 0, 0 }, { 0x72, 0x0006ed10, 0x0006e38e, 0x00000000, 0x000070fc, 7, C_72_Kerning, 0, 0 }, { 0x73, 0x0006b755, 0x0006e38e, 0x00000000, 0x00014d6e, 0, 0, 0, 0 }, { 0x74, 0x000574f5, 0x0009d75e, 0x00000000, 0x0000e84b, 0, 0, 0, 0 }, { 0x75, 0x0008d0a0, 0x0006e38e, 0x00000000, 0x000143f5, 0, 0, 0, 0 }, { 0x76, 0x00078e40, 0x0006e38e, 0x00000000, 0x000070fc, 0, 0, 0, 0 }, { 0x77, 0x000ae9eb, 0x0006e38e, 0x00000000, 0x000070fc, 1, C_77_Kerning, 0, 0 }, { 0x78, 0x00079492, 0x0006e38e, 0x00000000, 0x0000e84b, 0, 0, 0, 0 }, { 0x79, 0x0007f9b5, 0x0006e38e, 0x00031c72, 0x0000948b, 0, 0, 0, 0 }, { 0x7a, 0x0006b755, 0x0006e38e, 0x00000000, 0x00010d6e, 0, 0, 0, 0 }, { 0x7b, 0x0008652b, 0x0006e38e, 0x00000000, 0x0000961e, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x0010ca55, 0x0006e38e, 0x00000000, 0x0000961e, 0, 0, 0, 0 }, { 0x7d, 0x0008652b, 0x000b1c72, 0x00000000, 0x0000f269, 0, 0, 0, 0 }, { 0x7e, 0x0008652b, 0x000ab49b, 0x00000000, 0x000094b2, 0, 0, 0, 0 }, { 0x7f, 0x0008652b, 0x000ab49b, 0x00000000, 0x00013569, 0, 0, 0, 0 } }; void cmti9_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/msam10.cc0000644000175000017500000002570010704611255016640 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "MSAM", 0xea, "TeX math symbols", 0x00a00000, 0x97b3eecd, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x00100003 }, { 0x07, "extra_space", 0x00000000 }, { 0x08, "num1", 0x000ad2fa }, { 0x09, "num2", 0x00064cba }, { 0x0a, "num3", 0x00071986 }, { 0x0b, "denom1", 0x000af9a8 }, { 0x0c, "denom2", 0x00058478 }, { 0x0d, "sup1", 0x00069b35 }, { 0x0e, "sup2", 0x0005ce68 }, { 0x0f, "sup3", 0x00049f4a }, { 0x10, "sub1", 0x00026666 }, { 0x11, "sub2", 0x0003f49a }, { 0x12, "supdrop", 0x00062d80 }, { 0x13, "subdrop", 0x0000cccd }, { 0x14, "delim1", 0x00263d70 }, { 0x15, "delim2", 0x001028f6 }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Character character[] = { { 0x00, 0x000c71ca, 0x000acccd, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000c71ca, 0x000acccd, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000c71ca, 0x000acccd, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000c71ca, 0x000acccd, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000c71ca, 0x000acccd, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000471c8, 0x0008cc3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000aaaad, 0x000b136b, 0x0001c71d, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000aaaad, 0x000b136b, 0x0001c71d, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000c71ca, 0x00094fc8, 0x00014fc8, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000c71ca, 0x00094fc8, 0x00014fc8, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x00100003, 0x00085bba, 0x00003775, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x00100003, 0x00085bba, 0x00003775, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x000c71ca, 0x000acccd, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000b8e3b, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000e38e6, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x0009c71e, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00100003, 0x00085bba, 0x00003775, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00100003, 0x00085bba, 0x00003775, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00100003, 0x000acccd, 0x0002e490, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00100003, 0x000acccd, 0x0002e490, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000d5558, 0x000b136b, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000d5558, 0x000b136b, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x0006aaad, 0x000b136b, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x0006aaad, 0x000b136b, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x0006aaad, 0x000b136b, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x0006aaad, 0x000b136b, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x0011c720, 0x00085bba, 0x00003775, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x0011c720, 0x00085bba, 0x00003775, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00100003, 0x000acccd, 0x0002e490, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x00100003, 0x000acccd, 0x0002e490, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00080002, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x00080002, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00100003, 0x00060bce, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x001638e8, 0x00060bce, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x00100003, 0x0008cc3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x00100003, 0x0008cc3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000c71ca, 0x000bac5d, 0x0003ac5d, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000c71ca, 0x000bac5d, 0x0003ac5d, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000c71ca, 0x000bac5d, 0x0003ac5d, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000c71ca, 0x000c17e5, 0x000417e5, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x0011c720, 0x0008cc3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000aaaad, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000aaaad, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000c71ca, 0x00094fc8, 0x00014fc8, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x000c71ca, 0x000eaaad, 0x00014fc8, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x000c71ca, 0x000bac5d, 0x0003ac5d, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x000c71ca, 0x000bac5d, 0x0003ac5d, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000c71ca, 0x000c17e5, 0x000417e5, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000c71ca, 0x000a2fc8, 0x00022fc8, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000c71ca, 0x000a2fc8, 0x00022fc8, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000c71ca, 0x000a2fc8, 0x00022fc8, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000c71ca, 0x000a2fc8, 0x00022fc8, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000c71ca, 0x000a2fc8, 0x00022fc8, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000c71ca, 0x000c17e5, 0x000417e5, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000c71ca, 0x000a2fc8, 0x00022fc8, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000c71ca, 0x000acccd, 0x0002e490, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00046666, 0x0008cc3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00080002, 0x00076c9d, 0xffff6c9d, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000c71ca, 0x00094fc8, 0x00014fc8, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x000c71ca, 0x00094fc8, 0x00014fc8, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000c71ca, 0x000a2fc8, 0x00022fc8, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000c71ca, 0x000c17e5, 0x000417e5, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000c71ca, 0x000a2fc8, 0x00022fc8, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000c71ca, 0x000acccd, 0x0002e490, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000c71ca, 0x0008cc3a, 0x00009012, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000c71ca, 0x0008cc3a, 0x00009012, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x000c71ca, 0x0008cc3a, 0x00009012, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000c71ca, 0x0008cc3a, 0x00009012, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000c71ca, 0x000a2fc8, 0x00022fc8, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x000c71ca, 0x000a2fc8, 0x00022fc8, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000f1c73, 0x000b136b, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x00080002, 0x000c17e5, 0x000417e5, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000b8e3b, 0x0008cc3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x000c71ca, 0x0008cc3a, 0x00009012, 0x00000000, 0, 0, 0, 0 }, { 0x4a, 0x000c71ca, 0x0008cc3a, 0x00009012, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x00080002, 0x00076c9d, 0xffff6c9d, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x00080002, 0x00076c9d, 0xffff6c9d, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x000b8e3b, 0x0008cc3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000b8e3b, 0x0008cc3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000b8e3b, 0x0008cc3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x000c71ca, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x000c71ca, 0x000e2bca, 0x00062bca, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000c71ca, 0x000e2bca, 0x00062bca, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x000c71ca, 0x000fb896, 0x0007b896, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000c71ca, 0x000fb896, 0x0007b896, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x000c0002, 0x000acccd, 0x00000000, 0x00006666, 0, 0, 0, 0 }, { 0x56, 0x00100003, 0x000a2fc8, 0x00022fc8, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x00100003, 0x000a2fc8, 0x00022fc8, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x000d5558, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x0009c71e, 0x000b136b, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x0009c71e, 0x000b136b, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x0009c71e, 0x000c17e5, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000b8e3b, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000b8e3b, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000b8e3b, 0x00085bba, 0x00009012, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000c71ca, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000c71ca, 0x000b136b, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x000c71ca, 0x000b136b, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x000c71ca, 0x0008cc3a, 0x00009012, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x000c71ca, 0x0008cc3a, 0x00009012, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x000aaaad, 0x0008cc3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x000aaaad, 0x0008cc3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000c2aab, 0x0008cc3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x000c2aab, 0x0008cc3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x000c71ca, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x000c71ca, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x000c71ca, 0x000c17e5, 0x000417e5, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000c71ca, 0x000c17e5, 0x000417e5, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x000c71ca, 0x0008cc3a, 0x0000f850, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000c71ca, 0x0008cc3a, 0x0000f850, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x0015555a, 0x0008cc3a, 0x00009012, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x0015555a, 0x0008cc3a, 0x00009012, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x00080002, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x00080002, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x000f2588, 0x000b136b, 0x00027d4a, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x000e6f7d, 0x000b136b, 0x00027d4a, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x000aaaad, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x000c71ca, 0x000b136b, 0x00014fc8, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x000c71ca, 0x00060bce, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000c71ca, 0x00076c9d, 0xffff6c9d, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x00080002, 0x00060bce, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00080002, 0x00060bce, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x000d5558, 0x000b136b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00080002, 0x000d3338, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x0008e390, 0x0006e38e, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x000c71ca, 0x00094fc8, 0x00014fc8, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000c71ca, 0x00094fc8, 0x00014fc8, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000c71ca, 0x00094fc8, 0x00014fc8, 0x00000000, 0, 0, 0, 0 } }; void msam10_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmmib10.cc0000644000175000017500000004545110704611254016776 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMMIB", 0xea, "TeX math italic", 0x00a00000, 0x44468994, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x00071c72 }, { 0x06, "quad", 0x00126660 }, { 0x07, "extra_space", 0x00000000 } }; static TFM::Kerning C_00_Kerning[] = { { 0x3a, 0xfffdf4a0 }, { 0x3b, 0xfffdf4a0 }, { 0x3d, 0xfffefa50 }, { 0x7f, 0x00018888 } }; static TFM::Kerning C_01_Kerning[] = { { 0x7f, 0x00031110 } }; static TFM::Kerning C_02_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_03_Kerning[] = { { 0x7f, 0x00031110 } }; static TFM::Kerning C_04_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_05_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 }, { 0x3d, 0xfffefa50 }, { 0x7f, 0x000105b0 } }; static TFM::Kerning C_06_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_07_Kerning[] = { { 0x3a, 0xfffdf4a0 }, { 0x3b, 0xfffdf4a0 }, { 0x3d, 0xfffefa50 }, { 0x7f, 0x000105b0 } }; static TFM::Kerning C_08_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_09_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 }, { 0x3d, 0xfffefa50 }, { 0x7f, 0x000105b0 } }; static TFM::Kerning C_0a_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x7f, 0x000082d8 } }; static TFM::Kerning C_0c_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_0e_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 }, { 0x7f, 0x000105b0 } }; static TFM::Kerning C_0f_Kerning[] = { { 0x7f, 0x000105b0 } }; static TFM::Kerning C_10_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_11_Kerning[] = { { 0x7f, 0x000105b0 } }; static TFM::Kerning C_12_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_13_Kerning[] = { { 0x7f, 0x000105b0 } }; static TFM::Kerning C_16_Kerning[] = { { 0x7f, 0x000082d8 } }; static TFM::Kerning C_17_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 }, { 0x7f, 0x000082d8 } }; static TFM::Kerning C_18_Kerning[] = { { 0x7f, 0x00020b60 } }; static TFM::Kerning C_1a_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_1b_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 } }; static TFM::Kerning C_1c_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 }, { 0x7f, 0x000082d8 } }; static TFM::Kerning C_1d_Kerning[] = { { 0x7f, 0x000082d8 } }; static TFM::Kerning C_1e_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_1f_Kerning[] = { { 0x7f, 0x000105b0 } }; static TFM::Kerning C_20_Kerning[] = { { 0x7f, 0x00020b60 } }; static TFM::Kerning C_22_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_23_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_25_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_26_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_27_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_3d_Kerning[] = { { 0x01, 0xfffefa50 }, { 0x41, 0xfffefa50 }, { 0x4d, 0xfffefa50 }, { 0x4e, 0xfffefa50 }, { 0x59, 0x000105b0 }, { 0x5a, 0xfffefa50 } }; static TFM::Kerning C_40_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_41_Kerning[] = { { 0x7f, 0x00028e38 } }; static TFM::Kerning C_42_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_43_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 }, { 0x3d, 0xffff7d28 }, { 0x7f, 0x00018888 } }; static TFM::Kerning C_44_Kerning[] = { { 0x7f, 0x000105b0 } }; static TFM::Kerning C_45_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_46_Kerning[] = { { 0x3a, 0xfffdf4a0 }, { 0x3b, 0xfffdf4a0 }, { 0x3d, 0xfffefa50 }, { 0x7f, 0x00018888 } }; static TFM::Kerning C_47_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_48_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 }, { 0x3d, 0xfffefa50 }, { 0x7f, 0x000105b0 } }; static TFM::Kerning C_49_Kerning[] = { { 0x7f, 0x00020b60 } }; static TFM::Kerning C_4a_Kerning[] = { { 0x3a, 0xfffdf4a0 }, { 0x3b, 0xfffdf4a0 }, { 0x3d, 0xfffefa50 }, { 0x7f, 0x00031110 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 }, { 0x3d, 0xfffefa50 }, { 0x7f, 0x000105b0 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x7f, 0x000082d8 } }; static TFM::Kerning C_4d_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 }, { 0x3d, 0xfffefa50 }, { 0x7f, 0x00018888 } }; static TFM::Kerning C_4e_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 }, { 0x3d, 0xfffe7778 }, { 0x3d, 0xffff7d28 }, { 0x7f, 0x00018888 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_50_Kerning[] = { { 0x3a, 0xfffdf4a0 }, { 0x3b, 0xfffdf4a0 }, { 0x3d, 0xfffefa50 }, { 0x7f, 0x00018888 } }; static TFM::Kerning C_51_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_52_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_53_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 }, { 0x3d, 0xfffefa50 }, { 0x7f, 0x00018888 } }; static TFM::Kerning C_54_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 }, { 0x3d, 0xffff7d28 }, { 0x7f, 0x00018888 } }; static TFM::Kerning C_55_Kerning[] = { { 0x3a, 0xfffdf4a0 }, { 0x3b, 0xfffdf4a0 }, { 0x3d, 0xfffefa50 }, { 0x7f, 0x000082d8 } }; static TFM::Kerning C_56_Kerning[] = { { 0x3a, 0xfffceef0 }, { 0x3b, 0xfffceef0 }, { 0x3d, 0xfffdf4a0 } }; static TFM::Kerning C_57_Kerning[] = { { 0x3a, 0xfffceef0 }, { 0x3b, 0xfffceef0 }, { 0x3d, 0xfffdf4a0 } }; static TFM::Kerning C_58_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 }, { 0x3d, 0xfffe7778 }, { 0x3d, 0xffff7d28 }, { 0x7f, 0x00018888 } }; static TFM::Kerning C_59_Kerning[] = { { 0x3a, 0xfffceef0 }, { 0x3b, 0xfffceef0 }, { 0x3d, 0xfffdf4a0 } }; static TFM::Kerning C_5a_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 }, { 0x3d, 0xfffefa50 }, { 0x7f, 0x00018888 } }; static TFM::Kerning C_60_Kerning[] = { { 0x7f, 0x00020b60 } }; static TFM::Kerning C_63_Kerning[] = { { 0x7f, 0x000105b0 } }; static TFM::Kerning C_64_Kerning[] = { { 0x59, 0x000105b0 }, { 0x5a, 0xfffefa50 }, { 0x66, 0xfffceef0 }, { 0x6a, 0xfffdf4a0 }, { 0x7f, 0x00031110 } }; static TFM::Kerning C_65_Kerning[] = { { 0x7f, 0x000105b0 } }; static TFM::Kerning C_66_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 }, { 0x7f, 0x00031110 } }; static TFM::Kerning C_67_Kerning[] = { { 0x7f, 0x000082d8 } }; static TFM::Kerning C_68_Kerning[] = { { 0x7f, 0xffff7d28 } }; static TFM::Kerning C_6a_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 } }; static TFM::Kerning C_6c_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x7f, 0x000105b0 } }; static TFM::Kerning C_70_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_71_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_72_Kerning[] = { { 0x3a, 0xfffefa50 }, { 0x3b, 0xfffefa50 }, { 0x7f, 0x000105b0 } }; static TFM::Kerning C_73_Kerning[] = { { 0x7f, 0x000105b0 } }; static TFM::Kerning C_74_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_75_Kerning[] = { { 0x7f, 0x000082d8 } }; static TFM::Kerning C_76_Kerning[] = { { 0x7f, 0x000082d8 } }; static TFM::Kerning C_77_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_78_Kerning[] = { { 0x7f, 0x000082d8 } }; static TFM::Kerning C_79_Kerning[] = { { 0x7f, 0x000105b0 } }; static TFM::Kerning C_7a_Kerning[] = { { 0x7f, 0x000105b0 } }; static TFM::Kerning C_7b_Kerning[] = { { 0x7f, 0x000082d8 } }; static TFM::Kerning C_7c_Kerning[] = { { 0x7f, 0x00018888 } }; static TFM::Kerning C_7d_Kerning[] = { { 0x7f, 0x00020b60 } }; static TFM::Character character[] = { { 0x00, 0x000a82d5, 0x000afa50, 0x00000000, 0x0000df4a, 4, C_00_Kerning, 0, 0 }, { 0x01, 0x000f5550, 0x000afa50, 0x00000000, 0x00000000, 1, C_01_Kerning, 0, 0 }, { 0x02, 0x000de020, 0x000afa50, 0x00000000, 0x000082d8, 1, C_02_Kerning, 0, 0 }, { 0x03, 0x000ce38a, 0x000afa50, 0x00000000, 0x00000000, 1, C_03_Kerning, 0, 0 }, { 0x04, 0x000d75be, 0x000afa50, 0x00000000, 0x00004bda, 1, C_04_Kerning, 0, 0 }, { 0x05, 0x000fb773, 0x000afa50, 0x00000000, 0x000082d8, 4, C_05_Kerning, 0, 0 }, { 0x06, 0x000e293b, 0x000afa50, 0x00000000, 0x0000df4a, 1, C_06_Kerning, 0, 0 }, { 0x07, 0x000abbb8, 0x000afa50, 0x00000000, 0x0000df4a, 4, C_07_Kerning, 0, 0 }, { 0x08, 0x000c4440, 0x000afa50, 0x00000000, 0x00000000, 1, C_08_Kerning, 0, 0 }, { 0x09, 0x000b6ca2, 0x000afa50, 0x00000000, 0x0000ac90, 4, C_09_Kerning, 0, 0 }, { 0x0a, 0x000e0ffd, 0x000afa50, 0x00000000, 0x0000c60b, 1, C_0a_Kerning, 0, 0 }, { 0x0b, 0x000c2b9a, 0x00071c72, 0x00000000, 0x00000000, 1, C_0b_Kerning, 0, 0 }, { 0x0c, 0x000a8e36, 0x000b1c72, 0x00031c72, 0x00008b62, 1, C_0c_Kerning, 0, 0 }, { 0x0d, 0x000970c3, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x00085b02, 0x000b1c72, 0x00000000, 0x00009c72, 3, C_0e_Kerning, 0, 0 }, { 0x0f, 0x0007bbba, 0x00071c72, 0x00000000, 0x00000000, 1, C_0f_Kerning, 0, 0 }, { 0x10, 0x00082220, 0x000b1c72, 0x00031c72, 0x0000fe95, 1, C_10_Kerning, 0, 0 }, { 0x11, 0x00099998, 0x00071c72, 0x00031c72, 0x000097b5, 1, C_11_Kerning, 0, 0 }, { 0x12, 0x0008fd25, 0x000b1c72, 0x00000000, 0x000082d8, 1, C_12_Kerning, 0, 0 }, { 0x13, 0x000697b3, 0x00071c72, 0x00000000, 0x00000000, 1, C_13_Kerning, 0, 0 }, { 0x14, 0x000aae73, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000abbb8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000b536e, 0x00071c72, 0x00031c72, 0x00000000, 1, C_16_Kerning, 0, 0 }, { 0x17, 0x00093ac6, 0x00071c72, 0x00000000, 0x0000113e, 3, C_17_Kerning, 0, 0 }, { 0x18, 0x00082220, 0x000b1c72, 0x00031c72, 0x00007bbd, 1, C_18_Kerning, 0, 0 }, { 0x19, 0x000aeb22, 0x00071c72, 0x00000000, 0x000097b5, 0, 0, 0, 0 }, { 0x1a, 0x0009c9f3, 0x00071c72, 0x00031c72, 0x00000000, 1, C_1a_Kerning, 0, 0 }, { 0x1b, 0x000af95a, 0x00071c72, 0x00000000, 0x000097b5, 2, C_1b_Kerning, 0, 0 }, { 0x1c, 0x00085553, 0x00071c72, 0x00000000, 0x0000c60b, 3, C_1c_Kerning, 0, 0 }, { 0x1d, 0x000a16be, 0x00071c72, 0x00000000, 0x000097b5, 1, C_1d_Kerning, 0, 0 }, { 0x1e, 0x000b6662, 0x000b1c72, 0x00031c72, 0x00000000, 1, C_1e_Kerning, 0, 0 }, { 0x1f, 0x000b7d26, 0x00071c72, 0x00031c72, 0x00000000, 1, C_1f_Kerning, 0, 0 }, { 0x20, 0x000c221e, 0x000b1c72, 0x00031c72, 0x000097b5, 1, C_20_Kerning, 0, 0 }, { 0x21, 0x000b7c30, 0x00071c72, 0x00000000, 0x000097b5, 0, 0, 0, 0 }, { 0x22, 0x0008760a, 0x00071c72, 0x00000000, 0x00000000, 1, C_22_Kerning, 0, 0 }, { 0x23, 0x000b1095, 0x000b1c72, 0x00000000, 0x00000000, 1, C_23_Kerning, 0, 0 }, { 0x24, 0x000f9996, 0x00071c72, 0x00000000, 0x000082d8, 0, 0, 0, 0 }, { 0x25, 0x0009c9f3, 0x00071c72, 0x00031c72, 0x00000000, 1, C_25_Kerning, 0, 0 }, { 0x26, 0x0006c71a, 0x00071c72, 0x00018e3a, 0x00007bbd, 1, C_26_Kerning, 0, 0 }, { 0x27, 0x000bf49a, 0x00071c72, 0x00031c72, 0x00000000, 1, C_27_Kerning, 0, 0 }, { 0x28, 0x00126660, 0x000641fe, 0xfffe41fe, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00126660, 0x000641fe, 0xfffe41fe, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00126660, 0x000641fe, 0xfffe41fe, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x00126660, 0x000641fe, 0xfffe41fe, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00051c70, 0x0008091b, 0x0000091b, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00051c70, 0x0008091b, 0x0000091b, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x00093330, 0x00078e3a, 0xffff8e3a, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00093330, 0x00078e3a, 0xffff8e3a, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00093330, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00093330, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00093330, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00093330, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00093330, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00093330, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00093330, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00093330, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00093330, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00093330, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00051c70, 0x00027d28, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00051c70, 0x00027d28, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000e4fa0, 0x00095e70, 0x00015e70, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x00093330, 0x000c0000, 0x00040000, 0x00000000, 6, C_3d_Kerning, 0, 0 }, { 0x3e, 0x000e4fa0, 0x00095e70, 0x00015e70, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00093330, 0x00078e3a, 0xffff8e3a, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000a0e35, 0x000b1c72, 0x00000000, 0x00000000, 1, C_40_Kerning, 0, 0 }, { 0x41, 0x000de93a, 0x000afa50, 0x00000000, 0x00000000, 1, C_41_Kerning, 0, 0 }, { 0x42, 0x000ddcca, 0x000afa50, 0x00000000, 0x0000c60b, 1, C_42_Kerning, 0, 0 }, { 0x43, 0x000d1230, 0x000afa50, 0x00000000, 0x00002408, 4, C_43_Kerning, 0, 0 }, { 0x44, 0x000f028b, 0x000afa50, 0x00000000, 0x000082d8, 1, C_44_Kerning, 0, 0 }, { 0x45, 0x000cf608, 0x000afa50, 0x00000000, 0x0000df4a, 1, C_45_Kerning, 0, 0 }, { 0x46, 0x000b05ad, 0x000afa50, 0x00000000, 0x0000df4a, 4, C_46_Kerning, 0, 0 }, { 0x47, 0x000e300e, 0x000afa50, 0x00000000, 0x00000000, 1, C_47_Kerning, 0, 0 }, { 0x48, 0x000fb773, 0x000afa50, 0x00000000, 0x000082d8, 4, C_48_Kerning, 0, 0 }, { 0x49, 0x00082d82, 0x000afa50, 0x00000000, 0x000071c6, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000a1998, 0x000afa50, 0x00000000, 0x00008b62, 4, C_4a_Kerning, 0, 0 }, { 0x4b, 0x000f89f0, 0x000afa50, 0x00000000, 0x00002408, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000c16bd, 0x000afa50, 0x00000000, 0x00000000, 1, C_4c_Kerning, 0, 0 }, { 0x4d, 0x001245ab, 0x000afa50, 0x00000000, 0x00009c72, 4, C_4d_Kerning, 0, 0 }, { 0x4e, 0x000f349b, 0x000afa50, 0x00000000, 0x00009c72, 5, C_4e_Kerning, 0, 0 }, { 0x4f, 0x000d62f8, 0x000afa50, 0x00000000, 0x000082d8, 1, C_4f_Kerning, 0, 0 }, { 0x50, 0x000b91c5, 0x000afa50, 0x00000000, 0x0000df4a, 4, C_50_Kerning, 0, 0 }, { 0x51, 0x000de5d0, 0x000afa50, 0x00031c72, 0x00000000, 1, C_51_Kerning, 0, 0 }, { 0x52, 0x000df525, 0x000afa50, 0x00000000, 0x0000113e, 1, C_52_Kerning, 0, 0 }, { 0x53, 0x000b1553, 0x000afa50, 0x00000000, 0x0000dc72, 4, C_53_Kerning, 0, 0 }, { 0x54, 0x000a2fa0, 0x000afa50, 0x00000000, 0x0000df4a, 4, C_54_Kerning, 0, 0 }, { 0x55, 0x000ccded, 0x000afa50, 0x00000000, 0x00009c72, 4, C_55_Kerning, 0, 0 }, { 0x56, 0x000ad82b, 0x000afa50, 0x00000000, 0x0000fe95, 3, C_56_Kerning, 0, 0 }, { 0x57, 0x00117d23, 0x000afa50, 0x00000000, 0x0000df4a, 3, C_57_Kerning, 0, 0 }, { 0x58, 0x000f27ce, 0x000afa50, 0x00000000, 0x000071c6, 5, C_58_Kerning, 0, 0 }, { 0x59, 0x000acb13, 0x000afa50, 0x00000000, 0x0000fe95, 3, C_59_Kerning, 0, 0 }, { 0x5a, 0x000c5c6e, 0x000afa50, 0x00000000, 0x00002408, 4, C_5a_Kerning, 0, 0 }, { 0x5b, 0x000727d0, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000727d0, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000727d0, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00126660, 0x0005c71d, 0xfffdc71d, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00126660, 0x0005c71d, 0xfffdc71d, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000793ea, 0x000b1c72, 0x00000000, 0x00000000, 1, C_60_Kerning, 0, 0 }, { 0x61, 0x000a203a, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00085552, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x000836fb, 0x00071c72, 0x00000000, 0x00000000, 1, C_63_Kerning, 0, 0 }, { 0x64, 0x0009c16a, 0x000b1c72, 0x00000000, 0x00000000, 5, C_64_Kerning, 0, 0 }, { 0x65, 0x0008db95, 0x00071c72, 0x00000000, 0x00000000, 1, C_65_Kerning, 0, 0 }, { 0x66, 0x000916c3, 0x000b1c72, 0x00031c72, 0x000097b5, 3, C_66_Kerning, 0, 0 }, { 0x67, 0x0008b7ed, 0x00071c72, 0x00031c72, 0x000097b5, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000aae73, 0x000b1c72, 0x00000000, 0x00000000, 1, C_68_Kerning, 0, 0 }, { 0x69, 0x00067a0b, 0x000b1793, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00078888, 0x000b1793, 0x00031c72, 0x0000fec8, 2, C_6a_Kerning, 0, 0 }, { 0x6b, 0x0009a8c3, 0x000b1c72, 0x00000000, 0x00004bda, 0, 0, 0, 0 }, { 0x6c, 0x00059203, 0x000b1c72, 0x00000000, 0x00002408, 1, C_6c_Kerning, 0, 0 }, { 0x6d, 0x001084ba, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x000b684a, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x00095b02, 0x00071c72, 0x00000000, 0x00000000, 1, C_6f_Kerning, 0, 0 }, { 0x70, 0x00099d62, 0x00071c72, 0x00031c72, 0x00000000, 1, C_70_Kerning, 0, 0 }, { 0x71, 0x0008ac8d, 0x00071c72, 0x00031c72, 0x000097b5, 1, C_71_Kerning, 0, 0 }, { 0x72, 0x00087592, 0x00071c72, 0x00000000, 0x000082d8, 3, C_72_Kerning, 0, 0 }, { 0x73, 0x00088000, 0x00071c72, 0x00000000, 0x00000000, 1, C_73_Kerning, 0, 0 }, { 0x74, 0x0006a4f8, 0x000a28a3, 0x00000000, 0x00000000, 1, C_74_Kerning, 0, 0 }, { 0x75, 0x000ae572, 0x00071c72, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x0009110e, 0x00071c72, 0x00000000, 0x000097b5, 1, C_76_Kerning, 0, 0 }, { 0x77, 0x000d4dbd, 0x00071c72, 0x00000000, 0x000071c6, 1, C_77_Kerning, 0, 0 }, { 0x78, 0x000a8b60, 0x00071c72, 0x00000000, 0x00000000, 1, C_78_Kerning, 0, 0 }, { 0x79, 0x000971c5, 0x00071c72, 0x00031c72, 0x000097b5, 1, C_79_Kerning, 0, 0 }, { 0x7a, 0x0008e1a8, 0x00071c72, 0x00000000, 0x0000ac90, 1, C_7a_Kerning, 0, 0 }, { 0x7b, 0x00064bda, 0x00071c72, 0x00000000, 0x00000000, 1, C_7b_Kerning, 0, 0 }, { 0x7c, 0x000705b0, 0x00071c72, 0x00031c72, 0x00000000, 1, C_7c_Kerning, 0, 0 }, { 0x7d, 0x000bd82a, 0x00071c72, 0x00031c72, 0x00000000, 1, C_7d_Kerning, 0, 0 }, { 0x7e, 0x00093330, 0x000b9753, 0x00000000, 0x0000dc72, 0, 0, 0, 0 }, { 0x7f, 0x00051c70, 0x000b1c72, 0x00000000, 0x0000fec8, 0, 0, 0, 0 } }; void cmmib10_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmssbx10.cc0000644000175000017500000003762110704611255017207 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMSSBX", 0xea, "TeX text", 0x00a00000, 0xf16b4148, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x0005dde0 }, { 0x03, "space_stretch", 0x0002eef0 }, { 0x04, "space_shrink", 0x0001f4a0 }, { 0x05, "x_height", 0x00075555 }, { 0x06, "quad", 0x001199a0 }, { 0x07, "extra_space", 0x0001f4a0 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x000138e5 }, { 0x27, 0x000138e5 }, { 0x29, 0x000138e5 }, { 0x3f, 0x000138e5 }, { 0x5d, 0x000138e5 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffb4fa3 }, { 0x6c, 0xfffbe93d } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001f4a0 }, { 0x3f, 0x0001f4a0 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff82d8 }, { 0x47, 0xffff82d8 }, { 0x4f, 0xffff82d8 }, { 0x51, 0xffff82d8 }, { 0x54, 0xfffe8888 }, { 0x55, 0xffff82d8 }, { 0x56, 0xfffe0b60 }, { 0x57, 0xfffe0b60 }, { 0x59, 0xfffe8888 }, { 0x74, 0xffff82d8 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff82d8 }, { 0x56, 0xffff82d8 }, { 0x57, 0xffff82d8 }, { 0x58, 0xffff82d8 }, { 0x59, 0xffff82d8 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffe8888 }, { 0x43, 0xffff82d8 }, { 0x47, 0xffff82d8 }, { 0x4f, 0xffff82d8 }, { 0x51, 0xffff82d8 }, { 0x61, 0xffff82d8 }, { 0x65, 0xffff82d8 }, { 0x6f, 0xffff82d8 }, { 0x72, 0xffff82d8 }, { 0x75, 0xffff82d8 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x00007d28 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff82d8 }, { 0x47, 0xffff82d8 }, { 0x4f, 0xffff82d8 }, { 0x51, 0xffff82d8 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffe8888 }, { 0x56, 0xfffe0b60 }, { 0x57, 0xfffe0b60 }, { 0x59, 0xfffe8888 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff82d8 }, { 0x56, 0xffff82d8 }, { 0x57, 0xffff82d8 }, { 0x58, 0xffff82d8 }, { 0x59, 0xffff82d8 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffe8888 }, { 0x2e, 0xfffe8888 }, { 0x41, 0xfffe8888 }, { 0x61, 0xffff82d8 }, { 0x65, 0xffff82d8 }, { 0x6f, 0xffff82d8 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffe8888 }, { 0x61, 0xfffe8888 }, { 0x65, 0xfffe8888 }, { 0x6f, 0xfffe8888 }, { 0x72, 0xfffe8888 }, { 0x75, 0xfffe8888 }, { 0x79, 0xfffe8888 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffe8888 }, { 0x43, 0xffff82d8 }, { 0x47, 0xffff82d8 }, { 0x4f, 0xffff82d8 }, { 0x51, 0xffff82d8 }, { 0x61, 0xffff82d8 }, { 0x65, 0xffff82d8 }, { 0x6f, 0xffff82d8 }, { 0x72, 0xffff82d8 }, { 0x75, 0xffff82d8 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffe8888 }, { 0x43, 0xffff82d8 }, { 0x47, 0xffff82d8 }, { 0x4f, 0xffff82d8 }, { 0x51, 0xffff82d8 }, { 0x61, 0xffff82d8 }, { 0x65, 0xffff82d8 }, { 0x6f, 0xffff82d8 }, { 0x72, 0xffff82d8 }, { 0x75, 0xffff82d8 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff82d8 }, { 0x47, 0xffff82d8 }, { 0x4f, 0xffff82d8 }, { 0x51, 0xffff82d8 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffe8888 }, { 0x61, 0xfffe8888 }, { 0x65, 0xfffe8888 }, { 0x6f, 0xfffe8888 }, { 0x72, 0xfffe8888 }, { 0x75, 0xfffe8888 } }; static TFM::Kerning C_61_Kerning[] = { { 0x72, 0xffff82d8 }, { 0x77, 0xffff82d8 }, { 0x79, 0xffff82d8 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x00007d28 }, { 0x64, 0x00007d28 }, { 0x65, 0x00007d28 }, { 0x6f, 0x00007d28 }, { 0x71, 0x00007d28 }, { 0x72, 0xffff82d8 }, { 0x77, 0xffff82d8 }, { 0x78, 0xffff82d8 }, { 0x79, 0xffff82d8 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x000138e5 }, { 0x27, 0x000138e5 }, { 0x29, 0x000138e5 }, { 0x3f, 0x000138e5 }, { 0x5d, 0x000138e5 } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x00007d28 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff82d8 }, { 0x63, 0xffff82d8 }, { 0x65, 0xffff82d8 }, { 0x6f, 0xffff82d8 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x00007d28 }, { 0x64, 0x00007d28 }, { 0x65, 0x00007d28 }, { 0x6f, 0x00007d28 }, { 0x71, 0x00007d28 }, { 0x72, 0xffff82d8 }, { 0x77, 0xffff82d8 }, { 0x78, 0xffff82d8 }, { 0x79, 0xffff82d8 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x00007d28 }, { 0x64, 0x00007d28 }, { 0x65, 0x00007d28 }, { 0x6f, 0x00007d28 }, { 0x71, 0x00007d28 }, { 0x72, 0xffff82d8 }, { 0x77, 0xffff82d8 }, { 0x78, 0xffff82d8 }, { 0x79, 0xffff82d8 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff82d8 }, { 0x79, 0xffff82d8 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff82d8 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff82d8 }, { 0x63, 0xffff82d8 }, { 0x65, 0xffff82d8 }, { 0x6f, 0xffff82d8 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffe8888 }, { 0x2e, 0xfffe8888 }, { 0x61, 0xffff82d8 }, { 0x65, 0xffff82d8 }, { 0x6f, 0xffff82d8 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000949f8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000eaab0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000db060, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000ac170, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000bbbc0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000cb610, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000cb610, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000db060, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000cb610, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000db060, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000cb610, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000a4448, 0x000b1c72, 0x00000000, 0x000138e5, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x000960ba, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000960ba, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000e444a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000e444a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x000416c3, 0x00075555, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x000493eb, 0x00075555, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x0008ccd0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x0008ccd0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x0008ccd0, 0x000a2aab, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x0008ccd0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x0008ccd0, 0x000a3455, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000bbbc0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x0007d280, 0x00000000, 0x0002b8e3, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00090b63, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000cb610, 0x00075555, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000db060, 0x00075555, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x0008ccd0, 0x0008e38e, 0x00018e3a, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000f27d8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00111c78, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000db060, 0x000be38e, 0x0000c71d, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x000416c3, 0x00075555, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x0005dde0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x0008eef2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000eaab0, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x0008ccd0, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x00107745, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000d49fa, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x0004e390, 0x000b1c72, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x0006d830, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x0006d830, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x0008ccd0, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000db060, 0x0009dde0, 0x0001dde0, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x0004e390, 0x000216c2, 0x0001b05b, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0005dde0, 0x00075555, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x0004e390, 0x000216c2, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x0008ccd0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x0008ccd0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x0008ccd0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x0008ccd0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x0008ccd0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x0008ccd0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x0008ccd0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x0008ccd0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x0008ccd0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x0008ccd0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x0008ccd0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x0004e390, 0x00075555, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x0004e390, 0x00075555, 0x0001b05b, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x0005dde0, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000db060, 0x00068000, 0xfffe8000, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00084fa8, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00084fa8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000bbbc0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000bbbc0, 0x000b1c72, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000bbbc0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000b3e98, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000cb610, 0x000b1c72, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000a4448, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x0009c720, 0x000b1c72, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000bbbc0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000cb610, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x000549f6, 0x000b1c72, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x00084fa8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000c38e8, 0x000b1c72, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000949f8, 0x000b1c72, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000fa500, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000cb610, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000cb610, 0x000b1c72, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000b3e98, 0x000b1c72, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000cb610, 0x000b1c72, 0x0001b05b, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000b3e98, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x0009c720, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000bbbc0, 0x000b1c72, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000c38e8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000bbbc0, 0x000b1c72, 0x00000000, 0x00003e95, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x00109f50, 0x000b1c72, 0x00000000, 0x00003e95, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000bbbc0, 0x000b1c72, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000bbbc0, 0x000b1c72, 0x00000000, 0x000070a3, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000ac170, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x00057d2a, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x0008eef2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00057d2a, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x0008ccd0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x0004e390, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x0004e390, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x0008666a, 0x00075555, 0x00000000, 0x00000000, 3, C_61_Kerning, 0, 0 }, { 0x62, 0x0008fa53, 0x000b1c72, 0x00000000, 0x00000000, 9, C_62_Kerning, 0, 0 }, { 0x63, 0x0007d280, 0x00075555, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x0008fa53, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00082d86, 0x00075555, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000560b8, 0x000b1c72, 0x00000000, 0x000138e5, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x0008ccd0, 0x00075555, 0x00031c72, 0x00003e95, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x0008fa53, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x000416c3, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x000493eb, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x00087d2b, 0x000b1c72, 0x00000000, 0x00000000, 4, C_6b_Kerning, 0, 0 }, { 0x6c, 0x000416c3, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000ddde3, 0x00075555, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x0008fa53, 0x00075555, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x0008ccd0, 0x00075555, 0x00000000, 0x00000000, 9, C_6f_Kerning, 0, 0 }, { 0x70, 0x0008fa53, 0x00075555, 0x00031c72, 0x00000000, 9, C_70_Kerning, 0, 0 }, { 0x71, 0x0008fa53, 0x00075555, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x0005f4a2, 0x00075555, 0x00000000, 0x00003e95, 0, 0, 0, 0 }, { 0x73, 0x0006bf28, 0x00075555, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x0006777a, 0x00096dba, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x0008fa53, 0x00075555, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x00080003, 0x00075555, 0x00000000, 0x00003e95, 0, 0, 0, 0 }, { 0x77, 0x000be943, 0x00075555, 0x00000000, 0x00003e95, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x00080003, 0x00075555, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00080003, 0x00075555, 0x00031c72, 0x00003e95, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x00079f4d, 0x00075555, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x0008ccd0, 0x00075555, 0x00000000, 0x00007d28, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x001199a0, 0x00075555, 0x00000000, 0x00007d28, 0, 0, 0, 0 }, { 0x7d, 0x0008ccd0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x0008ccd0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x0008ccd0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmssbx10_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/msbm6.cc0000644000175000017500000002567710704611261016600 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "MSBM", 0xf2, "TeX math symbols", 0x00600000, 0x4f1a042b, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x0004ccd0 }, { 0x03, "space_stretch", 0x00026660 }, { 0x04, "space_shrink", 0x000199a0 }, { 0x05, "x_height", 0x00076845 }, { 0x06, "quad", 0x00100000 }, { 0x07, "extra_space", 0x000199a0 }, { 0x08, "num1", 0x000d00d0 }, { 0x09, "num2", 0x000646fd }, { 0x0a, "num3", 0x0007c240 }, { 0x0b, "denom1", 0x000dd165 }, { 0x0c, "denom2", 0x0006dead }, { 0x0d, "sup1", 0x00080c28 }, { 0x0e, "sup2", 0x0006b6d3 }, { 0x0f, "sup3", 0x000497b5 }, { 0x10, "sub1", 0x0002aaab }, { 0x11, "sub2", 0x00055555 }, { 0x12, "supdrop", 0x000697b0 }, { 0x13, "subdrop", 0x00015555 }, { 0x14, "delim1", 0x001fbbbb }, { 0x15, "delim2", 0x0015999b }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Character character[] = { { 0x00, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000f6845, 0x000e65e0, 0x000665e0, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000f6845, 0x000e65e0, 0x000665e0, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000f6845, 0x000c9cfb, 0x000484d5, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000f6845, 0x000c9cfb, 0x000484d5, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000f6845, 0x000c9cfb, 0x000484d5, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000f6845, 0x000c9cfb, 0x000484d5, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000f6845, 0x000e65e0, 0x000665e0, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000f6845, 0x000e65e0, 0x000665e0, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x000f6845, 0x000b3bbd, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000f6845, 0x000b3bbd, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000f6845, 0x000e65e0, 0x000665e0, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000f6845, 0x000e65e0, 0x000665e0, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x000f6845, 0x000c9cfb, 0x0004b523, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x000f6845, 0x000d1af8, 0x000502bb, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000f6845, 0x000c9cfb, 0x0004b523, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000f6845, 0x000d1af8, 0x000502bb, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000f6845, 0x00109555, 0x00089555, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000f6845, 0x00109555, 0x00089555, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x000f6845, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000f6845, 0x000e65e0, 0x000665e0, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00117b3b, 0x000b05b0, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x00117b3b, 0x000c0000, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x000f6845, 0x000b3bbd, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x000f6845, 0x000b3bbd, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000f6845, 0x000e131d, 0x0006131d, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000f6845, 0x000e131d, 0x0006131d, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x000f6845, 0x000b3bbd, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000f6845, 0x000b3bbd, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000f6845, 0x000e65e0, 0x000665e0, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000f6845, 0x000e65e0, 0x000665e0, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x000a38e0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x000612f5, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x0005097b, 0x000a3d18, 0x00023d18, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000825eb, 0x000a3d18, 0x00023d18, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000c4bd5, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000e5ecb, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000c4bd5, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000e5ecb, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000f6845, 0x000e65e0, 0x000665e0, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000f6845, 0x000e65e0, 0x000665e0, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000f6845, 0x000c9cfb, 0x000484d5, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000f6845, 0x000c9cfb, 0x000484d5, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00138e30, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00138e30, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00138e30, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00138e30, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00138e30, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x00138e30, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000f6845, 0x000a3d18, 0x00023d18, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000f6845, 0x000a3d18, 0x00023d18, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000b425b, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000b8e2d, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x000aaaa0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000b8e2d, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000b8e2d, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x000aaaa0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x0009c713, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x000c71bb, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000c71bb, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x000638dd, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4a, 0x0007fff8, 0x000b05b0, 0x0002aaa8, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000c71bb, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x000aaaa0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x000f1c63, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000b8e2d, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000c71bb, 0x000b05b0, 0x0002aaa8, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x0009c713, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x000c71bb, 0x000b05b0, 0x0002aaa8, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000b8e2d, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x0008e385, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000aaaa0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x000b8e2d, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000b8e2d, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x000ffff0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x000b8e2d, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x000b8e2d, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x000aaaa0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x002425db, 0x000d1af8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x002c71b0, 0x000d1af8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x002425db, 0x000d1af8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x002c71b0, 0x000e65e0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000b425b, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x000cd093, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000e5ecb, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x000b425b, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x000f6845, 0x00081080, 0x00001080, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x000d5550, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00092f65, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000d5550, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x000f6845, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000f6845, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x000f6845, 0x000a3d18, 0x00023d18, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x000f6845, 0x000a3d18, 0x00023d18, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x0005097b, 0x000a3d18, 0x00023d18, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x000825eb, 0x000a3d18, 0x00023d18, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x000f6845, 0x000a3d18, 0x00023d18, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x000f6845, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x000f6845, 0x00086df8, 0x00006df8, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x000f6845, 0x000a3d18, 0x00023d18, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x00138e30, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00138e30, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x000f6845, 0x000a3d18, 0x00023d18, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000d5550, 0x0006e38d, 0x00000000, 0x0000d098, 0, 0, 0, 0 }, { 0x7c, 0x0008e385, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x000b0978, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000b0978, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x0008e38d, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void msbm6_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/TFM.cc0000644000175000017500000000670610661271102016170 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "TFM.hh" scaled TFM::scaledOfFIX(int v) { return scaled(v >> (UNITY_SHIFT - scaled::getPrecision()), true); } TFM::TFM(const String& _name, const Font* _font, const Dimension* _dimension, const Character* _character) : name(_name), font(_font), dimension(_dimension), character(_character) { assert(font); assert(dimension); assert(character); assert(UNITY_SHIFT >= scaled::getPrecision()); assert(sizeof(int) >= 4); } TFM::~TFM() { } scaled TFM::getDesignSize() const { return scaledOfFIX(font->designSize); } String TFM::getDimensionName(unsigned index) const { assert(index >= 1 && index <= font->nDimensions); assert(dimension[index - 1].index == index); return dimension[index - 1].name; #if 0 for (int i = 0; i < font->nDimensions; i++) if (dimension[i].index == index) return dimension[i].name; return ""; #endif } scaled TFM::getDimension(unsigned index) const { assert(index >= 1 && index <= font->nDimensions); assert(dimension[index - 1].index == index); return scaledOfFIX(dimension[index - 1].value); #if 0 for (unsigned i = 0; i < font->nDimensions; i++) if (dimension[i].index == index) return scaledOfFIX(dimension[i].value); return scaled(); #endif } scaled TFM::getDimension(const String& name) const { for (unsigned i = 0; i < font->nDimensions; i++) if (name == dimension[i].name) return scaledOfFIX(dimension[i].value); return scaled(); } const TFM::Character& TFM::getCharacter(UChar8 index) const { assert(index < font->nCharacters); assert(character[index].index == index); return character[index]; } BoundingBox TFM::getGlyphBoundingBox(UChar8 index) const { const Character& c = getCharacter(index); return BoundingBox(scaledOfFIX(c.width), scaledOfFIX(c.height), scaledOfFIX(c.depth)); } scaled TFM::getGlyphItalicCorrection(UChar8 index) const { return scaledOfFIX(getCharacter(index).italicCorrection); } bool TFM::getGlyphKerning(UChar8 index1, UChar8 index2, scaled& result) const { const Character& c = getCharacter(index1); for (unsigned i = 0; i < c.nKernings; i++) if (c.kerning[i].index == index2) { result = scaledOfFIX(c.kerning[i].value); return true; } return false; } bool TFM::getGlyphLigature(UChar8 index1, UChar8 index2, UChar8& result, UChar8& mode) const { const Character& c = getCharacter(index1); for (unsigned i = 0; i < c.nLigatures; i++) if (c.ligature[i].index == index2) { result = c.ligature[i].result; mode = c.ligature[i].mode; return true; } return false; } float TFM::getScale(const scaled& size) const { return size.toFloat(); } gtkmathview-0.8.0/src/backend/common/tfm/cmti10.cc0000644000175000017500000004140610704611255016640 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMTI", 0xea, "TeX text", 0x00a00000, 0xfd00273a, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x0005b973 }, { 0x03, "space_stretch", 0x0002740d }, { 0x04, "space_shrink", 0x0001a2b3 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x00105b00 }, { 0x07, "extra_space", 0x0001a2b3 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x0001ab3d }, { 0x27, 0x0001ab3d }, { 0x29, 0x0001ab3d }, { 0x3f, 0x0001ab3d }, { 0x5d, 0x0001ab3d } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffadf03 }, { 0x6c, 0xfffbe940 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001a2b3 }, { 0x3f, 0x0001a2b3 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff9753 }, { 0x47, 0xffff9753 }, { 0x4f, 0xffff9753 }, { 0x51, 0xffff9753 }, { 0x54, 0xfffec5fa }, { 0x55, 0xffff9753 }, { 0x56, 0xfffe5d4d }, { 0x57, 0xfffe5d4d }, { 0x59, 0xfffec5fa }, { 0x61, 0xffff2ea6 }, { 0x62, 0xffff9753 }, { 0x63, 0xffff2ea6 }, { 0x64, 0xffff2ea6 }, { 0x65, 0xffff2ea6 }, { 0x67, 0xffff2ea6 }, { 0x68, 0xffff9753 }, { 0x69, 0xffff9753 }, { 0x6b, 0xffff9753 }, { 0x6c, 0xffff9753 }, { 0x6d, 0xffff9753 }, { 0x6e, 0xffff9753 }, { 0x6f, 0xffff2ea6 }, { 0x71, 0xffff2ea6 }, { 0x72, 0xffff9753 }, { 0x74, 0xffff9753 }, { 0x75, 0xffff9753 }, { 0x76, 0xffff9753 }, { 0x77, 0xffff9753 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff9753 }, { 0x56, 0xffff9753 }, { 0x57, 0xffff9753 }, { 0x58, 0xffff9753 }, { 0x59, 0xffff9753 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffe5d4d }, { 0x43, 0xffff9753 }, { 0x47, 0xffff9753 }, { 0x4f, 0xffff9753 }, { 0x51, 0xffff9753 }, { 0x61, 0xfffec5fa }, { 0x65, 0xfffec5fa }, { 0x6f, 0xfffec5fa }, { 0x72, 0xfffec5fa }, { 0x75, 0xfffec5fa } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff9753 }, { 0x47, 0xffff9753 }, { 0x4f, 0xffff9753 }, { 0x51, 0xffff9753 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffec5fa }, { 0x56, 0xfffe5d4d }, { 0x57, 0xfffe5d4d }, { 0x59, 0xfffec5fa }, { 0x61, 0xffff2ea6 }, { 0x63, 0xffff2ea6 }, { 0x64, 0xffff2ea6 }, { 0x65, 0xffff2ea6 }, { 0x67, 0xffff2ea6 }, { 0x6f, 0xffff2ea6 }, { 0x71, 0xffff2ea6 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff9753 }, { 0x56, 0xffff9753 }, { 0x57, 0xffff9753 }, { 0x58, 0xffff9753 }, { 0x59, 0xffff9753 } }; static TFM::Kerning C_50_Kerning[] = { { 0x41, 0xfffec5fa } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff9753 }, { 0x47, 0xffff9753 }, { 0x4f, 0xffff9753 }, { 0x51, 0xffff9753 }, { 0x54, 0xfffec5fa }, { 0x55, 0xffff9753 }, { 0x56, 0xfffe5d4d }, { 0x57, 0xfffe5d4d }, { 0x59, 0xfffec5fa }, { 0x61, 0xffff2ea6 }, { 0x62, 0xffff9753 }, { 0x63, 0xffff2ea6 }, { 0x64, 0xffff2ea6 }, { 0x65, 0xffff2ea6 }, { 0x67, 0xffff2ea6 }, { 0x68, 0xffff9753 }, { 0x69, 0xffff9753 }, { 0x6b, 0xffff9753 }, { 0x6c, 0xffff9753 }, { 0x6d, 0xffff9753 }, { 0x6e, 0xffff9753 }, { 0x6f, 0xffff2ea6 }, { 0x71, 0xffff2ea6 }, { 0x72, 0xffff9753 }, { 0x74, 0xffff9753 }, { 0x75, 0xffff9753 }, { 0x76, 0xffff9753 }, { 0x77, 0xffff9753 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffec5fa }, { 0x61, 0xfffec5fa }, { 0x65, 0xfffec5fa }, { 0x6f, 0xfffec5fa }, { 0x72, 0xfffec5fa }, { 0x75, 0xfffec5fa }, { 0x79, 0xfffec5fa } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffe5d4d }, { 0x43, 0xffff9753 }, { 0x47, 0xffff9753 }, { 0x4f, 0xffff9753 }, { 0x51, 0xffff9753 }, { 0x61, 0xfffec5fa }, { 0x65, 0xfffec5fa }, { 0x6f, 0xfffec5fa }, { 0x72, 0xfffec5fa }, { 0x75, 0xfffec5fa } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffec5fa } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff9753 }, { 0x47, 0xffff9753 }, { 0x4f, 0xffff9753 }, { 0x51, 0xffff9753 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffec5fa }, { 0x61, 0xfffec5fa }, { 0x65, 0xfffec5fa }, { 0x6f, 0xfffec5fa }, { 0x72, 0xfffec5fa }, { 0x75, 0xfffec5fa } }; static TFM::Kerning C_62_Kerning[] = { { 0x61, 0xffff2ea6 }, { 0x63, 0xffff2ea6 }, { 0x64, 0xffff2ea6 }, { 0x65, 0xffff2ea6 }, { 0x67, 0xffff2ea6 }, { 0x6f, 0xffff2ea6 }, { 0x71, 0xffff2ea6 } }; static TFM::Kerning C_63_Kerning[] = { { 0x61, 0xffff2ea6 }, { 0x63, 0xffff2ea6 }, { 0x64, 0xffff2ea6 }, { 0x65, 0xffff2ea6 }, { 0x67, 0xffff2ea6 }, { 0x6f, 0xffff2ea6 }, { 0x71, 0xffff2ea6 } }; static TFM::Kerning C_64_Kerning[] = { { 0x6c, 0x0000d15a } }; static TFM::Kerning C_65_Kerning[] = { { 0x61, 0xffff2ea6 }, { 0x63, 0xffff2ea6 }, { 0x64, 0xffff2ea6 }, { 0x65, 0xffff2ea6 }, { 0x67, 0xffff2ea6 }, { 0x6f, 0xffff2ea6 }, { 0x71, 0xffff2ea6 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x0001ab3d }, { 0x27, 0x0001ab3d }, { 0x29, 0x0001ab3d }, { 0x3f, 0x0001ab3d }, { 0x5d, 0x0001ab3d } }; static TFM::Kerning C_6c_Kerning[] = { { 0x6c, 0x0000d15a } }; static TFM::Kerning C_6e_Kerning[] = { { 0x27, 0xfffe5d4d } }; static TFM::Kerning C_6f_Kerning[] = { { 0x61, 0xffff2ea6 }, { 0x63, 0xffff2ea6 }, { 0x64, 0xffff2ea6 }, { 0x65, 0xffff2ea6 }, { 0x67, 0xffff2ea6 }, { 0x6f, 0xffff2ea6 }, { 0x71, 0xffff2ea6 } }; static TFM::Kerning C_70_Kerning[] = { { 0x61, 0xffff2ea6 }, { 0x63, 0xffff2ea6 }, { 0x64, 0xffff2ea6 }, { 0x65, 0xffff2ea6 }, { 0x67, 0xffff2ea6 }, { 0x6f, 0xffff2ea6 }, { 0x71, 0xffff2ea6 } }; static TFM::Kerning C_72_Kerning[] = { { 0x61, 0xffff2ea6 }, { 0x63, 0xffff2ea6 }, { 0x64, 0xffff2ea6 }, { 0x65, 0xffff2ea6 }, { 0x67, 0xffff2ea6 }, { 0x6f, 0xffff2ea6 }, { 0x71, 0xffff2ea6 } }; static TFM::Kerning C_77_Kerning[] = { { 0x6c, 0x0000d15a } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000a0916, 0x000aeeee, 0x00000000, 0x00011038, 0, 0, 0, 0 }, { 0x01, 0x000d159a, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000c4440, 0x000aeeee, 0x00000000, 0x0000e78a, 0, 0, 0, 0 }, { 0x03, 0x000b1353, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000aa18d, 0x000aeeee, 0x00000000, 0x000073c5, 0, 0, 0, 0 }, { 0x05, 0x000be4ad, 0x000aeeee, 0x00000000, 0x00009e70, 0, 0, 0, 0 }, { 0x06, 0x000b72e6, 0x000aeeee, 0x00000000, 0x0000e78a, 0, 0, 0, 0 }, { 0x07, 0x000c4440, 0x000aeeee, 0x00000000, 0x000073c5, 0, 0, 0, 0 }, { 0x08, 0x000b72e6, 0x000aeeee, 0x00000000, 0x0000f532, 0, 0, 0, 0 }, { 0x09, 0x000c4440, 0x000aeeee, 0x00000000, 0x000073c5, 0, 0, 0, 0 }, { 0x0a, 0x000b72e6, 0x000aeeee, 0x00000000, 0x00011038, 0, 0, 0, 0 }, { 0x0b, 0x0009d033, 0x000b1c72, 0x00031c72, 0x00010f02, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x0008feda, 0x000b1c72, 0x00031c72, 0x00011d22, 0, 0, 0, 0 }, { 0x0d, 0x00096786, 0x000b1c72, 0x00031c72, 0x00011d22, 0, 0, 0, 0 }, { 0x0e, 0x000e1b4a, 0x000b1c72, 0x00031c72, 0x00011d22, 0, 0, 0, 0 }, { 0x0f, 0x000e4fa0, 0x000b1c72, 0x00031c72, 0x00011d22, 0, 0, 0, 0 }, { 0x10, 0x0004e81a, 0x0006e38e, 0x00000000, 0x00013a38, 0, 0, 0, 0 }, { 0x11, 0x000550c6, 0x0006e38e, 0x00031c72, 0x00009908, 0, 0, 0, 0 }, { 0x12, 0x00082d80, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00082d80, 0x000b1c72, 0x00000000, 0x0001028e, 0, 0, 0, 0 }, { 0x14, 0x00082d80, 0x000a0e3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00082d80, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00082d80, 0x0008fc95, 0x00000000, 0x00011d22, 0, 0, 0, 0 }, { 0x17, 0x000d4cf8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00075c26, 0x00000000, 0x0002b8e3, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x0008962d, 0x000b1c72, 0x00031c72, 0x0001357b, 0, 0, 0, 0 }, { 0x1a, 0x000b72e6, 0x0006e38e, 0x00000000, 0x000133c5, 0, 0, 0, 0 }, { 0x1b, 0x000b72e6, 0x0006e38e, 0x00000000, 0x000133c5, 0, 0, 0, 0 }, { 0x1c, 0x00082d80, 0x000871c8, 0x00018e3a, 0x00009908, 0, 0, 0, 0 }, { 0x1d, 0x000e1fd6, 0x000aeeee, 0x00000000, 0x0000e78a, 0, 0, 0, 0 }, { 0x1e, 0x000fc28a, 0x000aeeee, 0x00000000, 0x0000e78a, 0, 0, 0, 0 }, { 0x1f, 0x000c4440, 0x000bb60b, 0x0000c71d, 0x0000e78a, 0, 0, 0, 0 }, { 0x20, 0x000416c0, 0x0006e38e, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x0004e81a, 0x000b1c72, 0x00000000, 0x00010f02, 0, 0, 1, C_21_Ligature }, { 0x22, 0x00083b28, 0x000b1c72, 0x00000000, 0x00011d22, 0, 0, 0, 0 }, { 0x23, 0x000d159a, 0x000b1c72, 0x00031c70, 0x00010f02, 0, 0, 0, 0 }, { 0x24, 0x000c4e35, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000d159a, 0x000c0000, 0x0000e38e, 0x000133c5, 0, 0, 0, 0 }, { 0x26, 0x000c4440, 0x000b1c72, 0x00000000, 0x0001028e, 0, 0, 0, 0 }, { 0x27, 0x0004e81a, 0x000b1c72, 0x00000000, 0x00010f02, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x00068acd, 0x000c0000, 0x00040000, 0x00009908, 0, 0, 0, 0 }, { 0x29, 0x00068acd, 0x000c0000, 0x00040000, 0x00009753, 0, 0, 0, 0 }, { 0x2a, 0x00082d80, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000c4440, 0x0008fc95, 0x0000e81a, 0x00009753, 0, 0, 0, 0 }, { 0x2c, 0x0004e81a, 0x0001b05b, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0005b973, 0x0006e38e, 0x00000000, 0x000073c5, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x0004e81a, 0x0001b05b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00082d80, 0x000c0000, 0x00040000, 0x00009908, 0, 0, 0, 0 }, { 0x30, 0x00082d80, 0x000a4fa5, 0x00000000, 0x00011d22, 0, 0, 0, 0 }, { 0x31, 0x00082d80, 0x000a4fa5, 0x00000000, 0x00011d22, 0, 0, 0, 0 }, { 0x32, 0x00082d80, 0x000a4fa5, 0x00000000, 0x00011d22, 0, 0, 0, 0 }, { 0x33, 0x00082d80, 0x000a4fa5, 0x00000000, 0x00011d22, 0, 0, 0, 0 }, { 0x34, 0x00082d80, 0x000a4fa5, 0x00031c72, 0x00011d22, 0, 0, 0, 0 }, { 0x35, 0x00082d80, 0x000a4fa5, 0x00000000, 0x00011d22, 0, 0, 0, 0 }, { 0x36, 0x00082d80, 0x000a4fa5, 0x00000000, 0x00011d22, 0, 0, 0, 0 }, { 0x37, 0x00082d80, 0x000a4fa5, 0x00031c72, 0x00011d22, 0, 0, 0, 0 }, { 0x38, 0x00082d80, 0x000a4fa5, 0x00000000, 0x00011d22, 0, 0, 0, 0 }, { 0x39, 0x00082d80, 0x000a4fa5, 0x00000000, 0x00011d22, 0, 0, 0, 0 }, { 0x3a, 0x0004e81a, 0x0006e38e, 0x00000000, 0x0000ee5e, 0, 0, 0, 0 }, { 0x3b, 0x0004e81a, 0x0006e38e, 0x00031c72, 0x0000ee5e, 0, 0, 0, 0 }, { 0x3c, 0x0004e81a, 0x00080000, 0x00031c72, 0x0001357b, 0, 0, 0, 0 }, { 0x3d, 0x000c4440, 0x0005deb8, 0xfffddeb8, 0x00010f02, 0, 0, 0, 0 }, { 0x3e, 0x00082d80, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00082d80, 0x000b1c72, 0x00000000, 0x0000f532, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000c4440, 0x000b1c72, 0x00000000, 0x0000f532, 0, 0, 0, 0 }, { 0x41, 0x000be4ad, 0x000aeeee, 0x00000000, 0x00000000, 28, C_41_Kerning, 0, 0 }, { 0x42, 0x000b431d, 0x000aeeee, 0x00000000, 0x00011038, 0, 0, 0, 0 }, { 0x43, 0x000b72e6, 0x000aeeee, 0x00000000, 0x00015036, 0, 0, 0, 0 }, { 0x44, 0x000c1476, 0x000aeeee, 0x00000000, 0x0000e78a, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000ada70, 0x000aeeee, 0x00000000, 0x0000e78a, 0, 0, 0, 0 }, { 0x46, 0x000a71c3, 0x000aeeee, 0x00000000, 0x00011038, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000c60b2, 0x000aeeee, 0x00000000, 0x000073c5, 0, 0, 0, 0 }, { 0x48, 0x000be4ad, 0x000aeeee, 0x00000000, 0x00009e70, 0, 0, 0, 0 }, { 0x49, 0x00062b3a, 0x000aeeee, 0x00000000, 0x00009753, 0, 0, 0, 0 }, { 0x4a, 0x00086663, 0x000aeeee, 0x00000000, 0x0001357b, 0, 0, 0, 0 }, { 0x4b, 0x000c4d5a, 0x000aeeee, 0x00000000, 0x00015036, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000a0916, 0x000aeeee, 0x00000000, 0x00000000, 11, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000e58ba, 0x000aeeee, 0x00000000, 0x00009e70, 0, 0, 0, 0 }, { 0x4e, 0x000be4ad, 0x000aeeee, 0x00000000, 0x00009e70, 0, 0, 0, 0 }, { 0x4f, 0x000c4440, 0x000aeeee, 0x00000000, 0x0000e78a, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000ada70, 0x000aeeee, 0x00000000, 0x00011038, 1, C_50_Kerning, 0, 0 }, { 0x51, 0x000c4440, 0x000aeeee, 0x00031c72, 0x0000e78a, 0, 0, 0, 0 }, { 0x52, 0x000babca, 0x000aeeee, 0x00000000, 0x00009e70, 28, C_52_Kerning, 0, 0 }, { 0x53, 0x0008feda, 0x000aeeee, 0x00000000, 0x00009e70, 0, 0, 0, 0 }, { 0x54, 0x000b72e6, 0x000aeeee, 0x00000000, 0x00011038, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000be4ad, 0x000aeeee, 0x00000000, 0x00009e70, 0, 0, 0, 0 }, { 0x56, 0x000be4ad, 0x000aeeee, 0x00000000, 0x0000ee5e, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x000ffb6d, 0x000aeeee, 0x00000000, 0x0000ee5e, 1, C_57_Kerning, 0, 0 }, { 0x58, 0x000be4ad, 0x000aeeee, 0x00000000, 0x00009753, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000be4ad, 0x000aeeee, 0x00000000, 0x0001028e, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x0009d033, 0x000aeeee, 0x00000000, 0x00015036, 0, 0, 0, 0 }, { 0x5b, 0x0004e81a, 0x000c0000, 0x00040000, 0x0000f532, 0, 0, 0, 0 }, { 0x5c, 0x00083b28, 0x000b1c72, 0x00000000, 0x0000e78a, 0, 0, 0, 0 }, { 0x5d, 0x0004e81a, 0x000c0000, 0x00040000, 0x00013a38, 0, 0, 0, 0 }, { 0x5e, 0x00082d80, 0x000b1c72, 0x00000000, 0x00011038, 0, 0, 0, 0 }, { 0x5f, 0x0004e81a, 0x000aaf8d, 0x00000000, 0x00009908, 0, 0, 0, 0 }, { 0x60, 0x0004e81a, 0x000b1c72, 0x00000000, 0x00010f02, 0, 0, 1, C_60_Ligature }, { 0x61, 0x00082d80, 0x0006e38e, 0x00000000, 0x00013a38, 0, 0, 0, 0 }, { 0x62, 0x00075c26, 0x000b1c72, 0x00000000, 0x0001028e, 7, C_62_Kerning, 0, 0 }, { 0x63, 0x00075c26, 0x0006e38e, 0x00000000, 0x0000e78a, 7, C_63_Kerning, 0, 0 }, { 0x64, 0x00082d80, 0x000b1c72, 0x00000000, 0x00011d22, 1, C_64_Kerning, 0, 0 }, { 0x65, 0x00075c26, 0x0006e38e, 0x00000000, 0x000133c5, 7, C_65_Kerning, 0, 0 }, { 0x66, 0x0004e81a, 0x000b1c72, 0x00031c72, 0x00010f02, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x00075c26, 0x0006e38e, 0x00031c72, 0x00009753, 0, 0, 0, 0 }, { 0x68, 0x00082d80, 0x000b1c72, 0x00000000, 0x00013a38, 0, 0, 0, 0 }, { 0x69, 0x0004e81a, 0x000a7c5a, 0x00000000, 0x00010f02, 0, 0, 0, 0 }, { 0x6a, 0x0004e81a, 0x000a7c5a, 0x00031c72, 0x00013a38, 0, 0, 0, 0 }, { 0x6b, 0x00075c26, 0x000b1c72, 0x00000000, 0x00015036, 0, 0, 0, 0 }, { 0x6c, 0x000416c0, 0x000b1c72, 0x00000000, 0x00011d22, 1, C_6c_Kerning, 0, 0 }, { 0x6d, 0x000d159a, 0x0006e38e, 0x00000000, 0x00013a38, 0, 0, 0, 0 }, { 0x6e, 0x0008feda, 0x0006e38e, 0x00000000, 0x00013a38, 1, C_6e_Kerning, 0, 0 }, { 0x6f, 0x00082d80, 0x0006e38e, 0x00000000, 0x0001028e, 7, C_6f_Kerning, 0, 0 }, { 0x70, 0x00082d80, 0x0006e38e, 0x00031c72, 0x0001028e, 7, C_70_Kerning, 0, 0 }, { 0x71, 0x00075c26, 0x0006e38e, 0x00031c72, 0x00009753, 0, 0, 0, 0 }, { 0x72, 0x0006bf23, 0x0006e38e, 0x00000000, 0x00015036, 7, C_72_Kerning, 0, 0 }, { 0x73, 0x00068acd, 0x0006e38e, 0x00000000, 0x00015036, 0, 0, 0, 0 }, { 0x74, 0x000550c6, 0x0009d75e, 0x00000000, 0x0000ee5e, 0, 0, 0, 0 }, { 0x75, 0x0008962d, 0x0006e38e, 0x00000000, 0x00013a38, 0, 0, 0, 0 }, { 0x76, 0x00075c26, 0x0006e38e, 0x00000000, 0x00015036, 0, 0, 0, 0 }, { 0x77, 0x000aa18d, 0x0006e38e, 0x00000000, 0x00015036, 1, C_77_Kerning, 0, 0 }, { 0x78, 0x00076c15, 0x0006e38e, 0x00000000, 0x0000ee5e, 0, 0, 0, 0 }, { 0x79, 0x0007c4d3, 0x0006e38e, 0x00031c72, 0x00009753, 0, 0, 0, 0 }, { 0x7a, 0x00068acd, 0x0006e38e, 0x00000000, 0x0001028e, 0, 0, 0, 0 }, { 0x7b, 0x00082d80, 0x0006e38e, 0x00000000, 0x00009e70, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x00105b00, 0x0006e38e, 0x00000000, 0x00009e70, 0, 0, 0, 0 }, { 0x7d, 0x00082d80, 0x000b1c72, 0x00000000, 0x0000f532, 0, 0, 0, 0 }, { 0x7e, 0x00082d80, 0x000aaf8d, 0x00000000, 0x00009753, 0, 0, 0, 0 }, { 0x7f, 0x00082d80, 0x000aaf8d, 0x00000000, 0x000133c5, 0, 0, 0, 0 } }; void cmti10_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/msam8.cc0000644000175000017500000002567710704611261016601 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "MSAM", 0xee, "TeX math symbols", 0x00800000, 0xaf5a44b3, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x00110010 }, { 0x07, "extra_space", 0x00000000 }, { 0x08, "num1", 0x000b242c }, { 0x09, "num2", 0x00068a94 }, { 0x0a, "num3", 0x000751b0 }, { 0x0b, "denom1", 0x000bfc5a }, { 0x0c, "denom2", 0x00064650 }, { 0x0d, "sup1", 0x0006a58c }, { 0x0e, "sup2", 0x0005a58c }, { 0x0f, "sup3", 0x00048e38 }, { 0x10, "sub1", 0x00020000 }, { 0x11, "sub2", 0x00040000 }, { 0x12, "supdrop", 0x00065556 }, { 0x13, "subdrop", 0x00010000 }, { 0x14, "delim1", 0x0017cccc }, { 0x15, "delim2", 0x00123334 }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Character character[] = { { 0x00, 0x000d38f0, 0x000b71d0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000d38f0, 0x000b71d0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000d38f0, 0x000b71d0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000d38f0, 0x000b71d0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000d38f0, 0x000b71d0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x0004b8e8, 0x0008f310, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000b5560, 0x000b05b0, 0x0001e390, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000b5560, 0x000b05b0, 0x0001e390, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000d38f0, 0x00099a74, 0x0001b99c, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000d38f0, 0x00099a74, 0x0001b99c, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x00110010, 0x00086d5e, 0x00006d5e, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x00110010, 0x00086d5e, 0x00006d5e, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x000d38f0, 0x000b71d0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000c4728, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000f1c80, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000a6398, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00110010, 0x00086d5e, 0x00006d5e, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00110010, 0x00086d5e, 0x00006d5e, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00110010, 0x000b05b0, 0x000310ee, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00110010, 0x000b05b0, 0x000310ee, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000e2ab8, 0x000b05b0, 0x000310ee, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000e2ab8, 0x000b05b0, 0x000310ee, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x0007155c, 0x000b05b0, 0x000310ee, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x0007155c, 0x000b05b0, 0x000310ee, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x0007155c, 0x000b05b0, 0x000310ee, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x0007155c, 0x000b05b0, 0x000310ee, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x0012e3a0, 0x00086d5e, 0x00006d5e, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x0012e3a0, 0x00086d5e, 0x00006d5e, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00110010, 0x000b05b0, 0x000310ee, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x00110010, 0x000b05b0, 0x000310ee, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00088008, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x00088008, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00110010, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x00179c88, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x00110010, 0x0008f310, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x00110010, 0x0008f310, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000d38f0, 0x000c2556, 0x0004498e, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000d38f0, 0x000c5cf4, 0x0004498e, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000d38f0, 0x000c5cf4, 0x0004498e, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000d38f0, 0x000cd30c, 0x0004d30c, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x0012e3a0, 0x0008f310, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000b5560, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000b5560, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000d38f0, 0x00099a74, 0x0001b99c, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x000d38f0, 0x000f2e1a, 0x0001b99c, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x000d38f0, 0x000c2556, 0x0004498e, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x000d38f0, 0x000c2556, 0x0004498e, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000d38f0, 0x000cd30c, 0x0004d30c, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000d38f0, 0x000a9b06, 0x00029b06, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000d38f0, 0x000a9b06, 0x00029b06, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000d38f0, 0x000a9b06, 0x00029b06, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000d38f0, 0x000a9b06, 0x00029b06, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000d38f0, 0x000a9b06, 0x00029b06, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000d38f0, 0x000cd30c, 0x0004d30c, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000d38f0, 0x000a9b06, 0x00029b06, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000d38f0, 0x000b71d0, 0x00038612, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00049c72, 0x0008f310, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00088008, 0x0007b072, 0xffffb072, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000d38f0, 0x00099a74, 0x0001b99c, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x000d38f0, 0x00099a74, 0x0001b99c, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000d38f0, 0x000a9b06, 0x00029b06, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000d38f0, 0x000cd30c, 0x0004d30c, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000d38f0, 0x000a9b06, 0x00029b06, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000d38f0, 0x000b71d0, 0x00038612, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000d38f0, 0x0008f310, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000d38f0, 0x0008f310, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x000d38f0, 0x0008f310, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000d38f0, 0x0008f310, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000d38f0, 0x000a9b06, 0x00029b06, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x000d38f0, 0x000a9b06, 0x00029b06, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000f2aac, 0x000b05b0, 0x000310ee, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x00088008, 0x000c2556, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000bb8e8, 0x0008f310, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x000d38f0, 0x0008f310, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x4a, 0x000d38f0, 0x0008f310, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x00088008, 0x0007b072, 0xffffb072, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x00088008, 0x0007b072, 0xffffb072, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x000bb8e8, 0x0008f310, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000bb8e8, 0x0008f310, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000bb8e8, 0x0008f310, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x000d38f0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x000d38f0, 0x000f2e1a, 0x000706d6, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000d38f0, 0x000f2e1a, 0x000706d6, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x000d38f0, 0x0010b6e8, 0x0008b6e8, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000d38f0, 0x0010b6e8, 0x0008b6e8, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x000cbbc8, 0x000b05b0, 0x00000000, 0x00006cce, 0, 0, 0, 0 }, { 0x56, 0x00110010, 0x000a9b06, 0x00029b06, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x00110010, 0x000a9b06, 0x00029b06, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x000e2ab8, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x000a6398, 0x000b05b0, 0x000310ee, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x000a6398, 0x000b05b0, 0x000310ee, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x000a6398, 0x000c2556, 0x000310ee, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000c4728, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000c4728, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000c4728, 0x00086d5e, 0x00006d5e, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000d38f0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000d38f0, 0x000b05b0, 0x000310ee, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x000d38f0, 0x000b05b0, 0x000310ee, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x000d38f0, 0x0008f310, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x000d38f0, 0x0008f310, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x000b5560, 0x0008f310, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x000b5560, 0x0008f310, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000d13ec, 0x0008f310, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x000d13ec, 0x0008f310, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x000d38f0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x000d38f0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x000d38f0, 0x000cd30c, 0x0004d30c, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000d38f0, 0x000cd30c, 0x0004d30c, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x000d38f0, 0x00099a74, 0x00016c60, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000d38f0, 0x00099a74, 0x00016c60, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x0016aac0, 0x0008f310, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x0016aac0, 0x0008f310, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x00088008, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x00088008, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x000f9c7c, 0x000b05b0, 0x00029b06, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x000ee398, 0x000b05b0, 0x00029b06, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x000b5560, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x000d38f0, 0x000b71d0, 0x0001b99c, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x000d38f0, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000d38f0, 0x0007b072, 0xffffb072, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x00088008, 0x0006c002, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00088008, 0x0006c002, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x000e2ab8, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00088008, 0x000d3338, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x000971d0, 0x0006c002, 0x000310ee, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x000d38f0, 0x00099a74, 0x0001b99c, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000d38f0, 0x00099a74, 0x0001b99c, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000d38f0, 0x00099a74, 0x0001b99c, 0x00000000, 0, 0, 0, 0 } }; void msam8_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmss10.cc0000644000175000017500000003761510704611255016660 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMSS", 0xea, "TeX text", 0x00a00000, 0x6d23bd52, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00055556 }, { 0x03, "space_stretch", 0x0002aaab }, { 0x04, "space_shrink", 0x0001c71d }, { 0x05, "x_height", 0x00071c72 }, { 0x06, "quad", 0x00100003 }, { 0x07, "extra_space", 0x0001c71d } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x00011c72 }, { 0x27, 0x00011c72 }, { 0x29, 0x00011c72 }, { 0x3f, 0x00011c72 }, { 0x5d, 0x00011c72 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffbdddb }, { 0x6c, 0xfffc2d82 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001c71d }, { 0x3f, 0x0001c71d } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x54, 0xfffeaaaa }, { 0x55, 0xffff8e38 }, { 0x56, 0xfffe38e3 }, { 0x57, 0xfffe38e3 }, { 0x59, 0xfffeaaaa }, { 0x74, 0xffff8e38 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff8e38 }, { 0x56, 0xffff8e38 }, { 0x57, 0xffff8e38 }, { 0x58, 0xffff8e38 }, { 0x59, 0xffff8e38 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffeaaaa }, { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x61, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 }, { 0x72, 0xffff8e38 }, { 0x75, 0xffff8e38 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x000071c8 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffeaaaa }, { 0x56, 0xfffe38e3 }, { 0x57, 0xfffe38e3 }, { 0x59, 0xfffeaaaa } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff8e38 }, { 0x56, 0xffff8e38 }, { 0x57, 0xffff8e38 }, { 0x58, 0xffff8e38 }, { 0x59, 0xffff8e38 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffeaaaa }, { 0x2e, 0xfffeaaaa }, { 0x41, 0xfffeaaaa }, { 0x61, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffeaaaa }, { 0x61, 0xfffeaaaa }, { 0x65, 0xfffeaaaa }, { 0x6f, 0xfffeaaaa }, { 0x72, 0xfffeaaaa }, { 0x75, 0xfffeaaaa }, { 0x79, 0xfffeaaaa } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffeaaaa }, { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x61, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 }, { 0x72, 0xffff8e38 }, { 0x75, 0xffff8e38 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffeaaaa }, { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x61, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 }, { 0x72, 0xffff8e38 }, { 0x75, 0xffff8e38 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffeaaaa }, { 0x61, 0xfffeaaaa }, { 0x65, 0xfffeaaaa }, { 0x6f, 0xfffeaaaa }, { 0x72, 0xfffeaaaa }, { 0x75, 0xfffeaaaa } }; static TFM::Kerning C_61_Kerning[] = { { 0x72, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x000071c8 }, { 0x64, 0x000071c8 }, { 0x65, 0x000071c8 }, { 0x6f, 0x000071c8 }, { 0x71, 0x000071c8 }, { 0x72, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x78, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x00011c72 }, { 0x27, 0x00011c72 }, { 0x29, 0x00011c72 }, { 0x3f, 0x00011c72 }, { 0x5d, 0x00011c72 } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x000071c8 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff8e38 }, { 0x63, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x000071c8 }, { 0x64, 0x000071c8 }, { 0x65, 0x000071c8 }, { 0x6f, 0x000071c8 }, { 0x71, 0x000071c8 }, { 0x72, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x78, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x000071c8 }, { 0x64, 0x000071c8 }, { 0x65, 0x000071c8 }, { 0x6f, 0x000071c8 }, { 0x71, 0x000071c8 }, { 0x72, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x78, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff8e38 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff8e38 }, { 0x63, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffeaaaa }, { 0x2e, 0xfffeaaaa }, { 0x61, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x0008aaad, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000d5558, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000c71ca, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x0009c720, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000aaaad, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000b555a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000b8e3b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000c71ca, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000b8e3b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000c71ca, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000b8e3b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x00095558, 0x000b1c72, 0x00000000, 0x00011c72, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x000893eb, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000893eb, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000d05b3, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000d05b3, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x0003d27e, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00044446, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x00080002, 0x000a1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00080002, 0x0009be00, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000aaaae, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00071c73, 0x00000000, 0x0002b8e3, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x0007b05e, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000b8e3b, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000c71ca, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00080002, 0x0008aaab, 0x00018e3a, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000dc720, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000f8e3d, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000c71ca, 0x000be38e, 0x0000c71d, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x0003d27e, 0x00071c72, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x00051c73, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000d5558, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00080002, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000d5558, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000c2225, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000471c8, 0x000b1c72, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x000638e5, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000638e5, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00080002, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000c71ca, 0x00095556, 0x00015556, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x000471c8, 0x00015555, 0x00020000, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00055556, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x000471c8, 0x00015555, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00080002, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00080002, 0x000a7d28, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00080002, 0x000a7d28, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00080002, 0x000a7d28, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00080002, 0x000a7d28, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00080002, 0x000a7d28, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00080002, 0x000a7d28, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00080002, 0x000a7d28, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00080002, 0x000a7d28, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00080002, 0x000a7d28, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00080002, 0x000a7d28, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000471c8, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x000471c8, 0x00071c72, 0x00020000, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00051c73, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000c71ca, 0x0005eb85, 0xfffdeb85, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00078e3b, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00078e3b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000aaaad, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000aaaae, 0x000b1c72, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000aaaae, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000a38e6, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000b8e3d, 0x000b1c72, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x00098e3b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x00091c75, 0x000b1c72, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000aaaad, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000b555a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x000471ca, 0x000b1c72, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x00078e3b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000b1c76, 0x000b1c72, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x0008aaad, 0x000b1c72, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000e0005, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000b555a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000bc71e, 0x000b1c72, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000a38e6, 0x000b1c72, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000bc71e, 0x000b1c72, 0x00020000, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000a5558, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x0008e390, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000ae390, 0x000b1c72, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000b0005, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000aaaae, 0x000b1c72, 0x00000000, 0x000038e3, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x000f1c76, 0x000b1c72, 0x00000000, 0x000038e3, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000aaaae, 0x000b1c72, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000aaaae, 0x000b1c72, 0x00000000, 0x00006666, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x0009c71e, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x00049f4b, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00049f4b, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000471c8, 0x000adeae, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000471c8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x0007b05d, 0x00071c72, 0x00000000, 0x00000000, 3, C_61_Kerning, 0, 0 }, { 0x62, 0x00084446, 0x000b1c72, 0x00000000, 0x00000000, 9, C_62_Kerning, 0, 0 }, { 0x63, 0x00071c73, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00084446, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00071c73, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x0004e390, 0x000b1c72, 0x00000000, 0x00011c72, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x00080002, 0x00071c72, 0x00031c72, 0x000038e3, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x00084446, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x0003d27e, 0x000adeae, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00044446, 0x000adeae, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x0007d280, 0x000b1c72, 0x00000000, 0x00000000, 4, C_6b_Kerning, 0, 0 }, { 0x6c, 0x0003d27e, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000cb60e, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x00084446, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x00080002, 0x00071c72, 0x00000000, 0x00000000, 9, C_6f_Kerning, 0, 0 }, { 0x70, 0x00084446, 0x00071c72, 0x00031c72, 0x00000000, 9, C_70_Kerning, 0, 0 }, { 0x71, 0x00084446, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x0005777a, 0x00071c72, 0x00000000, 0x000038e3, 0, 0, 0, 0 }, { 0x73, 0x00062223, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x0005c71d, 0x00092495, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x00084446, 0x00071c72, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x000760b8, 0x00071c72, 0x00000000, 0x000038e3, 0, 0, 0, 0 }, { 0x77, 0x000aeef2, 0x00071c72, 0x00000000, 0x000038e3, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x000760b8, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x000760b8, 0x00071c72, 0x00031c72, 0x000038e3, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x0006f4a0, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00080002, 0x00071c72, 0x00000000, 0x000071c8, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x00100003, 0x00071c72, 0x00000000, 0x000071c8, 0, 0, 0, 0 }, { 0x7d, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x00080002, 0x000ad34e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00080002, 0x000adeae, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmss10_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmsy6.cc0000644000175000017500000003162110704611260016576 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMSY", 0xf2, "TeX math symbols", 0x00600000, 0x71a1250b, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38d }, { 0x06, "quad", 0x001471c0 }, { 0x07, "extra_space", 0x00000000 }, { 0x08, "num1", 0x000d00d0 }, { 0x09, "num2", 0x000646fd }, { 0x0a, "num3", 0x0007c240 }, { 0x0b, "denom1", 0x000dd165 }, { 0x0c, "denom2", 0x0006dead }, { 0x0d, "sup1", 0x00080c28 }, { 0x0e, "sup2", 0x0006b6d3 }, { 0x0f, "sup3", 0x000497b5 }, { 0x10, "sub1", 0x0002aaab }, { 0x11, "sub2", 0x00055555 }, { 0x12, "supdrop", 0x000697b0 }, { 0x13, "subdrop", 0x00015555 }, { 0x14, "delim1", 0x001fbbbb }, { 0x15, "delim2", 0x0015999b }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Kerning C_41_Kerning[] = { { 0x30, 0x0003a12d } }; static TFM::Kerning C_42_Kerning[] = { { 0x30, 0x000297b3 } }; static TFM::Kerning C_43_Kerning[] = { { 0x30, 0x000297b3 } }; static TFM::Kerning C_44_Kerning[] = { { 0x30, 0x00018e38 } }; static TFM::Kerning C_45_Kerning[] = { { 0x30, 0x000212f5 } }; static TFM::Kerning C_46_Kerning[] = { { 0x30, 0x000212f5 } }; static TFM::Kerning C_47_Kerning[] = { { 0x30, 0x000212f5 } }; static TFM::Kerning C_48_Kerning[] = { { 0x30, 0x000212f5 } }; static TFM::Kerning C_49_Kerning[] = { { 0x30, 0x000084bd } }; static TFM::Kerning C_4a_Kerning[] = { { 0x30, 0x00031c70 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x30, 0x0001097b } }; static TFM::Kerning C_4c_Kerning[] = { { 0x30, 0x000297b3 } }; static TFM::Kerning C_4d_Kerning[] = { { 0x30, 0x000297b3 } }; static TFM::Kerning C_4e_Kerning[] = { { 0x30, 0x00018e38 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x30, 0x000212f5 } }; static TFM::Kerning C_50_Kerning[] = { { 0x30, 0x00018e38 } }; static TFM::Kerning C_51_Kerning[] = { { 0x30, 0x000212f5 } }; static TFM::Kerning C_52_Kerning[] = { { 0x30, 0x00018e38 } }; static TFM::Kerning C_53_Kerning[] = { { 0x30, 0x000297b3 } }; static TFM::Kerning C_54_Kerning[] = { { 0x30, 0x000084bd } }; static TFM::Kerning C_55_Kerning[] = { { 0x30, 0x00018e38 } }; static TFM::Kerning C_56_Kerning[] = { { 0x30, 0x000084bd } }; static TFM::Kerning C_57_Kerning[] = { { 0x30, 0x00018e38 } }; static TFM::Kerning C_58_Kerning[] = { { 0x30, 0x000297b3 } }; static TFM::Kerning C_59_Kerning[] = { { 0x30, 0x00018e38 } }; static TFM::Kerning C_5a_Kerning[] = { { 0x30, 0x000297b3 } }; static TFM::Character character[] = { { 0x00, 0x000f6845, 0x000a38e0, 0x000238e0, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000612f5, 0x0007a12d, 0xffffa12d, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000f6845, 0x000a38e0, 0x000238e0, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000a38e0, 0x000771c8, 0xffff71c8, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000f6845, 0x000a38e0, 0x000238e0, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000a38e0, 0x0007a12d, 0xffffa12d, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000f6845, 0x000a38e0, 0x000238e0, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000f6845, 0x000a38e0, 0x000238e0, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000f6845, 0x000a38e0, 0x000238e0, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000f6845, 0x000a38e0, 0x000238e0, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000f6845, 0x000a38e0, 0x000238e0, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000f6845, 0x000a38e0, 0x000238e0, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x000f6845, 0x000a38e0, 0x000238e0, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x00138e30, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000a38e0, 0x0007a12d, 0xffffa12d, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000a38e0, 0x0007a12d, 0xffffa12d, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x000f6845, 0x00081080, 0x00001080, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x000f6845, 0x00081080, 0x00001080, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000f6845, 0x000b3bbd, 0x00033bbd, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000f6845, 0x000b3bbd, 0x00033bbd, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000f6845, 0x000b3bbd, 0x00033bbd, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000f6845, 0x000b3bbd, 0x00033bbd, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000f6845, 0x000b3bbd, 0x00033bbd, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000f6845, 0x000b3bbd, 0x00033bbd, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x000f6845, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000f6845, 0x00086df8, 0x00006df8, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000f6845, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000f6845, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00138e30, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x00138e30, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000f6845, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000f6845, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00138e30, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x00138e30, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x000a38e0, 0x000b1c73, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000a38e0, 0x000b1c73, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00138e30, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x00138e30, 0x000b1c73, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x00138e30, 0x000b1c73, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000f6845, 0x00081080, 0x00001080, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x00138e30, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00138e30, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000c4bd5, 0x000b1c73, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000c4bd5, 0x000b1c73, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00138e30, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00138e30, 0x000b1c73, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x00138e30, 0x000b1c73, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000f6845, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x0005da13, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00138e30, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000d5550, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000d5550, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00117b3b, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00117b3b, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00000000, 0x000b1c73, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00000000, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000b425b, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000b425b, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000d5550, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x000a38e0, 0x000c0000, 0x0000e38d, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000e5ecb, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000e5ecb, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000f6845, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000f6845, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000c4bd5, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000fd6cd, 0x000aeef0, 0x00000000, 0x00000000, 1, C_41_Kerning, 0, 0 }, { 0x42, 0x000d0335, 0x000aeef0, 0x00000000, 0x00005705, 1, C_42_Kerning, 0, 0 }, { 0x43, 0x000adaa0, 0x000aeef0, 0x00000000, 0x0000b97b, 1, C_43_Kerning, 0, 0 }, { 0x44, 0x000f6110, 0x000aeef0, 0x00000000, 0x000084bd, 1, C_44_Kerning, 0, 0 }, { 0x45, 0x000abd9d, 0x000aeef0, 0x00000000, 0x00014e20, 1, C_45_Kerning, 0, 0 }, { 0x46, 0x000e13e0, 0x000aeef0, 0x00000000, 0x0001a03d, 1, C_46_Kerning, 0, 0 }, { 0x47, 0x000bf283, 0x000aeef0, 0x00018e3b, 0x0000e118, 1, C_47_Kerning, 0, 0 }, { 0x48, 0x0010f2f8, 0x000aeef0, 0x00000000, 0x00000000, 1, C_48_Kerning, 0, 0 }, { 0x49, 0x000b5963, 0x000aeef0, 0x00000000, 0x0000f42b, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000d8a68, 0x000aeef0, 0x00018e3b, 0x0002fe1d, 1, C_4a_Kerning, 0, 0 }, { 0x4b, 0x000f054d, 0x000aeef0, 0x00000000, 0x00000000, 1, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000dac2b, 0x000aeef0, 0x00000000, 0x00000000, 1, C_4c_Kerning, 0, 0 }, { 0x4d, 0x0016d5f0, 0x000aeef0, 0x00000000, 0x00000000, 1, C_4d_Kerning, 0, 0 }, { 0x4e, 0x00101735, 0x000aeef0, 0x00000000, 0x00026e8d, 1, C_4e_Kerning, 0, 0 }, { 0x4f, 0x000f913b, 0x000aeef0, 0x00000000, 0x000084bd, 1, C_4f_Kerning, 0, 0 }, { 0x50, 0x000e0e03, 0x000aeef0, 0x00000000, 0x00015a43, 1, C_50_Kerning, 0, 0 }, { 0x51, 0x0010221b, 0x000aeef0, 0x00018e3b, 0x00000000, 1, C_51_Kerning, 0, 0 }, { 0x52, 0x0010fb6b, 0x000aeef0, 0x00000000, 0x00000000, 1, C_52_Kerning, 0, 0 }, { 0x53, 0x000c3148, 0x000aeef0, 0x00000000, 0x0001206b, 1, C_53_Kerning, 0, 0 }, { 0x54, 0x000b6180, 0x000aeef0, 0x00000000, 0x000449f5, 1, C_54_Kerning, 0, 0 }, { 0x55, 0x000c6415, 0x000aeef0, 0x00000000, 0x0001a03d, 1, C_55_Kerning, 0, 0 }, { 0x56, 0x000c904b, 0x000aeef0, 0x00000000, 0x00015a43, 1, C_56_Kerning, 0, 0 }, { 0x57, 0x00139045, 0x000aeef0, 0x00000000, 0x00015a43, 1, C_57_Kerning, 0, 0 }, { 0x58, 0x000e2375, 0x000aeef0, 0x00000000, 0x000257c8, 1, C_58_Kerning, 0, 0 }, { 0x59, 0x000d2ea5, 0x000aeef0, 0x00018e3b, 0x00015a43, 1, C_59_Kerning, 0, 0 }, { 0x5a, 0x000e24c5, 0x000aeef0, 0x00000000, 0x00014cfd, 1, C_5a_Kerning, 0, 0 }, { 0x5b, 0x000d5550, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000d5550, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000d5550, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000d5550, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000d5550, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000c4bd5, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x000c4bd5, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00092f65, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00092f65, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00092f65, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00092f65, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000a38e0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x000a38e0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x000825eb, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x000825eb, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x000612f5, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000a38e0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x000a38e0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000c4bd5, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x000a38e0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x000612f5, 0x000b1c73, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x000ffff8, 0x0000d3a0, 0x000f2c60, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x000ec8fb, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x001071c0, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x0008aaab, 0x000b1c73, 0x00031c73, 0x000212f5, 0, 0, 0, 0 }, { 0x74, 0x000d5550, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x000d5550, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x000f6845, 0x000b3bbd, 0x00033bbd, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000f6845, 0x000b3bbd, 0x00033bbd, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x00092f65, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00092f65, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x00092f65, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000c4bd5, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x000f6845, 0x000b1c73, 0x000212f8, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x000f6845, 0x000b1c73, 0x000212f8, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000f6845, 0x000b1c73, 0x000212f8, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000f6845, 0x000b1c73, 0x000212f8, 0x00000000, 0, 0, 0, 0 } }; void cmsy6_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/msbm8.cc0000644000175000017500000002567710704611262016603 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "MSBM", 0xee, "TeX math symbols", 0x00800000, 0x70ca70cc, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x0004ccd0 }, { 0x03, "space_stretch", 0x00026660 }, { 0x04, "space_shrink", 0x000199a0 }, { 0x05, "x_height", 0x0007684a }, { 0x06, "quad", 0x00100000 }, { 0x07, "extra_space", 0x000199a0 }, { 0x08, "num1", 0x000b242c }, { 0x09, "num2", 0x00068a94 }, { 0x0a, "num3", 0x000751b0 }, { 0x0b, "denom1", 0x000bfc5a }, { 0x0c, "denom2", 0x00064650 }, { 0x0d, "sup1", 0x0006a58c }, { 0x0e, "sup2", 0x0005a58c }, { 0x0f, "sup3", 0x00048e38 }, { 0x10, "sub1", 0x00020000 }, { 0x11, "sub2", 0x00040000 }, { 0x12, "supdrop", 0x00065556 }, { 0x13, "subdrop", 0x00010000 }, { 0x14, "delim1", 0x0017cccc }, { 0x15, "delim2", 0x00123334 }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Character character[] = { { 0x00, 0x000d38f0, 0x000cd30c, 0x0004bedc, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000d38f0, 0x000cd30c, 0x0004bedc, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000d38f0, 0x000d8bd0, 0x00058bd0, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000d38f0, 0x000d8bd0, 0x00058bd0, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000d38f0, 0x000bebf4, 0x0003d7e8, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000d38f0, 0x000bebf4, 0x0003d7e8, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000d38f0, 0x000bebf4, 0x0003d7e8, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000d38f0, 0x000bebf4, 0x0003d7e8, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000d38f0, 0x000cd30c, 0x0004bedc, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000d38f0, 0x000cd30c, 0x0004bedc, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000d38f0, 0x000d8bd0, 0x00058bd0, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000d38f0, 0x000d8bd0, 0x00058bd0, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x000d38f0, 0x000ab2a2, 0x0002aea6, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000d38f0, 0x000ab2a2, 0x0002aea6, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000d38f0, 0x000d8bd0, 0x00058bd0, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000d38f0, 0x000d8bd0, 0x00058bd0, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x000d38f0, 0x000c498e, 0x0004498e, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x000d38f0, 0x000c498e, 0x0004498e, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000d38f0, 0x000c498e, 0x0004498e, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000d38f0, 0x000c498e, 0x0004498e, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000d38f0, 0x000f9434, 0x00079434, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000d38f0, 0x000f9434, 0x00079434, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000d38f0, 0x000cd30c, 0x0004bedc, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000d38f0, 0x000cd30c, 0x0004bedc, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x000d38f0, 0x000cd30c, 0x0004e73c, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000d38f0, 0x000cd30c, 0x0004e73c, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000d38f0, 0x000cd30c, 0x0004e73c, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000d38f0, 0x000cd30c, 0x0004e73c, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x000d38f0, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000d38f0, 0x000d8bd0, 0x00058bd0, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000f1c80, 0x000b05b0, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000f1c80, 0x000bebf4, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x000d38f0, 0x000ab2a2, 0x0002aea6, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x000d38f0, 0x000ab2a2, 0x0002aea6, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x000d38f0, 0x000cd30c, 0x0004bedc, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000d38f0, 0x000cd30c, 0x0004bedc, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000d38f0, 0x000d4054, 0x00054d72, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000d38f0, 0x000d4054, 0x00054d72, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000d38f0, 0x000cd30c, 0x0004bedc, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000d38f0, 0x000cd30c, 0x0004bedc, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x000d38f0, 0x000ab2a2, 0x0002aea6, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000d38f0, 0x000ab2a2, 0x0002aea6, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000d38f0, 0x000d8bd0, 0x00058bd0, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000d38f0, 0x000d8bd0, 0x00058bd0, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00088008, 0x000bebf4, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0004b8e8, 0x000bebf4, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x0003c720, 0x0009b6bc, 0x0001b6bc, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00069c78, 0x0009b6bc, 0x0001b6bc, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000a6398, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000c4728, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000a6398, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000c4728, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000d38f0, 0x000d8bd0, 0x00058bd0, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000d38f0, 0x000d8bd0, 0x00058bd0, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000d38f0, 0x000bebf4, 0x0003d7e8, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000d38f0, 0x000bebf4, 0x0003d7e8, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00110010, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00110010, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00110010, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00110010, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00110010, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x00110010, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000d38f0, 0x0009b6bc, 0x0001b6bc, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000d38f0, 0x0009b6bc, 0x0001b6bc, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000971d0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000b8e36, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x000aaaa8, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000b8e36, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000b8e36, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x000aaaa8, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x0009c71a, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x000c71c4, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000c71c4, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x000638e2, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4a, 0x0007fffe, 0x000b05b0, 0x0002aea6, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000c71c4, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x000aaaa8, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x000f1c6e, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000b8e36, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000c71c4, 0x000b05b0, 0x0002aea6, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x0009c71a, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x000c71c4, 0x000b05b0, 0x0002aea6, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000b8e36, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x0008e38c, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000aaaa8, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x000b8e36, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000b8e36, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x000ffffc, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x000b8e36, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x000b8e36, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x000aaaa8, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x00201c90, 0x000d4054, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x0027aad0, 0x000d4054, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00201c90, 0x000d4054, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x0027aad0, 0x000e6664, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000971d0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x000adc7c, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000c4728, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x000971d0, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x000d38f0, 0x0007bc4e, 0xffffbc4e, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x000b5560, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00078e40, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000b5560, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x000d38f0, 0x00090290, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000d38f0, 0x00090290, 0x00010290, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x000d38f0, 0x0009b6bc, 0x0001b6bc, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x000d38f0, 0x0009b6bc, 0x0001b6bc, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x0003c720, 0x0009b6bc, 0x0001b6bc, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x00069c78, 0x0009b6bc, 0x0001b6bc, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x000d38f0, 0x0009b6bc, 0x0001b6bc, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x000d38f0, 0x00060c3c, 0xfffe0c3c, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x000d38f0, 0x000812b6, 0x000012b6, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x000d38f0, 0x0009b6bc, 0x0001b6bc, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x000d38f0, 0x000cd30c, 0x0004e73c, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000d38f0, 0x000cd30c, 0x0004e73c, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x00110010, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00110010, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x000d38f0, 0x0009b6bc, 0x0001b6bc, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000b5560, 0x0006e38e, 0x00000000, 0x0000b8e4, 0, 0, 0, 0 }, { 0x7c, 0x0008e38c, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x000938ec, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000938ec, 0x000b05b0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00074e40, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void msbm8_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmmi12.cc0000644000175000017500000004544710704611256016645 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMMI", 0xe6, "TeX math italic", 0x00c00000, 0xb7e167a3, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38f }, { 0x06, "quad", 0x000faaa0 }, { 0x07, "extra_space", 0x00000000 } }; static TFM::Kerning C_00_Kerning[] = { { 0x3a, 0xfffe4260 }, { 0x3b, 0xfffe4260 }, { 0x3d, 0xffff2130 }, { 0x7f, 0x00014e38 } }; static TFM::Kerning C_01_Kerning[] = { { 0x7f, 0x00029c70 } }; static TFM::Kerning C_02_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_03_Kerning[] = { { 0x7f, 0x00029c70 } }; static TFM::Kerning C_04_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_05_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 }, { 0x3d, 0xffff2130 }, { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_06_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_07_Kerning[] = { { 0x3a, 0xfffe4260 }, { 0x3b, 0xfffe4260 }, { 0x3d, 0xffff2130 }, { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_08_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_09_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 }, { 0x3d, 0xffff2130 }, { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_0a_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x7f, 0x00006f68 } }; static TFM::Kerning C_0c_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_0e_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 }, { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_0f_Kerning[] = { { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_10_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_11_Kerning[] = { { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_12_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_13_Kerning[] = { { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_16_Kerning[] = { { 0x7f, 0x00006f68 } }; static TFM::Kerning C_17_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 }, { 0x7f, 0x00006f68 } }; static TFM::Kerning C_18_Kerning[] = { { 0x7f, 0x0001bda0 } }; static TFM::Kerning C_1a_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_1b_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 } }; static TFM::Kerning C_1c_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 }, { 0x7f, 0x00006f68 } }; static TFM::Kerning C_1d_Kerning[] = { { 0x7f, 0x00006f68 } }; static TFM::Kerning C_1e_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_1f_Kerning[] = { { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_20_Kerning[] = { { 0x7f, 0x0001bda0 } }; static TFM::Kerning C_22_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_23_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_25_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_26_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_27_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_3d_Kerning[] = { { 0x01, 0xffff2130 }, { 0x41, 0xffff2130 }, { 0x4d, 0xffff2130 }, { 0x4e, 0xffff2130 }, { 0x59, 0x0000ded0 }, { 0x5a, 0xffff2130 } }; static TFM::Kerning C_40_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_41_Kerning[] = { { 0x7f, 0x00022d08 } }; static TFM::Kerning C_42_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_43_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 }, { 0x3d, 0xffff9098 }, { 0x7f, 0x00014e38 } }; static TFM::Kerning C_44_Kerning[] = { { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_45_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_46_Kerning[] = { { 0x3a, 0xfffe4260 }, { 0x3b, 0xfffe4260 }, { 0x3d, 0xffff2130 }, { 0x7f, 0x00014e38 } }; static TFM::Kerning C_47_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_48_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 }, { 0x3d, 0xffff2130 }, { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_49_Kerning[] = { { 0x7f, 0x0001bda0 } }; static TFM::Kerning C_4a_Kerning[] = { { 0x3a, 0xfffe4260 }, { 0x3b, 0xfffe4260 }, { 0x3d, 0xffff2130 }, { 0x7f, 0x00029c70 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 }, { 0x3d, 0xffff2130 }, { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x7f, 0x00006f68 } }; static TFM::Kerning C_4d_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 }, { 0x3d, 0xffff2130 }, { 0x7f, 0x00014e38 } }; static TFM::Kerning C_4e_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 }, { 0x3d, 0xfffeb1c8 }, { 0x3d, 0xffff9098 }, { 0x7f, 0x00014e38 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_50_Kerning[] = { { 0x3a, 0xfffe4260 }, { 0x3b, 0xfffe4260 }, { 0x3d, 0xffff2130 }, { 0x7f, 0x00014e38 } }; static TFM::Kerning C_51_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_52_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_53_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 }, { 0x3d, 0xffff2130 }, { 0x7f, 0x00014e38 } }; static TFM::Kerning C_54_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 }, { 0x3d, 0xffff9098 }, { 0x7f, 0x00014e38 } }; static TFM::Kerning C_55_Kerning[] = { { 0x3a, 0xfffe4260 }, { 0x3b, 0xfffe4260 }, { 0x3d, 0xffff2130 }, { 0x7f, 0x00006f68 } }; static TFM::Kerning C_56_Kerning[] = { { 0x3a, 0xfffd6390 }, { 0x3b, 0xfffd6390 }, { 0x3d, 0xfffe4260 } }; static TFM::Kerning C_57_Kerning[] = { { 0x3a, 0xfffd6390 }, { 0x3b, 0xfffd6390 }, { 0x3d, 0xfffe4260 } }; static TFM::Kerning C_58_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 }, { 0x3d, 0xfffeb1c8 }, { 0x3d, 0xffff9098 }, { 0x7f, 0x00014e38 } }; static TFM::Kerning C_59_Kerning[] = { { 0x3a, 0xfffd6390 }, { 0x3b, 0xfffd6390 }, { 0x3d, 0xfffe4260 } }; static TFM::Kerning C_5a_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 }, { 0x3d, 0xffff2130 }, { 0x7f, 0x00014e38 } }; static TFM::Kerning C_60_Kerning[] = { { 0x7f, 0x0001bda0 } }; static TFM::Kerning C_63_Kerning[] = { { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_64_Kerning[] = { { 0x59, 0x0000ded0 }, { 0x5a, 0xffff2130 }, { 0x66, 0xfffd6390 }, { 0x6a, 0xfffe4260 }, { 0x7f, 0x00029c70 } }; static TFM::Kerning C_65_Kerning[] = { { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_66_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 }, { 0x7f, 0x00029c70 } }; static TFM::Kerning C_67_Kerning[] = { { 0x7f, 0x00006f68 } }; static TFM::Kerning C_68_Kerning[] = { { 0x7f, 0xffff9098 } }; static TFM::Kerning C_6a_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 } }; static TFM::Kerning C_6c_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_70_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_71_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_72_Kerning[] = { { 0x3a, 0xffff2130 }, { 0x3b, 0xffff2130 }, { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_73_Kerning[] = { { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_74_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_75_Kerning[] = { { 0x7f, 0x00006f68 } }; static TFM::Kerning C_76_Kerning[] = { { 0x7f, 0x00006f68 } }; static TFM::Kerning C_77_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_78_Kerning[] = { { 0x7f, 0x00006f68 } }; static TFM::Kerning C_79_Kerning[] = { { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_7a_Kerning[] = { { 0x7f, 0x0000ded0 } }; static TFM::Kerning C_7b_Kerning[] = { { 0x7f, 0x00006f68 } }; static TFM::Kerning C_7c_Kerning[] = { { 0x7f, 0x00014e38 } }; static TFM::Kerning C_7d_Kerning[] = { { 0x7f, 0x0001bda0 } }; static TFM::Character character[] = { { 0x00, 0x0009b4d8, 0x000aeeef, 0x00000000, 0x0000e315, 4, C_00_Kerning, 0, 0 }, { 0x01, 0x000d0e30, 0x000aeeef, 0x00000000, 0x00000000, 1, C_01_Kerning, 0, 0 }, { 0x02, 0x000bf90c, 0x000aeeef, 0x00000000, 0x00006f68, 1, C_02_Kerning, 0, 0 }, { 0x03, 0x000adfbd, 0x000aeeef, 0x00000000, 0x00000000, 1, C_03_Kerning, 0, 0 }, { 0x04, 0x000ba8a0, 0x000aeeef, 0x00000000, 0x00006e39, 1, C_04_Kerning, 0, 0 }, { 0x05, 0x000cfb00, 0x000aeeef, 0x00000000, 0x00006f68, 4, C_05_Kerning, 0, 0 }, { 0x06, 0x000c40af, 0x000aeeef, 0x00000000, 0x00000000, 1, C_06_Kerning, 0, 0 }, { 0x07, 0x00092388, 0x000aeeef, 0x00000000, 0x0000e315, 4, C_07_Kerning, 0, 0 }, { 0x08, 0x000a71c0, 0x000aeeef, 0x00000000, 0x00000000, 1, C_08_Kerning, 0, 0 }, { 0x09, 0x0009918d, 0x000aeeef, 0x00000000, 0x0000ceb3, 4, C_09_Kerning, 0, 0 }, { 0x0a, 0x000c1f43, 0x000aeeef, 0x00000000, 0x0000ceb3, 1, C_0a_Kerning, 0, 0 }, { 0x0b, 0x0009f6f7, 0x0006e38f, 0x00000000, 0x00001a14, 1, C_0b_Kerning, 0, 0 }, { 0x0c, 0x0008d828, 0x000b1c71, 0x00031c71, 0x0000e315, 1, C_0c_Kerning, 0, 0 }, { 0x0d, 0x00082050, 0x0006e38f, 0x00031c71, 0x0000ded0, 0, 0, 0, 0 }, { 0x0e, 0x0006f055, 0x000b1c71, 0x00000000, 0x00009999, 3, C_0e_Kerning, 0, 0 }, { 0x0f, 0x0006536c, 0x0006e38f, 0x00000000, 0x00000000, 1, C_0f_Kerning, 0, 0 }, { 0x10, 0x0006d7b0, 0x000b1c71, 0x00031c71, 0x00005a14, 1, C_10_Kerning, 0, 0 }, { 0x11, 0x0007bac4, 0x0006e38f, 0x00031c71, 0x000092f7, 1, C_11_Kerning, 0, 0 }, { 0x12, 0x00074d04, 0x000b1c71, 0x00000000, 0x00006f68, 1, C_12_Kerning, 0, 0 }, { 0x13, 0x00058978, 0x0006e38f, 0x00000000, 0x00000000, 1, C_13_Kerning, 0, 0 }, { 0x14, 0x000904b8, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00092388, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00096d04, 0x0006e38f, 0x00031c71, 0x00000000, 1, C_16_Kerning, 0, 0 }, { 0x17, 0x0007bd9d, 0x0006e38f, 0x00000000, 0x00001a14, 3, C_17_Kerning, 0, 0 }, { 0x18, 0x0006d7b0, 0x000b1c71, 0x00031c71, 0x0000c5ef, 1, C_18_Kerning, 0, 0 }, { 0x19, 0x0008e310, 0x0006e38f, 0x00000000, 0x000092f7, 0, 0, 0, 0 }, { 0x1a, 0x0008149b, 0x0006e38f, 0x00031c71, 0x00000000, 1, C_1a_Kerning, 0, 0 }, { 0x1b, 0x0008e790, 0x0006e38f, 0x00000000, 0x000092f7, 2, C_1b_Kerning, 0, 0 }, { 0x1c, 0x0006cdbb, 0x0006e38f, 0x00000000, 0x0000ded0, 3, C_1c_Kerning, 0, 0 }, { 0x1d, 0x000871c1, 0x0006e38f, 0x00000000, 0x000092f7, 1, C_1d_Kerning, 0, 0 }, { 0x1e, 0x000945a9, 0x000b1c71, 0x00031c71, 0x00000000, 1, C_1e_Kerning, 0, 0 }, { 0x1f, 0x0009d093, 0x0006e38f, 0x00031c71, 0x00000000, 1, C_1f_Kerning, 0, 0 }, { 0x20, 0x000a2f61, 0x000b1c71, 0x00031c71, 0x000092f7, 1, C_20_Kerning, 0, 0 }, { 0x21, 0x0009c165, 0x0006e38f, 0x00000000, 0x000092f7, 0, 0, 0, 0 }, { 0x22, 0x000754d8, 0x0006e38f, 0x00000000, 0x00000000, 1, C_22_Kerning, 0, 0 }, { 0x23, 0x00093bb5, 0x000b1c71, 0x00000000, 0x00000000, 1, C_23_Kerning, 0, 0 }, { 0x24, 0x000cf147, 0x0006e38f, 0x00000000, 0x00006f68, 0, 0, 0, 0 }, { 0x25, 0x0008149b, 0x0006e38f, 0x00031c71, 0x00000000, 1, C_25_Kerning, 0, 0 }, { 0x26, 0x0005aaa5, 0x0006e38f, 0x00018e39, 0x000092f7, 1, C_26_Kerning, 0, 0 }, { 0x27, 0x000a4349, 0x0006e38f, 0x00031c71, 0x00000000, 1, C_27_Kerning, 0, 0 }, { 0x28, 0x000faaa0, 0x0005c641, 0xfffdc641, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000faaa0, 0x0005c641, 0xfffdc641, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000faaa0, 0x0005c641, 0xfffdc641, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000faaa0, 0x0005c641, 0xfffdc641, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00045a10, 0x0007416b, 0xffff416b, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00045a10, 0x0007416b, 0xffff416b, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x0007d550, 0x000771c8, 0xffff71c8, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x0007d550, 0x000771c8, 0xffff71c8, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x0007d550, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x0007d550, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x0007d550, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x0007d550, 0x0006e38f, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x0007d550, 0x0006e38f, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x0007d550, 0x0006e38f, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x0007d550, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x0007d550, 0x0006e38f, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x0007d550, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x0007d550, 0x0006e38f, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00045a10, 0x00018e39, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00045a10, 0x00018e39, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000c2f60, 0x00086d3b, 0x00006d3b, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x0007d550, 0x000c0000, 0x00040000, 0x00000000, 6, C_3d_Kerning, 0, 0 }, { 0x3e, 0x000c2f60, 0x00086d3b, 0x00006d3b, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x0007d550, 0x000771c8, 0xffff71c8, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x00084531, 0x000b1c71, 0x00000000, 0x0000ded0, 1, C_40_Kerning, 0, 0 }, { 0x41, 0x000bbe8d, 0x000aeeef, 0x00000000, 0x00000000, 1, C_41_Kerning, 0, 0 }, { 0x42, 0x000be6d9, 0x000aeeef, 0x00000000, 0x0000ceb3, 1, C_42_Kerning, 0, 0 }, { 0x43, 0x000b3567, 0x000aeeef, 0x00000000, 0x000021b8, 4, C_43_Kerning, 0, 0 }, { 0x44, 0x000d01f7, 0x000aeeef, 0x00000000, 0x00006f68, 1, C_44_Kerning, 0, 0 }, { 0x45, 0x000b98dd, 0x000aeeef, 0x00000000, 0x00000000, 1, C_45_Kerning, 0, 0 }, { 0x46, 0x000a2440, 0x000aeeef, 0x00000000, 0x0000e315, 4, C_46_Kerning, 0, 0 }, { 0x47, 0x000c5b90, 0x000aeeef, 0x00000000, 0x00000000, 1, C_47_Kerning, 0, 0 }, { 0x48, 0x000cfb00, 0x000aeeef, 0x00000000, 0x00006f68, 4, C_48_Kerning, 0, 0 }, { 0x49, 0x0006e8e1, 0x000aeeef, 0x00000000, 0x0000897c, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x0008a8c3, 0x000aeeef, 0x00000000, 0x00009999, 4, C_4a_Kerning, 0, 0 }, { 0x4b, 0x000d5420, 0x000aeeef, 0x00000000, 0x000021b8, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000aa8bf, 0x000aeeef, 0x00000000, 0x00000000, 1, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000f2808, 0x000aeeef, 0x00000000, 0x0000b685, 4, C_4d_Kerning, 0, 0 }, { 0x4e, 0x000c8b98, 0x000aeeef, 0x00000000, 0x0000b685, 5, C_4e_Kerning, 0, 0 }, { 0x4f, 0x000bf90c, 0x000aeeef, 0x00000000, 0x00006f68, 1, C_4f_Kerning, 0, 0 }, { 0x50, 0x000a191c, 0x000aeeef, 0x00000000, 0x0000e315, 4, C_50_Kerning, 0, 0 }, { 0x51, 0x000c6874, 0x000aeeef, 0x00031c71, 0x00000000, 1, C_51_Kerning, 0, 0 }, { 0x52, 0x000becb8, 0x000aeeef, 0x00000000, 0x000021b8, 1, C_52_Kerning, 0, 0 }, { 0x53, 0x0009a297, 0x000aeeef, 0x00000000, 0x0000ee75, 4, C_53_Kerning, 0, 0 }, { 0x54, 0x00092eac, 0x000aeeef, 0x00000000, 0x0000e315, 4, C_54_Kerning, 0, 0 }, { 0x55, 0x000aa3dd, 0x000aeeef, 0x00000000, 0x0000b685, 4, C_55_Kerning, 0, 0 }, { 0x56, 0x0009221d, 0x000aeeef, 0x00000000, 0x0000ee75, 3, C_56_Kerning, 0, 0 }, { 0x57, 0x000eca65, 0x000aeeef, 0x00000000, 0x0000e315, 3, C_57_Kerning, 0, 0 }, { 0x58, 0x000d0091, 0x000aeeef, 0x00000000, 0x0000897c, 5, C_58_Kerning, 0, 0 }, { 0x59, 0x000916f9, 0x000aeeef, 0x00000000, 0x0000ee75, 3, C_59_Kerning, 0, 0 }, { 0x5a, 0x000ab91b, 0x000aeeef, 0x00000000, 0x000021b8, 4, C_5a_Kerning, 0, 0 }, { 0x5b, 0x000617b0, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000617b0, 0x000b1c71, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000617b0, 0x000b1c71, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000faaa0, 0x0005b8e4, 0xfffdb8e4, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000faaa0, 0x0005b8e4, 0xfffdb8e4, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000692f4, 0x000b1c71, 0x00000000, 0x00000000, 1, C_60_Kerning, 0, 0 }, { 0x61, 0x00083957, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x0006a939, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x0006be15, 0x0006e38f, 0x00000000, 0x00000000, 1, C_63_Kerning, 0, 0 }, { 0x64, 0x00082403, 0x000b1c71, 0x00000000, 0x00000000, 5, C_64_Kerning, 0, 0 }, { 0x65, 0x000742d4, 0x0006e38f, 0x00000000, 0x00000000, 1, C_65_Kerning, 0, 0 }, { 0x66, 0x0007b8e0, 0x000b1c71, 0x00031c71, 0x0000c5ef, 3, C_66_Kerning, 0, 0 }, { 0x67, 0x00078074, 0x0006e38f, 0x00031c71, 0x000092f7, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000904b8, 0x000b1c71, 0x00000000, 0x00000000, 1, C_68_Kerning, 0, 0 }, { 0x69, 0x00055834, 0x000a7d4c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00067b40, 0x000a7d4c, 0x00031c71, 0x0000e66f, 2, C_6a_Kerning, 0, 0 }, { 0x6b, 0x000825e8, 0x000b1c71, 0x00000000, 0x0000897c, 0, 0, 0, 0 }, { 0x6c, 0x0004aaa8, 0x000b1c71, 0x00000000, 0x00005a14, 1, C_6c_Kerning, 0, 0 }, { 0x6d, 0x000db41c, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x00095a0c, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x00078809, 0x0006e38f, 0x00000000, 0x00000000, 1, C_6f_Kerning, 0, 0 }, { 0x70, 0x0007dce7, 0x0006e38f, 0x00031c71, 0x00000000, 1, C_70_Kerning, 0, 0 }, { 0x71, 0x0006f23c, 0x0006e38f, 0x00031c71, 0x000092f7, 1, C_71_Kerning, 0, 0 }, { 0x72, 0x00070f64, 0x0006e38f, 0x00000000, 0x00006f68, 3, C_72_Kerning, 0, 0 }, { 0x73, 0x0007612c, 0x0006e38f, 0x00000000, 0x00000000, 1, C_73_Kerning, 0, 0 }, { 0x74, 0x0005a848, 0x0009d75f, 0x00000000, 0x00000000, 1, C_74_Kerning, 0, 0 }, { 0x75, 0x0008eaa4, 0x0006e38f, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x000792f1, 0x0006e38f, 0x00000000, 0x000092f7, 1, C_76_Kerning, 0, 0 }, { 0x77, 0x000b32ef, 0x0006e38f, 0x00000000, 0x00006e39, 1, C_77_Kerning, 0, 0 }, { 0x78, 0x0008e718, 0x0006e38f, 0x00000000, 0x00000000, 1, C_78_Kerning, 0, 0 }, { 0x79, 0x0007a389, 0x0006e38f, 0x00031c71, 0x000092f7, 1, C_79_Kerning, 0, 0 }, { 0x7a, 0x00074718, 0x0006e38f, 0x00000000, 0x0000b685, 1, C_7a_Kerning, 0, 0 }, { 0x7b, 0x0004fffc, 0x0006e38f, 0x00000000, 0x00000000, 1, C_7b_Kerning, 0, 0 }, { 0x7c, 0x00060bd8, 0x0006e38f, 0x00031c71, 0x00000000, 1, C_7c_Kerning, 0, 0 }, { 0x7d, 0x0009f957, 0x0006e38f, 0x00031c71, 0x00000000, 1, C_7d_Kerning, 0, 0 }, { 0x7e, 0x0007d550, 0x000b6789, 0x00000000, 0x0000e66f, 0, 0, 0, 0 }, { 0x7f, 0x00045a10, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmmi12_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/Makefile.am0000644000175000017500000000435310661271102017263 00000000000000 NULL = TFM_LEVEL_1_CC = \ cmex10.cc \ cmmi10.cc \ cmr10.cc \ cmsy10.cc \ $(NULL) TFM_LEVEL_2_CC = \ $(TFM_LEVEL_1_CC) \ cmb10.cc \ cmbsy10.cc \ cmbxti10.cc \ cmmib10.cc \ cmss10.cc \ cmssbx10.cc \ cmssi10.cc \ cmti10.cc \ cmtt10.cc \ msam10.cc \ msbm10.cc \ $(NULL) TFM_LEVEL_3_CC = \ $(TFM_LEVEL_2_CC) \ cmbx10.cc \ cmbx12.cc \ cmbx5.cc \ cmbx6.cc \ cmbx7.cc \ cmbx8.cc \ cmbx9.cc \ cmex9.cc \ cmmi12.cc \ cmmi5.cc \ cmmi6.cc \ cmmi7.cc \ cmmi8.cc \ cmmi9.cc \ cmr12.cc \ cmr17.cc \ cmr5.cc \ cmr6.cc \ cmr7.cc \ cmr8.cc \ cmr9.cc \ cmss12.cc \ cmss17.cc \ cmss8.cc \ cmss9.cc \ cmssi12.cc \ cmssi17.cc \ cmssi8.cc \ cmssi9.cc \ cmsy5.cc \ cmsy6.cc \ cmsy7.cc \ cmsy8.cc \ cmsy9.cc \ cmti12.cc \ cmti7.cc \ cmti8.cc \ cmti9.cc \ cmtt12.cc \ cmtt8.cc \ cmtt9.cc \ msam5.cc \ msam6.cc \ msam7.cc \ msam8.cc \ msam9.cc \ msbm5.cc \ msbm6.cc \ msbm7.cc \ msbm8.cc \ msbm9.cc \ $(NULL) if COND_TFM_LEVEL_1 AUTO_CC = $(TFM_LEVEL_1_CC) else if COND_TFM_LEVEL_2 AUTO_CC = $(TFM_LEVEL_2_CC) else if COND_TFM_LEVEL_3 AUTO_CC = $(TFM_LEVEL_3_CC) else AUTO_CC = $(NULL) endif endif endif MAINTAINERCLEANFILES = $(AUTO_CC) noinst_LTLIBRARIES = libtfm.la BUILT_SOURCES = $(AUTO_CC) libtfm_la_CPPFLAGS = -DGMV_MathView_DLL libtfm_la_SOURCES = \ $(AUTO_CC) \ TFM.hh \ TFM.cc \ TFMManager.hh \ TFMManager.cc \ $(NULL) TFMDUMP = ~/Luca-CVS/Projects/xtfm/tfmdump XTFMS = $(TFM_LEVEL_3_CC:%.cc=$(srcdir)/%.xtfm) # Linux cm* fonts $(srcdir)/%.xtfm: /usr/share/texmf/fonts/tfm/public/cm/%.tfm $(TFMDUMP) $< >$@ # OSX cm* fonts $(srcdir)/%.xtfm: /usr/local/teTeX/share/texmf.tetex/fonts/tfm/public/cm/%.tfm $(TFMDUMP) $< >$@ # OSX ms* fonts $(srcdir)/%.xtfm: /usr/local/teTeX/share/texmf.tetex/fonts/tfm/ams/symbols/%.tfm $(TFMDUMP) $< >$@ if COND_XSLTPROC XSLTPROC = xsltproc XTFMTOCC = $(top_srcdir)/auto/xtfm-to-cc.xsl LICENSE = $(top_srcdir)/doc/LICENSE.cc %.cc: $(srcdir)/%.xtfm $(XTFMTOCC) $(LICENSE) cat $(LICENSE) >$@ $(XSLTPROC) --stringparam name $(basename $(notdir $(@:%.cc=%))) $(XTFMTOCC) $< >>$@ .PHONY: xtfms xtfms: $(XTFMS) endif INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ $(NULL) gtkmathview-0.8.0/src/backend/common/tfm/cmr10.cc0000644000175000017500000004221510704611254016463 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMR", 0xea, "TeX text", 0x00a00000, 0x4bf16079, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00055556 }, { 0x03, "space_stretch", 0x0002aaab }, { 0x04, "space_shrink", 0x0001c71d }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x00100003 }, { 0x07, "extra_space", 0x0001c71d } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x00013e95 }, { 0x27, 0x00013e95 }, { 0x29, 0x00013e95 }, { 0x3f, 0x00013e95 }, { 0x5d, 0x00013e95 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffae38d }, { 0x6c, 0xfffb8e38 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001c71d }, { 0x3f, 0x0001c71d } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x54, 0xfffeaaaa }, { 0x55, 0xffff8e38 }, { 0x56, 0xfffe38e3 }, { 0x57, 0xfffe38e3 }, { 0x59, 0xfffeaaaa }, { 0x74, 0xffff8e38 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff8e38 }, { 0x56, 0xffff8e38 }, { 0x57, 0xffff8e38 }, { 0x58, 0xffff8e38 }, { 0x59, 0xffff8e38 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffe38e3 }, { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x61, 0xfffeaaaa }, { 0x65, 0xfffeaaaa }, { 0x6f, 0xfffeaaaa }, { 0x72, 0xfffeaaaa }, { 0x75, 0xfffeaaaa } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x000071c8 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffeaaaa }, { 0x56, 0xfffe38e3 }, { 0x57, 0xfffe38e3 }, { 0x59, 0xfffeaaaa } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff8e38 }, { 0x56, 0xffff8e38 }, { 0x57, 0xffff8e38 }, { 0x58, 0xffff8e38 }, { 0x59, 0xffff8e38 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffeaaaa }, { 0x2e, 0xfffeaaaa }, { 0x41, 0xfffeaaaa }, { 0x61, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x54, 0xfffeaaaa }, { 0x55, 0xffff8e38 }, { 0x56, 0xfffe38e3 }, { 0x57, 0xfffe38e3 }, { 0x59, 0xfffeaaaa }, { 0x74, 0xffff8e38 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffeaaaa }, { 0x61, 0xfffeaaaa }, { 0x65, 0xfffeaaaa }, { 0x6f, 0xfffeaaaa }, { 0x72, 0xfffeaaaa }, { 0x75, 0xfffeaaaa }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffe38e3 }, { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x61, 0xfffeaaaa }, { 0x65, 0xfffeaaaa }, { 0x6f, 0xfffeaaaa }, { 0x72, 0xfffeaaaa }, { 0x75, 0xfffeaaaa } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffe38e3 }, { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 }, { 0x61, 0xfffeaaaa }, { 0x65, 0xfffeaaaa }, { 0x6f, 0xfffeaaaa }, { 0x72, 0xfffeaaaa }, { 0x75, 0xfffeaaaa } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff8e38 }, { 0x47, 0xffff8e38 }, { 0x4f, 0xffff8e38 }, { 0x51, 0xffff8e38 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffeaaaa }, { 0x61, 0xfffeaaaa }, { 0x65, 0xfffeaaaa }, { 0x6f, 0xfffeaaaa }, { 0x72, 0xfffeaaaa }, { 0x75, 0xfffeaaaa } }; static TFM::Kerning C_61_Kerning[] = { { 0x6a, 0x0000e38e }, { 0x76, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x000071c8 }, { 0x64, 0x000071c8 }, { 0x65, 0x000071c8 }, { 0x6a, 0x0000e38e }, { 0x6f, 0x000071c8 }, { 0x71, 0x000071c8 }, { 0x76, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x78, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_63_Kerning[] = { { 0x68, 0xffff8e38 }, { 0x6b, 0xffff8e38 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x00013e95 }, { 0x27, 0x00013e95 }, { 0x29, 0x00013e95 }, { 0x3f, 0x00013e95 }, { 0x5d, 0x00013e95 } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x000071c8 } }; static TFM::Kerning C_68_Kerning[] = { { 0x62, 0xffff8e38 }, { 0x74, 0xffff8e38 }, { 0x75, 0xffff8e38 }, { 0x76, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff1c72 }, { 0x61, 0xffff8e38 }, { 0x63, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Kerning C_6d_Kerning[] = { { 0x62, 0xffff8e38 }, { 0x74, 0xffff8e38 }, { 0x75, 0xffff8e38 }, { 0x76, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_6e_Kerning[] = { { 0x62, 0xffff8e38 }, { 0x74, 0xffff8e38 }, { 0x75, 0xffff8e38 }, { 0x76, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x000071c8 }, { 0x64, 0x000071c8 }, { 0x65, 0x000071c8 }, { 0x6a, 0x0000e38e }, { 0x6f, 0x000071c8 }, { 0x71, 0x000071c8 }, { 0x76, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x78, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x000071c8 }, { 0x64, 0x000071c8 }, { 0x65, 0x000071c8 }, { 0x6a, 0x0000e38e }, { 0x6f, 0x000071c8 }, { 0x71, 0x000071c8 }, { 0x76, 0xffff8e38 }, { 0x77, 0xffff8e38 }, { 0x78, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff8e38 }, { 0x79, 0xffff8e38 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff8e38 } }; static TFM::Kerning C_76_Kerning[] = { { 0x61, 0xffff1c72 }, { 0x61, 0xffff8e38 }, { 0x63, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff8e38 }, { 0x63, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffeaaaa }, { 0x2e, 0xfffeaaaa }, { 0x61, 0xffff8e38 }, { 0x65, 0xffff8e38 }, { 0x6f, 0xffff8e38 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000a0002, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000d5558, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000c71ca, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000b1c73, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000aaaad, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000c0002, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000b8e3b, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000c71ca, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000b8e3b, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000c71ca, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000b8e3b, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x00095558, 0x000b1c72, 0x00000000, 0x00013e95, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x0008e390, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x0008e390, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000d5558, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000d5558, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x000471c8, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x0004e390, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x00080002, 0x000a0e3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00080002, 0x0009159d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000c0002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00071c73, 0x00000000, 0x0002b8e3, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00080003, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000b8e3b, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000c71ca, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00080002, 0x000871c8, 0x00018e3a, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000e71ca, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x001038e6, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000c71ca, 0x000bb60b, 0x0000c71d, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x000471c8, 0x0006e38e, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x000471c8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000d5558, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00080002, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000d5558, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000c71ca, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000471c8, 0x000b1c72, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x000638e5, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000638e5, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00080002, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000c71ca, 0x00095556, 0x00015556, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x000471c8, 0x0001b05b, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00055556, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x000471c8, 0x0001b05b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00080002, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000471c8, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x000471c8, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000471c8, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000c71ca, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00078e3b, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00078e3b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000c71ca, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000c0002, 0x000aeeee, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000b5558, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000b8e3b, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000c38e6, 0x000aeeee, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000ae390, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000a71ca, 0x000aeeee, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000c8e3b, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000c0002, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x0005c71d, 0x000aeeee, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000838e5, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000c71ca, 0x000aeeee, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000a0002, 0x000aeeee, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000eaaad, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000c0002, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000c71ca, 0x000aeeee, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000ae390, 0x000aeeee, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000c71ca, 0x000aeeee, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000bc71e, 0x000aeeee, 0x00000000, 0x00000000, 10, C_52_Kerning, 0, 0 }, { 0x53, 0x0008e390, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000b8e3b, 0x000aeeee, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000c0002, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000c0002, 0x000aeeee, 0x00000000, 0x000038e3, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x001071ca, 0x000aeeee, 0x00000000, 0x000038e3, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000c0002, 0x000aeeee, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000c0002, 0x000aeeee, 0x00000000, 0x00006666, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x0009c71e, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x000471c8, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000471c8, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000471c8, 0x000aaf8d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000471c8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x00080002, 0x0006e38e, 0x00000000, 0x00000000, 4, C_61_Kerning, 0, 0 }, { 0x62, 0x0008e390, 0x000b1c72, 0x00000000, 0x00000000, 10, C_62_Kerning, 0, 0 }, { 0x63, 0x00071c73, 0x0006e38e, 0x00000000, 0x00000000, 2, C_63_Kerning, 0, 0 }, { 0x64, 0x0008e390, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00071c73, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x0004e390, 0x000b1c72, 0x00000000, 0x00013e95, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x00080002, 0x0006e38e, 0x00031c72, 0x000038e3, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x0008e390, 0x000b1c72, 0x00000000, 0x00000000, 6, C_68_Kerning, 0, 0 }, { 0x69, 0x000471c8, 0x000aaf8d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x0004e390, 0x000aaf8d, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000871ca, 0x000b1c72, 0x00000000, 0x00000000, 5, C_6b_Kerning, 0, 0 }, { 0x6c, 0x000471c8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000d5558, 0x0006e38e, 0x00000000, 0x00000000, 6, C_6d_Kerning, 0, 0 }, { 0x6e, 0x0008e390, 0x0006e38e, 0x00000000, 0x00000000, 6, C_6e_Kerning, 0, 0 }, { 0x6f, 0x00080002, 0x0006e38e, 0x00000000, 0x00000000, 10, C_6f_Kerning, 0, 0 }, { 0x70, 0x0008e390, 0x0006e38e, 0x00031c72, 0x00000000, 10, C_70_Kerning, 0, 0 }, { 0x71, 0x000871c8, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x00064446, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x00064fa6, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x000638e5, 0x0009d75e, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x0008e390, 0x0006e38e, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x000871ca, 0x0006e38e, 0x00000000, 0x000038e3, 5, C_76_Kerning, 0, 0 }, { 0x77, 0x000b8e3b, 0x0006e38e, 0x00000000, 0x000038e3, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x000871ca, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x000871ca, 0x0006e38e, 0x00031c72, 0x000038e3, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x00071c73, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00080002, 0x0006e38e, 0x00000000, 0x000071c8, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x00100003, 0x0006e38e, 0x00000000, 0x000071c8, 0, 0, 0, 0 }, { 0x7d, 0x00080002, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x00080002, 0x000aaf8d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00080002, 0x000aaf8d, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmr10_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/msam6.cc0000644000175000017500000002567710704611261016577 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "MSAM", 0xf2, "TeX math symbols", 0x00600000, 0x0c45ea36, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38d }, { 0x06, "quad", 0x001471c0 }, { 0x07, "extra_space", 0x00000000 }, { 0x08, "num1", 0x000d00d0 }, { 0x09, "num2", 0x000646fd }, { 0x0a, "num3", 0x0007c240 }, { 0x0b, "denom1", 0x000dd165 }, { 0x0c, "denom2", 0x0006dead }, { 0x0d, "sup1", 0x00080c28 }, { 0x0e, "sup2", 0x0006b6d3 }, { 0x0f, "sup3", 0x000497b5 }, { 0x10, "sub1", 0x0002aaab }, { 0x11, "sub2", 0x00055555 }, { 0x12, "supdrop", 0x000697b0 }, { 0x13, "subdrop", 0x00015555 }, { 0x14, "delim1", 0x001fbbbb }, { 0x15, "delim2", 0x0015999b }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Character character[] = { { 0x00, 0x000f6845, 0x000c9370, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000f6845, 0x000c9370, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000f6845, 0x000c9370, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000f6845, 0x000c9370, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000f6845, 0x000c9370, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000612f5, 0x0008b0c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000d5550, 0x000af3c8, 0x0001fb65, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000d5550, 0x000af3c8, 0x0001fb65, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000f6845, 0x000a18c0, 0x00024343, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000f6845, 0x000a18c0, 0x00024343, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x00138e30, 0x0008b0c8, 0x00007f00, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x00138e30, 0x0008b0c8, 0x00007f00, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x000f6845, 0x000c9370, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000e5ecb, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x00117b3b, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000c4bd5, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00138e30, 0x0008b0c8, 0x00007f00, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00138e30, 0x0008b0c8, 0x00007f00, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00138e30, 0x000af3c8, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00138e30, 0x000af3c8, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x001071c0, 0x000af3c8, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x001071c0, 0x000af3c8, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x0008aaa8, 0x000af3c8, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x0008aaa8, 0x000af3c8, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x0008aaa8, 0x000af3c8, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x0008aaa8, 0x000af3c8, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x0015a125, 0x0008b0c8, 0x00007f00, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x0015a125, 0x0008b0c8, 0x00007f00, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00138e30, 0x000af3c8, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x00138e30, 0x000af3c8, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000a38e0, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000a38e0, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00138e30, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x001ad08b, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x00138e30, 0x0008b0c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x00138e30, 0x0008b0c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000f6845, 0x000d1af8, 0x000502e3, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000f6845, 0x000d1af8, 0x000502e3, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000f6845, 0x000d1af8, 0x000502e3, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x0015a125, 0x0008b0c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000d5550, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000d5550, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000f6845, 0x000a18c0, 0x00024343, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x000e84b5, 0x001071c0, 0x00024343, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x000f6845, 0x000c9370, 0x0004b523, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x000f6845, 0x000c9370, 0x0004b523, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000f6845, 0x000b3bbd, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000f6845, 0x000b3bbd, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000f6845, 0x000b3bbd, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000f6845, 0x000b3bbd, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000f6845, 0x000b3bbd, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000f6845, 0x000b3bbd, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000f6845, 0x000c25eb, 0x00041448, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x0005da13, 0x0008b0c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00095550, 0x0008083d, 0x0000083d, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000f6845, 0x000a18c0, 0x00024343, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x000f6845, 0x000a18c0, 0x00024343, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000f6845, 0x000b3bbd, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000f6845, 0x000b3bbd, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000f6845, 0x000c25eb, 0x00041448, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000f6845, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000f6845, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x000f6845, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000f6845, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000f6845, 0x000b3bbd, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x000f6845, 0x000b3bbd, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x001025f0, 0x000af3c8, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x000a38e0, 0x000c25eb, 0x00041448, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000ce390, 0x0008b0c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x000f6845, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x4a, 0x000f6845, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x00095550, 0x0008083d, 0x0000083d, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x00095550, 0x0008083d, 0x0000083d, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x000ce390, 0x0008b0c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000ce390, 0x0008b0c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000ce390, 0x0008b0c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x000f6845, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x000f6845, 0x000fe54d, 0x0007e54d, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000f6845, 0x000fe54d, 0x0007e54d, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x000f6845, 0x0011b8a5, 0x0009b8a5, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000f6845, 0x0011b8a5, 0x0009b8a5, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x000ec8fb, 0x000af3c8, 0x00000000, 0x00007778, 0, 0, 0, 0 }, { 0x56, 0x00138e30, 0x000af3c8, 0x0002d79d, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x00138e30, 0x000af3c8, 0x0002d79d, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x001071c0, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x000c4bd5, 0x000af3c8, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x000c4bd5, 0x000af3c8, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x000c4bd5, 0x000c25eb, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000e5ecb, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000e5ecb, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000e5ecb, 0x0008b0c8, 0x00007f00, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000f6845, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000f6845, 0x000af3c8, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x000f6845, 0x000af3c8, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x000f6845, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x000f6845, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x000d5550, 0x0008b0c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x000d5550, 0x0008b0c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000f06a3, 0x0008b0c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x000f06a3, 0x0008b0c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x000f6845, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x000f6845, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000f6845, 0x000d8f30, 0x00058f30, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x000f6845, 0x000a18c0, 0x0001fb65, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000f6845, 0x000a18c0, 0x0001fb65, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x0019c710, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x0019c710, 0x00096865, 0x00016865, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x000a38e0, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x000a38e0, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x001025d5, 0x000af3c8, 0x0002a81d, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x000f6835, 0x000af3c8, 0x0002a81d, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x000d5550, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x000f6845, 0x000c25eb, 0x00024343, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x000f6845, 0x00063d28, 0xfffe3d28, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000f6845, 0x0008083d, 0x0000083d, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x000a38e0, 0x000712f3, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x000a38e0, 0x000712f3, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x001071c0, 0x000af3c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000a38e0, 0x000d1af8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x000b425b, 0x000712f3, 0x00032c15, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x000f6845, 0x000a18c0, 0x00024343, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000f6845, 0x000a18c0, 0x00024343, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000f6845, 0x000a18c0, 0x00024343, 0x00000000, 0, 0, 0, 0 } }; void msam6_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmsy5.cc0000644000175000017500000003162110704611260016575 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMSY", 0xf4, "TeX math symbols", 0x00500000, 0xb0dc306e, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38d }, { 0x06, "quad", 0x00178e4d }, { 0x07, "extra_space", 0x00000000 }, { 0x08, "num1", 0x000ecdca }, { 0x09, "num2", 0x0006330d }, { 0x0a, "num3", 0x000810ed }, { 0x0b, "denom1", 0x00106763 }, { 0x0c, "denom2", 0x000882b3 }, { 0x0d, "sup1", 0x00080e90 }, { 0x0e, "sup2", 0x000674f6 }, { 0x0f, "sup3", 0x0004b60d }, { 0x10, "sub1", 0x00033333 }, { 0x11, "sub2", 0x00066666 }, { 0x12, "supdrop", 0x0007e940 }, { 0x13, "subdrop", 0x0001999a }, { 0x14, "delim1", 0x001fae13 }, { 0x15, "delim2", 0x0016b853 }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Kerning C_41_Kerning[] = { { 0x30, 0x0003e393 } }; static TFM::Kerning C_42_Kerning[] = { { 0x30, 0x0002c720 } }; static TFM::Kerning C_43_Kerning[] = { { 0x30, 0x0002c720 } }; static TFM::Kerning C_44_Kerning[] = { { 0x30, 0x0001aaad } }; static TFM::Kerning C_45_Kerning[] = { { 0x30, 0x000238e6 } }; static TFM::Kerning C_46_Kerning[] = { { 0x30, 0x000238e6 } }; static TFM::Kerning C_47_Kerning[] = { { 0x30, 0x000238e6 } }; static TFM::Kerning C_48_Kerning[] = { { 0x30, 0x000238e6 } }; static TFM::Kerning C_49_Kerning[] = { { 0x30, 0x00008e3a } }; static TFM::Kerning C_4a_Kerning[] = { { 0x30, 0x0003555a } }; static TFM::Kerning C_4b_Kerning[] = { { 0x30, 0x00011c73 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x30, 0x0002c720 } }; static TFM::Kerning C_4d_Kerning[] = { { 0x30, 0x0002c720 } }; static TFM::Kerning C_4e_Kerning[] = { { 0x30, 0x0001aaad } }; static TFM::Kerning C_4f_Kerning[] = { { 0x30, 0x000238e6 } }; static TFM::Kerning C_50_Kerning[] = { { 0x30, 0x0001aaad } }; static TFM::Kerning C_51_Kerning[] = { { 0x30, 0x000238e6 } }; static TFM::Kerning C_52_Kerning[] = { { 0x30, 0x0001aaad } }; static TFM::Kerning C_53_Kerning[] = { { 0x30, 0x0002c720 } }; static TFM::Kerning C_54_Kerning[] = { { 0x30, 0x00008e3a } }; static TFM::Kerning C_55_Kerning[] = { { 0x30, 0x0001aaad } }; static TFM::Kerning C_56_Kerning[] = { { 0x30, 0x00008e3a } }; static TFM::Kerning C_57_Kerning[] = { { 0x30, 0x0001aaad } }; static TFM::Kerning C_58_Kerning[] = { { 0x30, 0x0002c720 } }; static TFM::Kerning C_59_Kerning[] = { { 0x30, 0x0001aaad } }; static TFM::Kerning C_5a_Kerning[] = { { 0x30, 0x0002c720 } }; static TFM::Character character[] = { { 0x00, 0x00115566, 0x000aaab3, 0x0002aab3, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x0007555a, 0x0007e393, 0xffffe393, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x00115566, 0x000aaab3, 0x0002aab3, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000bc726, 0x000771c6, 0xffff71c6, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x00115566, 0x000aaab3, 0x0002aab3, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000bc726, 0x0007e393, 0xffffe393, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x00115566, 0x000aaab3, 0x0002aab3, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x00115566, 0x000aaab3, 0x0002aab3, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x00115566, 0x000aaab3, 0x0002aab3, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x00115566, 0x000aaab3, 0x0002aab3, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x00115566, 0x000aaab3, 0x0002aab3, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x00115566, 0x000aaab3, 0x0002aab3, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x00115566, 0x000aaab3, 0x0002aab3, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x0015c733, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000bc726, 0x0007e393, 0xffffe393, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000bc726, 0x0007e393, 0xffffe393, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00115566, 0x00083ca6, 0x00003ca6, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00115566, 0x00083ca6, 0x00003ca6, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00115566, 0x000b8256, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00115566, 0x000b8256, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x00115566, 0x000b8256, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00115566, 0x000b8256, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00115566, 0x000b8256, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x00115566, 0x000b8256, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00115566, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00115566, 0x00089da6, 0x00009da6, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x00115566, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x00115566, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x0015c733, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x0015c733, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00115566, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x00115566, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x0015c733, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x0015c733, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x000bc726, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000bc726, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x0015c733, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x0015c733, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x0015c733, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x00115566, 0x00083ca6, 0x00003ca6, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x0015c733, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x0015c733, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000e000d, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000e000d, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x0015c733, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0015c733, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x0015c733, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00115566, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00070e3d, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x0015c733, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000f1c80, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000f1c80, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00138e4d, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00138e4d, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00000000, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00000000, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000ce39a, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000ce39a, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000f1c80, 0x0006e38d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x000bc726, 0x000c0000, 0x0000e38d, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x001038f3, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x001038f3, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00115566, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00115566, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000e000d, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x0011d0d6, 0x000aeef0, 0x00000000, 0x00000000, 1, C_41_Kerning, 0, 0 }, { 0x42, 0x000eb586, 0x000aeef0, 0x00000000, 0x0000443d, 1, C_42_Kerning, 0, 0 }, { 0x43, 0x000c8373, 0x000aeef0, 0x00000000, 0x00009eba, 1, C_43_Kerning, 0, 0 }, { 0x44, 0x001157b0, 0x000aeef0, 0x00000000, 0x00008e3a, 1, C_44_Kerning, 0, 0 }, { 0x45, 0x000c5560, 0x000aeef0, 0x00000000, 0x00013dfd, 1, C_45_Kerning, 0, 0 }, { 0x46, 0x000fcfb0, 0x000aeef0, 0x00000000, 0x0001a4fa, 1, C_46_Kerning, 0, 0 }, { 0x47, 0x000d9b5d, 0x000aeef0, 0x00018e3a, 0x0000d82a, 1, C_47_Kerning, 0, 0 }, { 0x48, 0x00131cd0, 0x000aeef0, 0x00000000, 0x00000000, 1, C_48_Kerning, 0, 0 }, { 0x49, 0x000d1cca, 0x000aeef0, 0x00000000, 0x0000d5a0, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000f5563, 0x000aeef0, 0x00018e3a, 0x000302da, 1, C_4a_Kerning, 0, 0 }, { 0x4b, 0x0010e15d, 0x000aeef0, 0x00000000, 0x00000000, 1, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000f6f90, 0x000aeef0, 0x00000000, 0x00000000, 1, C_4c_Kerning, 0, 0 }, { 0x4d, 0x001915f6, 0x000aeef0, 0x00000000, 0x00000000, 1, C_4d_Kerning, 0, 0 }, { 0x4e, 0x00120456, 0x000aeef0, 0x00000000, 0x0002780a, 1, C_4e_Kerning, 0, 0 }, { 0x4f, 0x00116d4a, 0x000aeef0, 0x00000000, 0x00008e3a, 1, C_4f_Kerning, 0, 0 }, { 0x50, 0x000ff666, 0x000aeef0, 0x00000000, 0x00015f00, 1, C_50_Kerning, 0, 0 }, { 0x51, 0x00121c83, 0x000aeef0, 0x00018e3a, 0x00000000, 1, C_51_Kerning, 0, 0 }, { 0x52, 0x0013235d, 0x000aeef0, 0x00000000, 0x00000000, 1, C_52_Kerning, 0, 0 }, { 0x53, 0x000de39a, 0x000aeef0, 0x00000000, 0x00011706, 1, C_53_Kerning, 0, 0 }, { 0x54, 0x000d28b0, 0x000aeef0, 0x00000000, 0x0004666a, 1, C_54_Kerning, 0, 0 }, { 0x55, 0x000dfaea, 0x000aeef0, 0x00000000, 0x0001a4fa, 1, C_55_Kerning, 0, 0 }, { 0x56, 0x000e61ea, 0x000aeef0, 0x00000000, 0x00015f00, 1, C_56_Kerning, 0, 0 }, { 0x57, 0x0015e1f3, 0x000aeef0, 0x00000000, 0x00015f00, 1, C_57_Kerning, 0, 0 }, { 0x58, 0x000ff23d, 0x000aeef0, 0x00000000, 0x000257c6, 1, C_58_Kerning, 0, 0 }, { 0x59, 0x000edf10, 0x000aeef0, 0x00018e3a, 0x00015f00, 1, C_59_Kerning, 0, 0 }, { 0x5a, 0x000fdcca, 0x000aeef0, 0x00000000, 0x000150c6, 1, C_5a_Kerning, 0, 0 }, { 0x5b, 0x000f1c80, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000f1c80, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000f1c80, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000f1c80, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000f1c80, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000e000d, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x000e000d, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x000aaab3, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x000aaab3, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x000aaab3, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x000aaab3, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000bc726, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x000bc726, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x00098e40, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x00098e40, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x0007555a, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000bc726, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x000bc726, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000e000d, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x000bc726, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x0007555a, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x00118e4d, 0x0000e560, 0x000f1aa0, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x001093fa, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x001271da, 0x000aeef0, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x000a1c7a, 0x000b1c73, 0x00031c73, 0x000238e6, 0, 0, 0, 0 }, { 0x74, 0x000f1c80, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x000f1c80, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x00115566, 0x000b8256, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x00115566, 0x000b8256, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x000aaab3, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x000aaab3, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x000aaab3, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000e000d, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x00115566, 0x000b1c73, 0x000212f6, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x00115566, 0x000b1c73, 0x000212f6, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x00115566, 0x000b1c73, 0x000212f6, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00115566, 0x000b1c73, 0x000212f6, 0x00000000, 0, 0, 0, 0 } }; void cmsy5_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmss8.cc0000644000175000017500000003761410704611257016610 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMSS", 0xee, "TeX text", 0x00800000, 0xc6733691, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x0005aab0 }, { 0x03, "space_stretch", 0x0002d558 }, { 0x04, "space_shrink", 0x0001e390 }, { 0x05, "x_height", 0x00071c72 }, { 0x06, "quad", 0x00110010 }, { 0x07, "extra_space", 0x0001e390 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x00012e3a }, { 0x27, 0x00012e3a }, { 0x29, 0x00012e3a }, { 0x3f, 0x00012e3a }, { 0x5d, 0x00012e3a } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffb9c6e }, { 0x6c, 0xfffbf1c4 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001e390 }, { 0x3f, 0x0001e390 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c }, { 0x54, 0xfffe9554 }, { 0x55, 0xffff871c }, { 0x56, 0xfffe1c70 }, { 0x57, 0xfffe1c70 }, { 0x59, 0xfffe9554 }, { 0x74, 0xffff871c } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff871c }, { 0x56, 0xffff871c }, { 0x57, 0xffff871c }, { 0x58, 0xffff871c }, { 0x59, 0xffff871c } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffe9554 }, { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c }, { 0x61, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c }, { 0x72, 0xffff871c }, { 0x75, 0xffff871c } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x000078e4 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffe9554 }, { 0x56, 0xfffe1c70 }, { 0x57, 0xfffe1c70 }, { 0x59, 0xfffe9554 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff871c }, { 0x56, 0xffff871c }, { 0x57, 0xffff871c }, { 0x58, 0xffff871c }, { 0x59, 0xffff871c } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffe9554 }, { 0x2e, 0xfffe9554 }, { 0x41, 0xfffe9554 }, { 0x61, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffe9554 }, { 0x61, 0xfffe9554 }, { 0x65, 0xfffe9554 }, { 0x6f, 0xfffe9554 }, { 0x72, 0xfffe9554 }, { 0x75, 0xfffe9554 }, { 0x79, 0xfffe9554 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffe9554 }, { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c }, { 0x61, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c }, { 0x72, 0xffff871c }, { 0x75, 0xffff871c } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffe9554 }, { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c }, { 0x61, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c }, { 0x72, 0xffff871c }, { 0x75, 0xffff871c } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffe9554 }, { 0x61, 0xfffe9554 }, { 0x65, 0xfffe9554 }, { 0x6f, 0xfffe9554 }, { 0x72, 0xfffe9554 }, { 0x75, 0xfffe9554 } }; static TFM::Kerning C_61_Kerning[] = { { 0x72, 0xffff871c }, { 0x77, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x000078e4 }, { 0x64, 0x000078e4 }, { 0x65, 0x000078e4 }, { 0x6f, 0x000078e4 }, { 0x71, 0x000078e4 }, { 0x72, 0xffff871c }, { 0x77, 0xffff871c }, { 0x78, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x00012e3a }, { 0x27, 0x00012e3a }, { 0x29, 0x00012e3a }, { 0x3f, 0x00012e3a }, { 0x5d, 0x00012e3a } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x000078e4 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff871c }, { 0x63, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x000078e4 }, { 0x64, 0x000078e4 }, { 0x65, 0x000078e4 }, { 0x6f, 0x000078e4 }, { 0x71, 0x000078e4 }, { 0x72, 0xffff871c }, { 0x77, 0xffff871c }, { 0x78, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x000078e4 }, { 0x64, 0x000078e4 }, { 0x65, 0x000078e4 }, { 0x6f, 0x000078e4 }, { 0x71, 0x000078e4 }, { 0x72, 0xffff871c }, { 0x77, 0xffff871c }, { 0x78, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff871c } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff871c }, { 0x63, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffe9554 }, { 0x2e, 0xfffe9554 }, { 0x61, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x0009400a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000e2ab8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000d38f0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000a6398, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000b5560, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000c000a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000c4728, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000d38f0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000c4728, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000d38f0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000c4728, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x0009eab4, 0x000b1c72, 0x00000000, 0x00012e3a, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x00091c7a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x00091c7a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000dd562, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000dd562, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00040e3c, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00048720, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00088008, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00088008, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x00088008, 0x000a1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00088008, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00088008, 0x0009d554, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000b5560, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00078e40, 0x00000000, 0x0002b8e4, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00082ab2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000c4728, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000d38f0, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00088008, 0x0008aaac, 0x00018e3a, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000ea39c, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x0010872c, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000d38f0, 0x000be38e, 0x0000c71c, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00040e3c, 0x00071c72, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x00056392, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x00088008, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000e2ab8, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00088008, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000e2ab8, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000ce39a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x0004b8e8, 0x000b1c72, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x00069c78, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00069c78, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00088008, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000d38f0, 0x0009aab0, 0x0001aab0, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x0004b8e8, 0x000171c8, 0x00020e38, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0005aab0, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x0004b8e8, 0x000171c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00088008, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00088008, 0x000a8000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00088008, 0x000a8000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00088008, 0x000a8000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00088008, 0x000a8000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00088008, 0x000a8000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00088008, 0x000a8000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00088008, 0x000a8000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00088008, 0x000a8000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00088008, 0x000a8000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00088008, 0x000a8000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x0004b8e8, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x0004b8e8, 0x00071c72, 0x00020e38, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00056392, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000d38f0, 0x00061a2c, 0xfffe1a2c, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00080724, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00080724, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000b5560, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000b5560, 0x000b1c72, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000b5560, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000adc7c, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000c4728, 0x000b1c72, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000a31d2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x0009b8ee, 0x000b1c72, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000b5560, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000c000a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x0004b8e8, 0x000b1c72, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x00080724, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000bce44, 0x000b1c72, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x0009400a, 0x000b1c72, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000ed562, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000c000a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000c8e46, 0x000b1c72, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000adc7c, 0x000b1c72, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000c8e46, 0x000b1c72, 0x00020e38, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000b000a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x000971d0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000b9c7e, 0x000b1c72, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000baab6, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000b5560, 0x000b1c72, 0x00000000, 0x00003c72, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x00100e48, 0x000b1c72, 0x00000000, 0x00003c72, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000b5560, 0x000b1c72, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000b5560, 0x000b1c72, 0x00000000, 0x00006cce, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000a6398, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x0004f1cc, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00088008, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x0004f1cc, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00088008, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x0004b8e8, 0x000af6de, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x0004b8e8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x00082ab2, 0x00071c72, 0x00000000, 0x00000000, 3, C_61_Kerning, 0, 0 }, { 0x62, 0x0008c724, 0x000b1c72, 0x00000000, 0x00000000, 9, C_62_Kerning, 0, 0 }, { 0x63, 0x00078e40, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x0008c724, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00078e40, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000531cc, 0x000b1c72, 0x00000000, 0x00012e3a, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x00088008, 0x00071c72, 0x00031c72, 0x00003c72, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x0008c724, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x00040e3c, 0x000af6de, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00048720, 0x000af6de, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x00084e40, 0x000b1c72, 0x00000000, 0x00000000, 4, C_6b_Kerning, 0, 0 }, { 0x6c, 0x00040e3c, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000d800c, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x0008c724, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x00088008, 0x00071c72, 0x00000000, 0x00000000, 9, C_6f_Kerning, 0, 0 }, { 0x70, 0x0008c724, 0x00071c72, 0x00031c72, 0x00000000, 9, C_70_Kerning, 0, 0 }, { 0x71, 0x0008c724, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x0005ce3e, 0x00071c72, 0x00000000, 0x00003c72, 0, 0, 0, 0 }, { 0x73, 0x0006844a, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00062394, 0x00092496, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x0008c724, 0x00071c72, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x0007d55c, 0x00071c72, 0x00000000, 0x00003c72, 0, 0, 0, 0 }, { 0x77, 0x000b9c7c, 0x00071c72, 0x00000000, 0x00003c72, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x0007d55c, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x0007d55c, 0x00071c72, 0x00031c72, 0x00003c72, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x00076394, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00088008, 0x00071c72, 0x00000000, 0x000078e4, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x00110010, 0x00071c72, 0x00000000, 0x000078e4, 0, 0, 0, 0 }, { 0x7d, 0x00088008, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x00088008, 0x000ae188, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00088008, 0x000af6de, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmss8_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmex10.cc0000644000175000017500000002532610704611254016642 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMEX", 0xea, "TeX math extension", 0x00a00000, 0xfab17512, 13, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x00100003 }, { 0x07, "extra_space", 0x00000000 }, { 0x08, "default_rule_thickness", 0x0000a3d6 }, { 0x09, "big_op_spacing1", 0x0001c71d }, { 0x0a, "big_op_spacing2", 0x0002aaab }, { 0x0b, "big_op_spacing3", 0x00033333 }, { 0x0c, "big_op_spacing4", 0x0009999a }, { 0x0d, "big_op_spacing5", 0x0001999a } }; static TFM::Character character[] = { { 0x00, 0x00075558, 0x0000a3d6, 0x00128f6a, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x00075558, 0x0000a3d6, 0x00128f6a, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x0006aaad, 0x0000a3d6, 0x00128f6a, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x0006aaad, 0x0000a3d6, 0x00128f6a, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x00078e3b, 0x0000a3d6, 0x00128f6a, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x00078e3b, 0x0000a3d6, 0x00128f6a, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x00078e3b, 0x0000a3d6, 0x00128f6a, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x00078e3b, 0x0000a3d6, 0x00128f6a, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x00095558, 0x0000a3d6, 0x00128f6a, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x00095558, 0x0000a3d6, 0x00128f6a, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x00078e3b, 0x0000a3d6, 0x00128f6a, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x00078e3b, 0x0000a3d6, 0x00128f6a, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x00055556, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x0008e390, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x00093e95, 0x0000a3d6, 0x00128f6a, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x00093e95, 0x0000a3d6, 0x00128f6a, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00098e3b, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00098e3b, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000bc720, 0x0000a3d6, 0x0025c2aa, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000bc720, 0x0000a3d6, 0x0025c2aa, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000871ca, 0x0000a3d6, 0x0025c2aa, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000871ca, 0x0000a3d6, 0x0025c2aa, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00095558, 0x0000a3d6, 0x0025c2aa, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x00095558, 0x0000a3d6, 0x0025c2aa, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00095558, 0x0000a3d6, 0x0025c2aa, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00095558, 0x0000a3d6, 0x0025c2aa, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000c0002, 0x0000a3d6, 0x0025c2aa, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000c0002, 0x0000a3d6, 0x0025c2aa, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x000c0002, 0x0000a3d6, 0x0025c2aa, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000c0002, 0x0000a3d6, 0x0025c2aa, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x0010b60e, 0x0000a3d6, 0x0025c2aa, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x0010b60e, 0x0000a3d6, 0x0025c2aa, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x000caaae, 0x0000a3d6, 0x002f5c4a, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x000caaae, 0x0000a3d6, 0x002f5c4a, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x00095558, 0x0000a3d6, 0x002f5c4a, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x00095558, 0x0000a3d6, 0x002f5c4a, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000a38e6, 0x0000a3d6, 0x002f5c4a, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000a38e6, 0x0000a3d6, 0x002f5c4a, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000a38e6, 0x0000a3d6, 0x002f5c4a, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000a38e6, 0x0000a3d6, 0x002f5c4a, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x000ce393, 0x0000a3d6, 0x002f5c4a, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000ce393, 0x0000a3d6, 0x002f5c4a, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000ce393, 0x0000a3d6, 0x002f5c4a, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000ce393, 0x0000a3d6, 0x002f5c4a, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x001471cb, 0x0000a3d6, 0x002f5c4a, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x001471cb, 0x0000a3d6, 0x002f5c4a, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x000cfa53, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000cfa53, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000e0003, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000e0003, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000aaaad, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000aaaad, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000aaaad, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000aaaad, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000aaaad, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000aaaad, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000e38e6, 0x00000000, 0x000e6670, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000e38e6, 0x00000000, 0x000e6670, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000e38e6, 0x00000000, 0x000e6670, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x000e38e6, 0x00000000, 0x000e6670, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000e38e6, 0x00000000, 0x001ccce0, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000e38e6, 0x00000000, 0x001ccce0, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000e38e6, 0x00000000, 0x0004ccd0, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000aaaad, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000e0003, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000e0003, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x000e0003, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000e0003, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x0009c71e, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x0009c71e, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000d5558, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x0011c720, 0x0001999b, 0x0018000d, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x00078e3a, 0x00000000, 0x0011c728, 0x00031c73, 0, 0, 0, 0 }, { 0x49, 0x0008e390, 0x00000000, 0x00238e52, 0x00071c73, 0, 0, 0, 0 }, { 0x4a, 0x0011c720, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x00182d88, 0x0001999b, 0x0018000d, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x0011c720, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x00182d88, 0x0001999b, 0x0018000d, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x0011c720, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x00182d88, 0x0001999b, 0x0018000d, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x0010e392, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x000f1c75, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x00078e3a, 0x00000000, 0x0011c728, 0x00031c73, 0, 0, 0, 0 }, { 0x53, 0x000d5558, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000d5558, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x000d5558, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000d5558, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x000d5558, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x00171c76, 0x0001999b, 0x0018000d, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x001471cb, 0x0001999b, 0x0018000d, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x0008e390, 0x00000000, 0x00238e52, 0x00071c73, 0, 0, 0, 0 }, { 0x5b, 0x0011c720, 0x0001999b, 0x0018000d, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x0011c720, 0x0001999b, 0x0018000d, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x0011c720, 0x0001999b, 0x0018000d, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x0011c720, 0x0001999b, 0x0018000d, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x0011c720, 0x0001999b, 0x0018000d, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000f1c75, 0x00000000, 0x0010000e, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x001471cb, 0x0001999b, 0x0018000d, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x0008e390, 0x000b8e3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00100003, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00171c76, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x0008e390, 0x000b8e3a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x00100003, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x00171c76, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x00078e3b, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x00078e3b, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x000871ca, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000871ca, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x000871ca, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000871ca, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x000aaaad, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x000aaaad, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x00100003, 0x0000a3d6, 0x00128f6a, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x00100003, 0x0000a3d6, 0x001c290a, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x00100003, 0x0000a3d6, 0x0025c2aa, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x00100003, 0x0000a3d6, 0x002f5c4a, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x0010e392, 0x00000000, 0x001ccce0, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x0010e392, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x0010e392, 0x0000a3d6, 0x0008f5ca, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000c71ca, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x000aaaad, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x000aaaad, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x00073338, 0x0001eb83, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00073338, 0x0001eb83, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x00073338, 0x0001eb83, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x00073338, 0x0001eb83, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000c71ca, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000c71ca, 0x00000000, 0x000999a0, 0x00000000, 0, 0, 0, 0 } }; void cmex10_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmbx5.cc0000644000175000017500000004221610704611255016561 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMBX", 0xf4, "TeX text", 0x00500000, 0xab2d8c68, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x0008443a }, { 0x03, "space_stretch", 0x0003ddda }, { 0x04, "space_shrink", 0x000293e6 }, { 0x05, "x_height", 0x00071c73 }, { 0x06, "quad", 0x00184426 }, { 0x07, "extra_space", 0x000293e6 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x000213ea }, { 0x27, 0x000213ea }, { 0x29, 0x000213ea }, { 0x3f, 0x000213ea }, { 0x5d, 0x000213ea } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfff81c7d }, { 0x6c, 0xfff905ba } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x000293e6 }, { 0x3f, 0x000293e6 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff5b06 }, { 0x47, 0xffff5b06 }, { 0x4f, 0xffff5b06 }, { 0x51, 0xffff5b06 }, { 0x54, 0xfffe1113 }, { 0x55, 0xffff5b06 }, { 0x56, 0xfffd6c1a }, { 0x57, 0xfffd6c1a }, { 0x59, 0xfffe1113 }, { 0x74, 0xffff5b06 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff5b06 }, { 0x56, 0xffff5b06 }, { 0x57, 0xffff5b06 }, { 0x58, 0xffff5b06 }, { 0x59, 0xffff5b06 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffd6c1a }, { 0x43, 0xffff5b06 }, { 0x47, 0xffff5b06 }, { 0x4f, 0xffff5b06 }, { 0x51, 0xffff5b06 }, { 0x61, 0xfffe1113 }, { 0x65, 0xfffe1113 }, { 0x6f, 0xfffe1113 }, { 0x72, 0xfffe1113 }, { 0x75, 0xfffe1113 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x0000a4fa } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff5b06 }, { 0x47, 0xffff5b06 }, { 0x4f, 0xffff5b06 }, { 0x51, 0xffff5b06 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffe1113 }, { 0x56, 0xfffd6c1a }, { 0x57, 0xfffd6c1a }, { 0x59, 0xfffe1113 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff5b06 }, { 0x56, 0xffff5b06 }, { 0x57, 0xffff5b06 }, { 0x58, 0xffff5b06 }, { 0x59, 0xffff5b06 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffe1113 }, { 0x2e, 0xfffe1113 }, { 0x41, 0xfffe1113 }, { 0x61, 0xffff5b06 }, { 0x65, 0xffff5b06 }, { 0x6f, 0xffff5b06 } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff5b06 }, { 0x47, 0xffff5b06 }, { 0x4f, 0xffff5b06 }, { 0x51, 0xffff5b06 }, { 0x54, 0xfffe1113 }, { 0x55, 0xffff5b06 }, { 0x56, 0xfffd6c1a }, { 0x57, 0xfffd6c1a }, { 0x59, 0xfffe1113 }, { 0x74, 0xffff5b06 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffe1113 }, { 0x61, 0xfffe1113 }, { 0x65, 0xfffe1113 }, { 0x6f, 0xfffe1113 }, { 0x72, 0xfffe1113 }, { 0x75, 0xfffe1113 }, { 0x79, 0xffff5b06 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffd6c1a }, { 0x43, 0xffff5b06 }, { 0x47, 0xffff5b06 }, { 0x4f, 0xffff5b06 }, { 0x51, 0xffff5b06 }, { 0x61, 0xfffe1113 }, { 0x65, 0xfffe1113 }, { 0x6f, 0xfffe1113 }, { 0x72, 0xfffe1113 }, { 0x75, 0xfffe1113 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffd6c1a }, { 0x43, 0xffff5b06 }, { 0x47, 0xffff5b06 }, { 0x4f, 0xffff5b06 }, { 0x51, 0xffff5b06 }, { 0x61, 0xfffe1113 }, { 0x65, 0xfffe1113 }, { 0x6f, 0xfffe1113 }, { 0x72, 0xfffe1113 }, { 0x75, 0xfffe1113 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff5b06 }, { 0x47, 0xffff5b06 }, { 0x4f, 0xffff5b06 }, { 0x51, 0xffff5b06 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffe1113 }, { 0x61, 0xfffe1113 }, { 0x65, 0xfffe1113 }, { 0x6f, 0xfffe1113 }, { 0x72, 0xfffe1113 }, { 0x75, 0xfffe1113 } }; static TFM::Kerning C_61_Kerning[] = { { 0x6a, 0x000149f3 }, { 0x76, 0xffff5b06 }, { 0x77, 0xffff5b06 }, { 0x79, 0xffff5b06 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x0000a4fa }, { 0x64, 0x0000a4fa }, { 0x65, 0x0000a4fa }, { 0x6a, 0x000149f3 }, { 0x6f, 0x0000a4fa }, { 0x71, 0x0000a4fa }, { 0x76, 0xffff5b06 }, { 0x77, 0xffff5b06 }, { 0x78, 0xffff5b06 }, { 0x79, 0xffff5b06 } }; static TFM::Kerning C_63_Kerning[] = { { 0x68, 0xffff5b06 }, { 0x6b, 0xffff5b06 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x000213ea }, { 0x27, 0x000213ea }, { 0x29, 0x000213ea }, { 0x3f, 0x000213ea }, { 0x5d, 0x000213ea } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x0000a4fa } }; static TFM::Kerning C_68_Kerning[] = { { 0x62, 0xffff5b06 }, { 0x74, 0xffff5b06 }, { 0x75, 0xffff5b06 }, { 0x76, 0xffff5b06 }, { 0x77, 0xffff5b06 }, { 0x79, 0xffff5b06 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xfffeb60d }, { 0x61, 0xffff5b06 }, { 0x63, 0xffff5b06 }, { 0x65, 0xffff5b06 }, { 0x6f, 0xffff5b06 } }; static TFM::Kerning C_6d_Kerning[] = { { 0x62, 0xffff5b06 }, { 0x74, 0xffff5b06 }, { 0x75, 0xffff5b06 }, { 0x76, 0xffff5b06 }, { 0x77, 0xffff5b06 }, { 0x79, 0xffff5b06 } }; static TFM::Kerning C_6e_Kerning[] = { { 0x62, 0xffff5b06 }, { 0x74, 0xffff5b06 }, { 0x75, 0xffff5b06 }, { 0x76, 0xffff5b06 }, { 0x77, 0xffff5b06 }, { 0x79, 0xffff5b06 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x0000a4fa }, { 0x64, 0x0000a4fa }, { 0x65, 0x0000a4fa }, { 0x6a, 0x000149f3 }, { 0x6f, 0x0000a4fa }, { 0x71, 0x0000a4fa }, { 0x76, 0xffff5b06 }, { 0x77, 0xffff5b06 }, { 0x78, 0xffff5b06 }, { 0x79, 0xffff5b06 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x0000a4fa }, { 0x64, 0x0000a4fa }, { 0x65, 0x0000a4fa }, { 0x6a, 0x000149f3 }, { 0x6f, 0x0000a4fa }, { 0x71, 0x0000a4fa }, { 0x76, 0xffff5b06 }, { 0x77, 0xffff5b06 }, { 0x78, 0xffff5b06 }, { 0x79, 0xffff5b06 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff5b06 }, { 0x79, 0xffff5b06 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff5b06 } }; static TFM::Kerning C_76_Kerning[] = { { 0x61, 0xfffeb60d }, { 0x61, 0xffff5b06 }, { 0x63, 0xffff5b06 }, { 0x65, 0xffff5b06 }, { 0x6f, 0xffff5b06 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff5b06 }, { 0x63, 0xffff5b06 }, { 0x65, 0xffff5b06 }, { 0x6f, 0xffff5b06 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffe1113 }, { 0x2e, 0xfffe1113 }, { 0x61, 0xffff5b06 }, { 0x65, 0xffff5b06 }, { 0x6f, 0xffff5b06 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000e5af3, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x0013ddc6, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x001293d3, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x00108873, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000fffed, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x001271b0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x001149e0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x001293d3, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x001149e0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x001293d3, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x001149e0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000e9986, 0x000b1c73, 0x00000000, 0x000213ea, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x000df48d, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000df48d, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x0014eed3, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x0014eed3, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x0006fa46, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00079f40, 0x00071c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000c2213, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000c2213, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000c2213, 0x000a1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000c2213, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000c2213, 0x0009d950, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x0011d266, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x000ad820, 0x00000000, 0x0002b8e6, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000c332d, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x001149e0, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x001293d3, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x000c2213, 0x0008aaad, 0x00018e3a, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x00156bfd, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x0017ffe3, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x001293d3, 0x000bc16d, 0x0000c71d, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x0006fa46, 0x00071c73, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x00079990, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x000c4f9a, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x0013ddc6, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000c2213, 0x000c0000, 0x0000e38d, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x0013ddc6, 0x000c0000, 0x0000e38d, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x001293d3, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x0006fa46, 0x000b1c73, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x00098e2d, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00098e2d, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000c2213, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x001293d3, 0x000bbbb3, 0x0003bbb3, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x0006fa46, 0x0002c16d, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0008443a, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x0006fa46, 0x0002c16d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000c2213, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000c2213, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000c2213, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000c2213, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000c2213, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000c2213, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000c2213, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000c2213, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000c2213, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000c2213, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000c2213, 0x000a4fa6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x0006fa46, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x0006fa46, 0x00071c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00079990, 0x00080000, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x001293d3, 0x0006d243, 0xfffed243, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000b7d1a, 0x00080000, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000b7d1a, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x001293d3, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x0011d266, 0x000afa50, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x0010e92a, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x001149e0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x0012331d, 0x000afa50, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000fa4e6, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000effed, 0x000afa50, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x0012b5f6, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x001271b0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x0008ccc0, 0x000afa50, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000c6656, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x00127760, 0x000afa50, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000e5af3, 0x000afa50, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x00164f8a, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x001271b0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x0011f48a, 0x000afa50, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x00104430, 0x000afa50, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x0011f48a, 0x000afa50, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x0011a4e6, 0x000afa50, 0x00000000, 0x00000000, 10, C_52_Kerning, 0, 0 }, { 0x53, 0x000d6c06, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x0010aa96, 0x000afa50, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x0012220d, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x0011d266, 0x000afa50, 0x00000000, 0x0000527d, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x00184426, 0x000afa50, 0x00000000, 0x0000527d, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x0011d266, 0x000afa50, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x0011d266, 0x000afa50, 0x00000000, 0x0000947a, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000eb5fa, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x0007056d, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000c4f9a, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x0007056d, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000c2213, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x0006fa46, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x0006fa46, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x000bcf96, 0x00071c73, 0x00000000, 0x00000000, 4, C_61_Kerning, 0, 0 }, { 0x62, 0x000d6c06, 0x000b1c73, 0x00000000, 0x00000000, 10, C_62_Kerning, 0, 0 }, { 0x63, 0x000ad820, 0x00071c73, 0x00000000, 0x00000000, 2, C_63_Kerning, 0, 0 }, { 0x64, 0x000d6c06, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x000b13dd, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x00079f40, 0x000b1c73, 0x00000000, 0x000213ea, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x000c2213, 0x00071c73, 0x00031c73, 0x0000527d, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000d6c06, 0x000b1c73, 0x00000000, 0x00000000, 6, C_68_Kerning, 0, 0 }, { 0x69, 0x0006fa46, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00079f40, 0x000b1c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000cc70d, 0x000b1c73, 0x00000000, 0x00000000, 5, C_6b_Kerning, 0, 0 }, { 0x6c, 0x0006fa46, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x0013ddc6, 0x00071c73, 0x00000000, 0x00000000, 6, C_6d_Kerning, 0, 0 }, { 0x6e, 0x000d6c06, 0x00071c73, 0x00000000, 0x00000000, 6, C_6e_Kerning, 0, 0 }, { 0x6f, 0x000c2213, 0x00071c73, 0x00000000, 0x00000000, 10, C_6f_Kerning, 0, 0 }, { 0x70, 0x000d6c06, 0x00071c73, 0x00031c73, 0x00000000, 10, C_70_Kerning, 0, 0 }, { 0x71, 0x000cc70d, 0x00071c73, 0x00031c73, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x0009f496, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x0009af2d, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00098e2d, 0x000a28a6, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x000d6c06, 0x00071c73, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x000cc70d, 0x00071c73, 0x00000000, 0x0000527d, 5, C_76_Kerning, 0, 0 }, { 0x77, 0x001149e0, 0x00071c73, 0x00000000, 0x0000527d, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x000cc70d, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x000cc70d, 0x00071c73, 0x00031c73, 0x0000527d, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x000ad820, 0x00071c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000c2213, 0x00071c73, 0x00000000, 0x0000a4fa, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x00184426, 0x00071c73, 0x00000000, 0x0000a4fa, 0, 0, 0, 0 }, { 0x7d, 0x000c2213, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000c2213, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000c2213, 0x000b1c73, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmbx5_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmtt8.cc0000644000175000017500000002515410704611261016601 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMTT", 0xee, "TeX typewriter text", 0x00800000, 0xdf43ca73, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00088008 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x00110010 }, { 0x07, "extra_space", 0x00088008 } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x0e } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x0f } }; static TFM::Character character[] = { { 0x00, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x00088008, 0x000638e4, 0x00038e38, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x00088008, 0x000638e4, 0x00038e38, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00088008, 0x0006e38e, 0x00038e38, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x00088008, 0x00090e38, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00088008, 0x00092220, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00088008, 0x00000000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00088008, 0x0008aaaa, 0x0001c71c, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x00088008, 0x000aaaaa, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00088008, 0x00038000, 0x0001c71c, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00088008, 0x000b1c72, 0x00015556, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x00088008, 0x000b1c72, 0x00015556, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x00088008, 0x000b1c72, 0x00015554, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00088008, 0x000b1c72, 0x00015554, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00088008, 0x00085556, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x00088008, 0x00088824, 0xfffec108, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00088008, 0x0002271e, 0x000238e4, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00088008, 0x00088824, 0xfffec108, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x00088008, 0x0002271e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00088008, 0x000b1c72, 0x00015554, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00088008, 0x0006e38e, 0x000238e4, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00088008, 0x0008f1c8, 0xffff2aac, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x00088008, 0x0006b49e, 0xfffced82, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00088008, 0x0008f1c8, 0xffff2aac, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4a, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x00088008, 0x0009c71c, 0x000238e4, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x00088008, 0x000b1c72, 0x00015554, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x00088008, 0x000b1c72, 0x00015554, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00088008, 0x000b1c72, 0x00015554, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00088008, 0x00000000, 0x000193e4, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x00088008, 0x0006e38e, 0x00038e38, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00088008, 0x0009c71c, 0x00038e38, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x00088008, 0x0006e38e, 0x00038e38, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x00088008, 0x0006e38e, 0x00038e38, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00088008, 0x0008db70, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00088008, 0x0006e38e, 0x00038e38, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x00088008, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00088008, 0x000b1c72, 0x00015554, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x00088008, 0x000b1c72, 0x00015554, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x00088008, 0x000b1c72, 0x00015554, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00088008, 0x0009c71c, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmtt8_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/msam5.cc0000644000175000017500000002567710704611261016576 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "MSAM", 0xf4, "TeX math symbols", 0x00500000, 0x22891c78, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38d }, { 0x06, "quad", 0x00178e4d }, { 0x07, "extra_space", 0x00000000 }, { 0x08, "num1", 0x000ecdca }, { 0x09, "num2", 0x0006330d }, { 0x0a, "num3", 0x000810ed }, { 0x0b, "denom1", 0x00106763 }, { 0x0c, "denom2", 0x000882b3 }, { 0x0d, "sup1", 0x00080e90 }, { 0x0e, "sup2", 0x000674f6 }, { 0x0f, "sup3", 0x0004b60d }, { 0x10, "sub1", 0x00033333 }, { 0x11, "sub2", 0x00066666 }, { 0x12, "supdrop", 0x0007e940 }, { 0x13, "subdrop", 0x0001999a }, { 0x14, "delim1", 0x001fae13 }, { 0x15, "delim2", 0x0016b853 }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Character character[] = { { 0x00, 0x00115566, 0x000d1c9d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x00115566, 0x000d1c9d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x00115566, 0x000d1c9d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x00115566, 0x000d1c9d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x00115566, 0x000d1c9d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x0007555a, 0x0008b1c6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000f1c80, 0x000ae393, 0x00022d43, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000f1c80, 0x000ae393, 0x00022d43, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x00115566, 0x000ae393, 0x00029f83, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x00115566, 0x000ae393, 0x00029f83, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x0015c733, 0x0008b1c6, 0x000087d3, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x0015c733, 0x0008b1c6, 0x000087d3, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x00115566, 0x000d1c9d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x001038f3, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x00138e4d, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000e000d, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x0015c733, 0x0008b1c6, 0x000087d3, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x0015c733, 0x0008b1c6, 0x000087d3, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x0015c733, 0x000b779d, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x0015c733, 0x000b779d, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x001271da, 0x000ae393, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x001271da, 0x000ae393, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000a1c7a, 0x000ae393, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000a1c7a, 0x000ae393, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x000a1c7a, 0x000ae393, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000a1c7a, 0x000ae393, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x0018001a, 0x0008b1c6, 0x000087d3, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x0018001a, 0x0008b1c6, 0x000087d3, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x0015c733, 0x000b779d, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x0015c733, 0x000b779d, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000bc726, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000bc726, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x0015c733, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x001d8e5a, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x0015c733, 0x0008b1c6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x0015c733, 0x0008b1c6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00115566, 0x000da216, 0x00055fe6, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x00115566, 0x000d1c9d, 0x00055fe6, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x00115566, 0x000d1c9d, 0x00055fe6, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x00115566, 0x000e08ba, 0x0005f15d, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x0018001a, 0x0008b1c6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000f1c80, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000f1c80, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x00115566, 0x000ae393, 0x00029f83, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x000f8e4d, 0x00115566, 0x00029f83, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00115566, 0x000d1c9d, 0x0004f4a0, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x00115566, 0x000d1c9d, 0x0004f4a0, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00115566, 0x000e08ba, 0x0005f15d, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00115566, 0x000b779d, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00115566, 0x000b779d, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00115566, 0x000b779d, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00115566, 0x000b779d, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00115566, 0x000b779d, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00115566, 0x000da216, 0x0005f15d, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00115566, 0x000b779d, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00115566, 0x000c3ded, 0x00047bdd, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00070e3d, 0x0008b1c6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000a000d, 0x00080826, 0x000042e6, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00115566, 0x000a5afa, 0x00029f83, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00115566, 0x000a5afa, 0x00029f83, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00115566, 0x000b779d, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x00115566, 0x000da216, 0x0005f15d, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x00115566, 0x000b779d, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00115566, 0x000c3ded, 0x00047bdd, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x00115566, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x00115566, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x42, 0x00115566, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x00115566, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x00115566, 0x000b779d, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x45, 0x00115566, 0x000b779d, 0x00038256, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x00111c73, 0x000ae393, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x47, 0x000bc726, 0x000c3ded, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000e0003, 0x0008b1c6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x00115566, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x4a, 0x00115566, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000a000d, 0x00080826, 0x000042e6, 0x00000000, 0, 0, 0, 0 }, { 0x4c, 0x000a000d, 0x00080826, 0x000042e6, 0x00000000, 0, 0, 0, 0 }, { 0x4d, 0x000e0003, 0x0008b1c6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000e0003, 0x0008b1c6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000e0003, 0x0008b1c6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x50, 0x00115566, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x51, 0x00115566, 0x00105693, 0x00085693, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x00115566, 0x00105693, 0x00085693, 0x00000000, 0, 0, 0, 0 }, { 0x53, 0x00115566, 0x00123b90, 0x000a3b90, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x00115566, 0x00123b90, 0x000a3b90, 0x00000000, 0, 0, 0, 0 }, { 0x55, 0x001093fa, 0x000ae393, 0x00000000, 0x00008000, 0, 0, 0, 0 }, { 0x56, 0x0015c733, 0x000ae393, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x57, 0x0015c733, 0x000ae393, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x58, 0x001271da, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x59, 0x000e000d, 0x000ae393, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x5a, 0x000e000d, 0x000ae393, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x000e000d, 0x000c3ded, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x001038f3, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x001038f3, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x001038f3, 0x0008b1c6, 0x000087d3, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00115566, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x00115566, 0x000ae393, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x00115566, 0x000ae393, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00115566, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00115566, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x000f1c80, 0x0008b1c6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x000f1c80, 0x0008b1c6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x00108e3a, 0x0008b1c6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x00108e3a, 0x0008b1c6, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x00115566, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x00115566, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00115566, 0x000da216, 0x0005f15d, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x00115566, 0x000da216, 0x0005f15d, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x00115566, 0x000a5afa, 0x00022d43, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x00115566, 0x000a5afa, 0x00022d43, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x001c71e6, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x001c71e6, 0x00099d5a, 0x00019d5a, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x000bc726, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x000bc726, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x001093fa, 0x000b779d, 0x00029f83, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x000fd28d, 0x000b779d, 0x00029f83, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x000f1c80, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x00115566, 0x000d1c9d, 0x00029f83, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x00115566, 0x000657ad, 0xfffe57ad, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x00115566, 0x00080826, 0x000042e6, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x000bc726, 0x00080826, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x000bc726, 0x00080826, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x001271da, 0x000ae393, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000bc726, 0x000d1c9d, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x000ce39a, 0x0006e38d, 0x00031f0a, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x00115566, 0x000ae393, 0x00029f83, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x00115566, 0x000ae393, 0x00029f83, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00115566, 0x000ae393, 0x00029f83, 0x00000000, 0, 0, 0, 0 } }; void msam5_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmbx10.cc0000644000175000017500000004221710704611255016636 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMBX", 0xea, "TeX text", 0x00a00000, 0x1af22256, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x00062220 }, { 0x03, "space_stretch", 0x00031110 }, { 0x04, "space_shrink", 0x00020b60 }, { 0x05, "x_height", 0x00071c72 }, { 0x06, "quad", 0x00126660 }, { 0x07, "extra_space", 0x00020b60 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x0001be93 }, { 0x27, 0x0001be93 }, { 0x29, 0x0001be93 }, { 0x3f, 0x0001be93 }, { 0x5d, 0x0001be93 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfff9f4a0 }, { 0x6c, 0xfffae390 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x00020b60 }, { 0x3f, 0x00020b60 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff7d28 }, { 0x47, 0xffff7d28 }, { 0x4f, 0xffff7d28 }, { 0x51, 0xffff7d28 }, { 0x54, 0xfffe7778 }, { 0x55, 0xffff7d28 }, { 0x56, 0xfffdf4a0 }, { 0x57, 0xfffdf4a0 }, { 0x59, 0xfffe7778 }, { 0x74, 0xffff7d28 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff7d28 }, { 0x56, 0xffff7d28 }, { 0x57, 0xffff7d28 }, { 0x58, 0xffff7d28 }, { 0x59, 0xffff7d28 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffdf4a0 }, { 0x43, 0xffff7d28 }, { 0x47, 0xffff7d28 }, { 0x4f, 0xffff7d28 }, { 0x51, 0xffff7d28 }, { 0x61, 0xfffe7778 }, { 0x65, 0xfffe7778 }, { 0x6f, 0xfffe7778 }, { 0x72, 0xfffe7778 }, { 0x75, 0xfffe7778 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x000082d8 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff7d28 }, { 0x47, 0xffff7d28 }, { 0x4f, 0xffff7d28 }, { 0x51, 0xffff7d28 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffe7778 }, { 0x56, 0xfffdf4a0 }, { 0x57, 0xfffdf4a0 }, { 0x59, 0xfffe7778 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff7d28 }, { 0x56, 0xffff7d28 }, { 0x57, 0xffff7d28 }, { 0x58, 0xffff7d28 }, { 0x59, 0xffff7d28 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffe7778 }, { 0x2e, 0xfffe7778 }, { 0x41, 0xfffe7778 }, { 0x61, 0xffff7d28 }, { 0x65, 0xffff7d28 }, { 0x6f, 0xffff7d28 } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff7d28 }, { 0x47, 0xffff7d28 }, { 0x4f, 0xffff7d28 }, { 0x51, 0xffff7d28 }, { 0x54, 0xfffe7778 }, { 0x55, 0xffff7d28 }, { 0x56, 0xfffdf4a0 }, { 0x57, 0xfffdf4a0 }, { 0x59, 0xfffe7778 }, { 0x74, 0xffff7d28 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffe7778 }, { 0x61, 0xfffe7778 }, { 0x65, 0xfffe7778 }, { 0x6f, 0xfffe7778 }, { 0x72, 0xfffe7778 }, { 0x75, 0xfffe7778 }, { 0x79, 0xffff7d28 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffdf4a0 }, { 0x43, 0xffff7d28 }, { 0x47, 0xffff7d28 }, { 0x4f, 0xffff7d28 }, { 0x51, 0xffff7d28 }, { 0x61, 0xfffe7778 }, { 0x65, 0xfffe7778 }, { 0x6f, 0xfffe7778 }, { 0x72, 0xfffe7778 }, { 0x75, 0xfffe7778 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffdf4a0 }, { 0x43, 0xffff7d28 }, { 0x47, 0xffff7d28 }, { 0x4f, 0xffff7d28 }, { 0x51, 0xffff7d28 }, { 0x61, 0xfffe7778 }, { 0x65, 0xfffe7778 }, { 0x6f, 0xfffe7778 }, { 0x72, 0xfffe7778 }, { 0x75, 0xfffe7778 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff7d28 }, { 0x47, 0xffff7d28 }, { 0x4f, 0xffff7d28 }, { 0x51, 0xffff7d28 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffe7778 }, { 0x61, 0xfffe7778 }, { 0x65, 0xfffe7778 }, { 0x6f, 0xfffe7778 }, { 0x72, 0xfffe7778 }, { 0x75, 0xfffe7778 } }; static TFM::Kerning C_61_Kerning[] = { { 0x6a, 0x000105b0 }, { 0x76, 0xffff7d28 }, { 0x77, 0xffff7d28 }, { 0x79, 0xffff7d28 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x000082d8 }, { 0x64, 0x000082d8 }, { 0x65, 0x000082d8 }, { 0x6a, 0x000105b0 }, { 0x6f, 0x000082d8 }, { 0x71, 0x000082d8 }, { 0x76, 0xffff7d28 }, { 0x77, 0xffff7d28 }, { 0x78, 0xffff7d28 }, { 0x79, 0xffff7d28 } }; static TFM::Kerning C_63_Kerning[] = { { 0x68, 0xffff7d28 }, { 0x6b, 0xffff7d28 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x0001be93 }, { 0x27, 0x0001be93 }, { 0x29, 0x0001be93 }, { 0x3f, 0x0001be93 }, { 0x5d, 0x0001be93 } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x000082d8 } }; static TFM::Kerning C_68_Kerning[] = { { 0x62, 0xffff7d28 }, { 0x74, 0xffff7d28 }, { 0x75, 0xffff7d28 }, { 0x76, 0xffff7d28 }, { 0x77, 0xffff7d28 }, { 0x79, 0xffff7d28 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xfffefa50 }, { 0x61, 0xffff7d28 }, { 0x63, 0xffff7d28 }, { 0x65, 0xffff7d28 }, { 0x6f, 0xffff7d28 } }; static TFM::Kerning C_6d_Kerning[] = { { 0x62, 0xffff7d28 }, { 0x74, 0xffff7d28 }, { 0x75, 0xffff7d28 }, { 0x76, 0xffff7d28 }, { 0x77, 0xffff7d28 }, { 0x79, 0xffff7d28 } }; static TFM::Kerning C_6e_Kerning[] = { { 0x62, 0xffff7d28 }, { 0x74, 0xffff7d28 }, { 0x75, 0xffff7d28 }, { 0x76, 0xffff7d28 }, { 0x77, 0xffff7d28 }, { 0x79, 0xffff7d28 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x000082d8 }, { 0x64, 0x000082d8 }, { 0x65, 0x000082d8 }, { 0x6a, 0x000105b0 }, { 0x6f, 0x000082d8 }, { 0x71, 0x000082d8 }, { 0x76, 0xffff7d28 }, { 0x77, 0xffff7d28 }, { 0x78, 0xffff7d28 }, { 0x79, 0xffff7d28 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x000082d8 }, { 0x64, 0x000082d8 }, { 0x65, 0x000082d8 }, { 0x6a, 0x000105b0 }, { 0x6f, 0x000082d8 }, { 0x71, 0x000082d8 }, { 0x76, 0xffff7d28 }, { 0x77, 0xffff7d28 }, { 0x78, 0xffff7d28 }, { 0x79, 0xffff7d28 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff7d28 }, { 0x79, 0xffff7d28 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff7d28 } }; static TFM::Kerning C_76_Kerning[] = { { 0x61, 0xfffefa50 }, { 0x61, 0xffff7d28 }, { 0x63, 0xffff7d28 }, { 0x65, 0xffff7d28 }, { 0x6f, 0xffff7d28 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff7d28 }, { 0x63, 0xffff7d28 }, { 0x65, 0xffff7d28 }, { 0x6f, 0xffff7d28 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffe7778 }, { 0x2e, 0xfffe7778 }, { 0x61, 0xffff7d28 }, { 0x65, 0xffff7d28 }, { 0x6f, 0xffff7d28 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000b110d, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000f5550, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000e4fa0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000ce38a, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000c4440, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000e6662, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000d49f0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000e4fa0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000d49f0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000e4fa0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000d49f0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000abbb8, 0x000b1c72, 0x00000000, 0x0001be93, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x000a38e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000a38e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000f5550, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000f5550, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00051c70, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x00059f48, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x00093330, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00093330, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x00093330, 0x000a1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00093330, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x00093330, 0x000989aa, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000de93a, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00082d80, 0x00000000, 0x0002b8e3, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00098e36, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000d49f0, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000e4fa0, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x00093330, 0x0008aaab, 0x00018e3a, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x0010aaa5, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x0012b605, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000e4fa0, 0x000bc16d, 0x0000c71d, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00051c70, 0x00071c72, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x00059998, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x0009a4f8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000f5550, 0x000b1c72, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x00093330, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000f5550, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000e4fa0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x00051c70, 0x000b1c72, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x000727d0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000727d0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00093330, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000e4fa0, 0x000a2220, 0x00022220, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00051c70, 0x00027d28, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x00062220, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x00051c70, 0x00027d28, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00093330, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00093330, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00093330, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00093330, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00093330, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00093330, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00093330, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00093330, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00093330, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00093330, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00093330, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00051c70, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00051c70, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00059998, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000e4fa0, 0x000641fe, 0xfffe41fe, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x0008b058, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x0008b058, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000e4fa0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000de93a, 0x000afa50, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000d16bd, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000d49f0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000e1c6d, 0x000afa50, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000c16bd, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000b93e5, 0x000afa50, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000e7773, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000e6662, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x0006fa4e, 0x000afa50, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000982d5, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000e6c12, 0x000afa50, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000b110d, 0x000afa50, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x00117772, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000e6662, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000dd278, 0x000afa50, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000c93e5, 0x000afa50, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000dd278, 0x000afa50, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000dccc8, 0x000afa50, 0x00000000, 0x00000000, 10, C_52_Kerning, 0, 0 }, { 0x53, 0x000a38e0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000cccc8, 0x000afa50, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000e27ce, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000de93a, 0x000afa50, 0x00000000, 0x0000416d, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x001305aa, 0x000afa50, 0x00000000, 0x0000416d, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000de93a, 0x000afa50, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000de93a, 0x000afa50, 0x00000000, 0x000075c2, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000b3e90, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x00051c70, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x0009a4f8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00051c70, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00093330, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00051c70, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x00051c70, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x0008f1c3, 0x00071c72, 0x00000000, 0x00000000, 4, C_61_Kerning, 0, 0 }, { 0x62, 0x000a38e0, 0x000b1c72, 0x00000000, 0x00000000, 10, C_62_Kerning, 0, 0 }, { 0x63, 0x00082d80, 0x00071c72, 0x00000000, 0x00000000, 2, C_63_Kerning, 0, 0 }, { 0x64, 0x000a38e0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00086eed, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x00059f48, 0x000b1c72, 0x00000000, 0x0001be93, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x00093330, 0x00071c72, 0x00031c72, 0x0000416d, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000a38e0, 0x000b1c72, 0x00000000, 0x00000000, 6, C_68_Kerning, 0, 0 }, { 0x69, 0x00051c70, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00059f48, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x0009b608, 0x000b1c72, 0x00000000, 0x00000000, 5, C_6b_Kerning, 0, 0 }, { 0x6c, 0x00051c70, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000f5550, 0x00071c72, 0x00000000, 0x00000000, 6, C_6d_Kerning, 0, 0 }, { 0x6e, 0x000a38e0, 0x00071c72, 0x00000000, 0x00000000, 6, C_6e_Kerning, 0, 0 }, { 0x6f, 0x00093330, 0x00071c72, 0x00000000, 0x00000000, 10, C_6f_Kerning, 0, 0 }, { 0x70, 0x000a38e0, 0x00071c72, 0x00031c72, 0x00000000, 10, C_70_Kerning, 0, 0 }, { 0x71, 0x0009b608, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x000793e8, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x000741fb, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x000727d0, 0x000a28a3, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x000a38e0, 0x00071c72, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x0009b608, 0x00071c72, 0x00000000, 0x0000416d, 5, C_76_Kerning, 0, 0 }, { 0x77, 0x000d49f0, 0x00071c72, 0x00000000, 0x0000416d, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x0009b608, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x0009b608, 0x00071c72, 0x00031c72, 0x0000416d, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x00082d80, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00093330, 0x00071c72, 0x00000000, 0x000082d8, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x00126660, 0x00071c72, 0x00000000, 0x000082d8, 0, 0, 0, 0 }, { 0x7d, 0x00093330, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x00093330, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x00093330, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmbx10_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmmi10.cc0000644000175000017500000004544710704611254016641 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMMI", 0xea, "TeX math italic", 0x00a00000, 0x0ba0623e, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x00100003 }, { 0x07, "extra_space", 0x00000000 } }; static TFM::Kerning C_00_Kerning[] = { { 0x3a, 0xfffe38e3 }, { 0x3b, 0xfffe38e3 }, { 0x3d, 0xffff1c72 }, { 0x7f, 0x00015558 } }; static TFM::Kerning C_01_Kerning[] = { { 0x7f, 0x0002aab0 } }; static TFM::Kerning C_02_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_03_Kerning[] = { { 0x7f, 0x0002aab0 } }; static TFM::Kerning C_04_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_05_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 }, { 0x3d, 0xffff1c72 }, { 0x7f, 0x0000e390 } }; static TFM::Kerning C_06_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_07_Kerning[] = { { 0x3a, 0xfffe38e3 }, { 0x3b, 0xfffe38e3 }, { 0x3d, 0xffff1c72 }, { 0x7f, 0x0000e390 } }; static TFM::Kerning C_08_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_09_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 }, { 0x3d, 0xffff1c72 }, { 0x7f, 0x0000e390 } }; static TFM::Kerning C_0a_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x7f, 0x000071c8 } }; static TFM::Kerning C_0c_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_0e_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 }, { 0x7f, 0x0000e390 } }; static TFM::Kerning C_0f_Kerning[] = { { 0x7f, 0x0000e390 } }; static TFM::Kerning C_10_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_11_Kerning[] = { { 0x7f, 0x0000e390 } }; static TFM::Kerning C_12_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_13_Kerning[] = { { 0x7f, 0x0000e390 } }; static TFM::Kerning C_16_Kerning[] = { { 0x7f, 0x000071c8 } }; static TFM::Kerning C_17_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 }, { 0x7f, 0x000071c8 } }; static TFM::Kerning C_18_Kerning[] = { { 0x7f, 0x0001c720 } }; static TFM::Kerning C_1a_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_1b_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 } }; static TFM::Kerning C_1c_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 }, { 0x7f, 0x000071c8 } }; static TFM::Kerning C_1d_Kerning[] = { { 0x7f, 0x000071c8 } }; static TFM::Kerning C_1e_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_1f_Kerning[] = { { 0x7f, 0x0000e390 } }; static TFM::Kerning C_20_Kerning[] = { { 0x7f, 0x0001c720 } }; static TFM::Kerning C_22_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_23_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_25_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_26_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_27_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_3d_Kerning[] = { { 0x01, 0xffff1c72 }, { 0x41, 0xffff1c72 }, { 0x4d, 0xffff1c72 }, { 0x4e, 0xffff1c72 }, { 0x59, 0x0000e38e }, { 0x5a, 0xffff1c72 } }; static TFM::Kerning C_40_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_41_Kerning[] = { { 0x7f, 0x000238e8 } }; static TFM::Kerning C_42_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_43_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 }, { 0x3d, 0xffff8e38 }, { 0x7f, 0x00015558 } }; static TFM::Kerning C_44_Kerning[] = { { 0x7f, 0x0000e390 } }; static TFM::Kerning C_45_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_46_Kerning[] = { { 0x3a, 0xfffe38e3 }, { 0x3b, 0xfffe38e3 }, { 0x3d, 0xffff1c72 }, { 0x7f, 0x00015558 } }; static TFM::Kerning C_47_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_48_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 }, { 0x3d, 0xffff1c72 }, { 0x7f, 0x0000e390 } }; static TFM::Kerning C_49_Kerning[] = { { 0x7f, 0x0001c720 } }; static TFM::Kerning C_4a_Kerning[] = { { 0x3a, 0xfffe38e3 }, { 0x3b, 0xfffe38e3 }, { 0x3d, 0xffff1c72 }, { 0x7f, 0x0002aab0 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 }, { 0x3d, 0xffff1c72 }, { 0x7f, 0x0000e390 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x7f, 0x000071c8 } }; static TFM::Kerning C_4d_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 }, { 0x3d, 0xffff1c72 }, { 0x7f, 0x00015558 } }; static TFM::Kerning C_4e_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 }, { 0x3d, 0xfffeaaaa }, { 0x3d, 0xffff8e38 }, { 0x7f, 0x00015558 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_50_Kerning[] = { { 0x3a, 0xfffe38e3 }, { 0x3b, 0xfffe38e3 }, { 0x3d, 0xffff1c72 }, { 0x7f, 0x00015558 } }; static TFM::Kerning C_51_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_52_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_53_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 }, { 0x3d, 0xffff1c72 }, { 0x7f, 0x00015558 } }; static TFM::Kerning C_54_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 }, { 0x3d, 0xffff8e38 }, { 0x7f, 0x00015558 } }; static TFM::Kerning C_55_Kerning[] = { { 0x3a, 0xfffe38e3 }, { 0x3b, 0xfffe38e3 }, { 0x3d, 0xffff1c72 }, { 0x7f, 0x000071c8 } }; static TFM::Kerning C_56_Kerning[] = { { 0x3a, 0xfffd5555 }, { 0x3b, 0xfffd5555 }, { 0x3d, 0xfffe38e3 } }; static TFM::Kerning C_57_Kerning[] = { { 0x3a, 0xfffd5555 }, { 0x3b, 0xfffd5555 }, { 0x3d, 0xfffe38e3 } }; static TFM::Kerning C_58_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 }, { 0x3d, 0xfffeaaaa }, { 0x3d, 0xffff8e38 }, { 0x7f, 0x00015558 } }; static TFM::Kerning C_59_Kerning[] = { { 0x3a, 0xfffd5555 }, { 0x3b, 0xfffd5555 }, { 0x3d, 0xfffe38e3 } }; static TFM::Kerning C_5a_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 }, { 0x3d, 0xffff1c72 }, { 0x7f, 0x00015558 } }; static TFM::Kerning C_60_Kerning[] = { { 0x7f, 0x0001c720 } }; static TFM::Kerning C_63_Kerning[] = { { 0x7f, 0x0000e390 } }; static TFM::Kerning C_64_Kerning[] = { { 0x59, 0x0000e38e }, { 0x5a, 0xffff1c72 }, { 0x66, 0xfffd5555 }, { 0x6a, 0xfffe38e3 }, { 0x7f, 0x0002aab0 } }; static TFM::Kerning C_65_Kerning[] = { { 0x7f, 0x0000e390 } }; static TFM::Kerning C_66_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 }, { 0x7f, 0x0002aab0 } }; static TFM::Kerning C_67_Kerning[] = { { 0x7f, 0x000071c8 } }; static TFM::Kerning C_68_Kerning[] = { { 0x7f, 0xffff8e38 } }; static TFM::Kerning C_6a_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 } }; static TFM::Kerning C_6c_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x7f, 0x0000e390 } }; static TFM::Kerning C_70_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_71_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_72_Kerning[] = { { 0x3a, 0xffff1c72 }, { 0x3b, 0xffff1c72 }, { 0x7f, 0x0000e390 } }; static TFM::Kerning C_73_Kerning[] = { { 0x7f, 0x0000e390 } }; static TFM::Kerning C_74_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_75_Kerning[] = { { 0x7f, 0x000071c8 } }; static TFM::Kerning C_76_Kerning[] = { { 0x7f, 0x000071c8 } }; static TFM::Kerning C_77_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_78_Kerning[] = { { 0x7f, 0x000071c8 } }; static TFM::Kerning C_79_Kerning[] = { { 0x7f, 0x0000e390 } }; static TFM::Kerning C_7a_Kerning[] = { { 0x7f, 0x0000e390 } }; static TFM::Kerning C_7b_Kerning[] = { { 0x7f, 0x000071c8 } }; static TFM::Kerning C_7c_Kerning[] = { { 0x7f, 0x00015558 } }; static TFM::Kerning C_7d_Kerning[] = { { 0x7f, 0x0001c720 } }; static TFM::Character character[] = { { 0x00, 0x0009d82e, 0x000aeeee, 0x00000000, 0x0000d82e, 4, C_00_Kerning, 0, 0 }, { 0x01, 0x000d5558, 0x000aeeee, 0x00000000, 0x00000000, 1, C_01_Kerning, 0, 0 }, { 0x02, 0x000c3455, 0x000aeeee, 0x00000000, 0x000071c8, 1, C_02_Kerning, 0, 0 }, { 0x03, 0x000b1c73, 0x000aeeee, 0x00000000, 0x00000000, 1, C_03_Kerning, 0, 0 }, { 0x04, 0x000be0b8, 0x000aeeee, 0x00000000, 0x0000509a, 1, C_04_Kerning, 0, 0 }, { 0x05, 0x000d4cce, 0x000aeeee, 0x00000000, 0x000080f2, 4, C_05_Kerning, 0, 0 }, { 0x06, 0x000c7a52, 0x000aeeee, 0x00000000, 0x0000ec16, 1, C_06_Kerning, 0, 0 }, { 0x07, 0x00095555, 0x000aeeee, 0x00000000, 0x0000d82e, 4, C_07_Kerning, 0, 0 }, { 0x08, 0x000aaaab, 0x000aeeee, 0x00000000, 0x00000000, 1, C_08_Kerning, 0, 0 }, { 0x09, 0x0009cbaa, 0x000aeeee, 0x00000000, 0x0000bc72, 4, C_09_Kerning, 0, 0 }, { 0x0a, 0x000c5bbe, 0x000aeeee, 0x00000000, 0x0000cd82, 1, C_0a_Kerning, 0, 0 }, { 0x0b, 0x000a3c38, 0x0006e38e, 0x00000000, 0x00000f2a, 1, C_0b_Kerning, 0, 0 }, { 0x0c, 0x00090cce, 0x000b1c72, 0x00031c72, 0x0000d82e, 1, C_0c_Kerning, 0, 0 }, { 0x0d, 0x000848a0, 0x0006e38e, 0x00031c72, 0x0000e38e, 0, 0, 0, 0 }, { 0x0e, 0x00071c72, 0x000b1c72, 0x00000000, 0x00009b05, 3, C_0e_Kerning, 0, 0 }, { 0x0f, 0x00067e95, 0x0006e38e, 0x00000000, 0x00000000, 1, C_0f_Kerning, 0, 0 }, { 0x10, 0x00070002, 0x000b1c72, 0x00031c72, 0x00001fa5, 1, C_10_Kerning, 0, 0 }, { 0x11, 0x0007f1cb, 0x0006e38e, 0x00031c72, 0x000092f6, 1, C_11_Kerning, 0, 0 }, { 0x12, 0x000782d8, 0x000b1c72, 0x00000000, 0x000071c8, 1, C_12_Kerning, 0, 0 }, { 0x13, 0x0005a9ba, 0x0006e38e, 0x00000000, 0x00000000, 1, C_13_Kerning, 0, 0 }, { 0x14, 0x000937f3, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x00095558, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x0009a40b, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_16_Kerning, 0, 0 }, { 0x17, 0x0007e75b, 0x0006e38e, 0x00000000, 0x00000000, 3, C_17_Kerning, 0, 0 }, { 0x18, 0x00070002, 0x000b1c72, 0x00031c72, 0x0000bc72, 1, C_18_Kerning, 0, 0 }, { 0x19, 0x00091ed5, 0x0006e38e, 0x00000000, 0x000092f6, 0, 0, 0, 0 }, { 0x1a, 0x000845b2, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_1a_Kerning, 0, 0 }, { 0x1b, 0x00092483, 0x0006e38e, 0x00000000, 0x000092f6, 2, C_1b_Kerning, 0, 0 }, { 0x1c, 0x0006fe96, 0x0006e38e, 0x00000000, 0x0000cd82, 3, C_1c_Kerning, 0, 0 }, { 0x1d, 0x0008a4fd, 0x0006e38e, 0x00000000, 0x000092f6, 1, C_1d_Kerning, 0, 0 }, { 0x1e, 0x0009888a, 0x000b1c72, 0x00031c72, 0x00000000, 1, C_1e_Kerning, 0, 0 }, { 0x1f, 0x000a02d6, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_1f_Kerning, 0, 0 }, { 0x20, 0x000a6c1a, 0x000b1c72, 0x00031c72, 0x000092f6, 1, C_20_Kerning, 0, 0 }, { 0x21, 0x0009f593, 0x0006e38e, 0x00000000, 0x000092f6, 0, 0, 0, 0 }, { 0x22, 0x0007760a, 0x0006e38e, 0x00000000, 0x00000000, 1, C_22_Kerning, 0, 0 }, { 0x23, 0x0009768a, 0x000b1c72, 0x00000000, 0x00000000, 1, C_23_Kerning, 0, 0 }, { 0x24, 0x000d4005, 0x0006e38e, 0x00000000, 0x000071c8, 0, 0, 0, 0 }, { 0x25, 0x000845b2, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_25_Kerning, 0, 0 }, { 0x26, 0x0005ce3a, 0x0006e38e, 0x00018e3a, 0x000071c8, 1, C_26_Kerning, 0, 0 }, { 0x27, 0x000a7778, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_27_Kerning, 0, 0 }, { 0x28, 0x00100003, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00100003, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x00100003, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x00100003, 0x0005deb8, 0xfffddeb8, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x000471c8, 0x00076b83, 0xffff6b83, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x000471c8, 0x00076b83, 0xffff6b83, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x00080002, 0x000771c8, 0xffff71c8, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00080002, 0x000771c8, 0xffff71c8, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00080002, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x00080002, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x00080002, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x00080002, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x00080002, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x00080002, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00080002, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x00080002, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x00080002, 0x0006e38e, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000471c8, 0x0001b05b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x000471c8, 0x0001b05b, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000c71ca, 0x0008a025, 0x0000a025, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x00080002, 0x000c0000, 0x00040000, 0x00000000, 6, C_3d_Kerning, 0, 0 }, { 0x3e, 0x000c71ca, 0x0008a025, 0x0000a025, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00080002, 0x000771c8, 0xffff71c8, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x00087e95, 0x000b1c72, 0x00000000, 0x0000e38e, 1, C_40_Kerning, 0, 0 }, { 0x41, 0x000c0002, 0x000aeeee, 0x00000000, 0x00000000, 1, C_41_Kerning, 0, 0 }, { 0x42, 0x000c22db, 0x000aeeee, 0x00000000, 0x0000cd82, 1, C_42_Kerning, 0, 0 }, { 0x43, 0x000b6f80, 0x000aeeee, 0x00000000, 0x00000f2a, 4, C_43_Kerning, 0, 0 }, { 0x44, 0x000d3f26, 0x000aeeee, 0x00000000, 0x000071c8, 1, C_44_Kerning, 0, 0 }, { 0x45, 0x000bcfa6, 0x000aeeee, 0x00000000, 0x0000ec16, 1, C_45_Kerning, 0, 0 }, { 0x46, 0x000a49f6, 0x000aeeee, 0x00000000, 0x0000d82e, 4, C_46_Kerning, 0, 0 }, { 0x47, 0x000c947a, 0x000aeeee, 0x00000000, 0x00000000, 1, C_47_Kerning, 0, 0 }, { 0x48, 0x000d4cce, 0x000aeeee, 0x00000000, 0x000080f2, 4, C_48_Kerning, 0, 0 }, { 0x49, 0x0007088a, 0x000aeeee, 0x00000000, 0x00006e38, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x0008df4a, 0x000aeeee, 0x00000000, 0x000092f6, 4, C_4a_Kerning, 0, 0 }, { 0x4b, 0x000d96c3, 0x000aeeee, 0x00000000, 0x00000f2a, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000ae390, 0x000aeeee, 0x00000000, 0x00000000, 1, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000f85b2, 0x000aeeee, 0x00000000, 0x0000b425, 4, C_4d_Kerning, 0, 0 }, { 0x4e, 0x000cdb06, 0x000aeeee, 0x00000000, 0x0000b425, 5, C_4e_Kerning, 0, 0 }, { 0x4f, 0x000c3455, 0x000aeeee, 0x00000000, 0x000071c8, 1, C_4f_Kerning, 0, 0 }, { 0x50, 0x000a45b0, 0x000aeeee, 0x00000000, 0x0000d82e, 4, C_50_Kerning, 0, 0 }, { 0x51, 0x000ca61d, 0x000aeeee, 0x00031c72, 0x00000000, 1, C_51_Kerning, 0, 0 }, { 0x52, 0x000c260d, 0x000aeeee, 0x00000000, 0x00001fa5, 1, C_52_Kerning, 0, 0 }, { 0x53, 0x0009cfa6, 0x000aeeee, 0x00000000, 0x0000ec16, 4, C_53_Kerning, 0, 0 }, { 0x54, 0x0009599b, 0x000aeeee, 0x00000000, 0x0000d82e, 4, C_54_Kerning, 0, 0 }, { 0x55, 0x000aeca8, 0x000aeeee, 0x00000000, 0x0000b425, 4, C_55_Kerning, 0, 0 }, { 0x56, 0x00095556, 0x000aeeee, 0x00000000, 0x0000ea78, 3, C_56_Kerning, 0, 0 }, { 0x57, 0x000f1c73, 0x000aeeee, 0x00000000, 0x0000d82e, 3, C_57_Kerning, 0, 0 }, { 0x58, 0x000d416e, 0x000aeeee, 0x00000000, 0x00006e38, 5, C_58_Kerning, 0, 0 }, { 0x59, 0x000949f6, 0x000aeeee, 0x00000000, 0x0000ea78, 3, C_59_Kerning, 0, 0 }, { 0x5a, 0x000aec18, 0x000aeeee, 0x00000000, 0x00000f2a, 4, C_5a_Kerning, 0, 0 }, { 0x5b, 0x000638e5, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000638e5, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000638e5, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x00100003, 0x0005b8e5, 0xfffdb8e5, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00100003, 0x0005b8e5, 0xfffdb8e5, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x0006aaae, 0x000b1c72, 0x00000000, 0x00000000, 1, C_60_Kerning, 0, 0 }, { 0x61, 0x0008751b, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x0006ddde, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x0006ec92, 0x0006e38e, 0x00000000, 0x00000000, 1, C_63_Kerning, 0, 0 }, { 0x64, 0x000853eb, 0x000b1c72, 0x00000000, 0x00000000, 5, C_64_Kerning, 0, 0 }, { 0x65, 0x00077335, 0x0006e38e, 0x00000000, 0x00000000, 1, C_65_Kerning, 0, 0 }, { 0x66, 0x0007d558, 0x000b1c72, 0x00031c72, 0x00009b05, 3, C_66_Kerning, 0, 0 }, { 0x67, 0x0007a1aa, 0x0006e38e, 0x00031c72, 0x000092f6, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000937f3, 0x000b1c72, 0x00000000, 0x00000000, 1, C_68_Kerning, 0, 0 }, { 0x69, 0x00058320, 0x000a8d6a, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x000696c3, 0x000a8d6a, 0x00031c72, 0x0000ea78, 2, C_6a_Kerning, 0, 0 }, { 0x6b, 0x00085465, 0x000b1c72, 0x00000000, 0x000080f2, 0, 0, 0, 0 }, { 0x6c, 0x0004c62a, 0x000b1c72, 0x00000000, 0x0000509a, 1, C_6c_Kerning, 0, 0 }, { 0x6d, 0x000e0c58, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x00099a90, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x0007c16d, 0x0006e38e, 0x00000000, 0x00000000, 1, C_6f_Kerning, 0, 0 }, { 0x70, 0x00080cce, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_70_Kerning, 0, 0 }, { 0x71, 0x00072483, 0x0006e38e, 0x00031c72, 0x000092f6, 1, C_71_Kerning, 0, 0 }, { 0x72, 0x000737f3, 0x0006e38e, 0x00000000, 0x000071c8, 3, C_72_Kerning, 0, 0 }, { 0x73, 0x00078000, 0x0006e38e, 0x00000000, 0x00000000, 1, C_73_Kerning, 0, 0 }, { 0x74, 0x0005c71e, 0x0009d75e, 0x00000000, 0x00000000, 1, C_74_Kerning, 0, 0 }, { 0x75, 0x000928ca, 0x0006e38e, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x0007c16e, 0x0006e38e, 0x00000000, 0x000092f6, 1, C_76_Kerning, 0, 0 }, { 0x77, 0x000b7466, 0x0006e38e, 0x00000000, 0x00006e38, 1, C_77_Kerning, 0, 0 }, { 0x78, 0x000924fb, 0x0006e38e, 0x00000000, 0x00000000, 1, C_78_Kerning, 0, 0 }, { 0x79, 0x0007d832, 0x0006e38e, 0x00031c72, 0x000092f6, 1, C_79_Kerning, 0, 0 }, { 0x7a, 0x000770d8, 0x0006e38e, 0x00000000, 0x0000b425, 1, C_7a_Kerning, 0, 0 }, { 0x7b, 0x000528c8, 0x0006e38e, 0x00000000, 0x00000000, 1, C_7b_Kerning, 0, 0 }, { 0x7c, 0x000624fd, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_7c_Kerning, 0, 0 }, { 0x7d, 0x000a2ef0, 0x0006e38e, 0x00031c72, 0x00000000, 1, C_7d_Kerning, 0, 0 }, { 0x7e, 0x00080002, 0x000b6e5d, 0x00000000, 0x0000e38e, 0, 0, 0, 0 }, { 0x7f, 0x000471c8, 0x000b1c72, 0x00000000, 0x0000ec16, 0, 0, 0, 0 } }; void cmmi10_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/Makefile.in0000644000175000017500000026261110704610541017301 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/backend/common/tfm DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libtfm_la_LIBADD = am__libtfm_la_SOURCES_DIST = cmex10.cc cmmi10.cc cmr10.cc cmsy10.cc \ cmb10.cc cmbsy10.cc cmbxti10.cc cmmib10.cc cmss10.cc \ cmssbx10.cc cmssi10.cc cmti10.cc cmtt10.cc msam10.cc msbm10.cc \ cmbx10.cc cmbx12.cc cmbx5.cc cmbx6.cc cmbx7.cc cmbx8.cc \ cmbx9.cc cmex9.cc cmmi12.cc cmmi5.cc cmmi6.cc cmmi7.cc \ cmmi8.cc cmmi9.cc cmr12.cc cmr17.cc cmr5.cc cmr6.cc cmr7.cc \ cmr8.cc cmr9.cc cmss12.cc cmss17.cc cmss8.cc cmss9.cc \ cmssi12.cc cmssi17.cc cmssi8.cc cmssi9.cc cmsy5.cc cmsy6.cc \ cmsy7.cc cmsy8.cc cmsy9.cc cmti12.cc cmti7.cc cmti8.cc \ cmti9.cc cmtt12.cc cmtt8.cc cmtt9.cc msam5.cc msam6.cc \ msam7.cc msam8.cc msam9.cc msbm5.cc msbm6.cc msbm7.cc msbm8.cc \ msbm9.cc TFM.hh TFM.cc TFMManager.hh TFMManager.cc am__objects_1 = am__objects_2 = libtfm_la-cmex10.lo libtfm_la-cmmi10.lo \ libtfm_la-cmr10.lo libtfm_la-cmsy10.lo $(am__objects_1) am__objects_3 = $(am__objects_2) libtfm_la-cmb10.lo \ libtfm_la-cmbsy10.lo libtfm_la-cmbxti10.lo \ libtfm_la-cmmib10.lo libtfm_la-cmss10.lo libtfm_la-cmssbx10.lo \ libtfm_la-cmssi10.lo libtfm_la-cmti10.lo libtfm_la-cmtt10.lo \ libtfm_la-msam10.lo libtfm_la-msbm10.lo $(am__objects_1) am__objects_4 = $(am__objects_3) libtfm_la-cmbx10.lo \ libtfm_la-cmbx12.lo libtfm_la-cmbx5.lo libtfm_la-cmbx6.lo \ libtfm_la-cmbx7.lo libtfm_la-cmbx8.lo libtfm_la-cmbx9.lo \ libtfm_la-cmex9.lo libtfm_la-cmmi12.lo libtfm_la-cmmi5.lo \ libtfm_la-cmmi6.lo libtfm_la-cmmi7.lo libtfm_la-cmmi8.lo \ libtfm_la-cmmi9.lo libtfm_la-cmr12.lo libtfm_la-cmr17.lo \ libtfm_la-cmr5.lo libtfm_la-cmr6.lo libtfm_la-cmr7.lo \ libtfm_la-cmr8.lo libtfm_la-cmr9.lo libtfm_la-cmss12.lo \ libtfm_la-cmss17.lo libtfm_la-cmss8.lo libtfm_la-cmss9.lo \ libtfm_la-cmssi12.lo libtfm_la-cmssi17.lo libtfm_la-cmssi8.lo \ libtfm_la-cmssi9.lo libtfm_la-cmsy5.lo libtfm_la-cmsy6.lo \ libtfm_la-cmsy7.lo libtfm_la-cmsy8.lo libtfm_la-cmsy9.lo \ libtfm_la-cmti12.lo libtfm_la-cmti7.lo libtfm_la-cmti8.lo \ libtfm_la-cmti9.lo libtfm_la-cmtt12.lo libtfm_la-cmtt8.lo \ libtfm_la-cmtt9.lo libtfm_la-msam5.lo libtfm_la-msam6.lo \ libtfm_la-msam7.lo libtfm_la-msam8.lo libtfm_la-msam9.lo \ libtfm_la-msbm5.lo libtfm_la-msbm6.lo libtfm_la-msbm7.lo \ libtfm_la-msbm8.lo libtfm_la-msbm9.lo $(am__objects_1) @COND_TFM_LEVEL_1_FALSE@@COND_TFM_LEVEL_2_FALSE@@COND_TFM_LEVEL_3_FALSE@am__objects_5 = $(am__objects_1) @COND_TFM_LEVEL_1_FALSE@@COND_TFM_LEVEL_2_FALSE@@COND_TFM_LEVEL_3_TRUE@am__objects_5 = $(am__objects_4) @COND_TFM_LEVEL_1_FALSE@@COND_TFM_LEVEL_2_TRUE@am__objects_5 = $(am__objects_3) @COND_TFM_LEVEL_1_TRUE@am__objects_5 = $(am__objects_2) am_libtfm_la_OBJECTS = $(am__objects_5) libtfm_la-TFM.lo \ libtfm_la-TFMManager.lo $(am__objects_1) libtfm_la_OBJECTS = $(am_libtfm_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libtfm_la_SOURCES) DIST_SOURCES = $(am__libtfm_la_SOURCES_DIST) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = TFM_LEVEL_1_CC = \ cmex10.cc \ cmmi10.cc \ cmr10.cc \ cmsy10.cc \ $(NULL) TFM_LEVEL_2_CC = \ $(TFM_LEVEL_1_CC) \ cmb10.cc \ cmbsy10.cc \ cmbxti10.cc \ cmmib10.cc \ cmss10.cc \ cmssbx10.cc \ cmssi10.cc \ cmti10.cc \ cmtt10.cc \ msam10.cc \ msbm10.cc \ $(NULL) TFM_LEVEL_3_CC = \ $(TFM_LEVEL_2_CC) \ cmbx10.cc \ cmbx12.cc \ cmbx5.cc \ cmbx6.cc \ cmbx7.cc \ cmbx8.cc \ cmbx9.cc \ cmex9.cc \ cmmi12.cc \ cmmi5.cc \ cmmi6.cc \ cmmi7.cc \ cmmi8.cc \ cmmi9.cc \ cmr12.cc \ cmr17.cc \ cmr5.cc \ cmr6.cc \ cmr7.cc \ cmr8.cc \ cmr9.cc \ cmss12.cc \ cmss17.cc \ cmss8.cc \ cmss9.cc \ cmssi12.cc \ cmssi17.cc \ cmssi8.cc \ cmssi9.cc \ cmsy5.cc \ cmsy6.cc \ cmsy7.cc \ cmsy8.cc \ cmsy9.cc \ cmti12.cc \ cmti7.cc \ cmti8.cc \ cmti9.cc \ cmtt12.cc \ cmtt8.cc \ cmtt9.cc \ msam5.cc \ msam6.cc \ msam7.cc \ msam8.cc \ msam9.cc \ msbm5.cc \ msbm6.cc \ msbm7.cc \ msbm8.cc \ msbm9.cc \ $(NULL) @COND_TFM_LEVEL_1_FALSE@@COND_TFM_LEVEL_2_FALSE@@COND_TFM_LEVEL_3_FALSE@AUTO_CC = $(NULL) @COND_TFM_LEVEL_1_FALSE@@COND_TFM_LEVEL_2_FALSE@@COND_TFM_LEVEL_3_TRUE@AUTO_CC = $(TFM_LEVEL_3_CC) @COND_TFM_LEVEL_1_FALSE@@COND_TFM_LEVEL_2_TRUE@AUTO_CC = $(TFM_LEVEL_2_CC) @COND_TFM_LEVEL_1_TRUE@AUTO_CC = $(TFM_LEVEL_1_CC) MAINTAINERCLEANFILES = $(AUTO_CC) noinst_LTLIBRARIES = libtfm.la BUILT_SOURCES = $(AUTO_CC) libtfm_la_CPPFLAGS = -DGMV_MathView_DLL libtfm_la_SOURCES = \ $(AUTO_CC) \ TFM.hh \ TFM.cc \ TFMManager.hh \ TFMManager.cc \ $(NULL) TFMDUMP = ~/Luca-CVS/Projects/xtfm/tfmdump XTFMS = $(TFM_LEVEL_3_CC:%.cc=$(srcdir)/%.xtfm) @COND_XSLTPROC_TRUE@XSLTPROC = xsltproc @COND_XSLTPROC_TRUE@XTFMTOCC = $(top_srcdir)/auto/xtfm-to-cc.xsl @COND_XSLTPROC_TRUE@LICENSE = $(top_srcdir)/doc/LICENSE.cc INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ $(NULL) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/backend/common/tfm/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/backend/common/tfm/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libtfm.la: $(libtfm_la_OBJECTS) $(libtfm_la_DEPENDENCIES) $(CXXLINK) $(libtfm_la_LDFLAGS) $(libtfm_la_OBJECTS) $(libtfm_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-TFM.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-TFMManager.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmb10.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmbsy10.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmbx10.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmbx12.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmbx5.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmbx6.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmbx7.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmbx8.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmbx9.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmbxti10.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmex10.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmex9.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmmi10.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmmi12.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmmi5.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmmi6.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmmi7.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmmi8.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmmi9.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmmib10.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmr10.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmr12.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmr17.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmr5.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmr6.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmr7.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmr8.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmr9.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmss10.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmss12.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmss17.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmss8.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmss9.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmssbx10.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmssi10.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmssi12.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmssi17.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmssi8.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmssi9.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmsy10.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmsy5.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmsy6.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmsy7.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmsy8.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmsy9.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmti10.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmti12.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmti7.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmti8.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmti9.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmtt10.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmtt12.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmtt8.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-cmtt9.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-msam10.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-msam5.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-msam6.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-msam7.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-msam8.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-msam9.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-msbm10.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-msbm5.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-msbm6.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-msbm7.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-msbm8.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtfm_la-msbm9.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libtfm_la-cmex10.lo: cmex10.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmex10.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmex10.Tpo" -c -o libtfm_la-cmex10.lo `test -f 'cmex10.cc' || echo '$(srcdir)/'`cmex10.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmex10.Tpo" "$(DEPDIR)/libtfm_la-cmex10.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmex10.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmex10.cc' object='libtfm_la-cmex10.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmex10.lo `test -f 'cmex10.cc' || echo '$(srcdir)/'`cmex10.cc libtfm_la-cmmi10.lo: cmmi10.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmmi10.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmmi10.Tpo" -c -o libtfm_la-cmmi10.lo `test -f 'cmmi10.cc' || echo '$(srcdir)/'`cmmi10.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmmi10.Tpo" "$(DEPDIR)/libtfm_la-cmmi10.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmmi10.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmmi10.cc' object='libtfm_la-cmmi10.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmmi10.lo `test -f 'cmmi10.cc' || echo '$(srcdir)/'`cmmi10.cc libtfm_la-cmr10.lo: cmr10.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmr10.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmr10.Tpo" -c -o libtfm_la-cmr10.lo `test -f 'cmr10.cc' || echo '$(srcdir)/'`cmr10.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmr10.Tpo" "$(DEPDIR)/libtfm_la-cmr10.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmr10.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmr10.cc' object='libtfm_la-cmr10.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmr10.lo `test -f 'cmr10.cc' || echo '$(srcdir)/'`cmr10.cc libtfm_la-cmsy10.lo: cmsy10.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmsy10.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmsy10.Tpo" -c -o libtfm_la-cmsy10.lo `test -f 'cmsy10.cc' || echo '$(srcdir)/'`cmsy10.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmsy10.Tpo" "$(DEPDIR)/libtfm_la-cmsy10.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmsy10.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmsy10.cc' object='libtfm_la-cmsy10.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmsy10.lo `test -f 'cmsy10.cc' || echo '$(srcdir)/'`cmsy10.cc libtfm_la-cmb10.lo: cmb10.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmb10.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmb10.Tpo" -c -o libtfm_la-cmb10.lo `test -f 'cmb10.cc' || echo '$(srcdir)/'`cmb10.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmb10.Tpo" "$(DEPDIR)/libtfm_la-cmb10.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmb10.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmb10.cc' object='libtfm_la-cmb10.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmb10.lo `test -f 'cmb10.cc' || echo '$(srcdir)/'`cmb10.cc libtfm_la-cmbsy10.lo: cmbsy10.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmbsy10.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmbsy10.Tpo" -c -o libtfm_la-cmbsy10.lo `test -f 'cmbsy10.cc' || echo '$(srcdir)/'`cmbsy10.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmbsy10.Tpo" "$(DEPDIR)/libtfm_la-cmbsy10.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmbsy10.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmbsy10.cc' object='libtfm_la-cmbsy10.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmbsy10.lo `test -f 'cmbsy10.cc' || echo '$(srcdir)/'`cmbsy10.cc libtfm_la-cmbxti10.lo: cmbxti10.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmbxti10.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmbxti10.Tpo" -c -o libtfm_la-cmbxti10.lo `test -f 'cmbxti10.cc' || echo '$(srcdir)/'`cmbxti10.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmbxti10.Tpo" "$(DEPDIR)/libtfm_la-cmbxti10.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmbxti10.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmbxti10.cc' object='libtfm_la-cmbxti10.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmbxti10.lo `test -f 'cmbxti10.cc' || echo '$(srcdir)/'`cmbxti10.cc libtfm_la-cmmib10.lo: cmmib10.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmmib10.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmmib10.Tpo" -c -o libtfm_la-cmmib10.lo `test -f 'cmmib10.cc' || echo '$(srcdir)/'`cmmib10.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmmib10.Tpo" "$(DEPDIR)/libtfm_la-cmmib10.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmmib10.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmmib10.cc' object='libtfm_la-cmmib10.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmmib10.lo `test -f 'cmmib10.cc' || echo '$(srcdir)/'`cmmib10.cc libtfm_la-cmss10.lo: cmss10.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmss10.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmss10.Tpo" -c -o libtfm_la-cmss10.lo `test -f 'cmss10.cc' || echo '$(srcdir)/'`cmss10.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmss10.Tpo" "$(DEPDIR)/libtfm_la-cmss10.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmss10.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmss10.cc' object='libtfm_la-cmss10.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmss10.lo `test -f 'cmss10.cc' || echo '$(srcdir)/'`cmss10.cc libtfm_la-cmssbx10.lo: cmssbx10.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmssbx10.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmssbx10.Tpo" -c -o libtfm_la-cmssbx10.lo `test -f 'cmssbx10.cc' || echo '$(srcdir)/'`cmssbx10.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmssbx10.Tpo" "$(DEPDIR)/libtfm_la-cmssbx10.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmssbx10.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmssbx10.cc' object='libtfm_la-cmssbx10.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmssbx10.lo `test -f 'cmssbx10.cc' || echo '$(srcdir)/'`cmssbx10.cc libtfm_la-cmssi10.lo: cmssi10.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmssi10.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmssi10.Tpo" -c -o libtfm_la-cmssi10.lo `test -f 'cmssi10.cc' || echo '$(srcdir)/'`cmssi10.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmssi10.Tpo" "$(DEPDIR)/libtfm_la-cmssi10.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmssi10.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmssi10.cc' object='libtfm_la-cmssi10.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmssi10.lo `test -f 'cmssi10.cc' || echo '$(srcdir)/'`cmssi10.cc libtfm_la-cmti10.lo: cmti10.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmti10.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmti10.Tpo" -c -o libtfm_la-cmti10.lo `test -f 'cmti10.cc' || echo '$(srcdir)/'`cmti10.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmti10.Tpo" "$(DEPDIR)/libtfm_la-cmti10.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmti10.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmti10.cc' object='libtfm_la-cmti10.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmti10.lo `test -f 'cmti10.cc' || echo '$(srcdir)/'`cmti10.cc libtfm_la-cmtt10.lo: cmtt10.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmtt10.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmtt10.Tpo" -c -o libtfm_la-cmtt10.lo `test -f 'cmtt10.cc' || echo '$(srcdir)/'`cmtt10.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmtt10.Tpo" "$(DEPDIR)/libtfm_la-cmtt10.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmtt10.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmtt10.cc' object='libtfm_la-cmtt10.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmtt10.lo `test -f 'cmtt10.cc' || echo '$(srcdir)/'`cmtt10.cc libtfm_la-msam10.lo: msam10.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-msam10.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-msam10.Tpo" -c -o libtfm_la-msam10.lo `test -f 'msam10.cc' || echo '$(srcdir)/'`msam10.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-msam10.Tpo" "$(DEPDIR)/libtfm_la-msam10.Plo"; else rm -f "$(DEPDIR)/libtfm_la-msam10.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='msam10.cc' object='libtfm_la-msam10.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-msam10.lo `test -f 'msam10.cc' || echo '$(srcdir)/'`msam10.cc libtfm_la-msbm10.lo: msbm10.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-msbm10.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-msbm10.Tpo" -c -o libtfm_la-msbm10.lo `test -f 'msbm10.cc' || echo '$(srcdir)/'`msbm10.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-msbm10.Tpo" "$(DEPDIR)/libtfm_la-msbm10.Plo"; else rm -f "$(DEPDIR)/libtfm_la-msbm10.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='msbm10.cc' object='libtfm_la-msbm10.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-msbm10.lo `test -f 'msbm10.cc' || echo '$(srcdir)/'`msbm10.cc libtfm_la-cmbx10.lo: cmbx10.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmbx10.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmbx10.Tpo" -c -o libtfm_la-cmbx10.lo `test -f 'cmbx10.cc' || echo '$(srcdir)/'`cmbx10.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmbx10.Tpo" "$(DEPDIR)/libtfm_la-cmbx10.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmbx10.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmbx10.cc' object='libtfm_la-cmbx10.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmbx10.lo `test -f 'cmbx10.cc' || echo '$(srcdir)/'`cmbx10.cc libtfm_la-cmbx12.lo: cmbx12.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmbx12.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmbx12.Tpo" -c -o libtfm_la-cmbx12.lo `test -f 'cmbx12.cc' || echo '$(srcdir)/'`cmbx12.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmbx12.Tpo" "$(DEPDIR)/libtfm_la-cmbx12.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmbx12.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmbx12.cc' object='libtfm_la-cmbx12.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmbx12.lo `test -f 'cmbx12.cc' || echo '$(srcdir)/'`cmbx12.cc libtfm_la-cmbx5.lo: cmbx5.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmbx5.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmbx5.Tpo" -c -o libtfm_la-cmbx5.lo `test -f 'cmbx5.cc' || echo '$(srcdir)/'`cmbx5.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmbx5.Tpo" "$(DEPDIR)/libtfm_la-cmbx5.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmbx5.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmbx5.cc' object='libtfm_la-cmbx5.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmbx5.lo `test -f 'cmbx5.cc' || echo '$(srcdir)/'`cmbx5.cc libtfm_la-cmbx6.lo: cmbx6.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmbx6.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmbx6.Tpo" -c -o libtfm_la-cmbx6.lo `test -f 'cmbx6.cc' || echo '$(srcdir)/'`cmbx6.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmbx6.Tpo" "$(DEPDIR)/libtfm_la-cmbx6.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmbx6.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmbx6.cc' object='libtfm_la-cmbx6.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmbx6.lo `test -f 'cmbx6.cc' || echo '$(srcdir)/'`cmbx6.cc libtfm_la-cmbx7.lo: cmbx7.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmbx7.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmbx7.Tpo" -c -o libtfm_la-cmbx7.lo `test -f 'cmbx7.cc' || echo '$(srcdir)/'`cmbx7.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmbx7.Tpo" "$(DEPDIR)/libtfm_la-cmbx7.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmbx7.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmbx7.cc' object='libtfm_la-cmbx7.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmbx7.lo `test -f 'cmbx7.cc' || echo '$(srcdir)/'`cmbx7.cc libtfm_la-cmbx8.lo: cmbx8.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmbx8.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmbx8.Tpo" -c -o libtfm_la-cmbx8.lo `test -f 'cmbx8.cc' || echo '$(srcdir)/'`cmbx8.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmbx8.Tpo" "$(DEPDIR)/libtfm_la-cmbx8.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmbx8.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmbx8.cc' object='libtfm_la-cmbx8.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmbx8.lo `test -f 'cmbx8.cc' || echo '$(srcdir)/'`cmbx8.cc libtfm_la-cmbx9.lo: cmbx9.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmbx9.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmbx9.Tpo" -c -o libtfm_la-cmbx9.lo `test -f 'cmbx9.cc' || echo '$(srcdir)/'`cmbx9.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmbx9.Tpo" "$(DEPDIR)/libtfm_la-cmbx9.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmbx9.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmbx9.cc' object='libtfm_la-cmbx9.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmbx9.lo `test -f 'cmbx9.cc' || echo '$(srcdir)/'`cmbx9.cc libtfm_la-cmex9.lo: cmex9.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmex9.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmex9.Tpo" -c -o libtfm_la-cmex9.lo `test -f 'cmex9.cc' || echo '$(srcdir)/'`cmex9.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmex9.Tpo" "$(DEPDIR)/libtfm_la-cmex9.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmex9.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmex9.cc' object='libtfm_la-cmex9.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmex9.lo `test -f 'cmex9.cc' || echo '$(srcdir)/'`cmex9.cc libtfm_la-cmmi12.lo: cmmi12.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmmi12.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmmi12.Tpo" -c -o libtfm_la-cmmi12.lo `test -f 'cmmi12.cc' || echo '$(srcdir)/'`cmmi12.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmmi12.Tpo" "$(DEPDIR)/libtfm_la-cmmi12.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmmi12.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmmi12.cc' object='libtfm_la-cmmi12.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmmi12.lo `test -f 'cmmi12.cc' || echo '$(srcdir)/'`cmmi12.cc libtfm_la-cmmi5.lo: cmmi5.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmmi5.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmmi5.Tpo" -c -o libtfm_la-cmmi5.lo `test -f 'cmmi5.cc' || echo '$(srcdir)/'`cmmi5.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmmi5.Tpo" "$(DEPDIR)/libtfm_la-cmmi5.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmmi5.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmmi5.cc' object='libtfm_la-cmmi5.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmmi5.lo `test -f 'cmmi5.cc' || echo '$(srcdir)/'`cmmi5.cc libtfm_la-cmmi6.lo: cmmi6.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmmi6.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmmi6.Tpo" -c -o libtfm_la-cmmi6.lo `test -f 'cmmi6.cc' || echo '$(srcdir)/'`cmmi6.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmmi6.Tpo" "$(DEPDIR)/libtfm_la-cmmi6.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmmi6.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmmi6.cc' object='libtfm_la-cmmi6.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmmi6.lo `test -f 'cmmi6.cc' || echo '$(srcdir)/'`cmmi6.cc libtfm_la-cmmi7.lo: cmmi7.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmmi7.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmmi7.Tpo" -c -o libtfm_la-cmmi7.lo `test -f 'cmmi7.cc' || echo '$(srcdir)/'`cmmi7.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmmi7.Tpo" "$(DEPDIR)/libtfm_la-cmmi7.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmmi7.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmmi7.cc' object='libtfm_la-cmmi7.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmmi7.lo `test -f 'cmmi7.cc' || echo '$(srcdir)/'`cmmi7.cc libtfm_la-cmmi8.lo: cmmi8.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmmi8.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmmi8.Tpo" -c -o libtfm_la-cmmi8.lo `test -f 'cmmi8.cc' || echo '$(srcdir)/'`cmmi8.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmmi8.Tpo" "$(DEPDIR)/libtfm_la-cmmi8.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmmi8.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmmi8.cc' object='libtfm_la-cmmi8.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmmi8.lo `test -f 'cmmi8.cc' || echo '$(srcdir)/'`cmmi8.cc libtfm_la-cmmi9.lo: cmmi9.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmmi9.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmmi9.Tpo" -c -o libtfm_la-cmmi9.lo `test -f 'cmmi9.cc' || echo '$(srcdir)/'`cmmi9.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmmi9.Tpo" "$(DEPDIR)/libtfm_la-cmmi9.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmmi9.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmmi9.cc' object='libtfm_la-cmmi9.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmmi9.lo `test -f 'cmmi9.cc' || echo '$(srcdir)/'`cmmi9.cc libtfm_la-cmr12.lo: cmr12.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmr12.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmr12.Tpo" -c -o libtfm_la-cmr12.lo `test -f 'cmr12.cc' || echo '$(srcdir)/'`cmr12.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmr12.Tpo" "$(DEPDIR)/libtfm_la-cmr12.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmr12.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmr12.cc' object='libtfm_la-cmr12.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmr12.lo `test -f 'cmr12.cc' || echo '$(srcdir)/'`cmr12.cc libtfm_la-cmr17.lo: cmr17.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmr17.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmr17.Tpo" -c -o libtfm_la-cmr17.lo `test -f 'cmr17.cc' || echo '$(srcdir)/'`cmr17.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmr17.Tpo" "$(DEPDIR)/libtfm_la-cmr17.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmr17.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmr17.cc' object='libtfm_la-cmr17.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmr17.lo `test -f 'cmr17.cc' || echo '$(srcdir)/'`cmr17.cc libtfm_la-cmr5.lo: cmr5.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmr5.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmr5.Tpo" -c -o libtfm_la-cmr5.lo `test -f 'cmr5.cc' || echo '$(srcdir)/'`cmr5.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmr5.Tpo" "$(DEPDIR)/libtfm_la-cmr5.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmr5.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmr5.cc' object='libtfm_la-cmr5.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmr5.lo `test -f 'cmr5.cc' || echo '$(srcdir)/'`cmr5.cc libtfm_la-cmr6.lo: cmr6.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmr6.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmr6.Tpo" -c -o libtfm_la-cmr6.lo `test -f 'cmr6.cc' || echo '$(srcdir)/'`cmr6.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmr6.Tpo" "$(DEPDIR)/libtfm_la-cmr6.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmr6.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmr6.cc' object='libtfm_la-cmr6.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmr6.lo `test -f 'cmr6.cc' || echo '$(srcdir)/'`cmr6.cc libtfm_la-cmr7.lo: cmr7.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmr7.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmr7.Tpo" -c -o libtfm_la-cmr7.lo `test -f 'cmr7.cc' || echo '$(srcdir)/'`cmr7.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmr7.Tpo" "$(DEPDIR)/libtfm_la-cmr7.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmr7.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmr7.cc' object='libtfm_la-cmr7.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmr7.lo `test -f 'cmr7.cc' || echo '$(srcdir)/'`cmr7.cc libtfm_la-cmr8.lo: cmr8.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmr8.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmr8.Tpo" -c -o libtfm_la-cmr8.lo `test -f 'cmr8.cc' || echo '$(srcdir)/'`cmr8.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmr8.Tpo" "$(DEPDIR)/libtfm_la-cmr8.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmr8.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmr8.cc' object='libtfm_la-cmr8.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmr8.lo `test -f 'cmr8.cc' || echo '$(srcdir)/'`cmr8.cc libtfm_la-cmr9.lo: cmr9.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmr9.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmr9.Tpo" -c -o libtfm_la-cmr9.lo `test -f 'cmr9.cc' || echo '$(srcdir)/'`cmr9.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmr9.Tpo" "$(DEPDIR)/libtfm_la-cmr9.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmr9.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmr9.cc' object='libtfm_la-cmr9.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmr9.lo `test -f 'cmr9.cc' || echo '$(srcdir)/'`cmr9.cc libtfm_la-cmss12.lo: cmss12.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmss12.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmss12.Tpo" -c -o libtfm_la-cmss12.lo `test -f 'cmss12.cc' || echo '$(srcdir)/'`cmss12.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmss12.Tpo" "$(DEPDIR)/libtfm_la-cmss12.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmss12.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmss12.cc' object='libtfm_la-cmss12.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmss12.lo `test -f 'cmss12.cc' || echo '$(srcdir)/'`cmss12.cc libtfm_la-cmss17.lo: cmss17.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmss17.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmss17.Tpo" -c -o libtfm_la-cmss17.lo `test -f 'cmss17.cc' || echo '$(srcdir)/'`cmss17.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmss17.Tpo" "$(DEPDIR)/libtfm_la-cmss17.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmss17.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmss17.cc' object='libtfm_la-cmss17.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmss17.lo `test -f 'cmss17.cc' || echo '$(srcdir)/'`cmss17.cc libtfm_la-cmss8.lo: cmss8.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmss8.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmss8.Tpo" -c -o libtfm_la-cmss8.lo `test -f 'cmss8.cc' || echo '$(srcdir)/'`cmss8.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmss8.Tpo" "$(DEPDIR)/libtfm_la-cmss8.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmss8.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmss8.cc' object='libtfm_la-cmss8.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmss8.lo `test -f 'cmss8.cc' || echo '$(srcdir)/'`cmss8.cc libtfm_la-cmss9.lo: cmss9.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmss9.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmss9.Tpo" -c -o libtfm_la-cmss9.lo `test -f 'cmss9.cc' || echo '$(srcdir)/'`cmss9.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmss9.Tpo" "$(DEPDIR)/libtfm_la-cmss9.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmss9.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmss9.cc' object='libtfm_la-cmss9.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmss9.lo `test -f 'cmss9.cc' || echo '$(srcdir)/'`cmss9.cc libtfm_la-cmssi12.lo: cmssi12.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmssi12.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmssi12.Tpo" -c -o libtfm_la-cmssi12.lo `test -f 'cmssi12.cc' || echo '$(srcdir)/'`cmssi12.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmssi12.Tpo" "$(DEPDIR)/libtfm_la-cmssi12.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmssi12.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmssi12.cc' object='libtfm_la-cmssi12.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmssi12.lo `test -f 'cmssi12.cc' || echo '$(srcdir)/'`cmssi12.cc libtfm_la-cmssi17.lo: cmssi17.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmssi17.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmssi17.Tpo" -c -o libtfm_la-cmssi17.lo `test -f 'cmssi17.cc' || echo '$(srcdir)/'`cmssi17.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmssi17.Tpo" "$(DEPDIR)/libtfm_la-cmssi17.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmssi17.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmssi17.cc' object='libtfm_la-cmssi17.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmssi17.lo `test -f 'cmssi17.cc' || echo '$(srcdir)/'`cmssi17.cc libtfm_la-cmssi8.lo: cmssi8.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmssi8.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmssi8.Tpo" -c -o libtfm_la-cmssi8.lo `test -f 'cmssi8.cc' || echo '$(srcdir)/'`cmssi8.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmssi8.Tpo" "$(DEPDIR)/libtfm_la-cmssi8.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmssi8.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmssi8.cc' object='libtfm_la-cmssi8.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmssi8.lo `test -f 'cmssi8.cc' || echo '$(srcdir)/'`cmssi8.cc libtfm_la-cmssi9.lo: cmssi9.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmssi9.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmssi9.Tpo" -c -o libtfm_la-cmssi9.lo `test -f 'cmssi9.cc' || echo '$(srcdir)/'`cmssi9.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmssi9.Tpo" "$(DEPDIR)/libtfm_la-cmssi9.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmssi9.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmssi9.cc' object='libtfm_la-cmssi9.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmssi9.lo `test -f 'cmssi9.cc' || echo '$(srcdir)/'`cmssi9.cc libtfm_la-cmsy5.lo: cmsy5.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmsy5.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmsy5.Tpo" -c -o libtfm_la-cmsy5.lo `test -f 'cmsy5.cc' || echo '$(srcdir)/'`cmsy5.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmsy5.Tpo" "$(DEPDIR)/libtfm_la-cmsy5.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmsy5.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmsy5.cc' object='libtfm_la-cmsy5.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmsy5.lo `test -f 'cmsy5.cc' || echo '$(srcdir)/'`cmsy5.cc libtfm_la-cmsy6.lo: cmsy6.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmsy6.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmsy6.Tpo" -c -o libtfm_la-cmsy6.lo `test -f 'cmsy6.cc' || echo '$(srcdir)/'`cmsy6.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmsy6.Tpo" "$(DEPDIR)/libtfm_la-cmsy6.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmsy6.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmsy6.cc' object='libtfm_la-cmsy6.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmsy6.lo `test -f 'cmsy6.cc' || echo '$(srcdir)/'`cmsy6.cc libtfm_la-cmsy7.lo: cmsy7.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmsy7.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmsy7.Tpo" -c -o libtfm_la-cmsy7.lo `test -f 'cmsy7.cc' || echo '$(srcdir)/'`cmsy7.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmsy7.Tpo" "$(DEPDIR)/libtfm_la-cmsy7.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmsy7.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmsy7.cc' object='libtfm_la-cmsy7.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmsy7.lo `test -f 'cmsy7.cc' || echo '$(srcdir)/'`cmsy7.cc libtfm_la-cmsy8.lo: cmsy8.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmsy8.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmsy8.Tpo" -c -o libtfm_la-cmsy8.lo `test -f 'cmsy8.cc' || echo '$(srcdir)/'`cmsy8.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmsy8.Tpo" "$(DEPDIR)/libtfm_la-cmsy8.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmsy8.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmsy8.cc' object='libtfm_la-cmsy8.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmsy8.lo `test -f 'cmsy8.cc' || echo '$(srcdir)/'`cmsy8.cc libtfm_la-cmsy9.lo: cmsy9.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmsy9.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmsy9.Tpo" -c -o libtfm_la-cmsy9.lo `test -f 'cmsy9.cc' || echo '$(srcdir)/'`cmsy9.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmsy9.Tpo" "$(DEPDIR)/libtfm_la-cmsy9.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmsy9.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmsy9.cc' object='libtfm_la-cmsy9.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmsy9.lo `test -f 'cmsy9.cc' || echo '$(srcdir)/'`cmsy9.cc libtfm_la-cmti12.lo: cmti12.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmti12.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmti12.Tpo" -c -o libtfm_la-cmti12.lo `test -f 'cmti12.cc' || echo '$(srcdir)/'`cmti12.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmti12.Tpo" "$(DEPDIR)/libtfm_la-cmti12.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmti12.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmti12.cc' object='libtfm_la-cmti12.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmti12.lo `test -f 'cmti12.cc' || echo '$(srcdir)/'`cmti12.cc libtfm_la-cmti7.lo: cmti7.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmti7.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmti7.Tpo" -c -o libtfm_la-cmti7.lo `test -f 'cmti7.cc' || echo '$(srcdir)/'`cmti7.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmti7.Tpo" "$(DEPDIR)/libtfm_la-cmti7.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmti7.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmti7.cc' object='libtfm_la-cmti7.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmti7.lo `test -f 'cmti7.cc' || echo '$(srcdir)/'`cmti7.cc libtfm_la-cmti8.lo: cmti8.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmti8.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmti8.Tpo" -c -o libtfm_la-cmti8.lo `test -f 'cmti8.cc' || echo '$(srcdir)/'`cmti8.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmti8.Tpo" "$(DEPDIR)/libtfm_la-cmti8.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmti8.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmti8.cc' object='libtfm_la-cmti8.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmti8.lo `test -f 'cmti8.cc' || echo '$(srcdir)/'`cmti8.cc libtfm_la-cmti9.lo: cmti9.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmti9.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmti9.Tpo" -c -o libtfm_la-cmti9.lo `test -f 'cmti9.cc' || echo '$(srcdir)/'`cmti9.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmti9.Tpo" "$(DEPDIR)/libtfm_la-cmti9.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmti9.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmti9.cc' object='libtfm_la-cmti9.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmti9.lo `test -f 'cmti9.cc' || echo '$(srcdir)/'`cmti9.cc libtfm_la-cmtt12.lo: cmtt12.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmtt12.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmtt12.Tpo" -c -o libtfm_la-cmtt12.lo `test -f 'cmtt12.cc' || echo '$(srcdir)/'`cmtt12.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmtt12.Tpo" "$(DEPDIR)/libtfm_la-cmtt12.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmtt12.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmtt12.cc' object='libtfm_la-cmtt12.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmtt12.lo `test -f 'cmtt12.cc' || echo '$(srcdir)/'`cmtt12.cc libtfm_la-cmtt8.lo: cmtt8.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmtt8.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmtt8.Tpo" -c -o libtfm_la-cmtt8.lo `test -f 'cmtt8.cc' || echo '$(srcdir)/'`cmtt8.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmtt8.Tpo" "$(DEPDIR)/libtfm_la-cmtt8.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmtt8.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmtt8.cc' object='libtfm_la-cmtt8.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmtt8.lo `test -f 'cmtt8.cc' || echo '$(srcdir)/'`cmtt8.cc libtfm_la-cmtt9.lo: cmtt9.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-cmtt9.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-cmtt9.Tpo" -c -o libtfm_la-cmtt9.lo `test -f 'cmtt9.cc' || echo '$(srcdir)/'`cmtt9.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-cmtt9.Tpo" "$(DEPDIR)/libtfm_la-cmtt9.Plo"; else rm -f "$(DEPDIR)/libtfm_la-cmtt9.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='cmtt9.cc' object='libtfm_la-cmtt9.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-cmtt9.lo `test -f 'cmtt9.cc' || echo '$(srcdir)/'`cmtt9.cc libtfm_la-msam5.lo: msam5.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-msam5.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-msam5.Tpo" -c -o libtfm_la-msam5.lo `test -f 'msam5.cc' || echo '$(srcdir)/'`msam5.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-msam5.Tpo" "$(DEPDIR)/libtfm_la-msam5.Plo"; else rm -f "$(DEPDIR)/libtfm_la-msam5.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='msam5.cc' object='libtfm_la-msam5.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-msam5.lo `test -f 'msam5.cc' || echo '$(srcdir)/'`msam5.cc libtfm_la-msam6.lo: msam6.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-msam6.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-msam6.Tpo" -c -o libtfm_la-msam6.lo `test -f 'msam6.cc' || echo '$(srcdir)/'`msam6.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-msam6.Tpo" "$(DEPDIR)/libtfm_la-msam6.Plo"; else rm -f "$(DEPDIR)/libtfm_la-msam6.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='msam6.cc' object='libtfm_la-msam6.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-msam6.lo `test -f 'msam6.cc' || echo '$(srcdir)/'`msam6.cc libtfm_la-msam7.lo: msam7.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-msam7.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-msam7.Tpo" -c -o libtfm_la-msam7.lo `test -f 'msam7.cc' || echo '$(srcdir)/'`msam7.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-msam7.Tpo" "$(DEPDIR)/libtfm_la-msam7.Plo"; else rm -f "$(DEPDIR)/libtfm_la-msam7.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='msam7.cc' object='libtfm_la-msam7.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-msam7.lo `test -f 'msam7.cc' || echo '$(srcdir)/'`msam7.cc libtfm_la-msam8.lo: msam8.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-msam8.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-msam8.Tpo" -c -o libtfm_la-msam8.lo `test -f 'msam8.cc' || echo '$(srcdir)/'`msam8.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-msam8.Tpo" "$(DEPDIR)/libtfm_la-msam8.Plo"; else rm -f "$(DEPDIR)/libtfm_la-msam8.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='msam8.cc' object='libtfm_la-msam8.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-msam8.lo `test -f 'msam8.cc' || echo '$(srcdir)/'`msam8.cc libtfm_la-msam9.lo: msam9.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-msam9.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-msam9.Tpo" -c -o libtfm_la-msam9.lo `test -f 'msam9.cc' || echo '$(srcdir)/'`msam9.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-msam9.Tpo" "$(DEPDIR)/libtfm_la-msam9.Plo"; else rm -f "$(DEPDIR)/libtfm_la-msam9.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='msam9.cc' object='libtfm_la-msam9.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-msam9.lo `test -f 'msam9.cc' || echo '$(srcdir)/'`msam9.cc libtfm_la-msbm5.lo: msbm5.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-msbm5.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-msbm5.Tpo" -c -o libtfm_la-msbm5.lo `test -f 'msbm5.cc' || echo '$(srcdir)/'`msbm5.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-msbm5.Tpo" "$(DEPDIR)/libtfm_la-msbm5.Plo"; else rm -f "$(DEPDIR)/libtfm_la-msbm5.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='msbm5.cc' object='libtfm_la-msbm5.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-msbm5.lo `test -f 'msbm5.cc' || echo '$(srcdir)/'`msbm5.cc libtfm_la-msbm6.lo: msbm6.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-msbm6.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-msbm6.Tpo" -c -o libtfm_la-msbm6.lo `test -f 'msbm6.cc' || echo '$(srcdir)/'`msbm6.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-msbm6.Tpo" "$(DEPDIR)/libtfm_la-msbm6.Plo"; else rm -f "$(DEPDIR)/libtfm_la-msbm6.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='msbm6.cc' object='libtfm_la-msbm6.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-msbm6.lo `test -f 'msbm6.cc' || echo '$(srcdir)/'`msbm6.cc libtfm_la-msbm7.lo: msbm7.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-msbm7.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-msbm7.Tpo" -c -o libtfm_la-msbm7.lo `test -f 'msbm7.cc' || echo '$(srcdir)/'`msbm7.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-msbm7.Tpo" "$(DEPDIR)/libtfm_la-msbm7.Plo"; else rm -f "$(DEPDIR)/libtfm_la-msbm7.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='msbm7.cc' object='libtfm_la-msbm7.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-msbm7.lo `test -f 'msbm7.cc' || echo '$(srcdir)/'`msbm7.cc libtfm_la-msbm8.lo: msbm8.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-msbm8.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-msbm8.Tpo" -c -o libtfm_la-msbm8.lo `test -f 'msbm8.cc' || echo '$(srcdir)/'`msbm8.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-msbm8.Tpo" "$(DEPDIR)/libtfm_la-msbm8.Plo"; else rm -f "$(DEPDIR)/libtfm_la-msbm8.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='msbm8.cc' object='libtfm_la-msbm8.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-msbm8.lo `test -f 'msbm8.cc' || echo '$(srcdir)/'`msbm8.cc libtfm_la-msbm9.lo: msbm9.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-msbm9.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-msbm9.Tpo" -c -o libtfm_la-msbm9.lo `test -f 'msbm9.cc' || echo '$(srcdir)/'`msbm9.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-msbm9.Tpo" "$(DEPDIR)/libtfm_la-msbm9.Plo"; else rm -f "$(DEPDIR)/libtfm_la-msbm9.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='msbm9.cc' object='libtfm_la-msbm9.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-msbm9.lo `test -f 'msbm9.cc' || echo '$(srcdir)/'`msbm9.cc libtfm_la-TFM.lo: TFM.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-TFM.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-TFM.Tpo" -c -o libtfm_la-TFM.lo `test -f 'TFM.cc' || echo '$(srcdir)/'`TFM.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-TFM.Tpo" "$(DEPDIR)/libtfm_la-TFM.Plo"; else rm -f "$(DEPDIR)/libtfm_la-TFM.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='TFM.cc' object='libtfm_la-TFM.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-TFM.lo `test -f 'TFM.cc' || echo '$(srcdir)/'`TFM.cc libtfm_la-TFMManager.lo: TFMManager.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libtfm_la-TFMManager.lo -MD -MP -MF "$(DEPDIR)/libtfm_la-TFMManager.Tpo" -c -o libtfm_la-TFMManager.lo `test -f 'TFMManager.cc' || echo '$(srcdir)/'`TFMManager.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libtfm_la-TFMManager.Tpo" "$(DEPDIR)/libtfm_la-TFMManager.Plo"; else rm -f "$(DEPDIR)/libtfm_la-TFMManager.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='TFMManager.cc' object='libtfm_la-TFMManager.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libtfm_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libtfm_la-TFMManager.lo `test -f 'TFMManager.cc' || echo '$(srcdir)/'`TFMManager.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-info-am # Linux cm* fonts $(srcdir)/%.xtfm: /usr/share/texmf/fonts/tfm/public/cm/%.tfm $(TFMDUMP) $< >$@ # OSX cm* fonts $(srcdir)/%.xtfm: /usr/local/teTeX/share/texmf.tetex/fonts/tfm/public/cm/%.tfm $(TFMDUMP) $< >$@ # OSX ms* fonts $(srcdir)/%.xtfm: /usr/local/teTeX/share/texmf.tetex/fonts/tfm/ams/symbols/%.tfm $(TFMDUMP) $< >$@ @COND_XSLTPROC_TRUE@%.cc: $(srcdir)/%.xtfm $(XTFMTOCC) $(LICENSE) @COND_XSLTPROC_TRUE@ cat $(LICENSE) >$@ @COND_XSLTPROC_TRUE@ $(XSLTPROC) --stringparam name $(basename $(notdir $(@:%.cc=%))) $(XTFMTOCC) $< >>$@ @COND_XSLTPROC_TRUE@.PHONY: xtfms @COND_XSLTPROC_TRUE@xtfms: $(XTFMS) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/src/backend/common/tfm/cmbx7.cc0000644000175000017500000004221610704611256016564 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMBX", 0xf0, "TeX text", 0x00700000, 0x661724d8, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x0006f22e }, { 0x03, "space_stretch", 0x000368d7 }, { 0x04, "space_shrink", 0x000245e5 }, { 0x05, "x_height", 0x00071c72 }, { 0x06, "quad", 0x0014b609 }, { 0x07, "extra_space", 0x000245e5 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x0001f027 }, { 0x27, 0x0001f027 }, { 0x29, 0x0001f027 }, { 0x3f, 0x0001f027 }, { 0x5d, 0x0001f027 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfff942a5 }, { 0x6c, 0xfffa30c5 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x000245e5 }, { 0x3f, 0x000245e5 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff6e87 }, { 0x47, 0xffff6e87 }, { 0x4f, 0xffff6e87 }, { 0x51, 0xffff6e87 }, { 0x54, 0xfffe4b95 }, { 0x55, 0xffff6e87 }, { 0x56, 0xfffdba1b }, { 0x57, 0xfffdba1b }, { 0x59, 0xfffe4b95 }, { 0x74, 0xffff6e87 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff6e87 }, { 0x56, 0xffff6e87 }, { 0x57, 0xffff6e87 }, { 0x58, 0xffff6e87 }, { 0x59, 0xffff6e87 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffdba1b }, { 0x43, 0xffff6e87 }, { 0x47, 0xffff6e87 }, { 0x4f, 0xffff6e87 }, { 0x51, 0xffff6e87 }, { 0x61, 0xfffe4b95 }, { 0x65, 0xfffe4b95 }, { 0x6f, 0xfffe4b95 }, { 0x72, 0xfffe4b95 }, { 0x75, 0xfffe4b95 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x00009179 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff6e87 }, { 0x47, 0xffff6e87 }, { 0x4f, 0xffff6e87 }, { 0x51, 0xffff6e87 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffe4b95 }, { 0x56, 0xfffdba1b }, { 0x57, 0xfffdba1b }, { 0x59, 0xfffe4b95 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff6e87 }, { 0x56, 0xffff6e87 }, { 0x57, 0xffff6e87 }, { 0x58, 0xffff6e87 }, { 0x59, 0xffff6e87 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffe4b95 }, { 0x2e, 0xfffe4b95 }, { 0x41, 0xfffe4b95 }, { 0x61, 0xffff6e87 }, { 0x65, 0xffff6e87 }, { 0x6f, 0xffff6e87 } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff6e87 }, { 0x47, 0xffff6e87 }, { 0x4f, 0xffff6e87 }, { 0x51, 0xffff6e87 }, { 0x54, 0xfffe4b95 }, { 0x55, 0xffff6e87 }, { 0x56, 0xfffdba1b }, { 0x57, 0xfffdba1b }, { 0x59, 0xfffe4b95 }, { 0x74, 0xffff6e87 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffe4b95 }, { 0x61, 0xfffe4b95 }, { 0x65, 0xfffe4b95 }, { 0x6f, 0xfffe4b95 }, { 0x72, 0xfffe4b95 }, { 0x75, 0xfffe4b95 }, { 0x79, 0xffff6e87 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffdba1b }, { 0x43, 0xffff6e87 }, { 0x47, 0xffff6e87 }, { 0x4f, 0xffff6e87 }, { 0x51, 0xffff6e87 }, { 0x61, 0xfffe4b95 }, { 0x65, 0xfffe4b95 }, { 0x6f, 0xfffe4b95 }, { 0x72, 0xfffe4b95 }, { 0x75, 0xfffe4b95 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffdba1b }, { 0x43, 0xffff6e87 }, { 0x47, 0xffff6e87 }, { 0x4f, 0xffff6e87 }, { 0x51, 0xffff6e87 }, { 0x61, 0xfffe4b95 }, { 0x65, 0xfffe4b95 }, { 0x6f, 0xfffe4b95 }, { 0x72, 0xfffe4b95 }, { 0x75, 0xfffe4b95 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff6e87 }, { 0x47, 0xffff6e87 }, { 0x4f, 0xffff6e87 }, { 0x51, 0xffff6e87 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffe4b95 }, { 0x61, 0xfffe4b95 }, { 0x65, 0xfffe4b95 }, { 0x6f, 0xfffe4b95 }, { 0x72, 0xfffe4b95 }, { 0x75, 0xfffe4b95 } }; static TFM::Kerning C_61_Kerning[] = { { 0x6a, 0x000122f2 }, { 0x76, 0xffff6e87 }, { 0x77, 0xffff6e87 }, { 0x79, 0xffff6e87 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x00009179 }, { 0x64, 0x00009179 }, { 0x65, 0x00009179 }, { 0x6a, 0x000122f2 }, { 0x6f, 0x00009179 }, { 0x71, 0x00009179 }, { 0x76, 0xffff6e87 }, { 0x77, 0xffff6e87 }, { 0x78, 0xffff6e87 }, { 0x79, 0xffff6e87 } }; static TFM::Kerning C_63_Kerning[] = { { 0x68, 0xffff6e87 }, { 0x6b, 0xffff6e87 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x0001f027 }, { 0x27, 0x0001f027 }, { 0x29, 0x0001f027 }, { 0x3f, 0x0001f027 }, { 0x5d, 0x0001f027 } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x00009179 } }; static TFM::Kerning C_68_Kerning[] = { { 0x62, 0xffff6e87 }, { 0x74, 0xffff6e87 }, { 0x75, 0xffff6e87 }, { 0x76, 0xffff6e87 }, { 0x77, 0xffff6e87 }, { 0x79, 0xffff6e87 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xfffedd0e }, { 0x61, 0xffff6e87 }, { 0x63, 0xffff6e87 }, { 0x65, 0xffff6e87 }, { 0x6f, 0xffff6e87 } }; static TFM::Kerning C_6d_Kerning[] = { { 0x62, 0xffff6e87 }, { 0x74, 0xffff6e87 }, { 0x75, 0xffff6e87 }, { 0x76, 0xffff6e87 }, { 0x77, 0xffff6e87 }, { 0x79, 0xffff6e87 } }; static TFM::Kerning C_6e_Kerning[] = { { 0x62, 0xffff6e87 }, { 0x74, 0xffff6e87 }, { 0x75, 0xffff6e87 }, { 0x76, 0xffff6e87 }, { 0x77, 0xffff6e87 }, { 0x79, 0xffff6e87 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x00009179 }, { 0x64, 0x00009179 }, { 0x65, 0x00009179 }, { 0x6a, 0x000122f2 }, { 0x6f, 0x00009179 }, { 0x71, 0x00009179 }, { 0x76, 0xffff6e87 }, { 0x77, 0xffff6e87 }, { 0x78, 0xffff6e87 }, { 0x79, 0xffff6e87 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x00009179 }, { 0x64, 0x00009179 }, { 0x65, 0x00009179 }, { 0x6a, 0x000122f2 }, { 0x6f, 0x00009179 }, { 0x71, 0x00009179 }, { 0x76, 0xffff6e87 }, { 0x77, 0xffff6e87 }, { 0x78, 0xffff6e87 }, { 0x79, 0xffff6e87 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff6e87 }, { 0x79, 0xffff6e87 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff6e87 } }; static TFM::Kerning C_76_Kerning[] = { { 0x61, 0xfffedd0e }, { 0x61, 0xffff6e87 }, { 0x63, 0xffff6e87 }, { 0x65, 0xffff6e87 }, { 0x6f, 0xffff6e87 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff6e87 }, { 0x63, 0xffff6e87 }, { 0x65, 0xffff6e87 }, { 0x6f, 0xffff6e87 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffe4b95 }, { 0x2e, 0xfffe4b95 }, { 0x61, 0xffff6e87 }, { 0x65, 0xffff6e87 }, { 0x6f, 0xffff6e87 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000c5fe5, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x00112cb2, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x001009c0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000e5965, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000dc3db, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x00100820, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000ee6ce, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x001009c0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000ee6ce, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x001009c0, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000ee6ce, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000c2ff0, 0x000b1c72, 0x00000000, 0x0001f027, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x000b9e77, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x000b9e77, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x00116db2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x00116db2, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x0005cf3b, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x000660b5, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000a5b05, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000a5b05, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000a5b05, 0x000a1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000a5b05, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000a5b05, 0x0009b39b, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000f7c57, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00093812, 0x00000000, 0x0002b8e5, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000ab39b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000ee6ce, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x001009c0, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x000a5b05, 0x0008aaab, 0x00018e39, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x00129a69, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x0014e04e, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x001009c0, 0x000bc16e, 0x0000c71e, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x0005cf3b, 0x00071c72, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x00065b05, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x000aaf89, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x00112cb2, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x000a5b05, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x00112cb2, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x001009c0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x0005cf3b, 0x000b1c72, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x00081520, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00081520, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000a5b05, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x001009c0, 0x000ad1ae, 0x0002d1ae, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x0005cf3b, 0x00029a69, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0006f22e, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x0005cf3b, 0x00029a69, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000a5b05, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x000a5b05, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x000a5b05, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000a5b05, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000a5b05, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000a5b05, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000a5b05, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x000a5b05, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x000a5b05, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000a5b05, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000a5b05, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x0005cf3b, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x0005cf3b, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00065b05, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x001009c0, 0x000692f0, 0xfffe92f0, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x0009c98b, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x0009c98b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x001009c0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000f7c57, 0x000afa50, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000ea019, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000ee6ce, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000fc30b, 0x000afa50, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000d82d7, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000cf15e, 0x000afa50, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x00102f22, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x00100820, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x0007ab79, 0x000afa50, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000aa5c9, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x00100dd0, 0x000afa50, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000c5fe5, 0x000afa50, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x001370f7, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x00100820, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000f7df7, 0x000afa50, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000e0ea0, 0x000afa50, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000f7df7, 0x000afa50, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000f5bd5, 0x000afa50, 0x00000000, 0x00000000, 10, C_52_Kerning, 0, 0 }, { 0x53, 0x000b7df7, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000e5b05, 0x000afa50, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000fc23b, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000f7c57, 0x000afa50, 0x00000000, 0x000048be, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x00152b12, 0x000afa50, 0x00000000, 0x000048be, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000f7c57, 0x000afa50, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000f7c57, 0x000afa50, 0x00000000, 0x000082ee, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000ca0e9, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x0005d2f9, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000aaf89, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x0005d2f9, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000a5b05, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x0005cf3b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x0005cf3b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x000a1247, 0x00071c72, 0x00000000, 0x00000000, 4, C_61_Kerning, 0, 0 }, { 0x62, 0x000b7df7, 0x000b1c72, 0x00000000, 0x00000000, 10, C_62_Kerning, 0, 0 }, { 0x63, 0x00093812, 0x00071c72, 0x00000000, 0x00000000, 2, C_63_Kerning, 0, 0 }, { 0x64, 0x000b7df7, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00097a50, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000660b5, 0x000b1c72, 0x00000000, 0x0001f027, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x000a5b05, 0x00071c72, 0x00031c72, 0x000048be, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x000b7df7, 0x000b1c72, 0x00000000, 0x00000000, 6, C_68_Kerning, 0, 0 }, { 0x69, 0x0005cf3b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x000660b5, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000aec7e, 0x000b1c72, 0x00000000, 0x00000000, 5, C_6b_Kerning, 0, 0 }, { 0x6c, 0x0005cf3b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x00112cb2, 0x00071c72, 0x00000000, 0x00000000, 6, C_6d_Kerning, 0, 0 }, { 0x6e, 0x000b7df7, 0x00071c72, 0x00000000, 0x00000000, 6, C_6e_Kerning, 0, 0 }, { 0x6f, 0x000a5b05, 0x00071c72, 0x00000000, 0x00000000, 10, C_6f_Kerning, 0, 0 }, { 0x70, 0x000b7df7, 0x00071c72, 0x00031c72, 0x00000000, 10, C_70_Kerning, 0, 0 }, { 0x71, 0x000aec7e, 0x00071c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x00088d69, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x00083239, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x00081520, 0x000a28a5, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x000b7df7, 0x00071c72, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x000aec7e, 0x00071c72, 0x00000000, 0x000048be, 5, C_76_Kerning, 0, 0 }, { 0x77, 0x000ee6ce, 0x00071c72, 0x00000000, 0x000048be, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x000aec7e, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x000aec7e, 0x00071c72, 0x00031c72, 0x000048be, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x00093812, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000a5b05, 0x00071c72, 0x00000000, 0x00009179, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x0014b609, 0x00071c72, 0x00000000, 0x00009179, 0, 0, 0, 0 }, { 0x7d, 0x000a5b05, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000a5b05, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000a5b05, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmbx7_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmsy9.cc0000644000175000017500000003162110704611260016601 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMSY", 0xec, "TeX math symbols", 0x00900000, 0xa9b190ca, 22, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x00000000 }, { 0x03, "space_stretch", 0x00000000 }, { 0x04, "space_shrink", 0x00000000 }, { 0x05, "x_height", 0x0006e38e }, { 0x06, "quad", 0x001071c0 }, { 0x07, "extra_space", 0x00000000 }, { 0x08, "num1", 0x000a590b }, { 0x09, "num2", 0x00068e24 }, { 0x0a, "num3", 0x0007327c }, { 0x0b, "denom1", 0x000ada00 }, { 0x0c, "denom2", 0x00056deb }, { 0x0d, "sup1", 0x0007af95 }, { 0x0e, "sup2", 0x0006cc07 }, { 0x0f, "sup3", 0x000497b4 }, { 0x10, "sub1", 0x0001c71c }, { 0x11, "sub2", 0x0002d09e }, { 0x12, "supdrop", 0x0005a134 }, { 0x13, "subdrop", 0x0000e38e }, { 0x14, "delim1", 0x002a7d27 }, { 0x15, "delim2", 0x00102d84 }, { 0x16, "axis_height", 0x00040000 } }; static TFM::Kerning C_41_Kerning[] = { { 0x30, 0x00033290 } }; static TFM::Kerning C_42_Kerning[] = { { 0x30, 0x000248b0 } }; static TFM::Kerning C_43_Kerning[] = { { 0x30, 0x000248b0 } }; static TFM::Kerning C_44_Kerning[] = { { 0x30, 0x00015ed0 } }; static TFM::Kerning C_45_Kerning[] = { { 0x30, 0x0001d3c0 } }; static TFM::Kerning C_46_Kerning[] = { { 0x30, 0x0001d3c0 } }; static TFM::Kerning C_47_Kerning[] = { { 0x30, 0x0001d3c0 } }; static TFM::Kerning C_48_Kerning[] = { { 0x30, 0x0001d3c0 } }; static TFM::Kerning C_49_Kerning[] = { { 0x30, 0x000074f0 } }; static TFM::Kerning C_4a_Kerning[] = { { 0x30, 0x0002bda0 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x30, 0x0000e9e0 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x30, 0x000248b0 } }; static TFM::Kerning C_4d_Kerning[] = { { 0x30, 0x000248b0 } }; static TFM::Kerning C_4e_Kerning[] = { { 0x30, 0x00015ed0 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x30, 0x0001d3c0 } }; static TFM::Kerning C_50_Kerning[] = { { 0x30, 0x00015ed0 } }; static TFM::Kerning C_51_Kerning[] = { { 0x30, 0x0001d3c0 } }; static TFM::Kerning C_52_Kerning[] = { { 0x30, 0x00015ed0 } }; static TFM::Kerning C_53_Kerning[] = { { 0x30, 0x000248b0 } }; static TFM::Kerning C_54_Kerning[] = { { 0x30, 0x000074f0 } }; static TFM::Kerning C_55_Kerning[] = { { 0x30, 0x00015ed0 } }; static TFM::Kerning C_56_Kerning[] = { { 0x30, 0x000074f0 } }; static TFM::Kerning C_57_Kerning[] = { { 0x30, 0x00015ed0 } }; static TFM::Kerning C_58_Kerning[] = { { 0x30, 0x000248b0 } }; static TFM::Kerning C_59_Kerning[] = { { 0x30, 0x00015ed0 } }; static TFM::Kerning C_5a_Kerning[] = { { 0x30, 0x000248b0 } }; static TFM::Character character[] = { { 0x00, 0x000cca40, 0x00097b40, 0x00017b40, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x00049160, 0x00073290, 0xffff3290, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000cca40, 0x00097b40, 0x00017b40, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000838e0, 0x000771c7, 0xffff71c7, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000cca40, 0x00097b40, 0x00017b40, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000838e0, 0x00073290, 0xffff3290, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000cca40, 0x00097b40, 0x00017b40, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000cca40, 0x00097b40, 0x00017b40, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000cca40, 0x00097b40, 0x00017b40, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000cca40, 0x00097b40, 0x00017b40, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000cca40, 0x00097b40, 0x00017b40, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x000cca40, 0x00097b40, 0x00017b40, 0x00000000, 0, 0, 0, 0 }, { 0x0c, 0x000cca40, 0x00097b40, 0x00017b40, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x001071c0, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000838e0, 0x00073290, 0xffff3290, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000838e0, 0x00073290, 0xffff3290, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x000cca40, 0x00079357, 0xffff9357, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x000cca40, 0x00079357, 0xffff9357, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x000cca40, 0x000a6f37, 0x00026f37, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x000cca40, 0x000a6f37, 0x00026f37, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x000cca40, 0x000a6f37, 0x00026f37, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x000cca40, 0x000a6f37, 0x00026f37, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x000cca40, 0x000a6f37, 0x00026f37, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000cca40, 0x000a6f37, 0x00026f37, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x000cca40, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000cca40, 0x0007e639, 0xffffe639, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000cca40, 0x0008d0c9, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000cca40, 0x0008d0c9, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x001071c0, 0x0008d0c9, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x001071c0, 0x0008d0c9, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000cca40, 0x0008d0c9, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000cca40, 0x0008d0c9, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x001071c0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x21, 0x001071c0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x22, 0x000838e0, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000838e0, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x001071c0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x001071c0, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x001071c0, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x000cca40, 0x00079357, 0xffff9357, 0x00000000, 0, 0, 0, 0 }, { 0x28, 0x001071c0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x001071c0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x000a0ca0, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000a0ca0, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x001071c0, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x001071c0, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2e, 0x001071c0, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x000cca40, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00047819, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x001071c0, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x000af680, 0x0008d0c9, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x000af680, 0x0008d0c9, 0x0000d0c9, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x000e9e00, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x000e9e00, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x00000000, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x00000000, 0x0005f4e9, 0xfffdf4e9, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x000922c0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x000922c0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x000af680, 0x0006e38e, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x000838e0, 0x000c0000, 0x0000e38e, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x000be060, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000be060, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000cca40, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000cca40, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x40, 0x000a0ca0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000d234b, 0x000aeeee, 0x00000000, 0x00000000, 1, C_41_Kerning, 0, 0 }, { 0x42, 0x000ac729, 0x000aeeee, 0x00000000, 0x00007652, 1, C_42_Kerning, 0, 0 }, { 0x43, 0x0008ae60, 0x000aeeee, 0x00000000, 0x0000e60b, 1, C_43_Kerning, 0, 0 }, { 0x44, 0x000cb33e, 0x000aeeee, 0x00000000, 0x000074f0, 1, C_44_Kerning, 0, 0 }, { 0x45, 0x0008add0, 0x000aeeee, 0x00000000, 0x000168fc, 1, C_45_Kerning, 0, 0 }, { 0x46, 0x000bc807, 0x000aeeee, 0x00000000, 0x00019855, 1, C_46_Kerning, 0, 0 }, { 0x47, 0x0009c647, 0x000aeeee, 0x00018e39, 0x0000eff0, 1, C_47_Kerning, 0, 0 }, { 0x48, 0x000defd0, 0x000aeeee, 0x00000000, 0x00001822, 1, C_48_Kerning, 0, 0 }, { 0x49, 0x000900e5, 0x000aeeee, 0x00000000, 0x000123e4, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x000b2545, 0x000aeeee, 0x00018e39, 0x00000000, 1, C_4a_Kerning, 0, 0 }, { 0x4b, 0x000c83b9, 0x000aeeee, 0x00000000, 0x00002d47, 1, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000b53ac, 0x000aeeee, 0x00000000, 0x00000000, 1, C_4c_Kerning, 0, 0 }, { 0x4d, 0x0013aaa4, 0x000aeeee, 0x00000000, 0x00000000, 1, C_4d_Kerning, 0, 0 }, { 0x4e, 0x000d792e, 0x000aeeee, 0x00000000, 0x00025ec0, 1, C_4e_Kerning, 0, 0 }, { 0x4f, 0x000d0fa7, 0x000aeeee, 0x00000000, 0x000074f0, 1, C_4f_Kerning, 0, 0 }, { 0x50, 0x000b77e4, 0x000aeeee, 0x00000000, 0x0001525c, 1, C_50_Kerning, 0, 0 }, { 0x51, 0x000d6df5, 0x000aeeee, 0x00018e39, 0x00000000, 1, C_51_Kerning, 0, 0 }, { 0x52, 0x000dfb6b, 0x000aeeee, 0x00000000, 0x00000000, 1, C_52_Kerning, 0, 0 }, { 0x53, 0x0009f53c, 0x000aeeee, 0x00000000, 0x0001300e, 1, C_53_Kerning, 0, 0 }, { 0x54, 0x000902b0, 0x000aeeee, 0x00000000, 0x00001822, 1, C_54_Kerning, 0, 0 }, { 0x55, 0x000a46b4, 0x000aeeee, 0x00000000, 0x00019855, 1, C_55_Kerning, 0, 0 }, { 0x56, 0x000a1cf0, 0x000aeeee, 0x00000000, 0x0001525c, 1, C_56_Kerning, 0, 0 }, { 0x57, 0x00104797, 0x000aeeee, 0x00000000, 0x0001525c, 1, C_57_Kerning, 0, 0 }, { 0x58, 0x000bb804, 0x000aeeee, 0x00000000, 0x000257c5, 1, C_58_Kerning, 0, 0 }, { 0x59, 0x000af5c2, 0x000aeeee, 0x00018e39, 0x0001525c, 1, C_59_Kerning, 0, 0 }, { 0x5a, 0x000bdf3e, 0x000aeeee, 0x00000000, 0x000146ab, 1, C_5a_Kerning, 0, 0 }, { 0x5b, 0x000af680, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x000af680, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x000af680, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x000af680, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x000af680, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x000a0ca0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x61, 0x000a0ca0, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x62, 0x00074f00, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x63, 0x00074f00, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x64, 0x00074f00, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x00074f00, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x000838e0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x67, 0x000838e0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x68, 0x00066520, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x69, 0x00066520, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x00049160, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000838e0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x000838e0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000a0ca0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6e, 0x000838e0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x6f, 0x00049160, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x70, 0x000db420, 0x0000acf2, 0x000f530e, 0x00000000, 0, 0, 0, 0 }, { 0x71, 0x000c54ae, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x000db420, 0x000aeeee, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x0006da12, 0x000b1c72, 0x00031c72, 0x0001d3c0, 0, 0, 0, 0 }, { 0x74, 0x000af680, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x75, 0x000af680, 0x0008e390, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x76, 0x000cca40, 0x000a6f37, 0x00026f37, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000cca40, 0x000a6f37, 0x00026f37, 0x00000000, 0, 0, 0, 0 }, { 0x78, 0x00074f00, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x00074f00, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x7a, 0x00074f00, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x000a0ca0, 0x000b1c72, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x7c, 0x000cca40, 0x000b1c72, 0x000212f7, 0x00000000, 0, 0, 0, 0 }, { 0x7d, 0x000cca40, 0x000b1c72, 0x000212f7, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x000cca40, 0x000b1c72, 0x000212f7, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x000cca40, 0x000b1c72, 0x000212f7, 0x00000000, 0, 0, 0, 0 } }; void cmsy9_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmr12.cc0000644000175000017500000004221510704611256016467 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMR", 0xe6, "TeX text", 0x00c00000, 0x58ab510b, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00000000 }, { 0x02, "space", 0x000538e0 }, { 0x03, "space_stretch", 0x00029c70 }, { 0x04, "space_shrink", 0x0001bda0 }, { 0x05, "x_height", 0x0006e38f }, { 0x06, "quad", 0x000faaa0 }, { 0x07, "extra_space", 0x0001bda0 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x00011da1 }, { 0x27, 0x00011da1 }, { 0x29, 0x00011da1 }, { 0x3f, 0x00011da1 }, { 0x5d, 0x00011da1 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffaff89 }, { 0x6c, 0xfffba5f0 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001bda0 }, { 0x3f, 0x0001bda0 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 }, { 0x54, 0xfffeb1c8 }, { 0x55, 0xffff9098 }, { 0x56, 0xfffe4260 }, { 0x57, 0xfffe4260 }, { 0x59, 0xfffeb1c8 }, { 0x74, 0xffff9098 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff9098 }, { 0x56, 0xffff9098 }, { 0x57, 0xffff9098 }, { 0x58, 0xffff9098 }, { 0x59, 0xffff9098 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffe4260 }, { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 }, { 0x61, 0xfffeb1c8 }, { 0x65, 0xfffeb1c8 }, { 0x6f, 0xfffeb1c8 }, { 0x72, 0xfffeb1c8 }, { 0x75, 0xfffeb1c8 } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x00006f68 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffeb1c8 }, { 0x56, 0xfffe4260 }, { 0x57, 0xfffe4260 }, { 0x59, 0xfffeb1c8 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff9098 }, { 0x56, 0xffff9098 }, { 0x57, 0xffff9098 }, { 0x58, 0xffff9098 }, { 0x59, 0xffff9098 } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffeb1c8 }, { 0x2e, 0xfffeb1c8 }, { 0x41, 0xfffeb1c8 }, { 0x61, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 }, { 0x54, 0xfffeb1c8 }, { 0x55, 0xffff9098 }, { 0x56, 0xfffe4260 }, { 0x57, 0xfffe4260 }, { 0x59, 0xfffeb1c8 }, { 0x74, 0xffff9098 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffeb1c8 }, { 0x61, 0xfffeb1c8 }, { 0x65, 0xfffeb1c8 }, { 0x6f, 0xfffeb1c8 }, { 0x72, 0xfffeb1c8 }, { 0x75, 0xfffeb1c8 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffe4260 }, { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 }, { 0x61, 0xfffeb1c8 }, { 0x65, 0xfffeb1c8 }, { 0x6f, 0xfffeb1c8 }, { 0x72, 0xfffeb1c8 }, { 0x75, 0xfffeb1c8 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffe4260 }, { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 }, { 0x61, 0xfffeb1c8 }, { 0x65, 0xfffeb1c8 }, { 0x6f, 0xfffeb1c8 }, { 0x72, 0xfffeb1c8 }, { 0x75, 0xfffeb1c8 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff9098 }, { 0x47, 0xffff9098 }, { 0x4f, 0xffff9098 }, { 0x51, 0xffff9098 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffeb1c8 }, { 0x61, 0xfffeb1c8 }, { 0x65, 0xfffeb1c8 }, { 0x6f, 0xfffeb1c8 }, { 0x72, 0xfffeb1c8 }, { 0x75, 0xfffeb1c8 } }; static TFM::Kerning C_61_Kerning[] = { { 0x6a, 0x0000ded0 }, { 0x76, 0xffff9098 }, { 0x77, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x00006f68 }, { 0x64, 0x00006f68 }, { 0x65, 0x00006f68 }, { 0x6a, 0x0000ded0 }, { 0x6f, 0x00006f68 }, { 0x71, 0x00006f68 }, { 0x76, 0xffff9098 }, { 0x77, 0xffff9098 }, { 0x78, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_63_Kerning[] = { { 0x68, 0xffff9098 }, { 0x6b, 0xffff9098 } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x00011da1 }, { 0x27, 0x00011da1 }, { 0x29, 0x00011da1 }, { 0x3f, 0x00011da1 }, { 0x5d, 0x00011da1 } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x00006f68 } }; static TFM::Kerning C_68_Kerning[] = { { 0x62, 0xffff9098 }, { 0x74, 0xffff9098 }, { 0x75, 0xffff9098 }, { 0x76, 0xffff9098 }, { 0x77, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff2130 }, { 0x61, 0xffff9098 }, { 0x63, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 } }; static TFM::Kerning C_6d_Kerning[] = { { 0x62, 0xffff9098 }, { 0x74, 0xffff9098 }, { 0x75, 0xffff9098 }, { 0x76, 0xffff9098 }, { 0x77, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_6e_Kerning[] = { { 0x62, 0xffff9098 }, { 0x74, 0xffff9098 }, { 0x75, 0xffff9098 }, { 0x76, 0xffff9098 }, { 0x77, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x00006f68 }, { 0x64, 0x00006f68 }, { 0x65, 0x00006f68 }, { 0x6a, 0x0000ded0 }, { 0x6f, 0x00006f68 }, { 0x71, 0x00006f68 }, { 0x76, 0xffff9098 }, { 0x77, 0xffff9098 }, { 0x78, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x00006f68 }, { 0x64, 0x00006f68 }, { 0x65, 0x00006f68 }, { 0x6a, 0x0000ded0 }, { 0x6f, 0x00006f68 }, { 0x71, 0x00006f68 }, { 0x76, 0xffff9098 }, { 0x77, 0xffff9098 }, { 0x78, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff9098 }, { 0x79, 0xffff9098 } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff9098 } }; static TFM::Kerning C_76_Kerning[] = { { 0x61, 0xffff2130 }, { 0x61, 0xffff9098 }, { 0x63, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff9098 }, { 0x63, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffeb1c8 }, { 0x2e, 0xfffeb1c8 }, { 0x61, 0xffff9098 }, { 0x65, 0xffff9098 }, { 0x6f, 0xffff9098 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x0009c9ef, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x01, 0x000d0e30, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000c2f60, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x03, 0x000adfbd, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000a71c0, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000bbe8d, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x06, 0x000b5090, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x07, 0x000c2f60, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x08, 0x000b5090, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x09, 0x000c2f60, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0a, 0x000b5090, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0b, 0x00092388, 0x000b1c71, 0x00000000, 0x00011da1, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x0008b420, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0d, 0x0008b420, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0e, 0x000d0e30, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x0f, 0x000d0e30, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x10, 0x00045a10, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x11, 0x0004c978, 0x0006e38f, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x12, 0x0007d550, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x0007d550, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x14, 0x0007d550, 0x000a0e39, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x15, 0x0007d550, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x16, 0x0007d550, 0x00090979, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x17, 0x000bbe8d, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x0006f680, 0x00000000, 0x0002b8e3, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x0007d550, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1a, 0x000b5090, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000c2f60, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x0007d550, 0x000871c8, 0x00018e39, 0x00000000, 0, 0, 0, 0 }, { 0x1d, 0x000e23ff, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1e, 0x000fe19f, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1f, 0x000c2f60, 0x000bb60b, 0x0000c71c, 0x00000000, 0, 0, 0, 0 }, { 0x20, 0x00045a10, 0x0006e38f, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x00045a10, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 1, C_21_Ligature }, { 0x22, 0x0007d550, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000d0e30, 0x000b1c71, 0x00031c70, 0x00000000, 0, 0, 0, 0 }, { 0x24, 0x0007d550, 0x000c0000, 0x0000e38f, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000d0e30, 0x000c0000, 0x0000e38f, 0x00000000, 0, 0, 0, 0 }, { 0x26, 0x000c2f60, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x27, 0x00045a10, 0x000b1c71, 0x00000000, 0x00000000, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x000617b0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x000617b0, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x2a, 0x0007d550, 0x000c0000, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2b, 0x000c2f60, 0x000938e0, 0x000138e0, 0x00000000, 0, 0, 0, 0 }, { 0x2c, 0x00045a10, 0x00018e39, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x000538e0, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x00045a10, 0x00018e39, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x0007d550, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x0007d550, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x31, 0x0007d550, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x32, 0x0007d550, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x33, 0x0007d550, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x34, 0x0007d550, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x35, 0x0007d550, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x36, 0x0007d550, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x37, 0x0007d550, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x38, 0x0007d550, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x39, 0x0007d550, 0x000a4fa5, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3a, 0x00045a10, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x3b, 0x00045a10, 0x0006e38f, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x3c, 0x00045a10, 0x00080000, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x3d, 0x000c2f60, 0x0005c641, 0xfffdc641, 0x00000000, 0, 0, 0, 0 }, { 0x3e, 0x000765e8, 0x00080000, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x000765e8, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000c2f60, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x41, 0x000bbe8d, 0x000aeeef, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000b1827, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x43, 0x000b5090, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x44, 0x000bf6f7, 0x000aeeef, 0x00000000, 0x00000000, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000aa8bf, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x46, 0x000a3957, 0x000aeeef, 0x00000000, 0x00000000, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000c4ae0, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x48, 0x000bbe8d, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x49, 0x0005a6dd, 0x000aeeef, 0x00000000, 0x00000000, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x00080c4f, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4b, 0x000c2df5, 0x000aeeef, 0x00000000, 0x00000000, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x0009c9ef, 0x000aeeef, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000e5afd, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4e, 0x000bbe8d, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x4f, 0x000c2f60, 0x000aeeef, 0x00000000, 0x00000000, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000aa8bf, 0x000aeeef, 0x00000000, 0x00000000, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000c2f60, 0x000aeeef, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x52, 0x000b878f, 0x000aeeef, 0x00000000, 0x00000000, 10, C_52_Kerning, 0, 0 }, { 0x53, 0x0008b420, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x54, 0x000b5090, 0x000aeeef, 0x00000000, 0x00000000, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000bbe8d, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x56, 0x000bbe8d, 0x000aeeef, 0x00000000, 0x000037b4, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x0010189d, 0x000aeeef, 0x00000000, 0x000037b4, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000bbe8d, 0x000aeeef, 0x00000000, 0x00000000, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000bbe8d, 0x000aeeef, 0x00000000, 0x00006444, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000992f0, 0x000aeeef, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5b, 0x00045a10, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5c, 0x0007d550, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5d, 0x00045a10, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x5e, 0x0007d550, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x5f, 0x00045a10, 0x000a9e7c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x60, 0x00045a10, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 1, C_60_Ligature }, { 0x61, 0x0007d550, 0x0006e38f, 0x00000000, 0x00000000, 4, C_61_Kerning, 0, 0 }, { 0x62, 0x0008b420, 0x000b1c71, 0x00000000, 0x00000000, 10, C_62_Kerning, 0, 0 }, { 0x63, 0x0006f680, 0x0006e38f, 0x00000000, 0x00000000, 2, C_63_Kerning, 0, 0 }, { 0x64, 0x0008b420, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x65, 0x0006f680, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x66, 0x0004c978, 0x000b1c71, 0x00000000, 0x00011da1, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x0007d550, 0x0006e38f, 0x00031c71, 0x000037b4, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x0008b420, 0x000b1c71, 0x00000000, 0x00000000, 6, C_68_Kerning, 0, 0 }, { 0x69, 0x00045a10, 0x000a9e7c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6a, 0x0004c978, 0x000a9e7c, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x6b, 0x000844b8, 0x000b1c71, 0x00000000, 0x00000000, 5, C_6b_Kerning, 0, 0 }, { 0x6c, 0x00045a10, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6d, 0x000d0e30, 0x0006e38f, 0x00000000, 0x00000000, 6, C_6d_Kerning, 0, 0 }, { 0x6e, 0x0008b420, 0x0006e38f, 0x00000000, 0x00000000, 6, C_6e_Kerning, 0, 0 }, { 0x6f, 0x0007d550, 0x0006e38f, 0x00000000, 0x00000000, 10, C_6f_Kerning, 0, 0 }, { 0x70, 0x0008b420, 0x0006e38f, 0x00031c71, 0x00000000, 10, C_70_Kerning, 0, 0 }, { 0x71, 0x000844b8, 0x0006e38f, 0x00031c71, 0x00000000, 0, 0, 0, 0 }, { 0x72, 0x000617b0, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x73, 0x00062df8, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x74, 0x000617b0, 0x0009d75f, 0x00000000, 0x00000000, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x0008b420, 0x0006e38f, 0x00000000, 0x00000000, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x000844b8, 0x0006e38f, 0x00000000, 0x000037b4, 5, C_76_Kerning, 0, 0 }, { 0x77, 0x000b5090, 0x0006e38f, 0x00000000, 0x000037b4, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x000844b8, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x79, 0x000844b8, 0x0006e38f, 0x00031c71, 0x000037b4, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x0006f680, 0x0006e38f, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x0007d550, 0x0006e38f, 0x00000000, 0x00006f68, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x000faaa0, 0x0006e38f, 0x00000000, 0x00006f68, 0, 0, 0, 0 }, { 0x7d, 0x0007d550, 0x000b1c71, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7e, 0x0007d550, 0x000a9e7c, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7f, 0x0007d550, 0x000a9e7c, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmr12_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmssi8.cc0000644000175000017500000003761610704611260016755 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMSSI", 0xee, "TeX text", 0x00800000, 0x205216bc, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x000366a0 }, { 0x02, "space", 0x0005aab0 }, { 0x03, "space_stretch", 0x0002d558 }, { 0x04, "space_shrink", 0x0001e390 }, { 0x05, "x_height", 0x00071c72 }, { 0x06, "quad", 0x00110010 }, { 0x07, "extra_space", 0x0001e390 } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x00012e3a }, { 0x27, 0x00012e3a }, { 0x29, 0x00012e3a }, { 0x3f, 0x00012e3a }, { 0x5d, 0x00012e3a } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfffb9c6e }, { 0x6c, 0xfffbf1c4 } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001e390 }, { 0x3f, 0x0001e390 } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c }, { 0x54, 0xfffe9554 }, { 0x55, 0xffff871c }, { 0x56, 0xfffe1c70 }, { 0x57, 0xfffe1c70 }, { 0x59, 0xfffe9554 }, { 0x74, 0xffff871c } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff871c }, { 0x56, 0xffff871c }, { 0x57, 0xffff871c }, { 0x58, 0xffff871c }, { 0x59, 0xffff871c } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffe9554 }, { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c }, { 0x61, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c }, { 0x72, 0xffff871c }, { 0x75, 0xffff871c } }; static TFM::Kerning C_49_Kerning[] = { { 0x49, 0x000078e4 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffe9554 }, { 0x56, 0xfffe1c70 }, { 0x57, 0xfffe1c70 }, { 0x59, 0xfffe9554 } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff871c }, { 0x56, 0xffff871c }, { 0x57, 0xffff871c }, { 0x58, 0xffff871c }, { 0x59, 0xffff871c } }; static TFM::Kerning C_50_Kerning[] = { { 0x2c, 0xfffe9554 }, { 0x2e, 0xfffe9554 }, { 0x41, 0xfffe9554 }, { 0x61, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffe9554 }, { 0x61, 0xfffe9554 }, { 0x65, 0xfffe9554 }, { 0x6f, 0xfffe9554 }, { 0x72, 0xfffe9554 }, { 0x75, 0xfffe9554 }, { 0x79, 0xfffe9554 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffe9554 }, { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c }, { 0x61, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c }, { 0x72, 0xffff871c }, { 0x75, 0xffff871c } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffe9554 }, { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c }, { 0x61, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c }, { 0x72, 0xffff871c }, { 0x75, 0xffff871c } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff871c }, { 0x47, 0xffff871c }, { 0x4f, 0xffff871c }, { 0x51, 0xffff871c } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffe9554 }, { 0x61, 0xfffe9554 }, { 0x65, 0xfffe9554 }, { 0x6f, 0xfffe9554 }, { 0x72, 0xfffe9554 }, { 0x75, 0xfffe9554 } }; static TFM::Kerning C_61_Kerning[] = { { 0x72, 0xffff871c }, { 0x77, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_62_Kerning[] = { { 0x63, 0x000078e4 }, { 0x64, 0x000078e4 }, { 0x65, 0x000078e4 }, { 0x6f, 0x000078e4 }, { 0x71, 0x000078e4 }, { 0x72, 0xffff871c }, { 0x77, 0xffff871c }, { 0x78, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x00012e3a }, { 0x27, 0x00012e3a }, { 0x29, 0x00012e3a }, { 0x3f, 0x00012e3a }, { 0x5d, 0x00012e3a } }; static TFM::Kerning C_67_Kerning[] = { { 0x6a, 0x000078e4 } }; static TFM::Kerning C_6b_Kerning[] = { { 0x61, 0xffff871c }, { 0x63, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c } }; static TFM::Kerning C_6f_Kerning[] = { { 0x63, 0x000078e4 }, { 0x64, 0x000078e4 }, { 0x65, 0x000078e4 }, { 0x6f, 0x000078e4 }, { 0x71, 0x000078e4 }, { 0x72, 0xffff871c }, { 0x77, 0xffff871c }, { 0x78, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_70_Kerning[] = { { 0x63, 0x000078e4 }, { 0x64, 0x000078e4 }, { 0x65, 0x000078e4 }, { 0x6f, 0x000078e4 }, { 0x71, 0x000078e4 }, { 0x72, 0xffff871c }, { 0x77, 0xffff871c }, { 0x78, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_74_Kerning[] = { { 0x77, 0xffff871c }, { 0x79, 0xffff871c } }; static TFM::Kerning C_75_Kerning[] = { { 0x77, 0xffff871c } }; static TFM::Kerning C_77_Kerning[] = { { 0x61, 0xffff871c }, { 0x63, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c } }; static TFM::Kerning C_79_Kerning[] = { { 0x2c, 0xfffe9554 }, { 0x2e, 0xfffe9554 }, { 0x61, 0xffff871c }, { 0x65, 0xffff871c }, { 0x6f, 0xffff871c } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x0009400a, 0x000b1c72, 0x00000000, 0x00002380, 0, 0, 0, 0 }, { 0x01, 0x000e2ab8, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000d38f0, 0x000b1c72, 0x00000000, 0x00004896, 0, 0, 0, 0 }, { 0x03, 0x000a6398, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000b5560, 0x000b1c72, 0x00000000, 0x0000dc98, 0, 0, 0, 0 }, { 0x05, 0x000c000a, 0x000b1c72, 0x00000000, 0x0000a5be, 0, 0, 0, 0 }, { 0x06, 0x000c4728, 0x000b1c72, 0x00000000, 0x0000d328, 0, 0, 0, 0 }, { 0x07, 0x000d38f0, 0x000b1c72, 0x00000000, 0x0000334e, 0, 0, 0, 0 }, { 0x08, 0x000c4728, 0x000b1c72, 0x00000000, 0x0000b56a, 0, 0, 0, 0 }, { 0x09, 0x000d38f0, 0x000b1c72, 0x00000000, 0x0000334e, 0, 0, 0, 0 }, { 0x0a, 0x000c4728, 0x000b1c72, 0x00000000, 0x0000a680, 0, 0, 0, 0 }, { 0x0b, 0x0009eab4, 0x000b1c72, 0x00000000, 0x000060c4, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x00091c7a, 0x000b1c72, 0x00000000, 0x000078f2, 0, 0, 0, 0 }, { 0x0d, 0x00091c7a, 0x000b1c72, 0x00000000, 0x00006d9c, 0, 0, 0, 0 }, { 0x0e, 0x000dd562, 0x000b1c72, 0x00000000, 0x000078f2, 0, 0, 0, 0 }, { 0x0f, 0x000dd562, 0x000b1c72, 0x00000000, 0x00006d9c, 0, 0, 0, 0 }, { 0x10, 0x00040e3c, 0x00071c72, 0x00000000, 0x0000a680, 0, 0, 0, 0 }, { 0x11, 0x00048720, 0x00071c72, 0x00031c72, 0x0000a680, 0, 0, 0, 0 }, { 0x12, 0x00088008, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x00088008, 0x000b1c72, 0x00000000, 0x00004440, 0, 0, 0, 0 }, { 0x14, 0x00088008, 0x000a1c72, 0x00000000, 0x0000817a, 0, 0, 0, 0 }, { 0x15, 0x00088008, 0x000b1c72, 0x00000000, 0x000060c4, 0, 0, 0, 0 }, { 0x16, 0x00088008, 0x0009d554, 0x00000000, 0x0000dc98, 0, 0, 0, 0 }, { 0x17, 0x000c7796, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x00078e40, 0x00000000, 0x0002b8e4, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x00082ab2, 0x000b1c72, 0x00000000, 0x00004440, 0, 0, 0, 0 }, { 0x1a, 0x000c4728, 0x00071c72, 0x00000000, 0x0000334e, 0, 0, 0, 0 }, { 0x1b, 0x000d38f0, 0x00071c72, 0x00000000, 0x0000334e, 0, 0, 0, 0 }, { 0x1c, 0x00088008, 0x0008aaac, 0x00018e3a, 0x0000b794, 0, 0, 0, 0 }, { 0x1d, 0x000ea39c, 0x000b1c72, 0x00000000, 0x0000d328, 0, 0, 0, 0 }, { 0x1e, 0x0010872c, 0x000b1c72, 0x00000000, 0x0000d328, 0, 0, 0, 0 }, { 0x1f, 0x000d38f0, 0x000be38e, 0x0000c71c, 0x00004896, 0, 0, 0, 0 }, { 0x20, 0x00040e3c, 0x00071c72, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x00056392, 0x000b1c72, 0x00000000, 0x0000dc98, 0, 0, 1, C_21_Ligature }, { 0x22, 0x00088008, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x23, 0x000e2ab8, 0x000b1c72, 0x00031c70, 0x0000d328, 0, 0, 0, 0 }, { 0x24, 0x00088008, 0x000c0000, 0x0000e38e, 0x0000a680, 0, 0, 0, 0 }, { 0x25, 0x000e2ab8, 0x000c0000, 0x0000e38e, 0x000078f2, 0, 0, 0, 0 }, { 0x26, 0x000ce39a, 0x000b1c72, 0x00000000, 0x00006d9c, 0, 0, 0, 0 }, { 0x27, 0x0004b8e8, 0x000b1c72, 0x00000000, 0x00005846, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x00069c78, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x29, 0x00069c78, 0x000c0000, 0x00040000, 0x000060c4, 0, 0, 0, 0 }, { 0x2a, 0x00088008, 0x000c0000, 0x00000000, 0x0000b56a, 0, 0, 0, 0 }, { 0x2b, 0x000d38f0, 0x0009aab0, 0x0001aab0, 0x000060c4, 0, 0, 0, 0 }, { 0x2c, 0x0004b8e8, 0x000171c8, 0x00020e38, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0005aab0, 0x00071c72, 0x00000000, 0x00004896, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x0004b8e8, 0x000171c8, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x00088008, 0x000c0000, 0x00040000, 0x00000000, 0, 0, 0, 0 }, { 0x30, 0x00088008, 0x000a8000, 0x00000000, 0x0000a680, 0, 0, 0, 0 }, { 0x31, 0x00088008, 0x000a8000, 0x00000000, 0x0000a680, 0, 0, 0, 0 }, { 0x32, 0x00088008, 0x000a8000, 0x00000000, 0x0000a680, 0, 0, 0, 0 }, { 0x33, 0x00088008, 0x000a8000, 0x00000000, 0x0000a680, 0, 0, 0, 0 }, { 0x34, 0x00088008, 0x000a8000, 0x00000000, 0x0000a680, 0, 0, 0, 0 }, { 0x35, 0x00088008, 0x000a8000, 0x00000000, 0x0000a680, 0, 0, 0, 0 }, { 0x36, 0x00088008, 0x000a8000, 0x00000000, 0x0000a680, 0, 0, 0, 0 }, { 0x37, 0x00088008, 0x000a8000, 0x00000000, 0x0000a680, 0, 0, 0, 0 }, { 0x38, 0x00088008, 0x000a8000, 0x00000000, 0x0000a680, 0, 0, 0, 0 }, { 0x39, 0x00088008, 0x000a8000, 0x00000000, 0x0000a680, 0, 0, 0, 0 }, { 0x3a, 0x0004b8e8, 0x00071c72, 0x00000000, 0x00005846, 0, 0, 0, 0 }, { 0x3b, 0x0004b8e8, 0x00071c72, 0x00020e38, 0x00005846, 0, 0, 0, 0 }, { 0x3c, 0x00056392, 0x00080000, 0x00031c72, 0x0000334e, 0, 0, 0, 0 }, { 0x3d, 0x000d38f0, 0x00061a2c, 0xfffe1a2c, 0x0000d328, 0, 0, 0, 0 }, { 0x3e, 0x00080724, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x00080724, 0x000b1c72, 0x00000000, 0x0000b794, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000b5560, 0x000b1c72, 0x00000000, 0x00004896, 0, 0, 0, 0 }, { 0x41, 0x000b5560, 0x000b1c72, 0x00000000, 0x00000000, 10, C_41_Kerning, 0, 0 }, { 0x42, 0x000b5560, 0x000b1c72, 0x00000000, 0x0000a680, 0, 0, 0, 0 }, { 0x43, 0x000adc7c, 0x000b1c72, 0x00000000, 0x0000d328, 0, 0, 0, 0 }, { 0x44, 0x000c4728, 0x000b1c72, 0x00000000, 0x00004896, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000a31d2, 0x000b1c72, 0x00000000, 0x0000d328, 0, 0, 0, 0 }, { 0x46, 0x0009b8ee, 0x000b1c72, 0x00000000, 0x00002380, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000b5560, 0x000b1c72, 0x00000000, 0x0000d328, 0, 0, 0, 0 }, { 0x48, 0x000c000a, 0x000b1c72, 0x00000000, 0x0000a5be, 0, 0, 0, 0 }, { 0x49, 0x0004b8e8, 0x000b1c72, 0x00000000, 0x00002380, 1, C_49_Kerning, 0, 0 }, { 0x4a, 0x00080724, 0x000b1c72, 0x00000000, 0x0000a5be, 0, 0, 0, 0 }, { 0x4b, 0x000bce44, 0x000b1c72, 0x00000000, 0x0000d328, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x0009400a, 0x000b1c72, 0x00000000, 0x00000000, 4, C_4c_Kerning, 0, 0 }, { 0x4d, 0x000ed562, 0x000b1c72, 0x00000000, 0x0000a5be, 0, 0, 0, 0 }, { 0x4e, 0x000c000a, 0x000b1c72, 0x00000000, 0x0000a5be, 0, 0, 0, 0 }, { 0x4f, 0x000c8e46, 0x000b1c72, 0x00000000, 0x00004896, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000adc7c, 0x000b1c72, 0x00000000, 0x0000a680, 6, C_50_Kerning, 0, 0 }, { 0x51, 0x000c8e46, 0x000b1c72, 0x00020e38, 0x00004896, 0, 0, 0, 0 }, { 0x52, 0x000b000a, 0x000b1c72, 0x00000000, 0x0000a680, 0, 0, 0, 0 }, { 0x53, 0x000971d0, 0x000b1c72, 0x00000000, 0x00004440, 0, 0, 0, 0 }, { 0x54, 0x000b9c7e, 0x000b1c72, 0x00000000, 0x00002380, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000baab6, 0x000b1c72, 0x00000000, 0x0000a5be, 0, 0, 0, 0 }, { 0x56, 0x000b5560, 0x000b1c72, 0x00000000, 0x00004896, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x00100e48, 0x000b1c72, 0x00000000, 0x00004896, 10, C_57_Kerning, 0, 0 }, { 0x58, 0x000b5560, 0x000b1c72, 0x00000000, 0x00002380, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000b5560, 0x000b1c72, 0x00000000, 0x00005846, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000a6398, 0x000b1c72, 0x00000000, 0x0000d328, 0, 0, 0, 0 }, { 0x5b, 0x0004f1cc, 0x000c0000, 0x00040000, 0x00004440, 0, 0, 0, 0 }, { 0x5c, 0x00088008, 0x000b1c72, 0x00000000, 0x0000334e, 0, 0, 0, 0 }, { 0x5d, 0x0004f1cc, 0x000c0000, 0x00040000, 0x0000b794, 0, 0, 0, 0 }, { 0x5e, 0x00088008, 0x000b1c72, 0x00000000, 0x000060c4, 0, 0, 0, 0 }, { 0x5f, 0x0004b8e8, 0x000af6de, 0x00000000, 0x000078f2, 0, 0, 0, 0 }, { 0x60, 0x0004b8e8, 0x000b1c72, 0x00000000, 0x00005846, 0, 0, 1, C_60_Ligature }, { 0x61, 0x00082ab2, 0x00071c72, 0x00000000, 0x00002380, 3, C_61_Kerning, 0, 0 }, { 0x62, 0x0008c724, 0x000b1c72, 0x00000000, 0x0000817a, 9, C_62_Kerning, 0, 0 }, { 0x63, 0x00078e40, 0x00071c72, 0x00000000, 0x0000b56a, 0, 0, 0, 0 }, { 0x64, 0x0008c724, 0x000b1c72, 0x00000000, 0x00006d9c, 0, 0, 0, 0 }, { 0x65, 0x00078e40, 0x00071c72, 0x00000000, 0x0000334e, 0, 0, 0, 0 }, { 0x66, 0x000531cc, 0x000b1c72, 0x00000000, 0x000060c4, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x00088008, 0x00071c72, 0x00031c72, 0x0000a5be, 1, C_67_Kerning, 0, 0 }, { 0x68, 0x0008c724, 0x000b1c72, 0x00000000, 0x00004440, 0, 0, 0, 0 }, { 0x69, 0x00040e3c, 0x000af6de, 0x00000000, 0x0000817a, 0, 0, 0, 0 }, { 0x6a, 0x00048720, 0x000af6de, 0x00031c72, 0x00005846, 0, 0, 0, 0 }, { 0x6b, 0x00084e40, 0x000b1c72, 0x00000000, 0x0000b56a, 4, C_6b_Kerning, 0, 0 }, { 0x6c, 0x00040e3c, 0x000b1c72, 0x00000000, 0x00006d9c, 0, 0, 0, 0 }, { 0x6d, 0x000d800c, 0x00071c72, 0x00000000, 0x00004440, 0, 0, 0, 0 }, { 0x6e, 0x0008c724, 0x00071c72, 0x00000000, 0x00004440, 0, 0, 0, 0 }, { 0x6f, 0x00088008, 0x00071c72, 0x00000000, 0x00002380, 9, C_6f_Kerning, 0, 0 }, { 0x70, 0x0008c724, 0x00071c72, 0x00031c72, 0x0000a5be, 9, C_70_Kerning, 0, 0 }, { 0x71, 0x0008c724, 0x00071c72, 0x00031c72, 0x0000a680, 0, 0, 0, 0 }, { 0x72, 0x0005ce3e, 0x00071c72, 0x00000000, 0x0000a5be, 0, 0, 0, 0 }, { 0x73, 0x0006844a, 0x00071c72, 0x00000000, 0x00006d9c, 0, 0, 0, 0 }, { 0x74, 0x00062394, 0x00092496, 0x00000000, 0x00004440, 2, C_74_Kerning, 0, 0 }, { 0x75, 0x0008c724, 0x00071c72, 0x00000000, 0x0000a680, 1, C_75_Kerning, 0, 0 }, { 0x76, 0x0007d55c, 0x00071c72, 0x00000000, 0x0000a5be, 0, 0, 0, 0 }, { 0x77, 0x000b9c7c, 0x00071c72, 0x00000000, 0x0000a5be, 4, C_77_Kerning, 0, 0 }, { 0x78, 0x0007d55c, 0x00071c72, 0x00000000, 0x00004896, 0, 0, 0, 0 }, { 0x79, 0x0007d55c, 0x00071c72, 0x00031c72, 0x0000a5be, 5, C_79_Kerning, 0, 0 }, { 0x7a, 0x00076394, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x7b, 0x00088008, 0x00071c72, 0x00000000, 0x00002380, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x00110010, 0x00071c72, 0x00000000, 0x00002380, 0, 0, 0, 0 }, { 0x7d, 0x00088008, 0x000b1c72, 0x00000000, 0x00004440, 0, 0, 0, 0 }, { 0x7e, 0x00088008, 0x000ae188, 0x00000000, 0x0000d328, 0, 0, 0, 0 }, { 0x7f, 0x00088008, 0x000af6de, 0x00000000, 0x00000000, 0, 0, 0, 0 } }; void cmssi8_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/tfm/cmbxti10.cc0000644000175000017500000004141210704611254017166 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include "TFM.hh" static TFM::Font font = { "CMBXTI", 0xea, "TeX text", 0x00a00000, 0x460d4396, 7, 128 }; static TFM::Dimension dimension[] = { { 0x01, "slant", 0x00040000 }, { 0x02, "space", 0x0006a18d }, { 0x03, "space_stretch", 0x0002d39e }, { 0x04, "space_shrink", 0x0001e26a }, { 0x05, "x_height", 0x00071c72 }, { 0x06, "quad", 0x0012ea56 }, { 0x07, "extra_space", 0x0001e26a } }; static TFM::Kerning C_0b_Kerning[] = { { 0x21, 0x0001b4e8 }, { 0x27, 0x0001b4e8 }, { 0x29, 0x0001b4e8 }, { 0x3f, 0x0001b4e8 }, { 0x5d, 0x0001b4e8 } }; static TFM::Kerning C_20_Kerning[] = { { 0x4c, 0xfff9da76 }, { 0x6c, 0xfffb40dd } }; static TFM::Kerning C_27_Kerning[] = { { 0x21, 0x0001e26a }, { 0x3f, 0x0001e26a } }; static TFM::Kerning C_41_Kerning[] = { { 0x43, 0xffff8765 }, { 0x47, 0xffff8765 }, { 0x4f, 0xffff8765 }, { 0x51, 0xffff8765 }, { 0x54, 0xfffe9630 }, { 0x55, 0xffff8765 }, { 0x56, 0xfffe1d96 }, { 0x57, 0xfffe1d96 }, { 0x59, 0xfffe9630 }, { 0x61, 0xffff0ecb }, { 0x62, 0xffff8765 }, { 0x63, 0xffff0ecb }, { 0x64, 0xffff0ecb }, { 0x65, 0xffff0ecb }, { 0x67, 0xffff0ecb }, { 0x68, 0xffff8765 }, { 0x69, 0xffff8765 }, { 0x6b, 0xffff8765 }, { 0x6c, 0xffff8765 }, { 0x6d, 0xffff8765 }, { 0x6e, 0xffff8765 }, { 0x6f, 0xffff0ecb }, { 0x71, 0xffff0ecb }, { 0x72, 0xffff8765 }, { 0x74, 0xffff8765 }, { 0x75, 0xffff8765 }, { 0x76, 0xffff8765 }, { 0x77, 0xffff8765 } }; static TFM::Kerning C_44_Kerning[] = { { 0x41, 0xffff8765 }, { 0x56, 0xffff8765 }, { 0x57, 0xffff8765 }, { 0x58, 0xffff8765 }, { 0x59, 0xffff8765 } }; static TFM::Kerning C_46_Kerning[] = { { 0x41, 0xfffe1d96 }, { 0x43, 0xffff8765 }, { 0x47, 0xffff8765 }, { 0x4f, 0xffff8765 }, { 0x51, 0xffff8765 }, { 0x61, 0xfffe9630 }, { 0x65, 0xfffe9630 }, { 0x6f, 0xfffe9630 }, { 0x72, 0xfffe9630 }, { 0x75, 0xfffe9630 } }; static TFM::Kerning C_4b_Kerning[] = { { 0x43, 0xffff8765 }, { 0x47, 0xffff8765 }, { 0x4f, 0xffff8765 }, { 0x51, 0xffff8765 } }; static TFM::Kerning C_4c_Kerning[] = { { 0x54, 0xfffe9630 }, { 0x56, 0xfffe1d96 }, { 0x57, 0xfffe1d96 }, { 0x59, 0xfffe9630 }, { 0x61, 0xffff0ecb }, { 0x63, 0xffff0ecb }, { 0x64, 0xffff0ecb }, { 0x65, 0xffff0ecb }, { 0x67, 0xffff0ecb }, { 0x6f, 0xffff0ecb }, { 0x71, 0xffff0ecb } }; static TFM::Kerning C_4f_Kerning[] = { { 0x41, 0xffff8765 }, { 0x56, 0xffff8765 }, { 0x57, 0xffff8765 }, { 0x58, 0xffff8765 }, { 0x59, 0xffff8765 } }; static TFM::Kerning C_50_Kerning[] = { { 0x41, 0xfffe9630 } }; static TFM::Kerning C_52_Kerning[] = { { 0x43, 0xffff8765 }, { 0x47, 0xffff8765 }, { 0x4f, 0xffff8765 }, { 0x51, 0xffff8765 }, { 0x54, 0xfffe9630 }, { 0x55, 0xffff8765 }, { 0x56, 0xfffe1d96 }, { 0x57, 0xfffe1d96 }, { 0x59, 0xfffe9630 }, { 0x61, 0xffff0ecb }, { 0x62, 0xffff8765 }, { 0x63, 0xffff0ecb }, { 0x64, 0xffff0ecb }, { 0x65, 0xffff0ecb }, { 0x67, 0xffff0ecb }, { 0x68, 0xffff8765 }, { 0x69, 0xffff8765 }, { 0x6b, 0xffff8765 }, { 0x6c, 0xffff8765 }, { 0x6d, 0xffff8765 }, { 0x6e, 0xffff8765 }, { 0x6f, 0xffff0ecb }, { 0x71, 0xffff0ecb }, { 0x72, 0xffff8765 }, { 0x74, 0xffff8765 }, { 0x75, 0xffff8765 }, { 0x76, 0xffff8765 }, { 0x77, 0xffff8765 } }; static TFM::Kerning C_54_Kerning[] = { { 0x41, 0xfffe9630 }, { 0x61, 0xfffe9630 }, { 0x65, 0xfffe9630 }, { 0x6f, 0xfffe9630 }, { 0x72, 0xfffe9630 }, { 0x75, 0xfffe9630 }, { 0x79, 0xfffe9630 } }; static TFM::Kerning C_56_Kerning[] = { { 0x41, 0xfffe1d96 }, { 0x43, 0xffff8765 }, { 0x47, 0xffff8765 }, { 0x4f, 0xffff8765 }, { 0x51, 0xffff8765 }, { 0x61, 0xfffe9630 }, { 0x65, 0xfffe9630 }, { 0x6f, 0xfffe9630 }, { 0x72, 0xfffe9630 }, { 0x75, 0xfffe9630 } }; static TFM::Kerning C_57_Kerning[] = { { 0x41, 0xfffe9630 } }; static TFM::Kerning C_58_Kerning[] = { { 0x43, 0xffff8765 }, { 0x47, 0xffff8765 }, { 0x4f, 0xffff8765 }, { 0x51, 0xffff8765 } }; static TFM::Kerning C_59_Kerning[] = { { 0x41, 0xfffe9630 }, { 0x61, 0xfffe9630 }, { 0x65, 0xfffe9630 }, { 0x6f, 0xfffe9630 }, { 0x72, 0xfffe9630 }, { 0x75, 0xfffe9630 } }; static TFM::Kerning C_62_Kerning[] = { { 0x61, 0xffff0ecb }, { 0x63, 0xffff0ecb }, { 0x64, 0xffff0ecb }, { 0x65, 0xffff0ecb }, { 0x67, 0xffff0ecb }, { 0x6f, 0xffff0ecb }, { 0x71, 0xffff0ecb } }; static TFM::Kerning C_63_Kerning[] = { { 0x61, 0xffff0ecb }, { 0x63, 0xffff0ecb }, { 0x64, 0xffff0ecb }, { 0x65, 0xffff0ecb }, { 0x67, 0xffff0ecb }, { 0x6f, 0xffff0ecb }, { 0x71, 0xffff0ecb } }; static TFM::Kerning C_64_Kerning[] = { { 0x6c, 0x0000f135 } }; static TFM::Kerning C_65_Kerning[] = { { 0x61, 0xffff0ecb }, { 0x63, 0xffff0ecb }, { 0x64, 0xffff0ecb }, { 0x65, 0xffff0ecb }, { 0x67, 0xffff0ecb }, { 0x6f, 0xffff0ecb }, { 0x71, 0xffff0ecb } }; static TFM::Kerning C_66_Kerning[] = { { 0x21, 0x0001b4e8 }, { 0x27, 0x0001b4e8 }, { 0x29, 0x0001b4e8 }, { 0x3f, 0x0001b4e8 }, { 0x5d, 0x0001b4e8 } }; static TFM::Kerning C_6c_Kerning[] = { { 0x6c, 0x0000f135 } }; static TFM::Kerning C_6e_Kerning[] = { { 0x27, 0xfffe1d96 } }; static TFM::Kerning C_6f_Kerning[] = { { 0x61, 0xffff0ecb }, { 0x63, 0xffff0ecb }, { 0x64, 0xffff0ecb }, { 0x65, 0xffff0ecb }, { 0x67, 0xffff0ecb }, { 0x6f, 0xffff0ecb }, { 0x71, 0xffff0ecb } }; static TFM::Kerning C_70_Kerning[] = { { 0x61, 0xffff0ecb }, { 0x63, 0xffff0ecb }, { 0x64, 0xffff0ecb }, { 0x65, 0xffff0ecb }, { 0x67, 0xffff0ecb }, { 0x6f, 0xffff0ecb }, { 0x71, 0xffff0ecb } }; static TFM::Kerning C_72_Kerning[] = { { 0x61, 0xffff0ecb }, { 0x63, 0xffff0ecb }, { 0x64, 0xffff0ecb }, { 0x65, 0xffff0ecb }, { 0x67, 0xffff0ecb }, { 0x6f, 0xffff0ecb }, { 0x71, 0xffff0ecb } }; static TFM::Kerning C_77_Kerning[] = { { 0x6c, 0x0000f135 } }; static TFM::Ligature C_0b_Ligature[] = { { 0x69, 0x00, 0x0e }, { 0x6c, 0x00, 0x0f } }; static TFM::Ligature C_21_Ligature[] = { { 0x60, 0x00, 0x3c } }; static TFM::Ligature C_27_Ligature[] = { { 0x27, 0x00, 0x22 } }; static TFM::Ligature C_2d_Ligature[] = { { 0x2d, 0x00, 0x7b } }; static TFM::Ligature C_3f_Ligature[] = { { 0x60, 0x00, 0x3e } }; static TFM::Ligature C_60_Ligature[] = { { 0x60, 0x00, 0x5c } }; static TFM::Ligature C_66_Ligature[] = { { 0x66, 0x00, 0x0b }, { 0x69, 0x00, 0x0c }, { 0x6c, 0x00, 0x0d } }; static TFM::Ligature C_7b_Ligature[] = { { 0x2d, 0x00, 0x7c } }; static TFM::Character character[] = { { 0x00, 0x000b2a12, 0x000afa50, 0x00000000, 0x000112c8, 0, 0, 0, 0 }, { 0x01, 0x000f1c68, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x02, 0x000e2b33, 0x000afa50, 0x00000000, 0x00006af3, 0, 0, 0, 0 }, { 0x03, 0x000ce813, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x04, 0x000c48ca, 0x000afa50, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x05, 0x000e5670, 0x000afa50, 0x00000000, 0x0000d5e8, 0, 0, 0, 0 }, { 0x06, 0x000d39fe, 0x000afa50, 0x00000000, 0x0000bce2, 0, 0, 0, 0 }, { 0x07, 0x000e2b33, 0x000afa50, 0x00000000, 0x00014e82, 0, 0, 0, 0 }, { 0x08, 0x000d39fe, 0x000afa50, 0x00000000, 0x0000e6ae, 0, 0, 0, 0 }, { 0x09, 0x000e2b33, 0x000afa50, 0x00000000, 0x00014e82, 0, 0, 0, 0 }, { 0x0a, 0x000d39fe, 0x000afa50, 0x00000000, 0x000112c8, 0, 0, 0, 0 }, { 0x0b, 0x000c16c0, 0x000b1c72, 0x00031c72, 0x000112c8, 5, C_0b_Kerning, 2, C_0b_Ligature }, { 0x0c, 0x000aca85, 0x000b1c72, 0x00031c72, 0x000152c8, 0, 0, 0, 0 }, { 0x0d, 0x000b431e, 0x000b1c72, 0x00031c72, 0x000152c8, 0, 0, 0, 0 }, { 0x0e, 0x0010b72a, 0x000b1c72, 0x00031c72, 0x000152c8, 0, 0, 0, 0 }, { 0x0f, 0x0010f376, 0x000b1c72, 0x00031c72, 0x000152c8, 0, 0, 0, 0 }, { 0x10, 0x0005b058, 0x00071c72, 0x00000000, 0x0000bce2, 0, 0, 0, 0 }, { 0x11, 0x000628f3, 0x00071c72, 0x00031c72, 0x0000bce2, 0, 0, 0, 0 }, { 0x12, 0x0009752b, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x13, 0x0009752b, 0x000b1c72, 0x00000000, 0x000068d3, 0, 0, 0, 0 }, { 0x14, 0x0009752b, 0x000a1c72, 0x00000000, 0x000152c8, 0, 0, 0, 0 }, { 0x15, 0x0009752b, 0x000b1c72, 0x00000000, 0x00012cf2, 0, 0, 0, 0 }, { 0x16, 0x0009752b, 0x000982d6, 0x00000000, 0x000141fe, 0, 0, 0, 0 }, { 0x17, 0x000f2e9d, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x18, 0x000883f6, 0x00000000, 0x0002b8e3, 0x00000000, 0, 0, 0, 0 }, { 0x19, 0x000aa3d6, 0x000b1c72, 0x00031c72, 0x00010c85, 0, 0, 0, 0 }, { 0x1a, 0x000d39fe, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1b, 0x000d39fe, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x1c, 0x0009752b, 0x0008aaab, 0x00018e3a, 0x0000d5e8, 0, 0, 0, 0 }, { 0x1d, 0x00105d42, 0x000afa50, 0x00000000, 0x0000bce2, 0, 0, 0, 0 }, { 0x1e, 0x00123fab, 0x000afa50, 0x00000000, 0x0000bce2, 0, 0, 0, 0 }, { 0x1f, 0x000e2b33, 0x000bc16d, 0x0000c71d, 0x00006af3, 0, 0, 0, 0 }, { 0x20, 0x0004bf23, 0x00071c72, 0x00000000, 0x00000000, 2, C_20_Kerning, 0, 0 }, { 0x21, 0x00062d80, 0x000b1c72, 0x00000000, 0x00008765, 0, 0, 1, C_21_Ligature }, { 0x22, 0x0009edc8, 0x000b1c72, 0x00000000, 0x00014530, 0, 0, 0, 0 }, { 0x23, 0x000f1c68, 0x000b1c72, 0x00031c70, 0x000117e5, 0, 0, 0, 0 }, { 0x24, 0x000de583, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x25, 0x000f1c68, 0x000c0000, 0x0000e38e, 0x00011236, 0, 0, 0, 0 }, { 0x26, 0x000e2b33, 0x000b1c72, 0x00000000, 0x000068d3, 0, 0, 0, 0 }, { 0x27, 0x0005b058, 0x000b1c72, 0x00000000, 0x000117e5, 2, C_27_Kerning, 1, C_27_Ligature }, { 0x28, 0x000792c2, 0x000c0000, 0x00040000, 0x00006af3, 0, 0, 0, 0 }, { 0x29, 0x000792c2, 0x000c0000, 0x00040000, 0x00008765, 0, 0, 0, 0 }, { 0x2a, 0x0009752b, 0x000c0000, 0x00000000, 0x00014e82, 0, 0, 0, 0 }, { 0x2b, 0x000e2b33, 0x0009a73d, 0x0001a73d, 0x00008765, 0, 0, 0, 0 }, { 0x2c, 0x0005b058, 0x00025b06, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x2d, 0x0006a18d, 0x00071c72, 0x00000000, 0x00006af3, 0, 0, 1, C_2d_Ligature }, { 0x2e, 0x0005b058, 0x00025b06, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x2f, 0x0009752b, 0x000c0000, 0x00040000, 0x00006af3, 0, 0, 0, 0 }, { 0x30, 0x0009752b, 0x000a4fa5, 0x00000000, 0x00012cf2, 0, 0, 0, 0 }, { 0x31, 0x0009752b, 0x000a4fa5, 0x00000000, 0x00012cf2, 0, 0, 0, 0 }, { 0x32, 0x0009752b, 0x000a4fa5, 0x00000000, 0x00012cf2, 0, 0, 0, 0 }, { 0x33, 0x0009752b, 0x000a4fa5, 0x00000000, 0x00012cf2, 0, 0, 0, 0 }, { 0x34, 0x0009752b, 0x000a4fa5, 0x00031c72, 0x00012cf2, 0, 0, 0, 0 }, { 0x35, 0x0009752b, 0x000a4fa5, 0x00000000, 0x00012cf2, 0, 0, 0, 0 }, { 0x36, 0x0009752b, 0x000a4fa5, 0x00000000, 0x00012cf2, 0, 0, 0, 0 }, { 0x37, 0x0009752b, 0x000a4fa5, 0x00031c72, 0x00012cf2, 0, 0, 0, 0 }, { 0x38, 0x0009752b, 0x000a4fa5, 0x00000000, 0x00012cf2, 0, 0, 0, 0 }, { 0x39, 0x0009752b, 0x000a4fa5, 0x00000000, 0x00012cf2, 0, 0, 0, 0 }, { 0x3a, 0x0005b058, 0x00071c72, 0x00000000, 0x00011236, 0, 0, 0, 0 }, { 0x3b, 0x0005b058, 0x00071c72, 0x00031c72, 0x00011236, 0, 0, 0, 0 }, { 0x3c, 0x00062d80, 0x00080000, 0x00031c72, 0x00010c85, 0, 0, 0, 0 }, { 0x3d, 0x000e2b33, 0x000641fe, 0xfffe41fe, 0x000117e5, 0, 0, 0, 0 }, { 0x3e, 0x0009752b, 0x00080000, 0x00031c72, 0x00000000, 0, 0, 0, 0 }, { 0x3f, 0x0009752b, 0x000b1c72, 0x00000000, 0x0000d5e8, 0, 0, 1, C_3f_Ligature }, { 0x40, 0x000e2b33, 0x000b1c72, 0x00000000, 0x00008765, 0, 0, 0, 0 }, { 0x41, 0x000dd948, 0x000afa50, 0x00000000, 0x00000000, 28, C_41_Kerning, 0, 0 }, { 0x42, 0x000d110a, 0x000afa50, 0x00000000, 0x000112c8, 0, 0, 0, 0 }, { 0x43, 0x000d39fe, 0x000afa50, 0x00000000, 0x00014530, 0, 0, 0, 0 }, { 0x44, 0x000e023e, 0x000afa50, 0x00000000, 0x00006af3, 5, C_44_Kerning, 0, 0 }, { 0x45, 0x000c1b46, 0x000afa50, 0x00000000, 0x0000bce2, 0, 0, 0, 0 }, { 0x46, 0x000ba2ad, 0x000afa50, 0x00000000, 0x000112c8, 10, C_46_Kerning, 0, 0 }, { 0x47, 0x000e5306, 0x000afa50, 0x00000000, 0x00012cf2, 0, 0, 0, 0 }, { 0x48, 0x000e5670, 0x000afa50, 0x00000000, 0x0000d5e8, 0, 0, 0, 0 }, { 0x49, 0x00078bf0, 0x000afa50, 0x00000000, 0x000068d3, 0, 0, 0, 0 }, { 0x4a, 0x0009c4d0, 0x000afa50, 0x00000000, 0x000152c8, 0, 0, 0, 0 }, { 0x4b, 0x000e51e3, 0x000afa50, 0x00000000, 0x00014530, 4, C_4b_Kerning, 0, 0 }, { 0x4c, 0x000b2a12, 0x000afa50, 0x00000000, 0x00000000, 11, C_4c_Kerning, 0, 0 }, { 0x4d, 0x00112a0e, 0x000afa50, 0x00000000, 0x0000d5e8, 0, 0, 0, 0 }, { 0x4e, 0x000e5670, 0x000afa50, 0x00000000, 0x0000d5e8, 0, 0, 0, 0 }, { 0x4f, 0x000dae0b, 0x000afa50, 0x00000000, 0x00006af3, 5, C_4f_Kerning, 0, 0 }, { 0x50, 0x000c986e, 0x000afa50, 0x00000000, 0x000112c8, 1, C_50_Kerning, 0, 0 }, { 0x51, 0x000dae0b, 0x000afa50, 0x00031c72, 0x00006af3, 0, 0, 0, 0 }, { 0x52, 0x000dc042, 0x000afa50, 0x00000000, 0x000068d3, 28, C_52_Kerning, 0, 0 }, { 0x53, 0x000a6660, 0x000afa50, 0x00000000, 0x000068d3, 0, 0, 0, 0 }, { 0x54, 0x000cbcd6, 0x000afa50, 0x00000000, 0x000112c8, 7, C_54_Kerning, 0, 0 }, { 0x55, 0x000e17dd, 0x000afa50, 0x00000000, 0x0000d5e8, 0, 0, 0, 0 }, { 0x56, 0x000dd948, 0x000afa50, 0x00000000, 0x0000e6ae, 10, C_56_Kerning, 0, 0 }, { 0x57, 0x00128f50, 0x000afa50, 0x00000000, 0x0000e6ae, 1, C_57_Kerning, 0, 0 }, { 0x58, 0x000dd948, 0x000afa50, 0x00000000, 0x000068d3, 4, C_58_Kerning, 0, 0 }, { 0x59, 0x000dd948, 0x000afa50, 0x00000000, 0x00011236, 6, C_59_Kerning, 0, 0 }, { 0x5a, 0x000b5795, 0x000afa50, 0x00000000, 0x00014530, 0, 0, 0, 0 }, { 0x5b, 0x0005b2a0, 0x000c0000, 0x00040000, 0x00010c85, 0, 0, 0, 0 }, { 0x5c, 0x0009edc8, 0x000b1c72, 0x00000000, 0x0000bce2, 0, 0, 0, 0 }, { 0x5d, 0x0005b2a0, 0x000c0000, 0x00040000, 0x000117e5, 0, 0, 0, 0 }, { 0x5e, 0x0009752b, 0x000b1c72, 0x00000000, 0x000112c8, 0, 0, 0, 0 }, { 0x5f, 0x0005b058, 0x000b1c72, 0x00000000, 0x000117e5, 0, 0, 0, 0 }, { 0x60, 0x0005b058, 0x000b1c72, 0x00000000, 0x000117e5, 0, 0, 1, C_60_Ligature }, { 0x61, 0x0009752b, 0x00071c72, 0x00000000, 0x0000bce2, 0, 0, 0, 0 }, { 0x62, 0x000883f6, 0x000b1c72, 0x00000000, 0x000141fe, 7, C_62_Kerning, 0, 0 }, { 0x63, 0x000883f6, 0x00071c72, 0x00000000, 0x0000d5e8, 7, C_63_Kerning, 0, 0 }, { 0x64, 0x0009752b, 0x000b1c72, 0x00000000, 0x000152c8, 1, C_64_Kerning, 0, 0 }, { 0x65, 0x000883f6, 0x00071c72, 0x00000000, 0x00000000, 7, C_65_Kerning, 0, 0 }, { 0x66, 0x00066668, 0x000b1c72, 0x00031c72, 0x000112c8, 5, C_66_Kerning, 3, C_66_Ligature }, { 0x67, 0x000883f6, 0x00071c72, 0x00031c72, 0x00014530, 0, 0, 0, 0 }, { 0x68, 0x0009752b, 0x000b1c72, 0x00000000, 0x0000bce2, 0, 0, 0, 0 }, { 0x69, 0x0005b058, 0x000b1793, 0x00000000, 0x00006af3, 0, 0, 0, 0 }, { 0x6a, 0x0005b058, 0x000b1793, 0x00031c72, 0x00008765, 0, 0, 0, 0 }, { 0x6b, 0x000883f6, 0x000b1c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x6c, 0x0004bf23, 0x000b1c72, 0x00000000, 0x000152c8, 1, C_6c_Kerning, 0, 0 }, { 0x6d, 0x000f1c68, 0x00071c72, 0x00000000, 0x0000bce2, 0, 0, 0, 0 }, { 0x6e, 0x000a6660, 0x00071c72, 0x00000000, 0x0000bce2, 1, C_6e_Kerning, 0, 0 }, { 0x6f, 0x0009752b, 0x00071c72, 0x00000000, 0x000141fe, 7, C_6f_Kerning, 0, 0 }, { 0x70, 0x0009752b, 0x00071c72, 0x00031c72, 0x000141fe, 7, C_70_Kerning, 0, 0 }, { 0x71, 0x000883f6, 0x00071c72, 0x00031c72, 0x00014530, 0, 0, 0, 0 }, { 0x72, 0x000806d2, 0x00071c72, 0x00000000, 0x00000000, 7, C_72_Kerning, 0, 0 }, { 0x73, 0x0007ca83, 0x00071c72, 0x00000000, 0x00014e82, 0, 0, 0, 0 }, { 0x74, 0x000628f3, 0x000a28a3, 0x00000000, 0x0000e6ae, 0, 0, 0, 0 }, { 0x75, 0x0009edc6, 0x00071c72, 0x00000000, 0x0000bce2, 0, 0, 0, 0 }, { 0x76, 0x000883f6, 0x00071c72, 0x00000000, 0x00000000, 0, 0, 0, 0 }, { 0x77, 0x000c48ca, 0x00071c72, 0x00000000, 0x00000000, 1, C_77_Kerning, 0, 0 }, { 0x78, 0x0008f806, 0x00071c72, 0x00000000, 0x00010c85, 0, 0, 0, 0 }, { 0x79, 0x0008fc92, 0x00071c72, 0x00031c72, 0x00014530, 0, 0, 0, 0 }, { 0x7a, 0x0007d94e, 0x00071c72, 0x00000000, 0x000141fe, 0, 0, 0, 0 }, { 0x7b, 0x0009752b, 0x00071c72, 0x00000000, 0x00011236, 0, 0, 1, C_7b_Ligature }, { 0x7c, 0x0012ea56, 0x00071c72, 0x00000000, 0x00011236, 0, 0, 0, 0 }, { 0x7d, 0x0009752b, 0x000b1c72, 0x00000000, 0x0000d5e8, 0, 0, 0, 0 }, { 0x7e, 0x0009752b, 0x000b1c72, 0x00000000, 0x0000d5e8, 0, 0, 0, 0 }, { 0x7f, 0x0009752b, 0x000b1c72, 0x00000000, 0x0000e6ae, 0, 0, 0, 0 } }; void cmbxti10_tables(TFM::Font*& _font, TFM::Dimension*& _dimension, TFM::Character*& _character) { _font = &font; _dimension = dimension; _character = character; } gtkmathview-0.8.0/src/backend/common/MathGraphicDevice.cc0000644000175000017500000004542310704610363020266 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AreaFactory.hh" #include "MathMLElement.hh" #include "MathGraphicDevice.hh" #include "MathVariantMap.hh" #include "FormattingContext.hh" #include "ShaperManager.hh" #include "String.hh" #include "Area.hh" #include "GlyphArea.hh" MathGraphicDevice::MathGraphicDevice(const SmartPtr& logger) : GraphicDevice(logger) { } MathGraphicDevice::~MathGraphicDevice() { } scaled MathGraphicDevice::ex(const FormattingContext& context) const { return unstretchedString(context, "x")->box().height; } scaled MathGraphicDevice::axis(const FormattingContext& context) const { const BoundingBox pbox = unstretchedString(context, "+")->box(); // the + is a better choice rather than x because its vertical extent // is certainly an odd number of pixels, whereas the x has almost // certainly an even number of pixels. This way it is reduced the // approximation due to the / 2 return (pbox.height - pbox.depth) / 2; } AreaRef MathGraphicDevice::wrapper(const FormattingContext&, const AreaRef& area) const { return getFactory()->box(area, area->box()); } AreaRef MathGraphicDevice::dummy(const FormattingContext& context) const { return getFactory()->color(unstretchedString(context, StringOfUCS4String(UCS4String(1, 0xfffd))), RGBColor::RED()); } #include "CachedShapedString.hh" #include "HashMap.hh" typedef HASH_MAP_NS::hash_map ShapedStringCache; typedef HASH_MAP_NS::hash_map ShapedStretchyStringCache; static ShapedStretchyStringCache stretchyStringCache; static ShapedStringCache stringCache; void MathGraphicDevice::clearCache() const { stretchyStringCache.clear(); stringCache.clear(); } AreaRef MathGraphicDevice::stretchedString(const FormattingContext& context, const String& str) const { CachedShapedStretchyStringKey key(str, context.getVariant(), context.getSize(), context.getStretchH(), context.getStretchV()); #if 1 std::pair r = stretchyStringCache.insert(std::make_pair(key, AreaRef(0))); if (r.second) { UCS4String source = UCS4StringOfString(str); if (context.getMathMode()) mapMathVariant(context.getVariant(), source); r.first->second = getShaperManager()->shapeStretchy(context, context.getMathMLElement(), context.MGD()->getFactory(), source, context.getStretchV(), context.getStretchH()); return r.first->second; } else return r.first->second; #else ShapedStretchyStringCache::const_iterator p = stretchyStringCache.find(key); if (p != stretchyStringCache.end()) return p->second; else { UCS4String source = UCS4StringOfString(str); mapMathVariant(context.getVariant(), source); return (stretchyStringCache[key] = getShaperManager()->shapeStretchy(context, context.getMathMLElement(), context.MGD()->getFactory(), source, context.getStretchV(), context.getStretchH())); } #endif } AreaRef MathGraphicDevice::unstretchedString(const FormattingContext& context, const String& str) const { CachedShapedStringKey key(str, context.getVariant(), context.getSize()); #if 1 std::pair r = stringCache.insert(std::make_pair(key, AreaRef(0))); if (r.second) { UCS4String source = UCS4StringOfString(str); if (context.getMathMode()) mapMathVariant(context.getVariant(), source); r.first->second = getShaperManager()->shape(context, context.getMathMLElement(), context.MGD()->getFactory(), source); return r.first->second; } else return r.first->second; #else ShapedStringCache::const_iterator p = stringCache.find(key); if (p != stringCache.end()) return p->second; else { UCS4String source = UCS4StringOfString(str); mapMathVariant(context.getVariant(), source); return (stringCache[key] = getShaperManager()->shape(context, context.getMathMLElement(), context.MGD()->getFactory(), source)); } #endif } AreaRef MathGraphicDevice::string(const FormattingContext& context, const String& str) const { if (str.length() == 0) return dummy(context); else if (context.getMathMLElement() == context.getStretchOperator()) return stretchedString(context, str); else return unstretchedString(context, str); } AreaRef MathGraphicDevice::stretchStringV(const FormattingContext& context, const String& str, const scaled& height, const scaled& depth) const { return getShaperManager()->shapeStretchy(context, context.getMathMLElement(), context.MGD()->getFactory(), UCS4StringOfString(str), height + depth, 0); } AreaRef MathGraphicDevice::glyph(const FormattingContext& context, const String& alt, const String& fontFamily, unsigned long index) const { assert(false); } AreaRef MathGraphicDevice::fraction(const FormattingContext& context, const AreaRef& numerator, const AreaRef& denominator, const Length& lineThickness) const { const scaled RULE = defaultLineThickness(context); std::vector v; AreaRef s = getFactory()->verticalSpace(context.getDisplayStyle() ? RULE * 3 : RULE, scaled::zero()); v.reserve(5); v.push_back(denominator); v.push_back(s); v.push_back(getFactory()->horizontalLine(evaluate(context, lineThickness, RULE), context.getColor())); v.push_back(s); v.push_back(numerator); return getFactory()->shift(getFactory()->verticalArray(v, 2), axis(context)); } AreaRef MathGraphicDevice::bevelledFraction(const FormattingContext& context, const AreaRef& numerator, const AreaRef& denominator, const Length& lineThickness) const { BoundingBox n = numerator->box(); BoundingBox d = denominator->box(); std::vector h; h.reserve(3); h.push_back(numerator); h.push_back(stretchStringV(context, "/", std::max(n.height, d.height), std::max(n.depth, d.depth))); h.push_back(denominator); return getFactory()->horizontalArray(h); } AreaRef MathGraphicDevice::radical(const FormattingContext& context, const AreaRef& base, const AreaRef& index) const { const scaled RULE = defaultLineThickness(context); const UCS4String root(1, 0x221a); const BoundingBox baseBox = base->box(); const AreaRef rootArea = stretchStringV(context, StringOfUCS4String(root), baseBox.height + 2 * RULE, baseBox.depth); const BoundingBox rootBox = rootArea->box(); std::vector v; v.reserve(3); v.push_back(base); v.push_back(getFactory()->verticalSpace(RULE, 0)); v.push_back(getFactory()->horizontalLine(RULE, context.getColor())); const AreaRef baseArea = getFactory()->verticalArray(v, 0); std::vector h; h.reserve(index ? 4 : 2); if (index) { const Length zero(0.0f, Length::PT_UNIT); const BoundingBox indexBox = index->box(); scaled u; scaled v; calculateScriptShift(context, baseArea->box(), BoundingBox(), zero, indexBox, zero, v, u); h.push_back(getFactory()->shift(index, u)); h.push_back(getFactory()->horizontalSpace(-rootBox.width / 2)); } h.push_back(getFactory()->shift(rootArea, baseArea->box().height - rootBox.height)); h.push_back(baseArea); return getFactory()->horizontalArray(h); } void MathGraphicDevice::calculateDefaultScriptShift(const FormattingContext& context, const BoundingBox& baseBox, const BoundingBox& subScriptBox, const BoundingBox& superScriptBox, scaled& v, scaled& u) const { assert(baseBox.defined()); const scaled EX = ex(context); const scaled AXIS = axis(context); const scaled RULE = defaultLineThickness(context); u = std::max(EX, baseBox.height - AXIS); v = std::max(AXIS, baseBox.depth + AXIS); if (!superScriptBox.defined()) { u = 0; v = std::max(v, subScriptBox.height - (EX * 4) / 5); } else { u = std::max(u, superScriptBox.depth + EX / 4); if (!subScriptBox.defined()) { v = 0; } else { if ((u - superScriptBox.depth) - (subScriptBox.height - v) < 4 * RULE) { v = 4 * RULE - u + superScriptBox.depth + subScriptBox.height; scaled psi = (4 * EX) / 5 - (u - superScriptBox.depth); if (psi > scaled::zero()) { u += psi; v -= psi; } } } } } void MathGraphicDevice::calculateScriptShift(const FormattingContext& context, const BoundingBox& baseBox, const BoundingBox& subScriptBox, const Length& subScriptMinShift, const BoundingBox& superScriptBox, const Length& superScriptMinShift, scaled& v, scaled& u) const { calculateDefaultScriptShift(context, baseBox, subScriptBox, superScriptBox, v, u); v = std::max(v, evaluate(context, subScriptMinShift, v)); u = std::max(u, evaluate(context, superScriptMinShift, u)); } AreaRef MathGraphicDevice::script(const FormattingContext& context, const AreaRef& base, const AreaRef& subScript, const Length& subScriptMinShift, const AreaRef& superScript, const Length& superScriptMinShift) const { assert(base); scaled subScriptShift; scaled superScriptShift; calculateScriptShift(context, base->box(), subScript ? subScript->box() : BoundingBox(), subScriptMinShift, superScript ? superScript->box() : BoundingBox(), superScriptMinShift, subScriptShift, superScriptShift); std::vector o; o.reserve(2); if (subScript) o.push_back(getFactory()->shift(subScript, -subScriptShift)); if (superScript) o.push_back(getFactory()->shift(superScript, superScriptShift)); std::vector h; h.reserve(2); h.push_back(base); if (o.size() > 1) h.push_back(getFactory()->overlapArray(o)); else h.push_back(o.front()); return getFactory()->horizontalArray(h); } AreaRef MathGraphicDevice::multiScripts(const FormattingContext& context, const AreaRef& base, const std::vector& subScripts, const std::vector& preSubScripts, const Length& subScriptMinShift, const std::vector& superScripts, const std::vector& preSuperScripts, const Length& superScriptMinShift) const { assert(subScripts.size() == superScripts.size()); assert(preSubScripts.size() == preSuperScripts.size()); BoundingBox subScriptsBox; BoundingBox superScriptsBox; for (std::vector::const_iterator p = subScripts.begin(); p != subScripts.end(); p++) if (*p) subScriptsBox.append((*p)->box()); for (std::vector::const_iterator p = preSubScripts.begin(); p != preSubScripts.end(); p++) if (*p) subScriptsBox.append((*p)->box()); for (std::vector::const_iterator p = superScripts.begin(); p != superScripts.end(); p++) if (*p) superScriptsBox.append((*p)->box()); for (std::vector::const_iterator p = preSuperScripts.begin(); p != preSuperScripts.end(); p++) if (*p) superScriptsBox.append((*p)->box()); scaled subScriptShift; scaled superScriptShift; calculateScriptShift(context, base->box(), subScriptsBox, subScriptMinShift, superScriptsBox, superScriptMinShift, subScriptShift, superScriptShift); std::vector h; h.reserve(subScripts.size() + preSubScripts.size() + 1); std::vector::const_reverse_iterator preP = preSubScripts.rbegin(); std::vector::const_reverse_iterator preQ = preSuperScripts.rbegin(); for (; preP != preSubScripts.rend(); preP++, preQ++) { std::vector o; o.reserve(2); if (*preP) o.push_back(getFactory()->right(getFactory()->shift(*preP, -subScriptShift))); if (*preQ) o.push_back(getFactory()->right(getFactory()->shift(*preQ, superScriptShift))); if (o.size() > 1) h.push_back(getFactory()->overlapArray(o)); else h.push_back(o.front()); } h.push_back(base); std::vector::const_iterator postP = subScripts.begin(); std::vector::const_iterator postQ = superScripts.begin(); for (; postP != subScripts.end(); postP++, postQ++) { std::vector o; o.reserve(2); if (*postP) o.push_back(getFactory()->shift(*postP, -subScriptShift)); if (*postQ) o.push_back(getFactory()->shift(*postQ, superScriptShift)); if (o.size() > 1) h.push_back(getFactory()->overlapArray(o)); else h.push_back(o.front()); } return getFactory()->horizontalArray(h); } #if 0 #include #include #endif AreaRef MathGraphicDevice::underOver(const FormattingContext& context, const AreaRef& base, const AreaRef& underScript, bool accentUnder, const AreaRef& overScript, bool accent) const { SmartPtr baseStringArea = base ? base->getGlyphStringArea() : NULL; SmartPtr overStringArea = overScript ? overScript->getGlyphStringArea() : NULL; SmartPtr underStringArea = underScript ? underScript->getGlyphStringArea() : NULL; #if 0 printf("base GlyphArea %s\n", base->getGlyphArea() ? "true" : "false"); printf("over GlyphArea %s\n", overScript->getGlyphArea() ? "true" : "false"); printf("base GlyphStringArea %s\n", base->getGlyphStringArea() ? "true" : "false"); printf("over GlyphStringArea %s\n", base->getGlyphStringArea() ? "true" : "false"); #endif if (baseStringArea) { UCS4String baseSource; UCS4String overSource; UCS4String underSource; AreaRef res; //controls if overScript and/or underScript are very sinlge character bool overCondition = overStringArea && accent && ((overSource = overStringArea->getSource()).length() == 1); bool underCondition = underStringArea && accentUnder && ((underSource = underStringArea->getSource()).length() == 1); baseSource = baseStringArea->getSource(); //controls if the base character is a single char if (baseSource.length() == 1) { if (overScript && underScript) { if (overCondition) { //we have that overScript is a single character res = shaperManager->compose(context, base, baseSource, overScript, overSource, true); //if this condition is true then also underScript is a single char if (underCondition) res = shaperManager->compose(context, res, baseSource, underScript, underSource, false); //we have that the overScript is a single char //but the underScript isn't a single char else res = underOver(context, res, underScript, accentUnder, NULL, accent); return res; } //we have that only the underScript is a single char else if (underCondition) { res = shaperManager->compose(context, base, baseSource, underScript, underSource, false); res = underOver(context, res, NULL, accentUnder, overScript, accent); return res; } } //we control if one of overScript and underScript //is a single char else if (overScript || underScript) { if (overCondition) { res = shaperManager->compose(context, base, baseSource, overScript, overSource, true); return res; } if (underCondition) { res = shaperManager->compose(context, base, baseSource, underScript, underSource, false); return res; } } } } //the next instructions represent the default behavior //in which overScript and underScript aren't single char const scaled RULE = defaultLineThickness(context); const AreaRef singleSpace = getFactory()->verticalSpace(RULE, 0); const AreaRef tripleSpace = getFactory()->verticalSpace(3 * RULE, 0); int n = 1; if (underScript && !accentUnder) n += 3; if (overScript && !accent) n += 3; std::vector v; v.reserve(n); if (underScript) { if (!accentUnder) v.push_back(singleSpace); v.push_back(getFactory()->center(underScript)); if (!accentUnder) v.push_back(tripleSpace); } v.push_back(getFactory()->center(base)); if (overScript) { if (!accent) v.push_back(tripleSpace); v.push_back(getFactory()->center(overScript)); if (!accent) v.push_back(singleSpace); } return getFactory()->verticalArray(v, underScript ? (accentUnder ? 1 : 3) : 0); } AreaRef MathGraphicDevice::enclose(const FormattingContext& context, const AreaRef& base, const String& notation) const { if (notation == "radical") return radical(context, base, 0); else { std::vector c; c.reserve(3); AreaRef res = base; AreaRef vobj = getFactory()->verticalLine(defaultLineThickness(context), context.getColor()); AreaRef hobj = getFactory()->horizontalLine(defaultLineThickness(context), context.getColor()); if (notation == "box" || notation == "longdiv" || notation == "left") c.push_back(vobj); c.push_back(res); if (notation == "box" || notation == "actuarial" || notation == "right") c.push_back(vobj); if (c.size() > 1) res = getFactory()->horizontalArray(c); c.clear(); if (notation == "box" || notation == "bottom") c.push_back(hobj); c.push_back(res); if (notation == "box" || notation == "longdiv" || notation == "actuarial" || notation == "top") c.push_back(hobj); if (c.size() > 1) res = getFactory()->verticalArray(c, (notation == "top") ? 0 : 1); c.clear(); c.push_back(res); if (notation == "verticalstrike") c.push_back(getFactory()->center(vobj)); else if (notation == "horizontalstrike") c.push_back(getFactory()->middle(hobj)); else if (notation == "baselinestrike") c.push_back(hobj); if (c.size() > 1) res = getFactory()->overlapArray(c); return res; } } gtkmathview-0.8.0/src/backend/common/GlyphArea.cc0000644000175000017500000000321510661271104016622 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "GlyphArea.hh" #include "Rectangle.hh" GlyphArea::~GlyphArea() { } bool GlyphArea::searchByIndex(AreaId&, CharIndex index) const { return (index >= 0 && index < length()); } bool GlyphArea::indexOfPosition(const scaled& x, const scaled& y, CharIndex& index) const { const BoundingBox bbox = box(); if (Rectangle(scaled::zero(), scaled::zero(), bbox).isInside(x, y)) { index = (x < bbox.width / 2) ? 0 : length(); return true; } else return false; } bool GlyphArea::positionOfIndex(CharIndex index, Point*, BoundingBox* b) const { if (index == 0 && index < length()) { // do nothing about the Point if (b) *b = box(); return true; } else return false; } SmartPtr GlyphArea::getGlyphArea() const { return this; } gtkmathview-0.8.0/src/backend/common/SpaceShaper.cc0000644000175000017500000000573010661271104017150 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLElement.hh" #include "AreaFactory.hh" #include "ShapingContext.hh" #include "MathGraphicDevice.hh" #include "ShaperManager.hh" #include "SpaceShaper.hh" struct FixedSpaceData { Char16 ch; int space; } fixedSpaceMap[] = { { 0x0009, 9 * 8 }, // Tab { 0x0020, 9 }, // Space { 0x00a0, 9 }, // NonBreakingSpace { 0x2000, 9 }, // EN QUAD { 0x2001, 18 }, // EM QUAD { 0x2002, 9 }, // EN SPACE (HALF AN EM) { 0x2003, 18 }, // EM SPACE { 0x2004, 6 }, // THREE-PER-EM SPACE (THICK SPACE) { 0x2005, 4 }, // FOUR-PER-EM SPACE (MID SPACE) { 0x2006, 3 }, // SIX-PER-EM SPACE (THIN SPACE) { 0x2009, 3 }, // THIN SPACE { 0x200a, 1 }, // HAIR SPACE (VERY THIN SPACE) { 0x200b, 0 }, // ZERO-WIDTH SPACE { 0x205f, 4 }, // MEDIUM MATH SPACE { 0x0000, 0 } }; void SpaceShaper::registerShaper(const SmartPtr& sm, unsigned shaperId) { assert(sm); for (unsigned i = 0; fixedSpaceMap[i].ch; i++) sm->registerChar(fixedSpaceMap[i].ch, GlyphSpec(shaperId, 0, i)); } void SpaceShaper::unregisterShaper(const SmartPtr&, unsigned) { // nothing to do??? } void SpaceShaper::shape(ShapingContext& context) const { assert(!context.done()); shapeFixedSpace(context, context.getSpec()); } void SpaceShaper::pushSpace(ShapingContext& context, int space, unsigned n) { assert(n > 0); const SmartPtr factory = context.getFactory(); std::vector content; content.reserve(2); content.push_back(factory->verticalSpace(scaled::zero(), scaled::zero())); content.push_back(factory->horizontalSpace(context.getSize() * space / 18)); context.pushArea(n, factory->glyphWrapper(factory->horizontalArray(content), n)); } void SpaceShaper::shapeFixedSpace(ShapingContext& context, const GlyphSpec& spec) { unsigned n = 1; assert(spec.getGlyphId() < sizeof(fixedSpaceMap) / sizeof(FixedSpaceData)); assert(context.thisChar() == fixedSpaceMap[spec.getGlyphId()].ch); int space = fixedSpaceMap[spec.getGlyphId()].space; if (context.nextChar() == 0xfe00) { space = -space; n++; } pushSpace(context, space, n); } gtkmathview-0.8.0/src/backend/Makefile.in0000644000175000017500000004114710704610536015226 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/backend DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = common gtk svg ps DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = @COND_GTK_FALSE@MAYBE_GTK_SUBDIRS = $(NULL) @COND_GTK_TRUE@MAYBE_GTK_SUBDIRS = gtk @COND_SVG_FALSE@MAYBE_SVG_SUBDIRS = $(NULL) @COND_SVG_TRUE@MAYBE_SVG_SUBDIRS = svg @COND_PS_FALSE@MAYBE_PS_SUBDIRS = $(NULL) @COND_PS_TRUE@MAYBE_PS_SUBDIRS = ps SUBDIRS = \ common \ $(MAYBE_GTK_SUBDIRS) \ $(MAYBE_SVG_SUBDIRS) \ $(MAYBE_PS_SUBDIRS) \ $(NULL) all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/backend/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/backend/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ clean clean-generic clean-libtool clean-recursive ctags \ ctags-recursive distclean distclean-generic distclean-libtool \ distclean-recursive distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-exec install-exec-am install-info \ install-info-am install-man install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic maintainer-clean-recursive \ mostlyclean mostlyclean-generic mostlyclean-libtool \ mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/src/backend/svg/0000777000175000017500000000000010704625467014046 500000000000000gtkmathview-0.8.0/src/backend/svg/SVG_MathGraphicDevice.cc0000644000175000017500000000316310661271077020316 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "FormattingContext.hh" #include "MathMLElement.hh" #include "SVG_MathGraphicDevice.hh" #include "SVG_WrapperArea.hh" SVG_MathGraphicDevice::SVG_MathGraphicDevice(const SmartPtr& l, const SmartPtr& conf) : MathGraphicDevice(l) { } SVG_MathGraphicDevice::~SVG_MathGraphicDevice() { } SmartPtr SVG_MathGraphicDevice::create(const SmartPtr& logger, const SmartPtr& conf) { return new SVG_MathGraphicDevice(logger, conf); } AreaRef SVG_MathGraphicDevice::wrapper(const FormattingContext& ctxt, const AreaRef& area) const { return SVG_WrapperArea::create(area, area->box(), ctxt.getMathMLElement()); } gtkmathview-0.8.0/src/backend/svg/SVG_TFMComputerModernMathGraphicDevice.hh0000644000175000017500000000423110661271077023560 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SVG_TFMComputerModernMathGraphicDevice_hh__ #define __SVG_TFMComputerModernMathGraphicDevice_hh__ #include "TFMComputerModernMathGraphicDevice.hh" class SVG_TFMComputerModernMathGraphicDevice : public TFMComputerModernMathGraphicDevice { protected: SVG_TFMComputerModernMathGraphicDevice(const SmartPtr&, const SmartPtr&); virtual ~SVG_TFMComputerModernMathGraphicDevice(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); virtual AreaRef script(const class FormattingContext&, const AreaRef& base, const AreaRef& subScript, const Length& subScriptShift, const AreaRef& superScript, const Length& superScriptShift) const; virtual AreaRef multiScripts(const class FormattingContext&, const AreaRef& base, const std::vector& subScripts, const std::vector& preSubScripts, const Length& subScriptShift, const std::vector& superScripts, const std::vector& preSuperScripts, const Length& superScriptShift) const; virtual AreaRef wrapper(const class FormattingContext&, const AreaRef& area) const; }; #endif // __SVG_TFMComputerModernMathGraphicDevice_hh__ gtkmathview-0.8.0/src/backend/svg/SVG_TTF_TFMComputerModernShaper.cc0000644000175000017500000000370510661271077022203 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "SVG_TTF_TFMComputerModernShaper.hh" #include "SVG_TTF_TFMGlyphArea.hh" #include "TFMFont.hh" SVG_TTF_TFMComputerModernShaper::SVG_TTF_TFMComputerModernShaper(const SmartPtr& l, const SmartPtr& conf) : SVG_TFMComputerModernShaper(l, conf) { setPostShapingMode(conf->getString(l, "svg-backend/ttf-computer-modern-shaper/post-shaping", "never")); } SVG_TTF_TFMComputerModernShaper::~SVG_TTF_TFMComputerModernShaper() { } SmartPtr SVG_TTF_TFMComputerModernShaper::create(const SmartPtr& l, const SmartPtr& conf) { return new SVG_TTF_TFMComputerModernShaper(l, conf); } AreaRef SVG_TTF_TFMComputerModernShaper::getGlyphArea(ComputerModernFamily::FontNameId fontNameId, ComputerModernFamily::FontSizeId designSize, UChar8 index, int size) const { return SVG_TTF_TFMGlyphArea::create(getFont(fontNameId, designSize, size), index, toTTFGlyphIndex(ComputerModernFamily::encIdOfFontNameId(fontNameId), index)); } gtkmathview-0.8.0/src/backend/svg/SVG_Backend.cc0000644000175000017500000001033010661271077016330 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "SVG_Backend.hh" #include "SVG_AreaFactory.hh" #include "SVG_MathGraphicDevice.hh" #if GMV_ENABLE_BOXML #include "SVG_BoxGraphicDevice.hh" #else #include "BoxGraphicDevice.hh" #endif // GMV_ENABLE_BOXML #include "SpaceShaper.hh" #include "NullShaper.hh" #ifdef GMV_ENABLE_TFM #include "TFMManager.hh" #include "TFMFontManager.hh" #include "SVG_TFMComputerModernMathGraphicDevice.hh" #include "SVG_TFMComputerModernShaper.hh" #include "SVG_TTF_TFMComputerModernShaper.hh" #endif // GMV_ENABLE_TFM #include "ShaperManager.hh" SVG_Backend::SVG_Backend(const SmartPtr& l, const SmartPtr& conf) : Backend(l, conf) { SmartPtr factory = SVG_AreaFactory::create(); #if GMV_ENABLE_TFM SmartPtr cmShaper; // the fact that the Type1 and TT versions of the computer modern // shapers for the SVG backend share the same font manager is just a // twisted coincidence. Beware SmartPtr tfm = TFMManager::create(); SmartPtr fm = TFMFontManager::create(tfm); #endif // GMV_ENABLE_TFM std::multimap > shaperSet; if (conf->getBool(l, "svg-backend/null-shaper/enabled", false)) shaperSet.insert(std::pair >(conf->getInt(l, "svg-backend/null-shaper/priority", 0), NullShaper::create(l))); if (conf->getBool(l, "svg-backend/space-shaper/enabled", false)) shaperSet.insert(std::pair >(conf->getInt(l, "svg-backend/space-shaper/priority", 0), SpaceShaper::create())); #if GMV_ENABLE_TFM if (conf->getBool(l, "svg-backend/type1-computer-modern-shaper/enabled", false)) { cmShaper = SVG_TFMComputerModernShaper::create(l, conf); cmShaper->setFontManager(fm); shaperSet.insert(std::pair >(conf->getInt(l, "svg-backend/type1-computer-modern-shaper/priority", 0), cmShaper)); } if (conf->getBool(l, "svg-backend/ttf-computer-modern-shaper/enabled", false)) { cmShaper = SVG_TTF_TFMComputerModernShaper::create(l, conf); cmShaper->setFontManager(fm); shaperSet.insert(std::pair >(conf->getInt(l, "svg-backend/ttf-computer-modern-shaper/priority", 0), cmShaper)); } #endif // GMV_ENABLE_TFM #if GMV_ENABLE_TFM SmartPtr mgd; if (cmShaper) { SmartPtr tfmMGD = SVG_TFMComputerModernMathGraphicDevice::create(l, conf); tfmMGD->setFamily(cmShaper->getFamily()); tfmMGD->setTFMManager(tfm); mgd = tfmMGD; } else mgd = SVG_MathGraphicDevice::create(l, conf); #else SmartPtr mgd = SVG_MathGraphicDevice::create(l, conf); #endif // GMV_ENABLE_TFM mgd->setFactory(factory); setMathGraphicDevice(mgd); #if GMV_ENABLE_BOXML SmartPtr bgd = SVG_BoxGraphicDevice::create(l, conf); bgd->setFactory(factory); setBoxGraphicDevice(bgd); #endif // GMV_ENABLE_BOXML for (std::multimap >::const_iterator p = shaperSet.begin(); p != shaperSet.end(); p++) getShaperManager()->registerShaper(p->second); } SVG_Backend::~SVG_Backend() { } SmartPtr SVG_Backend::create(const SmartPtr& l, const SmartPtr& conf) { return new SVG_Backend(l, conf); } gtkmathview-0.8.0/src/backend/svg/SVG_TFMComputerModernShaper.cc0000644000175000017500000000407710661271077021471 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "SVG_AreaFactory.hh" #include "SVG_TFMComputerModernShaper.hh" #include "SVG_TFMGlyphArea.hh" #include "TFMFont.hh" SVG_TFMComputerModernShaper::SVG_TFMComputerModernShaper(const SmartPtr& l, const SmartPtr& conf) : TFMComputerModernShaper(l, conf) { } SVG_TFMComputerModernShaper::~SVG_TFMComputerModernShaper() { } SmartPtr SVG_TFMComputerModernShaper::create(const SmartPtr& l, const SmartPtr& conf) { return new SVG_TFMComputerModernShaper(l, conf); } AreaRef SVG_TFMComputerModernShaper::getGlyphArea(ComputerModernFamily::FontNameId fontNameId, ComputerModernFamily::FontSizeId designSize, UChar8 index, int size) const { return SVG_TFMGlyphArea::create(getFont(fontNameId, designSize, size), index); } bool SVG_TFMComputerModernShaper::getGlyphData(const AreaRef& area, SmartPtr& font, UChar8& index) const { if (SmartPtr glyphArea = smart_cast(area)) { font = glyphArea->getFont(); index = glyphArea->getIndex(); return true; } else return false; } gtkmathview-0.8.0/src/backend/svg/SVG_TFMComputerModernMathGraphicDevice.cc0000644000175000017500000000715210661271077023553 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "FormattingContext.hh" #include "MathMLElement.hh" #include "SVG_TFMComputerModernMathGraphicDevice.hh" #include "SVG_WrapperArea.hh" #include "SVG_TFMGlyphArea.hh" #include "TFMFont.hh" #include "TFM.hh" SVG_TFMComputerModernMathGraphicDevice::SVG_TFMComputerModernMathGraphicDevice(const SmartPtr& l, const SmartPtr&) : TFMComputerModernMathGraphicDevice(l) { } SVG_TFMComputerModernMathGraphicDevice::~SVG_TFMComputerModernMathGraphicDevice() { } SmartPtr SVG_TFMComputerModernMathGraphicDevice::create(const SmartPtr& logger, const SmartPtr& conf) { return new SVG_TFMComputerModernMathGraphicDevice(logger, conf); } AreaRef SVG_TFMComputerModernMathGraphicDevice::wrapper(const FormattingContext& ctxt, const AreaRef& area) const { return SVG_WrapperArea::create(area, area->box(), ctxt.getMathMLElement()); } AreaRef SVG_TFMComputerModernMathGraphicDevice::script(const class FormattingContext& context, const AreaRef& base, const AreaRef& subScript, const Length& subScriptShift, const AreaRef& superScript, const Length& superScriptShift) const { AreaRef nucleus = base; while (nucleus && is_a(nucleus)) nucleus = smart_cast(nucleus)->getChild(); AreaRef newSuperScript = superScript; if (superScript) if (SmartPtr glyph = smart_cast(nucleus)) { const SmartPtr font = glyph->getFont(); const SmartPtr tfm = font->getTFM(); const Char8 index = glyph->getIndex(); const scaled ic = tfm->getGlyphItalicCorrection(index) * tfm->getScale(font->getSize()); if (ic != scaled::zero()) { std::vector c; c.reserve(2); c.push_back(getFactory()->horizontalSpace(ic)); c.push_back(superScript); newSuperScript = getFactory()->horizontalArray(c); } } return MathGraphicDevice::script(context, base, subScript, subScriptShift, newSuperScript, superScriptShift); } AreaRef SVG_TFMComputerModernMathGraphicDevice::multiScripts(const class FormattingContext& context, const AreaRef& base, const std::vector& subScripts, const std::vector& preSubScripts, const Length& subScriptShift, const std::vector& superScripts, const std::vector& preSuperScripts, const Length& superScriptShift) const { return MathGraphicDevice::multiScripts(context, base, subScripts, preSubScripts, subScriptShift, superScripts, preSuperScripts, superScriptShift); } gtkmathview-0.8.0/src/backend/svg/SVG_BoxGraphicDevice.cc0000644000175000017500000000313210661271077020151 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "FormattingContext.hh" #include "SVG_BoxGraphicDevice.hh" #include "BoxMLElement.hh" #include "SVG_WrapperArea.hh" SVG_BoxGraphicDevice::SVG_BoxGraphicDevice(const SmartPtr& l, const SmartPtr& conf) : BoxGraphicDevice(l) { } SVG_BoxGraphicDevice::~SVG_BoxGraphicDevice() { } SmartPtr SVG_BoxGraphicDevice::create(const SmartPtr& logger, const SmartPtr& conf) { return new SVG_BoxGraphicDevice(logger, conf); } AreaRef SVG_BoxGraphicDevice::wrapper(const FormattingContext& ctxt, const AreaRef& area) const { return SVG_WrapperArea::create(area, area->box(), ctxt.getBoxMLElement()); } gtkmathview-0.8.0/src/backend/svg/SVG_ColorArea.hh0000644000175000017500000000262410661271077016671 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SVG_ColorArea_hh__ #define __SVG_ColorArea_hh__ #include "ColorArea.hh" class SVG_ColorArea : public ColorArea { protected: SVG_ColorArea(const AreaRef& area, const RGBColor& c) : ColorArea(area, c) { } virtual ~SVG_ColorArea() { } public: static SmartPtr create(const AreaRef& area, const RGBColor& c) { return new SVG_ColorArea(area, c); } virtual AreaRef clone(const AreaRef& area) const { return create(area, getColor()); } virtual void render(RenderingContext&, const scaled&, const scaled&) const; }; #endif // __SVG_ColorArea_hh__ gtkmathview-0.8.0/src/backend/svg/SVG_InkArea.cc0000644000175000017500000000214410661271077016317 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "SVG_InkArea.hh" #include "SVG_RenderingContext.hh" void SVG_InkArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { SVG_RenderingContext& context = dynamic_cast(c); context.fill(x, y, box()); } gtkmathview-0.8.0/src/backend/svg/SVG_StreamRenderingContext.cc0000644000175000017500000001167610661271077021455 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "SVG_StreamRenderingContext.hh" SVG_StreamRenderingContext::SVG_StreamRenderingContext(const SmartPtr& logger, std::ostream& os) : SVG_RenderingContext(logger), output(os) { } SVG_StreamRenderingContext::~SVG_StreamRenderingContext() { } void SVG_StreamRenderingContext::wrapperStart(const scaled& x, const scaled& y, const BoundingBox& box, const SmartPtr& elem) { const String id = getId(elem); output << "" << std::endl; } String SVG_StreamRenderingContext::getId(const SmartPtr& elem) const { return ""; } void SVG_StreamRenderingContext::wrapperEnd() { output << "" << std::endl; } void SVG_StreamRenderingContext::beginDocument(const BoundingBox& bbox) { output << "" << std::endl; output << "" << std::endl; } void SVG_StreamRenderingContext::endDocument() { output << "" << std::endl; } void SVG_StreamRenderingContext::metadata(const String& content) { output << "" << content << "" << std::endl; } void SVG_StreamRenderingContext::rect(const scaled& x, const scaled& y, const scaled& width, const scaled& height, const RGBColor& fillColor, const RGBColor& strokeColor, const scaled& strokeWidth) { output << "" << std::endl; } void SVG_StreamRenderingContext::text(const scaled& x, const scaled& y, const String& family, const scaled& size, const RGBColor& fillColor, const RGBColor& strokeColor, const scaled& strokeWidth, const String& content) { #if 0 output << "" << std::endl; output << "" << std::endl; #endif output << "" << content << "" << std::endl; } void SVG_StreamRenderingContext::line(const scaled&, const scaled&, const scaled&, const scaled&, const RGBColor&, const scaled&) { assert(false); } gtkmathview-0.8.0/src/backend/svg/SVG_RenderingContext.cc0000644000175000017500000000702710661271077020274 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include "AbstractLogger.hh" #include "SVG_RenderingContext.hh" #include "scaledAux.hh" #include "BoundingBoxAux.hh" #include "RGBColorAux.hh" #include "TFM.hh" #include "TFMFont.hh" SVG_RenderingContext::SVG_RenderingContext(const SmartPtr& l) : logger(l) { assert(logger); } SVG_RenderingContext::~SVG_RenderingContext() { } String SVG_RenderingContext::toSVGLength(const scaled& s) const { std::ostringstream buffer; buffer << std::fixed << std::setprecision(2) << s.toFloat() << "pt"; return buffer.str(); } String SVG_RenderingContext::toSVGColor(const RGBColor& c) const { return toString(RGBColor(c.red, c.green, c.blue)); } String SVG_RenderingContext::toSVGOpacity(const RGBColor& c) const { std::ostringstream buffer; buffer << static_cast(c.alpha) / 255; return buffer.str(); } void SVG_RenderingContext::documentStart(const BoundingBox& bbox) { beginDocument(bbox); metadata("Created by "PACKAGE" version "VERSION); } void SVG_RenderingContext::documentEnd() { endDocument(); } void SVG_RenderingContext::fill(const scaled& x, const scaled& y, const BoundingBox& box) { rect(toSVGX(x), toSVGY(y + box.height), box.horizontalExtent(), box.verticalExtent(), getForegroundColor(), getForegroundColor(), scaled::zero()); } void SVG_RenderingContext::draw(const scaled& x, const scaled& y, const SmartPtr& font, Char8 index) { SmartPtr tfm = font->getTFM(); assert(tfm); const int mappedIndex = (index < 32) ? 256 + index : index; std::ostringstream familyS; familyS << tfm->getFamily() << tfm->getDesignSize().toInt(); std::ostringstream contentS; contentS << "&#" << mappedIndex << ";"; const String family = familyS.str(); const String content = contentS.str(); text(toSVGX(x), toSVGY(y), family, font->getSize(), getForegroundColor(), getForegroundColor(), scaled::zero(), content); } void SVG_RenderingContext::wrapperStart(const scaled&, const scaled&, const BoundingBox&, const SmartPtr&) { } void SVG_RenderingContext::wrapperEnd() { } void SVG_RenderingContext::beginDocument(const BoundingBox&) { } void SVG_RenderingContext::endDocument() { } void SVG_RenderingContext::metadata(const String&) { } void SVG_RenderingContext::text(const scaled&, const scaled&, const String&, const scaled&, const RGBColor&, const RGBColor&, const scaled&, const String&) { } void SVG_RenderingContext::rect(const scaled&, const scaled&, const scaled&, const scaled&, const RGBColor&, const RGBColor&, const scaled&) { } void SVG_RenderingContext::line(const scaled&, const scaled&, const scaled&, const scaled&, const RGBColor&, const scaled&) { } gtkmathview-0.8.0/src/backend/svg/SVG_BoxGraphicDevice.hh0000644000175000017500000000262710661271077020173 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SVG_BoxGraphicDevice_hh__ #define __SVG_BoxGraphicDevice_hh__ #include "BoxGraphicDevice.hh" class SVG_BoxGraphicDevice : public BoxGraphicDevice { protected: SVG_BoxGraphicDevice(const SmartPtr&, const SmartPtr&); virtual ~SVG_BoxGraphicDevice(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); virtual AreaRef wrapper(const class FormattingContext&, const AreaRef& area) const; }; #endif // __SVG_BoxGraphicDevice_hh__ gtkmathview-0.8.0/src/backend/svg/SVG_WrapperArea.hh0000644000175000017500000000256210661271077017234 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SVG_WrapperArea_hh__ #define __SVG_WrapperArea_hh__ #include "WrapperArea.hh" class SVG_WrapperArea : public WrapperArea { protected: SVG_WrapperArea(const AreaRef&, const BoundingBox&, const SmartPtr&); virtual ~SVG_WrapperArea(); public: static SmartPtr create(const AreaRef&, const BoundingBox&, const SmartPtr&); virtual AreaRef clone(const AreaRef&) const; virtual void render(RenderingContext&, const scaled&, const scaled&) const; }; #endif // __SVG_WrapperArea_hh__ gtkmathview-0.8.0/src/backend/svg/SVG_Backend.hh0000644000175000017500000000236510661271077016353 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SVG_Backend_hh__ #define __SVG_Backend_hh__ #include "Backend.hh" class GMV_BackEnd_EXPORT SVG_Backend : public Backend { protected: SVG_Backend(const SmartPtr&, const SmartPtr&); virtual ~SVG_Backend(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); }; #endif // __SVG_Backend_hh__ gtkmathview-0.8.0/src/backend/svg/SVG_InkArea.hh0000644000175000017500000000250610661271077016333 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SVG_InkArea_hh__ #define __SVG_InkArea_hh__ #include "InkArea.hh" class SVG_InkArea : public InkArea { protected: SVG_InkArea(const AreaRef& area) : InkArea(area) { } virtual ~SVG_InkArea() { } public: static SmartPtr create(const AreaRef& area) { return new SVG_InkArea(area); } virtual AreaRef clone(const AreaRef& area) const { return create(area); } virtual void render(RenderingContext&, const scaled&, const scaled&) const; }; #endif // __SVG_InkArea_hh__ gtkmathview-0.8.0/src/backend/svg/SVG_TTF_TFMComputerModernShaper.hh0000644000175000017500000000306310661271077022212 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SVG_TTF_TFMComputerModernShaper_hh__ #define __SVG_TTF_TFMComputerModernShaper_hh__ #include "SVG_TFMComputerModernShaper.hh" class SVG_TTF_TFMComputerModernShaper : public SVG_TFMComputerModernShaper { protected: SVG_TTF_TFMComputerModernShaper(const SmartPtr&, const SmartPtr&); virtual ~SVG_TTF_TFMComputerModernShaper(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); protected: virtual AreaRef getGlyphArea(ComputerModernFamily::FontNameId, ComputerModernFamily::FontSizeId, UChar8, int) const; }; #endif // __SVG_TTF_TFMComputerModernShaper_hh__ gtkmathview-0.8.0/src/backend/svg/SVG_RenderingContext.hh0000644000175000017500000000541710661271077020307 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_RenderingContext_hh__ #define __Gtk_RenderingContext_hh__ #include "Char.hh" #include "SmartPtr.hh" #include "RGBColor.hh" #include "BoundingBox.hh" #include "RenderingContext.hh" #include "String.hh" class GMV_BackEnd_EXPORT SVG_RenderingContext : public RenderingContext { public: SVG_RenderingContext(const SmartPtr&); virtual ~SVG_RenderingContext(); void setForegroundColor(const RGBColor& c) { fgColor = c; } void setBackgroundColor(const RGBColor& c) { bgColor = c; } RGBColor getForegroundColor(void) const { return fgColor; } RGBColor getBackgroundColor(void) const { return bgColor; } virtual void documentStart(const BoundingBox&); virtual void documentEnd(void); virtual void fill(const scaled&, const scaled&, const BoundingBox&); virtual void draw(const scaled&, const scaled&, const SmartPtr&, Char8); virtual void wrapperStart(const scaled&, const scaled&, const BoundingBox&, const SmartPtr&); virtual void wrapperEnd(void); static scaled toSVGX(const scaled& x) { return x; } static scaled toSVGY(const scaled& y) { return -y; } virtual String toSVGLength(const scaled&) const; virtual String toSVGColor(const RGBColor&) const; virtual String toSVGOpacity(const RGBColor&) const; protected: virtual void beginDocument(const BoundingBox&); virtual void endDocument(void); virtual void metadata(const String&); virtual void text(const scaled&, const scaled&, const String&, const scaled&, const RGBColor&, const RGBColor&, const scaled&, const String&); virtual void rect(const scaled&, const scaled&, const scaled&, const scaled&, const RGBColor&, const RGBColor&, const scaled&); virtual void line(const scaled&, const scaled&, const scaled&, const scaled&, const RGBColor&, const scaled&); protected: SmartPtr logger; RGBColor fgColor; RGBColor bgColor; }; #endif // __SVG_RenderingContext_hh__ gtkmathview-0.8.0/src/backend/svg/Makefile.am0000644000175000017500000000337310613606751016016 00000000000000 NULL = lib_LTLIBRARIES = libmathview_backend_svg.la if COND_BOXML MAYBE_BOXML_S = SVG_BoxGraphicDevice.cc MAYBE_BOXML_H = SVG_BoxGraphicDevice.hh else MAYBE_BOXML_S = $(NULL) MAYBE_BOXML_H = $(NULL) endif if COND_TFM MAYBE_TFM_S = \ SVG_TFMComputerModernMathGraphicDevice.cc \ SVG_TFMComputerModernShaper.cc \ SVG_TTF_TFMComputerModernShaper.cc \ SVG_TTF_TFMComputerModernShaper.hh \ $(NULL) MAYBE_TFM_H = \ SVG_TFMComputerModernMathGraphicDevice.hh \ SVG_TFMComputerModernShaper.hh \ SVG_TTF_TFMComputerModernShaper.hh \ $(NULL) else MAYBE_TFM_S = $(NULL) MAYBE_TFM_H = $(NULL) endif libmathview_backend_svg_la_CPPFLAGS = -DGMV_BackEnd_DLL libmathview_backend_svg_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ libmathview_backend_svg_la_SOURCES = \ SVG_AreaFactory.hh \ SVG_Backend.cc \ SVG_BackgroundArea.cc \ SVG_BackgroundArea.hh \ SVG_ColorArea.cc \ SVG_ColorArea.hh \ SVG_InkArea.cc \ SVG_InkArea.hh \ SVG_MathGraphicDevice.cc \ SVG_MathGraphicDevice.hh \ SVG_RenderingContext.cc \ SVG_StreamRenderingContext.cc \ SVG_TFMGlyphArea.cc \ SVG_TFMGlyphArea.hh \ SVG_TTF_TFMGlyphArea.cc \ SVG_TTF_TFMGlyphArea.hh \ SVG_WrapperArea.cc \ SVG_WrapperArea.hh \ $(MAYBE_BOXML_S) \ $(MAYBE_BOXML_H) \ $(MAYBE_TFM_S) \ $(MAYBE_TFM_H) \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ SVG_Backend.hh \ SVG_RenderingContext.hh \ SVG_StreamRenderingContext.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ -I$(top_srcdir)/src/backend/common/tfm \ $(NULL) gtkmathview-0.8.0/src/backend/svg/SVG_TFMGlyphArea.cc0000644000175000017500000000343010661271077017227 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Char.hh" #include "TFMFont.hh" #include "SVG_RenderingContext.hh" #include "SVG_TFMGlyphArea.hh" SVG_TFMGlyphArea::SVG_TFMGlyphArea(const SmartPtr& f, Char8 i) : font(f), index(i) { } SVG_TFMGlyphArea::~SVG_TFMGlyphArea() { } SmartPtr SVG_TFMGlyphArea::create(const SmartPtr& font, Char8 index) { return new SVG_TFMGlyphArea(font, index); } SmartPtr SVG_TFMGlyphArea::getFont() const { return font; } BoundingBox SVG_TFMGlyphArea::box() const { return font->getGlyphBoundingBox(index); } scaled SVG_TFMGlyphArea::leftEdge() const { return font->getGlyphLeftEdge(index); } scaled SVG_TFMGlyphArea::rightEdge() const { return font->getGlyphRightEdge(index); } void SVG_TFMGlyphArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { SVG_RenderingContext& context = dynamic_cast(c); context.draw(x, y, font, index); } gtkmathview-0.8.0/src/backend/svg/SVG_ColorArea.cc0000644000175000017500000000237410661271077016661 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "SVG_ColorArea.hh" #include "SVG_RenderingContext.hh" void SVG_ColorArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { SVG_RenderingContext& context = dynamic_cast(c); const RGBColor oldColor = context.getForegroundColor(); context.setForegroundColor(getColor()); getChild()->render(context, x, y); context.setForegroundColor(oldColor); } gtkmathview-0.8.0/src/backend/svg/SVG_MathGraphicDevice.hh0000644000175000017500000000263110661271077020327 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SVG_MathGraphicDevice_hh__ #define __SVG_MathGraphicDevice_hh__ #include "MathGraphicDevice.hh" class SVG_MathGraphicDevice : public MathGraphicDevice { protected: SVG_MathGraphicDevice(const SmartPtr&, const SmartPtr&); virtual ~SVG_MathGraphicDevice(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); virtual AreaRef wrapper(const class FormattingContext&, const AreaRef& area) const; }; #endif // __SVG_MathGraphicDevice_hh__ gtkmathview-0.8.0/src/backend/svg/SVG_TTF_TFMGlyphArea.hh0000644000175000017500000000263410661271077017763 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SVG_TTF_T1GlyphArea_hh__ #define __SVG_TTF_T1GlyphArea_hh__ #include "SVG_TFMGlyphArea.hh" class SVG_TTF_TFMGlyphArea : public SVG_TFMGlyphArea { protected: SVG_TTF_TFMGlyphArea(const SmartPtr&, Char8, Char8); virtual ~SVG_TTF_TFMGlyphArea(); public: static SmartPtr create(const SmartPtr&, Char8, Char8); virtual void render(class RenderingContext&, const scaled&, const scaled&) const; Char8 getTTFIndex(void) const { return ttf_index; } private: Char8 ttf_index; }; #endif // __SVG_TTF_TFMGlyphArea_hh__ gtkmathview-0.8.0/src/backend/svg/SVG_TTF_TFMGlyphArea.cc0000644000175000017500000000307310661271077017747 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Char.hh" #include "TFMFont.hh" #include "SVG_RenderingContext.hh" #include "SVG_TTF_TFMGlyphArea.hh" SVG_TTF_TFMGlyphArea::SVG_TTF_TFMGlyphArea(const SmartPtr& f, Char8 i, Char8 ttf_i) : SVG_TFMGlyphArea(f, i), ttf_index(ttf_i) { } SVG_TTF_TFMGlyphArea::~SVG_TTF_TFMGlyphArea() { } SmartPtr SVG_TTF_TFMGlyphArea::create(const SmartPtr& font, Char8 index, Char8 ttf_index) { return new SVG_TTF_TFMGlyphArea(font, index, ttf_index); } void SVG_TTF_TFMGlyphArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { SVG_RenderingContext& context = dynamic_cast(c); context.draw(x, y, getFont(), ttf_index); } gtkmathview-0.8.0/src/backend/svg/SVG_BackgroundArea.hh0000644000175000017500000000267410661271077017677 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SVG_BackgroundArea_hh__ #define __SVG_BackgroundArea_hh__ #include "ColorArea.hh" class SVG_BackgroundArea : public ColorArea { protected: SVG_BackgroundArea(const AreaRef& area, const RGBColor& c) : ColorArea(area, c) { } virtual ~SVG_BackgroundArea() { } public: static SmartPtr create(const AreaRef& area, const RGBColor& c) { return new SVG_BackgroundArea(area, c); } virtual AreaRef clone(const AreaRef& area) const { return create(area, getColor()); } virtual void render(RenderingContext&, const scaled&, const scaled&) const; }; #endif // __SVG_BackgroundArea_hh__ gtkmathview-0.8.0/src/backend/svg/SVG_WrapperArea.cc0000644000175000017500000000323310661271077017216 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "SVG_WrapperArea.hh" #include "SVG_RenderingContext.hh" #include "Element.hh" SVG_WrapperArea::SVG_WrapperArea(const AreaRef& area, const BoundingBox& b, const SmartPtr& el) : WrapperArea(area, b, el) { } SVG_WrapperArea::~SVG_WrapperArea() { } SmartPtr SVG_WrapperArea::create(const AreaRef& area, const BoundingBox& b, const SmartPtr& el) { return new SVG_WrapperArea(area, b, el); } AreaRef SVG_WrapperArea::clone(const AreaRef& area) const { return create(area, box(), getElement()); } void SVG_WrapperArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { SVG_RenderingContext& context = dynamic_cast(c); context.wrapperStart(x, y, box(), getElement()); WrapperArea::render(context, x, y); context.wrapperEnd(); } gtkmathview-0.8.0/src/backend/svg/Makefile.in0000644000175000017500000012401610704610544016021 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/backend/svg DIST_COMMON = $(mathview_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(mathviewdir)" libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) libmathview_backend_svg_la_LIBADD = am__libmathview_backend_svg_la_SOURCES_DIST = SVG_AreaFactory.hh \ SVG_Backend.cc SVG_BackgroundArea.cc SVG_BackgroundArea.hh \ SVG_ColorArea.cc SVG_ColorArea.hh SVG_InkArea.cc \ SVG_InkArea.hh SVG_MathGraphicDevice.cc \ SVG_MathGraphicDevice.hh SVG_RenderingContext.cc \ SVG_StreamRenderingContext.cc SVG_TFMGlyphArea.cc \ SVG_TFMGlyphArea.hh SVG_TTF_TFMGlyphArea.cc \ SVG_TTF_TFMGlyphArea.hh SVG_WrapperArea.cc SVG_WrapperArea.hh \ SVG_BoxGraphicDevice.cc SVG_BoxGraphicDevice.hh \ SVG_TFMComputerModernMathGraphicDevice.cc \ SVG_TFMComputerModernShaper.cc \ SVG_TTF_TFMComputerModernShaper.cc \ SVG_TTF_TFMComputerModernShaper.hh \ SVG_TFMComputerModernMathGraphicDevice.hh \ SVG_TFMComputerModernShaper.hh am__objects_1 = @COND_BOXML_FALSE@am__objects_2 = $(am__objects_1) @COND_BOXML_TRUE@am__objects_2 = libmathview_backend_svg_la-SVG_BoxGraphicDevice.lo @COND_BOXML_FALSE@am__objects_3 = $(am__objects_1) @COND_TFM_FALSE@am__objects_4 = $(am__objects_1) @COND_TFM_TRUE@am__objects_4 = libmathview_backend_svg_la-SVG_TFMComputerModernMathGraphicDevice.lo \ @COND_TFM_TRUE@ libmathview_backend_svg_la-SVG_TFMComputerModernShaper.lo \ @COND_TFM_TRUE@ libmathview_backend_svg_la-SVG_TTF_TFMComputerModernShaper.lo \ @COND_TFM_TRUE@ $(am__objects_1) @COND_TFM_FALSE@am__objects_5 = $(am__objects_1) @COND_TFM_TRUE@am__objects_5 = $(am__objects_1) am_libmathview_backend_svg_la_OBJECTS = \ libmathview_backend_svg_la-SVG_Backend.lo \ libmathview_backend_svg_la-SVG_BackgroundArea.lo \ libmathview_backend_svg_la-SVG_ColorArea.lo \ libmathview_backend_svg_la-SVG_InkArea.lo \ libmathview_backend_svg_la-SVG_MathGraphicDevice.lo \ libmathview_backend_svg_la-SVG_RenderingContext.lo \ libmathview_backend_svg_la-SVG_StreamRenderingContext.lo \ libmathview_backend_svg_la-SVG_TFMGlyphArea.lo \ libmathview_backend_svg_la-SVG_TTF_TFMGlyphArea.lo \ libmathview_backend_svg_la-SVG_WrapperArea.lo $(am__objects_2) \ $(am__objects_3) $(am__objects_4) $(am__objects_5) \ $(am__objects_1) libmathview_backend_svg_la_OBJECTS = \ $(am_libmathview_backend_svg_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libmathview_backend_svg_la_SOURCES) DIST_SOURCES = $(am__libmathview_backend_svg_la_SOURCES_DIST) mathviewHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(mathview_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = lib_LTLIBRARIES = libmathview_backend_svg.la @COND_BOXML_FALSE@MAYBE_BOXML_S = $(NULL) @COND_BOXML_TRUE@MAYBE_BOXML_S = SVG_BoxGraphicDevice.cc @COND_BOXML_FALSE@MAYBE_BOXML_H = $(NULL) @COND_BOXML_TRUE@MAYBE_BOXML_H = SVG_BoxGraphicDevice.hh @COND_TFM_FALSE@MAYBE_TFM_S = $(NULL) @COND_TFM_TRUE@MAYBE_TFM_S = \ @COND_TFM_TRUE@ SVG_TFMComputerModernMathGraphicDevice.cc \ @COND_TFM_TRUE@ SVG_TFMComputerModernShaper.cc \ @COND_TFM_TRUE@ SVG_TTF_TFMComputerModernShaper.cc \ @COND_TFM_TRUE@ SVG_TTF_TFMComputerModernShaper.hh \ @COND_TFM_TRUE@ $(NULL) @COND_TFM_FALSE@MAYBE_TFM_H = $(NULL) @COND_TFM_TRUE@MAYBE_TFM_H = \ @COND_TFM_TRUE@ SVG_TFMComputerModernMathGraphicDevice.hh \ @COND_TFM_TRUE@ SVG_TFMComputerModernShaper.hh \ @COND_TFM_TRUE@ SVG_TTF_TFMComputerModernShaper.hh \ @COND_TFM_TRUE@ $(NULL) libmathview_backend_svg_la_CPPFLAGS = -DGMV_BackEnd_DLL libmathview_backend_svg_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ libmathview_backend_svg_la_SOURCES = \ SVG_AreaFactory.hh \ SVG_Backend.cc \ SVG_BackgroundArea.cc \ SVG_BackgroundArea.hh \ SVG_ColorArea.cc \ SVG_ColorArea.hh \ SVG_InkArea.cc \ SVG_InkArea.hh \ SVG_MathGraphicDevice.cc \ SVG_MathGraphicDevice.hh \ SVG_RenderingContext.cc \ SVG_StreamRenderingContext.cc \ SVG_TFMGlyphArea.cc \ SVG_TFMGlyphArea.hh \ SVG_TTF_TFMGlyphArea.cc \ SVG_TTF_TFMGlyphArea.hh \ SVG_WrapperArea.cc \ SVG_WrapperArea.hh \ $(MAYBE_BOXML_S) \ $(MAYBE_BOXML_H) \ $(MAYBE_TFM_S) \ $(MAYBE_TFM_H) \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ SVG_Backend.hh \ SVG_RenderingContext.hh \ SVG_StreamRenderingContext.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ -I$(top_srcdir)/src/backend/common/tfm \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/backend/svg/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/backend/svg/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ else :; fi; \ done uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libmathview_backend_svg.la: $(libmathview_backend_svg_la_OBJECTS) $(libmathview_backend_svg_la_DEPENDENCIES) $(CXXLINK) -rpath $(libdir) $(libmathview_backend_svg_la_LDFLAGS) $(libmathview_backend_svg_la_OBJECTS) $(libmathview_backend_svg_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_svg_la-SVG_Backend.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_svg_la-SVG_BackgroundArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_svg_la-SVG_BoxGraphicDevice.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_svg_la-SVG_ColorArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_svg_la-SVG_InkArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_svg_la-SVG_MathGraphicDevice.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_svg_la-SVG_RenderingContext.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_svg_la-SVG_StreamRenderingContext.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_svg_la-SVG_TFMComputerModernMathGraphicDevice.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_svg_la-SVG_TFMComputerModernShaper.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_svg_la-SVG_TFMGlyphArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_svg_la-SVG_TTF_TFMComputerModernShaper.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_svg_la-SVG_TTF_TFMGlyphArea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_backend_svg_la-SVG_WrapperArea.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libmathview_backend_svg_la-SVG_Backend.lo: SVG_Backend.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_svg_la-SVG_Backend.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_svg_la-SVG_Backend.Tpo" -c -o libmathview_backend_svg_la-SVG_Backend.lo `test -f 'SVG_Backend.cc' || echo '$(srcdir)/'`SVG_Backend.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_Backend.Tpo" "$(DEPDIR)/libmathview_backend_svg_la-SVG_Backend.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_Backend.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='SVG_Backend.cc' object='libmathview_backend_svg_la-SVG_Backend.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_svg_la-SVG_Backend.lo `test -f 'SVG_Backend.cc' || echo '$(srcdir)/'`SVG_Backend.cc libmathview_backend_svg_la-SVG_BackgroundArea.lo: SVG_BackgroundArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_svg_la-SVG_BackgroundArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_svg_la-SVG_BackgroundArea.Tpo" -c -o libmathview_backend_svg_la-SVG_BackgroundArea.lo `test -f 'SVG_BackgroundArea.cc' || echo '$(srcdir)/'`SVG_BackgroundArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_BackgroundArea.Tpo" "$(DEPDIR)/libmathview_backend_svg_la-SVG_BackgroundArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_BackgroundArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='SVG_BackgroundArea.cc' object='libmathview_backend_svg_la-SVG_BackgroundArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_svg_la-SVG_BackgroundArea.lo `test -f 'SVG_BackgroundArea.cc' || echo '$(srcdir)/'`SVG_BackgroundArea.cc libmathview_backend_svg_la-SVG_ColorArea.lo: SVG_ColorArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_svg_la-SVG_ColorArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_svg_la-SVG_ColorArea.Tpo" -c -o libmathview_backend_svg_la-SVG_ColorArea.lo `test -f 'SVG_ColorArea.cc' || echo '$(srcdir)/'`SVG_ColorArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_ColorArea.Tpo" "$(DEPDIR)/libmathview_backend_svg_la-SVG_ColorArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_ColorArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='SVG_ColorArea.cc' object='libmathview_backend_svg_la-SVG_ColorArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_svg_la-SVG_ColorArea.lo `test -f 'SVG_ColorArea.cc' || echo '$(srcdir)/'`SVG_ColorArea.cc libmathview_backend_svg_la-SVG_InkArea.lo: SVG_InkArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_svg_la-SVG_InkArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_svg_la-SVG_InkArea.Tpo" -c -o libmathview_backend_svg_la-SVG_InkArea.lo `test -f 'SVG_InkArea.cc' || echo '$(srcdir)/'`SVG_InkArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_InkArea.Tpo" "$(DEPDIR)/libmathview_backend_svg_la-SVG_InkArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_InkArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='SVG_InkArea.cc' object='libmathview_backend_svg_la-SVG_InkArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_svg_la-SVG_InkArea.lo `test -f 'SVG_InkArea.cc' || echo '$(srcdir)/'`SVG_InkArea.cc libmathview_backend_svg_la-SVG_MathGraphicDevice.lo: SVG_MathGraphicDevice.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_svg_la-SVG_MathGraphicDevice.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_svg_la-SVG_MathGraphicDevice.Tpo" -c -o libmathview_backend_svg_la-SVG_MathGraphicDevice.lo `test -f 'SVG_MathGraphicDevice.cc' || echo '$(srcdir)/'`SVG_MathGraphicDevice.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_MathGraphicDevice.Tpo" "$(DEPDIR)/libmathview_backend_svg_la-SVG_MathGraphicDevice.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_MathGraphicDevice.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='SVG_MathGraphicDevice.cc' object='libmathview_backend_svg_la-SVG_MathGraphicDevice.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_svg_la-SVG_MathGraphicDevice.lo `test -f 'SVG_MathGraphicDevice.cc' || echo '$(srcdir)/'`SVG_MathGraphicDevice.cc libmathview_backend_svg_la-SVG_RenderingContext.lo: SVG_RenderingContext.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_svg_la-SVG_RenderingContext.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_svg_la-SVG_RenderingContext.Tpo" -c -o libmathview_backend_svg_la-SVG_RenderingContext.lo `test -f 'SVG_RenderingContext.cc' || echo '$(srcdir)/'`SVG_RenderingContext.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_RenderingContext.Tpo" "$(DEPDIR)/libmathview_backend_svg_la-SVG_RenderingContext.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_RenderingContext.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='SVG_RenderingContext.cc' object='libmathview_backend_svg_la-SVG_RenderingContext.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_svg_la-SVG_RenderingContext.lo `test -f 'SVG_RenderingContext.cc' || echo '$(srcdir)/'`SVG_RenderingContext.cc libmathview_backend_svg_la-SVG_StreamRenderingContext.lo: SVG_StreamRenderingContext.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_svg_la-SVG_StreamRenderingContext.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_svg_la-SVG_StreamRenderingContext.Tpo" -c -o libmathview_backend_svg_la-SVG_StreamRenderingContext.lo `test -f 'SVG_StreamRenderingContext.cc' || echo '$(srcdir)/'`SVG_StreamRenderingContext.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_StreamRenderingContext.Tpo" "$(DEPDIR)/libmathview_backend_svg_la-SVG_StreamRenderingContext.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_StreamRenderingContext.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='SVG_StreamRenderingContext.cc' object='libmathview_backend_svg_la-SVG_StreamRenderingContext.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_svg_la-SVG_StreamRenderingContext.lo `test -f 'SVG_StreamRenderingContext.cc' || echo '$(srcdir)/'`SVG_StreamRenderingContext.cc libmathview_backend_svg_la-SVG_TFMGlyphArea.lo: SVG_TFMGlyphArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_svg_la-SVG_TFMGlyphArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_svg_la-SVG_TFMGlyphArea.Tpo" -c -o libmathview_backend_svg_la-SVG_TFMGlyphArea.lo `test -f 'SVG_TFMGlyphArea.cc' || echo '$(srcdir)/'`SVG_TFMGlyphArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_TFMGlyphArea.Tpo" "$(DEPDIR)/libmathview_backend_svg_la-SVG_TFMGlyphArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_TFMGlyphArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='SVG_TFMGlyphArea.cc' object='libmathview_backend_svg_la-SVG_TFMGlyphArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_svg_la-SVG_TFMGlyphArea.lo `test -f 'SVG_TFMGlyphArea.cc' || echo '$(srcdir)/'`SVG_TFMGlyphArea.cc libmathview_backend_svg_la-SVG_TTF_TFMGlyphArea.lo: SVG_TTF_TFMGlyphArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_svg_la-SVG_TTF_TFMGlyphArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_svg_la-SVG_TTF_TFMGlyphArea.Tpo" -c -o libmathview_backend_svg_la-SVG_TTF_TFMGlyphArea.lo `test -f 'SVG_TTF_TFMGlyphArea.cc' || echo '$(srcdir)/'`SVG_TTF_TFMGlyphArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_TTF_TFMGlyphArea.Tpo" "$(DEPDIR)/libmathview_backend_svg_la-SVG_TTF_TFMGlyphArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_TTF_TFMGlyphArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='SVG_TTF_TFMGlyphArea.cc' object='libmathview_backend_svg_la-SVG_TTF_TFMGlyphArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_svg_la-SVG_TTF_TFMGlyphArea.lo `test -f 'SVG_TTF_TFMGlyphArea.cc' || echo '$(srcdir)/'`SVG_TTF_TFMGlyphArea.cc libmathview_backend_svg_la-SVG_WrapperArea.lo: SVG_WrapperArea.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_svg_la-SVG_WrapperArea.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_svg_la-SVG_WrapperArea.Tpo" -c -o libmathview_backend_svg_la-SVG_WrapperArea.lo `test -f 'SVG_WrapperArea.cc' || echo '$(srcdir)/'`SVG_WrapperArea.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_WrapperArea.Tpo" "$(DEPDIR)/libmathview_backend_svg_la-SVG_WrapperArea.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_WrapperArea.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='SVG_WrapperArea.cc' object='libmathview_backend_svg_la-SVG_WrapperArea.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_svg_la-SVG_WrapperArea.lo `test -f 'SVG_WrapperArea.cc' || echo '$(srcdir)/'`SVG_WrapperArea.cc libmathview_backend_svg_la-SVG_BoxGraphicDevice.lo: SVG_BoxGraphicDevice.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_svg_la-SVG_BoxGraphicDevice.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_svg_la-SVG_BoxGraphicDevice.Tpo" -c -o libmathview_backend_svg_la-SVG_BoxGraphicDevice.lo `test -f 'SVG_BoxGraphicDevice.cc' || echo '$(srcdir)/'`SVG_BoxGraphicDevice.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_BoxGraphicDevice.Tpo" "$(DEPDIR)/libmathview_backend_svg_la-SVG_BoxGraphicDevice.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_BoxGraphicDevice.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='SVG_BoxGraphicDevice.cc' object='libmathview_backend_svg_la-SVG_BoxGraphicDevice.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_svg_la-SVG_BoxGraphicDevice.lo `test -f 'SVG_BoxGraphicDevice.cc' || echo '$(srcdir)/'`SVG_BoxGraphicDevice.cc libmathview_backend_svg_la-SVG_TFMComputerModernMathGraphicDevice.lo: SVG_TFMComputerModernMathGraphicDevice.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_svg_la-SVG_TFMComputerModernMathGraphicDevice.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_svg_la-SVG_TFMComputerModernMathGraphicDevice.Tpo" -c -o libmathview_backend_svg_la-SVG_TFMComputerModernMathGraphicDevice.lo `test -f 'SVG_TFMComputerModernMathGraphicDevice.cc' || echo '$(srcdir)/'`SVG_TFMComputerModernMathGraphicDevice.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_TFMComputerModernMathGraphicDevice.Tpo" "$(DEPDIR)/libmathview_backend_svg_la-SVG_TFMComputerModernMathGraphicDevice.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_TFMComputerModernMathGraphicDevice.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='SVG_TFMComputerModernMathGraphicDevice.cc' object='libmathview_backend_svg_la-SVG_TFMComputerModernMathGraphicDevice.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_svg_la-SVG_TFMComputerModernMathGraphicDevice.lo `test -f 'SVG_TFMComputerModernMathGraphicDevice.cc' || echo '$(srcdir)/'`SVG_TFMComputerModernMathGraphicDevice.cc libmathview_backend_svg_la-SVG_TFMComputerModernShaper.lo: SVG_TFMComputerModernShaper.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_svg_la-SVG_TFMComputerModernShaper.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_svg_la-SVG_TFMComputerModernShaper.Tpo" -c -o libmathview_backend_svg_la-SVG_TFMComputerModernShaper.lo `test -f 'SVG_TFMComputerModernShaper.cc' || echo '$(srcdir)/'`SVG_TFMComputerModernShaper.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_TFMComputerModernShaper.Tpo" "$(DEPDIR)/libmathview_backend_svg_la-SVG_TFMComputerModernShaper.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_TFMComputerModernShaper.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='SVG_TFMComputerModernShaper.cc' object='libmathview_backend_svg_la-SVG_TFMComputerModernShaper.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_svg_la-SVG_TFMComputerModernShaper.lo `test -f 'SVG_TFMComputerModernShaper.cc' || echo '$(srcdir)/'`SVG_TFMComputerModernShaper.cc libmathview_backend_svg_la-SVG_TTF_TFMComputerModernShaper.lo: SVG_TTF_TFMComputerModernShaper.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_backend_svg_la-SVG_TTF_TFMComputerModernShaper.lo -MD -MP -MF "$(DEPDIR)/libmathview_backend_svg_la-SVG_TTF_TFMComputerModernShaper.Tpo" -c -o libmathview_backend_svg_la-SVG_TTF_TFMComputerModernShaper.lo `test -f 'SVG_TTF_TFMComputerModernShaper.cc' || echo '$(srcdir)/'`SVG_TTF_TFMComputerModernShaper.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_TTF_TFMComputerModernShaper.Tpo" "$(DEPDIR)/libmathview_backend_svg_la-SVG_TTF_TFMComputerModernShaper.Plo"; else rm -f "$(DEPDIR)/libmathview_backend_svg_la-SVG_TTF_TFMComputerModernShaper.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='SVG_TTF_TFMComputerModernShaper.cc' object='libmathview_backend_svg_la-SVG_TTF_TFMComputerModernShaper.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_backend_svg_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_backend_svg_la-SVG_TTF_TFMComputerModernShaper.lo `test -f 'SVG_TTF_TFMComputerModernShaper.cc' || echo '$(srcdir)/'`SVG_TTF_TFMComputerModernShaper.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-mathviewHEADERS: $(mathview_HEADERS) @$(NORMAL_INSTALL) test -z "$(mathviewdir)" || $(mkdir_p) "$(DESTDIR)$(mathviewdir)" @list='$(mathview_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(mathviewHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(mathviewdir)/$$f'"; \ $(mathviewHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(mathviewdir)/$$f"; \ done uninstall-mathviewHEADERS: @$(NORMAL_UNINSTALL) @list='$(mathview_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(mathviewdir)/$$f'"; \ rm -f "$(DESTDIR)$(mathviewdir)/$$f"; \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(mathviewdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-mathviewHEADERS install-exec-am: install-libLTLIBRARIES install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \ uninstall-mathviewHEADERS .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am \ install-libLTLIBRARIES install-man install-mathviewHEADERS \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-info-am uninstall-libLTLIBRARIES \ uninstall-mathviewHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/src/backend/svg/SVG_TFMComputerModernShaper.hh0000644000175000017500000000314110661271077021472 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SVG_TFMComputerModernShaper_hh__ #define __SVG_TFMComputerModernShaper_hh__ #include "TFMComputerModernShaper.hh" class SVG_TFMComputerModernShaper : public TFMComputerModernShaper { protected: SVG_TFMComputerModernShaper(const SmartPtr&, const SmartPtr&); virtual ~SVG_TFMComputerModernShaper(); public: static SmartPtr create(const SmartPtr&, const SmartPtr&); protected: virtual AreaRef getGlyphArea(ComputerModernFamily::FontNameId, ComputerModernFamily::FontSizeId, UChar8, int) const; virtual bool getGlyphData(const AreaRef&, SmartPtr&, UChar8&) const; }; #endif // __SVG_TFMComputerModernShaper_hh__ gtkmathview-0.8.0/src/backend/svg/SVG_AreaFactory.hh0000644000175000017500000000320010661271077017211 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SVG_AreaFactory_hh__ #define __SVG_AreaFactory_hh__ #include "AreaFactory.hh" #include "SVG_ColorArea.hh" #include "SVG_BackgroundArea.hh" #include "SVG_InkArea.hh" class SVG_AreaFactory : public AreaFactory { protected: SVG_AreaFactory(void) { } virtual ~SVG_AreaFactory() { } public: static SmartPtr create(void) { return new SVG_AreaFactory(); } // redefined methods virtual SmartPtr color(const AreaRef& area, const RGBColor& color) const { return SVG_ColorArea::create(area, color); } virtual SmartPtr ink(const AreaRef& area) const { return SVG_InkArea::create(area); } virtual AreaRef background(const AreaRef& area, const RGBColor& color) const { return SVG_BackgroundArea::create(area, color); } }; #endif // __SVG_AreaFactory_hh__ gtkmathview-0.8.0/src/backend/svg/SVG_StreamRenderingContext.hh0000644000175000017500000000402110661271077021451 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SVG_StreamRenderingContext_hh__ #define __SVG_StreamRenderingContext_hh__ #include #include "String.hh" #include "SVG_RenderingContext.hh" class GMV_BackEnd_EXPORT SVG_StreamRenderingContext : public SVG_RenderingContext { public: SVG_StreamRenderingContext(const SmartPtr&, std::ostream&); virtual ~SVG_StreamRenderingContext(); virtual void wrapperStart(const scaled&, const scaled&, const BoundingBox&, const SmartPtr&); virtual void wrapperEnd(void); protected: virtual String getId(const SmartPtr&) const; virtual void beginDocument(const BoundingBox&); virtual void endDocument(void); virtual void metadata(const String&); virtual void text(const scaled&, const scaled&, const String&, const scaled&, const RGBColor&, const RGBColor&, const scaled&, const String&); virtual void rect(const scaled&, const scaled&, const scaled&, const scaled&, const RGBColor&, const RGBColor&, const scaled&); virtual void line(const scaled&, const scaled&, const scaled&, const scaled&, const RGBColor&, const scaled&); private: std::ostream& output; }; #endif // __SVG_StreamRenderingContext_hh__ gtkmathview-0.8.0/src/backend/svg/SVG_BackgroundArea.cc0000644000175000017500000000273310661271077017661 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "SVG_BackgroundArea.hh" #include "SVG_RenderingContext.hh" void SVG_BackgroundArea::render(RenderingContext& c, const scaled& x, const scaled& y) const { SVG_RenderingContext& context = dynamic_cast(c); const RGBColor old_foregroundColor = context.getForegroundColor(); const RGBColor old_backgroundColor = context.getBackgroundColor(); context.setForegroundColor(getColor()); context.setBackgroundColor(getColor()); context.fill(x, y, box()); context.setForegroundColor(old_foregroundColor); getChild()->render(context, x, y); context.setBackgroundColor(old_backgroundColor); } gtkmathview-0.8.0/src/backend/svg/SVG_TFMGlyphArea.hh0000644000175000017500000000304010661271077017236 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SVG_TFMGlyphArea_hh__ #define __SVG_TFMGlyphArea_hh__ #include "GlyphArea.hh" class SVG_TFMGlyphArea : public GlyphArea { protected: SVG_TFMGlyphArea(const SmartPtr&, Char8); virtual ~SVG_TFMGlyphArea(); public: static SmartPtr create(const SmartPtr&, Char8); virtual BoundingBox box(void) const; virtual scaled leftEdge(void) const; virtual scaled rightEdge(void) const; virtual void render(class RenderingContext&, const scaled&, const scaled&) const; SmartPtr getFont(void) const; Char8 getIndex(void) const { return index; } private: SmartPtr font; Char8 index; }; #endif // __SVG_TFMGlyphArea_hh__ gtkmathview-0.8.0/src/view/0000777000175000017500000000000010704625472012626 500000000000000gtkmathview-0.8.0/src/view/Init.hh0000644000175000017500000000756210661271105013770 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Init_hh__ #define __Init_hh__ #include "Utils.hh" #include "AbstractLogger.hh" #include "Configuration.hh" #include "MathMLOperatorDictionary.hh" template SmartPtr initConfiguration(SmartPtr& logger, const char* confPath) { SmartPtr configuration = Configuration::create(); bool res = false; if (MathViewNS::fileExists(MathView::getDefaultConfigurationPath().c_str())) res |= MathView::loadConfiguration(logger, configuration, MathView::getDefaultConfigurationPath()); for (std::vector::const_iterator p = Configuration::getConfigurationPaths().begin(); p != Configuration::getConfigurationPaths().end(); p++) if (MathViewNS::fileExists(p->c_str())) res |= MathView::loadConfiguration(logger, configuration, *p); else logger->out(LOG_WARNING, "configuration file %s explicitly specified but not found", p->c_str()); if (MathViewNS::fileExists("gtkmathview.conf.xml")) res |= MathView::loadConfiguration(logger, configuration, "gtkmathview.conf.xml"); if (confPath != NULL) if (MathViewNS::fileExists(confPath)) res |= MathView::loadConfiguration(logger, configuration, confPath); else logger->out(LOG_WARNING, "configuration file %s explicitly specified but not found", confPath); if (!res) logger->out(LOG_WARNING, "could not load configuration file"); logger->setLogLevel(LogLevelId(configuration->getInt(logger, "logger/verbosity", 1))); String confVersion = configuration->getString(logger, "version", ""); if (confVersion != Configuration::getBinaryVersion()) logger->out(LOG_WARNING, "configuration file version (%s) differs from binary version (%s)", confVersion.c_str(), Configuration::getBinaryVersion()); return configuration; } template SmartPtr initOperatorDictionary(const SmartPtr& logger, const SmartPtr configuration) { SmartPtr dictionary = MathMLOperatorDictionary::create(); std::vector paths = configuration->getStringList("dictionary/path"); if (!paths.empty()) for (std::vector::const_iterator dit = paths.begin(); dit != paths.end(); dit++) { if (MathViewNS::fileExists((*dit).c_str())) { logger->out(LOG_DEBUG, "loading dictionary `%s'", (*dit).c_str()); if (!MathView::loadOperatorDictionary(logger, dictionary, (*dit).c_str())) logger->out(LOG_WARNING, "could not load `%s'", (*dit).c_str()); } else logger->out(LOG_WARNING, "dictionary `%s' does not exist", (*dit).c_str()); } else { bool res = false; if (MathViewNS::fileExists(MathView::getDefaultOperatorDictionaryPath().c_str())) res |= MathView::loadOperatorDictionary(logger, dictionary, MathView::getDefaultOperatorDictionaryPath()); if (MathViewNS::fileExists("config/dictionary.xml")) res |= MathView::loadOperatorDictionary(logger, dictionary, "config/dictionary.xml"); } return dictionary; } #endif // __Init_hh__ gtkmathview-0.8.0/src/view/gmetadom_MathView.cc0000644000175000017500000001034310661271105016443 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "gmetadom_Model.hh" #include "gmetadom_Builder.hh" #include "gmetadom_Setup.hh" // WARNING: the following #includes MUST be the last one (???) #include "gmetadom_MathView.hh" #include "Element.hh" gmetadom_MathView::gmetadom_MathView(const SmartPtr& logger) : View(logger) { setBuilder(gmetadom_Builder::create()); } gmetadom_MathView::~gmetadom_MathView() { unload(); } SmartPtr gmetadom_MathView::create(const SmartPtr& logger) { return new gmetadom_MathView(logger); } void gmetadom_MathView::unload() { resetRootElement(); currentDoc = DOM::Document(); if (SmartPtr builder = smart_cast(getBuilder())) builder->setRootModelElement(DOM::Element()); } bool gmetadom_MathView::loadURI(const String& name) { if (DOM::Document doc = gmetadom_Model::document(*getLogger(), name, true)) if (loadDocument(doc)) return true; unload(); return false; } bool gmetadom_MathView::loadBuffer(const String& buffer) { if (DOM::Document doc = gmetadom_Model::documentFromBuffer(*getLogger(), buffer, true)) if (loadDocument(doc)) return true; unload(); return false; } bool gmetadom_MathView::loadDocument(const DOM::Document& doc) { assert(doc); if (DOM::Element root = doc.get_documentElement()) if (loadRootElement(root)) { currentDoc = doc; return true; } unload(); return false; } bool gmetadom_MathView::loadRootElement(const DOM::Element& elem) { assert(elem); if (SmartPtr builder = smart_cast(getBuilder())) { resetRootElement(); builder->setRootModelElement(elem); return true; } unload(); return false; } SmartPtr gmetadom_MathView::elementOfModelElement(const DOM::Element& el) const { if (SmartPtr builder = smart_cast(getBuilder())) return builder->findElement(el); else return 0; } DOM::Element gmetadom_MathView::modelElementOfElementAux(const SmartPtr& elem) const { if (SmartPtr builder = smart_cast(getBuilder())) return builder->findSelfOrAncestorModelElement(elem); else return DOM::Element(); } bool gmetadom_MathView::notifyStructureChanged(const DOM::Element& el) const { if (SmartPtr builder = smart_cast(getBuilder())) return builder->notifyStructureChanged(el); else return false; } bool gmetadom_MathView::notifyAttributeChanged(const DOM::Element& el, const DOM::GdomeString& name) const { if (SmartPtr builder = smart_cast(getBuilder())) return builder->notifyAttributeChanged(el, name); else return false; } SmartPtr gmetadom_MathView::elementOfModelElement(GdomeElement* el) const { return elementOfModelElement(GdomeSmartDOM::Element(el)); } bool gmetadom_MathView::loadConfiguration(const SmartPtr& logger, const SmartPtr& configuration, const String& path) { return gmetadom_Setup::loadConfiguration(*logger, *configuration, path); } bool gmetadom_MathView::loadOperatorDictionary(const SmartPtr& logger, const SmartPtr& dictionary, const String& path) { return gmetadom_Setup::loadOperatorDictionary(*logger, *dictionary, path); } gtkmathview-0.8.0/src/view/libxml2_reader_MathView.hh0000644000175000017500000000365510661271105017563 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __libxml2_reader_MathView_hh__ #define __libxml2_reader_MathView_hh__ #include #include "View.hh" class GMV_FrontEnd_EXPORT libxml2_reader_MathView : public View { protected: libxml2_reader_MathView(const SmartPtr&); virtual ~libxml2_reader_MathView(); public: static SmartPtr create(const SmartPtr&); virtual void unload(void); bool loadReader(xmlTextReaderPtr); bool notifyStructureChanged(void*) const; bool notifyAttributeChanged(void*, const xmlChar*) const; void* modelElementOfElement(const SmartPtr&) const; SmartPtr elementOfModelElement(void*) const; xmlDoc* getDocument(void) const { return currentDoc; } static bool loadConfiguration(const SmartPtr&, const SmartPtr&, const String&); static bool loadOperatorDictionary(const SmartPtr&, const SmartPtr&, const String&); protected: xmlDoc* currentDoc; }; #endif // __libxml2_reader_MathView_hh__ gtkmathview-0.8.0/src/view/gmetadom_MathView.hh0000644000175000017500000000527710661271105016467 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __gmetadom_MathView_hh__ #define __gmetadom_MathView_hh__ #include #include "View.hh" #include "String.hh" class GMV_FrontEnd_EXPORT gmetadom_MathView : public View { protected: gmetadom_MathView(const SmartPtr&); virtual ~gmetadom_MathView(); public: static SmartPtr create(const SmartPtr&); virtual void unload(void); bool loadURI(const String&); bool loadBuffer(const String&); bool loadDocument(const GdomeSmartDOM::Document&); bool loadRootElement(const GdomeSmartDOM::Element&); bool notifyStructureChanged(const GdomeSmartDOM::Element&) const; bool notifyStructureChanged(GdomeElement* el) const { return notifyStructureChanged(GdomeSmartDOM::Element(el)); } bool notifyAttributeChanged(const GdomeSmartDOM::Element&, const GdomeSmartDOM::GdomeString&) const; bool notifyAttributeChanged(GdomeElement* el, GdomeDOMString* s) const { return notifyAttributeChanged(GdomeSmartDOM::Element(el), GdomeSmartDOM::GdomeString(s)); } GdomeSmartDOM::Element modelElementOfElementAux(const SmartPtr&) const; GdomeElement* modelElementOfElement(const SmartPtr& elem) const { return reinterpret_cast(modelElementOfElementAux(elem).gdome_object()); } SmartPtr elementOfModelElement(const GdomeSmartDOM::Element&) const; SmartPtr elementOfModelElement(GdomeElement*) const; GdomeSmartDOM::Document getDocument(void) const { return currentDoc; } static bool loadConfiguration(const SmartPtr&, const SmartPtr&, const String&); static bool loadOperatorDictionary(const SmartPtr&, const SmartPtr&, const String&); protected: GdomeSmartDOM::Document currentDoc; }; #endif // __gmetadom_MathView_hh__ gtkmathview-0.8.0/src/view/custom_reader_MathView.hh0000644000175000017500000000412610661271105017516 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __custom_reader_MathView_hh__ #define __custom_reader_MathView_hh__ #include "View.hh" #include "libxml/tree.h" #include "c_customXmlReader.h" class GMV_FrontEnd_EXPORT custom_reader_MathView : public View { protected: custom_reader_MathView(const SmartPtr&); virtual ~custom_reader_MathView(); public: static SmartPtr create(const SmartPtr&); virtual void unload(void); bool loadReader(const c_customXmlReader*, c_customModelUserData); bool notifyStructureChanged(c_customModelElementId) const; bool notifyAttributeChanged(c_customModelElementId, const char*) const; c_customModelElementId modelElementOfElement(const SmartPtr&) const; SmartPtr elementOfModelElement(c_customModelElementId) const; c_customModelUserData getDocument(void) const { return data; } static bool loadConfiguration(const SmartPtr&, const SmartPtr&, const String&) { return false; } static bool loadOperatorDictionary(const SmartPtr&, const SmartPtr&, const String&) { return false; } protected: c_customModelUserData data; }; #endif // __custom_reader_MathView_hh__ gtkmathview-0.8.0/src/view/libxml2_reader_MathView.cc0000644000175000017500000000510110661271105017535 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "libxml/xmlreader.h" #include "libxml2_reader_MathView.hh" #include "libxml2_reader_Builder.hh" #include "libxml2_reader_Setup.hh" libxml2_reader_MathView::libxml2_reader_MathView(const SmartPtr& logger) : View(logger) { setBuilder(libxml2_reader_Builder::create()); } libxml2_reader_MathView::~libxml2_reader_MathView() { } SmartPtr libxml2_reader_MathView::create(const SmartPtr& logger) { return new libxml2_reader_MathView(logger); } void libxml2_reader_MathView::unload() { } bool libxml2_reader_MathView::loadReader(xmlTextReaderPtr reader) { if (SmartPtr builder = smart_cast(getBuilder())) { resetRootElement(); builder->setReader(libxmlXmlReader::create(reader)); return true; } unload(); return false; } SmartPtr libxml2_reader_MathView::elementOfModelElement(void*) const { return 0; } void* libxml2_reader_MathView::modelElementOfElement(const SmartPtr&) const { return 0; } bool libxml2_reader_MathView::notifyStructureChanged(void*) const { return false; } bool libxml2_reader_MathView::notifyAttributeChanged(void*, const xmlChar*) const { return false; } bool libxml2_reader_MathView::loadConfiguration(const SmartPtr& logger, const SmartPtr& configuration, const String& path) { return libxml2_reader_Setup::loadConfiguration(*logger, *configuration, path); } bool libxml2_reader_MathView::loadOperatorDictionary(const SmartPtr& logger, const SmartPtr& dictionary, const String& path) { return libxml2_reader_Setup::loadOperatorDictionary(*logger, *dictionary, path); } gtkmathview-0.8.0/src/view/custom_reader_MathView.cc0000644000175000017500000000474710661271105017515 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "custom_reader_MathView.hh" #include "custom_reader_Builder.hh" custom_reader_MathView::custom_reader_MathView(const SmartPtr& logger) : View(logger), data(0) { setBuilder(custom_reader_Builder::create()); } custom_reader_MathView::~custom_reader_MathView() { } SmartPtr custom_reader_MathView::create(const SmartPtr& logger) { return new custom_reader_MathView(logger); } void custom_reader_MathView::unload() { } bool custom_reader_MathView::loadReader(const c_customXmlReader* reader, c_customModelUserData data) { if (SmartPtr builder = smart_cast(getBuilder())) { resetRootElement(); builder->setReader(customXmlReader::create(reader, data)); return true; } unload(); return false; } SmartPtr custom_reader_MathView::elementOfModelElement(c_customModelElementId el) const { if (SmartPtr builder = smart_cast(getBuilder())) return builder->findElement(el); else return 0; } c_customModelElementId custom_reader_MathView::modelElementOfElement(const SmartPtr& elem) const { if (SmartPtr builder = smart_cast(getBuilder())) return builder->findSelfOrAncestorModelElement(elem); else return 0; } bool custom_reader_MathView::notifyStructureChanged(c_customModelElementId) const { return false; } bool custom_reader_MathView::notifyAttributeChanged(c_customModelElementId, const char*) const { return false; } gtkmathview-0.8.0/src/view/libxml2_MathView.cc0000644000175000017500000001053110661271105016216 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "libxml2_MathView.hh" #include "libxml2_Model.hh" #include "libxml2_Setup.hh" #include "libxml2_Builder.hh" libxml2_MathView::libxml2_MathView(const SmartPtr& logger) : View(logger), currentDoc(0), docOwner(false) { setBuilder(libxml2_Builder::create()); } libxml2_MathView::~libxml2_MathView() { if (docOwner && currentDoc) xmlFreeDoc(currentDoc); currentDoc = 0; docOwner = false; } SmartPtr libxml2_MathView::create(const SmartPtr& logger) { return new libxml2_MathView(logger); } void libxml2_MathView::unload() { resetRootElement(); if (docOwner && currentDoc) xmlFreeDoc(currentDoc); currentDoc = 0; docOwner = false; if (SmartPtr builder = smart_cast(getBuilder())) builder->setRootModelElement(0); } bool libxml2_MathView::loadURI(const char* name) { assert(name); if (xmlDoc* doc = libxml2_Model::document(*getLogger(), name, true)) { if (loadDocument(doc)) { docOwner = true; return true; } else { resetRootElement(); xmlFreeDoc(doc); return false; } } unload(); return false; } bool libxml2_MathView::loadBuffer(const char* buffer) { assert(buffer); if (xmlDoc* doc = libxml2_Model::documentFromBuffer(*getLogger(), buffer, true)) { if (loadDocument(doc)) { docOwner = true; return true; } else { resetRootElement(); xmlFreeDoc(doc); return false; } } unload(); return false; } bool libxml2_MathView::loadDocument(xmlDoc* doc) { assert(doc); if (xmlNode* root = xmlDocGetRootElement(doc)) { const bool res = loadRootElement((xmlElement*) root); if (res) currentDoc = doc; return res; } unload(); return false; } bool libxml2_MathView::loadRootElement(xmlElement* elem) { assert(elem); if (SmartPtr builder = smart_cast(getBuilder())) { resetRootElement(); builder->setRootModelElement(elem); return true; } unload(); return false; } SmartPtr libxml2_MathView::elementOfModelElement(xmlElement* el) const { if (SmartPtr builder = smart_cast(getBuilder())) return builder->findElement(el); else return 0; } xmlElement* libxml2_MathView::modelElementOfElement(const SmartPtr& elem) const { if (SmartPtr builder = smart_cast(getBuilder())) return (xmlElement*) builder->findSelfOrAncestorModelElement(elem); else return 0; } bool libxml2_MathView::notifyStructureChanged(xmlElement* el) const { if (SmartPtr builder = smart_cast(getBuilder())) return builder->notifyStructureChanged(el); else return false; } bool libxml2_MathView::notifyAttributeChanged(xmlElement* el, const xmlChar* name) const { if (SmartPtr builder = smart_cast(getBuilder())) return builder->notifyAttributeChanged(el, name); else return false; } bool libxml2_MathView::loadConfiguration(const SmartPtr& logger, const SmartPtr& configuration, const String& path) { return libxml2_Setup::loadConfiguration(*logger, *configuration, path); } bool libxml2_MathView::loadOperatorDictionary(const SmartPtr& logger, const SmartPtr& dictionary, const String& path) { return libxml2_Setup::loadOperatorDictionary(*logger, *dictionary, path); } gtkmathview-0.8.0/src/view/Makefile.am0000644000175000017500000000601610661271105014571 00000000000000 NULL = if COND_CUSTOM_READER MAYBE_CUSTOM_READER = libmathview_frontend_custom_reader.la else MAYBE_CUSTOM_READER = $(NULL) endif if COND_LIBXML2_READER MAYBE_LIBXML2_READER = libmathview_frontend_libxml2_reader.la else MAYBE_LIBXML2_READER = $(NULL) endif if COND_LIBXML2 MAYBE_LIBXML2 = libmathview_frontend_libxml2.la else MAYBE_LIBXML2 = $(NULL) endif if COND_GMETADOM MAYBE_GMETADOM = libmathview_frontend_gmetadom.la else MAYBE_GMETADOM = $(NULL) endif lib_LTLIBRARIES = $(MAYBE_CUSTOM_READER) $(MAYBE_LIBXML2_READER) $(MAYBE_LIBXML2) $(MAYBE_GMETADOM) libmathview_frontend_custom_reader_la_LIBADD = \ $(XML_LIBS) \ $(top_builddir)/src/frontend/libxml2_reader/libfrontend_libxml2_reader.la \ $(top_builddir)/src/frontend/custom_reader/libfrontend_custom_reader.la \ $(top_builddir)/src/libmathview.la \ -lstdc++ \ $(NULL) libmathview_frontend_libxml2_reader_la_LIBADD = \ $(XML_LIBS) \ $(top_builddir)/src/frontend/libxml2_reader/libfrontend_libxml2_reader.la \ $(top_builddir)/src/libmathview.la \ -lstdc++ \ $(NULL) libmathview_frontend_libxml2_la_LIBADD = \ $(XML_LIBS) \ $(top_builddir)/src/frontend/libxml2/libfrontend_libxml2.la \ $(top_builddir)/src/libmathview.la \ -lstdc++ \ $(NULL) libmathview_frontend_gmetadom_la_LIBADD = \ $(DOM_LIBS) \ $(top_builddir)/src/frontend/gmetadom/libfrontend_gmetadom.la \ $(top_builddir)/src/libmathview.la \ -lstdc++ \ $(NULL) libmathview_frontend_custom_reader_la_CPPFLAGS = -DGMV_FrontEnd_DLL libmathview_frontend_libxml2_reader_la_CPPFLAGS = -DGMV_FrontEnd_DLL libmathview_frontend_libxml2_la_CPPFLAGS = -DGMV_FrontEnd_DLL libmathview_frontend_gmetadom_la_CPPFLAGS = -DGMV_FrontEnd_DLL libmathview_frontend_custom_reader_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ -no-undefined libmathview_frontend_libxml2_reader_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ -no-undefined libmathview_frontend_libxml2_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ -no-undefined libmathview_frontend_gmetadom_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ -no-undefined libmathview_frontend_custom_reader_la_SOURCES = custom_reader_MathView.cc libmathview_frontend_libxml2_reader_la_SOURCES = libxml2_reader_MathView.cc libmathview_frontend_libxml2_la_SOURCES = libxml2_MathView.cc libmathview_frontend_gmetadom_la_SOURCES = gmetadom_MathView.cc mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ Init.hh \ custom_reader_MathView.hh \ libxml2_reader_MathView.hh \ libxml2_MathView.hh \ gmetadom_MathView.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/frontend/custom_reader \ -I$(top_srcdir)/src/frontend/libxml2_reader \ -I$(top_srcdir)/src/frontend/libxml2 \ -I$(top_srcdir)/src/frontend/gmetadom \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ $(XML_CFLAGS) \ $(DOM_CFLAGS) \ $(NULL) gtkmathview-0.8.0/src/view/libxml2_MathView.hh0000644000175000017500000000377310661271105016242 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __libxml2_MathView_hh__ #define __libxml2_MathView_hh__ #include #include "View.hh" class GMV_FrontEnd_EXPORT libxml2_MathView : public View { protected: libxml2_MathView(const SmartPtr&); virtual ~libxml2_MathView(); public: static SmartPtr create(const SmartPtr&); virtual void unload(void); bool loadURI(const char*); bool loadBuffer(const char*); bool loadDocument(xmlDoc*); bool loadRootElement(xmlElement*); bool notifyStructureChanged(xmlElement*) const; bool notifyAttributeChanged(xmlElement*, const xmlChar*) const; xmlElement* modelElementOfElement(const SmartPtr&) const; SmartPtr elementOfModelElement(xmlElement*) const; xmlDoc* getDocument(void) const { return currentDoc; } static bool loadConfiguration(const SmartPtr&, const SmartPtr&, const String&); static bool loadOperatorDictionary(const SmartPtr&, const SmartPtr&, const String&); protected: xmlDoc* currentDoc; bool docOwner; }; #endif // __libxml2_MathView_hh__ gtkmathview-0.8.0/src/view/Makefile.in0000644000175000017500000007416710704610560014616 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/view DIST_COMMON = $(mathview_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(mathviewdir)" libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = libmathview_frontend_custom_reader_la_DEPENDENCIES = \ $(am__DEPENDENCIES_1) \ $(top_builddir)/src/frontend/libxml2_reader/libfrontend_libxml2_reader.la \ $(top_builddir)/src/frontend/custom_reader/libfrontend_custom_reader.la \ $(top_builddir)/src/libmathview.la $(am__DEPENDENCIES_1) am_libmathview_frontend_custom_reader_la_OBJECTS = libmathview_frontend_custom_reader_la-custom_reader_MathView.lo libmathview_frontend_custom_reader_la_OBJECTS = \ $(am_libmathview_frontend_custom_reader_la_OBJECTS) @COND_CUSTOM_READER_TRUE@am_libmathview_frontend_custom_reader_la_rpath = \ @COND_CUSTOM_READER_TRUE@ -rpath $(libdir) libmathview_frontend_gmetadom_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(top_builddir)/src/frontend/gmetadom/libfrontend_gmetadom.la \ $(top_builddir)/src/libmathview.la $(am__DEPENDENCIES_1) am_libmathview_frontend_gmetadom_la_OBJECTS = \ libmathview_frontend_gmetadom_la-gmetadom_MathView.lo libmathview_frontend_gmetadom_la_OBJECTS = \ $(am_libmathview_frontend_gmetadom_la_OBJECTS) @COND_GMETADOM_TRUE@am_libmathview_frontend_gmetadom_la_rpath = \ @COND_GMETADOM_TRUE@ -rpath $(libdir) libmathview_frontend_libxml2_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(top_builddir)/src/frontend/libxml2/libfrontend_libxml2.la \ $(top_builddir)/src/libmathview.la $(am__DEPENDENCIES_1) am_libmathview_frontend_libxml2_la_OBJECTS = \ libmathview_frontend_libxml2_la-libxml2_MathView.lo libmathview_frontend_libxml2_la_OBJECTS = \ $(am_libmathview_frontend_libxml2_la_OBJECTS) @COND_LIBXML2_TRUE@am_libmathview_frontend_libxml2_la_rpath = -rpath \ @COND_LIBXML2_TRUE@ $(libdir) libmathview_frontend_libxml2_reader_la_DEPENDENCIES = \ $(am__DEPENDENCIES_1) \ $(top_builddir)/src/frontend/libxml2_reader/libfrontend_libxml2_reader.la \ $(top_builddir)/src/libmathview.la $(am__DEPENDENCIES_1) am_libmathview_frontend_libxml2_reader_la_OBJECTS = libmathview_frontend_libxml2_reader_la-libxml2_reader_MathView.lo libmathview_frontend_libxml2_reader_la_OBJECTS = \ $(am_libmathview_frontend_libxml2_reader_la_OBJECTS) @COND_LIBXML2_READER_TRUE@am_libmathview_frontend_libxml2_reader_la_rpath = \ @COND_LIBXML2_READER_TRUE@ -rpath $(libdir) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libmathview_frontend_custom_reader_la_SOURCES) \ $(libmathview_frontend_gmetadom_la_SOURCES) \ $(libmathview_frontend_libxml2_la_SOURCES) \ $(libmathview_frontend_libxml2_reader_la_SOURCES) DIST_SOURCES = $(libmathview_frontend_custom_reader_la_SOURCES) \ $(libmathview_frontend_gmetadom_la_SOURCES) \ $(libmathview_frontend_libxml2_la_SOURCES) \ $(libmathview_frontend_libxml2_reader_la_SOURCES) mathviewHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(mathview_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = @COND_CUSTOM_READER_FALSE@MAYBE_CUSTOM_READER = $(NULL) @COND_CUSTOM_READER_TRUE@MAYBE_CUSTOM_READER = libmathview_frontend_custom_reader.la @COND_LIBXML2_READER_FALSE@MAYBE_LIBXML2_READER = $(NULL) @COND_LIBXML2_READER_TRUE@MAYBE_LIBXML2_READER = libmathview_frontend_libxml2_reader.la @COND_LIBXML2_FALSE@MAYBE_LIBXML2 = $(NULL) @COND_LIBXML2_TRUE@MAYBE_LIBXML2 = libmathview_frontend_libxml2.la @COND_GMETADOM_FALSE@MAYBE_GMETADOM = $(NULL) @COND_GMETADOM_TRUE@MAYBE_GMETADOM = libmathview_frontend_gmetadom.la lib_LTLIBRARIES = $(MAYBE_CUSTOM_READER) $(MAYBE_LIBXML2_READER) $(MAYBE_LIBXML2) $(MAYBE_GMETADOM) libmathview_frontend_custom_reader_la_LIBADD = \ $(XML_LIBS) \ $(top_builddir)/src/frontend/libxml2_reader/libfrontend_libxml2_reader.la \ $(top_builddir)/src/frontend/custom_reader/libfrontend_custom_reader.la \ $(top_builddir)/src/libmathview.la \ -lstdc++ \ $(NULL) libmathview_frontend_libxml2_reader_la_LIBADD = \ $(XML_LIBS) \ $(top_builddir)/src/frontend/libxml2_reader/libfrontend_libxml2_reader.la \ $(top_builddir)/src/libmathview.la \ -lstdc++ \ $(NULL) libmathview_frontend_libxml2_la_LIBADD = \ $(XML_LIBS) \ $(top_builddir)/src/frontend/libxml2/libfrontend_libxml2.la \ $(top_builddir)/src/libmathview.la \ -lstdc++ \ $(NULL) libmathview_frontend_gmetadom_la_LIBADD = \ $(DOM_LIBS) \ $(top_builddir)/src/frontend/gmetadom/libfrontend_gmetadom.la \ $(top_builddir)/src/libmathview.la \ -lstdc++ \ $(NULL) libmathview_frontend_custom_reader_la_CPPFLAGS = -DGMV_FrontEnd_DLL libmathview_frontend_libxml2_reader_la_CPPFLAGS = -DGMV_FrontEnd_DLL libmathview_frontend_libxml2_la_CPPFLAGS = -DGMV_FrontEnd_DLL libmathview_frontend_gmetadom_la_CPPFLAGS = -DGMV_FrontEnd_DLL libmathview_frontend_custom_reader_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ -no-undefined libmathview_frontend_libxml2_reader_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ -no-undefined libmathview_frontend_libxml2_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ -no-undefined libmathview_frontend_gmetadom_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ -no-undefined libmathview_frontend_custom_reader_la_SOURCES = custom_reader_MathView.cc libmathview_frontend_libxml2_reader_la_SOURCES = libxml2_reader_MathView.cc libmathview_frontend_libxml2_la_SOURCES = libxml2_MathView.cc libmathview_frontend_gmetadom_la_SOURCES = gmetadom_MathView.cc mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ Init.hh \ custom_reader_MathView.hh \ libxml2_reader_MathView.hh \ libxml2_MathView.hh \ gmetadom_MathView.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/frontend/custom_reader \ -I$(top_srcdir)/src/frontend/libxml2_reader \ -I$(top_srcdir)/src/frontend/libxml2 \ -I$(top_srcdir)/src/frontend/gmetadom \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ $(XML_CFLAGS) \ $(DOM_CFLAGS) \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/view/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/view/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ else :; fi; \ done uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libmathview_frontend_custom_reader.la: $(libmathview_frontend_custom_reader_la_OBJECTS) $(libmathview_frontend_custom_reader_la_DEPENDENCIES) $(CXXLINK) $(am_libmathview_frontend_custom_reader_la_rpath) $(libmathview_frontend_custom_reader_la_LDFLAGS) $(libmathview_frontend_custom_reader_la_OBJECTS) $(libmathview_frontend_custom_reader_la_LIBADD) $(LIBS) libmathview_frontend_gmetadom.la: $(libmathview_frontend_gmetadom_la_OBJECTS) $(libmathview_frontend_gmetadom_la_DEPENDENCIES) $(CXXLINK) $(am_libmathview_frontend_gmetadom_la_rpath) $(libmathview_frontend_gmetadom_la_LDFLAGS) $(libmathview_frontend_gmetadom_la_OBJECTS) $(libmathview_frontend_gmetadom_la_LIBADD) $(LIBS) libmathview_frontend_libxml2.la: $(libmathview_frontend_libxml2_la_OBJECTS) $(libmathview_frontend_libxml2_la_DEPENDENCIES) $(CXXLINK) $(am_libmathview_frontend_libxml2_la_rpath) $(libmathview_frontend_libxml2_la_LDFLAGS) $(libmathview_frontend_libxml2_la_OBJECTS) $(libmathview_frontend_libxml2_la_LIBADD) $(LIBS) libmathview_frontend_libxml2_reader.la: $(libmathview_frontend_libxml2_reader_la_OBJECTS) $(libmathview_frontend_libxml2_reader_la_DEPENDENCIES) $(CXXLINK) $(am_libmathview_frontend_libxml2_reader_la_rpath) $(libmathview_frontend_libxml2_reader_la_LDFLAGS) $(libmathview_frontend_libxml2_reader_la_OBJECTS) $(libmathview_frontend_libxml2_reader_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_frontend_custom_reader_la-custom_reader_MathView.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_frontend_gmetadom_la-gmetadom_MathView.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_frontend_libxml2_la-libxml2_MathView.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_frontend_libxml2_reader_la-libxml2_reader_MathView.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libmathview_frontend_custom_reader_la-custom_reader_MathView.lo: custom_reader_MathView.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_frontend_custom_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_frontend_custom_reader_la-custom_reader_MathView.lo -MD -MP -MF "$(DEPDIR)/libmathview_frontend_custom_reader_la-custom_reader_MathView.Tpo" -c -o libmathview_frontend_custom_reader_la-custom_reader_MathView.lo `test -f 'custom_reader_MathView.cc' || echo '$(srcdir)/'`custom_reader_MathView.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_frontend_custom_reader_la-custom_reader_MathView.Tpo" "$(DEPDIR)/libmathview_frontend_custom_reader_la-custom_reader_MathView.Plo"; else rm -f "$(DEPDIR)/libmathview_frontend_custom_reader_la-custom_reader_MathView.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='custom_reader_MathView.cc' object='libmathview_frontend_custom_reader_la-custom_reader_MathView.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_frontend_custom_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_frontend_custom_reader_la-custom_reader_MathView.lo `test -f 'custom_reader_MathView.cc' || echo '$(srcdir)/'`custom_reader_MathView.cc libmathview_frontend_gmetadom_la-gmetadom_MathView.lo: gmetadom_MathView.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_frontend_gmetadom_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_frontend_gmetadom_la-gmetadom_MathView.lo -MD -MP -MF "$(DEPDIR)/libmathview_frontend_gmetadom_la-gmetadom_MathView.Tpo" -c -o libmathview_frontend_gmetadom_la-gmetadom_MathView.lo `test -f 'gmetadom_MathView.cc' || echo '$(srcdir)/'`gmetadom_MathView.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_frontend_gmetadom_la-gmetadom_MathView.Tpo" "$(DEPDIR)/libmathview_frontend_gmetadom_la-gmetadom_MathView.Plo"; else rm -f "$(DEPDIR)/libmathview_frontend_gmetadom_la-gmetadom_MathView.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='gmetadom_MathView.cc' object='libmathview_frontend_gmetadom_la-gmetadom_MathView.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_frontend_gmetadom_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_frontend_gmetadom_la-gmetadom_MathView.lo `test -f 'gmetadom_MathView.cc' || echo '$(srcdir)/'`gmetadom_MathView.cc libmathview_frontend_libxml2_la-libxml2_MathView.lo: libxml2_MathView.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_frontend_libxml2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_frontend_libxml2_la-libxml2_MathView.lo -MD -MP -MF "$(DEPDIR)/libmathview_frontend_libxml2_la-libxml2_MathView.Tpo" -c -o libmathview_frontend_libxml2_la-libxml2_MathView.lo `test -f 'libxml2_MathView.cc' || echo '$(srcdir)/'`libxml2_MathView.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_frontend_libxml2_la-libxml2_MathView.Tpo" "$(DEPDIR)/libmathview_frontend_libxml2_la-libxml2_MathView.Plo"; else rm -f "$(DEPDIR)/libmathview_frontend_libxml2_la-libxml2_MathView.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='libxml2_MathView.cc' object='libmathview_frontend_libxml2_la-libxml2_MathView.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_frontend_libxml2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_frontend_libxml2_la-libxml2_MathView.lo `test -f 'libxml2_MathView.cc' || echo '$(srcdir)/'`libxml2_MathView.cc libmathview_frontend_libxml2_reader_la-libxml2_reader_MathView.lo: libxml2_reader_MathView.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_frontend_libxml2_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_frontend_libxml2_reader_la-libxml2_reader_MathView.lo -MD -MP -MF "$(DEPDIR)/libmathview_frontend_libxml2_reader_la-libxml2_reader_MathView.Tpo" -c -o libmathview_frontend_libxml2_reader_la-libxml2_reader_MathView.lo `test -f 'libxml2_reader_MathView.cc' || echo '$(srcdir)/'`libxml2_reader_MathView.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_frontend_libxml2_reader_la-libxml2_reader_MathView.Tpo" "$(DEPDIR)/libmathview_frontend_libxml2_reader_la-libxml2_reader_MathView.Plo"; else rm -f "$(DEPDIR)/libmathview_frontend_libxml2_reader_la-libxml2_reader_MathView.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='libxml2_reader_MathView.cc' object='libmathview_frontend_libxml2_reader_la-libxml2_reader_MathView.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_frontend_libxml2_reader_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_frontend_libxml2_reader_la-libxml2_reader_MathView.lo `test -f 'libxml2_reader_MathView.cc' || echo '$(srcdir)/'`libxml2_reader_MathView.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-mathviewHEADERS: $(mathview_HEADERS) @$(NORMAL_INSTALL) test -z "$(mathviewdir)" || $(mkdir_p) "$(DESTDIR)$(mathviewdir)" @list='$(mathview_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(mathviewHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(mathviewdir)/$$f'"; \ $(mathviewHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(mathviewdir)/$$f"; \ done uninstall-mathviewHEADERS: @$(NORMAL_UNINSTALL) @list='$(mathview_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(mathviewdir)/$$f'"; \ rm -f "$(DESTDIR)$(mathviewdir)/$$f"; \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(mathviewdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-mathviewHEADERS install-exec-am: install-libLTLIBRARIES install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \ uninstall-mathviewHEADERS .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am \ install-libLTLIBRARIES install-man install-mathviewHEADERS \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-info-am uninstall-libLTLIBRARIES \ uninstall-mathviewHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/src/engine/0000777000175000017500000000000010704625460013116 500000000000000gtkmathview-0.8.0/src/engine/mathml/0000777000175000017500000000000010704625457014406 500000000000000gtkmathview-0.8.0/src/engine/mathml/MathMLDummyElement.hh0000644000175000017500000000253310661271076020312 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLDummyElement_hh__ #define __MathMLDummyElement_hh__ #include "MathMLElement.hh" class GMV_MathView_EXPORT MathMLDummyElement : public MathMLElement { protected: MathMLDummyElement(const SmartPtr&); virtual ~MathMLDummyElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLDummyElement(view); } virtual AreaRef format(class FormattingContext&); }; #endif // __MathMLDummyElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLInvisibleTimesNode.hh0000644000175000017500000000306310661271076021440 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLInvisibleTimesNode_hh__ #define __MathMLInvisibleTimesNode_hh__ #include "MathMLTextNode.hh" class GMV_MathView_EXPORT MathMLInvisibleTimesNode : public MathMLTextNode { protected: MathMLInvisibleTimesNode(void) { } virtual ~MathMLInvisibleTimesNode() { } public: static SmartPtr create(void) { return SmartPtr(new MathMLInvisibleTimesNode()); } static String getContent(void); virtual AreaRef format(class FormattingContext&); virtual unsigned GetLogicalContentLength(void) const { return 1; } virtual String GetRawContent(void) const; private: static String getSpace(const class FormattingContext&); }; #endif // __MathMLInvisibleTimesNode_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLPhantomElement.cc0000644000175000017500000000361710661271076020617 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AreaFactory.hh" #include "MathMLPhantomElement.hh" #include "MathMLOperatorElement.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" MathMLPhantomElement::MathMLPhantomElement(const SmartPtr& context) : MathMLNormalizingContainerElement(context) { } MathMLPhantomElement::~MathMLPhantomElement() { } bool MathMLPhantomElement::IsSpaceLike() const { assert(getChild()); return getChild()->IsSpaceLike(); } AreaRef MathMLPhantomElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); AreaRef res = getChild() ? getChild()->format(ctxt) : 0; if (res) res = ctxt.MGD()->wrapper(ctxt, MathMLEmbellishment::formatEmbellishment(this, ctxt, ctxt.MGD()->getFactory()->hide(res))); else res = 0; setArea(res); ctxt.pop(); resetDirtyLayout(); } return getArea(); } SmartPtr MathMLPhantomElement::getCoreOperator() { return getChild() ? getChild()->getCoreOperator() : 0; } gtkmathview-0.8.0/src/engine/mathml/MathMLTableFormatter.hh0000644000175000017500000002030610661271076020616 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLTableFormatter_hh__ #define __MathMLTableFormatter_hh__ #include #include "token.hh" #include "Object.hh" #include "SmartPtr.hh" #include "BoxedLayoutArea.hh" #include "MathMLTableCellElement.hh" class MathMLTableFormatter : public Object { protected: MathMLTableFormatter(void); virtual ~MathMLTableFormatter(); public: static SmartPtr create(void) { return new MathMLTableFormatter(); } void init(const class FormattingContext&, unsigned, unsigned, const std::vector >&, const std::vector >&, const SmartPtr&, const SmartPtr&, const SmartPtr&, const SmartPtr&, const SmartPtr&, const SmartPtr&, const SmartPtr&, const SmartPtr&, const SmartPtr&, const SmartPtr&); AreaRef formatLines(const class FormattingContext&, const SmartPtr&, const SmartPtr&, const SmartPtr&) const; void formatCells(const class FormattingContext&, const scaled&, const SmartPtr&) const; BoundingBox format(std::vector&); private: class Cell { public: Cell(void) { } AreaRef getArea(void) const { return content->getArea(); } BoundingBox getBoundingBox(void) const { return getArea()->box(); } SmartPtr getContent(void) const { return content; } bool isNull(void) const { return content == 0; } operator bool(void) const { return !isNull(); } unsigned getColumnSpan(void) const { return content ? content->getColumnSpan() * 2 - 1 : 0; } unsigned getRowSpan(void) const { return content ? content->getRowSpan() * 2 - 1 : 0; } TokenId getRowAlign(void) const { return content->getRowAlign(); } TokenId getColumnAlign(void) const { return content->getColumnAlign(); } void getDisplacement(scaled& x, scaled& y) const { content->getDisplacement(x, y); } void setContent(const SmartPtr& c) { content = c; } void setDisplacement(const scaled& x, const scaled& y) const { content->setDisplacement(x, y); } private: SmartPtr content; }; class Row { public: enum RowHeightSpec { AUTO, FIX, SCALE }; Row(void) : contentRow(false), spec(AUTO), fixHeight(), scaleHeight(0.0f), tempHeight(), tempDepth(), height(), depth(), displacement() { } RowHeightSpec getSpec(void) const { return spec; } bool isContentRow(void) const { return contentRow; } float getScaleHeight(void) const { return scaleHeight; } scaled getDepth(void) const { return depth; } scaled getFixHeight(void) const { return fixHeight; } scaled getHeight(void) const { return height; } scaled getTempDepth(void) const { return tempDepth; } scaled getTempHeight(void) const { return tempHeight; } scaled getVerticalExtent(void) const { return getHeight() + getDepth(); } void setContentRow(bool b = true) { contentRow = b; } void setDepth(const scaled& d) { depth = d; } void setHeight(const scaled& h) { height = h; } void setHeightSpec(RowHeightSpec s) { spec = s; } void setHeightSpec(const scaled& w) { spec = FIX; fixHeight = w; } void setHeightSpec(float s) { spec = SCALE; scaleHeight = s; } void setHeightSpec(const class FormattingContext&, const class Length&); void setTempDepth(const scaled& d) { tempDepth = d; } void setTempHeight(const scaled& h) { tempHeight = h; } void setDisplacement(const scaled& d) { displacement = d; } scaled getDisplacement(void) const { return displacement; } scaled getTopDisplacement(void) const { return getDisplacement() + height; } scaled getBottomDisplacement(void) const { return getDisplacement() - depth; } scaled getCenterDisplacement(void) const { return getDisplacement() + (height - depth) / 2; } private: bool contentRow; RowHeightSpec spec; scaled fixHeight; float scaleHeight; scaled tempHeight; scaled tempDepth; scaled height; scaled depth; scaled displacement; }; class Column { public: enum ColumnWidthSpec { AUTO, FIT, FIX, SCALE }; Column(void) : contentColumn(false), spec(AUTO), fixWidth(), scaleWidth(0.0f), tempWidth(), width(), contentWidth(), displacement() { } ColumnWidthSpec getSpec(void) const { return spec; } bool isContentColumn(void) const { return contentColumn; } float getScaleWidth(void) const { return scaleWidth; } scaled getContentWidth(void) const { return contentWidth; } scaled getFixWidth(void) const { return fixWidth; } scaled getTempWidth(void) const { return tempWidth; } scaled getWidth(void) const { return width; } void setContentColumn(bool b = true) { contentColumn = b; } void setContentWidth(const scaled& w) { contentWidth = w; } void setTempWidth(const scaled& w) { tempWidth = w; } void setWidth(const scaled& w) { width = w; } void setWidthSpec(ColumnWidthSpec s) { spec = s; } void setWidthSpec(const scaled& w) { spec = FIX; fixWidth = w; } void setWidthSpec(float s) { spec = SCALE; scaleWidth = s; } void setWidthSpec(const class FormattingContext&, const class Length&); void setDisplacement(const scaled& d) { displacement = d; } scaled getDisplacement(void) const { return displacement; } scaled getLeftDisplacement(void) const { return getDisplacement(); } scaled getRightDisplacement(void) const { return getDisplacement() + getWidth(); } scaled getCenterDisplacement(void) const { return getDisplacement() + getWidth() / 2; } private: bool contentColumn; ColumnWidthSpec spec; scaled fixWidth; float scaleWidth; scaled tempWidth; scaled width; scaled contentWidth; scaled displacement; }; protected: const Cell& getCell(unsigned, unsigned) const; BoundingBox getBoundingBox(void) const { return BoundingBox(getWidth(), getHeight(), getDepth()); } BoundingBox getCellBoundingBox(unsigned, unsigned, unsigned, unsigned) const; scaled computeTableHeightDepthF(void); scaled computeTableHeightDepthT(void); scaled computeMinimumTableWidthF(void); scaled computeMinimumTableWidthT(void); scaled computeMinimumTableWidth(void); scaled computeTableWidth(const scaled&); BoundingBox assignTableWidth(const scaled&); void assignTableWidthT(const scaled&); void assignTableWidthF(const scaled&); scaled getColumnContentWidth(unsigned) const; scaled getWidth(void) const { return width; } scaled getHeight(void) const { return height; } scaled getDepth(void) const { return depth; } void alignTable(const scaled&, const scaled&, TokenId); void alignTable(const scaled&, const scaled&, TokenId, unsigned); void initTempHeightDepth(); void initTempWidths(void); void setDisplacements(void); void setCellPosition(void); void setWidth(const scaled& w) { width = w; } void setHeight(const scaled& h) { height = h; } void setDepth(const scaled& d) { depth = d; } scaled axis; unsigned nRows; unsigned nColumns; int numCol; // nContentColumns scaled sumFix; scaled sumCont; float sumScale; bool equalRows; bool equalColumns; TokenId tableAlign; int tableAlignRow; scaled width; scaled height; scaled depth; std::vector rows; std::vector columns; std::vector cells; }; #endif // __MathMLTableFormatter_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLTextElement.hh0000644000175000017500000000252110661271076020140 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLTextElement_hh__ #define __MathMLTextElement_hh__ #include "MathMLTokenElement.hh" class GMV_MathView_EXPORT MathMLTextElement : public MathMLTokenElement { protected: MathMLTextElement(const SmartPtr&); virtual ~MathMLTextElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLTextElement(view); } virtual bool IsSpaceLike(void) const; }; #endif // __MathMLTextElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLOperatorDictionary.hh0000644000175000017500000000356010661271076021527 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLOperatorDictionary_hh__ #define __MathMLOperatorDictionary_hh__ #include "SmartPtr.hh" #include "String.hh" #include "StringHash.hh" #include "HashMap.hh" #include "Object.hh" class GMV_MathView_EXPORT MathMLOperatorDictionary : public Object { protected: MathMLOperatorDictionary(void); virtual ~MathMLOperatorDictionary(); public: static SmartPtr create(void) { return new MathMLOperatorDictionary; } void add(const class AbstractLogger&, const String&, const String&, const SmartPtr&); void search(const String&, SmartPtr&, SmartPtr&, SmartPtr&) const; private: void unload(void); struct FormDefaults { SmartPtr prefix; SmartPtr infix; SmartPtr postfix; }; typedef HASH_MAP_NS::hash_map Dictionary; Dictionary items; }; #endif // __MathMLOperatorDictionary_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLMarkNode.cc0000644000175000017500000000211310661271076017365 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLMarkNode.hh" MathMLMarkNode::MathMLMarkNode(TokenId e) { edge = e; } MathMLMarkNode::~MathMLMarkNode() { } AreaRef MathMLMarkNode::format(FormattingContext&) { assert(false); return 0; } gtkmathview-0.8.0/src/engine/mathml/MathMLEncloseElement.hh0000644000175000017500000000265210661271076020611 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLEncloseElement_hh__ #define __MathMLEncloseElement_hh__ #include "RGBColor.hh" #include "MathMLNormalizingContainerElement.hh" class GMV_MathView_EXPORT MathMLEncloseElement : public MathMLNormalizingContainerElement { protected: MathMLEncloseElement(const SmartPtr&); virtual ~MathMLEncloseElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLEncloseElement(view); } virtual AreaRef format(class FormattingContext&); }; #endif // __MathMLEncloseElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLIdentifierElement.cc0000644000175000017500000000212110661271076021260 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "MathMLIdentifierElement.hh" MathMLIdentifierElement::MathMLIdentifierElement(const SmartPtr& context) : MathMLTokenElement(context) { } MathMLIdentifierElement::~MathMLIdentifierElement() { } gtkmathview-0.8.0/src/engine/mathml/MathMLTextElement.cc0000644000175000017500000000216710661271076020134 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "MathMLTextElement.hh" MathMLTextElement::MathMLTextElement(const SmartPtr& context) : MathMLTokenElement(context) { } MathMLTextElement::~MathMLTextElement() { } bool MathMLTextElement::IsSpaceLike(void) const { return true; } gtkmathview-0.8.0/src/engine/mathml/MathMLmathElement.hh0000644000175000017500000000257310661271076020154 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLmathElement_hh__ #define __MathMLmathElement_hh__ #include "MathMLNormalizingContainerElement.hh" class GMV_MathView_EXPORT MathMLmathElement : public MathMLNormalizingContainerElement { protected: MathMLmathElement(const SmartPtr&); virtual ~MathMLmathElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLmathElement(view); } virtual AreaRef format(class FormattingContext&); }; #endif // __MathMLmathElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLErrorElement.hh0000644000175000017500000000260310661271076020306 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLErrorElement_hh__ #define __MathMLErrorElement_hh__ #include "MathMLNormalizingContainerElement.hh" class GMV_MathView_EXPORT MathMLErrorElement : public MathMLNormalizingContainerElement { protected: MathMLErrorElement(const SmartPtr&); virtual ~MathMLErrorElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLErrorElement(view); } virtual AreaRef format(class FormattingContext&); }; #endif // __MathMLErrorElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLElement.cc0000644000175000017500000000342110661271076017261 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AttributeSet.hh" #include "MathMLElement.hh" #include "MathMLOperatorElement.hh" #include "MathMLNamespaceContext.hh" #include "ValueConversion.hh" #include "Variant.hh" MathMLElement::MathMLElement(const SmartPtr& context) : Element(context) { } MathMLElement::~MathMLElement() { } bool MathMLElement::IsSpaceLike() const { return false; } SmartPtr MathMLElement::getCoreOperator() { return 0; } SmartPtr MathMLElement::getCoreOperatorTop() { if (SmartPtr coreOp = getCoreOperator()) { SmartPtr parent = getParent(); if (!parent || parent->getCoreOperator() != coreOp) return coreOp; } return 0; } SmartPtr MathMLElement::getMathMLNamespaceContext() const { return smart_cast(getNamespaceContext()); } gtkmathview-0.8.0/src/engine/mathml/MathMLBinContainerElement.cc0000644000175000017500000000336310661271076021562 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLBinContainerElement.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" MathMLBinContainerElement::MathMLBinContainerElement(const SmartPtr& context) : MathMLContainerElement(context) { } MathMLBinContainerElement::~MathMLBinContainerElement() { } AreaRef MathMLBinContainerElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); AreaRef res = getChild() ? getChild()->format(ctxt) : 0; setArea(res ? ctxt.MGD()->wrapper(ctxt, res) : 0); ctxt.pop(); resetDirtyLayout(); } return getArea(); } void MathMLBinContainerElement::setFlagDown(Flags f) { MathMLContainerElement::setFlagDown(f); content.setFlagDown(f); } void MathMLBinContainerElement::resetFlagDown(Flags f) { MathMLContainerElement::resetFlagDown(f); content.resetFlagDown(f); } gtkmathview-0.8.0/src/engine/mathml/MathMLUnderOverElement.cc0000644000175000017500000001173710661271076021124 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLOperatorElement.hh" #include "MathMLUnderOverElement.hh" #include "MathMLNamespaceContext.hh" #include "ValueConversion.hh" #include "traverseAux.hh" #include "MathGraphicDevice.hh" #include "FormattingContext.hh" #include "MathMLAttributeSignatures.hh" MathMLUnderOverElement::MathMLUnderOverElement(const SmartPtr& context) : MathMLContainerElement(context) { } MathMLUnderOverElement::~MathMLUnderOverElement() { } AreaRef MathMLUnderOverElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { bool accent = false; bool accentUnder = false; const SmartPtr baseOp = getBase() ? getBase()->getCoreOperator() : 0; const SmartPtr underOp = getUnderScript() ? getUnderScript()->getCoreOperator() : 0; const SmartPtr overOp = getOverScript() ? getOverScript()->getCoreOperator() : 0; if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, UnderOver, accentunder)) accentUnder = ToBoolean(value); else if (underOp) accentUnder = underOp->IsAccent(); else accentUnder = false; if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, UnderOver, accent)) accent = ToBoolean(value); else if (overOp) accent = overOp->IsAccent(); else accent = false; ctxt.push(this); ctxt.setDisplayStyle(false); if (!accentUnder) ctxt.addScriptLevel(1); AreaRef underArea = getUnderScript() ? getUnderScript()->format(ctxt) : 0; ctxt.pop(); ctxt.push(this); ctxt.setDisplayStyle(false); if (!accent) ctxt.addScriptLevel(1); AreaRef overArea = getOverScript() ? getOverScript()->format(ctxt) : 0; ctxt.pop(); ctxt.push(this); AreaRef baseArea = getBase() ? getBase()->format(ctxt) : 0; ctxt.pop(); AreaRef res; if (baseOp && baseOp->HasMovableLimits() && !ctxt.getDisplayStyle()) { res = ctxt.MGD()->script(ctxt, baseArea, underArea, Length(), overArea, Length()); } else { const scaled baseW = baseArea->box().width; const scaled underW = underArea ? underArea->box().width : scaled::zero(); const scaled overW = overArea ? overArea->box().width : scaled::zero(); const scaled w = std::max(baseW, std::max(underW, overW)); if (baseOp && baseOp->IsStretchy()) { ctxt.push(this); ctxt.setStretchToWidth(w); ctxt.setStretchOperator(baseOp); getBase()->setDirtyLayout(); baseArea = getBase()->format(ctxt); ctxt.pop(); } if (underOp && underOp->IsStretchy()) { ctxt.push(this); ctxt.setDisplayStyle(false); if (!accentUnder) ctxt.addScriptLevel(1); ctxt.setStretchToWidth(w); ctxt.setStretchOperator(underOp); getUnderScript()->setDirtyLayout(); underArea = getUnderScript()->format(ctxt); ctxt.pop(); } if (overOp && overOp->IsStretchy()) { ctxt.push(this); ctxt.setDisplayStyle(false); if (!accent) ctxt.addScriptLevel(1); ctxt.setStretchToWidth(w); ctxt.setStretchOperator(overOp); getOverScript()->setDirtyLayout(); overArea = getOverScript()->format(ctxt); ctxt.pop(); } ctxt.push(this); res = ctxt.MGD()->underOver(ctxt, baseArea, underArea, accentUnder, overArea, accent); ctxt.pop(); } ctxt.push(this); res = formatEmbellishment(this, ctxt, res); setArea(ctxt.MGD()->wrapper(ctxt, res)); ctxt.pop(); resetDirtyLayout(); } return getArea(); } SmartPtr MathMLUnderOverElement::getCoreOperator() { return getBase() ? getBase()->getCoreOperator() : 0; } void MathMLUnderOverElement::setDirtyAttribute() { setDirtyAttributeD(); } void MathMLUnderOverElement::setFlagDown(Flags f) { MathMLContainerElement::setFlagDown(f); base.setFlagDown(f); underScript.setFlagDown(f); overScript.setFlagDown(f); } void MathMLUnderOverElement::resetFlagDown(Flags f) { MathMLContainerElement::resetFlagDown(f); base.resetFlagDown(f); underScript.resetFlagDown(f); overScript.resetFlagDown(f); } gtkmathview-0.8.0/src/engine/mathml/MathMLSpaceElement.cc0000644000175000017500000000532610661271076020243 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "defs.h" #include "AreaFactory.hh" #include "MathMLSpaceElement.hh" #include "MathMLValueConversion.hh" #include "MathMLAttributeSignatures.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" MathMLSpaceElement::MathMLSpaceElement(const SmartPtr& context) : MathMLElement(context) { breakability = T_AUTO; } MathMLSpaceElement::~MathMLSpaceElement() { } AreaRef MathMLSpaceElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); scaled width; if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Space, width)) width = ctxt.MGD()->evaluate(ctxt, toLength(value, ctxt), scaled::zero()); else assert(false); scaled height; if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Space, height)) height = ctxt.MGD()->evaluate(ctxt, toLength(value, ctxt), scaled::zero()); scaled depth; if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Space, depth)) depth = ctxt.MGD()->evaluate(ctxt, toLength(value, ctxt), scaled::zero()); #if 0 // fixme this should detect the presence of attributes in a different way if (!IsSet(T_WIDTH) && !IsSet(T_HEIGHT) && !IsSet(T_DEPTH)) { lineBreak = true; autoLineBreak = IsSet(T_LINEBREAK); if (!autoLineBreak) breakability = ToTokenId(GET_ATTRIBUTE_VALUE(MathML, Space, linebreak)); } else #endif lineBreak = false; if (lineBreak) setArea(0); else { AreaRef res = ctxt.MGD()->getFactory()->box(ctxt.MGD()->getFactory()->horizontalSpace(scaled::zero()), BoundingBox(width, height, depth)); setArea(ctxt.MGD()->wrapper(ctxt, res)); } ctxt.pop(); resetDirtyLayout(); } return getArea(); } bool MathMLSpaceElement::IsSpace() const { return true; } bool MathMLSpaceElement::IsSpaceLike() const { return true; } gtkmathview-0.8.0/src/engine/mathml/MathMLBinContainerElement.hh0000644000175000017500000000326010661271076021570 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLBinContainerElement_hh__ #define __MathMLBinContainerElement_hh__ #include "MathMLContainerElement.hh" #include "BinContainerTemplate.hh" // base class for every non-empty MathML container element class GMV_MathView_EXPORT MathMLBinContainerElement : public MathMLContainerElement { protected: MathMLBinContainerElement(const SmartPtr& view); virtual ~MathMLBinContainerElement(); public: virtual AreaRef format(class FormattingContext&); SmartPtr getChild(void) const { return content.getChild(); } void setChild(const SmartPtr& child) { content.setChild(this, child); } virtual void setFlagDown(Flags); virtual void resetFlagDown(Flags); protected: BinContainerTemplate content; }; #endif // __MathMLContainerElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLRadicalElement.hh0000644000175000017500000000372010661271076020555 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLRadicalElement_hh__ #define __MathMLRadicalElement_hh__ #include "MathMLContainerElement.hh" #include "BinContainerTemplate.hh" class GMV_MathView_EXPORT MathMLRadicalElement : public MathMLContainerElement { protected: MathMLRadicalElement(const SmartPtr&); virtual ~MathMLRadicalElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLRadicalElement(view); } virtual AreaRef format(class FormattingContext&); virtual void setFlagDown(Flags); virtual void resetFlagDown(Flags); SmartPtr getBase(void) const { return base.getChild(); } SmartPtr getIndex(void) const { return index.getChild(); } void setBase(const SmartPtr& child) { base.setChild(this, child); } void setIndex(const SmartPtr& child) { index.setChild(this, child); } private: BinContainerTemplate base; BinContainerTemplate index; }; #endif // __MathMLRadicalElement_hh__ gtkmathview-0.8.0/src/engine/mathml/mathVariantAux.cc0000644000175000017500000000543210661271076017565 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "mathVariantAux.hh" static MathVariantAttributes vattr[] = { { T_NORMAL, "serif", T_NORMAL, T_NORMAL }, { T_BOLD, "serif", T_BOLD, T_NORMAL }, { T_ITALIC, "serif", T_NORMAL, T_ITALIC }, { T_BOLD_ITALIC, "serif", T_BOLD, T_ITALIC }, { T_DOUBLE_STRUCK, "double-struck", T_NORMAL, T_NORMAL }, { T_BOLD_FRAKTUR, "fraktur", T_BOLD, T_NORMAL }, { T_SCRIPT, "script", T_NORMAL, T_NORMAL }, { T_BOLD_SCRIPT, "script", T_BOLD, T_NORMAL }, { T_FRAKTUR, "fraktur", T_NORMAL, T_NORMAL }, { T_SANS_SERIF, "sans-serif", T_NORMAL, T_NORMAL }, { T_BOLD_SANS_SERIF, "sans-serif", T_BOLD, T_NORMAL }, { T_SANS_SERIF_ITALIC, "sans-serif", T_NORMAL, T_ITALIC }, { T_MONOSPACE, "monospace", T_NORMAL, T_NORMAL }, { T__NOTVALID, 0, T__NOTVALID, T__NOTVALID } }; const MathVariantAttributes& attributesOfVariant(TokenId id) { unsigned i; for (i = 0; vattr[i].kw != T__NOTVALID && vattr[i].kw != id; i++) ; assert(vattr[i].kw != T__NOTVALID); return vattr[i]; } static int attributesMatch(const char* family, TokenId weight, TokenId style, const MathVariantAttributes* attributes) { int v = 0; if (family && attributes->family) v = strcmp(family, attributes->family) ? v : v + 1; if (weight != T__NOTVALID) v = (weight == attributes->weight) ? v : v + 1; if (style != T__NOTVALID) v = (style == attributes->style) ? v : v + 1; return v; } TokenId variantOfAttributes(const char* family, TokenId weight, TokenId style) { int best = -1; int bestValue = 0; for (int i = 0; vattr[i].kw != T__NOTVALID; i++) { int v = attributesMatch(family, weight, style, vattr + i); if (v > bestValue) best = i; } return (best >= 0) ? vattr[best].kw : T__NOTVALID; } gtkmathview-0.8.0/src/engine/mathml/MathMLRowElement.hh0000644000175000017500000000310710661271076017764 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLRowElement_hh__ #define __MathMLRowElement_hh__ #include "MathMLEmbellishment.hh" #include "MathMLLinearContainerElement.hh" #include "token.hh" class GMV_MathView_EXPORT MathMLRowElement : public MathMLLinearContainerElement, public MathMLEmbellishment { protected: MathMLRowElement(const SmartPtr&); virtual ~MathMLRowElement(); public: static SmartPtr create(const SmartPtr& view); virtual AreaRef format(class FormattingContext&); virtual bool IsSpaceLike(void) const; TokenId GetOperatorForm(const SmartPtr&) const; virtual SmartPtr getCoreOperator(void); }; #endif // __MathMLRowElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLLinearContainerElement.cc0000644000175000017500000000256010661271076022262 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "MathMLLinearContainerElement.hh" MathMLLinearContainerElement::MathMLLinearContainerElement(const SmartPtr& context) : MathMLContainerElement(context) { } MathMLLinearContainerElement::~MathMLLinearContainerElement() { } void MathMLLinearContainerElement::setFlagDown(Flags f) { MathMLContainerElement::setFlagDown(f); content.setFlagDown(f); } void MathMLLinearContainerElement::resetFlagDown(Flags f) { MathMLContainerElement::resetFlagDown(f); content.resetFlagDown(f); } gtkmathview-0.8.0/src/engine/mathml/MathMLContainerElement.cc0000644000175000017500000000204510661271076021125 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLContainerElement.hh" MathMLContainerElement::MathMLContainerElement(const SmartPtr& context) : MathMLElement(context) { } gtkmathview-0.8.0/src/engine/mathml/MathMLElement.hh0000644000175000017500000000267410661271076017304 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLElement_hh__ #define __MathMLElement_hh__ #include "Area.hh" #include "Element.hh" // MathMLElement: base class for every MathML Element class GMV_MathView_EXPORT MathMLElement : public Element { protected: MathMLElement(const SmartPtr&); virtual ~MathMLElement(); public: virtual bool IsSpaceLike(void) const; virtual SmartPtr getCoreOperator(void); SmartPtr getCoreOperatorTop(void); SmartPtr getMathMLNamespaceContext(void) const; }; #endif // __MathMLElement_hh__ gtkmathview-0.8.0/src/engine/mathml/traverseAux.cc0000644000175000017500000001556410661271076017151 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include "traverseAux.hh" #include "MathMLElement.hh" #include "MathMLRowElement.hh" #include "MathMLActionElement.hh" #include "MathMLOperatorElement.hh" // the following are needed for the dynamic casts #include "MathMLScriptElement.hh" #include "MathMLUnderOverElement.hh" #include "MathMLFractionElement.hh" #include "MathMLMultiScriptsElement.hh" #include "MathMLStyleElement.hh" #include "MathMLPhantomElement.hh" #include "MathMLPaddedElement.hh" SmartPtr findEmbellishedOperatorRoot(const SmartPtr& op) { SmartPtr root = op; while (root && root->getParent()) { SmartPtr newRoot = root->getParent(); if (newRoot->getCoreOperator() != op) return root; root = newRoot; } return root; } #if 0 SmartPtr findEmbellishedOperatorRoot(const SmartPtr& root) { assert(root); if (!root->getParent()) return root; SmartPtr rootParent = root->getParent(); assert(rootParent); if (is_a(rootParent)) { SmartPtr row = smart_cast(rootParent); assert(row); for (std::vector< SmartPtr >::const_iterator i = row->GetContent().begin(); i != row->GetContent().end(); i++) { SmartPtr elem = *i; assert(elem); if (!elem->IsSpaceLike() && root != elem) return root; } return findEmbellishedOperatorRoot(rootParent); } else if (is_a(rootParent) || is_a(rootParent) || is_a(rootParent) || is_a(rootParent) || is_a(rootParent)) { SmartPtr cont = smart_cast(rootParent); assert(cont); if (cont->GetSize() > 0 && cont->GetChild(0) != root) return root; else return findEmbellishedOperatorRoot(rootParent); } else if (is_a(rootParent) || is_a(rootParent) || is_a(rootParent)) return findEmbellishedOperatorRoot(rootParent); else return root; } #endif SmartPtr findStretchyOperator(const SmartPtr& elem) { if (elem) if (SmartPtr coreOp = elem->getCoreOperator()) if (coreOp->IsStretchy()) return coreOp; return 0; } #if 0 SmartPtr findCommonAncestor(const SmartPtr& first, const SmartPtr& last) { assert(first); assert(last); SmartPtr firstP(first); SmartPtr lastP(last); if (firstP != lastP) { unsigned firstDepth = first->getDepth(); unsigned lastDepth = last->getDepth(); while (firstP && firstDepth > lastDepth) { firstP = firstP->getParent(); firstDepth--; } while (lastP && lastDepth > firstDepth) { lastP = lastP->getParent(); lastDepth--; } assert(firstDepth == lastDepth); while (firstP && lastP && firstP != lastP) { firstP = firstP->getParent(); lastP = lastP->getParent(); } } return firstP; } SmartPtr findActionElement(const SmartPtr& elem) { SmartPtr elemP(elem); while (elemP && !is_a(elemP)) elemP = elemP->getParent(); return (elemP) ? smart_cast(elemP) : SmartPtr(0); } #endif #if defined(HAVE_GMETADOM) #if 0 DOM::Element findDOMNode(const SmartPtr& elem) { SmartPtr elemP(elem); while (elemP && !elemP->getDOMElement()) elemP = smart_cast(elemP->getParent()); if (elemP) return elemP->getDOMElement(); else return DOM::Element(0); } SmartPtr findMathMLElement(const SmartPtr& view, const DOM::Element& node) { if (SmartPtr elem = smart_cast(view->getLinker()->get(node))) { while (SmartPtr row = smart_cast(elem)) { if (row->getSize() != 1) break; elem = row->getChild(0); } return elem; } else return 0; } #endif #endif // HAVE_GMETADOM SmartPtr findRightmostChild(const SmartPtr& elem) { if (SmartPtr row = smart_cast(elem)) { if (row->getSize() == 0) return elem; else return findRightmostChild(row->getChild(row->getSize() - 1)); } else return elem; } SmartPtr findLeftmostChild(const SmartPtr& elem) { if (SmartPtr row = smart_cast(elem)) { if (row->getSize() == 0) return elem; else return findLeftmostChild(row->getChild(0)); } else return elem; } SmartPtr findRightSibling(const SmartPtr& elem) { if (!elem) return 0; else if (SmartPtr row = elem->getParent()) { std::vector< SmartPtr >::const_iterator p = std::find(row->getContent().begin(), row->getContent().end(), elem); assert(p != row->getContent().end()); if (p + 1 != row->getContent().end()) return findLeftmostChild(*(p + 1)); else return findRightSibling(row); } else return findRightSibling(elem->getParent()); } SmartPtr findLeftSibling(const SmartPtr& elem) { if (!elem) return 0; else if (SmartPtr row = elem->getParent()) { std::vector< SmartPtr >::const_iterator p = std::find(row->getContent().begin(), row->getContent().end(), elem); assert(p != row->getContent().end()); if (p != row->getContent().begin()) return findRightmostChild(*(p - 1)); else return findLeftSibling(row); } else return findLeftSibling(elem->getParent()); } gtkmathview-0.8.0/src/engine/mathml/MathMLAttributeParsers.hh0000644000175000017500000002371410661271076021214 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLAttributeParsers_hh__ #define __MathMLAttributeParsers_hh__ #include "CommonStringParsers.hh" typedef Set TokenSet_MathVariant; typedef Set TokenSet_NamedSpace; typedef Set TokenSet_HorizontalAlign; typedef ParseTokenSet ParseMathVariant; typedef ParseTokenSet ParseNamedSpace; typedef ParseChoice ParseLengthOrNamedSpace; typedef ParseTokenSet ParseHorizontalAlign; typedef ParseTokenSet< Set > ParseSign; typedef ParseZeroOrOne ParseOptionalSign; // Element typedef ParseString Parse_MathML_Element_class; typedef ParseString Parse_MathML_Element_other; typedef ParseString Parse_MathML_Element_id; // Token typedef ParseMathVariant Parse_MathML_Token_mathvariant; typedef ParseChoice > > Parse_MathML_Token_mathsize; typedef ParseColor Parse_MathML_Token_mathcolor; typedef ParseColor Parse_MathML_Token_mathbackground; // Operator typedef ParseTokenSet< Set > Parse_MathML_Operator_form; typedef ParseBoolean Parse_MathML_Operator_fence; typedef ParseBoolean Parse_MathML_Operator_separator; typedef ParseLengthOrNamedSpace Parse_MathML_Operator_lspace; typedef ParseLengthOrNamedSpace Parse_MathML_Operator_rspace; typedef ParseBoolean Parse_MathML_Operator_stretchy; typedef ParseBoolean Parse_MathML_Operator_symmetric; typedef ParseChoice > > Parse_MathML_Operator_maxsize; typedef ParseChoice Parse_MathML_Operator_minsize; typedef ParseBoolean Parse_MathML_Operator_largeop; typedef ParseBoolean Parse_MathML_Operator_movablelimits; typedef ParseBoolean Parse_MathML_Operator_accent; // Space typedef ParseLengthOrNamedSpace Parse_MathML_Space_width; typedef ParseLengthOrNamedSpace Parse_MathML_Space_height; typedef ParseLengthOrNamedSpace Parse_MathML_Space_depth; typedef ParseTokenSet< Set > Parse_MathML_Space_linebreak; // StringLit typedef ParseString Parse_MathML_StringLit_lquote; typedef ParseString Parse_MathML_StringLit_rquote; // Glyph typedef ParseString Parse_MathML_Glyph_alt; typedef ParseString Parse_MathML_Glyph_fontfamily; typedef ParseInteger Parse_MathML_Glyph_index; // Fraction typedef ParseChoice > > > Parse_MathML_Fraction_linethickness; typedef ParseHorizontalAlign Parse_MathML_Fraction_numalign; typedef ParseHorizontalAlign Parse_MathML_Fraction_denomalign; typedef ParseBoolean Parse_MathML_Fraction_bevelled; // Style typedef ParseSeq Parse_MathML_Style_scriptlevel; typedef ParseBoolean Parse_MathML_Style_displaystyle; typedef ParseNumber Parse_MathML_Style_scriptsizemultiplier; typedef ParseLength Parse_MathML_Style_scriptminsize; typedef ParseColor Parse_MathML_Style_mathcolor; typedef ParseChoice > Parse_MathML_Style_mathbackground; typedef Parse_MathML_Style_mathcolor Parse_MathML_Style_color; typedef Parse_MathML_Style_mathbackground Parse_MathML_Style_background; typedef ParseLength Parse_MathML_Style_negativeveryverythickmathspace; typedef ParseLength Parse_MathML_Style_negativeverythickmathspace; typedef ParseLength Parse_MathML_Style_negativethickmathspace; typedef ParseLength Parse_MathML_Style_negativemediummathspace; typedef ParseLength Parse_MathML_Style_negativethinmathspace; typedef ParseLength Parse_MathML_Style_negativeverythinmathspace; typedef ParseLength Parse_MathML_Style_negativeveryverythinmathspace; typedef ParseLength Parse_MathML_Style_veryverythickmathspace; typedef ParseLength Parse_MathML_Style_verythickmathspace; typedef ParseLength Parse_MathML_Style_thickmathspace; typedef ParseLength Parse_MathML_Style_mediummathspace; typedef ParseLength Parse_MathML_Style_thinmathspace; typedef ParseLength Parse_MathML_Style_verythinmathspace; typedef ParseLength Parse_MathML_Style_veryverythinmathspace; typedef Parse_MathML_Token_mathsize Parse_MathML_Style_mathsize; // Padded typedef ParseToken ParsePercentage; typedef ParseTokenSet< Set > ParsePseudoUnit; typedef ParseZeroOrOne ParseOptionalPseudoUnit; typedef ParseChoice, ParseChoice > ParseDimension; typedef ParseSeq > > Parse_MathML_Padded_width; typedef ParseSeq > Parse_MathML_Padded_lspace; typedef ParseSeq > Parse_MathML_Padded_height; typedef ParseSeq > Parse_MathML_Padded_depth; // Fenced typedef Parse ParseCharacter; typedef ParseString Parse_MathML_Fenced_open; typedef ParseString Parse_MathML_Fenced_close; //typedef ParseZeroOrOne > Parse_MathML_Fenced_separators; typedef ParseString Parse_MathML_Fenced_separators; // Enclose typedef ParseOneOrMore Parse_MathML_Enclose_notation; // Script typedef ParseLength Parse_MathML_Script_subscriptshift; typedef ParseLength Parse_MathML_Script_superscriptshift; // UnderOver typedef ParseBoolean Parse_MathML_UnderOver_accentunder; typedef ParseBoolean Parse_MathML_UnderOver_accent; // MultiScripts typedef ParseLength Parse_MathML_MultiScripts_subscriptshift; typedef ParseLength Parse_MathML_MultiScripts_superscriptshift; // Table typedef ParseTokenSet< Set > ParseGroupAlignment; typedef ParseOneOrMore ParseGroupAlignmentList; typedef ParseOneOrMore, ParseSeq< ParseGroupAlignmentList, ParseToken > > > ParseGroupAlignmentListList; typedef ParseTokenSet< Set > ParseVerticalAlign; typedef ParseChoice > > ParseColumnWidthSpec; typedef ParseTokenSet< Set > ParseLineSpec; typedef ParseSeq > Parse_MathML_Table_align; typedef ParseOneOrMore Parse_MathML_Table_rowalign; typedef ParseOneOrMore Parse_MathML_Table_columnalign; typedef ParseGroupAlignmentListList Parse_MathML_Table_groupalign; typedef ParseOneOrMore Parse_MathML_Table_alignmentscope; typedef ParseOneOrMore Parse_MathML_Table_columnwidth; typedef ParseChoice > Parse_MathML_Table_width; typedef ParseOneOrMore Parse_MathML_Table_rowspacing; typedef ParseOneOrMore Parse_MathML_Table_columnspacing; typedef ParseOneOrMore Parse_MathML_Table_rowlines; typedef ParseOneOrMore Parse_MathML_Table_columnlines; typedef ParseLineSpec Parse_MathML_Table_frame; typedef ParseSeq Parse_MathML_Table_framespacing; typedef ParseBoolean Parse_MathML_Table_equalrows; typedef ParseBoolean Parse_MathML_Table_equalcolumns; typedef ParseBoolean Parse_MathML_Table_displaystyle; typedef ParseTokenSet< Set > Parse_MathML_Table_side; typedef ParseLengthOrNamedSpace Parse_MathML_Table_minlabelspacing; // TableRow typedef ParseVerticalAlign Parse_MathML_TableRow_rowalign; typedef ParseOneOrMore Parse_MathML_TableRow_columnalign; typedef ParseGroupAlignmentListList Parse_MathML_TableRow_groupalign; // TableCell typedef ParseInteger Parse_MathML_TableCell_rowspan; typedef ParseInteger Parse_MathML_TableCell_columnspan; typedef ParseVerticalAlign Parse_MathML_TableCell_rowalign; typedef ParseHorizontalAlign Parse_MathML_TableCell_columnalign; typedef ParseGroupAlignmentList Parse_MathML_TableCell_groupalign; // AlignMark typedef ParseTokenSet< Set > Parse_MathML_AlignMark_edge; // AlignGroup typedef ParseGroupAlignment Parse_MathML_AlignGroup_groupalign; // Action typedef ParseString Parse_MathML_Action_actiontype; typedef ParseInteger Parse_MathML_Action_selection; // math typedef ParseTokenSet< Set > Parse_MathML_math_mode; typedef ParseTokenSet< Set > Parse_MathML_math_display; #endif // __MathMLAttributeParsers_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLContainerElement.hh0000644000175000017500000000227710661271076021146 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLContainerElement_hh__ #define __MathMLContainerElement_hh__ #include "MathMLElement.hh" // base class for every non-empty MathML container element class GMV_MathView_EXPORT MathMLContainerElement : public MathMLElement { protected: MathMLContainerElement(const SmartPtr&); }; #endif // __MathMLContainerElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLmathElement.cc0000644000175000017500000000332610661271076020137 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLmathElement.hh" #include "ValueConversion.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" #include "MathMLAttributeSignatures.hh" MathMLmathElement::MathMLmathElement(const SmartPtr& context) : MathMLNormalizingContainerElement(context) { } MathMLmathElement::~MathMLmathElement() { } AreaRef MathMLmathElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); ctxt.setMathMode(true); SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, math, display); assert(value); ctxt.setDisplayStyle(ToTokenId(value) == T_BLOCK); AreaRef res = getChild() ? getChild()->format(ctxt) : 0; if (res) res = ctxt.MGD()->wrapper(ctxt, res); setArea(res); ctxt.pop(); resetDirtyLayout(); } return getArea(); } gtkmathview-0.8.0/src/engine/mathml/MathMLNamespaceContext.cc0000644000175000017500000000243010661271076021130 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "defs.h" #include "View.hh" #include "MathMLNamespaceContext.hh" #include "MathGraphicDevice.hh" MathMLNamespaceContext::MathMLNamespaceContext(const SmartPtr& v, const SmartPtr& d) : NamespaceContext(MATHML_NS_URI, v), device(d) { } MathMLNamespaceContext::~MathMLNamespaceContext() { } SmartPtr MathMLNamespaceContext::getGraphicDevice() const { return device; } gtkmathview-0.8.0/src/engine/mathml/MathMLAlignGroupElement.cc0000644000175000017500000000351010661271076021250 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLMarkNode.hh" #include "MathMLTokenElement.hh" #include "MathMLAlignMarkElement.hh" #include "MathMLAlignGroupElement.hh" MathMLAlignGroupElement::MathMLAlignGroupElement(const SmartPtr& context) : MathMLElement(context) { } MathMLAlignGroupElement::~MathMLAlignGroupElement() { } void MathMLAlignGroupElement::SetDecimalPoint(const SmartPtr& token) { assert(token); assert(!decimalPoint); decimalPoint = token; } void MathMLAlignGroupElement::SetAlignmentMark(const SmartPtr& mark) { assert(mark); assert(!alignMarkNode); alignMarkNode = mark; } void MathMLAlignGroupElement::SetAlignmentMark(const SmartPtr& mark) { assert(mark); assert(!alignMarkElement); alignMarkElement = mark; } bool MathMLAlignGroupElement::IsSpaceLike() const { return true; } void MathMLAlignGroupElement::SetWidth(const scaled& w) { width = w; } gtkmathview-0.8.0/src/engine/mathml/MathMLMarkNode.hh0000644000175000017500000000254210661271076017405 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLMarkNode_hh__ #define __MathMLMarkNode_hh__ #include "token.hh" #include "MathMLTextNode.hh" class GMV_MathView_EXPORT MathMLMarkNode : public MathMLTextNode { protected: MathMLMarkNode(TokenId = T__NOTVALID); virtual ~MathMLMarkNode(); public: static SmartPtr create(TokenId t) { return new MathMLMarkNode(t); } virtual AreaRef format(class FormattingContext&); TokenId GetAlignmentEdge(void) const { return edge; } private: TokenId edge; }; #endif // __MathMLMarkNode_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLInferredRowElement.cc0000644000175000017500000000235210661271076021432 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "MathMLInferredRowElement.hh" MathMLInferredRowElement::MathMLInferredRowElement(const SmartPtr& ctxt) : MathMLRowElement(ctxt) { } MathMLInferredRowElement::~MathMLInferredRowElement() { } SmartPtr MathMLInferredRowElement::create(const SmartPtr& ctxt) { return new MathMLInferredRowElement(ctxt); } gtkmathview-0.8.0/src/engine/mathml/MathMLTableContentFactory.hh0000644000175000017500000000562010661271076021617 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLTableContentFactory_hh__ #define __MathMLTableContentFactory_hh__ #include #include "MathMLTableCellElement.hh" class GMV_MathView_EXPORT MathMLTableContentFactory { public: MathMLTableContentFactory(void) { } unsigned setChild(unsigned, unsigned, unsigned, unsigned, const SmartPtr&); SmartPtr getChild(unsigned, unsigned) const; void setLabelChild(unsigned, const SmartPtr&); SmartPtr getLabelChild(unsigned) const; void getSize(unsigned&, unsigned&) const; void getContent(std::vector >&, std::vector >&, unsigned&, unsigned&) const; bool hasLabels(void) const; protected: unsigned findCell(unsigned, unsigned, unsigned, unsigned) const; void initCell(unsigned, unsigned, unsigned, unsigned); private: struct Slot { Slot(const SmartPtr& el = 0, bool s = false) : child(el), spanned(s) { } void init(const SmartPtr& el = 0, bool s = false) { child = el; spanned = s; } bool free(void) const { return !child; } SmartPtr getChild(void) const { return !spanned ? child : 0; } private: SmartPtr child; bool spanned; }; struct Row { Row(void) { } unsigned findCell(unsigned, unsigned) const; void initCell(unsigned, unsigned); void setChild(unsigned, unsigned, const SmartPtr&); void setSpanningChild(unsigned, unsigned, const SmartPtr&); SmartPtr getChild(unsigned) const; void setLabelChild(const SmartPtr&); SmartPtr getLabelChild(void) const; unsigned getSize(void) const { return content.size(); } private: SmartPtr labelChild; std::vector content; }; std::vector rows; }; #endif // __MathMLTableContentFactory_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLPaddedElement.cc0000644000175000017500000001224110661271076020363 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "defs.h" #include "ValueConversion.hh" #include "MathMLValueConversion.hh" #include "MathMLPaddedElement.hh" #include "MathMLOperatorElement.hh" #include "Variant.hh" #include "MathMLAttributeSignatures.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" MathMLPaddedElement::MathMLPaddedElement(const SmartPtr& context) : MathMLNormalizingContainerElement(context) { } MathMLPaddedElement::~MathMLPaddedElement() { } AreaRef MathMLPaddedElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); if (AreaRef childArea = getChild() ? getChild()->format(ctxt) : 0) { const BoundingBox childBox = childArea->box(); const scaled lspace = evalLengthDimension(ctxt, GET_ATTRIBUTE_VALUE(MathML, Padded, lspace), T_LSPACE, scaled::zero(), childBox); const scaled width = evalLengthDimension(ctxt, GET_ATTRIBUTE_VALUE(MathML, Padded, width), T_WIDTH, childBox.width, childBox); const scaled height = evalLengthDimension(ctxt, GET_ATTRIBUTE_VALUE(MathML, Padded, height), T_HEIGHT, childBox.height, childBox); const scaled depth = evalLengthDimension(ctxt, GET_ATTRIBUTE_VALUE(MathML, Padded, depth), T_DEPTH, childBox.depth, childBox); AreaRef res; if (lspace != scaled::zero()) { std::vector h; h.reserve(2); h.push_back(ctxt.MGD()->getFactory()->horizontalSpace(lspace)); h.push_back(childArea); res = ctxt.MGD()->getFactory()->horizontalArray(h); } else res = childArea; res = ctxt.MGD()->getFactory()->box(res, BoundingBox(width, height, depth)); res = formatEmbellishment(this, ctxt, res); res = ctxt.MGD()->wrapper(ctxt, res); setArea(res); } else setArea(0); resetDirtyLayout(); } return getArea(); } void MathMLPaddedElement::parseLengthDimension(const FormattingContext& ctxt, const SmartPtr& value, LengthDimension& dim, TokenId pseudoUnitId) { dim.valid = false; if (!value) return; SmartPtr seq = ToSequence(value); assert(seq); assert(seq->getSize() == 3); if (SmartPtr v = seq->getValue(0)) if (IsTokenId(v)) switch (ToTokenId(v)) { case T__PLUS: dim.sign = +1; break; case T__MINUS: dim.sign = -1; break; default: assert(false); break; } else dim.sign = 0; else assert(false); if (SmartPtr v = seq->getValue(1)) dim.number = ToNumber(v); else assert(false); if (SmartPtr v = seq->getValue(2)) { if (SmartPtr vSeq = ToSequence(v)) { assert(vSeq->getSize() == 2); dim.percentage = true; v = vSeq->getValue(1); } else dim.percentage = false; if (IsEmpty(v)) { dim.pseudo = true; dim.pseudoUnitId = pseudoUnitId; } else { assert(IsTokenId(v)); TokenId id = ToTokenId(v); if (id == T_WIDTH || id == T_LSPACE || id == T_HEIGHT || id == T_DEPTH) { dim.pseudo = true; dim.pseudoUnitId = id; } else { dim.pseudo = false; Length::Unit unitId = toUnitId(v); if (unitId != Length::UNDEFINED_UNIT) dim.unit = ctxt.MGD()->evaluate(ctxt, Length(1.0, unitId), scaled::zero()); else dim.unit = ctxt.MGD()->evaluate(ctxt, toLength(v, ctxt), scaled::zero()); } } } dim.valid = true; } scaled MathMLPaddedElement::evalLengthDimension(const FormattingContext& ctxt, const SmartPtr& value, TokenId pseudoUnitId, const scaled& orig, const BoundingBox& b) { LengthDimension dim; parseLengthDimension(ctxt, value, dim, pseudoUnitId); if (!dim.valid) return orig; float f = dim.number; if (dim.percentage) f *= 0.01f; scaled res; if (dim.pseudo) { switch (dim.pseudoUnitId) { case T_WIDTH: res = b.width * f; break; case T_LSPACE: break; // LUCA: BoundingBox does not have a lspace length!!! case T_HEIGHT: res = b.height * f; break; case T_DEPTH: res = b.depth * f; break; default: assert(false); break; } } else { res = dim.unit * f; } if (dim.sign == -1) return orig - res; else if (dim.sign == +1) return orig + res; else return res; } SmartPtr MathMLPaddedElement::getCoreOperator() { return getChild() ? getChild()->getCoreOperator() : 0; } gtkmathview-0.8.0/src/engine/mathml/MathMLTableFormatter.cc0000644000175000017500000006303610661271076020613 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include "Adapters.hh" #include "MathMLTableFormatter.hh" #include "MathMLValueConversion.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" MathMLTableFormatter::MathMLTableFormatter() { } MathMLTableFormatter::~MathMLTableFormatter() { } #include "BoundingBoxAux.hh" #include "scaledAux.hh" void MathMLTableFormatter::Column::setWidthSpec(const FormattingContext& ctxt, const Length& spec) { if (spec.type == Length::PERCENTAGE_UNIT) setWidthSpec(spec.value / 100.0); else setWidthSpec(ctxt.MGD()->evaluate(ctxt, spec, scaled::zero())); } void MathMLTableFormatter::Row::setHeightSpec(const FormattingContext& ctxt, const Length& spec) { if (spec.type == Length::PERCENTAGE_UNIT) setHeightSpec(spec.value / 100.0); else setHeightSpec(ctxt.MGD()->evaluate(ctxt, spec, scaled::zero())); } void MathMLTableFormatter::init(const FormattingContext& ctxt, unsigned nR, unsigned nC, const std::vector >& cell, const std::vector >& label, const SmartPtr& columnWidthV, const SmartPtr& rowSpacingV, const SmartPtr& columnSpacingV, const SmartPtr& frameV, const SmartPtr& frameSpacingV, const SmartPtr& equalRowsV, const SmartPtr& equalColumnsV, const SmartPtr& sideV, const SmartPtr& minLabelSpacingV, const SmartPtr& alignV) { axis = ctxt.MGD()->axis(ctxt); nRows = nR; nColumns = nC; tableAlign = ToTokenId(GetComponent(alignV, 0)); if (IsEmpty(GetComponent(alignV, 1))) tableAlignRow = 0; else tableAlignRow = ToInteger(GetComponent(alignV, 1)); const TokenId frame = ToTokenId(frameV); const TokenId side = ToTokenId(sideV); const bool hasFrame = frame == T_SOLID || frame == T_DASHED; const bool hasLabels = std::find_if(label.begin(), label.end(), NotNullPredicate()) != label.end(); const unsigned nGridRows = (hasFrame ? 2 : 0) + ((nRows > 0) ? (nRows * 2 - 1) : 0); const unsigned nGridColumns = (hasFrame ? 2 : 0) + (hasLabels ? 4 : 0) + ((nColumns > 0) ? (nColumns * 2 - 1) : 0); const unsigned contentColumnOffset = (hasFrame ? 1 : 0) + (hasLabels ? 2 : 0); const unsigned contentRowOffset = (hasFrame ? 1 : 0); const unsigned leftLabelOffset = (hasFrame ? 1 : 0); const unsigned rightLabelOffset = (hasFrame ? 1 : 0) + nColumns * 2 + 2; const unsigned labelOffset = (side == T_LEFT || side == T_LEFTOVERLAP) ? leftLabelOffset : rightLabelOffset; equalRows = ToBoolean(equalRowsV); equalColumns = ToBoolean(equalColumnsV); assert(nGridRows >= 0); assert(nGridColumns >= 0); #if 0 std::cerr << "CI SIAMO: " << nRows << "x" << nColumns << std::endl << "grid: " << nGridRows << "x" << nGridColumns << std::endl << "frame? " << hasFrame << " labels? " << hasLabels << std::endl; #endif std::vector(nGridRows).swap(rows); std::vector(nGridColumns).swap(columns); std::vector(nGridRows * nGridColumns).swap(cells); //std::cerr << "HAS FRAME?" << hasFrame << std::endl; if (hasFrame) { const Length hFrameSpacing = resolveLength(ctxt, frameSpacingV, 0); const Length vFrameSpacing = resolveLength(ctxt, frameSpacingV, 1); rows.front().setHeightSpec(ctxt, vFrameSpacing); rows.back().setHeightSpec(ctxt, vFrameSpacing); columns.front().setWidthSpec(ctxt, hFrameSpacing); columns.back().setWidthSpec(ctxt, hFrameSpacing); } //std::cerr << "HAS LABELS?" << hasLabels << std::endl; if (hasLabels) { const Length minLabelSpacing = resolveLength(ctxt, minLabelSpacingV); columns[leftLabelOffset].setWidthSpec(Column::FIT); columns[rightLabelOffset].setWidthSpec(Column::FIT); if (side == T_LEFT || side == T_LEFTOVERLAP) { columns[leftLabelOffset + 1].setWidthSpec(ctxt, minLabelSpacing); columns[rightLabelOffset - 1].setWidthSpec(scaled::zero()); } else { columns[leftLabelOffset + 1].setWidthSpec(scaled::zero()); columns[rightLabelOffset - 1].setWidthSpec(ctxt, minLabelSpacing); } } //std::cerr << "SETUP COLUMNS" << std::endl; for (unsigned j = 0; j < nColumns; j++) { const unsigned jj = contentColumnOffset + j * 2; //std::cerr << "setup column " << jj << std::endl; if (equalColumns) columns[jj].setWidthSpec(Column::AUTO); else { const SmartPtr specV = GetComponent(columnWidthV, j); if (isTokenId(specV, T_AUTO)) columns[jj].setWidthSpec(Column::AUTO); else if (isTokenId(specV, T_FIT)) columns[jj].setWidthSpec(Column::FIT); else columns[jj].setWidthSpec(ctxt, resolveLength(ctxt, specV)); } columns[jj].setContentColumn(); if (j + 1 < nColumns) columns[jj + 1].setWidthSpec(ctxt, resolveLength(ctxt, columnSpacingV, j)); } //std::cerr << "SETUP ROWS" << std::endl; for (unsigned i = 0; i < nRows; i++) { const unsigned ii = contentRowOffset + i * 2; if (hasLabels) cells[ii * nGridColumns + labelOffset].setContent(label[i]); rows[ii].setHeightSpec(Row::AUTO); for (unsigned j = 0; j < nColumns; j++) { const unsigned jj = contentColumnOffset + j * 2; cells[ii * nGridColumns + jj].setContent(cell[i * nColumns + j]); } rows[ii].setContentRow(); if (i + 1 < nRows) rows[ii + 1].setHeightSpec(ctxt, resolveLength(ctxt, rowSpacingV, i)); } } void MathMLTableFormatter::formatCells(const FormattingContext& ctxt, const scaled& availableWidth, const SmartPtr& width) const { } AreaRef MathMLTableFormatter::formatLines(const FormattingContext& ctxt, const SmartPtr& frameV, const SmartPtr& rowLinesV, const SmartPtr& columnLinesV) const { const TokenId frame = ToTokenId(frameV); const unsigned nGridRows = rows.size(); const unsigned nGridColumns = columns.size(); const scaled defaultLineThickness = ctxt.MGD()->defaultLineThickness(ctxt); const RGBColor color = ctxt.getColor(); std::vector content; for (unsigned ii = 0; ii < nGridRows; ii++) if (rows[ii].isContentRow()) for (unsigned jj = 0; jj < nGridColumns; jj++) if (const Cell& cell = getCell(ii, jj)) { const SmartPtr el = cell.getContent(); assert(el); const unsigned i = el->getRowIndex(); const unsigned j = el->getColumnIndex(); //std::cerr << "LINES: FOUND ELEMENT at " << i << "," << j << std::endl; if (i + el->getRowSpan() < nRows && ToTokenId(GetComponent(rowLinesV, i + el->getRowSpan() - 1)) != T_NONE) { const scaled dx0 = (j == 0) ? ((frame != T_NONE) ? columns[jj - 1].getLeftDisplacement() : columns[jj].getLeftDisplacement()) : columns[jj - 1].getCenterDisplacement(); const scaled dx1 = (j + el->getColumnSpan() == nColumns) ? ((frame != T_NONE) ? columns[jj + cell.getColumnSpan()].getRightDisplacement() : columns[jj + cell.getColumnSpan() - 1].getRightDisplacement()) : columns[jj + cell.getColumnSpan()].getCenterDisplacement(); const scaled dy = rows[ii + cell.getRowSpan()].getCenterDisplacement(); BoxedLayoutArea::XYArea area(dx0, dy, ctxt.MGD()->getFactory()->fixedHorizontalLine(defaultLineThickness, dx1 - dx0, color)); //std::cerr << "draw x line " << dx0 << "," << dy << " to " << dx1 << std::endl; content.push_back(area); } if (j + el->getColumnSpan() < nColumns && ToTokenId(GetComponent(columnLinesV, j + el->getColumnSpan() - 1)) != T_NONE) { const scaled dy0 = (i == 0) ? ((frame != T_NONE) ? rows[ii - 1].getTopDisplacement() : rows[ii].getTopDisplacement()) : rows[ii - 1].getCenterDisplacement(); const scaled dy1 = (i + el->getRowSpan() == nRows) ? ((frame != T_NONE) ? rows[ii + cell.getRowSpan()].getBottomDisplacement() : rows[ii + cell.getRowSpan() - 1].getBottomDisplacement()) : rows[ii + cell.getRowSpan()].getCenterDisplacement(); const scaled dx = columns[jj + cell.getColumnSpan()].getCenterDisplacement(); BoxedLayoutArea::XYArea area(dx, dy0, ctxt.MGD()->getFactory()->fixedVerticalLine(defaultLineThickness, scaled::zero(), dy0 - dy1, color)); //std::cerr << "draw y line " << dx << "," << dy0 << " to " << dy1 << std::endl; content.push_back(area); } } if (frame != T_NONE) { //std::cerr << "HAS FRAME" << std::endl; const scaled left = columns.front().getLeftDisplacement(); const scaled right = columns.back().getRightDisplacement(); const scaled top = rows.front().getTopDisplacement(); const scaled bottom = rows.back().getBottomDisplacement(); const AreaRef hline = ctxt.MGD()->getFactory()->fixedHorizontalLine(defaultLineThickness, right - left + defaultLineThickness, color); const AreaRef vline = ctxt.MGD()->getFactory()->fixedVerticalLine(defaultLineThickness, scaled::zero(), top - bottom, color); content.push_back(BoxedLayoutArea::XYArea(scaled::zero(), top, hline)); content.push_back(BoxedLayoutArea::XYArea(scaled::zero(), bottom, hline)); content.push_back(BoxedLayoutArea::XYArea(scaled::zero(), top, vline)); content.push_back(BoxedLayoutArea::XYArea(right, top, vline)); } return content.empty() ? 0 : ctxt.MGD()->getFactory()->boxedLayout(getBoundingBox(), content); } scaled MathMLTableFormatter::computeTableWidth(const scaled& minimumTableWidth) { // TODO return minimumTableWidth; } BoundingBox MathMLTableFormatter::assignTableWidth(const scaled& minimumTableWidth) { const scaled tableWidth = computeTableWidth(minimumTableWidth); setWidth(tableWidth); if (equalColumns) assignTableWidthT(width); else assignTableWidthF(width); // TODO: assignment propagation initTempHeightDepth(); const scaled tableHeightDepth = equalRows ? computeTableHeightDepthT() : computeTableHeightDepthF(); if (tableAlignRow == 0) alignTable(tableHeightDepth, axis, tableAlign); else { const unsigned contentRowOffset = rows[0].isContentRow() ? 0 : 1; const unsigned gridRow = contentRowOffset + 2 * ((tableAlignRow < 0) ? (nRows + tableAlignRow) : (tableAlignRow - 1)); alignTable(tableHeightDepth, axis, tableAlign, gridRow); } setDisplacements(); setCellPosition(); return getBoundingBox(); } BoundingBox MathMLTableFormatter::format(std::vector& content) { initTempWidths(); const BoundingBox tableBox = assignTableWidth(computeMinimumTableWidth()); content.clear(); for (std::vector::const_iterator p = cells.begin(); p != cells.end(); p++) if (!p->isNull()) { scaled dx; scaled dy; p->getDisplacement(dx, dy); content.push_back(BoxedLayoutArea::XYArea(dx, dy, p->getArea())); } return tableBox; } scaled MathMLTableFormatter::getColumnContentWidth(unsigned j) const { scaled maxWidth = 0; for (unsigned i = 0; i < rows.size(); i++) { if (rows[i].isContentRow()) if (const Cell& cell = getCell(i, j)) if (cell.getColumnSpan() == 1) maxWidth = std::max(maxWidth, cell.getBoundingBox().width); } //std::cerr << "content width[" << j << "] = " << maxWidth << std::endl; return maxWidth; } void MathMLTableFormatter::initTempWidths() { for (unsigned j = 0; j < columns.size(); j++) { if (columns[j].isContentColumn() && columns[j].getSpec() != Column::FIX) { const scaled contentWidth = getColumnContentWidth(j); columns[j].setContentWidth(contentWidth); columns[j].setTempWidth(contentWidth); } else if (columns[j].getSpec() == Column::FIX) columns[j].setTempWidth(columns[j].getFixWidth()); else if (columns[j].getSpec() == Column::SCALE && !columns[j].isContentColumn()) columns[j].setTempWidth(0); } for (unsigned j = 0; j < columns.size(); j++) if (columns[j].isContentColumn()) for (unsigned i = 0; i < rows.size(); i++) if (rows[i].isContentRow()) if (const Cell& cell = getCell(i, j)) if (cell.getColumnSpan() > 1) { //std::cerr << "CELL " << i << "," << j << " " << cell.getColumnSpan() << " " << cell.getBoundingBox() << std::endl; const scaled cellWidth = cell.getBoundingBox().width; scaled spannedTempWidth = 0; int n = 0; for (unsigned z = j; z <= j + cell.getColumnSpan() - 1; z++) { spannedTempWidth += columns[z].getTempWidth(); if (columns[z].isContentColumn() && columns[j].getSpec() != Column::FIX) n++; } if (cellWidth > spannedTempWidth) for (unsigned z = j; z <= j + cell.getColumnSpan() - 1; z++) if (columns[z].isContentColumn() && columns[j].getSpec() != Column::FIX) columns[z].setTempWidth(columns[z].getTempWidth() + (cellWidth - spannedTempWidth) / n); } } scaled MathMLTableFormatter::computeMinimumTableWidthT() { numCol = 0; sumFix = 0; sumCont = 0; sumScale = 0; scaled max = 0; for (unsigned j = 0; j < columns.size(); j++) { if (columns[j].isContentColumn()) { numCol++; max = std::max(max, columns[j].getTempWidth()); } else if (columns[j].getSpec() == Column::FIX) sumFix += columns[j].getFixWidth(); else if (columns[j].getSpec() == Column::SCALE) sumScale += columns[j].getScaleWidth(); } return std::max(numCol * max + sumFix, ((numCol * max) + sumFix) / (1 - sumScale)); } scaled MathMLTableFormatter::computeMinimumTableWidth() { const scaled minimumTableWidth = equalColumns ? computeMinimumTableWidthT() : computeMinimumTableWidthF(); // TODO: gestire widthSpec return minimumTableWidth; } void MathMLTableFormatter::assignTableWidthT(const scaled& tableWidth) { const scaled assignedWidth = sumFix + tableWidth * sumScale; const scaled availWidth = std::max(scaled::zero(), tableWidth - assignedWidth); for (unsigned j = 0; j < columns.size(); j++) if (columns[j].isContentColumn()) columns[j].setWidth(availWidth / numCol); else if (columns[j].getSpec() == Column::FIX) columns[j].setWidth(columns[j].getFixWidth()); else if (columns[j].getSpec() == Column::SCALE) columns[j].setWidth(tableWidth * columns[j].getScaleWidth()); } scaled MathMLTableFormatter::computeMinimumTableWidthF() { numCol = 0; sumCont = 0; sumFix = 0; sumScale = 0; scaled max = 0; scaled tempWidth = 0; for (unsigned j = 0; j < columns.size(); j++) if (columns[j].isContentColumn() && columns[j].getSpec() == Column::SCALE) max = std::max(max, columns[j].getTempWidth() / columns[j].getScaleWidth()); for (unsigned j = 0; j < columns.size(); j++) if (columns[j].isContentColumn() && columns[j].getSpec() != Column::FIX && columns[j].getSpec() != Column::SCALE) { sumCont += columns[j].getTempWidth(); numCol++; } else if (columns[j].getSpec() == Column::FIX) sumFix += columns[j].getFixWidth(); else if (columns[j].getSpec() == Column::SCALE) sumScale += columns[j].getScaleWidth(); return std::max(max, std::max(sumCont + sumFix, (sumCont + sumFix) / (1 - sumScale))); } void MathMLTableFormatter::assignTableWidthF(const scaled& tableWidth) { const scaled assignedWidth = sumFix + tableWidth * sumScale; const scaled extraWidth = std::max(scaled::zero(), tableWidth - assignedWidth - sumCont); #if 0 std::cerr << "initWidthsF tableWidth = " << tableWidth << std::endl << "sumScale = " << sumScale << std::endl << "assignedWidth = " << assignedWidth << std::endl << "extraWidth = " << extraWidth << std::endl; #endif for (unsigned j = 0; j < columns.size(); j++) if ((columns[j].isContentColumn() && columns[j].getSpec() != Column::FIX && columns[j].getSpec() != Column::SCALE)) columns[j].setWidth(columns[j].getTempWidth() + (extraWidth / numCol)); else if (columns[j].getSpec() == Column::FIX) columns[j].setWidth(columns[j].getFixWidth()); else if (columns[j].getSpec() == Column::SCALE) columns[j].setWidth(tableWidth * columns[j].getScaleWidth()); } void MathMLTableFormatter::initTempHeightDepth() { for (unsigned i = 0; i < rows.size(); i++) { if (rows[i].getSpec() == Row::FIX) { rows[i].setTempHeight(rows[i].getFixHeight()); rows[i].setTempDepth(0); } else if (rows[i].getSpec() == Row::SCALE) { rows[i].setTempHeight(0); rows[i].setTempDepth(0); } else if (rows[i].isContentRow()) { scaled maxH = 0; scaled maxD = 0; for (unsigned j = 0; j < columns.size(); j++) if (const Cell& cell = getCell(i, j)) if (cell.getRowSpan() == 1) switch (cell.getRowAlign()) { case T_BASELINE: { const BoundingBox box = cell.getBoundingBox(); maxH = std::max(maxH, box.height); maxD = std::max(maxD, box.depth); } break; case T_AXIS: { const BoundingBox box = cell.getBoundingBox(); maxH = std::max(maxH, box.height - axis); maxD = std::max(maxD, box.depth + axis); } break; default: break; } rows[i].setTempHeight(maxH); rows[i].setTempDepth(maxD); } } for (unsigned i = 0; i < rows.size(); i++) if (rows[i].isContentRow()) for (unsigned j = 0; j < columns.size(); j++) if (columns[j].isContentColumn()) if (const Cell& cell = getCell(i, j)) if (cell.getRowSpan() == 1 && cell.getRowAlign() != T_BASELINE && cell.getRowAlign() != T_AXIS) { const BoundingBox box = cell.getBoundingBox(); if ((rows[i].getTempHeight() + rows[i].getTempDepth()) < box.verticalExtent()) rows[i].setTempDepth(box.verticalExtent() - rows[i].getTempHeight()); } for (unsigned i = 0; i < rows.size(); i++) if (rows[i].isContentRow()) for (unsigned j = 0; j < columns.size(); j++) if (columns[j].isContentColumn()) if (const Cell& cell = getCell(i, j)) if (cell.getRowSpan() > 1) { const scaled cellHeightDepth = cell.getBoundingBox().verticalExtent(); scaled spannedTempHeightDepth = 0; int n = 0; for (unsigned z = i; z <= i + cell.getRowSpan() - 1; z++) { spannedTempHeightDepth += rows[z].getTempHeight() + rows[z].getTempDepth(); if (rows[z].isContentRow()) n++; } #if 0 std::cerr << "CELL " << i << "," << j << " cellHeightDepth = " << cellHeightDepth << " spannedTempHeightDepth = " << spannedTempHeightDepth << std::endl; #endif if (cellHeightDepth > spannedTempHeightDepth) { for (unsigned z = i; z <= i + cell.getRowSpan() - 1; z++) if (rows[z].isContentRow()) rows[z].setTempDepth(rows[z].getTempDepth() + (cellHeightDepth - spannedTempHeightDepth) / n); } } } scaled MathMLTableFormatter::computeTableHeightDepthT() { int numRows = 0; float sumScale = 0.0f; scaled sumFixHD = 0; scaled sumContHD = 0; scaled max = 0; for (unsigned i = 0; i < rows.size(); i++) { if (rows[i].isContentRow()) { numRows++; max = std::max(max, rows[i].getTempHeight() + rows[i].getTempDepth()); sumContHD += rows[i].getTempHeight() + rows[i].getTempDepth(); } else if (rows[i].getSpec() == Row::FIX) sumFixHD += rows[i].getFixHeight(); else if (rows[i].getSpec() == Row::SCALE) sumScale += rows[i].getScaleHeight(); } const scaled tableHeightDepth = std::max(numRows * max + sumFixHD, ((numRows * max) + sumFixHD) / (1 - sumScale)); const scaled assignedHeightDepth = sumFixHD + tableHeightDepth * sumScale; const scaled availHeightDepth = std::max(scaled::zero(), tableHeightDepth - assignedHeightDepth); for (unsigned i = 0; i < rows.size(); i++) if (rows[i].isContentRow()) { rows[i].setHeight(rows[i].getTempHeight()); rows[i].setDepth(availHeightDepth / numRows - rows[i].getHeight()); //std::cerr << "for row" << i << " HD = " << rows[i].getHeight() + rows[i].getDepth() << std::endl; } else if (rows[i].getSpec() == Row::FIX) { rows[i].setHeight(rows[i].getFixHeight()); rows[i].setDepth(0); } else if (rows[i].getSpec() == Row::SCALE) { rows[i].setHeight(tableHeightDepth * rows[i].getScaleHeight()); rows[i].setDepth(0); } return tableHeightDepth; } scaled MathMLTableFormatter::computeTableHeightDepthF() { scaled sumContFix = 0; float sumScale = 0; for (unsigned i = 0; i < rows.size(); i++) if (rows[i].isContentRow() || rows[i].getSpec() == Row::FIX) { sumContFix += rows[i].getTempHeight() + rows[i].getTempDepth(); } else if (rows[i].getSpec() == Row::SCALE) sumScale += rows[i].getScaleHeight(); const scaled tableHeightDepth = std::max(sumContFix, sumContFix / (1 - sumScale)); for (unsigned i = 0; i < rows.size(); i++) if (rows[i].isContentRow()) { rows[i].setHeight(rows[i].getTempHeight()); rows[i].setDepth(rows[i].getTempDepth()); } else if (rows[i].getSpec() == Row::FIX) { rows[i].setHeight(rows[i].getFixHeight()); rows[i].setDepth(0); } else if (rows[i].getSpec() == Row::SCALE) { rows[i].setHeight(tableHeightDepth * rows[i].getScaleHeight()); rows[i].setDepth(0); } return tableHeightDepth; } void MathMLTableFormatter::alignTable(const scaled& tableHeightDepth, const scaled& axis, TokenId align) { switch (align) { case T_TOP: setHeight(0); break; case T_BOTTOM: setHeight(tableHeightDepth); break; case T_AXIS: setHeight((tableHeightDepth / 2) + axis); break; case T_CENTER: case T_BASELINE: setHeight(tableHeightDepth / 2); break; default: assert(false); } setDepth(tableHeightDepth - getHeight()); } void MathMLTableFormatter::alignTable(const scaled& tableHeightDepth, const scaled& axis, TokenId align, unsigned rowNum) { scaled temp = 0; for (unsigned i = 0; i < rowNum; i++) temp += rows[i].getVerticalExtent(); switch (align) { case T_TOP: break; case T_BOTTOM: temp += rows[rowNum].getVerticalExtent(); break; case T_AXIS: temp += rows[rowNum].getHeight() - axis; break; case T_CENTER: temp += rows[rowNum].getVerticalExtent() / 2; break; case T_BASELINE: temp += rows[rowNum].getHeight(); break; default: assert(false); } setHeight(temp); setDepth(tableHeightDepth - temp); } BoundingBox MathMLTableFormatter::getCellBoundingBox(unsigned i, unsigned j, unsigned rowSpan, unsigned columnSpan) const { BoundingBox box(columns[j].getWidth(), rows[i].getHeight(), rows[i].getDepth()); for (unsigned k = i + 1; k < i + rowSpan; k++) box.depth += rows[k].getVerticalExtent(); for (unsigned k = j + 1; k < j + columnSpan; k++) box.width += columns[k].getWidth(); return box; } void MathMLTableFormatter::setDisplacements() { scaled v = getHeight(); for (unsigned i = 0; i < rows.size(); i++) { rows[i].setDisplacement(v - rows[i].getHeight()); v -= rows[i].getVerticalExtent(); //std::cerr << "ROW[" << i << "].displacement = " << rows[i].getDisplacement() << std::endl; } scaled h = scaled::zero(); for (unsigned j = 0; j < columns.size(); j++) { columns[j].setDisplacement(h); h += columns[j].getWidth(); //std::cerr << "COL[" << j << "].displacement = " << columns[j].getDisplacement() << std::endl; } } void MathMLTableFormatter::setCellPosition() { for (unsigned i = 0; i < rows.size(); i++) if (rows[i].isContentRow()) for (unsigned j = 0; j < columns.size(); j++) if (columns[j].isContentColumn()) { if (const Cell& cell = getCell(i, j)) { scaled dx = scaled::zero(); scaled dy = scaled::zero(); const BoundingBox box = cell.getBoundingBox(); const BoundingBox cellBox = getCellBoundingBox(i, j, cell.getRowSpan(), cell.getColumnSpan()); //std::cerr << "CELL BOX = " << cellBox << std::endl << " CONTENT BOX = " << box << std::endl; switch (cell.getColumnAlign()) { case T_LEFT: dx = scaled::zero(); break; case T_RIGHT: dx = cellBox.width - box.width; break; case T_CENTER: dx = (cellBox.width - box.width) / 2; break; default: assert(false); } switch (cell.getRowAlign()) { case T_BASELINE: dy = scaled::zero(); break; case T_TOP: dy = cellBox.height - box.height; break; case T_BOTTOM: dy = box.depth - cellBox.depth; break; case T_CENTER: dy = (cellBox.height - cellBox.depth - box.height + box.depth) / 2; break; case T_AXIS: dy = -axis; break; default: assert(false); } //std::cerr << "setting displacement for (" << i << "," << j << ") = " << dx << "," << dy << std::endl; cell.setDisplacement(columns[j].getDisplacement() + dx, rows[i].getDisplacement() + dy); } } } const MathMLTableFormatter::Cell& MathMLTableFormatter::getCell(unsigned i, unsigned j) const { assert(i < rows.size()); assert(j < columns.size()); return cells[i * columns.size() + j]; } gtkmathview-0.8.0/src/engine/mathml/MathMLAlignGroupElement.hh0000644000175000017500000000414410661271076021266 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLAlignGroupElement_hh__ #define __MathMLAlignGroupElement_hh__ #include "MathMLElement.hh" class GMV_MathView_EXPORT MathMLAlignGroupElement : public MathMLElement { protected: MathMLAlignGroupElement(const SmartPtr&); virtual ~MathMLAlignGroupElement(); public: static SmartPtr create(const SmartPtr& context) { return new MathMLAlignGroupElement(context); } void SetWidth(const scaled&); void SetDecimalPoint(const SmartPtr&); void SetAlignmentMark(const SmartPtr&); void SetAlignmentMark(const SmartPtr&); const SmartPtr& GetAlignmentMarkNode(void) const { return alignMarkNode; } const SmartPtr& GetAlignmentMarkElement(void) const { return alignMarkElement; } const SmartPtr& GetDecimalPoint(void) const { return decimalPoint; } virtual bool IsSpaceLike(void) const; private: scaled width; SmartPtr alignMarkNode; SmartPtr alignMarkElement; SmartPtr decimalPoint; }; #endif // __MathMLAlignGroupElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLTextNode.cc0000644000175000017500000000174410661271076017430 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLTextNode.hh" MathMLTextNode::MathMLTextNode() { } MathMLTextNode::~MathMLTextNode() { } gtkmathview-0.8.0/src/engine/mathml/MathMLOperatorElement.hh0000644000175000017500000000621010661271076021006 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLOperatorElement_hh__ #define __MathMLOperatorElement_hh__ #include "MathMLEmbellishment.hh" #include "MathMLTokenElement.hh" #include "token.hh" class GMV_MathView_EXPORT MathMLOperatorElement : public MathMLTokenElement, public MathMLEmbellishment { protected: MathMLOperatorElement(const SmartPtr&); virtual ~MathMLOperatorElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLOperatorElement(view); } virtual AreaRef format(class FormattingContext&); bool IsStretchy(void) const { return stretchy != 0; } bool IsAccent(void) const { return accent != 0; } bool ForcedFence(void) const { return forcedFence != 0; } bool IsFence(void) const { return fence != 0; } bool ForcedSeparator(void) const { return forcedSeparator != 0; } bool IsSeparator(void) const { return separator != 0; } bool ForcedSymmetric(void) const { return forcedSymmetric != 0; } bool IsSymmetric(void) const { return symmetric != 0; } bool HasInfiniteMaxSize(void) const { return infiniteMaxSize != 0; } bool HasMovableLimits(void) const { return movableLimits != 0; } void SetFence(void) { forcedFence = fence = 1; } void SetSeparator(void) { forcedSeparator = separator = 1; } void ResetSymmetric(void) { forcedSymmetric = 1; symmetric = 0; } scaled getLeftPadding(void) const { return lSpace; } scaled getRightPadding(void) const { return rSpace; } virtual SmartPtr getCoreOperator(void); private: TokenId inferOperatorForm(void); SmartPtr getOperatorAttributeValue(const class AttributeSignature&, const SmartPtr&) const; void parseLimitValue(const SmartPtr&, const class FormattingContext&, float&, scaled&); unsigned largeOp : 1; unsigned forcedFence : 1; unsigned fence : 1; unsigned forcedSeparator : 1; unsigned separator : 1; unsigned forcedSymmetric : 1; unsigned symmetric : 1; unsigned stretchy : 1; unsigned infiniteMaxSize : 1; // if != 0 => no max size contraint unsigned movableLimits : 1; unsigned accent : 1; scaled lSpace; scaled rSpace; }; #endif // __MathMLOperatorElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathML.hh0000644000175000017500000000416710661271076015771 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathML_hh__ #define __MathML_hh__ #include "MathMLActionElement.hh" #include "MathMLAlignGroupElement.hh" #include "MathMLAlignMarkElement.hh" #include "MathMLContainerElement.hh" #include "MathMLDummyElement.hh" #include "MathMLElement.hh" #include "MathMLEncloseElement.hh" #include "MathMLErrorElement.hh" #include "MathMLFractionElement.hh" #include "MathMLFunctionApplicationNode.hh" #include "MathMLGlyphNode.hh" #include "MathMLIdentifierElement.hh" #include "MathMLInferredRowElement.hh" #include "MathMLInvisibleTimesNode.hh" #include "MathMLMarkNode.hh" #include "MathMLMultiScriptsElement.hh" #include "MathMLNode.hh" #include "MathMLNormalizingContainerElement.hh" #include "MathMLNumberElement.hh" #include "MathMLOperatorElement.hh" #include "MathMLPaddedElement.hh" #include "MathMLPhantomElement.hh" #include "MathMLRadicalElement.hh" #include "MathMLRowElement.hh" #include "MathMLScriptElement.hh" #include "MathMLSpaceElement.hh" #include "MathMLStringLitElement.hh" #include "MathMLStringNode.hh" #include "MathMLStyleElement.hh" #include "MathMLTableCellElement.hh" #include "MathMLTableElement.hh" #include "MathMLTextElement.hh" #include "MathMLTextNode.hh" #include "MathMLTokenElement.hh" #include "MathMLUnderOverElement.hh" #include "MathMLmathElement.hh" #endif // __MathML_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLSpaceElement.hh0000644000175000017500000000322410661271076020250 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLSpaceElement_hh__ #define __MathMLSpaceElement_hh__ #include "token.hh" #include "MathMLElement.hh" class GMV_MathView_EXPORT MathMLSpaceElement : public MathMLElement { protected: MathMLSpaceElement(const SmartPtr&); virtual ~MathMLSpaceElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLSpaceElement(view); } virtual AreaRef format(class FormattingContext&); virtual bool IsSpace(void) const; virtual bool IsSpaceLike(void) const; TokenId GetBreakability(void) const { return breakability; } private: bool lineBreak; bool autoLineBreak; // valid if lineBreaking == true TokenId breakability; // valid if auto == false }; #endif // __MathMLSpaceElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLGlyphNode.hh0000644000175000017500000000271510661271076017600 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLGlyphNode_hh__ #define __MathMLGlyphNode_hh__ #include "MathMLTextNode.hh" class GMV_MathView_EXPORT MathMLGlyphNode : public MathMLTextNode { protected: MathMLGlyphNode(const String&, const String&, const String&); virtual ~MathMLGlyphNode(); public: static SmartPtr create(const String& family, const String& index, const String& alt) { return new MathMLGlyphNode(family, index, alt); } virtual AreaRef format(class FormattingContext&); virtual unsigned GetLogicalContentLength(void) const; private: String family; String index; String alt; }; #endif // __MathMLGlyphNode_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLActionElement.hh0000644000175000017500000000304310661271076020431 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLActionElement_hh__ #define __MathMLActionElement_hh__ #include "MathMLEmbellishment.hh" #include "MathMLLinearContainerElement.hh" class GMV_MathView_EXPORT MathMLActionElement : public MathMLLinearContainerElement, public MathMLEmbellishment { protected: MathMLActionElement(const SmartPtr&); virtual ~MathMLActionElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLActionElement(view); } virtual AreaRef format(class FormattingContext&); virtual SmartPtr getCoreOperator(void); private: unsigned selection; }; #endif // __MathMLActionElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLStringLitElement.cc0000644000175000017500000000362610661271076021130 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLStringLitElement.hh" #include "MathMLStringNode.hh" #include "ValueConversion.hh" #include "MathMLAttributeSignatures.hh" MathMLStringLitElement::MathMLStringLitElement(const SmartPtr& context) : MathMLTokenElement(context) { setupDone = false; } MathMLStringLitElement::~MathMLStringLitElement() { } #if 0 void MathMLStringLitElement::Setup(RenderingEnvironment& env) { if (dirtyAttribute()) { if (setupDone) { assert(GetSize() >= 2); RemoveChild(GetSize() - 1); RemoveChild(0); } if (SmartPtr value = GET_ATTRIBUTE_VALUE(StringLit, lquote)) { String s = ToString(value); if (!s.empty()) InsertChild(0, MathMLStringNode::create(toDOMString(s))); } if (SmartPtr value = GET_ATTRIBUTE_VALUE(StringLit, rquote)) { String s = ToString(value); if (!s.empty()) InsertChild(GetSize(), MathMLStringNode::create(toDOMString(s))); } MathMLTokenElement::Setup(env); setupDone = true; resetDirtyAttribute(); } } #endif gtkmathview-0.8.0/src/engine/mathml/MathMLFractionElement.cc0000644000175000017500000000746110661271076020757 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AreaFactory.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" #include "MathMLDummyElement.hh" #include "MathMLFractionElement.hh" #include "MathMLOperatorElement.hh" #include "ValueConversion.hh" #include "MathMLAttributeSignatures.hh" MathMLFractionElement::MathMLFractionElement(const SmartPtr& context) : MathMLContainerElement(context) { } MathMLFractionElement::~MathMLFractionElement() { } AreaRef MathMLFractionElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { Length thickness; if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Fraction, linethickness)) { if (IsTokenId(value)) { switch (ToTokenId(value)) { case T_THIN: thickness.set(0.5, Length::PURE_UNIT); break; case T_MEDIUM: thickness.set(1, Length::PURE_UNIT); break; case T_THICK: thickness.set(2, Length::PURE_UNIT); break; default: assert(false); break; } } else if (IsNumber(value)) thickness.set(ToNumber(value), Length::PURE_UNIT); else thickness = ToLength(value); } else assert(false); TokenId numAlign = ToTokenId(GET_ATTRIBUTE_VALUE(MathML, Fraction, numalign)); TokenId denomAlign = ToTokenId(GET_ATTRIBUTE_VALUE(MathML, Fraction, denomalign)); bool bevelled = ToBoolean(GET_ATTRIBUTE_VALUE(MathML, Fraction, bevelled)); AreaRef res; ctxt.push(this); ctxt.push(this); if (ctxt.getDisplayStyle()) ctxt.setDisplayStyle(false); else ctxt.addScriptLevel(1); AreaRef num = getNumerator()->format(ctxt); AreaRef denom = getDenominator()->format(ctxt); ctxt.pop(); if (bevelled) res = ctxt.MGD()->bevelledFraction(ctxt, num, denom, thickness); else { switch (numAlign) { case T_LEFT: break; // nothing to do case T_CENTER: num = ctxt.MGD()->getFactory()->center(num); break; case T_RIGHT: num = ctxt.MGD()->getFactory()->right(num); break; default: assert(false); } switch (denomAlign) { case T_LEFT: break; // nothing to do case T_CENTER: denom = ctxt.MGD()->getFactory()->center(denom); break; case T_RIGHT: denom = ctxt.MGD()->getFactory()->right(denom); break; default: assert(false); } res = ctxt.MGD()->fraction(ctxt, num, denom, thickness); } res = formatEmbellishment(this, ctxt, res); setArea(ctxt.MGD()->wrapper(ctxt, res)); ctxt.pop(); resetDirtyLayout(); } return getArea(); } void MathMLFractionElement::setFlagDown(Flags f) { MathMLContainerElement::setFlagDown(f); numerator.setFlagDown(f); denominator.setFlagDown(f); } void MathMLFractionElement::resetFlagDown(Flags f) { MathMLContainerElement::resetFlagDown(f); numerator.resetFlagDown(f); denominator.resetFlagDown(f); } SmartPtr MathMLFractionElement::getCoreOperator() { return getNumerator() ? getNumerator()->getCoreOperator() : 0; } gtkmathview-0.8.0/src/engine/mathml/MathMLUnderOverElement.hh0000644000175000017500000000516510661271076021134 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLUnderOverElement_hh__ #define __MathMLUnderOverElement_hh__ #include "MathMLEmbellishment.hh" #include "MathMLContainerElement.hh" #include "BinContainerTemplate.hh" class GMV_MathView_EXPORT MathMLUnderOverElement : public MathMLContainerElement, public MathMLEmbellishment { protected: MathMLUnderOverElement(const SmartPtr&); virtual ~MathMLUnderOverElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLUnderOverElement(view); } void setBase(const SmartPtr& child) { base.setChild(this, child); } void setUnderScript(const SmartPtr& child) { underScript.setChild(this, child); } void setOverScript(const SmartPtr& child) { overScript.setChild(this, child); } SmartPtr getBase(void) const { return base.getChild(); } SmartPtr getUnderScript(void) const { return underScript.getChild(); } SmartPtr getOverScript(void) const { return overScript.getChild(); } virtual AreaRef format(class FormattingContext&); virtual void setDirtyAttribute(void); virtual void setFlagDown(Flags); virtual void resetFlagDown(Flags); virtual SmartPtr getCoreOperator(void); protected: bool scriptize; bool accentUnder; bool accent; scaled baseShiftX; scaled underSpacing; scaled underShiftX; scaled underShiftY; scaled overSpacing; scaled overShiftX; scaled overShiftY; BinContainerTemplate base; BinContainerTemplate underScript; BinContainerTemplate overScript; }; #endif // __MathMLUnderOverElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLRadicalElement.cc0000644000175000017500000000367410661271076020553 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLRadicalElement.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" MathMLRadicalElement::MathMLRadicalElement(const SmartPtr& context) : MathMLContainerElement(context) { } MathMLRadicalElement::~MathMLRadicalElement() { } AreaRef MathMLRadicalElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); AreaRef baseArea = getBase()->format(ctxt); AreaRef indexArea; if (getIndex()) { ctxt.setDisplayStyle(false); ctxt.addScriptLevel(2); indexArea = getIndex()->format(ctxt); } AreaRef res = ctxt.MGD()->radical(ctxt, baseArea, indexArea); setArea(ctxt.MGD()->wrapper(ctxt, res)); ctxt.pop(); resetDirtyLayout(); } return getArea(); } void MathMLRadicalElement::setFlagDown(Flags f) { MathMLContainerElement::setFlagDown(f); base.setFlagDown(f); index.setFlagDown(f); } void MathMLRadicalElement::resetFlagDown(Flags f) { MathMLContainerElement::resetFlagDown(f); base.resetFlagDown(f); index.resetFlagDown(f); } gtkmathview-0.8.0/src/engine/mathml/MathMLFunctionApplicationNode.cc0000644000175000017500000000432210661271076022450 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "MathMLOperatorElement.hh" #include "MathMLRowElement.hh" #include "MathMLFunctionApplicationNode.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" #include "traverseAux.hh" String MathMLFunctionApplicationNode::getSpace(const FormattingContext& ctxt) { static const String noSpace = StringOfUCS4String(UCS4String(1, 0x200b)); static const String someSpace = StringOfUCS4String(UCS4String(1, 0x205f)); if (SmartPtr op = smart_cast(ctxt.getMathMLElement())) { SmartPtr next = findRightSibling(op); if (!next) return noSpace; if (SmartPtr coreOp = next->getCoreOperatorTop()) if (coreOp->IsFence()) return noSpace; if (SmartPtr row = smart_cast(next)) if (SmartPtr coreOp = smart_cast(row->getChild(0))) if (coreOp->IsFence()) return noSpace; return someSpace; } return noSpace; } AreaRef MathMLFunctionApplicationNode::format(FormattingContext& ctxt) { return ctxt.MGD()->string(ctxt, getSpace(ctxt)); } String MathMLFunctionApplicationNode::getContent() { static const String content = StringOfUCS4String(UCS4String(1, 0x2061)); return content; } String MathMLFunctionApplicationNode::GetRawContent() const { return getContent(); } gtkmathview-0.8.0/src/engine/mathml/MathMLNamespaceContext.hh0000644000175000017500000000301710661271076021144 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLNamespaceContext_hh__ #define __MathMLNamespaceContext_hh__ #include "NamespaceContext.hh" class GMV_MathView_EXPORT MathMLNamespaceContext : public NamespaceContext { protected: MathMLNamespaceContext(const SmartPtr&, const SmartPtr&); virtual ~MathMLNamespaceContext(); public: static SmartPtr create(const SmartPtr& view, const SmartPtr& device) { return new MathMLNamespaceContext(view, device); } SmartPtr getGraphicDevice(void) const; private: SmartPtr device; }; #endif // __MathMLNamespaceContext_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLTableElement.hh0000644000175000017500000000513110661271076020243 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLTableElement_hh__ #define __MathMLTableElement_hh__ #include "MathMLContainerElement.hh" #include "LinearContainerTemplate.hh" #include "MathMLTableFormatter.hh" class GMV_MathView_EXPORT MathMLTableElement : public MathMLContainerElement { protected: MathMLTableElement(const SmartPtr&); virtual ~MathMLTableElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLTableElement(view); } virtual void setFlagDown(Flags); virtual void resetFlagDown(Flags); virtual void setDirtyAttribute(void); virtual void setDirtyAttributeD(void); virtual AreaRef format(class FormattingContext&); void setSize(unsigned, unsigned); void getSize(unsigned&, unsigned&) const; void setCell(unsigned i, unsigned j, const SmartPtr& child) { cell.setChild(this, i * numColumns + j, child); } SmartPtr getChild(unsigned i, unsigned j) const { return cell.getChild(i * numColumns + j); } void setLabel(unsigned i, const SmartPtr& child) { label.setChild(this, i, child); } SmartPtr getLabel(unsigned i) const { return label.getChild(i); } void updateContent(const class MathMLTableContentFactory&); protected: void invalidateFormatter(void); void swapContent(std::vector >&, std::vector >&); private: LinearContainerTemplate cell; LinearContainerTemplate label; unsigned numRows; unsigned numColumns; SmartPtr tableFormatter; }; #endif // __MathMLTableElement_hh__ gtkmathview-0.8.0/src/engine/mathml/mathVariantAux.hh0000644000175000017500000000232610661271076017576 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef mathVariantAux_hh #define mathVariantAux_hh #include "token.hh" struct MathVariantAttributes { TokenId kw; // math variant const char* family; // family TokenId weight; // weight TokenId style; // style }; const MathVariantAttributes& attributesOfVariant(TokenId); TokenId variantOfAttributes(const char*, TokenId, TokenId); #endif // mathVariantAux_hh gtkmathview-0.8.0/src/engine/mathml/MathMLOperatorDictionary.cc0000644000175000017500000000422010661271076021507 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "StringAux.hh" #include "Attribute.hh" #include "AbstractLogger.hh" #include "MathMLOperatorDictionary.hh" #include "AttributeSet.hh" MathMLOperatorDictionary::MathMLOperatorDictionary() { } MathMLOperatorDictionary::~MathMLOperatorDictionary() { unload(); } void MathMLOperatorDictionary::add(const AbstractLogger& logger, const String& opName, const String& form, const SmartPtr& defaults) { FormDefaults& formDefaults = items[opName]; if (form == "prefix") formDefaults.prefix = defaults; else if (form == "infix") formDefaults.infix = defaults; else if (form == "postfix") formDefaults.postfix = defaults; else logger.out(LOG_WARNING, "invalid `form' attribute for entry `%s' in operator dictionary (ignored)", escape(UCS4StringOfString(opName)).c_str()); } void MathMLOperatorDictionary::unload() { } void MathMLOperatorDictionary::search(const String& opName, SmartPtr& prefix, SmartPtr& infix, SmartPtr& postfix) const { prefix = infix = postfix = 0; Dictionary::const_iterator p = items.find(opName); if (p != items.end()) { prefix = (*p).second.prefix; infix = (*p).second.infix; postfix = (*p).second.postfix; } } gtkmathview-0.8.0/src/engine/mathml/MathMLValueConversion.hh0000644000175000017500000000254710661271076021034 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLValueConversion_hh__ #define __MathMLValueConversion_hh__ #include "ValueConversion.hh" // full path needed for Win32 #include "../../common/mathvariants/MathVariant.hh" bool isTokenId(const SmartPtr&, TokenId); MathVariant toMathVariant(TokenId); MathVariant toMathVariant(const SmartPtr&); Length toLength(const SmartPtr&, const class FormattingContext&); Length resolveLength(const class FormattingContext&, const SmartPtr&, int = -1, int = -1); #endif // __MathMLValueConversion_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLStringNode.hh0000644000175000017500000000262110661271076017757 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef MathMLStringNode_hh #define MathMLStringNode_hh #include "Area.hh" #include "MathMLTextNode.hh" class GMV_MathView_EXPORT MathMLStringNode: public MathMLTextNode { protected: MathMLStringNode(const String&); virtual ~MathMLStringNode(); public: static SmartPtr create(const String& s) { return new MathMLStringNode(s); } virtual AreaRef format(class FormattingContext&); virtual unsigned GetLogicalContentLength(void) const; virtual String GetRawContent(void) const; private: String content; }; #endif // MathMLStringNode_hh gtkmathview-0.8.0/src/engine/mathml/MathMLInvisibleTimesNode.cc0000644000175000017500000000530010661271076021422 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "MathMLOperatorElement.hh" #include "MathMLFractionElement.hh" #include "MathMLIdentifierElement.hh" #include "MathMLInvisibleTimesNode.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" #include "traverseAux.hh" String MathMLInvisibleTimesNode::getSpace(const FormattingContext& ctxt) { static const String noSpace = StringOfUCS4String(UCS4String(1, 0x200b)); static const String someSpace = StringOfUCS4String(UCS4String(1, 0x205f)); // THESE CONSTANTS SHOULD BE CHECKED ON SOME MANUAL if (SmartPtr op = smart_cast(ctxt.getMathMLElement())) { SmartPtr prev = findLeftSibling(op); SmartPtr next = findRightSibling(op); if (!prev || !next) return noSpace; if (is_a(prev) && is_a(next)) { SmartPtr prevToken = smart_cast(prev); SmartPtr nextToken = smart_cast(next); assert(prevToken && nextToken); if (prevToken->GetLogicalContentLength() <= 1 && nextToken->GetLogicalContentLength() <= 1) return noSpace; return someSpace; } else if (is_a(prev)) return someSpace; else if (is_a(prev) && is_a(next)) return someSpace; else if (is_a(prev) || is_a(next)) return someSpace; } return noSpace; } AreaRef MathMLInvisibleTimesNode::format(FormattingContext& ctxt) { return ctxt.MGD()->string(ctxt, getSpace(ctxt)); } String MathMLInvisibleTimesNode::getContent() { static const String content = StringOfUCS4String(UCS4String(1, 0x2062)); return content; } String MathMLInvisibleTimesNode::GetRawContent() const { return getContent(); } gtkmathview-0.8.0/src/engine/mathml/MathMLEmbellishment.hh0000644000175000017500000000232010661271076020467 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLEmbellishment_hh__ #define __MathMLEmbellishment_hh__ #include "Area.hh" class MathMLEmbellishment { protected: MathMLEmbellishment(void) { }; ~MathMLEmbellishment() { }; public: AreaRef formatEmbellishment(const SmartPtr&, const class FormattingContext&, const AreaRef&) const; }; #endif // __MathMLEmbellishment_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLStringLitElement.hh0000644000175000017500000000267610661271076021146 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef MathMLStringLitElement_hh #define MathMLStringLitElement_hh #include "MathMLTokenElement.hh" class GMV_MathView_EXPORT MathMLStringLitElement : public MathMLTokenElement { protected: MathMLStringLitElement(const SmartPtr&); virtual ~MathMLStringLitElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLStringLitElement(view); } protected: SmartPtr lQuote; SmartPtr rQuote; private: bool setupDone; }; #endif // MathMLStringLitElement_hh gtkmathview-0.8.0/src/engine/mathml/MathMLOperatorElement.cc0000644000175000017500000002402410661271076020777 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "defs.h" // for EPSILON #include "AreaFactory.hh" #include "AbstractLogger.hh" #include "NamespaceContext.hh" #include "View.hh" #include "MathMLOperatorElement.hh" #include "MathMLOperatorDictionary.hh" #include "MathMLRowElement.hh" #include "MathMLValueConversion.hh" #include "traverseAux.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" #include "AttributeSet.hh" #include "MathMLAttributeSignatures.hh" #define GET_OPERATOR_ATTRIBUTE_VALUE(ns,el,name,def) getOperatorAttributeValue(ATTRIBUTE_SIGNATURE(ns,el,name),def) MathMLOperatorElement::MathMLOperatorElement(const SmartPtr& context) : MathMLTokenElement(context) { fence = separator = stretchy = symmetric = infiniteMaxSize = accent = movableLimits = 0; forcedFence = forcedSeparator = forcedSymmetric = 0; } MathMLOperatorElement::~MathMLOperatorElement() { } // #include // #include "scaledAux.hh" // #include "BoundingBoxAux.hh" AreaRef MathMLOperatorElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); TokenId form = T__NOTVALID; if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Operator, form)) form = ToTokenId(value); else form = inferOperatorForm(); SmartPtr prefix; SmartPtr infix; SmartPtr postfix; String operatorName = GetRawContent(); if (SmartPtr dictionary = getNamespaceContext()->getView()->getOperatorDictionary()) dictionary->search(operatorName, prefix, infix, postfix); SmartPtr defaults; if (form == T_PREFIX && prefix) defaults = prefix; else if (form == T_INFIX && infix) defaults = infix; else if (form == T_POSTFIX && postfix) defaults = postfix; else if (infix) defaults = infix; else if (postfix) defaults = postfix; else if (prefix) defaults = prefix; else defaults = 0; if (SmartPtr value = GET_OPERATOR_ATTRIBUTE_VALUE(MathML, Operator, fence, defaults)) fence = ToBoolean(value) ? 1 : 0; if (SmartPtr value = GET_OPERATOR_ATTRIBUTE_VALUE(MathML, Operator, separator, defaults)) separator = ToBoolean(value) ? 1 : 0; if (SmartPtr value = GET_OPERATOR_ATTRIBUTE_VALUE(MathML, Operator, lspace, defaults)) { if (ctxt.getScriptLevel() <= 0) lSpace = ctxt.MGD()->evaluate(ctxt, resolveLength(ctxt, value), scaled::zero()); else lSpace = scaled::zero(); } else assert(false); if (SmartPtr value = GET_OPERATOR_ATTRIBUTE_VALUE(MathML, Operator, rspace, defaults)) { if (ctxt.getScriptLevel() <= 0) rSpace = ctxt.MGD()->evaluate(ctxt, resolveLength(ctxt, value), scaled::zero()); else rSpace = scaled::zero(); } else assert(false); if (SmartPtr value = GET_OPERATOR_ATTRIBUTE_VALUE(MathML, Operator, stretchy, defaults)) stretchy = ToBoolean(value) ? 1 : 0; if (SmartPtr value = GET_OPERATOR_ATTRIBUTE_VALUE(MathML, Operator, symmetric, defaults)) symmetric = ToBoolean(value) ? 1 : 0; float maxMultiplier = 0.0f; scaled maxSize; if (SmartPtr value = GET_OPERATOR_ATTRIBUTE_VALUE(MathML, Operator, maxsize, defaults)) if (ToTokenId(value) == T_INFINITY) maxSize = scaled::max(); else parseLimitValue(value, ctxt, maxMultiplier, maxSize); float minMultiplier = 0.0f; scaled minSize; if (SmartPtr value = GET_OPERATOR_ATTRIBUTE_VALUE(MathML, Operator, minsize, defaults)) parseLimitValue(value, ctxt, minMultiplier, minSize); else assert(false); if (SmartPtr value = GET_OPERATOR_ATTRIBUTE_VALUE(MathML, Operator, movablelimits, defaults)) movableLimits = ToBoolean(value) ? 1 : 0; else assert(false); if (SmartPtr value = GET_OPERATOR_ATTRIBUTE_VALUE(MathML, Operator, accent, defaults)) accent = ToBoolean(value) ? 1 : 0; else assert(false); if (SmartPtr value = GET_OPERATOR_ATTRIBUTE_VALUE(MathML, Operator, largeop, defaults)) largeOp = ToBoolean(value) ? 1 : 0; AreaRef res; if (stretchy && this == ctxt.getStretchOperator()) { // is it a good place to handle largeOp here??? //std::cerr << "FOUND STRETCHY OP" << std::endl; // before stretchying the operator need to be formatted at // least once AreaRef minArea = getArea(); assert(minArea); const BoundingBox minBox = minArea->box(); const scaled axis = ctxt.MGD()->axis(ctxt); const scaled height = ctxt.getStretchToHeight() - axis; const scaled depth = ctxt.getStretchToDepth() + axis; // std::cerr << "minimum area bounding box = " << minBox << " height = " << height + axis << " axis = " << axis << std::endl; // Here we have to calculate the desired size of the stretchable symbol. // If symmetric == true the we have to stretch to cover the maximum among // height and depth, otherwise we just stretch to ascent + descent scaled v = std::max(scaled::zero(), symmetric ? (2 * std::max(height, depth)) : (height + depth)); scaled h = std::max(scaled::zero(), ctxt.getStretchToWidth()); // std::cerr << "desired V = " << v << " H = " << h << std::endl; // ...however, there may be some contraints over the size of the stretchable // operator. const scaled minV = minBox.height + minBox.depth; const scaled minH = minBox.width; // std::cerr << "minV = " << minV << " minH = " << minH << std::endl; // std::cerr << "minSize = " << minSize << " maxMult = " << minMultiplier << std::endl; if (minMultiplier > 0) { v = std::max(v, minV * minMultiplier); h = std::max(h, minH * minMultiplier); } else { v = std::max(v, minSize); h = std::max(h, minSize); } // std::cerr << "after min constraint v = " << v << " h = " << h << std::endl; // std::cerr << "maxSize = " << maxSize << " maxMult = " << maxMultiplier << std::endl; if (maxMultiplier > 0) { v = std::min(v, minV * maxMultiplier); h = std::min(h, minH * maxMultiplier); } else { v = std::min(v, maxSize); h = std::min(h, maxSize); } // std::cerr << "after max constraint v = " << v << " h = " << h << std::endl; ctxt.setStretchV(v); ctxt.setStretchH(h); // std::cerr << "stretch by V = " << v << " H = " << h << std::endl; res = formatAux(ctxt); BoundingBox opBox = res->box(); if (height + depth > scaled::zero()) { const scaled aHeight = (symmetric ? v / 2 : (v * height.toFloat()) / (height + depth).toFloat()) + axis; const scaled aDepth = (symmetric ? v / 2 : (v * depth.toFloat()) / (height + depth).toFloat()) - axis; const scaled sh = (aHeight - aDepth - opBox.height + opBox.depth) / 2; res = ctxt.MGD()->getFactory()->shift(res, sh); } } else res = formatAux(ctxt); //std::cerr << "formatting operator, is top? " << (getCoreOperatorTop() != 0) << " has dirty something" << dirtyAttribute() << dirtyLayout() << std::endl; res = formatEmbellishment(this, ctxt, res); setArea(ctxt.MGD()->wrapper(ctxt, res)); ctxt.pop(); resetDirtyLayout(); } return getArea(); } void MathMLOperatorElement::parseLimitValue(const SmartPtr& value, const FormattingContext& ctxt, float& multiplier, scaled& size) { assert(value); if (IsTokenId(value)) { // it must be a named math space multiplier = -1; size = ctxt.MGD()->evaluate(ctxt, resolveLength(ctxt, value), scaled::zero()); } else if (IsNumber(value)) multiplier = std::max(EPSILON, ToNumber(value)); else { assert(IsLength(value)); Length siz = ToLength(value); if (siz.type == Length::PERCENTAGE_UNIT) { getLogger()->out(LOG_WARNING, "percentage value specified in maxsize attribute (mo) (ignored)"); multiplier = std::max(EPSILON, siz.value); } else { multiplier = -1; size = ctxt.MGD()->evaluate(ctxt, siz, scaled::zero()); } } } SmartPtr MathMLOperatorElement::getOperatorAttributeValue(const AttributeSignature& signature, const SmartPtr& defaults) const { // 1st attempt, the attribute may be set for the current operator if (SmartPtr value = getAttributeValueNoDefault(signature)) return value; if (defaults) { // no, it is not explicitly set, but this operator has an entry in // the operator dictionary, so let's see if the attribute has a // default value if (SmartPtr attr = defaults->get(ATTRIBUTE_ID_OF_SIGNATURE(signature))) if (SmartPtr value = attr->getValue()) return value; } // if the attribute hasn't still a value, then take its default // for the mo element if (SmartPtr value = signature.getDefaultValue()) return value; assert(false); return 0; } TokenId MathMLOperatorElement::inferOperatorForm() { SmartPtr eOp = findEmbellishedOperatorRoot(this); assert(eOp); if (SmartPtr row = eOp->getParent()) return row->GetOperatorForm(eOp); else return T_INFIX; } SmartPtr MathMLOperatorElement::getCoreOperator() { return this; } gtkmathview-0.8.0/src/engine/mathml/MathMLMultiScriptsElement.hh0000644000175000017500000000723210661271076021662 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLMultiScriptsElement_hh__ #define __MathMLMultiScriptsElement_hh__ #include "MathMLEmbellishment.hh" #include "MathMLContainerElement.hh" #include "BinContainerTemplate.hh" #include "LinearContainerTemplate.hh" class GMV_MathView_EXPORT MathMLMultiScriptsElement : public MathMLContainerElement, public MathMLEmbellishment { protected: MathMLMultiScriptsElement(const SmartPtr&); virtual ~MathMLMultiScriptsElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLMultiScriptsElement(view); } unsigned getScriptsSize(void) const { return subScript.getSize(); } void setScriptsSize(unsigned size) { subScript.setSize(this, size); } unsigned getPreScriptsSize(void) const { return preSubScript.getSize(); } void setPreScriptsSize(unsigned size) { preSubScript.setSize(this, size); } void setBase(const SmartPtr& child) { base.setChild(this, child); } void setSubScript(unsigned i, const SmartPtr& child) { subScript.setChild(this, i, child); } void setSuperScript(unsigned i, const SmartPtr& child) { superScript.setChild(this, i, child); } void setPreSubScript(unsigned i, const SmartPtr& child) { preSubScript.setChild(this, i, child); } void setPreSuperScript(unsigned i, const SmartPtr& child) { preSuperScript.setChild(this, i, child); } SmartPtr getBase(void) const { return base.getChild(); } SmartPtr getSubScript(unsigned i) const { return subScript.getChild(i); } SmartPtr getSuperScript(unsigned i) const { return superScript.getChild(i); } SmartPtr getPreSubScript(unsigned i) const { return preSubScript.getChild(i); } SmartPtr getPreSuperScript(unsigned i) const { return preSuperScript.getChild(i); } virtual AreaRef format(class FormattingContext&); virtual void setFlagDown(Flags); virtual void resetFlagDown(Flags); virtual SmartPtr getCoreOperator(void); private: static void formatScripts(class FormattingContext&, const std::vector >::const_iterator&, const std::vector >::const_iterator&, std::vector&); BinContainerTemplate base; LinearContainerTemplate subScript; LinearContainerTemplate superScript; LinearContainerTemplate preSubScript; LinearContainerTemplate preSuperScript; scaled subShiftX; scaled subShiftY; scaled superShiftX; scaled superShiftY; }; #endif // __MathMLMultiScriptsElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLValueConversion.cc0000644000175000017500000000704310661271076021016 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "MathMLValueConversion.hh" #include "FormattingContext.hh" bool isTokenId(const SmartPtr& value, TokenId id) { return IsTokenId(value) && ToTokenId(value) == id; } MathVariant toMathVariant(TokenId id) { switch (id) { case T_NORMAL: return NORMAL_VARIANT; case T_BOLD: return BOLD_VARIANT; case T_ITALIC: return ITALIC_VARIANT; case T_BOLD_ITALIC: return BOLD_ITALIC_VARIANT; case T_DOUBLE_STRUCK: return DOUBLE_STRUCK_VARIANT; case T_BOLD_FRAKTUR: return BOLD_FRAKTUR_VARIANT; case T_SCRIPT: return SCRIPT_VARIANT; case T_BOLD_SCRIPT: return BOLD_SCRIPT_VARIANT; case T_FRAKTUR: return FRAKTUR_VARIANT; case T_SANS_SERIF: return SANS_SERIF_VARIANT; case T_BOLD_SANS_SERIF: return BOLD_SANS_SERIF_VARIANT; case T_SANS_SERIF_ITALIC: return SANS_SERIF_ITALIC_VARIANT; case T_SANS_SERIF_BOLD_ITALIC: return SANS_SERIF_BOLD_ITALIC_VARIANT; case T_MONOSPACE: return MONOSPACE_VARIANT; default: assert(false); } } MathVariant toMathVariant(const SmartPtr& value) { return toMathVariant(ToTokenId(value)); } FormattingContext::PropertyId toMathSpaceId(TokenId id) { switch (id) { case T_NEGATIVEVERYVERYTHICKMATHSPACE: return FormattingContext::NEGATIVE_VERYVERYTHICK_SPACE; case T_NEGATIVEVERYTHICKMATHSPACE: return FormattingContext::NEGATIVE_VERYTHICK_SPACE; case T_NEGATIVETHICKMATHSPACE: return FormattingContext::NEGATIVE_THICK_SPACE; case T_NEGATIVEMEDIUMMATHSPACE: return FormattingContext::NEGATIVE_MEDIUM_SPACE; case T_NEGATIVETHINMATHSPACE: return FormattingContext::NEGATIVE_THIN_SPACE; case T_NEGATIVEVERYTHINMATHSPACE: return FormattingContext::NEGATIVE_VERYTHIN_SPACE; case T_NEGATIVEVERYVERYTHINMATHSPACE: return FormattingContext::NEGATIVE_VERYVERYTHIN_SPACE; case T_VERYVERYTHINMATHSPACE: return FormattingContext::VERYVERYTHIN_SPACE; case T_VERYTHINMATHSPACE: return FormattingContext::VERYTHIN_SPACE; case T_THINMATHSPACE: return FormattingContext::THIN_SPACE; case T_MEDIUMMATHSPACE: return FormattingContext::MEDIUM_SPACE; case T_THICKMATHSPACE: return FormattingContext::THICK_SPACE; case T_VERYTHICKMATHSPACE: return FormattingContext::VERYTHICK_SPACE; case T_VERYVERYTHICKMATHSPACE: return FormattingContext::VERYVERYTHICK_SPACE; default: assert(false); return FormattingContext::ZERO_SPACE; } } Length toLength(const SmartPtr& value, const FormattingContext& ctxt) { if (IsTokenId(value)) return ctxt.getMathSpace(toMathSpaceId(ToTokenId(value))); else return ToLength(value); } Length resolveLength(const FormattingContext& ctxt, const SmartPtr& value, int i, int j) { return toLength(GetComponent(value, i, j), ctxt); } gtkmathview-0.8.0/src/engine/mathml/MathMLEmbellishment.cc0000644000175000017500000000441210661271076020461 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AreaFactory.hh" #include "MathMLEmbellishment.hh" #include "MathMLOperatorElement.hh" #include "MathGraphicDevice.hh" #include "FormattingContext.hh" AreaRef MathMLEmbellishment::formatEmbellishment(const SmartPtr& elem, const FormattingContext& context, const AreaRef& area) const { assert(elem); if (SmartPtr top = elem->getCoreOperatorTop()) { // left/right paddings are calculated during formatting, so these // quantities should be requested only AFTER that the operator has // been formatted. Checking for top->dirtyLayout() is not // quite right, though, in the case the operator itself is the // top core operator (see MathMLOperatorElement), because the // dirtyLayout flag is reset only after the formatEmbellishment // method is called // assert(!top->dirtyLayout()); scaled leftPadding = top->getLeftPadding(); scaled rightPadding = top->getRightPadding(); if (leftPadding != scaled::zero() || rightPadding != scaled::zero()) { std::vector row; row.reserve(3); row.push_back(context.MGD()->getFactory()->horizontalSpace(leftPadding)); row.push_back(area); row.push_back(context.MGD()->getFactory()->horizontalSpace(rightPadding)); return context.MGD()->getFactory()->horizontalArray(row); } else return area; } else return area; } gtkmathview-0.8.0/src/engine/mathml/MathMLStringNode.cc0000644000175000017500000000325010661271076017744 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLElement.hh" #include "MathMLStringNode.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" inline bool isCombining(Char32 ch) { return (ch >= 0x0300 && ch <= 0x0362) || (ch >= 0x20d0 && ch <= 0x20e8); } MathMLStringNode::MathMLStringNode(const String& c) : content(c) { } MathMLStringNode::~MathMLStringNode() { } AreaRef MathMLStringNode::format(FormattingContext& ctxt) { return ctxt.MGD()->string(ctxt, content); } unsigned MathMLStringNode::GetLogicalContentLength() const { UCS4String s = UCS4StringOfString(content); unsigned length = 0; for (UCS4String::const_iterator i = s.begin(); i != s.end(); i++) { if (!isCombining(*i) || i == s.begin()) length++; } return length; } String MathMLStringNode::GetRawContent() const { return content; } gtkmathview-0.8.0/src/engine/mathml/MathMLTableElement.cc0000644000175000017500000001323510661271076020235 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "RGBColor.hh" #include "MathMLTableCellElement.hh" #include "MathMLTableElement.hh" #include "MathMLNamespaceContext.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" #include "MathMLAttributeSignatures.hh" #include "MathMLTableContentFactory.hh" #include "defs.h" MathMLTableElement::MathMLTableElement(const SmartPtr& context) : MathMLContainerElement(context) { } MathMLTableElement::~MathMLTableElement() { } void MathMLTableElement::setSize(unsigned nr, unsigned nc) { numRows = nr; numColumns = nc; label.setSize(this, numRows); cell.setSize(this, numRows * numColumns); } void MathMLTableElement::getSize(unsigned& nr, unsigned& nc) const { nr = numRows; nc = numColumns; } void MathMLTableElement::updateContent(const MathMLTableContentFactory& factory) { unsigned nRows; unsigned nColumns; factory.getSize(nRows, nColumns); std::vector > cellContent; std::vector > labelContent; cellContent.reserve(nRows * nColumns); labelContent.reserve(nRows); for (unsigned i = 0; i < nRows; i++) { labelContent.push_back(factory.getLabelChild(i)); for (unsigned j = 0; j < nColumns; j++) cellContent.push_back(factory.getChild(i, j)); } swapContent(cellContent, labelContent); } void MathMLTableElement::swapContent(std::vector >& cellContent, std::vector >& labelContent) { assert((cellContent.size() == 0 && labelContent.size() == 0) || (cellContent.size() % labelContent.size() == 0)); numRows = labelContent.size(); numColumns = (numRows > 0) ? (cellContent.size() / numRows) : 0; cell.swapContent(this, cellContent); label.swapContent(this, labelContent); } #include #include "MathMLAttributeParsers.hh" AreaRef MathMLTableElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); //std::cerr << "formatting table 1" << std::endl; if (!tableFormatter) { tableFormatter = MathMLTableFormatter::create(); tableFormatter->init(ctxt, numRows, numColumns, cell.getContent(), label.getContent(), GET_ATTRIBUTE_VALUE(MathML, Table, columnwidth), GET_ATTRIBUTE_VALUE(MathML, Table, rowspacing), GET_ATTRIBUTE_VALUE(MathML, Table, columnspacing), GET_ATTRIBUTE_VALUE(MathML, Table, frame), GET_ATTRIBUTE_VALUE(MathML, Table, framespacing), GET_ATTRIBUTE_VALUE(MathML, Table, equalrows), GET_ATTRIBUTE_VALUE(MathML, Table, equalcolumns), GET_ATTRIBUTE_VALUE(MathML, Table, side), GET_ATTRIBUTE_VALUE(MathML, Table, minlabelspacing), GET_ATTRIBUTE_VALUE(MathML, Table, align)); } //std::cerr << "formatting table 2" << std::endl; if (SmartPtr displayStyleV = GET_ATTRIBUTE_VALUE(MathML, Table, displaystyle)) ctxt.setDisplayStyle(ToBoolean(displayStyleV)); for_each_if(cell.begin(), cell.end(), NotNullPredicate(), std::bind2nd(FormatAdapter(), &ctxt)); for_each_if(label.begin(), label.end(), NotNullPredicate(), std::bind2nd(FormatAdapter(), &ctxt)); //std::cerr << "formatting table 2 bis" << std::endl; std::vector content; const BoundingBox tableBox = tableFormatter->format(content); AreaRef res = ctxt.MGD()->getFactory()->boxedLayout(tableBox, content); if (AreaRef lines = tableFormatter->formatLines(ctxt, GET_ATTRIBUTE_VALUE(MathML, Table, frame), GET_ATTRIBUTE_VALUE(MathML, Table, rowlines), GET_ATTRIBUTE_VALUE(MathML, Table, columnlines))) { std::vector content; content.reserve(2); content.push_back(res); content.push_back(lines); res = ctxt.MGD()->getFactory()->overlapArray(content); } //std::cerr << "formatting table 3" << std::endl; res = ctxt.MGD()->wrapper(ctxt, res); setArea(res); ctxt.pop(); resetDirtyLayout(); } return getArea(); } void MathMLTableElement::setFlagDown(Flags f) { MathMLContainerElement::setFlagDown(f); cell.setFlagDown(f); label.setFlagDown(f); } void MathMLTableElement::resetFlagDown(Flags f) { MathMLContainerElement::resetFlagDown(f); cell.resetFlagDown(f); label.resetFlagDown(f); } void MathMLTableElement::setDirtyAttribute() { MathMLContainerElement::setDirtyAttribute(); invalidateFormatter(); } void MathMLTableElement::setDirtyAttributeD() { MathMLContainerElement::setDirtyAttributeD(); invalidateFormatter(); } void MathMLTableElement::invalidateFormatter() { tableFormatter = 0; } gtkmathview-0.8.0/src/engine/mathml/MathMLScriptElement.cc0000644000175000017500000000565010661271076020454 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLOperatorElement.hh" #include "MathMLScriptElement.hh" #include "ValueConversion.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" #include "MathMLAttributeSignatures.hh" MathMLScriptElement::MathMLScriptElement(const SmartPtr& context) : MathMLContainerElement(context) { } MathMLScriptElement::~MathMLScriptElement() { } AreaRef MathMLScriptElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); assert(getBase()); AreaRef baseArea = getBase()->format(ctxt); ctxt.addScriptLevel(1); ctxt.setDisplayStyle(false); Length subScriptShift; AreaRef subScriptArea; if (getSubScript()) { subScriptArea = getSubScript()->format(ctxt); if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Script, subscriptshift)) { assert(IsLength(value)); subScriptShift = ToLength(value); } } Length superScriptShift; AreaRef superScriptArea; if (getSuperScript()) { superScriptArea = getSuperScript()->format(ctxt); if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Script, superscriptshift)) { assert(IsLength(value)); superScriptShift = ToLength(value); } } AreaRef res = ctxt.MGD()->script(ctxt, baseArea, subScriptArea, subScriptShift, superScriptArea, superScriptShift); res = formatEmbellishment(this, ctxt, res); setArea(ctxt.MGD()->wrapper(ctxt, res)); ctxt.pop(); resetDirtyLayout(); } return getArea(); } SmartPtr MathMLScriptElement::getCoreOperator() { return getBase() ? getBase()->getCoreOperator() : 0; } void MathMLScriptElement::setFlagDown(Flags f) { MathMLContainerElement::setFlagDown(f); base.setFlagDown(f); subScript.setFlagDown(f); superScript.setFlagDown(f); } void MathMLScriptElement::resetFlagDown(Flags f) { MathMLContainerElement::resetFlagDown(f); base.resetFlagDown(f); subScript.resetFlagDown(f); superScript.resetFlagDown(f); } gtkmathview-0.8.0/src/engine/mathml/MathMLTokenElement.cc0000644000175000017500000001323710661271076020270 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathML.hh" #include "AreaFactory.hh" #include "BoundingBoxAux.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" #include "MathMLGlyphNode.hh" #include "MathMLIdentifierElement.hh" #include "MathMLMarkNode.hh" #include "MathMLNumberElement.hh" #include "MathMLOperatorElement.hh" #include "MathMLStringNode.hh" #include "MathMLTextElement.hh" #include "MathMLTokenElement.hh" #include "MathMLValueConversion.hh" #include "mathVariantAux.hh" #include "traverseAux.hh" #include "MathMLAttributeSignatures.hh" MathMLTokenElement::MathMLTokenElement(const SmartPtr& context) : MathMLElement(context) { } MathMLTokenElement::~MathMLTokenElement() { } void MathMLTokenElement::append(const String& s) { content.appendChild(this, MathMLStringNode::create(s)); } AreaRef MathMLTokenElement::formatAux(FormattingContext& ctxt) { RGBColor oldColor = ctxt.getColor(); RGBColor oldBackground = ctxt.getBackground(); if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Token, mathsize)) { if (IsTokenId(value)) switch (ToTokenId(value)) { case T_SMALL: ctxt.addScriptLevel(1); break; case T_BIG: ctxt.addScriptLevel(-1); break; case T_NORMAL: break; // noop default: assert(false); break; } else ctxt.setSize(ctxt.MGD()->evaluate(ctxt, ToLength(value), ctxt.getSize())); } const unsigned logicalContentLength = GetLogicalContentLength(); if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Token, mathvariant)) ctxt.setVariant(toMathVariant(value)); else if (is_a(SmartPtr(this)) && logicalContentLength == 1) ctxt.setVariant(ITALIC_VARIANT); if (is_a(SmartPtr(this)) || (is_a(SmartPtr(this)) && logicalContentLength > 1)) ctxt.setMathMode(false); if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Token, mathcolor)) ctxt.setColor(ToRGB(value)); if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Token, mathbackground)) ctxt.setBackground(ToRGB(value)); RGBColor newColor = ctxt.getColor(); RGBColor newBackground = ctxt.getBackground(); std::vector c; c.reserve(getSize()); #if 0 std::transform(content.begin(), content.end(), std::back_inserter(c), std::bind2nd(FormatAdapter(), &ctxt)); #else for (std::vector< SmartPtr >::const_iterator p = content.begin(); p != content.end(); p++) c.push_back((*p)->format(ctxt)); #endif AreaRef res; if (c.size() == 0) res = ctxt.MGD()->dummy(ctxt); else if (c.size() == 1) res = c[0]; else res = ctxt.MGD()->getFactory()->horizontalArray(c); if (oldColor != newColor) res = ctxt.MGD()->getFactory()->color(res, newColor); if (!newBackground.transparent() && newBackground != oldBackground) res = ctxt.MGD()->getFactory()->background(res, newBackground); return res; } AreaRef MathMLTokenElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); setArea(ctxt.MGD()->wrapper(ctxt, formatAux(ctxt))); ctxt.pop(); resetDirtyLayout(); } return getArea(); } bool MathMLTokenElement::IsNonMarking() const { #if 0 for (std::vector< SmartPtr >::const_iterator text = content.begin(); text != content.end(); text++) { assert(*text); if (!is_a(*text)) return false; } return true; #endif return false; } #if 0 void MathMLTokenElement::AddItalicCorrection() { if (!is_a(SmartPtr(this)) && !is_a(SmartPtr(this)) && !is_a(SmartPtr(this))) return; if (getSize() == 0) return; SmartPtr lastNode = getChild(getSize() - 1); assert(lastNode); SmartPtr next = findRightSibling(this); if (!next) return; SmartPtr coreOp = next->getCoreOperatorTop(); if (!coreOp) return; bool isFence = coreOp->IsFence(); if (!isFence) return; } #endif String MathMLTokenElement::GetRawContent() const { String res; for (std::vector< SmartPtr >::const_iterator i = content.begin(); i != content.end(); i++) { assert(*i); res += (*i)->GetRawContent(); } return res; } unsigned MathMLTokenElement::GetLogicalContentLength() const { unsigned len = 0; for (std::vector< SmartPtr >::const_iterator i = content.begin(); i != content.end(); i++) { assert(*i); len += (*i)->GetLogicalContentLength(); } return len; } unsigned MathMLTokenElement::getContentLength() const { return UCS4StringOfString(GetRawContent()).length(); } gtkmathview-0.8.0/src/engine/mathml/MathMLMultiScriptsElement.cc0000644000175000017500000001503110661271076021644 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Adapters.hh" #include "MathMLMultiScriptsElement.hh" #include "MathMLOperatorElement.hh" #include "MathMLAttributeSignatures.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" #include "ValueConversion.hh" MathMLMultiScriptsElement::MathMLMultiScriptsElement(const SmartPtr& context) : MathMLContainerElement(context) { } MathMLMultiScriptsElement::~MathMLMultiScriptsElement() { } void MathMLMultiScriptsElement::formatScripts(FormattingContext& ctxt, const std::vector >::const_iterator& begin, const std::vector >::const_iterator& end, std::vector& area) { area.reserve(end - begin); #if 1 for (std::vector >::const_iterator p = begin; p != end; p++) if (*p) area.push_back((*p)->format(ctxt)); else area.push_back(0); #else // the following is nicer but doesn't work if there's a NULL child // Two solutions: // a) create a dedicated FormatAdapter that checks the argument // b) craete a transform_if (but what should it do if the argument doesn't satisfy the predicate?) std::transform(begin, end, std::back_inserter(area), std::bind2nd(FormatAdapter(), &ctxt)); #endif } AreaRef MathMLMultiScriptsElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); assert(getBase()); AreaRef baseArea = getBase()->format(ctxt); ctxt.addScriptLevel(1); ctxt.setDisplayStyle(false); Length subScriptShift; if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Script, subscriptshift)) { assert(IsLength(value)); subScriptShift = ToLength(value); } Length superScriptShift; if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Script, superscriptshift)) { assert(IsLength(value)); superScriptShift = ToLength(value); } std::vector subScriptArea; formatScripts(ctxt, subScript.begin(), subScript.end(), subScriptArea); std::vector superScriptArea; formatScripts(ctxt, superScript.begin(), superScript.end(), superScriptArea); std::vector preSubScriptArea; formatScripts(ctxt, preSubScript.begin(), preSubScript.end(), preSubScriptArea); std::vector preSuperScriptArea; formatScripts(ctxt, preSuperScript.begin(), preSuperScript.end(), preSuperScriptArea); AreaRef res = ctxt.MGD()->multiScripts(ctxt, baseArea, subScriptArea, preSubScriptArea, subScriptShift, superScriptArea, preSuperScriptArea, superScriptShift); res = formatEmbellishment(this, ctxt, res); setArea(ctxt.MGD()->wrapper(ctxt, res)); ctxt.pop(); resetDirtyLayout(); } return getArea(); } #if 0 void MathMLMultiScriptsElement::DoLayout(const class FormattingContext& ctxt) { if (dirtyLayout(ctxt)) { assert(base); base->DoLayout(ctxt); BoundingBox subScriptBox; BoundingBox superScriptBox; scaled scriptsWidth = 0; scaled preScriptsWidth = 0; std::vector< SmartPtr >::const_iterator pSub; std::vector< SmartPtr >::const_iterator pSup; for (pSub = subScript.begin(), pSup = superScript.begin(); pSub != subScript.end(); pSub++, pSup++) { assert(pSup != superScript.end()); BoundingBox subBox; BoundingBox supBox; if (*pSub) { (*pSub)->DoLayout(ctxt); subBox = (*pSub)->getBoundingBox(); } if (*pSup) { (*pSup)->DoLayout(ctxt); supBox = (*pSup)->GetBoundingBox(); } subScriptBox.append(subBox); superScriptBox.append(supBox); scriptsWidth = std::max(scriptsWidth, std::max(subBox.horizontalExtent(), supBox.horizontalExtent())); } for (pSub = preSubScript.begin(), pSup = preSuperScript.begin(); pSub != preSubScript.end(); pSub++, pSup++) { assert(pSup != preSuperScript.end()); BoundingBox subBox; BoundingBox supBox; if (*pSub) { (*pSub)->DoLayout(ctxt); subBox = (*pSub)->GetBoundingBox(); } if (*pSup) { (*pSup)->DoLayout(ctxt); supBox = (*pSup)->GetBoundingBox(); } subScriptBox.append(subBox); superScriptBox.append(supBox); preScriptsWidth = std::max(preScriptsWidth, std::max(subBox.horizontalExtent(), supBox.horizontalExtent())); } DoScriptLayout(base->GetBoundingBox(), subScriptBox, superScriptBox, subShiftX, subShiftY, superShiftX, superShiftY); box = base->GetBoundingBox(); box.width += preScriptsWidth + scriptsWidth; if (subScriptBox.defined()) { box.height = std::max(box.height, subScriptBox.height - subShiftY); box.depth = std::max(box.depth, subScriptBox.depth + subShiftY); } if (superScriptBox.defined()) { box.height = std::max(box.height, superScriptBox.height + superShiftY); box.depth = std::max(box.depth, superScriptBox.depth - superShiftY); } DoEmbellishmentLayout(this, box); resetDirtyLayout(ctxt); } } #endif SmartPtr MathMLMultiScriptsElement::getCoreOperator() { return getBase() ? getBase()->getCoreOperator() : 0; } void MathMLMultiScriptsElement::setFlagDown(Flags f) { MathMLContainerElement::setFlagDown(f); base.setFlagDown(f); subScript.setFlagDown(f); superScript.setFlagDown(f); preSubScript.setFlagDown(f); preSuperScript.setFlagDown(f); } void MathMLMultiScriptsElement::resetFlagDown(Flags f) { MathMLContainerElement::resetFlagDown(f); base.resetFlagDown(f); subScript.resetFlagDown(f); superScript.resetFlagDown(f); preSubScript.resetFlagDown(f); preSuperScript.resetFlagDown(f); } gtkmathview-0.8.0/src/engine/mathml/MathMLNode.cc0000644000175000017500000000175410661271076016564 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLNode.hh" #include "MathMLElement.hh" MathMLNode::MathMLNode() { } MathMLNode::~MathMLNode() { } gtkmathview-0.8.0/src/engine/mathml/MathMLRowElement.cc0000644000175000017500000001113110661271076017746 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include #include #include "AreaFactory.hh" #include "MathMLAdapters.hh" #include "traverseAux.hh" #include "MathMLRowElement.hh" #include "MathMLSpaceElement.hh" #include "MathMLOperatorElement.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" MathMLRowElement::MathMLRowElement(const SmartPtr& context) : MathMLLinearContainerElement(context) { } MathMLRowElement::~MathMLRowElement() { } SmartPtr MathMLRowElement::create(const SmartPtr& context) { #if defined(ENABLE_BREAKS) return new MathMLRowElement(context); #else return new MathMLRowElement(context); #endif } AreaRef MathMLRowElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); bool stretchy = false; std::vector< SmartPtr > erow; erow.reserve(getSize()); std::vector row; row.reserve(getSize()); for (std::vector< SmartPtr >::const_iterator elem = content.begin(); elem != content.end(); elem++) if (*elem) { SmartPtr coreOp = (*elem)->getCoreOperatorTop(); /* if we have an operator we must force reformatting cause we want to * get the minimum size operator */ if (coreOp) (*elem)->setDirtyLayout(); if (AreaRef elemArea = (*elem)->format(ctxt)) { row.push_back(elemArea); // WARNING: we can check for IsStretchy only *after* format because it is // at that time that the flags in the operator get set (see MathMLOperatorElement) if (coreOp && !coreOp->IsStretchy()) coreOp = 0; stretchy = stretchy || coreOp; erow.push_back(coreOp); } } AreaRef res; if (row.size() == 1) res = row[0]; else res = ctxt.MGD()->getFactory()->horizontalArray(row); BoundingBox rowBox = res->box(); if (stretchy) { ctxt.setStretchToHeight(rowBox.height); ctxt.setStretchToDepth(rowBox.depth); for (std::vector< SmartPtr >::const_iterator op = erow.begin(); op != erow.end(); op++) if (*op) { const int i = op - erow.begin(); ctxt.setStretchOperator(*op); (*op)->setDirtyLayout(); row[i] = getChild(i)->format(ctxt); } ctxt.setStretchOperator(0); if (row.size() == 1) res = row[0]; else res = ctxt.MGD()->getFactory()->horizontalArray(row); } res = formatEmbellishment(this, ctxt, res); setArea(ctxt.MGD()->wrapper(ctxt, res)); ctxt.pop(); resetDirtyLayout(); } return getArea(); } bool MathMLRowElement::IsSpaceLike() const { return std::find_if(content.begin(), content.end(), std::not1(IsSpaceLikePredicate())) == content.end(); } TokenId MathMLRowElement::GetOperatorForm(const SmartPtr& eOp) const { assert(eOp); TokenId res = T_INFIX; unsigned rowLength = 0; unsigned position = 0; for (std::vector< SmartPtr >::const_iterator elem = content.begin(); elem != content.end(); elem++) if (*elem && !(*elem)->IsSpaceLike()) { if (*elem == eOp) position = rowLength; rowLength++; } if (rowLength > 1) { if (position == 0) res = T_PREFIX; else if (position == rowLength - 1) res = T_POSTFIX; } return res; } SmartPtr MathMLRowElement::getCoreOperator() { SmartPtr candidate = 0; for (std::vector< SmartPtr >::const_iterator elem = content.begin(); elem != content.end(); elem++) if ((*elem) && !(*elem)->IsSpaceLike()) if (!candidate) candidate = *elem; else return 0; return candidate ? candidate->getCoreOperator() : 0; } gtkmathview-0.8.0/src/engine/mathml/MathMLAdapters.hh0000644000175000017500000000223610661271076017450 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLAdapters_hh__ #define __MathMLAdapters_hh__ #include #include "MathMLElement.hh" struct IsSpaceLikePredicate : public std::unary_function,bool> { bool operator()(const SmartPtr& elem) const { return elem->IsSpaceLike(); } }; #endif // __MathMLAdapters_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLEncloseElement.cc0000644000175000017500000000347610661271076020604 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLEncloseElement.hh" #include "MathMLRadicalElement.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" #include "ValueConversion.hh" #include "MathMLAttributeSignatures.hh" MathMLEncloseElement::MathMLEncloseElement(const SmartPtr& context) : MathMLNormalizingContainerElement(context) { } MathMLEncloseElement::~MathMLEncloseElement() { } AreaRef MathMLEncloseElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); AreaRef res; if (getChild()) { res = getChild()->format(ctxt); SmartPtr type = ToSequence(GET_ATTRIBUTE_VALUE(MathML, Enclose, notation)); for (unsigned i = 0; i < type->getSize(); i++) res = ctxt.MGD()->enclose(ctxt, res, ToString(type->getValue(i))); } else res = 0; setArea(res ? ctxt.MGD()->wrapper(ctxt, res) : 0); ctxt.pop(); resetDirtyLayout(); } return getArea(); } gtkmathview-0.8.0/src/engine/mathml/MathMLActionElement.cc0000644000175000017500000000507710661271076020430 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AbstractLogger.hh" #include "MathMLAttributeSignatures.hh" #include "MathMLActionElement.hh" #include "MathMLOperatorElement.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" #include "ValueConversion.hh" MathMLActionElement::MathMLActionElement(const SmartPtr& context) : MathMLLinearContainerElement(context) { selection = 0; } MathMLActionElement::~MathMLActionElement() { } AreaRef MathMLActionElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Action, selection)) selection = ToInteger(value) - 1; else selection = 0; if (SmartPtr vAction = GET_ATTRIBUTE_VALUE(MathML, Action, actiontype)) { String action = ToString(vAction); if (action == "toggle") { // nothing to do, selecting the element is just fine // but we want to have cycling selection %= getSize(); } else getLogger()->out(LOG_WARNING, "action `%s' is not supported (ignored)", action.c_str()); } else getLogger()->out(LOG_WARNING, "no action specified for `maction' element"); AreaRef res; if (selection < getSize()) if (SmartPtr elem = getChild(selection)) res = elem->format(ctxt); if (!res) res = ctxt.MGD()->dummy(ctxt); assert(res); setArea(ctxt.MGD()->wrapper(ctxt, res)); ctxt.pop(); resetDirtyLayout(); } return getArea(); } SmartPtr MathMLActionElement::getCoreOperator() { if (selection < getSize()) if (SmartPtr elem = getChild(selection)) return elem->getCoreOperator(); return 0; } gtkmathview-0.8.0/src/engine/mathml/MathMLTableCellElement.hh0000644000175000017500000000454510661271076021053 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLTableCellElement_hh__ #define __MathMLTableCellElement_hh__ #include "token.hh" #include "MathMLNormalizingContainerElement.hh" class GMV_MathView_EXPORT MathMLTableCellElement : public MathMLNormalizingContainerElement { protected: MathMLTableCellElement(const SmartPtr&); virtual ~MathMLTableCellElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLTableCellElement(view); } //bool IsStretchyOperator(void) const; //friend class MathMLTableElement; //friend class MathMLTableRowElement; virtual void setDirtyAttribute(void); virtual void setDirtyStructure(void); virtual void setDirtyLayout(void); unsigned getRowIndex(void) const { return rowIndex; } unsigned getColumnIndex(void) const { return columnIndex; } unsigned getRowSpan(void) const { return rowSpan; } unsigned getColumnSpan(void) const { return columnSpan; } void setSpan(unsigned, unsigned); void setPosition(unsigned, unsigned); void setDisplacement(const scaled&, const scaled&); void getDisplacement(scaled&, scaled&) const; void setAlignment(TokenId, TokenId); TokenId getRowAlign(void) const; TokenId getColumnAlign(void) const; //void setGroupAlignment(const std::vector&); private: scaled dispX; scaled dispY; unsigned rowIndex; unsigned columnIndex; unsigned rowSpan; unsigned columnSpan; TokenId rowAlign; TokenId columnAlign; }; #endif // __MathMLTableCellElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLScriptElement.hh0000644000175000017500000000451410661271076020464 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLScriptElement_hh__ #define __MathMLScriptElement_hh__ #include "MathMLEmbellishment.hh" #include "MathMLContainerElement.hh" #include "BinContainerTemplate.hh" class GMV_MathView_EXPORT MathMLScriptElement : public MathMLContainerElement, public MathMLEmbellishment { protected: MathMLScriptElement(const SmartPtr&); virtual ~MathMLScriptElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLScriptElement(view); } void setBase(const SmartPtr& child) { base.setChild(this, child); } void setSubScript(const SmartPtr& child) { subScript.setChild(this, child); } void setSuperScript(const SmartPtr& child) { superScript.setChild(this, child); } SmartPtr getBase(void) const { return base.getChild(); } SmartPtr getSubScript(void) const { return subScript.getChild(); } SmartPtr getSuperScript(void) const { return superScript.getChild(); } virtual AreaRef format(class FormattingContext&); virtual void setFlagDown(Flags); virtual void resetFlagDown(Flags); virtual SmartPtr getCoreOperator(void); private: BinContainerTemplate base; BinContainerTemplate subScript; BinContainerTemplate superScript; }; #endif // __MathMLScriptElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLInferredRowElement.hh0000644000175000017500000000245410661271076021447 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLInferredRowElement_hh__ #define __MathMLInferredRowElement_hh__ #include "MathMLRowElement.hh" class GMV_MathView_EXPORT MathMLInferredRowElement : public MathMLRowElement { protected: MathMLInferredRowElement(const SmartPtr&); virtual ~MathMLInferredRowElement(); public: static SmartPtr create(const SmartPtr& view); }; #endif // __MathMLInferredRowElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLErrorElement.cc0000644000175000017500000000311010661271076020266 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLErrorElement.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" MathMLErrorElement::MathMLErrorElement(const SmartPtr& context) : MathMLNormalizingContainerElement(context) { } MathMLErrorElement::~MathMLErrorElement() { } AreaRef MathMLErrorElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); if (ctxt.getColor() == RGBColor::RED()) ctxt.setColor(RGBColor::BLUE()); else ctxt.setColor(RGBColor::RED()); AreaRef res = getChild() ? getChild()->format(ctxt) : 0; setArea(res ? ctxt.MGD()->wrapper(ctxt, res) : 0); ctxt.pop(); resetDirtyLayout(); } return getArea(); } gtkmathview-0.8.0/src/engine/mathml/MathMLAlignMarkElement.cc0000644000175000017500000000317210661271076021052 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLAttributeSignatures.hh" #include "MathMLAlignMarkElement.hh" #include "ValueConversion.hh" MathMLAlignMarkElement::MathMLAlignMarkElement(const SmartPtr& context) : MathMLElement(context) { edge = T__NOTVALID; } MathMLAlignMarkElement::~MathMLAlignMarkElement() { } #if 0 void MathMLAlignMarkElement::Setup(RenderingEnvironment&) { if (dirtyAttribute()) { edge = ToTokenId(GET_ATTRIBUTE_VALUE(AlignMark, edge)); assert(edge != T__NOTVALID); box.unset(); resetDirtyAttribute(); } } void MathMLAlignMarkElement::DoLayout(const FormattingContext& ctxt) { if (dirtyLayout(ctxt)) resetDirtyLayout(ctxt); } #endif bool MathMLAlignMarkElement::IsSpaceLike() const { return true; } gtkmathview-0.8.0/src/engine/mathml/traverseAux.hh0000644000175000017500000000371210661271076017153 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __traverseAux_hh__ #define __traverseAux_hh__ #include "SmartPtr.hh" SmartPtr findEmbellishedOperatorRoot(const SmartPtr&); SmartPtr findStretchyOperator(const SmartPtr&); SmartPtr findCommonAncestor(const SmartPtr&, const SmartPtr&); SmartPtr findActionElement(const SmartPtr&); #if 0 DOM::Element findDOMNode(const SmartPtr&); SmartPtr findMathMLElement(const SmartPtr&, const DOM::Element&); #endif SmartPtr findRightmostChild(const SmartPtr&); SmartPtr findLeftmostChild(const SmartPtr&); SmartPtr findRightSibling(const SmartPtr&); SmartPtr findLeftSibling(const SmartPtr&); #endif // __traverseAux_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLNormalizingContainerElement.hh0000644000175000017500000000270610661271076023355 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLNormalizingContainerElement_hh__ #define __MathMLNormalizingContainerElement_hh__ #include "MathMLBinContainerElement.hh" // base class for MathML elements that infer an mrow when the number of // children is not 1 class GMV_MathView_EXPORT MathMLNormalizingContainerElement : public MathMLBinContainerElement { protected: MathMLNormalizingContainerElement(const SmartPtr&); virtual ~MathMLNormalizingContainerElement(); public: virtual AreaRef format(class FormattingContext&); virtual void setDirtyStructure(void); }; #endif // __MathMLNormalizingContainerElement_hh__ gtkmathview-0.8.0/src/engine/mathml/Makefile.am0000644000175000017500000000623410613606750016355 00000000000000 NULL = noinst_LTLIBRARIES = libmathml.la libmathml_la_CPPFLAGS = -DGMV_MathView_DLL libmathml_la_SOURCES = \ MathMLActionElement.cc \ MathMLAlignGroupElement.cc \ MathMLAlignMarkElement.cc \ MathMLAttributeSignatures.cc \ MathMLBinContainerElement.cc \ MathMLContainerElement.cc \ MathMLDummyElement.cc \ MathMLElement.cc \ MathMLEmbellishment.cc \ MathMLEncloseElement.cc \ MathMLErrorElement.cc \ MathMLFractionElement.cc \ MathMLFunctionApplicationNode.cc \ MathMLGlyphNode.cc \ MathMLIdentifierElement.cc \ MathMLInferredRowElement.cc \ MathMLInvisibleTimesNode.cc \ MathMLLinearContainerElement.cc \ MathMLMarkNode.cc \ MathMLMultiScriptsElement.cc \ MathMLNamespaceContext.cc \ MathMLNode.cc \ MathMLNormalizingContainerElement.cc \ MathMLNumberElement.cc \ MathMLOperatorDictionary.cc \ MathMLOperatorElement.cc \ MathMLPaddedElement.cc \ MathMLPhantomElement.cc \ MathMLRadicalElement.cc \ MathMLRowElement.cc \ MathMLScriptElement.cc \ MathMLSpaceElement.cc \ MathMLStringLitElement.cc \ MathMLStringNode.cc \ MathMLStyleElement.cc \ MathMLTableCellElement.cc \ MathMLTableContentFactory.cc \ MathMLTableElement.cc \ MathMLTableFormatter.cc \ MathMLTextElement.cc \ MathMLTextNode.cc \ MathMLTokenElement.cc \ MathMLUnderOverElement.cc \ MathMLValueConversion.cc \ MathMLmathElement.cc \ mathVariantAux.cc \ traverseAux.cc \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ MathMLNamespaceContext.hh \ MathMLOperatorDictionary.hh \ MathMLElement.hh \ $(NULL) noinst_HEADERS = \ MathML.hh \ MathMLActionElement.hh \ MathMLAdapters.hh \ MathMLAlignGroupElement.hh \ MathMLAlignMarkElement.hh \ MathMLAttributeParsers.hh \ MathMLAttributeParsers.hh \ MathMLAttributeSignatures.hh \ MathMLBinContainerElement.hh \ MathMLContainerElement.hh \ MathMLDummyElement.hh \ MathMLEmbellishment.hh \ MathMLEncloseElement.hh \ MathMLErrorElement.hh \ MathMLFractionElement.hh \ MathMLFunctionApplicationNode.hh \ MathMLGlyphNode.hh \ MathMLIdentifierElement.hh \ MathMLInferredRowElement.hh \ MathMLInvisibleTimesNode.hh \ MathMLLinearContainerElement.hh \ MathMLMarkNode.hh \ MathMLMultiScriptsElement.hh \ MathMLNode.hh \ MathMLNormalizingContainerElement.hh \ MathMLNumberElement.hh \ MathMLOperatorElement.hh \ MathMLPaddedElement.hh \ MathMLPhantomElement.hh \ MathMLRadicalElement.hh \ MathMLRowElement.hh \ MathMLScriptElement.hh \ MathMLSpaceElement.hh \ MathMLStringLitElement.hh \ MathMLStringNode.hh \ MathMLStyleElement.hh \ MathMLTableCellElement.hh \ MathMLTableContentFactory.hh \ MathMLTableElement.hh \ MathMLTableFormatter.hh \ MathMLTextElement.hh \ MathMLTextNode.hh \ MathMLTokenElement.hh \ MathMLUnderOverElement.hh \ MathMLValueConversion.hh \ MathMLmathElement.hh \ mathVariantAux.hh \ traverseAux.hh \ $(NULL) INCLUDES = \ -I$(top_srcdir)/auto \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants/ \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/backend/common \ $(NULL) gtkmathview-0.8.0/src/engine/mathml/MathMLAlignMarkElement.hh0000644000175000017500000000273510661271076021070 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLAlignMarkElement_hh__ #define __MathMLAlignMarkElement_hh__ #include "token.hh" #include "MathMLElement.hh" class GMV_MathView_EXPORT MathMLAlignMarkElement : public MathMLElement { protected: MathMLAlignMarkElement(const SmartPtr& view); virtual ~MathMLAlignMarkElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLAlignMarkElement(view); } virtual bool IsSpaceLike(void) const; TokenId GetAlignmentEdge(void) const { return edge; } protected: TokenId edge; }; #endif // __MathMLAlignMarkElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLFunctionApplicationNode.hh0000644000175000017500000000314010661271076022457 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLFunctionApplicationNode_hh__ #define __MathMLFunctionApplicationNode_hh__ #include "MathMLTextNode.hh" class GMV_MathView_EXPORT MathMLFunctionApplicationNode : public MathMLTextNode { protected: MathMLFunctionApplicationNode(void) { } virtual ~MathMLFunctionApplicationNode() { } public: static SmartPtr create(void) { return SmartPtr(new MathMLFunctionApplicationNode()); } static String getContent(void); virtual AreaRef format(class FormattingContext&); virtual unsigned GetLogicalContentLength(void) const { return 1; } virtual String GetRawContent(void) const; private: static String getSpace(const class FormattingContext&); }; #endif // __MathMLFunctionApplicationNode_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLStyleElement.hh0000644000175000017500000000313010661271076020311 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLStyleElement_hh__ #define __MathMLStyleElement_hh__ #include "MathMLEmbellishment.hh" #include "MathMLNormalizingContainerElement.hh" class GMV_MathView_EXPORT MathMLStyleElement : public MathMLNormalizingContainerElement, public MathMLEmbellishment { public: MathMLStyleElement(const SmartPtr&); virtual ~MathMLStyleElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLStyleElement(view); } virtual AreaRef format(class FormattingContext&); virtual bool IsSpaceLike(void) const; virtual void setDirtyAttribute(void); virtual SmartPtr getCoreOperator(void); }; #endif // __MathMLStyleElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLTextNode.hh0000644000175000017500000000247310661271076017442 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLTextNode_hh__ #define __MathMLTextNode_hh__ #include "Area.hh" #include "String.hh" #include "MathMLNode.hh" class GMV_MathView_EXPORT MathMLTextNode : public MathMLNode { protected: MathMLTextNode(void); virtual ~MathMLTextNode(); public: virtual AreaRef format(class FormattingContext&) = 0; virtual String GetRawContent(void) const { return String(); } virtual unsigned GetLogicalContentLength(void) const { return 0; } }; #endif // __MathMLTextNode_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLNormalizingContainerElement.cc0000644000175000017500000000366010661271076023343 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "FormattingContext.hh" #include "MathGraphicDevice.hh" #include "MathMLNormalizingContainerElement.hh" #include "MathMLInferredRowElement.hh" MathMLNormalizingContainerElement::MathMLNormalizingContainerElement(const SmartPtr& context) : MathMLBinContainerElement(context) { } MathMLNormalizingContainerElement::~MathMLNormalizingContainerElement() { } AreaRef MathMLNormalizingContainerElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); AreaRef res = getChild() ? getChild()->format(ctxt) : 0; if (res) res = ctxt.MGD()->wrapper(ctxt, res); setArea(res); ctxt.pop(); resetDirtyLayout(); } return getArea(); } void MathMLNormalizingContainerElement::setDirtyStructure() { MathMLBinContainerElement::setDirtyStructure(); // if the structure of this element gets dirty, and there is // an inferred mrow, then the mrow itself has a dirty structure if (getChild() && is_a(getChild())) getChild()->setDirtyStructure(); } gtkmathview-0.8.0/src/engine/mathml/MathMLAttributeSignatures.cc0000644000175000017500000002103310661271076021677 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLAttributeParsers.hh" #include "MathMLAttributeSignatures.hh" DEFINE_ATTRIBUTE(MathML, Action, actiontype, true, true, false, false, 0); DEFINE_ATTRIBUTE(MathML, Action, selection, true, true, false, false, "1"); DEFINE_ATTRIBUTE(MathML, AlignGroup, groupalign, true, true, false, false, 0); DEFINE_ATTRIBUTE(MathML, AlignMark, edge, true, true, false, false, "left"); DEFINE_ATTRIBUTE(MathML, Element, class, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Element, id, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Element, other, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Enclose, notation, true, true, false, false, "longdiv"); DEFINE_ATTRIBUTE(MathML, Fenced, close, true, true, false, false, ")"); DEFINE_ATTRIBUTE(MathML, Fenced, open, true, true, false, false, "("); DEFINE_ATTRIBUTE(MathML, Fenced, separators, true, true, false, true, ","); DEFINE_ATTRIBUTE(MathML, Fraction, bevelled, true, true, false, false, "false"); DEFINE_ATTRIBUTE(MathML, Fraction, denomalign, true, true, false, false, "center"); DEFINE_ATTRIBUTE(MathML, Fraction, linethickness, true, true, false, false, "1"); DEFINE_ATTRIBUTE(MathML, Fraction, numalign, true, true, false, false, "center"); DEFINE_ATTRIBUTE(MathML, Operator, accent, true, true, false, false, "false"); DEFINE_ATTRIBUTE(MathML, Operator, fence, true, true, false, false, "false"); DEFINE_ATTRIBUTE(MathML, Operator, form, true, true, false, false, 0); DEFINE_ATTRIBUTE(MathML, Operator, largeop, true, true, false, false, "false"); DEFINE_ATTRIBUTE(MathML, Operator, lspace, true, true, false, false, "thickmathspace"); DEFINE_ATTRIBUTE(MathML, Operator, maxsize, true, true, false, false, "infinity"); DEFINE_ATTRIBUTE(MathML, Operator, minsize, true, true, false, false, "1"); DEFINE_ATTRIBUTE(MathML, Operator, movablelimits, true, true, false, false, "false"); DEFINE_ATTRIBUTE(MathML, Operator, rspace, true, true, false, false, "thickmathspace"); DEFINE_ATTRIBUTE(MathML, Operator, separator, true, true, false, false, "false"); DEFINE_ATTRIBUTE(MathML, Operator, stretchy, true, true, false, false, "false"); DEFINE_ATTRIBUTE(MathML, Operator, symmetric, true, true, false, false, "true"); DEFINE_ATTRIBUTE(MathML, Padded, depth, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Padded, height, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Padded, lspace, true, false, false, false, "0em"); DEFINE_ATTRIBUTE(MathML, Padded, width, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, MultiScripts, subscriptshift, true, true, false, false, 0); DEFINE_ATTRIBUTE(MathML, MultiScripts, superscriptshift, true, true, false, false, 0); DEFINE_ATTRIBUTE(MathML, Script, subscriptshift, true, true, false, false, 0); DEFINE_ATTRIBUTE(MathML, Script, superscriptshift, true, true, false, false, 0); DEFINE_ATTRIBUTE(MathML, Space, depth, true, true, false, false, "0ex"); DEFINE_ATTRIBUTE(MathML, Space, height, true, true, false, false, "0ex"); DEFINE_ATTRIBUTE(MathML, Space, linebreak, true, true, false, false, "auto"); DEFINE_ATTRIBUTE(MathML, Space, width, true, true, false, false, "0em"); DEFINE_ATTRIBUTE(MathML, StringLit, lquote, true, true, false, false, "\""); DEFINE_ATTRIBUTE(MathML, StringLit, rquote, true, true, false, false, "\""); DEFINE_ATTRIBUTE(MathML, Style, color, true, false, true, false, 0); DEFINE_ATTRIBUTE(MathML, Style, background, true, false, true, false, 0); DEFINE_ATTRIBUTE(MathML, Style, mathcolor, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, mathbackground, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, displaystyle, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, mathsize, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, mediummathspace, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, negativemediummathspace, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, negativethickmathspace, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, negativethinmathspace, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, negativeverythickmathspace, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, negativeverythinmathspace, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, negativeveryverythickmathspace, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, negativeveryverythinmathspace, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, scriptlevel, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, scriptminsize, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, scriptsizemultiplier, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, thickmathspace, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, thinmathspace, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, verythickmathspace, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, verythinmathspace, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, veryverythickmathspace, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Style, veryverythinmathspace, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Table, align, true, true, false, false, "axis"); DEFINE_ATTRIBUTE(MathML, Table, alignmentscope, true, true, false, false, "true"); DEFINE_ATTRIBUTE(MathML, Table, columnalign, true, false, false, false, "center"); DEFINE_ATTRIBUTE(MathML, Table, columnlines, true, true, false, false, "none"); DEFINE_ATTRIBUTE(MathML, Table, columnspacing, true, true, false, false, "0.8em"); DEFINE_ATTRIBUTE(MathML, Table, columnwidth, true, true, false, false, "auto"); DEFINE_ATTRIBUTE(MathML, Table, displaystyle, true, true, false, false, "false"); DEFINE_ATTRIBUTE(MathML, Table, equalcolumns, true, true, false, false, "false"); DEFINE_ATTRIBUTE(MathML, Table, equalrows, true, true, false, false, "false"); DEFINE_ATTRIBUTE(MathML, Table, frame, true, true, false, false, "none"); DEFINE_ATTRIBUTE(MathML, Table, framespacing, true, true, false, false, "0.4em 0.5ex"); DEFINE_ATTRIBUTE(MathML, Table, groupalign, true, false, false, false, "{ left }"); DEFINE_ATTRIBUTE(MathML, Table, minlabelspacing, true, true, false, false, "0.8em"); DEFINE_ATTRIBUTE(MathML, Table, rowalign, true, false, false, false, "baseline"); DEFINE_ATTRIBUTE(MathML, Table, rowlines, true, true, false, false, "none"); DEFINE_ATTRIBUTE(MathML, Table, rowspacing, true, true, false, false, "1.0ex"); DEFINE_ATTRIBUTE(MathML, Table, side, true, true, false, false, "right"); DEFINE_ATTRIBUTE(MathML, Table, width, true, false, false, false, "auto"); DEFINE_ATTRIBUTE(MathML, TableCell, columnalign, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, TableCell, columnspan, true, true, false, false, "1"); DEFINE_ATTRIBUTE(MathML, TableCell, groupalign, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, TableCell, rowalign, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, TableCell, rowspan, true, true, false, false, "1"); DEFINE_ATTRIBUTE(MathML, TableRow, columnalign, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, TableRow, groupalign, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, TableRow, rowalign, true, false, false, false, 0); DEFINE_ATTRIBUTE(MathML, Token, mathbackground, true, true, false, false, 0); DEFINE_ATTRIBUTE(MathML, Token, mathcolor, true, true, false, false, 0); DEFINE_ATTRIBUTE(MathML, Token, mathsize, true, true, false, false, 0); DEFINE_ATTRIBUTE(MathML, Token, mathvariant, true, true, false, false, 0); DEFINE_ATTRIBUTE(MathML, UnderOver, accent, true, true, false, false, 0); DEFINE_ATTRIBUTE(MathML, UnderOver, accentunder, true, true, false, false, 0); DEFINE_ATTRIBUTE(MathML, math, display, true, false, false, false, "inline"); DEFINE_ATTRIBUTE(MathML, math, mode, true, false, false, false, "inline"); gtkmathview-0.8.0/src/engine/mathml/MathMLLinearContainerElement.hh0000644000175000017500000000432710661271076022277 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLLinearContainerElement_hh__ #define __MathMLLinearContainerElement_hh__ #include #include "MathMLContainerElement.hh" #include "LinearContainerTemplate.hh" class GMV_MathView_EXPORT MathMLLinearContainerElement : public MathMLContainerElement { protected: MathMLLinearContainerElement(const SmartPtr&); virtual ~MathMLLinearContainerElement(); public: unsigned getSize(void) const { return content.getSize(); } void setSize(unsigned size) { content.setSize(this, size); } SmartPtr getChild(unsigned i) const { return content.getChild(i); } void setChild(unsigned i, const SmartPtr& child) { content.setChild(this, i, child); } void appendChild(const SmartPtr& child) { content.appendChild(this, child); } void swapContent(std::vector >& newContent) { content.swapContent(this, newContent); } // the content can be accessed directly, but only in a read-only // way, because other operation involves SetParent and other // memory-management issues const std::vector< SmartPtr >& getContent(void) const { return content.getContent(); } virtual void setFlagDown(Flags); virtual void resetFlagDown(Flags); protected: LinearContainerTemplate content; }; #endif // __MathMLLinearContainerElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLFractionElement.hh0000644000175000017500000000420610661271076020763 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLFractionElement_hh__ #define __MathMLFractionElement_hh__ #include "MathMLEmbellishment.hh" #include "MathMLContainerElement.hh" #include "BinContainerTemplate.hh" class GMV_MathView_EXPORT MathMLFractionElement : public MathMLContainerElement, public MathMLEmbellishment { protected: MathMLFractionElement(const SmartPtr&); virtual ~MathMLFractionElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLFractionElement(view); } virtual AreaRef format(class FormattingContext&); virtual void setFlagDown(Flags); virtual void resetFlagDown(Flags); virtual SmartPtr getCoreOperator(void); SmartPtr getNumerator(void) const { return numerator.getChild(); } SmartPtr getDenominator(void) const { return denominator.getChild(); } void setNumerator(const SmartPtr& child) { numerator.setChild(this, child); } void setDenominator(const SmartPtr& child) { denominator.setChild(this, child); } private: BinContainerTemplate numerator; BinContainerTemplate denominator; }; #endif // __MathMLFractionElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLTableContentFactory.cc0000644000175000017500000001153410661271076021606 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLTableContentFactory.hh" unsigned MathMLTableContentFactory::findCell(unsigned i, unsigned j, unsigned rowSpan, unsigned columnSpan) const { unsigned k; unsigned kMax; do { k = kMax = j; for (unsigned l = i; l < rows.size() && l < i + rowSpan; l++) kMax = std::max(kMax, rows[l].findCell(j, columnSpan)); if (kMax > k) j = kMax; } while (kMax > k); return j; } void MathMLTableContentFactory::initCell(unsigned i, unsigned j, unsigned rowSpan, unsigned columnSpan) { while (rows.size() < i + rowSpan) rows.push_back(Row()); for (unsigned k = i; k < i + rowSpan; k++) rows[k].initCell(j, columnSpan); } #include unsigned MathMLTableContentFactory::setChild(unsigned i, unsigned j, unsigned rowSpan, unsigned columnSpan, const SmartPtr& child) { //std::cerr << "MathMLTableContentFactory::setChild " << i << " " << j << " " << rowSpan << " " << columnSpan << std::endl; j = findCell(i, j, rowSpan, columnSpan); initCell(i, j, rowSpan, columnSpan); rows[i].setChild(j, columnSpan, child); for (unsigned k = i + 1; k < i + rowSpan; k++) rows[k].setSpanningChild(j, columnSpan, child); return j; } SmartPtr MathMLTableContentFactory::getChild(unsigned i, unsigned j) const { return (i < rows.size()) ? rows[i].getChild(j) : 0; } void MathMLTableContentFactory::setLabelChild(unsigned i, const SmartPtr& child) { initCell(i, 0, 1, 0); rows[i].setLabelChild(child); } SmartPtr MathMLTableContentFactory::getLabelChild(unsigned i) const { return (i < rows.size()) ? rows[i].getLabelChild() : 0; } void MathMLTableContentFactory::getContent(std::vector >& cells, std::vector >& labels, unsigned& numRows, unsigned& numColumns) const { numRows = rows.size(); numColumns = 0; for (std::vector::const_iterator p = rows.begin(); p != rows.end(); p++) numColumns = std::max(numColumns, p->getSize()); cells.clear(); labels.clear(); cells.reserve(numRows * numColumns); labels.reserve(numRows); for (unsigned i = 0; i < numRows; i++) { labels.push_back(rows[i].getLabelChild()); for (unsigned j = 0; j < numColumns; j++) cells.push_back(getChild(i, j)); } } unsigned MathMLTableContentFactory::Row::findCell(unsigned j, unsigned columnSpan) const { unsigned k = j; while (k < content.size() && k < j + columnSpan) { if (!content[k].free()) j = k + 1; k++; } return j; } void MathMLTableContentFactory::Row::initCell(unsigned j, unsigned columnSpan) { while (content.size() < j) content.push_back(Slot()); for (unsigned k = j; k < j + columnSpan; k++) if (k < content.size()) content[k].init(); else content.push_back(Slot()); } void MathMLTableContentFactory::Row::setChild(unsigned j, unsigned columnSpan, const SmartPtr& child) { assert(j + columnSpan <= content.size()); content[j].init(child, false); setSpanningChild(j + 1, columnSpan - 1, child); } void MathMLTableContentFactory::Row::setSpanningChild(unsigned j, unsigned columnSpan, const SmartPtr& child) { for (unsigned k = j; k < j + columnSpan; k++) content[k].init(child, true); } SmartPtr MathMLTableContentFactory::Row::getChild(unsigned j) const { return (j < content.size()) ? content[j].getChild() : 0; } void MathMLTableContentFactory::Row::setLabelChild(const SmartPtr& child) { labelChild = child; } SmartPtr MathMLTableContentFactory::Row::getLabelChild() const { return labelChild; } void MathMLTableContentFactory::getSize(unsigned& nRows, unsigned& nColumns) const { nRows = rows.size(); nColumns = 0; for (std::vector::const_iterator p = rows.begin(); p != rows.end(); p++) nColumns = std::max(nColumns, p->getSize()); } gtkmathview-0.8.0/src/engine/mathml/MathMLNumberElement.cc0000644000175000017500000000207510661271076020436 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "MathMLNumberElement.hh" MathMLNumberElement::MathMLNumberElement(const SmartPtr& context) : MathMLTokenElement(context) { } MathMLNumberElement::~MathMLNumberElement() { } gtkmathview-0.8.0/src/engine/mathml/MathMLTableCellElement.cc0000644000175000017500000003141110661271076021031 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLActionElement.hh" #include "MathMLAlignMarkElement.hh" #include "MathMLMarkNode.hh" #include "MathMLTableCellElement.hh" #include "MathMLTableElement.hh" #include "MathMLTokenElement.hh" #include "ValueConversion.hh" #include "MathMLAttributeSignatures.hh" MathMLTableCellElement::MathMLTableCellElement(const SmartPtr& context) : MathMLNormalizingContainerElement(context) { rowIndex = 0; columnIndex = 0; } MathMLTableCellElement::~MathMLTableCellElement() { } void MathMLTableCellElement::setSpan(unsigned rSpan, unsigned cSpan) { rowSpan = rSpan; columnSpan = cSpan; } void MathMLTableCellElement::setPosition(unsigned i, unsigned j) { rowIndex = i; columnIndex = j; } void MathMLTableCellElement::setAlignment(TokenId ra, TokenId ca) { rowAlign = ra; columnAlign = ca; } TokenId MathMLTableCellElement::getRowAlign() const { return rowAlign; } TokenId MathMLTableCellElement::getColumnAlign() const { return columnAlign; } void MathMLTableCellElement::setDisplacement(const scaled& dx, const scaled& dy) { dispX = dx; dispY = dy; } void MathMLTableCellElement::getDisplacement(scaled& dx, scaled& dy) const { dx = dispX; dy = dispY; } #if 0 void MathMLTableCellElement::refine(AbstractRefinementContext& context) { if (dirtyAttribute() || dirtyAttributeP()) { REFINE_ATTRIBUTE(context, MathML, TableCell, rowspan); REFINE_ATTRIBUTE(context, MathML, TableCell, columnspan); REFINE_ATTRIBUTE(context, MathML, TableCell, rowalign); REFINE_ATTRIBUTE(context, MathML, TableCell, columnalign); REFINE_ATTRIBUTE(context, MathML, TableCell, groupalign); MathMLNormalizingContainerElement::refine(context); } } #endif #if 0 void MathMLTableCellElement::SetupGroups(const SmartPtr& elem, bool allowedGroup, bool countGroups, TableCell& status) { // this static method is probably to be rewritten completely // as a set of virtual methods in the various Element classes assert(elem); #if 0 // if countGroups == TRUE requires: normalization, alignment scopes // if countGroups == FALSE requires: normalization, alignment scopes, group alignment if (elem->IsToken()) { SmartPtr token = smart_cast(elem); assert(token); // remember that the first mn element, if present, always contains // the alignment for decimal point if (status.group != NULL && token->IsA() == T_MN && status.group->GetDecimalPoint() == NULL) status.group->SetDecimalPoint(token); for (Iterator< SmartPtr > p(token->GetContent()); p.More(); p.Next()) { if (p()->IsMark() && status.group != NULL) { SmartPtr mark = smart_cast(p()); assert(mark); status.group->SetAlignmentMark(mark); // only the first alignment mark (if present) in a token is ever taken into account break; } } } else if (elem->IsContainer()) { SmartPtr container = smart_cast(elem); assert(container); Iterator< SmartPtr > p(container->GetContent()); switch (container->IsA()) { case T_MPADDED: case T_MSQRT: if (status.group != NULL) { while (p.More()) { SetupGroups(p(), false, countGroups, status); p.Next(); } } break; case T_MSUB: case T_MSUP: case T_MSUBSUP: case T_MUNDER: case T_MOVER: case T_MUNDEROVER: case T_MMULTISCRIPTS: case T_MROOT: if (status.group != NULL) SetupGroups(p(), false, countGroups, status); break; case T_MACTION: { SmartPtr action = smart_cast(container); assert(action); if (action->GetSelectedElement()) SetupGroups(action->GetSelectedElement(), allowedGroup, countGroups, status); } break; case T_MTD: { SmartPtr mtd = smart_cast(container); assert(mtd); if (status.group != NULL && !mtd->GetAlignmentScope()) SetupGroups(p(), false, countGroups, status); } break; case T_MTABLE: case T_MTR: case T_MLABELEDTR: default: while (p.More()) { SetupGroups(p(), allowedGroup, countGroups, status); p.Next(); } break; } } else { switch (elem->IsA()) { case TAG_MALIGNGROUP: if (allowedGroup) { if (countGroups) { status.nAlignGroup++; } else { SmartPtr group = smart_cast(elem); assert(group); status.aGroup[status.iGroup].group = group; status.group = group; status.iGroup++; } } break; case TAG_MALIGNMARK: if (status.group != NULL) { SmartPtr align = smart_cast(elem); assert(align); status.group->SetAlignmentMark(align); } break; case TAG_MSPACE: default: break; } } #endif } void MathMLTableCellElement::SetupCellSpanning(RenderingEnvironment& env) { SmartPtr value; value = GET_ATTRIBUTE_VALUE(TableCell, rowspan); rowSpan = ToInteger(value); if (rowSpan <= 0) { getLogger()->out(LOG_WARNING, " has rowspan <= 0, defaulted to 1"); rowSpan = 1; } value = GET_ATTRIBUTE_VALUE(TableCell, columnspan); columnSpan = ToInteger(value); if (columnSpan <= 0) { getLogger()->out(LOG_WARNING, " has columnspan <= 0, defaulted to 1"); columnSpan = 1; } } #endif #if 0 void MathMLTableCellElement::Setup(RenderingEnvironment& env) { if (dirtyAttribute() || dirtyAttributeP()) { // if the element is not used inside a table, // the cell field is null if (cell) { if (SmartPtr value = GET_ATTRIBUTE_VALUE(TableCell, rowalign)) cell->rowAlign = ToTokenId(value); if (SmartPtr value = GET_ATTRIBUTE_VALUE(TableCell, columnalign)) cell->columnAlign = ToTokenId(value); if (SmartPtr value = GET_ATTRIBUTE_VALUE(TableCell, groupalign)) for (unsigned k = 0; k < cell->nAlignGroup; k++) { SmartPtr p = GetComponent(value, k); cell->aGroup[k].alignment = ToTokenId(p); } } MathMLNormalizingContainerElement::Setup(env); resetDirtyAttribute(); } } void MathMLTableCellElement::SetupCellPosition(unsigned i, unsigned j, unsigned nRows) { rowIndex = i; columnIndex = j; if (i + rowSpan > nRows) { getLogger()->out(LOG_WARNING, "`mtd' spans over the last row (truncated)"); rowSpan = nRows - i; } } void MathMLTableCellElement::SetupCell(TableCell* p) { assert(p); cell = p; } void MathMLTableCellElement::DoLayout(const FormattingContext& ctxt) { if (GetChild()) { GetChild()->DoLayout(ctxt); box = GetChild()->GetBoundingBox(); } else box.unset(); if (ctxt.GetLayoutType() == FormattingContext::LAYOUT_MIN) minWidth = box.width; resetDirtyLayout(ctxt); } void MathMLTableCellElement::CalcGroupsExtent() { assert(cell != NULL); SetPosition(0, 0); unsigned k; for (k = 0; k < cell->nAlignGroup; k++) { SmartPtr group = cell->aGroup[k].group; assert(group); SmartPtr leftSibling = getLeftSibling(group); SmartPtr rightSibling = getRightSibling(group); if (k == 0) cell->aGroup[k].leftEdge = GetLeftEdge(); else if (rightSibling) cell->aGroup[k].leftEdge = rightSibling->GetLeftEdge(); else cell->aGroup[k].leftEdge = group->GetX(); if (k > 0) { if (leftSibling) cell->aGroup[k - 1].rightEdge = leftSibling->GetRightEdge(); else cell->aGroup[k - 1].rightEdge = group->GetX(); } if (k == cell->nAlignGroup - 1) cell->aGroup[k].rightEdge = GetRightEdge(); } scaled cellWidth = GetBoundingBox().width; scaled prevAlignPoint = 0; for (k = 0; k < cell->nAlignGroup; k++) { SmartPtr group = cell->aGroup[k].group; assert(group); scaled alignPoint = 0; if (group->GetAlignmentMarkElement() || group->GetAlignmentMarkNode()) { SmartPtr mark = 0; TokenId alignType = T__NOTVALID; if (group->GetAlignmentMarkElement()) { mark = group->GetAlignmentMarkElement(); alignType = group->GetAlignmentMarkElement()->GetAlignmentEdge(); } else { mark = group->GetAlignmentMarkNode(); alignType = group->GetAlignmentMarkNode()->GetAlignmentEdge(); } assert(mark); assert(alignType != T__NOTVALID); if (alignType == T_LEFT) { SmartPtr frame = getRightSibling(mark); if (frame) alignPoint = frame->GetLeftEdge(); else alignPoint = alignPoint = mark->GetX(); } else { SmartPtr frame = getLeftSibling(mark); if (frame) alignPoint = frame->GetRightEdge(); else alignPoint = mark->GetX(); } } else if (cell->aGroup[k].alignment == T_DECIMALPOINT) { SmartPtr token = group->GetDecimalPoint(); if (token) alignPoint = token->GetDecimalPointEdge(); else alignPoint = cell->aGroup[k].rightEdge; } else { switch (cell->aGroup[k].alignment) { case T_LEFT: alignPoint = cell->aGroup[k].leftEdge; break; case T_RIGHT: alignPoint = cell->aGroup[k].rightEdge; break; case T_CENTER: alignPoint = (cell->aGroup[k].leftEdge + cell->aGroup[k].rightEdge) / 2; break; default: assert(IMPOSSIBLE); break; } } if (k == 0) cell->aGroup[k].extent.left = alignPoint; else cell->aGroup[k].extent.left = alignPoint - group->GetX(); if (k > 0) cell->aGroup[k - 1].extent.right = group->GetX() - prevAlignPoint; if (k == cell->nAlignGroup - 1) cell->aGroup[k].extent.right = cellWidth - alignPoint; prevAlignPoint = alignPoint; } } void MathMLTableCellElement::SetPosition(const scaled& x, const scaled& y) { if (GetChild()) { if (cell) { const BoundingBox& elemBox = child->GetBoundingBox(); position.x = x; position.y = y; scaled availableWidth = box.width; scaled cellXOffset = 0; switch (cell->columnAlign) { case T_RIGHT: cellXOffset = availableWidth - elemBox.width; break; case T_CENTER: cellXOffset = (availableWidth - elemBox.width) / 2; break; case T_LEFT: default: cellXOffset = 0; break; } scaled cellYOffset = 0; switch (cell->rowAlign) { case T_BOTTOM: cellYOffset = box.depth - elemBox.depth; break; case T_CENTER: cellYOffset = (box.verticalExtent() - elemBox.verticalExtent()) / 2 + elemBox.height - box.height; break; case T_BASELINE: cellYOffset = 0; break; case T_AXIS: assert(IMPOSSIBLE); break; case T_TOP: cellYOffset = elemBox.height - box.height; break; default: cellYOffset = 0; break; } GetChild()->SetPosition(x + cellXOffset, y + cellYOffset); } else GetChild()->SetPosition(x, y); } } #endif #if 0 bool MathMLTableCellElement::IsStretchyOperator() const { #if 0 if (GetChild()) return isStretchyOperator(GetChild()); else return false; #endif return false; } #endif void MathMLTableCellElement::setDirtyStructure() { #if 0 SmartPtr row = getParent(); assert(row); row->setDirtyStructure(); MathMLNormalizingContainerElement::setDirtyStructure(); #endif } void MathMLTableCellElement::setDirtyAttribute() { #if 0 SmartPtr row = getParent(); assert(row); row->setDirtyAttribute(); MathMLNormalizingContainerElement::setDirtyAttribute(); #endif } void MathMLTableCellElement::setDirtyLayout() { #if 0 SmartPtr row = getParent(); assert(row); row->setDirtyLayout(); MathMLNormalizingContainerElement::setDirtyLayout(); #endif } gtkmathview-0.8.0/src/engine/mathml/MathMLPaddedElement.hh0000644000175000017500000000464710661271076020410 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLPaddedElement_hh__ #define __MathMLPaddedElement_hh__ #include "MathMLEmbellishment.hh" #include "MathMLNormalizingContainerElement.hh" class GMV_MathView_EXPORT MathMLPaddedElement : public MathMLNormalizingContainerElement, public MathMLEmbellishment { protected: MathMLPaddedElement(const SmartPtr&); virtual ~MathMLPaddedElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLPaddedElement(view); } virtual AreaRef format(class FormattingContext&); virtual SmartPtr getCoreOperator(void); private: struct LengthDimension { bool valid; // true if this attribute was set int sign; // -1 => -, 0 => no sign specified, +1 => + float number; // the (unsigned) number specified bool percentage; // true if % was set (=> pseudo == true) bool pseudo; // true if pseudo unit used TokenId pseudoUnitId; // pseudo-unit (valid if pseudo == true) scaled unit; // standard unit (valid if pseudo == false) }; static void parseLengthDimension(const class FormattingContext&, const SmartPtr&, LengthDimension&, TokenId); static scaled evalLengthDimension(const class FormattingContext&, const SmartPtr&, TokenId, const scaled&, const BoundingBox&); LengthDimension width; LengthDimension lSpace; LengthDimension height; LengthDimension depth; scaled lSpaceE; // evaluated }; #endif // __MathMLPaddedElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLGlyphNode.cc0000644000175000017500000000244010661271076017561 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLGlyphNode.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" MathMLGlyphNode::MathMLGlyphNode(const String& f, const String& i, const String& a) : family(f), index(i), alt(a) { } MathMLGlyphNode::~MathMLGlyphNode() { } AreaRef MathMLGlyphNode::format(FormattingContext& ctxt) { return ctxt.MGD()->dummy(ctxt); } unsigned MathMLGlyphNode::GetLogicalContentLength() const { return 1; } gtkmathview-0.8.0/src/engine/mathml/MathMLAttributeSignatures.hh0000644000175000017500000001316710661271076021722 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLAttributeSignatures_hh__ #define __MathMLAttributeSignatures_hh__ #include "AttributeSignature.hh" DECLARE_ATTRIBUTE(MathML, Action, actiontype); DECLARE_ATTRIBUTE(MathML, Action, selection); DECLARE_ATTRIBUTE(MathML, AlignGroup, groupalign); DECLARE_ATTRIBUTE(MathML, AlignMark, edge); DECLARE_ATTRIBUTE(MathML, Element, id); DECLARE_ATTRIBUTE(MathML, Element, class); DECLARE_ATTRIBUTE(MathML, Element, other); DECLARE_ATTRIBUTE(MathML, Enclose, notation); DECLARE_ATTRIBUTE(MathML, Fenced, open); DECLARE_ATTRIBUTE(MathML, Fenced, close); DECLARE_ATTRIBUTE(MathML, Fenced, separators); DECLARE_ATTRIBUTE(MathML, Fraction, linethickness); DECLARE_ATTRIBUTE(MathML, Fraction, numalign); DECLARE_ATTRIBUTE(MathML, Fraction, denomalign); DECLARE_ATTRIBUTE(MathML, Fraction, bevelled); DECLARE_ATTRIBUTE(MathML, MultiScripts, subscriptshift); DECLARE_ATTRIBUTE(MathML, MultiScripts, superscriptshift); DECLARE_ATTRIBUTE(MathML, Script, subscriptshift); DECLARE_ATTRIBUTE(MathML, Script, superscriptshift); DECLARE_ATTRIBUTE(MathML, Operator, form); DECLARE_ATTRIBUTE(MathML, Operator, fence); DECLARE_ATTRIBUTE(MathML, Operator, separator); DECLARE_ATTRIBUTE(MathML, Operator, lspace); DECLARE_ATTRIBUTE(MathML, Operator, rspace); DECLARE_ATTRIBUTE(MathML, Operator, stretchy); DECLARE_ATTRIBUTE(MathML, Operator, symmetric); DECLARE_ATTRIBUTE(MathML, Operator, maxsize); DECLARE_ATTRIBUTE(MathML, Operator, minsize); DECLARE_ATTRIBUTE(MathML, Operator, largeop); DECLARE_ATTRIBUTE(MathML, Operator, movablelimits); DECLARE_ATTRIBUTE(MathML, Operator, accent); DECLARE_ATTRIBUTE(MathML, Padded, width); DECLARE_ATTRIBUTE(MathML, Padded, lspace); DECLARE_ATTRIBUTE(MathML, Padded, height); DECLARE_ATTRIBUTE(MathML, Padded, depth); DECLARE_ATTRIBUTE(MathML, Space, width); DECLARE_ATTRIBUTE(MathML, Space, height); DECLARE_ATTRIBUTE(MathML, Space, depth); DECLARE_ATTRIBUTE(MathML, Space, linebreak); DECLARE_ATTRIBUTE(MathML, StringLit, lquote); DECLARE_ATTRIBUTE(MathML, StringLit, rquote); DECLARE_ATTRIBUTE(MathML, Style, scriptlevel); DECLARE_ATTRIBUTE(MathML, Style, displaystyle); DECLARE_ATTRIBUTE(MathML, Style, scriptsizemultiplier); DECLARE_ATTRIBUTE(MathML, Style, scriptminsize); DECLARE_ATTRIBUTE(MathML, Style, color); DECLARE_ATTRIBUTE(MathML, Style, background); DECLARE_ATTRIBUTE(MathML, Style, mathcolor); DECLARE_ATTRIBUTE(MathML, Style, mathbackground); DECLARE_ATTRIBUTE(MathML, Style, veryverythinmathspace); DECLARE_ATTRIBUTE(MathML, Style, verythinmathspace); DECLARE_ATTRIBUTE(MathML, Style, thinmathspace); DECLARE_ATTRIBUTE(MathML, Style, mediummathspace); DECLARE_ATTRIBUTE(MathML, Style, thickmathspace); DECLARE_ATTRIBUTE(MathML, Style, verythickmathspace); DECLARE_ATTRIBUTE(MathML, Style, veryverythickmathspace); DECLARE_ATTRIBUTE(MathML, Style, negativeveryverythinmathspace); DECLARE_ATTRIBUTE(MathML, Style, negativeverythinmathspace); DECLARE_ATTRIBUTE(MathML, Style, negativethinmathspace); DECLARE_ATTRIBUTE(MathML, Style, negativemediummathspace); DECLARE_ATTRIBUTE(MathML, Style, negativethickmathspace); DECLARE_ATTRIBUTE(MathML, Style, negativeverythickmathspace); DECLARE_ATTRIBUTE(MathML, Style, negativeveryverythickmathspace); DECLARE_ATTRIBUTE(MathML, Style, mathsize); DECLARE_ATTRIBUTE(MathML, Style, mathcolor); DECLARE_ATTRIBUTE(MathML, TableCell, rowspan); DECLARE_ATTRIBUTE(MathML, TableCell, columnspan); DECLARE_ATTRIBUTE(MathML, TableCell, rowalign); DECLARE_ATTRIBUTE(MathML, TableCell, columnalign); DECLARE_ATTRIBUTE(MathML, TableCell, groupalign); DECLARE_ATTRIBUTE(MathML, TableRow, rowalign); DECLARE_ATTRIBUTE(MathML, TableRow, columnalign); DECLARE_ATTRIBUTE(MathML, TableRow, groupalign); DECLARE_ATTRIBUTE(MathML, Table, align); DECLARE_ATTRIBUTE(MathML, Table, alignmentscope); DECLARE_ATTRIBUTE(MathML, Table, columnwidth); DECLARE_ATTRIBUTE(MathML, Table, rowspacing); DECLARE_ATTRIBUTE(MathML, Table, columnspacing); DECLARE_ATTRIBUTE(MathML, Table, rowlines); DECLARE_ATTRIBUTE(MathML, Table, columnlines); DECLARE_ATTRIBUTE(MathML, Table, frame); DECLARE_ATTRIBUTE(MathML, Table, framespacing); DECLARE_ATTRIBUTE(MathML, Table, equalrows); DECLARE_ATTRIBUTE(MathML, Table, equalcolumns); DECLARE_ATTRIBUTE(MathML, Table, displaystyle); DECLARE_ATTRIBUTE(MathML, Table, side); DECLARE_ATTRIBUTE(MathML, Table, minlabelspacing); DECLARE_ATTRIBUTE(MathML, Table, width); DECLARE_ATTRIBUTE(MathML, Table, rowalign); DECLARE_ATTRIBUTE(MathML, Table, columnalign); DECLARE_ATTRIBUTE(MathML, Table, groupalign); DECLARE_ATTRIBUTE(MathML, Token, mathvariant); DECLARE_ATTRIBUTE(MathML, Token, mathsize); DECLARE_ATTRIBUTE(MathML, Token, mathcolor); DECLARE_ATTRIBUTE(MathML, Token, mathbackground); DECLARE_ATTRIBUTE(MathML, UnderOver, accentunder); DECLARE_ATTRIBUTE(MathML, UnderOver, accent); DECLARE_ATTRIBUTE(MathML, math, mode); DECLARE_ATTRIBUTE(MathML, math, display); #endif // __MathMLAttributeSignatures_hh__ gtkmathview-0.8.0/src/engine/mathml/Makefile.in0000644000175000017500000024236710704610553016374 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/engine/mathml DIST_COMMON = $(mathview_HEADERS) $(noinst_HEADERS) \ $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libmathml_la_LIBADD = am__objects_1 = am_libmathml_la_OBJECTS = libmathml_la-MathMLActionElement.lo \ libmathml_la-MathMLAlignGroupElement.lo \ libmathml_la-MathMLAlignMarkElement.lo \ libmathml_la-MathMLAttributeSignatures.lo \ libmathml_la-MathMLBinContainerElement.lo \ libmathml_la-MathMLContainerElement.lo \ libmathml_la-MathMLDummyElement.lo \ libmathml_la-MathMLElement.lo \ libmathml_la-MathMLEmbellishment.lo \ libmathml_la-MathMLEncloseElement.lo \ libmathml_la-MathMLErrorElement.lo \ libmathml_la-MathMLFractionElement.lo \ libmathml_la-MathMLFunctionApplicationNode.lo \ libmathml_la-MathMLGlyphNode.lo \ libmathml_la-MathMLIdentifierElement.lo \ libmathml_la-MathMLInferredRowElement.lo \ libmathml_la-MathMLInvisibleTimesNode.lo \ libmathml_la-MathMLLinearContainerElement.lo \ libmathml_la-MathMLMarkNode.lo \ libmathml_la-MathMLMultiScriptsElement.lo \ libmathml_la-MathMLNamespaceContext.lo \ libmathml_la-MathMLNode.lo \ libmathml_la-MathMLNormalizingContainerElement.lo \ libmathml_la-MathMLNumberElement.lo \ libmathml_la-MathMLOperatorDictionary.lo \ libmathml_la-MathMLOperatorElement.lo \ libmathml_la-MathMLPaddedElement.lo \ libmathml_la-MathMLPhantomElement.lo \ libmathml_la-MathMLRadicalElement.lo \ libmathml_la-MathMLRowElement.lo \ libmathml_la-MathMLScriptElement.lo \ libmathml_la-MathMLSpaceElement.lo \ libmathml_la-MathMLStringLitElement.lo \ libmathml_la-MathMLStringNode.lo \ libmathml_la-MathMLStyleElement.lo \ libmathml_la-MathMLTableCellElement.lo \ libmathml_la-MathMLTableContentFactory.lo \ libmathml_la-MathMLTableElement.lo \ libmathml_la-MathMLTableFormatter.lo \ libmathml_la-MathMLTextElement.lo \ libmathml_la-MathMLTextNode.lo \ libmathml_la-MathMLTokenElement.lo \ libmathml_la-MathMLUnderOverElement.lo \ libmathml_la-MathMLValueConversion.lo \ libmathml_la-MathMLmathElement.lo \ libmathml_la-mathVariantAux.lo libmathml_la-traverseAux.lo \ $(am__objects_1) libmathml_la_OBJECTS = $(am_libmathml_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libmathml_la_SOURCES) DIST_SOURCES = $(libmathml_la_SOURCES) am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(mathviewdir)" mathviewHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(mathview_HEADERS) $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = noinst_LTLIBRARIES = libmathml.la libmathml_la_CPPFLAGS = -DGMV_MathView_DLL libmathml_la_SOURCES = \ MathMLActionElement.cc \ MathMLAlignGroupElement.cc \ MathMLAlignMarkElement.cc \ MathMLAttributeSignatures.cc \ MathMLBinContainerElement.cc \ MathMLContainerElement.cc \ MathMLDummyElement.cc \ MathMLElement.cc \ MathMLEmbellishment.cc \ MathMLEncloseElement.cc \ MathMLErrorElement.cc \ MathMLFractionElement.cc \ MathMLFunctionApplicationNode.cc \ MathMLGlyphNode.cc \ MathMLIdentifierElement.cc \ MathMLInferredRowElement.cc \ MathMLInvisibleTimesNode.cc \ MathMLLinearContainerElement.cc \ MathMLMarkNode.cc \ MathMLMultiScriptsElement.cc \ MathMLNamespaceContext.cc \ MathMLNode.cc \ MathMLNormalizingContainerElement.cc \ MathMLNumberElement.cc \ MathMLOperatorDictionary.cc \ MathMLOperatorElement.cc \ MathMLPaddedElement.cc \ MathMLPhantomElement.cc \ MathMLRadicalElement.cc \ MathMLRowElement.cc \ MathMLScriptElement.cc \ MathMLSpaceElement.cc \ MathMLStringLitElement.cc \ MathMLStringNode.cc \ MathMLStyleElement.cc \ MathMLTableCellElement.cc \ MathMLTableContentFactory.cc \ MathMLTableElement.cc \ MathMLTableFormatter.cc \ MathMLTextElement.cc \ MathMLTextNode.cc \ MathMLTokenElement.cc \ MathMLUnderOverElement.cc \ MathMLValueConversion.cc \ MathMLmathElement.cc \ mathVariantAux.cc \ traverseAux.cc \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ MathMLNamespaceContext.hh \ MathMLOperatorDictionary.hh \ MathMLElement.hh \ $(NULL) noinst_HEADERS = \ MathML.hh \ MathMLActionElement.hh \ MathMLAdapters.hh \ MathMLAlignGroupElement.hh \ MathMLAlignMarkElement.hh \ MathMLAttributeParsers.hh \ MathMLAttributeParsers.hh \ MathMLAttributeSignatures.hh \ MathMLBinContainerElement.hh \ MathMLContainerElement.hh \ MathMLDummyElement.hh \ MathMLEmbellishment.hh \ MathMLEncloseElement.hh \ MathMLErrorElement.hh \ MathMLFractionElement.hh \ MathMLFunctionApplicationNode.hh \ MathMLGlyphNode.hh \ MathMLIdentifierElement.hh \ MathMLInferredRowElement.hh \ MathMLInvisibleTimesNode.hh \ MathMLLinearContainerElement.hh \ MathMLMarkNode.hh \ MathMLMultiScriptsElement.hh \ MathMLNode.hh \ MathMLNormalizingContainerElement.hh \ MathMLNumberElement.hh \ MathMLOperatorElement.hh \ MathMLPaddedElement.hh \ MathMLPhantomElement.hh \ MathMLRadicalElement.hh \ MathMLRowElement.hh \ MathMLScriptElement.hh \ MathMLSpaceElement.hh \ MathMLStringLitElement.hh \ MathMLStringNode.hh \ MathMLStyleElement.hh \ MathMLTableCellElement.hh \ MathMLTableContentFactory.hh \ MathMLTableElement.hh \ MathMLTableFormatter.hh \ MathMLTextElement.hh \ MathMLTextNode.hh \ MathMLTokenElement.hh \ MathMLUnderOverElement.hh \ MathMLValueConversion.hh \ MathMLmathElement.hh \ mathVariantAux.hh \ traverseAux.hh \ $(NULL) INCLUDES = \ -I$(top_srcdir)/auto \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants/ \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/backend/common \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/engine/mathml/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/engine/mathml/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libmathml.la: $(libmathml_la_OBJECTS) $(libmathml_la_DEPENDENCIES) $(CXXLINK) $(libmathml_la_LDFLAGS) $(libmathml_la_OBJECTS) $(libmathml_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLActionElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLAlignGroupElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLAlignMarkElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLAttributeSignatures.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLBinContainerElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLContainerElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLDummyElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLEmbellishment.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLEncloseElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLErrorElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLFractionElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLFunctionApplicationNode.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLGlyphNode.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLIdentifierElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLInferredRowElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLInvisibleTimesNode.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLLinearContainerElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLMarkNode.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLMultiScriptsElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLNamespaceContext.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLNode.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLNormalizingContainerElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLNumberElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLOperatorDictionary.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLOperatorElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLPaddedElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLPhantomElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLRadicalElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLRowElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLScriptElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLSpaceElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLStringLitElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLStringNode.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLStyleElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLTableCellElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLTableContentFactory.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLTableElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLTableFormatter.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLTextElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLTextNode.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLTokenElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLUnderOverElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLValueConversion.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-MathMLmathElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-mathVariantAux.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathml_la-traverseAux.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libmathml_la-MathMLActionElement.lo: MathMLActionElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLActionElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLActionElement.Tpo" -c -o libmathml_la-MathMLActionElement.lo `test -f 'MathMLActionElement.cc' || echo '$(srcdir)/'`MathMLActionElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLActionElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLActionElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLActionElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLActionElement.cc' object='libmathml_la-MathMLActionElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLActionElement.lo `test -f 'MathMLActionElement.cc' || echo '$(srcdir)/'`MathMLActionElement.cc libmathml_la-MathMLAlignGroupElement.lo: MathMLAlignGroupElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLAlignGroupElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLAlignGroupElement.Tpo" -c -o libmathml_la-MathMLAlignGroupElement.lo `test -f 'MathMLAlignGroupElement.cc' || echo '$(srcdir)/'`MathMLAlignGroupElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLAlignGroupElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLAlignGroupElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLAlignGroupElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLAlignGroupElement.cc' object='libmathml_la-MathMLAlignGroupElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLAlignGroupElement.lo `test -f 'MathMLAlignGroupElement.cc' || echo '$(srcdir)/'`MathMLAlignGroupElement.cc libmathml_la-MathMLAlignMarkElement.lo: MathMLAlignMarkElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLAlignMarkElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLAlignMarkElement.Tpo" -c -o libmathml_la-MathMLAlignMarkElement.lo `test -f 'MathMLAlignMarkElement.cc' || echo '$(srcdir)/'`MathMLAlignMarkElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLAlignMarkElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLAlignMarkElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLAlignMarkElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLAlignMarkElement.cc' object='libmathml_la-MathMLAlignMarkElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLAlignMarkElement.lo `test -f 'MathMLAlignMarkElement.cc' || echo '$(srcdir)/'`MathMLAlignMarkElement.cc libmathml_la-MathMLAttributeSignatures.lo: MathMLAttributeSignatures.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLAttributeSignatures.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLAttributeSignatures.Tpo" -c -o libmathml_la-MathMLAttributeSignatures.lo `test -f 'MathMLAttributeSignatures.cc' || echo '$(srcdir)/'`MathMLAttributeSignatures.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLAttributeSignatures.Tpo" "$(DEPDIR)/libmathml_la-MathMLAttributeSignatures.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLAttributeSignatures.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLAttributeSignatures.cc' object='libmathml_la-MathMLAttributeSignatures.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLAttributeSignatures.lo `test -f 'MathMLAttributeSignatures.cc' || echo '$(srcdir)/'`MathMLAttributeSignatures.cc libmathml_la-MathMLBinContainerElement.lo: MathMLBinContainerElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLBinContainerElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLBinContainerElement.Tpo" -c -o libmathml_la-MathMLBinContainerElement.lo `test -f 'MathMLBinContainerElement.cc' || echo '$(srcdir)/'`MathMLBinContainerElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLBinContainerElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLBinContainerElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLBinContainerElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLBinContainerElement.cc' object='libmathml_la-MathMLBinContainerElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLBinContainerElement.lo `test -f 'MathMLBinContainerElement.cc' || echo '$(srcdir)/'`MathMLBinContainerElement.cc libmathml_la-MathMLContainerElement.lo: MathMLContainerElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLContainerElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLContainerElement.Tpo" -c -o libmathml_la-MathMLContainerElement.lo `test -f 'MathMLContainerElement.cc' || echo '$(srcdir)/'`MathMLContainerElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLContainerElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLContainerElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLContainerElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLContainerElement.cc' object='libmathml_la-MathMLContainerElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLContainerElement.lo `test -f 'MathMLContainerElement.cc' || echo '$(srcdir)/'`MathMLContainerElement.cc libmathml_la-MathMLDummyElement.lo: MathMLDummyElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLDummyElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLDummyElement.Tpo" -c -o libmathml_la-MathMLDummyElement.lo `test -f 'MathMLDummyElement.cc' || echo '$(srcdir)/'`MathMLDummyElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLDummyElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLDummyElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLDummyElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLDummyElement.cc' object='libmathml_la-MathMLDummyElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLDummyElement.lo `test -f 'MathMLDummyElement.cc' || echo '$(srcdir)/'`MathMLDummyElement.cc libmathml_la-MathMLElement.lo: MathMLElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLElement.Tpo" -c -o libmathml_la-MathMLElement.lo `test -f 'MathMLElement.cc' || echo '$(srcdir)/'`MathMLElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLElement.cc' object='libmathml_la-MathMLElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLElement.lo `test -f 'MathMLElement.cc' || echo '$(srcdir)/'`MathMLElement.cc libmathml_la-MathMLEmbellishment.lo: MathMLEmbellishment.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLEmbellishment.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLEmbellishment.Tpo" -c -o libmathml_la-MathMLEmbellishment.lo `test -f 'MathMLEmbellishment.cc' || echo '$(srcdir)/'`MathMLEmbellishment.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLEmbellishment.Tpo" "$(DEPDIR)/libmathml_la-MathMLEmbellishment.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLEmbellishment.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLEmbellishment.cc' object='libmathml_la-MathMLEmbellishment.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLEmbellishment.lo `test -f 'MathMLEmbellishment.cc' || echo '$(srcdir)/'`MathMLEmbellishment.cc libmathml_la-MathMLEncloseElement.lo: MathMLEncloseElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLEncloseElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLEncloseElement.Tpo" -c -o libmathml_la-MathMLEncloseElement.lo `test -f 'MathMLEncloseElement.cc' || echo '$(srcdir)/'`MathMLEncloseElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLEncloseElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLEncloseElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLEncloseElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLEncloseElement.cc' object='libmathml_la-MathMLEncloseElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLEncloseElement.lo `test -f 'MathMLEncloseElement.cc' || echo '$(srcdir)/'`MathMLEncloseElement.cc libmathml_la-MathMLErrorElement.lo: MathMLErrorElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLErrorElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLErrorElement.Tpo" -c -o libmathml_la-MathMLErrorElement.lo `test -f 'MathMLErrorElement.cc' || echo '$(srcdir)/'`MathMLErrorElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLErrorElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLErrorElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLErrorElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLErrorElement.cc' object='libmathml_la-MathMLErrorElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLErrorElement.lo `test -f 'MathMLErrorElement.cc' || echo '$(srcdir)/'`MathMLErrorElement.cc libmathml_la-MathMLFractionElement.lo: MathMLFractionElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLFractionElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLFractionElement.Tpo" -c -o libmathml_la-MathMLFractionElement.lo `test -f 'MathMLFractionElement.cc' || echo '$(srcdir)/'`MathMLFractionElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLFractionElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLFractionElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLFractionElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLFractionElement.cc' object='libmathml_la-MathMLFractionElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLFractionElement.lo `test -f 'MathMLFractionElement.cc' || echo '$(srcdir)/'`MathMLFractionElement.cc libmathml_la-MathMLFunctionApplicationNode.lo: MathMLFunctionApplicationNode.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLFunctionApplicationNode.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLFunctionApplicationNode.Tpo" -c -o libmathml_la-MathMLFunctionApplicationNode.lo `test -f 'MathMLFunctionApplicationNode.cc' || echo '$(srcdir)/'`MathMLFunctionApplicationNode.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLFunctionApplicationNode.Tpo" "$(DEPDIR)/libmathml_la-MathMLFunctionApplicationNode.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLFunctionApplicationNode.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLFunctionApplicationNode.cc' object='libmathml_la-MathMLFunctionApplicationNode.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLFunctionApplicationNode.lo `test -f 'MathMLFunctionApplicationNode.cc' || echo '$(srcdir)/'`MathMLFunctionApplicationNode.cc libmathml_la-MathMLGlyphNode.lo: MathMLGlyphNode.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLGlyphNode.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLGlyphNode.Tpo" -c -o libmathml_la-MathMLGlyphNode.lo `test -f 'MathMLGlyphNode.cc' || echo '$(srcdir)/'`MathMLGlyphNode.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLGlyphNode.Tpo" "$(DEPDIR)/libmathml_la-MathMLGlyphNode.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLGlyphNode.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLGlyphNode.cc' object='libmathml_la-MathMLGlyphNode.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLGlyphNode.lo `test -f 'MathMLGlyphNode.cc' || echo '$(srcdir)/'`MathMLGlyphNode.cc libmathml_la-MathMLIdentifierElement.lo: MathMLIdentifierElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLIdentifierElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLIdentifierElement.Tpo" -c -o libmathml_la-MathMLIdentifierElement.lo `test -f 'MathMLIdentifierElement.cc' || echo '$(srcdir)/'`MathMLIdentifierElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLIdentifierElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLIdentifierElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLIdentifierElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLIdentifierElement.cc' object='libmathml_la-MathMLIdentifierElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLIdentifierElement.lo `test -f 'MathMLIdentifierElement.cc' || echo '$(srcdir)/'`MathMLIdentifierElement.cc libmathml_la-MathMLInferredRowElement.lo: MathMLInferredRowElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLInferredRowElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLInferredRowElement.Tpo" -c -o libmathml_la-MathMLInferredRowElement.lo `test -f 'MathMLInferredRowElement.cc' || echo '$(srcdir)/'`MathMLInferredRowElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLInferredRowElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLInferredRowElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLInferredRowElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLInferredRowElement.cc' object='libmathml_la-MathMLInferredRowElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLInferredRowElement.lo `test -f 'MathMLInferredRowElement.cc' || echo '$(srcdir)/'`MathMLInferredRowElement.cc libmathml_la-MathMLInvisibleTimesNode.lo: MathMLInvisibleTimesNode.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLInvisibleTimesNode.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLInvisibleTimesNode.Tpo" -c -o libmathml_la-MathMLInvisibleTimesNode.lo `test -f 'MathMLInvisibleTimesNode.cc' || echo '$(srcdir)/'`MathMLInvisibleTimesNode.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLInvisibleTimesNode.Tpo" "$(DEPDIR)/libmathml_la-MathMLInvisibleTimesNode.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLInvisibleTimesNode.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLInvisibleTimesNode.cc' object='libmathml_la-MathMLInvisibleTimesNode.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLInvisibleTimesNode.lo `test -f 'MathMLInvisibleTimesNode.cc' || echo '$(srcdir)/'`MathMLInvisibleTimesNode.cc libmathml_la-MathMLLinearContainerElement.lo: MathMLLinearContainerElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLLinearContainerElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLLinearContainerElement.Tpo" -c -o libmathml_la-MathMLLinearContainerElement.lo `test -f 'MathMLLinearContainerElement.cc' || echo '$(srcdir)/'`MathMLLinearContainerElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLLinearContainerElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLLinearContainerElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLLinearContainerElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLLinearContainerElement.cc' object='libmathml_la-MathMLLinearContainerElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLLinearContainerElement.lo `test -f 'MathMLLinearContainerElement.cc' || echo '$(srcdir)/'`MathMLLinearContainerElement.cc libmathml_la-MathMLMarkNode.lo: MathMLMarkNode.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLMarkNode.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLMarkNode.Tpo" -c -o libmathml_la-MathMLMarkNode.lo `test -f 'MathMLMarkNode.cc' || echo '$(srcdir)/'`MathMLMarkNode.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLMarkNode.Tpo" "$(DEPDIR)/libmathml_la-MathMLMarkNode.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLMarkNode.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLMarkNode.cc' object='libmathml_la-MathMLMarkNode.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLMarkNode.lo `test -f 'MathMLMarkNode.cc' || echo '$(srcdir)/'`MathMLMarkNode.cc libmathml_la-MathMLMultiScriptsElement.lo: MathMLMultiScriptsElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLMultiScriptsElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLMultiScriptsElement.Tpo" -c -o libmathml_la-MathMLMultiScriptsElement.lo `test -f 'MathMLMultiScriptsElement.cc' || echo '$(srcdir)/'`MathMLMultiScriptsElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLMultiScriptsElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLMultiScriptsElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLMultiScriptsElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLMultiScriptsElement.cc' object='libmathml_la-MathMLMultiScriptsElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLMultiScriptsElement.lo `test -f 'MathMLMultiScriptsElement.cc' || echo '$(srcdir)/'`MathMLMultiScriptsElement.cc libmathml_la-MathMLNamespaceContext.lo: MathMLNamespaceContext.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLNamespaceContext.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLNamespaceContext.Tpo" -c -o libmathml_la-MathMLNamespaceContext.lo `test -f 'MathMLNamespaceContext.cc' || echo '$(srcdir)/'`MathMLNamespaceContext.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLNamespaceContext.Tpo" "$(DEPDIR)/libmathml_la-MathMLNamespaceContext.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLNamespaceContext.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLNamespaceContext.cc' object='libmathml_la-MathMLNamespaceContext.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLNamespaceContext.lo `test -f 'MathMLNamespaceContext.cc' || echo '$(srcdir)/'`MathMLNamespaceContext.cc libmathml_la-MathMLNode.lo: MathMLNode.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLNode.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLNode.Tpo" -c -o libmathml_la-MathMLNode.lo `test -f 'MathMLNode.cc' || echo '$(srcdir)/'`MathMLNode.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLNode.Tpo" "$(DEPDIR)/libmathml_la-MathMLNode.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLNode.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLNode.cc' object='libmathml_la-MathMLNode.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLNode.lo `test -f 'MathMLNode.cc' || echo '$(srcdir)/'`MathMLNode.cc libmathml_la-MathMLNormalizingContainerElement.lo: MathMLNormalizingContainerElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLNormalizingContainerElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLNormalizingContainerElement.Tpo" -c -o libmathml_la-MathMLNormalizingContainerElement.lo `test -f 'MathMLNormalizingContainerElement.cc' || echo '$(srcdir)/'`MathMLNormalizingContainerElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLNormalizingContainerElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLNormalizingContainerElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLNormalizingContainerElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLNormalizingContainerElement.cc' object='libmathml_la-MathMLNormalizingContainerElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLNormalizingContainerElement.lo `test -f 'MathMLNormalizingContainerElement.cc' || echo '$(srcdir)/'`MathMLNormalizingContainerElement.cc libmathml_la-MathMLNumberElement.lo: MathMLNumberElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLNumberElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLNumberElement.Tpo" -c -o libmathml_la-MathMLNumberElement.lo `test -f 'MathMLNumberElement.cc' || echo '$(srcdir)/'`MathMLNumberElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLNumberElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLNumberElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLNumberElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLNumberElement.cc' object='libmathml_la-MathMLNumberElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLNumberElement.lo `test -f 'MathMLNumberElement.cc' || echo '$(srcdir)/'`MathMLNumberElement.cc libmathml_la-MathMLOperatorDictionary.lo: MathMLOperatorDictionary.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLOperatorDictionary.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLOperatorDictionary.Tpo" -c -o libmathml_la-MathMLOperatorDictionary.lo `test -f 'MathMLOperatorDictionary.cc' || echo '$(srcdir)/'`MathMLOperatorDictionary.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLOperatorDictionary.Tpo" "$(DEPDIR)/libmathml_la-MathMLOperatorDictionary.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLOperatorDictionary.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLOperatorDictionary.cc' object='libmathml_la-MathMLOperatorDictionary.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLOperatorDictionary.lo `test -f 'MathMLOperatorDictionary.cc' || echo '$(srcdir)/'`MathMLOperatorDictionary.cc libmathml_la-MathMLOperatorElement.lo: MathMLOperatorElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLOperatorElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLOperatorElement.Tpo" -c -o libmathml_la-MathMLOperatorElement.lo `test -f 'MathMLOperatorElement.cc' || echo '$(srcdir)/'`MathMLOperatorElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLOperatorElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLOperatorElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLOperatorElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLOperatorElement.cc' object='libmathml_la-MathMLOperatorElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLOperatorElement.lo `test -f 'MathMLOperatorElement.cc' || echo '$(srcdir)/'`MathMLOperatorElement.cc libmathml_la-MathMLPaddedElement.lo: MathMLPaddedElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLPaddedElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLPaddedElement.Tpo" -c -o libmathml_la-MathMLPaddedElement.lo `test -f 'MathMLPaddedElement.cc' || echo '$(srcdir)/'`MathMLPaddedElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLPaddedElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLPaddedElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLPaddedElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLPaddedElement.cc' object='libmathml_la-MathMLPaddedElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLPaddedElement.lo `test -f 'MathMLPaddedElement.cc' || echo '$(srcdir)/'`MathMLPaddedElement.cc libmathml_la-MathMLPhantomElement.lo: MathMLPhantomElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLPhantomElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLPhantomElement.Tpo" -c -o libmathml_la-MathMLPhantomElement.lo `test -f 'MathMLPhantomElement.cc' || echo '$(srcdir)/'`MathMLPhantomElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLPhantomElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLPhantomElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLPhantomElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLPhantomElement.cc' object='libmathml_la-MathMLPhantomElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLPhantomElement.lo `test -f 'MathMLPhantomElement.cc' || echo '$(srcdir)/'`MathMLPhantomElement.cc libmathml_la-MathMLRadicalElement.lo: MathMLRadicalElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLRadicalElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLRadicalElement.Tpo" -c -o libmathml_la-MathMLRadicalElement.lo `test -f 'MathMLRadicalElement.cc' || echo '$(srcdir)/'`MathMLRadicalElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLRadicalElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLRadicalElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLRadicalElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLRadicalElement.cc' object='libmathml_la-MathMLRadicalElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLRadicalElement.lo `test -f 'MathMLRadicalElement.cc' || echo '$(srcdir)/'`MathMLRadicalElement.cc libmathml_la-MathMLRowElement.lo: MathMLRowElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLRowElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLRowElement.Tpo" -c -o libmathml_la-MathMLRowElement.lo `test -f 'MathMLRowElement.cc' || echo '$(srcdir)/'`MathMLRowElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLRowElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLRowElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLRowElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLRowElement.cc' object='libmathml_la-MathMLRowElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLRowElement.lo `test -f 'MathMLRowElement.cc' || echo '$(srcdir)/'`MathMLRowElement.cc libmathml_la-MathMLScriptElement.lo: MathMLScriptElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLScriptElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLScriptElement.Tpo" -c -o libmathml_la-MathMLScriptElement.lo `test -f 'MathMLScriptElement.cc' || echo '$(srcdir)/'`MathMLScriptElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLScriptElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLScriptElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLScriptElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLScriptElement.cc' object='libmathml_la-MathMLScriptElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLScriptElement.lo `test -f 'MathMLScriptElement.cc' || echo '$(srcdir)/'`MathMLScriptElement.cc libmathml_la-MathMLSpaceElement.lo: MathMLSpaceElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLSpaceElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLSpaceElement.Tpo" -c -o libmathml_la-MathMLSpaceElement.lo `test -f 'MathMLSpaceElement.cc' || echo '$(srcdir)/'`MathMLSpaceElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLSpaceElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLSpaceElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLSpaceElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLSpaceElement.cc' object='libmathml_la-MathMLSpaceElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLSpaceElement.lo `test -f 'MathMLSpaceElement.cc' || echo '$(srcdir)/'`MathMLSpaceElement.cc libmathml_la-MathMLStringLitElement.lo: MathMLStringLitElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLStringLitElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLStringLitElement.Tpo" -c -o libmathml_la-MathMLStringLitElement.lo `test -f 'MathMLStringLitElement.cc' || echo '$(srcdir)/'`MathMLStringLitElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLStringLitElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLStringLitElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLStringLitElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLStringLitElement.cc' object='libmathml_la-MathMLStringLitElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLStringLitElement.lo `test -f 'MathMLStringLitElement.cc' || echo '$(srcdir)/'`MathMLStringLitElement.cc libmathml_la-MathMLStringNode.lo: MathMLStringNode.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLStringNode.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLStringNode.Tpo" -c -o libmathml_la-MathMLStringNode.lo `test -f 'MathMLStringNode.cc' || echo '$(srcdir)/'`MathMLStringNode.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLStringNode.Tpo" "$(DEPDIR)/libmathml_la-MathMLStringNode.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLStringNode.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLStringNode.cc' object='libmathml_la-MathMLStringNode.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLStringNode.lo `test -f 'MathMLStringNode.cc' || echo '$(srcdir)/'`MathMLStringNode.cc libmathml_la-MathMLStyleElement.lo: MathMLStyleElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLStyleElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLStyleElement.Tpo" -c -o libmathml_la-MathMLStyleElement.lo `test -f 'MathMLStyleElement.cc' || echo '$(srcdir)/'`MathMLStyleElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLStyleElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLStyleElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLStyleElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLStyleElement.cc' object='libmathml_la-MathMLStyleElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLStyleElement.lo `test -f 'MathMLStyleElement.cc' || echo '$(srcdir)/'`MathMLStyleElement.cc libmathml_la-MathMLTableCellElement.lo: MathMLTableCellElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLTableCellElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLTableCellElement.Tpo" -c -o libmathml_la-MathMLTableCellElement.lo `test -f 'MathMLTableCellElement.cc' || echo '$(srcdir)/'`MathMLTableCellElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLTableCellElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLTableCellElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLTableCellElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLTableCellElement.cc' object='libmathml_la-MathMLTableCellElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLTableCellElement.lo `test -f 'MathMLTableCellElement.cc' || echo '$(srcdir)/'`MathMLTableCellElement.cc libmathml_la-MathMLTableContentFactory.lo: MathMLTableContentFactory.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLTableContentFactory.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLTableContentFactory.Tpo" -c -o libmathml_la-MathMLTableContentFactory.lo `test -f 'MathMLTableContentFactory.cc' || echo '$(srcdir)/'`MathMLTableContentFactory.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLTableContentFactory.Tpo" "$(DEPDIR)/libmathml_la-MathMLTableContentFactory.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLTableContentFactory.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLTableContentFactory.cc' object='libmathml_la-MathMLTableContentFactory.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLTableContentFactory.lo `test -f 'MathMLTableContentFactory.cc' || echo '$(srcdir)/'`MathMLTableContentFactory.cc libmathml_la-MathMLTableElement.lo: MathMLTableElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLTableElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLTableElement.Tpo" -c -o libmathml_la-MathMLTableElement.lo `test -f 'MathMLTableElement.cc' || echo '$(srcdir)/'`MathMLTableElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLTableElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLTableElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLTableElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLTableElement.cc' object='libmathml_la-MathMLTableElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLTableElement.lo `test -f 'MathMLTableElement.cc' || echo '$(srcdir)/'`MathMLTableElement.cc libmathml_la-MathMLTableFormatter.lo: MathMLTableFormatter.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLTableFormatter.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLTableFormatter.Tpo" -c -o libmathml_la-MathMLTableFormatter.lo `test -f 'MathMLTableFormatter.cc' || echo '$(srcdir)/'`MathMLTableFormatter.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLTableFormatter.Tpo" "$(DEPDIR)/libmathml_la-MathMLTableFormatter.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLTableFormatter.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLTableFormatter.cc' object='libmathml_la-MathMLTableFormatter.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLTableFormatter.lo `test -f 'MathMLTableFormatter.cc' || echo '$(srcdir)/'`MathMLTableFormatter.cc libmathml_la-MathMLTextElement.lo: MathMLTextElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLTextElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLTextElement.Tpo" -c -o libmathml_la-MathMLTextElement.lo `test -f 'MathMLTextElement.cc' || echo '$(srcdir)/'`MathMLTextElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLTextElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLTextElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLTextElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLTextElement.cc' object='libmathml_la-MathMLTextElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLTextElement.lo `test -f 'MathMLTextElement.cc' || echo '$(srcdir)/'`MathMLTextElement.cc libmathml_la-MathMLTextNode.lo: MathMLTextNode.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLTextNode.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLTextNode.Tpo" -c -o libmathml_la-MathMLTextNode.lo `test -f 'MathMLTextNode.cc' || echo '$(srcdir)/'`MathMLTextNode.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLTextNode.Tpo" "$(DEPDIR)/libmathml_la-MathMLTextNode.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLTextNode.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLTextNode.cc' object='libmathml_la-MathMLTextNode.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLTextNode.lo `test -f 'MathMLTextNode.cc' || echo '$(srcdir)/'`MathMLTextNode.cc libmathml_la-MathMLTokenElement.lo: MathMLTokenElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLTokenElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLTokenElement.Tpo" -c -o libmathml_la-MathMLTokenElement.lo `test -f 'MathMLTokenElement.cc' || echo '$(srcdir)/'`MathMLTokenElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLTokenElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLTokenElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLTokenElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLTokenElement.cc' object='libmathml_la-MathMLTokenElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLTokenElement.lo `test -f 'MathMLTokenElement.cc' || echo '$(srcdir)/'`MathMLTokenElement.cc libmathml_la-MathMLUnderOverElement.lo: MathMLUnderOverElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLUnderOverElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLUnderOverElement.Tpo" -c -o libmathml_la-MathMLUnderOverElement.lo `test -f 'MathMLUnderOverElement.cc' || echo '$(srcdir)/'`MathMLUnderOverElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLUnderOverElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLUnderOverElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLUnderOverElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLUnderOverElement.cc' object='libmathml_la-MathMLUnderOverElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLUnderOverElement.lo `test -f 'MathMLUnderOverElement.cc' || echo '$(srcdir)/'`MathMLUnderOverElement.cc libmathml_la-MathMLValueConversion.lo: MathMLValueConversion.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLValueConversion.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLValueConversion.Tpo" -c -o libmathml_la-MathMLValueConversion.lo `test -f 'MathMLValueConversion.cc' || echo '$(srcdir)/'`MathMLValueConversion.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLValueConversion.Tpo" "$(DEPDIR)/libmathml_la-MathMLValueConversion.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLValueConversion.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLValueConversion.cc' object='libmathml_la-MathMLValueConversion.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLValueConversion.lo `test -f 'MathMLValueConversion.cc' || echo '$(srcdir)/'`MathMLValueConversion.cc libmathml_la-MathMLmathElement.lo: MathMLmathElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-MathMLmathElement.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-MathMLmathElement.Tpo" -c -o libmathml_la-MathMLmathElement.lo `test -f 'MathMLmathElement.cc' || echo '$(srcdir)/'`MathMLmathElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-MathMLmathElement.Tpo" "$(DEPDIR)/libmathml_la-MathMLmathElement.Plo"; else rm -f "$(DEPDIR)/libmathml_la-MathMLmathElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLmathElement.cc' object='libmathml_la-MathMLmathElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-MathMLmathElement.lo `test -f 'MathMLmathElement.cc' || echo '$(srcdir)/'`MathMLmathElement.cc libmathml_la-mathVariantAux.lo: mathVariantAux.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-mathVariantAux.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-mathVariantAux.Tpo" -c -o libmathml_la-mathVariantAux.lo `test -f 'mathVariantAux.cc' || echo '$(srcdir)/'`mathVariantAux.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-mathVariantAux.Tpo" "$(DEPDIR)/libmathml_la-mathVariantAux.Plo"; else rm -f "$(DEPDIR)/libmathml_la-mathVariantAux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='mathVariantAux.cc' object='libmathml_la-mathVariantAux.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-mathVariantAux.lo `test -f 'mathVariantAux.cc' || echo '$(srcdir)/'`mathVariantAux.cc libmathml_la-traverseAux.lo: traverseAux.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathml_la-traverseAux.lo -MD -MP -MF "$(DEPDIR)/libmathml_la-traverseAux.Tpo" -c -o libmathml_la-traverseAux.lo `test -f 'traverseAux.cc' || echo '$(srcdir)/'`traverseAux.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathml_la-traverseAux.Tpo" "$(DEPDIR)/libmathml_la-traverseAux.Plo"; else rm -f "$(DEPDIR)/libmathml_la-traverseAux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='traverseAux.cc' object='libmathml_la-traverseAux.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathml_la-traverseAux.lo `test -f 'traverseAux.cc' || echo '$(srcdir)/'`traverseAux.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-mathviewHEADERS: $(mathview_HEADERS) @$(NORMAL_INSTALL) test -z "$(mathviewdir)" || $(mkdir_p) "$(DESTDIR)$(mathviewdir)" @list='$(mathview_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(mathviewHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(mathviewdir)/$$f'"; \ $(mathviewHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(mathviewdir)/$$f"; \ done uninstall-mathviewHEADERS: @$(NORMAL_UNINSTALL) @list='$(mathview_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(mathviewdir)/$$f'"; \ rm -f "$(DESTDIR)$(mathviewdir)/$$f"; \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(mathviewdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-mathviewHEADERS install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-mathviewHEADERS .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-mathviewHEADERS install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-info-am \ uninstall-mathviewHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/src/engine/mathml/MathMLNode.hh0000644000175000017500000000212310661271076016565 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLNode_hh__ #define __MathMLNode_hh__ #include "Node.hh" #include "WeakPtr.hh" #include "SmartPtr.hh" class GMV_MathView_EXPORT MathMLNode : public Node { protected: MathMLNode(void); virtual ~MathMLNode(); }; #endif // __MathMLNode_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLIdentifierElement.hh0000644000175000017500000000253010661271076021276 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLIdentifierElement_hh__ #define __MathMLIdentifierElement_hh__ #include "MathMLTokenElement.hh" class GMV_MathView_EXPORT MathMLIdentifierElement : public MathMLTokenElement { protected: MathMLIdentifierElement(const SmartPtr&); virtual ~MathMLIdentifierElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLIdentifierElement(view); } }; #endif // __MathMLIdentifierElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLTokenElement.hh0000644000175000017500000000467010661271076020303 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLTokenElement_hh__ #define __MathMLTokenElement_hh__ #include "MathMLElement.hh" #include "MathMLTextNode.hh" #include "LinearContainerTemplate.hh" // base class for token element. Token elemens can contain character data // and a very limited set of other MathML elements (e.g. ) class GMV_MathView_EXPORT MathMLTokenElement : public MathMLElement { protected: MathMLTokenElement(const SmartPtr&); virtual ~MathMLTokenElement(); public: unsigned getSize(void) const { return content.getSize(); } void setSize(unsigned i) { content.setSize(this, i); } SmartPtr getChild(unsigned i) const { return content.getChild(i); } void setChild(unsigned i, const SmartPtr& child) { content.setChild(this, i, child); } void appendChild(const SmartPtr& child) { content.appendChild(this, child); } void append(const String&); void swapContent(std::vector< SmartPtr >& newContent) { content.swapContent(this, newContent); } const std::vector< SmartPtr >& getContent(void) const { return content.getContent(); } virtual AreaRef format(class FormattingContext&); bool IsNonMarking(void) const; String GetRawContent(void) const; unsigned GetLogicalContentLength(void) const; unsigned getContentLength(void) const; private: LinearContainerTemplate content; protected: AreaRef formatAux(class FormattingContext&); void AddItalicCorrection(void); }; #endif // __MathMLTokenElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLStyleElement.cc0000644000175000017500000001276310661271076020313 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AreaFactory.hh" #include "mathVariantAux.hh" #include "ValueConversion.hh" #include "MathMLStyleElement.hh" #include "MathMLOperatorElement.hh" #include "MathMLAttributeSignatures.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" MathMLStyleElement::MathMLStyleElement(const SmartPtr& context) : MathMLNormalizingContainerElement(context) { } MathMLStyleElement::~MathMLStyleElement() { } AreaRef MathMLStyleElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Style, displaystyle)) ctxt.setDisplayStyle(ToBoolean(value)); if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Style, scriptsizemultiplier)) ctxt.setSizeMultiplier(ToNumber(value)); if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Style, scriptminsize)) ctxt.setMinSize(ctxt.MGD()->evaluate(ctxt, ToLength(value), ctxt.getMinSize())); if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Style, scriptlevel)) { SmartPtr p = GetComponent(value, 0); if (IsEmpty(p)) { SmartPtr p = GetComponent(value, 1); assert(p); int scriptLevel = ToInteger(p); if (scriptLevel < 0) scriptLevel = 0; ctxt.setScriptLevel(scriptLevel); } else { int sign = (ToTokenId(p) == T__MINUS) ? -1 : 1; p = GetComponent(value, 1); assert(p); int scriptLevel = ToInteger(p); if (scriptLevel < 0) scriptLevel = 0; ctxt.addScriptLevel(sign * scriptLevel); } } const RGBColor oldColor = ctxt.getColor(); if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Style, mathcolor)) ctxt.setColor(ToRGB(value)); else if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Style, color)) ctxt.setColor(ToRGB(value)); const RGBColor color = ctxt.getColor(); const RGBColor oldBackground = ctxt.getBackground(); if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Style, mathbackground)) { if (!IsTokenId(value) || ToTokenId(value) != T_TRANSPARENT) ctxt.setBackground(ToRGB(value)); } else if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Style, background)) { if (!IsTokenId(value) || ToTokenId(value) != T_TRANSPARENT) ctxt.setBackground(ToRGB(value)); } const RGBColor background = ctxt.getBackground(); static const AttributeId spaceId[] = { ATTRIBUTE_ID(MathML, Style, negativeveryverythickmathspace), ATTRIBUTE_ID(MathML, Style, negativeverythickmathspace), ATTRIBUTE_ID(MathML, Style, negativethickmathspace), ATTRIBUTE_ID(MathML, Style, negativemediummathspace), ATTRIBUTE_ID(MathML, Style, negativethinmathspace), ATTRIBUTE_ID(MathML, Style, negativeverythinmathspace), ATTRIBUTE_ID(MathML, Style, negativeveryverythinmathspace), 0, ATTRIBUTE_ID(MathML, Style, veryverythinmathspace), ATTRIBUTE_ID(MathML, Style, verythinmathspace), ATTRIBUTE_ID(MathML, Style, thinmathspace), ATTRIBUTE_ID(MathML, Style, mediummathspace), ATTRIBUTE_ID(MathML, Style, thickmathspace), ATTRIBUTE_ID(MathML, Style, verythickmathspace), ATTRIBUTE_ID(MathML, Style, veryverythickmathspace) }; for (unsigned i = 0; i < (sizeof(spaceId) / sizeof(AttributeId)); i++) if (spaceId[i]) if (SmartPtr value = getAttributeValue(*spaceId[i])) ctxt.setMathSpace(FormattingContext::NEGATIVE_VERYVERYTHICK_SPACE + i, ToLength(value)); // the following attributes, thought not directly supported by // must be parsed here since they are always inherited by other elements if (SmartPtr value = GET_ATTRIBUTE_VALUE(MathML, Style, mathsize)) { if (IsTokenId(value)) switch (ToTokenId(value)) { case T_SMALL: ctxt.addScriptLevel(1); break; case T_BIG: ctxt.addScriptLevel(-1); break; case T_NORMAL: break; // noop default: assert(false); break; } else ctxt.setSize(ctxt.MGD()->evaluate(ctxt, ToLength(value), ctxt.getSize())); } AreaRef res = getChild()->format(ctxt); if (color != oldColor) res = ctxt.MGD()->getFactory()->color(res, color); if (background != oldBackground) res = ctxt.MGD()->getFactory()->background(res, background); setArea(res); ctxt.pop(); resetDirtyLayout(); } return getArea(); } bool MathMLStyleElement::IsSpaceLike() const { assert(getChild()); return getChild()->IsSpaceLike(); } void MathMLStyleElement::setDirtyAttribute() { setDirtyAttributeD(); } SmartPtr MathMLStyleElement::getCoreOperator() { return getChild() ? getChild()->getCoreOperator() : 0; } gtkmathview-0.8.0/src/engine/mathml/MathMLPhantomElement.hh0000644000175000017500000000310010661271076020614 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLPhantomElement_hh__ #define __MathMLPhantomElement_hh__ #include "MathMLEmbellishment.hh" #include "MathMLNormalizingContainerElement.hh" class GMV_MathView_EXPORT MathMLPhantomElement : public MathMLNormalizingContainerElement, public MathMLEmbellishment { public: MathMLPhantomElement(const SmartPtr&); virtual ~MathMLPhantomElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLPhantomElement(view); } virtual AreaRef format(class FormattingContext&); virtual bool IsSpaceLike(void) const; virtual SmartPtr getCoreOperator(void); }; #endif // __MathMLPhantomElement_hh__ gtkmathview-0.8.0/src/engine/mathml/MathMLDummyElement.cc0000644000175000017500000000252010661271076020274 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathMLDummyElement.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" MathMLDummyElement::MathMLDummyElement(const SmartPtr& context) : MathMLElement(context) { } MathMLDummyElement::~MathMLDummyElement() { } AreaRef MathMLDummyElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); setArea(ctxt.MGD()->dummy(ctxt)); ctxt.pop(); } return getArea(); } gtkmathview-0.8.0/src/engine/mathml/MathMLNumberElement.hh0000644000175000017500000000247010661271076020447 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLNumberElement_hh__ #define __MathMLNumberElement_hh__ #include "MathMLTokenElement.hh" class GMV_MathView_EXPORT MathMLNumberElement : public MathMLTokenElement { protected: MathMLNumberElement(const SmartPtr&); virtual ~MathMLNumberElement(); public: static SmartPtr create(const SmartPtr& view) { return new MathMLNumberElement(view); } }; #endif // __MathMLNumberElement_hh__ gtkmathview-0.8.0/src/engine/adapters/0000777000175000017500000000000010704625461014722 500000000000000gtkmathview-0.8.0/src/engine/adapters/BoxMLMathMLAdapter.hh0000644000175000017500000000344410661271076020512 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLMathMLAdapter_hh__ #define __BoxMLMathMLAdapter_hh__ #include "BoxMLElement.hh" #include "MathMLElement.hh" #include "BinContainerTemplate.hh" class BoxMLMathMLAdapter : public BoxMLElement { protected: BoxMLMathMLAdapter(const SmartPtr&); virtual ~BoxMLMathMLAdapter(); public: static SmartPtr create(const SmartPtr&); virtual AreaRef format(class FormattingContext&); SmartPtr getChild(void) const { return content.getChild(); } void setChild(const SmartPtr& child) { content.setChild(this, child); } virtual void setFlagDown(Flags f) { BoxMLElement::setFlagDown(f); content.setFlagDown(f); } virtual void resetFlagDown(Flags f) { BoxMLElement::resetFlagDown(f); content.resetFlagDown(f); } private: BinContainerTemplate content; }; #endif // __BoxMLMathMLAdapter_hh__ gtkmathview-0.8.0/src/engine/adapters/MathMLBoxMLAdapter.hh0000644000175000017500000000344610661271076020514 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathMLBoxMLAdapter_hh__ #define __MathMLBoxMLAdapter_hh__ #include "BoxMLElement.hh" #include "MathMLElement.hh" #include "BinContainerTemplate.hh" class MathMLBoxMLAdapter : public MathMLElement { protected: MathMLBoxMLAdapter(const SmartPtr&); virtual ~MathMLBoxMLAdapter(); public: static SmartPtr create(const SmartPtr&); virtual AreaRef format(class FormattingContext&); SmartPtr getChild(void) const { return content.getChild(); } void setChild(const SmartPtr& child) { content.setChild(this, child); } virtual void setFlagDown(Flags f) { MathMLElement::setFlagDown(f); content.setFlagDown(f); } virtual void resetFlagDown(Flags f) { MathMLElement::resetFlagDown(f); content.resetFlagDown(f); } private: BinContainerTemplate content; }; #endif // __MathMLBoxMLAdapter_hh__ gtkmathview-0.8.0/src/engine/adapters/BoxMLMathMLAdapter.cc0000644000175000017500000000341510661271076020476 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "MathMLElement.hh" #include "BoxMLMathMLAdapter.hh" #include "BoxMLNamespaceContext.hh" #include "MathMLNamespaceContext.hh" #include "View.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" #include "BoxGraphicDevice.hh" BoxMLMathMLAdapter::BoxMLMathMLAdapter(const SmartPtr& context) : BoxMLElement(context) { } BoxMLMathMLAdapter::~BoxMLMathMLAdapter() { } SmartPtr BoxMLMathMLAdapter::create(const SmartPtr& context) { return new BoxMLMathMLAdapter(context); } AreaRef BoxMLMathMLAdapter::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); ctxt.setMathMode(true); if (SmartPtr child = getChild()) setArea(ctxt.BGD()->wrapper(ctxt, child->format(ctxt))); else setArea(ctxt.BGD()->dummy(ctxt)); ctxt.pop(); resetDirtyLayout(); } return getArea(); } gtkmathview-0.8.0/src/engine/adapters/MathMLBoxMLAdapter.cc0000644000175000017500000000342010661271076020472 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "MathMLElement.hh" #include "MathMLBoxMLAdapter.hh" #include "BoxMLNamespaceContext.hh" #include "MathMLNamespaceContext.hh" #include "View.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" #include "BoxGraphicDevice.hh" MathMLBoxMLAdapter::MathMLBoxMLAdapter(const SmartPtr& context) : MathMLElement(context) { } MathMLBoxMLAdapter::~MathMLBoxMLAdapter() { } SmartPtr MathMLBoxMLAdapter::create(const SmartPtr& context) { return new MathMLBoxMLAdapter(context); } AreaRef MathMLBoxMLAdapter::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); ctxt.setMathMode(false); if (SmartPtr child = getChild()) setArea(ctxt.MGD()->wrapper(ctxt, child->format(ctxt))); else setArea(ctxt.MGD()->dummy(ctxt)); ctxt.pop(); resetDirtyLayout(); } return getArea(); } gtkmathview-0.8.0/src/engine/adapters/Makefile.am0000644000175000017500000000103510613606750016670 00000000000000 NULL = noinst_LTLIBRARIES = libadapters.la libadapters_la_CPPFLAGS = -DGMV_MathView_DLL libadapters_la_SOURCES = \ BoxMLMathMLAdapter.cc \ MathMLBoxMLAdapter.cc \ $(NULL) noinst_HEADERS = \ BoxMLMathMLAdapter.hh \ MathMLBoxMLAdapter.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ $(NULL) gtkmathview-0.8.0/src/engine/adapters/Makefile.in0000644000175000017500000004506510704610550016706 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/engine/adapters DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libadapters_la_LIBADD = am__objects_1 = am_libadapters_la_OBJECTS = libadapters_la-BoxMLMathMLAdapter.lo \ libadapters_la-MathMLBoxMLAdapter.lo $(am__objects_1) libadapters_la_OBJECTS = $(am_libadapters_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libadapters_la_SOURCES) DIST_SOURCES = $(libadapters_la_SOURCES) HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = noinst_LTLIBRARIES = libadapters.la libadapters_la_CPPFLAGS = -DGMV_MathView_DLL libadapters_la_SOURCES = \ BoxMLMathMLAdapter.cc \ MathMLBoxMLAdapter.cc \ $(NULL) noinst_HEADERS = \ BoxMLMathMLAdapter.hh \ MathMLBoxMLAdapter.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/backend/common \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/engine/adapters/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/engine/adapters/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libadapters.la: $(libadapters_la_OBJECTS) $(libadapters_la_DEPENDENCIES) $(CXXLINK) $(libadapters_la_LDFLAGS) $(libadapters_la_OBJECTS) $(libadapters_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libadapters_la-BoxMLMathMLAdapter.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libadapters_la-MathMLBoxMLAdapter.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libadapters_la-BoxMLMathMLAdapter.lo: BoxMLMathMLAdapter.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libadapters_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libadapters_la-BoxMLMathMLAdapter.lo -MD -MP -MF "$(DEPDIR)/libadapters_la-BoxMLMathMLAdapter.Tpo" -c -o libadapters_la-BoxMLMathMLAdapter.lo `test -f 'BoxMLMathMLAdapter.cc' || echo '$(srcdir)/'`BoxMLMathMLAdapter.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libadapters_la-BoxMLMathMLAdapter.Tpo" "$(DEPDIR)/libadapters_la-BoxMLMathMLAdapter.Plo"; else rm -f "$(DEPDIR)/libadapters_la-BoxMLMathMLAdapter.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLMathMLAdapter.cc' object='libadapters_la-BoxMLMathMLAdapter.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libadapters_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libadapters_la-BoxMLMathMLAdapter.lo `test -f 'BoxMLMathMLAdapter.cc' || echo '$(srcdir)/'`BoxMLMathMLAdapter.cc libadapters_la-MathMLBoxMLAdapter.lo: MathMLBoxMLAdapter.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libadapters_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libadapters_la-MathMLBoxMLAdapter.lo -MD -MP -MF "$(DEPDIR)/libadapters_la-MathMLBoxMLAdapter.Tpo" -c -o libadapters_la-MathMLBoxMLAdapter.lo `test -f 'MathMLBoxMLAdapter.cc' || echo '$(srcdir)/'`MathMLBoxMLAdapter.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libadapters_la-MathMLBoxMLAdapter.Tpo" "$(DEPDIR)/libadapters_la-MathMLBoxMLAdapter.Plo"; else rm -f "$(DEPDIR)/libadapters_la-MathMLBoxMLAdapter.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathMLBoxMLAdapter.cc' object='libadapters_la-MathMLBoxMLAdapter.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libadapters_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libadapters_la-MathMLBoxMLAdapter.lo `test -f 'MathMLBoxMLAdapter.cc' || echo '$(srcdir)/'`MathMLBoxMLAdapter.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/src/engine/Makefile.am0000644000175000017500000000022610613606751015067 00000000000000 NULL = if COND_BOXML MAYBE_BOXML_SUBDIRS = boxml adapters else MAYBE_BOXML_SUBDIRS = $(NULL) endif SUBDIRS = common mathml $(MAYBE_BOXML_SUBDIRS) gtkmathview-0.8.0/src/engine/boxml/0000777000175000017500000000000010704625460014237 500000000000000gtkmathview-0.8.0/src/engine/boxml/BoxMLActionElement.cc0000644000175000017500000000665310661271074020125 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "for_each_if.h" #include "Adapters.hh" #include "AbstractLogger.hh" #include "BoxMLAttributeSignatures.hh" #include "ValueConversion.hh" #include "BoxMLActionElement.hh" #include "FormattingContext.hh" #include "BoxGraphicDevice.hh" BoxMLActionElement::BoxMLActionElement(const SmartPtr& context) : BoxMLLinearContainerElement(context) { } BoxMLActionElement::~BoxMLActionElement() { } SmartPtr BoxMLActionElement::create(const SmartPtr& context) { return new BoxMLActionElement(context); } AreaRef BoxMLActionElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); if (SmartPtr value = GET_ATTRIBUTE_VALUE(BoxML, Action, selection)) selection = ToInteger(value) - 1; else selection = 0; if (SmartPtr vAction = GET_ATTRIBUTE_VALUE(BoxML, Action, actiontype)) { String action = ToString(vAction); if (action == "toggle") { // nothing to do, selecting the element is just fine // but we want to have cycling selection %= getSize(); } else getLogger()->out(LOG_WARNING, "action `%s' is not supported (ignored)", action.c_str()); } else getLogger()->out(LOG_WARNING, "no action specified for `maction' element"); if (SmartPtr elem = getChild(selection)) { elem->format(ctxt); AreaRef res = ctxt.BGD()->wrapper(ctxt, elem->getMaxArea()); setMaxArea(res); if (res->box().width > ctxt.getAvailableWidth()) res = ctxt.BGD()->wrapper(ctxt, elem->getArea()); setArea(res); } else setArea(ctxt.BGD()->wrapper(ctxt, ctxt.BGD()->dummy(ctxt))); ctxt.pop(); resetDirtyLayout(); } return getArea(); } SmartPtr BoxMLActionElement::getSelectedElement() const { return (selection < content.getSize()) ? content.getChild(selection) : SmartPtr(0); } void BoxMLActionElement::setSelectedIndex(unsigned i) { assert(false); if (content.getSize() > 0 && selection != (i - 1) % content.getSize()) { selection = (i - 1) % content.getSize(); if (SmartPtr elem = getSelectedElement()) { elem->setDirtyLayout(); if (elem->dirtyAttribute() || elem->dirtyAttributeP()) this->setDirtyAttribute(); } // has to set dirtyLayout itself because if the children hasn't been visited yet // then its Dirtylayout flag is still set and it won't be propagated up setDirtyLayout(); } } unsigned BoxMLActionElement::getSelectedIndex() const { return (content.getSize() > 0) ? selection + 1 : 0; } gtkmathview-0.8.0/src/engine/boxml/BoxMLTextElement.hh0000644000175000017500000000261510661271074017640 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLTextElement_hh__ #define __BoxMLTextElement_hh__ #include "BoxMLElement.hh" class GMV_MathView_EXPORT BoxMLTextElement : public BoxMLElement { protected: BoxMLTextElement(const SmartPtr&); virtual ~BoxMLTextElement(); public: static SmartPtr create(const SmartPtr&); virtual AreaRef format(class FormattingContext&); void setContent(const String&); String getContent(void) const { return content; } private: String content; }; #endif // __BoxMLTextElement_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLHOVElement.hh0000644000175000017500000000246110661271074017347 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLHOVElement_hh__ #define __BoxMLHOVElement_hh__ #include "BoxMLLinearContainerElement.hh" class GMV_MathView_EXPORT BoxMLHOVElement : public BoxMLLinearContainerElement { protected: BoxMLHOVElement(const SmartPtr&); virtual ~BoxMLHOVElement(); public: static SmartPtr create(const SmartPtr&); virtual AreaRef format(class FormattingContext&); }; #endif // __BoxMLHOVElement_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLGroupElement.cc0000644000175000017500000000355710661271074020004 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "BoxMLGroupElement.hh" #include "FormattingContext.hh" #include "BoxMLAttributeSignatures.hh" BoxMLGroupElement::BoxMLGroupElement(const SmartPtr& context) : BoxMLLinearContainerElement(context) { } BoxMLGroupElement::~BoxMLGroupElement() { } SmartPtr BoxMLGroupElement::create(const SmartPtr& context) { return new BoxMLGroupElement(context); } AreaRef BoxMLGroupElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); ctxt.pop(); resetDirtyLayout(); } return getArea(); } void BoxMLGroupElement::formatContent(FormattingContext& ctxt, std::vector& areas) { ctxt.push(this); for (std::vector< SmartPtr >::const_iterator p = content.begin(); p != content.end(); p++) if (SmartPtr group = smart_cast(*p)) group->formatContent(ctxt, areas); else areas.push_back((*p)->format(ctxt)); ctxt.pop(); } gtkmathview-0.8.0/src/engine/boxml/BoxMLSpaceElement.hh0000644000175000017500000000254010661271074017744 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLSpaceElement_hh__ #define __BoxMLSpaceElement_hh__ #include "BoxMLElement.hh" class GMV_MathView_EXPORT BoxMLSpaceElement : public BoxMLElement { protected: BoxMLSpaceElement(const SmartPtr&); virtual ~BoxMLSpaceElement(); public: static SmartPtr create(const SmartPtr&); virtual AreaRef format(class FormattingContext&); protected: AreaRef makeSpaceArea(class FormattingContext&); }; #endif // __BoxMLSpaceElement_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLNamespaceContext.cc0000644000175000017500000000241410661271074020626 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "defs.h" #include "View.hh" #include "BoxMLNamespaceContext.hh" #include "BoxGraphicDevice.hh" BoxMLNamespaceContext::BoxMLNamespaceContext(const SmartPtr& v, const SmartPtr& d) : NamespaceContext(BOXML_NS_URI, v), device(d) { } BoxMLNamespaceContext::~BoxMLNamespaceContext() { } SmartPtr BoxMLNamespaceContext::getGraphicDevice() const { return device; } gtkmathview-0.8.0/src/engine/boxml/BoxMLLayoutElement.hh0000644000175000017500000000250610661271074020170 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLLayoutElement_hh__ #define __BoxMLLayoutElement_hh__ #include "BoxMLLinearContainerElement.hh" class GMV_MathView_EXPORT BoxMLLayoutElement : public BoxMLLinearContainerElement { protected: BoxMLLayoutElement(const SmartPtr&); virtual ~BoxMLLayoutElement(); public: static SmartPtr create(const SmartPtr&); virtual AreaRef format(class FormattingContext&); }; #endif // __BoxMLLayoutElement_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLLayoutElement.cc0000644000175000017500000000501710661271074020156 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "BoxMLLayoutElement.hh" #include "BoxMLAttributeSignatures.hh" #include "FormattingContext.hh" #include "BoxGraphicDevice.hh" #include "ValueConversion.hh" #include "BoxMLAtElement.hh" #include "BoxedLayoutArea.hh" #include "AreaFactory.hh" BoxMLLayoutElement::BoxMLLayoutElement(const SmartPtr& context) : BoxMLLinearContainerElement(context) { } BoxMLLayoutElement::~BoxMLLayoutElement() { } SmartPtr BoxMLLayoutElement::create(const SmartPtr& context) { return new BoxMLLayoutElement(context); } AreaRef BoxMLLayoutElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); scaled width = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, Layout, width)), ctxt.getSize()); scaled height = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, Layout, height)), ctxt.getSize()); scaled depth = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, Layout, depth)), ctxt.getSize()); std::vector c; c.reserve(content.getSize()); for (std::vector< SmartPtr >::const_iterator p = content.begin(); p != content.end(); p++) if (SmartPtr elem = smart_cast(*p)) { AreaRef area = elem->format(ctxt); c.push_back(BoxedLayoutArea::XYArea(elem->getX(), elem->getY(), area)); } AreaRef res = ctxt.BGD()->getFactory()->boxedLayout(BoundingBox(width, height, depth), c); res = ctxt.BGD()->wrapper(ctxt, res); setMaxArea(res); setArea(res); ctxt.pop(); resetDirtyLayout(); } return getArea(); } gtkmathview-0.8.0/src/engine/boxml/BoxMLHVElement.cc0000644000175000017500000000574410661271074017225 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "BoxMLAttributeSignatures.hh" #include "BoxMLHVElement.hh" #include "BoxMLHElement.hh" #include "BoxMLVElement.hh" #include "FormattingContext.hh" #include "BoxGraphicDevice.hh" #include "ValueConversion.hh" #include "AreaFactory.hh" BoxMLHVElement::BoxMLHVElement(const SmartPtr& context) : BoxMLLinearContainerElement(context) { } BoxMLHVElement::~BoxMLHVElement() { } SmartPtr BoxMLHVElement::create(const SmartPtr& context) { return new BoxMLHVElement(context); } AreaRef BoxMLHVElement::getMaxArea() const { return maxArea; } AreaRef BoxMLHVElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); const scaled spacing = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, HV, spacing)), 0); const scaled indent = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, HV, indent)), 0); const scaled minLineSpacing = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, V, minlinespacing)), 0); const scaled availableWidth = ctxt.getAvailableWidth(); std::vector c; c.reserve(content.getSize()); std::vector cMax; cMax.reserve(content.getSize()); std::vector sc; sc.reserve(content.getSize()); for (std::vector< SmartPtr >::const_iterator p = content.begin(); p != content.end(); p++) if (*p) { const scaled thisIndent = (p == content.begin()) ? 0 : indent; ctxt.setAvailableWidth(availableWidth - thisIndent); c.push_back((*p)->format(ctxt)); cMax.push_back((*p)->getMaxArea()); if (p + 1 != content.end()) sc.push_back(spacing); } AreaRef res; res = BoxMLHElement::formatHorizontalArray(ctxt, cMax, spacing); res = ctxt.BGD()->wrapper(ctxt, res); setMaxArea(res); if (res->box().width > availableWidth) { res = BoxMLVElement::formatVerticalArray(ctxt, c, minLineSpacing, 1, -1, indent); res = ctxt.BGD()->wrapper(ctxt, res); } setArea(res); ctxt.pop(); resetDirtyLayout(); } return getArea(); } gtkmathview-0.8.0/src/engine/boxml/BoxMLTextElement.cc0000644000175000017500000000552310661271074017627 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "BoxMLAttributeSignatures.hh" #include "BoxMLTextElement.hh" #include "FormattingContext.hh" #include "BoxGraphicDevice.hh" #include "ValueConversion.hh" #include "AreaFactory.hh" BoxMLTextElement::BoxMLTextElement(const SmartPtr& context) : BoxMLElement(context) { } BoxMLTextElement::~BoxMLTextElement() { } SmartPtr BoxMLTextElement::create(const SmartPtr& context) { return new BoxMLTextElement(context); } AreaRef BoxMLTextElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { RGBColor oldColor = ctxt.getColor(); RGBColor oldBackground = ctxt.getBackground(); ctxt.push(this); if (SmartPtr value = GET_ATTRIBUTE_VALUE(BoxML, Text, size)) ctxt.setSize(ctxt.BGD()->evaluate(ctxt, ToLength(value), ctxt.getSize())); if (SmartPtr value = GET_ATTRIBUTE_VALUE(BoxML, Text, color)) ctxt.setColor(ToRGB(value)); if (SmartPtr value = GET_ATTRIBUTE_VALUE(BoxML, Text, background)) ctxt.setBackground(ToRGB(value)); scaled width; if (SmartPtr value = GET_ATTRIBUTE_VALUE(BoxML, Text, width)) if (IsTokenId(value)) width = ctxt.getAvailableWidth(); else width = ctxt.BGD()->evaluate(ctxt, ToLength(value), scaled::max()); else width = ctxt.getAvailableWidth(); RGBColor newColor = ctxt.getColor(); RGBColor newBackground = ctxt.getBackground(); AreaRef res = ctxt.BGD()->string(ctxt, content, width); if (oldColor != newColor) res = ctxt.BGD()->getFactory()->color(res, newColor); if (!newBackground.transparent() && newBackground != oldBackground) res = ctxt.BGD()->getFactory()->background(res, newBackground); res = ctxt.BGD()->wrapper(ctxt, res); setMaxArea(res); setArea(res); ctxt.pop(); resetDirtyLayout(); } return getArea(); } void BoxMLTextElement::setContent(const String& s) { if (s != content) { content = s; setDirtyLayout(); } } gtkmathview-0.8.0/src/engine/boxml/BoxMLActionElement.hh0000644000175000017500000000275610661271074020137 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLActionElement_hh__ #define __BoxMLActionElement_hh__ #include "BoxMLLinearContainerElement.hh" class GMV_MathView_EXPORT BoxMLActionElement : public BoxMLLinearContainerElement { protected: BoxMLActionElement(const SmartPtr&); virtual ~BoxMLActionElement(); public: static SmartPtr create(const SmartPtr&); virtual AreaRef format(class FormattingContext&); SmartPtr getSelectedElement(void) const; void setSelectedIndex(unsigned); unsigned getSelectedIndex(void) const; private: unsigned selection; }; #endif // __BoxMLActionElement_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLElement.cc0000644000175000017500000000230610661271074016756 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "BoxMLElement.hh" #include "BoxMLNamespaceContext.hh" BoxMLElement::BoxMLElement(const SmartPtr& context) : Element(context) { } BoxMLElement::~BoxMLElement() { } void BoxMLElement::setMaxArea(const AreaRef& area) { maxArea = area; } AreaRef BoxMLElement::getMaxArea() const { return maxArea ? maxArea : getArea(); } gtkmathview-0.8.0/src/engine/boxml/BoxMLDecorElement.cc0000644000175000017500000000767210661271074017746 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "BoxMLDecorElement.hh" #include "BoxMLAttributeSignatures.hh" #include "FormattingContext.hh" #include "BoxGraphicDevice.hh" #include "ValueConversion.hh" #include "AreaFactory.hh" BoxMLDecorElement::BoxMLDecorElement(const SmartPtr& context) : BoxMLBinContainerElement(context) { } BoxMLDecorElement::~BoxMLDecorElement() { } SmartPtr BoxMLDecorElement::create(const SmartPtr& context) { return new BoxMLDecorElement(context); } AreaRef BoxMLDecorElement::decorate(FormattingContext& ctxt, const AreaRef& child, const scaled& thickness, const RGBColor& color, const String& type) { SmartPtr factory = ctxt.BGD()->getFactory(); std::vector c; c.reserve(3); AreaRef res = child; AreaRef vobj; if (color.transparent()) vobj = factory->horizontalSpace(thickness); else vobj = factory->verticalLine(thickness, color); AreaRef hobj; if (color.transparent()) hobj = factory->verticalSpace(thickness, 0); else hobj = factory->horizontalLine(thickness, color); if (type == "box" || type == "left") c.push_back(vobj); c.push_back(res); if (type == "box" || type == "right") c.push_back(vobj); if (c.size() > 1) res = factory->horizontalArray(c); c.clear(); if (type == "box" || type == "bottom") c.push_back(hobj); c.push_back(res); if (type == "box" || type == "top") c.push_back(hobj); if (c.size() > 1) res = factory->verticalArray(c, (type == "top") ? 0 : 1); c.clear(); c.push_back(res); if (type == "verticalstrike") c.push_back(factory->center(vobj)); else if (type == "horizontalstrike") c.push_back(factory->middle(hobj)); else if (type == "baselinestrike") c.push_back(hobj); if (c.size() > 1) res = factory->overlapArray(c); return res; } AreaRef BoxMLDecorElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); SmartPtr type = ToSequence(GET_ATTRIBUTE_VALUE(BoxML, Decor, type)); SmartPtr color = GET_ATTRIBUTE_VALUE(BoxML, Decor, color); const scaled thickness = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, Decor, thickness)), ctxt.BGD()->defaultLineThickness(ctxt)); RGBColor col; if (color && IsTokenId(color) && ToTokenId(color) == T_TRANSPARENT) col = RGBColor(0, 0, 0, 0); else if (color) col = ToRGB(color); if (SmartPtr child = getChild()) { child->format(ctxt); AreaRef res = child->getMaxArea(); for (unsigned i = 0; i < type->getSize(); i++) res = decorate(ctxt, res, thickness, col, ToString(type->getValue(i))); res = ctxt.BGD()->wrapper(ctxt, res); setMaxArea(res); if (res->box().width > ctxt.getAvailableWidth()) { res = child->getArea(); for (unsigned i = 0; i < type->getSize(); i++) res = decorate(ctxt, res, thickness, col, ToString(type->getValue(i))); res = ctxt.BGD()->wrapper(ctxt, res); } setArea(res); } else setArea(0); ctxt.pop(); resetDirtyLayout(); } return getArea(); } gtkmathview-0.8.0/src/engine/boxml/BoxMLGroupElement.hh0000644000175000017500000000260710661271074020011 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLGroupElement_hh__ #define __BoxMLGroupElement_hh__ #include "BoxMLLinearContainerElement.hh" class GMV_MathView_EXPORT BoxMLGroupElement : public BoxMLLinearContainerElement { protected: BoxMLGroupElement(const SmartPtr&); virtual ~BoxMLGroupElement(); public: static SmartPtr create(const SmartPtr&); virtual AreaRef format(class FormattingContext&); void formatContent(class FormattingContext&, std::vector&); }; #endif // __BoxMLGroupElement_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLAttributeParsers.hh0000644000175000017500000000454410661271074020710 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLAttributeParsers_hh__ #define __BoxMLAttributeParsers_hh__ #include "CommonStringParsers.hh" typedef ParseColor Parse_BoxML_Text_color; typedef ParseColor Parse_BoxML_Text_background; typedef ParseLength Parse_BoxML_Text_size; typedef ParseChoice > Parse_BoxML_Text_width; typedef ParseColor Parse_BoxML_Ink_color; typedef ParseLength Parse_BoxML_Space_width; typedef ParseLength Parse_BoxML_Space_height; typedef ParseLength Parse_BoxML_Space_depth; typedef ParseLength Parse_BoxML_H_spacing; typedef ParseInteger Parse_BoxML_V_enter; typedef ParseInteger Parse_BoxML_V_exit; typedef ParseLength Parse_BoxML_V_indent; typedef ParseLength Parse_BoxML_V_minlinespacing; typedef ParseLength Parse_BoxML_HV_spacing; typedef ParseLength Parse_BoxML_HV_indent; typedef ParseLength Parse_BoxML_HV_minlinespacing; typedef ParseLength Parse_BoxML_HOV_spacing; typedef ParseLength Parse_BoxML_HOV_indent; typedef ParseLength Parse_BoxML_HOV_minlinespacing; typedef ParseLength Parse_BoxML_Layout_width; typedef ParseLength Parse_BoxML_Layout_height; typedef ParseLength Parse_BoxML_Layout_depth; typedef ParseLength Parse_BoxML_At_x; typedef ParseLength Parse_BoxML_At_y; typedef ParseUnsignedInteger Parse_BoxML_Action_selection; typedef ParseString Parse_BoxML_Action_actiontype; typedef ParseOneOrMore Parse_BoxML_Decor_type; typedef ParseChoice > Parse_BoxML_Decor_color; typedef ParseLength Parse_BoxML_Decor_thickness; #endif // __BoxMLAttributeParsers_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLboxElement.hh0000644000175000017500000000252710661271074017506 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLboxElement_hh__ #define __BoxMLboxElement_hh__ #include "BoxMLBinContainerElement.hh" class GMV_MathView_EXPORT BoxMLboxElement : public BoxMLBinContainerElement { protected: BoxMLboxElement(const SmartPtr&); virtual ~BoxMLboxElement(); public: static SmartPtr create(const SmartPtr& view) { return new BoxMLboxElement(view); } virtual AreaRef format(class FormattingContext&); }; #endif // __BoxMLboxElement_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLLinearContainerElement.hh0000644000175000017500000000405610661271074021772 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLLinearContainerElement_hh__ #define __BoxMLLinearContainerElement_hh__ #include "BoxMLElement.hh" #include "LinearContainerTemplate.hh" class GMV_MathView_EXPORT BoxMLLinearContainerElement : public BoxMLElement { protected: BoxMLLinearContainerElement(const SmartPtr&); virtual ~BoxMLLinearContainerElement(); public: unsigned getSize(void) const { return content.getSize(); } void setSize(unsigned size) { content.setSize(this, size); } SmartPtr getChild(unsigned i) const { return content.getChild(i); } void setChild(unsigned i, const SmartPtr& child) { content.setChild(this, i, child); } void appendChild(const SmartPtr& child) { content.appendChild(this, child); } void swapContent(std::vector >& newContent) { content.swapContent(this, newContent); } virtual void setFlagDown(Flags f) { BoxMLElement::setFlagDown(f); content.setFlagDown(f); } virtual void resetFlagDown(Flags f) { BoxMLElement::resetFlagDown(f); content.resetFlagDown(f); } protected: LinearContainerTemplate content; }; #endif // __BoxMLLinearContainerElement_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLSpaceElement.cc0000644000175000017500000000436010661271074017734 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "BoxMLSpaceElement.hh" #include "BoxMLAttributeSignatures.hh" #include "FormattingContext.hh" #include "BoxGraphicDevice.hh" #include "ValueConversion.hh" #include "AreaFactory.hh" BoxMLSpaceElement::BoxMLSpaceElement(const SmartPtr& context) : BoxMLElement(context) { } BoxMLSpaceElement::~BoxMLSpaceElement() { } SmartPtr BoxMLSpaceElement::create(const SmartPtr& context) { return new BoxMLSpaceElement(context); } AreaRef BoxMLSpaceElement::makeSpaceArea(FormattingContext& ctxt) { scaled width = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, Space, width)), 0); scaled height = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, Space, height)), 0); scaled depth = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, Space, depth)), 0); std::vector c; c.reserve(2); c.push_back(ctxt.BGD()->getFactory()->verticalSpace(height, depth)); c.push_back(ctxt.BGD()->getFactory()->horizontalSpace(width)); return ctxt.BGD()->getFactory()->horizontalArray(c); } AreaRef BoxMLSpaceElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); AreaRef res = makeSpaceArea(ctxt); res = ctxt.BGD()->wrapper(ctxt, res); setMaxArea(res); setArea(res); ctxt.pop(); resetDirtyLayout(); } return getArea(); } gtkmathview-0.8.0/src/engine/boxml/BoxML.hh0000644000175000017500000000244010661271074015455 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxML_hh__ #define __BoxML_hh__ #include "BoxMLAtElement.hh" #include "BoxMLLayoutElement.hh" #include "BoxMLHElement.hh" #include "BoxMLHVElement.hh" #include "BoxMLHOVElement.hh" #include "BoxMLGroupElement.hh" #include "BoxMLInkElement.hh" #include "BoxMLSpaceElement.hh" #include "BoxMLTextElement.hh" #include "BoxMLVElement.hh" #include "BoxMLboxElement.hh" #include "BoxMLActionElement.hh" #include "BoxMLDecorElement.hh" #endif // __BoxML_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLVElement.hh0000644000175000017500000000322110661271074017113 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLVElement_hh__ #define __BoxMLVElement_hh__ #include "BoxMLLinearContainerElement.hh" class GMV_MathView_EXPORT BoxMLVElement : public BoxMLLinearContainerElement { protected: BoxMLVElement(const SmartPtr&); virtual ~BoxMLVElement(); public: static SmartPtr create(const SmartPtr&); virtual AreaRef format(class FormattingContext&); static AreaRef indentArea(const class FormattingContext&, const AreaRef&, const AreaRef&); static scaled getMinimumIndentation(const class FormattingContext&, const SmartPtr&); static AreaRef formatVerticalArray(class FormattingContext&, const std::vector&, const scaled&, int, int, const scaled&); }; #endif // __BoxMLVElement_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLAttributeSignatures.cc0000644000175000017500000000574710661271074021411 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "BoxMLAttributeParsers.hh" #include "BoxMLAttributeSignatures.hh" DEFINE_ATTRIBUTE(BoxML, Text, color, true, false, false, false, 0); DEFINE_ATTRIBUTE(BoxML, Text, background, true, false, false, false, 0); DEFINE_ATTRIBUTE(BoxML, Text, size, true, false, false, false, 0); DEFINE_ATTRIBUTE(BoxML, Text, width, true, false, false, false, "auto"); DEFINE_ATTRIBUTE(BoxML, Ink, color, true, false, false, false, 0); DEFINE_ATTRIBUTE(BoxML, Space, width, true, false, false, false, "0pt"); DEFINE_ATTRIBUTE(BoxML, Space, height, true, false, false, false, "0pt"); DEFINE_ATTRIBUTE(BoxML, Space, depth, true, false, false, false, "0pt"); DEFINE_ATTRIBUTE(BoxML, H, spacing, true, false, false, false, "0pt"); DEFINE_ATTRIBUTE(BoxML, HV, spacing, true, false, false, false, "0pt"); DEFINE_ATTRIBUTE(BoxML, HV, indent, true, false, false, false, "0pt"); DEFINE_ATTRIBUTE(BoxML, HV, minlinespacing, true, false, false, false, "1.8em"); DEFINE_ATTRIBUTE(BoxML, HOV, spacing, true, false, false, false, "0pt"); DEFINE_ATTRIBUTE(BoxML, HOV, indent, true, false, false, false, "0pt"); DEFINE_ATTRIBUTE(BoxML, HOV, minlinespacing, true, false, false, false, "1.8em"); DEFINE_ATTRIBUTE(BoxML, V, enter, true, false, false, false, "1"); DEFINE_ATTRIBUTE(BoxML, V, exit, true, false, false, false, "-1"); DEFINE_ATTRIBUTE(BoxML, V, indent, true, false, false, false, "0pt"); DEFINE_ATTRIBUTE(BoxML, V, minlinespacing, true, false, false, false, "1.8em"); DEFINE_ATTRIBUTE(BoxML, Layout, width, true, false, false, false, 0); DEFINE_ATTRIBUTE(BoxML, Layout, height, true, false, false, false, 0); DEFINE_ATTRIBUTE(BoxML, Layout, depth, true, false, false, false, 0); DEFINE_ATTRIBUTE(BoxML, At, x, true, false, false, false, 0); DEFINE_ATTRIBUTE(BoxML, At, y, true, false, false, false, 0); DEFINE_ATTRIBUTE(BoxML, Action, selection, true, true, false, false, "1"); DEFINE_ATTRIBUTE(BoxML, Action, actiontype, true, true, false, false, "toggle"); DEFINE_ATTRIBUTE(BoxML, Decor, type, true, true, false, false, "box"); DEFINE_ATTRIBUTE(BoxML, Decor, color, true, false, false, false, 0); DEFINE_ATTRIBUTE(BoxML, Decor, thickness, true, false, false, false, "1px"); gtkmathview-0.8.0/src/engine/boxml/BoxMLVElement.cc0000644000175000017500000001171710661271074017112 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "BoxMLAttributeSignatures.hh" #include "BoxMLVElement.hh" #include "FormattingContext.hh" #include "BoxGraphicDevice.hh" #include "ValueConversion.hh" #include "AreaFactory.hh" BoxMLVElement::BoxMLVElement(const SmartPtr& context) : BoxMLLinearContainerElement(context) { } BoxMLVElement::~BoxMLVElement() { } SmartPtr BoxMLVElement::create(const SmartPtr& context) { return new BoxMLVElement(context); } // #include "scaledAux.hh" // #include "BoundingBoxAux.hh" AreaRef BoxMLVElement::indentArea(const FormattingContext& ctxt, const AreaRef& indentArea, const AreaRef& area) { std::vector c; c.reserve(2); c.push_back(indentArea); c.push_back(area); return ctxt.BGD()->getFactory()->horizontalArray(c); } scaled BoxMLVElement::getMinimumIndentation(const FormattingContext& ctxt, const SmartPtr& indent) { if (IsTokenId(indent)) return scaled::zero(); else return ctxt.BGD()->evaluate(ctxt, ToLength(indent), scaled::zero()); } AreaRef BoxMLVElement::formatVerticalArray(FormattingContext& ctxt, const std::vector& content, const scaled& minLineSpacing, int enter, int exit, const scaled& indent) { if (enter < 0) enter = content.size() + enter + 1; if (exit < 0) exit = content.size() + exit + 1; enter = content.size() - std::min(std::max(enter, 1), (int) content.size()); exit = content.size() - std::min(std::max(exit, 1), (int) content.size()); int enter_index = 0; int exit_index = 0; AreaRef prevArea = 0; scaled prevHeight; std::vector c; c.reserve(content.size()); const AreaRef iArea = ctxt.BGD()->getFactory()->horizontalSpace(indent); for (std::vector::const_reverse_iterator p = content.rbegin(); p != content.rend(); p++) if (AreaRef area = *p) if (BoundingBox areaBox = area->box()) { if (p != content.rend() - 1) area = indentArea(ctxt, iArea, area); if (prevArea) { const scaled areaDepth = areaBox.depth + std::min(scaled::zero(), area->getStep()); if (prevHeight + areaDepth < minLineSpacing) c.push_back(ctxt.BGD()->getFactory()->verticalSpace(minLineSpacing - prevHeight - areaDepth, 0)); } prevHeight = areaBox.height - std::min(scaled::zero(), -area->getStep()); prevArea = area; if (enter-- == 0) enter_index = c.size(); if (exit-- == 0) exit_index = c.size(); c.push_back(area); } AreaRef res; switch (c.size()) { case 0: res = ctxt.BGD()->getFactory()->horizontalArray(c); break; case 1: res = c[0]; break; default: res = ctxt.BGD()->getFactory()->verticalArray(c, enter_index); if (enter != exit) { const SmartPtr res1 = ctxt.BGD()->getFactory()->verticalArray(c, exit_index); assert(res->box().defined()); assert(res1->box().defined()); const scaled step = res->box().height - res1->box().height + res1->node(exit_index)->getStep(); res = ctxt.BGD()->getFactory()->step(res, step); } break; } return res; } AreaRef BoxMLVElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); const scaled indent = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, V, indent)), 0); int enter = ToInteger(GET_ATTRIBUTE_VALUE(BoxML, V, enter)); int exit = ToInteger(GET_ATTRIBUTE_VALUE(BoxML, V, exit)); const scaled minLineSpacing = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, V, minlinespacing)), 0); const scaled availableWidth = ctxt.getAvailableWidth(); std::vector c; c.reserve(content.getSize()); for (std::vector< SmartPtr >::const_iterator p = content.begin(); p != content.end(); p++) if (*p) { ctxt.setAvailableWidth(availableWidth - indent); c.push_back((*p)->format(ctxt)); } AreaRef res = formatVerticalArray(ctxt, c, minLineSpacing, enter, exit, indent); res = ctxt.BGD()->wrapper(ctxt, res); setArea(res); ctxt.pop(); resetDirtyLayout(); } return getArea(); } gtkmathview-0.8.0/src/engine/boxml/BoxMLAtElement.cc0000644000175000017500000000351010661271074017241 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "BoxMLAtElement.hh" #include "BoxMLAttributeSignatures.hh" #include "FormattingContext.hh" #include "BoxGraphicDevice.hh" #include "ValueConversion.hh" BoxMLAtElement::BoxMLAtElement(const SmartPtr& context) : BoxMLBinContainerElement(context) { } BoxMLAtElement::~BoxMLAtElement() { } SmartPtr BoxMLAtElement::create(const SmartPtr& context) { return new BoxMLAtElement(context); } AreaRef BoxMLAtElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); x = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, At, x)), ctxt.getSize()); y = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, At, y)), ctxt.getSize()); if (getChild()) { AreaRef res = getChild()->format(ctxt); res = ctxt.BGD()->wrapper(ctxt, res); setArea(res); } else setArea(0); ctxt.pop(); resetDirtyLayout(); } return getArea(); } gtkmathview-0.8.0/src/engine/boxml/BoxMLHElement.cc0000644000175000017500000000624410661271074017073 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "BoxMLAttributeSignatures.hh" #include "BoxMLHElement.hh" #include "BoxMLVElement.hh" #include "FormattingContext.hh" #include "BoxGraphicDevice.hh" #include "ValueConversion.hh" #include "AreaFactory.hh" BoxMLHElement::BoxMLHElement(const SmartPtr& context) : BoxMLLinearContainerElement(context) { } BoxMLHElement::~BoxMLHElement() { } SmartPtr BoxMLHElement::create(const SmartPtr& context) { return new BoxMLHElement(context); } AreaRef BoxMLHElement::formatHorizontalArray(FormattingContext& ctxt, const std::vector& content, const scaled& spacing) { const AreaRef spacingArea = ctxt.BGD()->getFactory()->horizontalSpace(spacing); std::vector c; c.reserve(content.size()); for (std::vector::const_iterator p = content.begin(); p != content.end(); p++) if (*p) { c.push_back(*p); if (p + 1 != content.end() && spacing != scaled::zero()) c.push_back(spacingArea); } AreaRef res; if (c.size() == 1) res = c[0]; else res = ctxt.BGD()->getFactory()->horizontalArray(c); return res; } AreaRef BoxMLHElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); const scaled spacing = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, H, spacing)), scaled::zero()); scaled availableWidth = ctxt.getAvailableWidth(); std::vector c; c.reserve(content.getSize()); std::vector cMax; cMax.reserve(content.getSize()); std::vector sc; sc.reserve(content.getSize()); for (std::vector >::const_iterator p = content.begin(); p != content.end(); p++) { assert(*p); ctxt.setAvailableWidth(availableWidth); const AreaRef area = (*p)->format(ctxt); c.push_back(area); cMax.push_back((*p)->getMaxArea()); availableWidth -= area->box().width + spacing; } AreaRef res = formatHorizontalArray(ctxt, cMax, spacing); res = ctxt.BGD()->wrapper(ctxt, res); setMaxArea(res); if (res->box().width > availableWidth) { res = formatHorizontalArray(ctxt, c, spacing); res = ctxt.BGD()->wrapper(ctxt, res); } setArea(res); ctxt.pop(); resetDirtyLayout(); } return getArea(); } gtkmathview-0.8.0/src/engine/boxml/BoxMLNamespaceContext.hh0000644000175000017500000000303210661271074020635 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLNamespaceContext_hh__ #define __BoxMLNamespaceContext_hh__ #include "gmv_defines.h" #include "NamespaceContext.hh" class GMV_MathView_EXPORT BoxMLNamespaceContext : public NamespaceContext { protected: BoxMLNamespaceContext(const SmartPtr&, const SmartPtr&); virtual ~BoxMLNamespaceContext(); public: static SmartPtr create(const SmartPtr& view, const SmartPtr& device) { return new BoxMLNamespaceContext(view, device); } SmartPtr getGraphicDevice(void) const; private: SmartPtr device; }; #endif // __BoxMLNamespaceContext_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLInkElement.cc0000644000175000017500000000371410661271074017424 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "BoxMLInkElement.hh" #include "BoxMLAttributeSignatures.hh" #include "FormattingContext.hh" #include "BoxGraphicDevice.hh" #include "ValueConversion.hh" #include "AreaFactory.hh" BoxMLInkElement::BoxMLInkElement(const SmartPtr& context) : BoxMLSpaceElement(context) { } BoxMLInkElement::~BoxMLInkElement() { } SmartPtr BoxMLInkElement::create(const SmartPtr& context) { return new BoxMLInkElement(context); } AreaRef BoxMLInkElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { RGBColor oldColor = ctxt.getColor(); ctxt.push(this); if (SmartPtr value = GET_ATTRIBUTE_VALUE(BoxML, Ink, color)) ctxt.setColor(ToRGB(value)); RGBColor newColor = ctxt.getColor(); AreaRef res = makeSpaceArea(ctxt); res = ctxt.BGD()->getFactory()->ink(res); if (oldColor != newColor) res = ctxt.BGD()->getFactory()->color(res, newColor); res = ctxt.BGD()->wrapper(ctxt, res); setMaxArea(res); setArea(res); ctxt.pop(); resetDirtyLayout(); } return getArea(); } gtkmathview-0.8.0/src/engine/boxml/BoxMLBinContainerElement.hh0000644000175000017500000000334510661271074021270 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLBinContainerElement_hh__ #define __BoxMLBinContainerElement_hh__ #include "BoxMLElement.hh" #include "BinContainerTemplate.hh" class GMV_MathView_EXPORT BoxMLBinContainerElement : public BoxMLElement { protected: BoxMLBinContainerElement(const SmartPtr&); virtual ~BoxMLBinContainerElement(); public: virtual AreaRef format(class FormattingContext&); SmartPtr getChild(void) const { return content.getChild(); } void setChild(const SmartPtr& child) { content.setChild(this, child); } virtual void setFlagDown(Flags f) { BoxMLElement::setFlagDown(f); content.setFlagDown(f); } virtual void resetFlagDown(Flags f) { BoxMLElement::resetFlagDown(f); content.resetFlagDown(f); } private: BinContainerTemplate content; }; #endif // __BoxMLBinContainerElement_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLLinearContainerElement.cc0000644000175000017500000000213110661271074021750 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "BoxMLLinearContainerElement.hh" BoxMLLinearContainerElement::BoxMLLinearContainerElement(const SmartPtr& context) : BoxMLElement(context) { } BoxMLLinearContainerElement::~BoxMLLinearContainerElement() { } gtkmathview-0.8.0/src/engine/boxml/Makefile.am0000644000175000017500000000253210613606744016214 00000000000000 NULL = noinst_LTLIBRARIES = libboxml.la libboxml_la_CPPFLAGS = -DGMV_MathView_DLL libboxml_la_SOURCES = \ BoxML.hh \ BoxMLActionElement.cc \ BoxMLActionElement.hh \ BoxMLAtElement.cc \ BoxMLAtElement.hh \ BoxMLAttributeParsers.hh \ BoxMLAttributeSignatures.cc \ BoxMLAttributeSignatures.hh \ BoxMLBinContainerElement.cc \ BoxMLBinContainerElement.hh \ BoxMLDecorElement.cc \ BoxMLDecorElement.hh \ BoxMLElement.cc \ BoxMLGroupElement.cc \ BoxMLGroupElement.hh \ BoxMLHElement.cc \ BoxMLHElement.hh \ BoxMLHOVElement.cc \ BoxMLHOVElement.hh \ BoxMLHVElement.cc \ BoxMLHVElement.hh \ BoxMLInkElement.cc \ BoxMLInkElement.hh \ BoxMLLayoutElement.cc \ BoxMLLayoutElement.hh \ BoxMLLinearContainerElement.cc \ BoxMLLinearContainerElement.hh \ BoxMLNamespaceContext.cc \ BoxMLSpaceElement.cc \ BoxMLSpaceElement.hh \ BoxMLTextElement.cc \ BoxMLTextElement.hh \ BoxMLVElement.cc \ BoxMLVElement.hh \ BoxMLboxElement.cc \ BoxMLboxElement.hh \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ BoxMLNamespaceContext.hh \ BoxMLElement.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/backend/common \ $(NULL) gtkmathview-0.8.0/src/engine/boxml/BoxMLboxElement.cc0000644000175000017500000000305410661271074017470 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "BoxMLNamespaceContext.hh" #include "BoxMLboxElement.hh" #include "FormattingContext.hh" #include "BoxGraphicDevice.hh" BoxMLboxElement::BoxMLboxElement(const SmartPtr& context) : BoxMLBinContainerElement(context) { } BoxMLboxElement::~BoxMLboxElement() { } AreaRef BoxMLboxElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); ctxt.setMathMode(false); if (SmartPtr child = getChild()) { child->format(ctxt); setMaxArea(ctxt.BGD()->wrapper(ctxt, child->getMaxArea())); setArea(ctxt.BGD()->wrapper(ctxt, child->getArea())); } ctxt.pop(); resetDirtyLayout(); } return getArea(); } gtkmathview-0.8.0/src/engine/boxml/BoxMLAttributeSignatures.hh0000644000175000017500000000417110661271074021411 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLAttributeSignatures_hh__ #define __BoxMLAttributeSignatures_hh__ #include "AttributeSignature.hh" DECLARE_ATTRIBUTE(BoxML, Text, color); DECLARE_ATTRIBUTE(BoxML, Text, background); DECLARE_ATTRIBUTE(BoxML, Text, size); DECLARE_ATTRIBUTE(BoxML, Text, width); DECLARE_ATTRIBUTE(BoxML, Ink, color); DECLARE_ATTRIBUTE(BoxML, Space, width); DECLARE_ATTRIBUTE(BoxML, Space, height); DECLARE_ATTRIBUTE(BoxML, Space, depth); DECLARE_ATTRIBUTE(BoxML, H, spacing); DECLARE_ATTRIBUTE(BoxML, HV, spacing); DECLARE_ATTRIBUTE(BoxML, HV, indent); DECLARE_ATTRIBUTE(BoxML, HV, minlinespacing); DECLARE_ATTRIBUTE(BoxML, HOV, spacing); DECLARE_ATTRIBUTE(BoxML, HOV, indent); DECLARE_ATTRIBUTE(BoxML, HOV, minlinespacing); DECLARE_ATTRIBUTE(BoxML, V, enter); DECLARE_ATTRIBUTE(BoxML, V, exit); DECLARE_ATTRIBUTE(BoxML, V, indent); DECLARE_ATTRIBUTE(BoxML, V, minlinespacing); DECLARE_ATTRIBUTE(BoxML, Layout, width); DECLARE_ATTRIBUTE(BoxML, Layout, height); DECLARE_ATTRIBUTE(BoxML, Layout, depth); DECLARE_ATTRIBUTE(BoxML, At, x); DECLARE_ATTRIBUTE(BoxML, At, y); DECLARE_ATTRIBUTE(BoxML, Action, selection); DECLARE_ATTRIBUTE(BoxML, Action, actiontype); DECLARE_ATTRIBUTE(BoxML, Decor, type); DECLARE_ATTRIBUTE(BoxML, Decor, color); DECLARE_ATTRIBUTE(BoxML, Decor, thickness); #endif // __BoxMLAttributeSignatures_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLHOVElement.cc0000644000175000017500000000677510661271074017351 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "BoxMLAttributeSignatures.hh" #include "BoxMLHOVElement.hh" #include "BoxMLHElement.hh" #include "BoxMLVElement.hh" #include "FormattingContext.hh" #include "BoxGraphicDevice.hh" #include "ValueConversion.hh" #include "AreaFactory.hh" BoxMLHOVElement::BoxMLHOVElement(const SmartPtr& context) : BoxMLLinearContainerElement(context) { } BoxMLHOVElement::~BoxMLHOVElement() { } SmartPtr BoxMLHOVElement::create(const SmartPtr& context) { return new BoxMLHOVElement(context); } AreaRef BoxMLHOVElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); const scaled spacing = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, HOV, spacing)), 0); const scaled indent = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, HOV, indent)), 0); const scaled minLineSpacing = ctxt.BGD()->evaluate(ctxt, ToLength(GET_ATTRIBUTE_VALUE(BoxML, V, minlinespacing)), 0); const scaled availableWidth = ctxt.getAvailableWidth(); std::vector cMax; cMax.reserve(content.getSize()); std::vector hc; hc.reserve(content.getSize()); std::vector vc; vc.reserve(content.getSize()); std::vector >::const_iterator p = content.begin(); while (p != content.end()) { const scaled availableWidthPerLine = vc.empty() ? availableWidth : availableWidth - indent; scaled remainingWidthForThisLine = availableWidthPerLine; hc.clear(); ctxt.setAvailableWidth(availableWidthPerLine); AreaRef area; AreaRef maxArea; do { area = (*p)->format(ctxt); maxArea = (*p)->getMaxArea(); cMax.push_back(maxArea); if (maxArea->box().width > remainingWidthForThisLine) break; hc.push_back(maxArea); remainingWidthForThisLine -= maxArea->box().width + spacing; p++; } while (p != content.end()); if (!hc.empty()) vc.push_back(BoxMLHElement::formatHorizontalArray(ctxt, hc, spacing)); else if (p != content.end()) { if (maxArea->box().width <= availableWidthPerLine) vc.push_back(maxArea); else vc.push_back(area); p++; } } AreaRef res = BoxMLHElement::formatHorizontalArray(ctxt, cMax, spacing); res = ctxt.BGD()->wrapper(ctxt, res); setMaxArea(res); if (res->box().width <= availableWidth) setArea(res); else { res = BoxMLVElement::formatVerticalArray(ctxt, vc, minLineSpacing, 1, -1, indent); res = ctxt.BGD()->wrapper(ctxt, res); setArea(res); } ctxt.pop(); resetDirtyLayout(); } return getArea(); } gtkmathview-0.8.0/src/engine/boxml/BoxMLElement.hh0000644000175000017500000000234410661271074016772 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLElement_hh__ #define __BoxMLElement_hh__ #include "gmv_defines.h" #include "Element.hh" class GMV_MathView_EXPORT BoxMLElement : public Element { protected: BoxMLElement(const SmartPtr&); virtual ~BoxMLElement(); public: void setMaxArea(const AreaRef&); AreaRef getMaxArea(void) const; private: AreaRef maxArea; }; #endif // __BoxMLElement_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLHElement.hh0000644000175000017500000000264710661271074017110 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLHElement_hh__ #define __BoxMLHElement_hh__ #include "BoxMLLinearContainerElement.hh" class GMV_MathView_EXPORT BoxMLHElement : public BoxMLLinearContainerElement { protected: BoxMLHElement(const SmartPtr&); virtual ~BoxMLHElement(); public: static SmartPtr create(const SmartPtr&); static AreaRef formatHorizontalArray(class FormattingContext&, const std::vector&, const scaled&); virtual AreaRef format(class FormattingContext&); }; #endif // __BoxMLHElement_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLBinContainerElement.cc0000644000175000017500000000302310661271074021247 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "BoxMLBinContainerElement.hh" #include "FormattingContext.hh" #include "BoxGraphicDevice.hh" BoxMLBinContainerElement::BoxMLBinContainerElement(const SmartPtr& context) : BoxMLElement(context) { } BoxMLBinContainerElement::~BoxMLBinContainerElement() { } AreaRef BoxMLBinContainerElement::format(FormattingContext& ctxt) { if (dirtyLayout()) { ctxt.push(this); if (SmartPtr child = getChild()) { child->format(ctxt); setMaxArea(ctxt.BGD()->wrapper(ctxt, child->getMaxArea())); setArea(ctxt.BGD()->wrapper(ctxt, child->getArea())); } ctxt.pop(); resetDirtyLayout(); } return getArea(); } gtkmathview-0.8.0/src/engine/boxml/BoxMLInkElement.hh0000644000175000017500000000243510661271074017435 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLInkElement_hh__ #define __BoxMLInkElement_hh__ #include "BoxMLSpaceElement.hh" class GMV_MathView_EXPORT BoxMLInkElement : public BoxMLSpaceElement { protected: BoxMLInkElement(const SmartPtr&); virtual ~BoxMLInkElement(); public: static SmartPtr create(const SmartPtr&); virtual AreaRef format(class FormattingContext&); }; #endif // __BoxMLInkElement_hh__ gtkmathview-0.8.0/src/engine/boxml/Makefile.in0000644000175000017500000012131710704610551016220 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/engine/boxml DIST_COMMON = $(mathview_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libboxml_la_LIBADD = am__objects_1 = am_libboxml_la_OBJECTS = libboxml_la-BoxMLActionElement.lo \ libboxml_la-BoxMLAtElement.lo \ libboxml_la-BoxMLAttributeSignatures.lo \ libboxml_la-BoxMLBinContainerElement.lo \ libboxml_la-BoxMLDecorElement.lo libboxml_la-BoxMLElement.lo \ libboxml_la-BoxMLGroupElement.lo libboxml_la-BoxMLHElement.lo \ libboxml_la-BoxMLHOVElement.lo libboxml_la-BoxMLHVElement.lo \ libboxml_la-BoxMLInkElement.lo \ libboxml_la-BoxMLLayoutElement.lo \ libboxml_la-BoxMLLinearContainerElement.lo \ libboxml_la-BoxMLNamespaceContext.lo \ libboxml_la-BoxMLSpaceElement.lo \ libboxml_la-BoxMLTextElement.lo libboxml_la-BoxMLVElement.lo \ libboxml_la-BoxMLboxElement.lo $(am__objects_1) libboxml_la_OBJECTS = $(am_libboxml_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libboxml_la_SOURCES) DIST_SOURCES = $(libboxml_la_SOURCES) am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(mathviewdir)" mathviewHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(mathview_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = noinst_LTLIBRARIES = libboxml.la libboxml_la_CPPFLAGS = -DGMV_MathView_DLL libboxml_la_SOURCES = \ BoxML.hh \ BoxMLActionElement.cc \ BoxMLActionElement.hh \ BoxMLAtElement.cc \ BoxMLAtElement.hh \ BoxMLAttributeParsers.hh \ BoxMLAttributeSignatures.cc \ BoxMLAttributeSignatures.hh \ BoxMLBinContainerElement.cc \ BoxMLBinContainerElement.hh \ BoxMLDecorElement.cc \ BoxMLDecorElement.hh \ BoxMLElement.cc \ BoxMLGroupElement.cc \ BoxMLGroupElement.hh \ BoxMLHElement.cc \ BoxMLHElement.hh \ BoxMLHOVElement.cc \ BoxMLHOVElement.hh \ BoxMLHVElement.cc \ BoxMLHVElement.hh \ BoxMLInkElement.cc \ BoxMLInkElement.hh \ BoxMLLayoutElement.cc \ BoxMLLayoutElement.hh \ BoxMLLinearContainerElement.cc \ BoxMLLinearContainerElement.hh \ BoxMLNamespaceContext.cc \ BoxMLSpaceElement.cc \ BoxMLSpaceElement.hh \ BoxMLTextElement.cc \ BoxMLTextElement.hh \ BoxMLVElement.cc \ BoxMLVElement.hh \ BoxMLboxElement.cc \ BoxMLboxElement.hh \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ BoxMLNamespaceContext.hh \ BoxMLElement.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/backend/common \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/engine/boxml/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/engine/boxml/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libboxml.la: $(libboxml_la_OBJECTS) $(libboxml_la_DEPENDENCIES) $(CXXLINK) $(libboxml_la_LDFLAGS) $(libboxml_la_OBJECTS) $(libboxml_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLActionElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLAtElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLAttributeSignatures.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLBinContainerElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLDecorElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLGroupElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLHElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLHOVElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLHVElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLInkElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLLayoutElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLLinearContainerElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLNamespaceContext.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLSpaceElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLTextElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLVElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libboxml_la-BoxMLboxElement.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libboxml_la-BoxMLActionElement.lo: BoxMLActionElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLActionElement.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLActionElement.Tpo" -c -o libboxml_la-BoxMLActionElement.lo `test -f 'BoxMLActionElement.cc' || echo '$(srcdir)/'`BoxMLActionElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLActionElement.Tpo" "$(DEPDIR)/libboxml_la-BoxMLActionElement.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLActionElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLActionElement.cc' object='libboxml_la-BoxMLActionElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLActionElement.lo `test -f 'BoxMLActionElement.cc' || echo '$(srcdir)/'`BoxMLActionElement.cc libboxml_la-BoxMLAtElement.lo: BoxMLAtElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLAtElement.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLAtElement.Tpo" -c -o libboxml_la-BoxMLAtElement.lo `test -f 'BoxMLAtElement.cc' || echo '$(srcdir)/'`BoxMLAtElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLAtElement.Tpo" "$(DEPDIR)/libboxml_la-BoxMLAtElement.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLAtElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLAtElement.cc' object='libboxml_la-BoxMLAtElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLAtElement.lo `test -f 'BoxMLAtElement.cc' || echo '$(srcdir)/'`BoxMLAtElement.cc libboxml_la-BoxMLAttributeSignatures.lo: BoxMLAttributeSignatures.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLAttributeSignatures.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLAttributeSignatures.Tpo" -c -o libboxml_la-BoxMLAttributeSignatures.lo `test -f 'BoxMLAttributeSignatures.cc' || echo '$(srcdir)/'`BoxMLAttributeSignatures.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLAttributeSignatures.Tpo" "$(DEPDIR)/libboxml_la-BoxMLAttributeSignatures.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLAttributeSignatures.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLAttributeSignatures.cc' object='libboxml_la-BoxMLAttributeSignatures.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLAttributeSignatures.lo `test -f 'BoxMLAttributeSignatures.cc' || echo '$(srcdir)/'`BoxMLAttributeSignatures.cc libboxml_la-BoxMLBinContainerElement.lo: BoxMLBinContainerElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLBinContainerElement.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLBinContainerElement.Tpo" -c -o libboxml_la-BoxMLBinContainerElement.lo `test -f 'BoxMLBinContainerElement.cc' || echo '$(srcdir)/'`BoxMLBinContainerElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLBinContainerElement.Tpo" "$(DEPDIR)/libboxml_la-BoxMLBinContainerElement.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLBinContainerElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLBinContainerElement.cc' object='libboxml_la-BoxMLBinContainerElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLBinContainerElement.lo `test -f 'BoxMLBinContainerElement.cc' || echo '$(srcdir)/'`BoxMLBinContainerElement.cc libboxml_la-BoxMLDecorElement.lo: BoxMLDecorElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLDecorElement.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLDecorElement.Tpo" -c -o libboxml_la-BoxMLDecorElement.lo `test -f 'BoxMLDecorElement.cc' || echo '$(srcdir)/'`BoxMLDecorElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLDecorElement.Tpo" "$(DEPDIR)/libboxml_la-BoxMLDecorElement.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLDecorElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLDecorElement.cc' object='libboxml_la-BoxMLDecorElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLDecorElement.lo `test -f 'BoxMLDecorElement.cc' || echo '$(srcdir)/'`BoxMLDecorElement.cc libboxml_la-BoxMLElement.lo: BoxMLElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLElement.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLElement.Tpo" -c -o libboxml_la-BoxMLElement.lo `test -f 'BoxMLElement.cc' || echo '$(srcdir)/'`BoxMLElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLElement.Tpo" "$(DEPDIR)/libboxml_la-BoxMLElement.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLElement.cc' object='libboxml_la-BoxMLElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLElement.lo `test -f 'BoxMLElement.cc' || echo '$(srcdir)/'`BoxMLElement.cc libboxml_la-BoxMLGroupElement.lo: BoxMLGroupElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLGroupElement.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLGroupElement.Tpo" -c -o libboxml_la-BoxMLGroupElement.lo `test -f 'BoxMLGroupElement.cc' || echo '$(srcdir)/'`BoxMLGroupElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLGroupElement.Tpo" "$(DEPDIR)/libboxml_la-BoxMLGroupElement.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLGroupElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLGroupElement.cc' object='libboxml_la-BoxMLGroupElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLGroupElement.lo `test -f 'BoxMLGroupElement.cc' || echo '$(srcdir)/'`BoxMLGroupElement.cc libboxml_la-BoxMLHElement.lo: BoxMLHElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLHElement.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLHElement.Tpo" -c -o libboxml_la-BoxMLHElement.lo `test -f 'BoxMLHElement.cc' || echo '$(srcdir)/'`BoxMLHElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLHElement.Tpo" "$(DEPDIR)/libboxml_la-BoxMLHElement.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLHElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLHElement.cc' object='libboxml_la-BoxMLHElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLHElement.lo `test -f 'BoxMLHElement.cc' || echo '$(srcdir)/'`BoxMLHElement.cc libboxml_la-BoxMLHOVElement.lo: BoxMLHOVElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLHOVElement.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLHOVElement.Tpo" -c -o libboxml_la-BoxMLHOVElement.lo `test -f 'BoxMLHOVElement.cc' || echo '$(srcdir)/'`BoxMLHOVElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLHOVElement.Tpo" "$(DEPDIR)/libboxml_la-BoxMLHOVElement.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLHOVElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLHOVElement.cc' object='libboxml_la-BoxMLHOVElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLHOVElement.lo `test -f 'BoxMLHOVElement.cc' || echo '$(srcdir)/'`BoxMLHOVElement.cc libboxml_la-BoxMLHVElement.lo: BoxMLHVElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLHVElement.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLHVElement.Tpo" -c -o libboxml_la-BoxMLHVElement.lo `test -f 'BoxMLHVElement.cc' || echo '$(srcdir)/'`BoxMLHVElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLHVElement.Tpo" "$(DEPDIR)/libboxml_la-BoxMLHVElement.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLHVElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLHVElement.cc' object='libboxml_la-BoxMLHVElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLHVElement.lo `test -f 'BoxMLHVElement.cc' || echo '$(srcdir)/'`BoxMLHVElement.cc libboxml_la-BoxMLInkElement.lo: BoxMLInkElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLInkElement.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLInkElement.Tpo" -c -o libboxml_la-BoxMLInkElement.lo `test -f 'BoxMLInkElement.cc' || echo '$(srcdir)/'`BoxMLInkElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLInkElement.Tpo" "$(DEPDIR)/libboxml_la-BoxMLInkElement.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLInkElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLInkElement.cc' object='libboxml_la-BoxMLInkElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLInkElement.lo `test -f 'BoxMLInkElement.cc' || echo '$(srcdir)/'`BoxMLInkElement.cc libboxml_la-BoxMLLayoutElement.lo: BoxMLLayoutElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLLayoutElement.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLLayoutElement.Tpo" -c -o libboxml_la-BoxMLLayoutElement.lo `test -f 'BoxMLLayoutElement.cc' || echo '$(srcdir)/'`BoxMLLayoutElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLLayoutElement.Tpo" "$(DEPDIR)/libboxml_la-BoxMLLayoutElement.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLLayoutElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLLayoutElement.cc' object='libboxml_la-BoxMLLayoutElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLLayoutElement.lo `test -f 'BoxMLLayoutElement.cc' || echo '$(srcdir)/'`BoxMLLayoutElement.cc libboxml_la-BoxMLLinearContainerElement.lo: BoxMLLinearContainerElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLLinearContainerElement.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLLinearContainerElement.Tpo" -c -o libboxml_la-BoxMLLinearContainerElement.lo `test -f 'BoxMLLinearContainerElement.cc' || echo '$(srcdir)/'`BoxMLLinearContainerElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLLinearContainerElement.Tpo" "$(DEPDIR)/libboxml_la-BoxMLLinearContainerElement.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLLinearContainerElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLLinearContainerElement.cc' object='libboxml_la-BoxMLLinearContainerElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLLinearContainerElement.lo `test -f 'BoxMLLinearContainerElement.cc' || echo '$(srcdir)/'`BoxMLLinearContainerElement.cc libboxml_la-BoxMLNamespaceContext.lo: BoxMLNamespaceContext.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLNamespaceContext.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLNamespaceContext.Tpo" -c -o libboxml_la-BoxMLNamespaceContext.lo `test -f 'BoxMLNamespaceContext.cc' || echo '$(srcdir)/'`BoxMLNamespaceContext.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLNamespaceContext.Tpo" "$(DEPDIR)/libboxml_la-BoxMLNamespaceContext.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLNamespaceContext.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLNamespaceContext.cc' object='libboxml_la-BoxMLNamespaceContext.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLNamespaceContext.lo `test -f 'BoxMLNamespaceContext.cc' || echo '$(srcdir)/'`BoxMLNamespaceContext.cc libboxml_la-BoxMLSpaceElement.lo: BoxMLSpaceElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLSpaceElement.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLSpaceElement.Tpo" -c -o libboxml_la-BoxMLSpaceElement.lo `test -f 'BoxMLSpaceElement.cc' || echo '$(srcdir)/'`BoxMLSpaceElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLSpaceElement.Tpo" "$(DEPDIR)/libboxml_la-BoxMLSpaceElement.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLSpaceElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLSpaceElement.cc' object='libboxml_la-BoxMLSpaceElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLSpaceElement.lo `test -f 'BoxMLSpaceElement.cc' || echo '$(srcdir)/'`BoxMLSpaceElement.cc libboxml_la-BoxMLTextElement.lo: BoxMLTextElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLTextElement.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLTextElement.Tpo" -c -o libboxml_la-BoxMLTextElement.lo `test -f 'BoxMLTextElement.cc' || echo '$(srcdir)/'`BoxMLTextElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLTextElement.Tpo" "$(DEPDIR)/libboxml_la-BoxMLTextElement.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLTextElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLTextElement.cc' object='libboxml_la-BoxMLTextElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLTextElement.lo `test -f 'BoxMLTextElement.cc' || echo '$(srcdir)/'`BoxMLTextElement.cc libboxml_la-BoxMLVElement.lo: BoxMLVElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLVElement.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLVElement.Tpo" -c -o libboxml_la-BoxMLVElement.lo `test -f 'BoxMLVElement.cc' || echo '$(srcdir)/'`BoxMLVElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLVElement.Tpo" "$(DEPDIR)/libboxml_la-BoxMLVElement.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLVElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLVElement.cc' object='libboxml_la-BoxMLVElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLVElement.lo `test -f 'BoxMLVElement.cc' || echo '$(srcdir)/'`BoxMLVElement.cc libboxml_la-BoxMLboxElement.lo: BoxMLboxElement.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libboxml_la-BoxMLboxElement.lo -MD -MP -MF "$(DEPDIR)/libboxml_la-BoxMLboxElement.Tpo" -c -o libboxml_la-BoxMLboxElement.lo `test -f 'BoxMLboxElement.cc' || echo '$(srcdir)/'`BoxMLboxElement.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libboxml_la-BoxMLboxElement.Tpo" "$(DEPDIR)/libboxml_la-BoxMLboxElement.Plo"; else rm -f "$(DEPDIR)/libboxml_la-BoxMLboxElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoxMLboxElement.cc' object='libboxml_la-BoxMLboxElement.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libboxml_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libboxml_la-BoxMLboxElement.lo `test -f 'BoxMLboxElement.cc' || echo '$(srcdir)/'`BoxMLboxElement.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-mathviewHEADERS: $(mathview_HEADERS) @$(NORMAL_INSTALL) test -z "$(mathviewdir)" || $(mkdir_p) "$(DESTDIR)$(mathviewdir)" @list='$(mathview_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(mathviewHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(mathviewdir)/$$f'"; \ $(mathviewHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(mathviewdir)/$$f"; \ done uninstall-mathviewHEADERS: @$(NORMAL_UNINSTALL) @list='$(mathview_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(mathviewdir)/$$f'"; \ rm -f "$(DESTDIR)$(mathviewdir)/$$f"; \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(mathviewdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-mathviewHEADERS install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-mathviewHEADERS .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-mathviewHEADERS install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-info-am \ uninstall-mathviewHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/src/engine/boxml/BoxMLDecorElement.hh0000644000175000017500000000273410661271074017752 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLDecorElement_hh__ #define __BoxMLDecorElement_hh__ #include "String.hh" #include "BoxMLBinContainerElement.hh" class GMV_MathView_EXPORT BoxMLDecorElement : public BoxMLBinContainerElement { protected: BoxMLDecorElement(const SmartPtr&); virtual ~BoxMLDecorElement(); public: static SmartPtr create(const SmartPtr&); virtual AreaRef format(class FormattingContext&); private: static AreaRef decorate(class FormattingContext&, const AreaRef&, const scaled&, const class RGBColor&, const String&); }; #endif // __BoxMLDecorElement_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLHVElement.hh0000644000175000017500000000256110661271074017231 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLHVElement_hh__ #define __BoxMLHVElement_hh__ #include "BoxMLLinearContainerElement.hh" class GMV_MathView_EXPORT BoxMLHVElement : public BoxMLLinearContainerElement { protected: BoxMLHVElement(const SmartPtr&); virtual ~BoxMLHVElement(); public: static SmartPtr create(const SmartPtr&); virtual AreaRef format(class FormattingContext&); virtual AreaRef getMaxArea(void) const; private: AreaRef maxArea; }; #endif // __BoxMLHVElement_hh__ gtkmathview-0.8.0/src/engine/boxml/BoxMLAtElement.hh0000644000175000017500000000262710661271074017263 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoxMLAtElement_hh__ #define __BoxMLAtElement_hh__ #include "BoxMLBinContainerElement.hh" class GMV_MathView_EXPORT BoxMLAtElement : public BoxMLBinContainerElement { protected: BoxMLAtElement(const SmartPtr&); virtual ~BoxMLAtElement(); public: static SmartPtr create(const SmartPtr&); virtual AreaRef format(class FormattingContext&); scaled getX(void) const { return x; } scaled getY(void) const { return y; } private: scaled x; scaled y; }; #endif // __BoxMLAtElement_hh__ gtkmathview-0.8.0/src/engine/common/0000777000175000017500000000000010704625455014412 500000000000000gtkmathview-0.8.0/src/engine/common/AttributeSet.cc0000644000175000017500000000513410661271077017256 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include #include "AttributeSet.hh" #include "AttributeSignature.hh" struct IsPredicate : public std::binary_function,AttributeId,bool> { bool operator()(const SmartPtr& attr, const AttributeId& id) const { assert(attr); return ATTRIBUTE_ID_OF_SIGNATURE(attr->getSignature()) == id; } }; AttributeSet::AttributeSet() { } AttributeSet::~AttributeSet() { } bool AttributeSet::set(const SmartPtr& attr) { assert(attr); #if 1 // this version should be slightly more efficient // see Scott Meyers' book on effective STL Map::iterator lb = content.lower_bound(ATTRIBUTE_ID_OF_SIGNATURE(attr->getSignature())); if (lb != content.end() && !(content.key_comp()(ATTRIBUTE_ID_OF_SIGNATURE(attr->getSignature()), lb->first))) { if (!attr->equal(lb->second)) { lb->second = attr; return true; } else return false; } else { content.insert(lb, Map::value_type(ATTRIBUTE_ID_OF_SIGNATURE(attr->getSignature()), attr)); return true; } #else Map::iterator p = content.find(ATTRIBUTE_ID_OF_SIGNATURE(attr->getSignature())); if (p != content.end()) { bool eq = attr->equal(p->second); p->second = attr; return !eq; } else { content[ATTRIBUTE_ID_OF_SIGNATURE(attr->getSignature())] = attr; return true; } #endif } SmartPtr AttributeSet::get(const AttributeId& id) const { Map::const_iterator p = content.find(id); return (p != content.end()) ? p->second : 0; } bool AttributeSet::remove(const AttributeId& id) { Map::iterator p = content.find(id); if (p != content.end()) { content.erase(p); return true; } else return false; } gtkmathview-0.8.0/src/engine/common/AttributeSignature.cc0000644000175000017500000000245010661271077020462 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AttributeSignature.hh" SmartPtr AttributeSignature::getDefaultValue() const { if (!defaultValue && defaultUnparsedValue) defaultValue = parseValue(defaultUnparsedValue); return defaultValue; } SmartPtr AttributeSignature::parseValue(const String& v) const { assert(parser); UCS4String s = UCS4StringOfString(v); UCS4String::const_iterator next; return parser(s.begin(), s.end(), next); } gtkmathview-0.8.0/src/engine/common/Element.hh0000644000175000017500000000745710661271077016254 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Element_hh__ #define __Element_hh__ #include #include "Node.hh" #include "WeakPtr.hh" #include "Area.hh" class GMV_MathView_EXPORT Element : public Node { protected: Element(const SmartPtr&); virtual ~Element(); public: static bool hasParentLink(void) { return true; } static void setParent(Element* self, const SmartPtr& el) { self->setParent(el); } SmartPtr getNamespaceContext(void) const; SmartPtr getLogger(void) const; void setParent(const SmartPtr&); SmartPtr getParent(void) const { return static_cast(parent); } template SmartPtr getParent(void) const { return smart_cast(getParent()); } unsigned getDepth(void) const; void setAttribute(const SmartPtr&); void removeAttribute(const class AttributeSignature&); SmartPtr getAttribute(const class AttributeSignature&) const; SmartPtr getAttributeValue(const class AttributeSignature&) const; SmartPtr getAttributeValueNoDefault(const class AttributeSignature&) const; void setArea(const AreaRef& a) { area = a; } AreaRef getArea(void) const { return area; } virtual AreaRef format(class FormattingContext&); virtual void setDirtyStructure(void); void resetDirtyStructure(void) { resetFlag(FDirtyStructure); } bool dirtyStructure(void) const { return getFlag(FDirtyStructure); } virtual void setDirtyAttribute(void); virtual void setDirtyAttributeD(void); void resetDirtyAttribute(void) { resetFlag(FDirtyAttribute); resetFlag(FDirtyAttributeP); resetFlag(FDirtyAttributeD); } bool dirtyAttribute(void) const { return getFlag(FDirtyAttribute) || getFlag(FDirtyAttributeD); } bool dirtyAttributeP(void) const { return getFlag(FDirtyAttributeP); } bool dirtyAttributeD(void) const { return getFlag(FDirtyAttributeD); } virtual void setDirtyLayout(void); virtual void setDirtyLayoutD(void); void resetDirtyLayout(void) { resetFlag(FDirtyLayout); } bool dirtyLayout(void) const { return getFlag(FDirtyLayout); } enum Flags { FDirtyStructure, // need to resynchronize with DOM FDirtyAttribute, // an attribute was modified FDirtyAttributeP, // an attribute was modified in a descendant FDirtyAttributeD, // an attribute was modified and must set dirtyAttribute on all descendants FDirtyLayout, // need to layout FUnusedFlag // Just to know how many flags we use without having to count them }; void setFlag(Flags f);// { flags.set(f); } void resetFlag(Flags f) { flags.reset(f); } void setFlagUp(Flags); void resetFlagUp(Flags); virtual void setFlagDown(Flags); virtual void resetFlagDown(Flags); bool getFlag(Flags f) const { return flags.test(f); } private: WeakPtr context; WeakPtr parent; std::bitset flags; SmartPtr attributes; AreaRef area; }; #endif // __Element_hh__ gtkmathview-0.8.0/src/engine/common/AttributeSignature.hh0000644000175000017500000000505510661271077020500 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __AttributeSignature_hh__ #define __AttributeSignature_hh__ #include "String.hh" #include "Value.hh" #include "SmartPtr.hh" typedef SmartPtr (*AttributeParser)(const UCS4String::const_iterator&, const UCS4String::const_iterator&, UCS4String::const_iterator&); struct GMV_MathView_EXPORT AttributeSignature { String name; String fullName; AttributeParser parser; bool fromElement; bool fromContext; bool deprecated; bool emptyMeaningful; const char* defaultUnparsedValue; mutable SmartPtr defaultValue; SmartPtr getDefaultValue(void) const; SmartPtr parseValue(const String&) const; }; typedef const AttributeSignature* AttributeId; #define ATTRIBUTE_SIGNATURE(ns,el,name) sig_##ns##_##el##_##name #define ATTRIBUTE_ID_OF_SIGNATURE(sig) (&(sig)) #define ATTRIBUTE_ID(ns,el,name) (ATTRIBUTE_ID_OF_SIGNATURE(ATTRIBUTE_SIGNATURE(ns,el,name))) #define ATTRIBUTE_PARSER(ns,el,name) &Parse_##ns##_##el##_##name::parse #define ATTRIBUTE_NAME_OF_ID(id) ((id)->name) #define ATTRIBUTE_FULL_NAME(ns,el,name) #ns"."#el"."#name #define REFINE_ATTRIBUTE(ctxt,ns,el,name) refineAttribute(ctxt, ATTRIBUTE_SIGNATURE(ns,el,name)) #define GET_ATTRIBUTE_VALUE(ns,el,name) getAttributeValue(ATTRIBUTE_SIGNATURE(ns,el,name)) #define GET_ATTRIBUTE_DEFAULT_VALUE(ns,el,name) (ATTRIBUTE_SIGNATURE(ns,el,name).getDefaultValue()) #define DECLARE_ATTRIBUTE(ns,el,name) extern GMV_MathView_EXPORT const AttributeSignature ATTRIBUTE_SIGNATURE(ns,el,name) #define DEFINE_ATTRIBUTE(ns,el,name,fe,fc,de,em,df) \ const AttributeSignature ATTRIBUTE_SIGNATURE(ns,el,name) = \ { #name, ATTRIBUTE_FULL_NAME(ns,el,name), ATTRIBUTE_PARSER(ns,el,name), fe, fc, de, em, df, 0 } #endif // __AttributeSignature_hh__ gtkmathview-0.8.0/src/engine/common/Node.cc0000644000175000017500000000161310661271077015522 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "Node.hh" Node::~Node() { } gtkmathview-0.8.0/src/engine/common/View.hh0000644000175000017500000001105710661271077015564 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __View_hh__ #define __View_hh__ #include "Object.hh" #include "String.hh" #include "SmartPtr.hh" #include "BoundingBox.hh" // Area.hh moved down here for Win32 build #include "Area.hh" class GMV_MathView_EXPORT View : public Object { protected: View(const SmartPtr&); virtual ~View(); public: virtual void unload(void) = 0; bool frozen(void) const { return freezeCounter > 0; } bool freeze(void); bool thaw(void); // configuration stuff static String getDefaultConfigurationPath(void); static String getDefaultOperatorDictionaryPath(void); SmartPtr getLogger(void) const; void setOperatorDictionary(const SmartPtr&); SmartPtr getOperatorDictionary(void) const; void setBuilder(const SmartPtr&); SmartPtr getBuilder(void) const; void setMathMLNamespaceContext(const SmartPtr&); SmartPtr getMathMLNamespaceContext(void) const; #if GMV_ENABLE_BOXML void setBoxMLNamespaceContext(const SmartPtr&); SmartPtr getBoxMLNamespaceContext(void) const; #endif // GMV_ENABLE_BOXML void setDirtyLayout(void) const; SmartPtr getRootElement(void) const; void resetRootElement(void); BoundingBox getBoundingBox(void) const; SmartPtr getElementAt(const scaled&, const scaled&, Point* = 0, BoundingBox* = 0) const; bool getElementExtents(const SmartPtr&, const SmartPtr&, Point* = 0, BoundingBox* = 0) const; bool getElementExtents(const SmartPtr&, Point* = 0, BoundingBox* = 0) const; bool getElementLength(const SmartPtr&, CharIndex&) const; bool getElementOrigin(const SmartPtr& elem, Point& p) const { return getElementExtents(elem, &p, 0); } bool getElementOrigin(const SmartPtr& refElem, const SmartPtr& elem, Point& p) const { return getElementExtents(refElem, elem, &p, 0); } bool getElementBoundingBox(const SmartPtr& elem, BoundingBox& b) const { return getElementExtents(elem, 0, &b); } SmartPtr getCharAt(const scaled&, const scaled&, CharIndex&, Point* = 0, BoundingBox* = 0) const; bool getCharExtents(const SmartPtr&, const SmartPtr&, CharIndex, Point* = 0, BoundingBox* = 0) const; bool getCharExtents(const SmartPtr&, CharIndex, Point* = 0, BoundingBox* = 0) const; bool getCharOrigin(const SmartPtr& elem, CharIndex index, Point& p) const { return getCharExtents(elem, index, &p, 0); } bool getCharBoundingBox(const SmartPtr& elem, CharIndex index, BoundingBox& b) const { return getCharExtents(elem, index, 0, &b); } void render(class RenderingContext&, const scaled&, const scaled&) const; unsigned getDefaultFontSize(void) const { return defaultFontSize; } void setDefaultFontSize(unsigned); scaled getAvailableWidth(void) const { return availableWidth; } void setAvailableWidth(const scaled&); protected: SmartPtr getRootArea(void) const; SmartPtr formatElement(const SmartPtr&) const; private: mutable SmartPtr rootElement; SmartPtr logger; SmartPtr dictionary; SmartPtr builder; SmartPtr mathmlContext; #if GMV_ENABLE_BOXML SmartPtr boxmlContext; #endif // GMV_ENABLE_BOXML unsigned defaultFontSize; unsigned freezeCounter; scaled availableWidth; }; #endif // __View_hh__ gtkmathview-0.8.0/src/engine/common/Attribute.cc0000644000175000017500000000267310661271077016607 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Attribute.hh" #include "AttributeSignature.hh" Attribute::Attribute(const AttributeSignature& sig, const String& v) : signature(sig), unparsedValue(v) { } Attribute::~Attribute() { } SmartPtr Attribute::getValue() const { if (!value) { value = signature.parseValue(unparsedValue); if (!value) { // issue warning value = signature.getDefaultValue(); } } return value; } bool Attribute::equal(const SmartPtr& attribute) const { return attribute->signature.name == signature.name && attribute->value == value; } gtkmathview-0.8.0/src/engine/common/NamespaceContext.hh0000644000175000017500000000255410661271077020115 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __NamespaceContext_hh__ #define __NamespaceContext_hh__ #include "Object.hh" #include "SmartPtr.hh" #include "WeakPtr.hh" #include "String.hh" class GMV_MathView_EXPORT NamespaceContext : public Object { protected: NamespaceContext(const String&, const SmartPtr&); virtual ~NamespaceContext(); public: String getNamespaceURI(void) const { return namespaceURI; } SmartPtr getView(void) const; private: const String namespaceURI; WeakPtr view; }; #endif // __NamespaceContext_hh__ gtkmathview-0.8.0/src/engine/common/CommonStringParsers.hh0000644000175000017500000000303410661271077020625 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __CommonStringParsers_hh__ #define __CommonStringParsers_hh__ #include "TemplateStringParsers.hh" typedef Union< Set, Set > TokenSet_HTMLColor; typedef Parse ParseBoolean; typedef Parse ParseUnsignedInteger; typedef Parse ParseInteger; typedef ParseChoice< ParseRGBColor,ParseTokenSet > ParseColor; typedef Parse ParseUnsignedNumber; typedef Parse ParseNumber; typedef ParseTokenSet ParseUnit; #endif // __CommonStringParsers_hh__ gtkmathview-0.8.0/src/engine/common/LinearContainerTemplate.hh0000644000175000017500000000620210661271077021417 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __LinearContainerTemplate_hh__ #define __LinearContainerTemplate_hh__ #include #include "for_each_if.h" #include "Adapters.hh" template > class LinearContainerTemplate { public: LinearContainerTemplate(void) { } unsigned getSize(void) const { return content.size(); } void setSize(E* elem, unsigned size) { if (size != content.size()) { for (unsigned i = size; i < content.size(); i++) setChild(elem, i, 0); content.resize(size); elem->setDirtyLayout(); } } TPtr getChild(unsigned i) const { assert(i < getSize()); return content[i]; } void setChild(E* elem, unsigned i, const TPtr& child) { assert(i <= getSize()); if (i == getSize()) appendChild(elem, child); else if (content[i] != child) { if (child) T::setParent(child, elem); content[i] = child; elem->setDirtyLayout(); } } void appendChild(E* elem, const TPtr& child) { if (child) T::setParent(child, elem); content.push_back(child); elem->setDirtyLayout(); } void swapContent(E* elem, std::vector& newContent) { if (newContent != content) { if (T::hasParentLink()) for (typename std::vector::const_iterator p = newContent.begin(); p != newContent.end(); p++) if (*p) T::setParent(*p, elem); content.swap(newContent); elem->setDirtyLayout(); } } const std::vector& getContent(void) const { return content; } template UnaryFunction for_each(UnaryFunction f) const { return for_each_if(content.begin(), content.end(), NotNullPredicate(), f); } typename std::vector::const_iterator begin(void) const { return content.begin(); } typename std::vector::const_iterator end(void) const { return content.end(); } typename std::vector::const_reverse_iterator rbegin(void) const { return content.rbegin(); } typename std::vector::const_reverse_iterator rend(void) const { return content.rend(); } void setFlagDown(Element::Flags f) { for_each(std::bind2nd(SetFlagDownAdapter(), f)); } void resetFlagDown(Element::Flags f) { for_each(std::bind2nd(ResetFlagDownAdapter(), f)); } private: std::vector content; }; #endif // __LinearContainerTemplate_hh__ gtkmathview-0.8.0/src/engine/common/Attribute.hh0000644000175000017500000000323010661271077016607 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Attribute_hh__ #define __Attribute_hh__ #include "SmartPtr.hh" #include "Object.hh" #include "Value.hh" #include "String.hh" #include "AttributeSignature.hh" class GMV_MathView_EXPORT Attribute : public Object { protected: Attribute(const class AttributeSignature&, const String&); virtual ~Attribute(); public: static SmartPtr create(const class AttributeSignature& sig, const String& value) { return new Attribute(sig, value); } const class AttributeSignature& getSignature(void) const { return signature; } String getUnparsedValue(void) const { return unparsedValue; } SmartPtr getValue(void) const; bool equal(const SmartPtr&) const; private: const class AttributeSignature& signature; String unparsedValue; mutable SmartPtr value; }; #endif // __Attribute_hh__ gtkmathview-0.8.0/src/engine/common/BinContainerTemplate.hh0000644000175000017500000000275710661271077020730 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BinContainerTemplate_hh__ #define __BinContainerTemplate_hh__ template > class BinContainerTemplate { public: BinContainerTemplate(void) { } TPtr getChild(void) const { return child; } void setChild(E* elem, const TPtr& newChild) { if (child != newChild) { if (newChild) T::setParent(newChild, elem); child = newChild; elem->setDirtyLayout(); } } void setFlagDown(Element::Flags f) { if (child) child->setFlagDown(f); } void resetFlagDown(Element::Flags f) { if (child) child->resetFlagDown(f); } private: TPtr child; }; #endif // __BinContainerTemplate_hh__ gtkmathview-0.8.0/src/engine/common/NamespaceContext.cc0000644000175000017500000000225210661271077020076 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "View.hh" #include "NamespaceContext.hh" #include "Element.hh" NamespaceContext::NamespaceContext(const String& ns, const SmartPtr& v) : namespaceURI(ns), view(v) { } NamespaceContext::~NamespaceContext() { } SmartPtr NamespaceContext::getView() const { return static_cast(view); } gtkmathview-0.8.0/src/engine/common/AttributeSet.hh0000644000175000017500000000255510661271077017274 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __AttributeSet_hh__ #define __AttributeSet_hh__ #include #include "Attribute.hh" class GMV_MathView_EXPORT AttributeSet : public Object { protected: AttributeSet(void); ~AttributeSet(); public: static SmartPtr create(void) { return new AttributeSet(); } bool set(const SmartPtr&); bool remove(const AttributeId&); SmartPtr get(const AttributeId&) const; private: typedef std::map > Map; Map content; }; #endif // __AttributeSet_hh__ gtkmathview-0.8.0/src/engine/common/View.cc0000644000175000017500000002222510661271077015551 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "defs.h" #include "config.dirs" #include "Clock.hh" #include "View.hh" #include "Element.hh" #include "Builder.hh" #include "MathMLNamespaceContext.hh" #include "MathMLOperatorDictionary.hh" #if GMV_ENABLE_BOXML #include "BoxMLNamespaceContext.hh" #endif // GMV_ENABLE_BOXML #include "AreaId.hh" #include "AbstractLogger.hh" #include "FormattingContext.hh" #include "MathGraphicDevice.hh" #include "BoxGraphicDevice.hh" #ifdef ENABLE_BINRELOC #include "prefix.h" #endif // ENABLE_BINRELOC View::View(const SmartPtr& l) : logger(l), defaultFontSize(DEFAULT_FONT_SIZE), freezeCounter(0) { } View::~View() { // When the view is destroyed the formatting tree must have // been destroyed already, because elements need a healthy // view for de-registering themselves from the linker assert(!rootElement); } bool View::freeze() { return freezeCounter++ == 0; } bool View::thaw() { assert(freezeCounter > 0); return --freezeCounter == 0; } String View::getDefaultConfigurationPath() { #ifdef ENABLE_BINRELOC return BR_SYSCONFDIR("/gtkmathview.conf.xml"); #else return PKGSYSCONFDIR"/gtkmathview.conf.xml"; #endif } String View::getDefaultOperatorDictionaryPath() { #ifdef ENABLE_BINRELOC return BR_DATADIR("/gtkmathview/dictionary.xml"); #else return PKGDATADIR"/dictionary.xml"; #endif } SmartPtr View::getLogger() const { return logger; } void View::setOperatorDictionary(const SmartPtr& d) { dictionary = d; } SmartPtr View::getOperatorDictionary() const { return dictionary; } void View::setBuilder(const SmartPtr& b) { resetRootElement(); builder = b; if (builder) { builder->setMathMLNamespaceContext(mathmlContext); #if GMV_ENABLE_BOXML builder->setBoxMLNamespaceContext(boxmlContext); #endif // GMV_ENABLE_BOXML builder->setLogger(logger); } } SmartPtr View::getBuilder() const { return builder; } AreaRef View::formatElement(const SmartPtr& elem) const { if (!elem) return 0; if (elem->dirtyLayout()) { const SmartPtr mgd = mathmlContext ? mathmlContext->getGraphicDevice() : 0; assert(mgd != 0); #if GMV_ENABLE_BOXML const SmartPtr bgd = boxmlContext ? boxmlContext->getGraphicDevice() : 0; FormattingContext ctxt(mgd, bgd); #else FormattingContext ctxt(mgd); #endif // GMV_ENABLE_BOXML Length defaultSize(getDefaultFontSize(), Length::PT_UNIT); scaled l = mgd->evaluate(ctxt, defaultSize, scaled::zero()); ctxt.setSize(l); ctxt.setActualSize(ctxt.getSize()); ctxt.setAvailableWidth(getAvailableWidth()); Clock perf; perf.Start(); elem->format(ctxt); perf.Stop(); getLogger()->out(LOG_INFO, "formatting time: %dms", perf()); } return elem->getArea(); } SmartPtr View::getRootElement() const { bool rootDirty = !rootElement || rootElement->dirtyStructure() || rootElement->dirtyAttribute() || rootElement->dirtyAttributeP(); if (rootDirty) { Clock perf; perf.Start(); rootElement = builder->getRootElement(); perf.Stop(); getLogger()->out(LOG_INFO, "build time: %dms", perf()); } return rootElement; } void View::resetRootElement() { rootElement = 0; } AreaRef View::getRootArea() const { return formatElement(getRootElement()); } BoundingBox View::getBoundingBox() const { if (AreaRef rootArea = getRootArea()) return rootArea->box(); else return BoundingBox(); } SmartPtr View::getElementAt(const scaled& x, const scaled& y, Point* elemOrigin, BoundingBox* elemBox) const { if (AreaRef rootArea = getRootArea()) { AreaId deepId(rootArea); if (rootArea->searchByCoords(deepId, x, y)) for (int i = deepId.size(); i >= 0; i--) { AreaRef area = deepId.getArea(i); if (SmartPtr elem = area->getElement()) { if (elemOrigin) deepId.getOrigin(*elemOrigin, 0, i); if (elemBox) *elemBox = area->box(); return elem; } } } return 0; } bool View::getElementExtents(const SmartPtr& refElem, const SmartPtr& elem, Point* elemOrigin, BoundingBox* elemBox) const { assert(refElem); assert(elem); if (getRootArea()) if (AreaRef elemArea = elem->getArea()) { if (elemOrigin) { if (AreaRef refArea = refElem->getArea()) { AreaId elemId(refArea); if (refArea->searchByArea(elemId, elemArea)) elemId.getOrigin(*elemOrigin); else return false; } else return false; } if (elemBox) *elemBox = elemArea->box(); return true; } return false; } bool View::getElementExtents(const SmartPtr& elem, Point* elemOrigin, BoundingBox* elemBox) const { return getElementExtents(getRootElement(), elem, elemOrigin, elemBox); } bool View::getElementLength(const SmartPtr& elem, CharIndex& length) const { assert(elem); if (getRootArea()) if (AreaRef elemArea = elem->getArea()) { length = elemArea->length(); return true; } return false; } SmartPtr View::getCharAt(const scaled& x, const scaled& y, CharIndex& index, Point* charOrig, BoundingBox* charBox) const { if (AreaRef rootArea = getRootArea()) { AreaId deepId(rootArea); if (rootArea->searchByCoords(deepId, x, y)) for (int i = deepId.size(); i >= 0; i--) { AreaRef area = deepId.getArea(i); if (SmartPtr elem = area->getElement()) { Point deepOrigin; deepId.accumulateOrigin(deepOrigin); AreaRef deepArea = deepId.getArea(); CharIndex deepIndex; if (!deepArea->indexOfPosition(x - deepOrigin.x, y - deepOrigin.y, deepIndex)) deepIndex = 0; index = deepId.getLength(i, -1) + deepIndex; if (charOrig || charBox) { if (!deepArea->positionOfIndex(deepIndex, charOrig, charBox)) return 0; } return elem; } } } return false; } bool View::getCharExtents(const SmartPtr& refElem, const SmartPtr& elem, CharIndex index, Point* charOrig, BoundingBox* charBox) const { assert(refElem); assert(elem); Point elemOrig; if (getElementOrigin(refElem, elem, elemOrig)) if (AreaRef elemArea = elem->getArea()) { AreaId deepId(elemArea); if (elemArea->searchByIndex(deepId, index)) { AreaRef deepArea = deepId.getArea(); Point deepOrig; deepId.getOrigin(deepOrig); if (deepArea->positionOfIndex(index - deepId.getLength(), charOrig, charBox)) { if (charOrig) { charOrig->x += elemOrig.x + deepOrig.x; charOrig->y += elemOrig.y + deepOrig.y; } return true; } } } return false; } bool View::getCharExtents(const SmartPtr& elem, CharIndex index, Point* charOrig, BoundingBox* charBox) const { return getCharExtents(getRootElement(), elem, index, charOrig, charBox); } void View::setMathMLNamespaceContext(const SmartPtr& ctxt) { mathmlContext = ctxt; if (builder) builder->setMathMLNamespaceContext(mathmlContext); } SmartPtr View::getMathMLNamespaceContext(void) const { return mathmlContext; } #if GMV_ENABLE_BOXML void View::setBoxMLNamespaceContext(const SmartPtr& ctxt) { boxmlContext = ctxt; if (builder) builder->setBoxMLNamespaceContext(boxmlContext); } SmartPtr View::getBoxMLNamespaceContext(void) const { return boxmlContext; } #endif // GMV_ENABLE_BOXML void View::render(RenderingContext& ctxt, const scaled& x, const scaled& y) const { //std::cerr << "View::render " << &ctxt << std::endl; if (AreaRef rootArea = getRootArea()) { Clock perf; perf.Start(); // Basically (x, y) are the coordinates of the origin rootArea->render(ctxt, x, y); perf.Stop(); getLogger()->out(LOG_INFO, "rendering time: %dms", perf()); } } void View::setDirtyLayout() const { if (SmartPtr elem = getRootElement()) { //elem->setDirtyAttributeD(); elem->setDirtyLayoutD(); } } void View::setDefaultFontSize(unsigned size) { assert(size > 0); if (defaultFontSize != size) { defaultFontSize = size; setDirtyLayout(); } } void View::setAvailableWidth(const scaled& width) { if (width != availableWidth) { availableWidth = width; setDirtyLayout(); } } gtkmathview-0.8.0/src/engine/common/Node.hh0000644000175000017500000000224010661271077015531 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Node_hh__ #define __Node_hh__ #include "Object.hh" #include "SmartPtr.hh" class GMV_MathView_EXPORT Node : public Object { protected: Node(void) { } virtual ~Node(); public: static bool hasParentLink(void) { return false; } static void setParent(Node*, const SmartPtr&) { } }; #endif // __Node_hh__ gtkmathview-0.8.0/src/engine/common/prefix.c0000644000175000017500000002606110661271077015773 00000000000000/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ /* WARNING, BEFORE YOU MODIFY PREFIX.C: * * If you make changes to any of the functions in prefix.c, you MUST * change the BR_NAMESPACE macro (in prefix.h). * This way you can avoid symbol table conflicts with other libraries * that also happen to use BinReloc. * * Example: * #define BR_NAMESPACE(funcName) foobar_ ## funcName * --> expands br_locate to foobar_br_locate */ #ifndef _PREFIX_C_ #define _PREFIX_C_ #ifdef HAVE_CONFIG_H #include "config.h" #endif #ifndef BR_PTHREADS /* Change 1 to 0 if you don't want pthread support */ #define BR_PTHREADS 1 #endif /* BR_PTHREADS */ #include #include #include #include #include "prefix.h" #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #undef NULL #define NULL ((void *) 0) #ifdef __GNUC__ #define br_return_val_if_fail(expr,val) if (!(expr)) {fprintf (stderr, "** BinReloc (%s): assertion %s failed\n", __PRETTY_FUNCTION__, #expr); return val;} #else #define br_return_val_if_fail(expr,val) if (!(expr)) return val #endif /* __GNUC__ */ static br_locate_fallback_func fallback_func = (br_locate_fallback_func) NULL; static void *fallback_data = NULL; #ifdef ENABLE_BINRELOC #include #include #include #include /** * br_locate: * symbol: A symbol that belongs to the app/library you want to locate. * Returns: A newly allocated string containing the full path of the * app/library that func belongs to, or NULL on error. This * string should be freed when not when no longer needed. * * Finds out to which application or library symbol belongs, then locate * the full path of that application or library. * Note that symbol cannot be a pointer to a function. That will not work. * * Example: * --> main.c * #include "prefix.h" * #include "libfoo.h" * * int main (int argc, char *argv[]) { * printf ("Full path of this app: %s\n", br_locate (&argc)); * libfoo_start (); * return 0; * } * * --> libfoo.c starts here * #include "prefix.h" * * void libfoo_start () { * --> "" is a symbol that belongs to libfoo (because it's called * --> from libfoo_start()); that's why this works. * printf ("libfoo is located in: %s\n", br_locate ("")); * } */ char * br_locate (void *symbol) { char line[5000]; FILE *f; char *path; br_return_val_if_fail (symbol != NULL, NULL); f = fopen ("/proc/self/maps", "r"); if (!f) { if (fallback_func) return fallback_func(symbol, fallback_data); else return NULL; } while (!feof (f)) { unsigned long start, end; if (!fgets (line, sizeof (line), f)) continue; if (!strstr (line, " r-xp ") || !strchr (line, '/')) continue; sscanf (line, "%lx-%lx ", &start, &end); if (symbol >= (void *) start && symbol < (void *) end) { char *tmp; size_t len; /* Extract the filename; it is always an absolute path */ path = strchr (line, '/'); /* Get rid of the newline */ tmp = strrchr (path, '\n'); if (tmp) *tmp = 0; /* Get rid of "(deleted)" */ len = strlen (path); if (len > 10 && strcmp (path + len - 10, " (deleted)") == 0) { tmp = path + len - 10; *tmp = 0; } fclose(f); return strdup (path); } } fclose (f); return NULL; } /** * br_locate_prefix: * symbol: A symbol that belongs to the app/library you want to locate. * Returns: A prefix. This string should be freed when no longer needed. * * Locates the full path of the app/library that symbol belongs to, and return * the prefix of that path, or NULL on error. * Note that symbol cannot be a pointer to a function. That will not work. * * Example: * --> This application is located in /usr/bin/foo * br_locate_prefix (&argc); --> returns: "/usr" */ char * br_locate_prefix (void *symbol) { char *path, *prefix; br_return_val_if_fail (symbol != NULL, NULL); path = br_locate (symbol); if (!path) return NULL; prefix = br_extract_prefix (path); free (path); return prefix; } /** * br_prepend_prefix: * symbol: A symbol that belongs to the app/library you want to locate. * path: The path that you want to prepend the prefix to. * Returns: The new path, or NULL on error. This string should be freed when no * longer needed. * * Gets the prefix of the app/library that symbol belongs to. Prepend that prefix to path. * Note that symbol cannot be a pointer to a function. That will not work. * * Example: * --> The application is /usr/bin/foo * br_prepend_prefix (&argc, "/share/foo/data.png"); --> Returns "/usr/share/foo/data.png" */ char * br_prepend_prefix (void *symbol, char *path) { char *tmp, *newpath; br_return_val_if_fail (symbol != NULL, NULL); br_return_val_if_fail (path != NULL, NULL); tmp = br_locate_prefix (symbol); if (!tmp) return NULL; if (strcmp (tmp, "/") == 0) newpath = strdup (path); else newpath = br_strcat (tmp, path); /* Get rid of compiler warning ("br_prepend_prefix never used") */ if (0) br_prepend_prefix (NULL, NULL); free (tmp); return newpath; } #endif /* ENABLE_BINRELOC */ /* Pthread stuff for thread safetiness */ #if BR_PTHREADS && defined(ENABLE_BINRELOC) #include static pthread_key_t br_thread_key; static pthread_once_t br_thread_key_once = PTHREAD_ONCE_INIT; static void br_thread_local_store_fini () { char *specific; specific = (char *) pthread_getspecific (br_thread_key); if (specific) { free (specific); pthread_setspecific (br_thread_key, NULL); } pthread_key_delete (br_thread_key); br_thread_key = 0; } static void br_str_free (void *str) { if (str) free (str); } static void br_thread_local_store_init () { if (pthread_key_create (&br_thread_key, br_str_free) == 0) atexit (br_thread_local_store_fini); } #else /* BR_PTHREADS */ #ifdef ENABLE_BINRELOC static char *br_last_value = (char *) NULL; static void br_free_last_value () { if (br_last_value) free (br_last_value); } #endif /* ENABLE_BINRELOC */ #endif /* BR_PTHREADS */ #ifdef ENABLE_BINRELOC /** * br_thread_local_store: * str: A dynamically allocated string. * Returns: str. This return value must not be freed. * * Store str in a thread-local variable and return str. The next * you run this function, that variable is freed too. * This function is created so you don't have to worry about freeing * strings. Just be careful about doing this sort of thing: * * some_function( BR_DATADIR("/one.png"), BR_DATADIR("/two.png") ) * * Examples: * char *foo; * foo = br_thread_local_store (strdup ("hello")); --> foo == "hello" * foo = br_thread_local_store (strdup ("world")); --> foo == "world"; "hello" is now freed. */ const char * br_thread_local_store (char *str) { #if BR_PTHREADS char *specific; pthread_once (&br_thread_key_once, br_thread_local_store_init); specific = (char *) pthread_getspecific (br_thread_key); br_str_free (specific); pthread_setspecific (br_thread_key, str); #else /* BR_PTHREADS */ static int initialized = 0; if (!initialized) { atexit (br_free_last_value); initialized = 1; } if (br_last_value) free (br_last_value); br_last_value = str; #endif /* BR_PTHREADS */ return (const char *) str; } #endif /* ENABLE_BINRELOC */ /** * br_strcat: * str1: A string. * str2: Another string. * Returns: A newly-allocated string. This string should be freed when no longer needed. * * Concatenate str1 and str2 to a newly allocated string. */ char * br_strcat (const char *str1, const char *str2) { char *result; size_t len1, len2; if (!str1) str1 = ""; if (!str2) str2 = ""; len1 = strlen (str1); len2 = strlen (str2); result = (char *) malloc (len1 + len2 + 1); memcpy (result, str1, len1); memcpy (result + len1, str2, len2); result[len1 + len2] = '\0'; return result; } /* Emulates glibc's strndup() */ static char * br_strndup (char *str, size_t size) { char *result = (char *) NULL; size_t len; br_return_val_if_fail (str != (char *) NULL, (char *) NULL); len = strlen (str); if (!len) return strdup (""); if (size > len) size = len; result = (char *) calloc (sizeof (char), len + 1); memcpy (result, str, size); return result; } /** * br_extract_dir: * path: A path. * Returns: A directory name. This string should be freed when no longer needed. * * Extracts the directory component of path. Similar to g_dirname() or the dirname * commandline application. * * Example: * br_extract_dir ("/usr/local/foobar"); --> Returns: "/usr/local" */ char * br_extract_dir (const char *path) { char *end, *result; br_return_val_if_fail (path != (char *) NULL, (char *) NULL); end = strrchr (path, '/'); if (!end) return strdup ("."); while (end > path && *end == '/') end--; result = br_strndup ((char *) path, end - path + 1); if (!*result) { free (result); return strdup ("/"); } else return result; } /** * br_extract_prefix: * path: The full path of an executable or library. * Returns: The prefix, or NULL on error. This string should be freed when no longer needed. * * Extracts the prefix from path. This function assumes that your executable * or library is installed in an LSB-compatible directory structure. * * Example: * br_extract_prefix ("/usr/bin/gnome-panel"); --> Returns "/usr" * br_extract_prefix ("/usr/local/lib/libfoo.so"); --> Returns "/usr/local" * br_extract_prefix ("/usr/local/libfoo.so"); --> Returns "/usr" */ char * br_extract_prefix (const char *path) { char *end, *tmp, *result; br_return_val_if_fail (path != (char *) NULL, (char *) NULL); if (!*path) return strdup ("/"); end = strrchr (path, '/'); if (!end) return strdup (path); tmp = br_strndup ((char *) path, end - path); if (!*tmp) { free (tmp); return strdup ("/"); } end = strrchr (tmp, '/'); if (!end) return tmp; result = br_strndup (tmp, end - tmp); free (tmp); if (!*result) { free (result); result = strdup ("/"); } return result; } /** * br_set_fallback_function: * func: A function to call to find the binary. * data: User data to pass to func. * * Sets a function to call to find the path to the binary, in * case "/proc/self/maps" can't be opened. The function set should * return a string that is safe to free with free(). */ void br_set_locate_fallback_func (br_locate_fallback_func func, void *data) { fallback_func = func; fallback_data = data; } #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* _PREFIX_C */ gtkmathview-0.8.0/src/engine/common/prefix.h0000644000175000017500000001300110661271077015766 00000000000000/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef _PREFIX_H_ #define _PREFIX_H_ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /* WARNING, BEFORE YOU MODIFY PREFIX.C: * * If you make changes to any of the functions in prefix.c, you MUST * change the BR_NAMESPACE macro. * This way you can avoid symbol table conflicts with other libraries * that also happen to use BinReloc. * * Example: * #define BR_NAMESPACE(funcName) foobar_ ## funcName * --> expands br_locate to foobar_br_locate */ #undef BR_NAMESPACE #define BR_NAMESPACE(funcName) funcName #ifdef ENABLE_BINRELOC #define br_thread_local_store BR_NAMESPACE(br_thread_local_store) #define br_locate BR_NAMESPACE(br_locate) #define br_locate_prefix BR_NAMESPACE(br_locate_prefix) #define br_prepend_prefix BR_NAMESPACE(br_prepend_prefix) #ifndef BR_NO_MACROS /* These are convience macros that replace the ones usually used in Autoconf/Automake projects */ #undef SELFPATH #undef PREFIX #undef PREFIXDIR #undef BINDIR #undef SBINDIR #undef DATADIR #undef LIBDIR #undef LIBEXECDIR #undef ETCDIR #undef SYSCONFDIR #undef CONFDIR #undef LOCALEDIR #define SELFPATH (br_thread_local_store (br_locate ((void *) ""))) #define PREFIX (br_thread_local_store (br_locate_prefix ((void *) ""))) #define PREFIXDIR (br_thread_local_store (br_locate_prefix ((void *) ""))) #define BINDIR (br_thread_local_store (br_prepend_prefix ((void *) "", "/bin"))) #define SBINDIR (br_thread_local_store (br_prepend_prefix ((void *) "", "/sbin"))) #define DATADIR (br_thread_local_store (br_prepend_prefix ((void *) "", "/share"))) #define LIBDIR (br_thread_local_store (br_prepend_prefix ((void *) "", "/lib"))) #define LIBEXECDIR (br_thread_local_store (br_prepend_prefix ((void *) "", "/libexec"))) #define ETCDIR (br_thread_local_store (br_prepend_prefix ((void *) "", "/etc"))) #define SYSCONFDIR (br_thread_local_store (br_prepend_prefix ((void *) "", "/etc"))) #define CONFDIR (br_thread_local_store (br_prepend_prefix ((void *) "", "/etc"))) #define LOCALEDIR (br_thread_local_store (br_prepend_prefix ((void *) "", "/share/locale"))) #endif /* BR_NO_MACROS */ /* The following functions are used internally by BinReloc and shouldn't be used directly in applications. */ char *br_locate (void *symbol); char *br_locate_prefix (void *symbol); char *br_prepend_prefix (void *symbol, char *path); #endif /* ENABLE_BINRELOC */ const char *br_thread_local_store (char *str); /* These macros and functions are not guarded by the ENABLE_BINRELOC * macro because they are portable. You can use these functions. */ #define br_strcat BR_NAMESPACE(br_strcat) #define br_extract_dir BR_NAMESPACE(br_extract_dir) #define br_extract_prefix BR_NAMESPACE(br_extract_prefix) #define br_set_locate_fallback_func BR_NAMESPACE(br_set_locate_fallback_func) #ifndef BR_NO_MACROS #ifndef ENABLE_BINRELOC #define BR_SELFPATH(suffix) SELFPATH suffix #define BR_PREFIX(suffix) PREFIX suffix #define BR_PREFIXDIR(suffix) BR_PREFIX suffix #define BR_BINDIR(suffix) BINDIR suffix #define BR_SBINDIR(suffix) SBINDIR suffix #define BR_DATADIR(suffix) DATADIR suffix #define BR_LIBDIR(suffix) LIBDIR suffix #define BR_LIBEXECDIR(suffix) LIBEXECDIR suffix #define BR_ETCDIR(suffix) ETCDIR suffix #define BR_SYSCONFDIR(suffix) SYSCONFDIR suffix #define BR_CONFDIR(suffix) CONFDIR suffix #define BR_LOCALEDIR(suffix) LOCALEDIR suffix #else #define BR_SELFPATH(suffix) (br_thread_local_store (br_strcat (SELFPATH, suffix))) #define BR_PREFIX(suffix) (br_thread_local_store (br_strcat (PREFIX, suffix))) #define BR_PREFIXDIR(suffix) (br_thread_local_store (br_strcat (BR_PREFIX, suffix))) #define BR_BINDIR(suffix) (br_thread_local_store (br_strcat (BINDIR, suffix))) #define BR_SBINDIR(suffix) (br_thread_local_store (br_strcat (SBINDIR, suffix))) #define BR_DATADIR(suffix) (br_thread_local_store (br_strcat (DATADIR, suffix))) #define BR_LIBDIR(suffix) (br_thread_local_store (br_strcat (LIBDIR, suffix))) #define BR_LIBEXECDIR(suffix) (br_thread_local_store (br_strcat (LIBEXECDIR, suffix))) #define BR_ETCDIR(suffix) (br_thread_local_store (br_strcat (ETCDIR, suffix))) #define BR_SYSCONFDIR(suffix) (br_thread_local_store (br_strcat (SYSCONFDIR, suffix))) #define BR_CONFDIR(suffix) (br_thread_local_store (br_strcat (CONFDIR, suffix))) #define BR_LOCALEDIR(suffix) (br_thread_local_store (br_strcat (LOCALEDIR, suffix))) #endif #endif char *br_strcat (const char *str1, const char *str2); char *br_extract_dir (const char *path); char *br_extract_prefix(const char *path); typedef char *(*br_locate_fallback_func) (void *symbol, void *data); void br_set_locate_fallback_func (br_locate_fallback_func func, void *data); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* _PREFIX_H_ */ gtkmathview-0.8.0/src/engine/common/Adapters.hh0000644000175000017500000000434710661271077016421 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Adapters_hh__ #define __Adapters_hh__ #include #include "SmartPtr.hh" template > struct ConstructAdapter : public std::unary_function { void operator()(const TPtr& elem) const { elem->construct(); } }; template > struct RefineAdapter : public std::binary_function { void operator()(const TPtr& elem, C* context) const { elem->refine(*context); } }; template > struct FormatAdapter : public std::binary_function { R operator()(const TPtr& elem, C* context) const { return elem->format(*context); } }; template > struct SetFlagDownAdapter : public std::binary_function { void operator()(const TPtr& elem, typename T::Flags f) const { elem->setFlagDown(f); } }; template > struct ResetFlagDownAdapter : public std::binary_function { void operator()(const TPtr& elem, typename T::Flags f) const { elem->resetFlagDown(f); } }; template > struct NotNullPredicate : public std::unary_function { bool operator()(const TPtr& elem) const { return elem; } }; #endif // __Adapters_hh__ gtkmathview-0.8.0/src/engine/common/ElementFactory.hh0000644000175000017500000000224110661271077017566 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __ElementFactory_hh__ #define __ElementFactory_hh__ #include "String.hh" #include "Object.hh" class ElementFactory : public Object { public: virtual SmartPtr createElement(const String&) const = 0; //virtual SmartPtr createAdapter(const String&) const = 0; }; #endif // __ElementFactory_hh__ gtkmathview-0.8.0/src/engine/common/Makefile.am0000644000175000017500000000201310613606750016352 00000000000000 NULL = noinst_LTLIBRARIES = libengine_common.la libengine_common_la_CPPFLAGS = -DGMV_MathView_DLL libengine_common_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ libengine_common_la_SOURCES = \ Attribute.cc \ AttributeSet.cc \ AttributeSignature.cc \ NamespaceContext.cc \ View.cc \ Node.cc \ Element.cc \ prefix.c \ prefix.h \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ NamespaceContext.hh \ Element.hh \ Node.hh \ View.hh \ $(NULL) noinst_HEADERS = \ Adapters.hh \ Attribute.hh \ AttributeSet.hh \ AttributeSignature.hh \ BinContainerTemplate.hh \ CommonStringParsers.hh \ ElementFactory.hh \ LinearContainerTemplate.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/backend/common \ $(NULL) gtkmathview-0.8.0/src/engine/common/Element.cc0000644000175000017500000001304010661271077016223 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "View.hh" #include "AbstractLogger.hh" #include "Builder.hh" #include "Element.hh" #include "ElementFactory.hh" #include "AttributeSignature.hh" #include "AttributeSet.hh" #include "NamespaceContext.hh" Element::Element(const SmartPtr& c) : context(c) { assert(context); setDirtyStructure(); setDirtyAttribute(); setDirtyLayout(); } Element::~Element() { context->getView()->getBuilder()->forgetElement(this); } void Element::setParent(const SmartPtr& p) { parent = static_cast(p); if (p) { // WARNING: the setFlagUp is smart so it does not propagate the flag // if the flag is already set. // the setFlagDown however doesn't check for the status of the flag // so it is more delicate if (dirtyStructure()) setFlagUp(FDirtyStructure); if (dirtyAttribute()) setFlagUp(FDirtyAttributeP); // WARNING: since the builder creates the formatting tree in a top-down fashion // and it resets dirty flags bottom-up, having a setFlagDown in the setParent // would cause sometimes the creation of inconsistent formatting tree // having subtrees with the DirtyAttributeD flag set, but no DirtyAttributeP // set above the subtree. // not propagating the DirtyAttributeD flag however may result into // wrong formatting in some cases. It is not clear what should be done // to fix this. //if (p->dirtyAttributeD() && !dirtyAttributeD()) setFlagDown(FDirtyAttributeD); if (dirtyLayout()) setFlagUp(FDirtyLayout); // if (p->dirtyLayout()) setFlagDown(FDirtyLayout); // NOOOOOOOOOOOOOOOOOOOO } } unsigned Element::getDepth() const { unsigned depth = 0; for (SmartPtr p = this; p; p = p->getParent()) depth++; return depth; } SmartPtr Element::getAttribute(const AttributeSignature& signature) const { return attributes ? attributes->get(ATTRIBUTE_ID_OF_SIGNATURE(signature)) : 0; } void Element::setAttribute(const SmartPtr& attr) { assert(attr); if (!attributes) attributes = AttributeSet::create(); if (attributes->set(attr)) setDirtyLayout(); } void Element::removeAttribute(const AttributeSignature& signature) { if (attributes && attributes->remove(ATTRIBUTE_ID_OF_SIGNATURE(signature))) setDirtyLayout(); } SmartPtr Element::getAttributeValueNoDefault(const AttributeSignature& signature) const { if (SmartPtr attr = getAttribute(signature)) return attr->getValue(); else return 0; } SmartPtr Element::getAttributeValue(const AttributeSignature& signature) const { if (SmartPtr value = getAttributeValueNoDefault(signature)) return value; else return signature.getDefaultValue(); } void Element::setDirtyStructure() { if (!dirtyStructure()) { setFlag(FDirtyStructure); setFlagUp(FDirtyStructure); } } void Element::setDirtyAttribute() { //std::cerr << "Element::setDirtyAttribute " << this << " " << dirtyAttribute() << std::endl; if (!dirtyAttribute()) { setFlag(FDirtyAttribute); setFlagUp(FDirtyAttributeP); } } void Element::setDirtyAttributeD() { //std::cerr << "Element::setDirtyAttributeD " << this << " " << dirtyAttribute() << std::endl; if (!dirtyAttributeD()) { setFlagDown(FDirtyAttributeD); setFlagUp(FDirtyAttributeP); } } void Element::setDirtyLayout() { if (!dirtyLayout()) { setFlag(FDirtyLayout); setFlagUp(FDirtyLayout); } } void Element::setDirtyLayoutD() { if (!dirtyLayout()) { setFlagDown(FDirtyLayout); setDirtyLayout(); } } void Element::setFlag(Flags f) { //if (f == FDirtyAttributeP) std::cerr << "Element::setFlag (FDirtyAttributeP) " << this << std::endl; //if (f == FDirtyAttribute) std::cerr << "Element::setFlag (FDirtyAttribute) " << this << std::endl; //if (f == FDirtyAttributeD) std::cerr << "Element::setFlag (FDirtyAttributeD) " << this << std::endl; flags.set(f); } void Element::setFlagUp(Flags f) { for (SmartPtr p = getParent(); p && !p->getFlag(f); p = p->getParent()) p->setFlag(f); } void Element::resetFlagUp(Flags f) { for (SmartPtr p = getParent(); p && p->getFlag(f); p = p->getParent()) p->resetFlag(f); } void Element::setFlagDown(Flags f) { setFlag(f); } void Element::resetFlagDown(Flags f) { resetFlag(f); } SmartPtr Element::getNamespaceContext() const { return static_cast(context); } SmartPtr Element::getLogger() const { return getNamespaceContext()->getView()->getLogger(); } AreaRef Element::format(class FormattingContext&) { if (dirtyLayout()) { setArea(0); resetDirtyLayout(); } return getArea(); } gtkmathview-0.8.0/src/engine/common/Makefile.in0000644000175000017500000007212510704610551016371 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/engine/common DIST_COMMON = $(mathview_HEADERS) $(noinst_HEADERS) \ $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libengine_common_la_LIBADD = am__objects_1 = am_libengine_common_la_OBJECTS = libengine_common_la-Attribute.lo \ libengine_common_la-AttributeSet.lo \ libengine_common_la-AttributeSignature.lo \ libengine_common_la-NamespaceContext.lo \ libengine_common_la-View.lo libengine_common_la-Node.lo \ libengine_common_la-Element.lo libengine_common_la-prefix.lo \ $(am__objects_1) libengine_common_la_OBJECTS = $(am_libengine_common_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libengine_common_la_SOURCES) DIST_SOURCES = $(libengine_common_la_SOURCES) am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(mathviewdir)" mathviewHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(mathview_HEADERS) $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = noinst_LTLIBRARIES = libengine_common.la libengine_common_la_CPPFLAGS = -DGMV_MathView_DLL libengine_common_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ libengine_common_la_SOURCES = \ Attribute.cc \ AttributeSet.cc \ AttributeSignature.cc \ NamespaceContext.cc \ View.cc \ Node.cc \ Element.cc \ prefix.c \ prefix.h \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ NamespaceContext.hh \ Element.hh \ Node.hh \ View.hh \ $(NULL) noinst_HEADERS = \ Adapters.hh \ Attribute.hh \ AttributeSet.hh \ AttributeSignature.hh \ BinContainerTemplate.hh \ CommonStringParsers.hh \ ElementFactory.hh \ LinearContainerTemplate.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/frontend/common \ -I$(top_srcdir)/src/backend/common \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .c .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/engine/common/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/engine/common/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libengine_common.la: $(libengine_common_la_OBJECTS) $(libengine_common_la_DEPENDENCIES) $(CXXLINK) $(libengine_common_la_LDFLAGS) $(libengine_common_la_OBJECTS) $(libengine_common_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libengine_common_la-Attribute.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libengine_common_la-AttributeSet.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libengine_common_la-AttributeSignature.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libengine_common_la-Element.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libengine_common_la-NamespaceContext.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libengine_common_la-Node.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libengine_common_la-View.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libengine_common_la-prefix.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< libengine_common_la-prefix.lo: prefix.c @am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libengine_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libengine_common_la-prefix.lo -MD -MP -MF "$(DEPDIR)/libengine_common_la-prefix.Tpo" -c -o libengine_common_la-prefix.lo `test -f 'prefix.c' || echo '$(srcdir)/'`prefix.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libengine_common_la-prefix.Tpo" "$(DEPDIR)/libengine_common_la-prefix.Plo"; else rm -f "$(DEPDIR)/libengine_common_la-prefix.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='prefix.c' object='libengine_common_la-prefix.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libengine_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libengine_common_la-prefix.lo `test -f 'prefix.c' || echo '$(srcdir)/'`prefix.c .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libengine_common_la-Attribute.lo: Attribute.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libengine_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libengine_common_la-Attribute.lo -MD -MP -MF "$(DEPDIR)/libengine_common_la-Attribute.Tpo" -c -o libengine_common_la-Attribute.lo `test -f 'Attribute.cc' || echo '$(srcdir)/'`Attribute.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libengine_common_la-Attribute.Tpo" "$(DEPDIR)/libengine_common_la-Attribute.Plo"; else rm -f "$(DEPDIR)/libengine_common_la-Attribute.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Attribute.cc' object='libengine_common_la-Attribute.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libengine_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libengine_common_la-Attribute.lo `test -f 'Attribute.cc' || echo '$(srcdir)/'`Attribute.cc libengine_common_la-AttributeSet.lo: AttributeSet.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libengine_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libengine_common_la-AttributeSet.lo -MD -MP -MF "$(DEPDIR)/libengine_common_la-AttributeSet.Tpo" -c -o libengine_common_la-AttributeSet.lo `test -f 'AttributeSet.cc' || echo '$(srcdir)/'`AttributeSet.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libengine_common_la-AttributeSet.Tpo" "$(DEPDIR)/libengine_common_la-AttributeSet.Plo"; else rm -f "$(DEPDIR)/libengine_common_la-AttributeSet.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='AttributeSet.cc' object='libengine_common_la-AttributeSet.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libengine_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libengine_common_la-AttributeSet.lo `test -f 'AttributeSet.cc' || echo '$(srcdir)/'`AttributeSet.cc libengine_common_la-AttributeSignature.lo: AttributeSignature.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libengine_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libengine_common_la-AttributeSignature.lo -MD -MP -MF "$(DEPDIR)/libengine_common_la-AttributeSignature.Tpo" -c -o libengine_common_la-AttributeSignature.lo `test -f 'AttributeSignature.cc' || echo '$(srcdir)/'`AttributeSignature.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libengine_common_la-AttributeSignature.Tpo" "$(DEPDIR)/libengine_common_la-AttributeSignature.Plo"; else rm -f "$(DEPDIR)/libengine_common_la-AttributeSignature.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='AttributeSignature.cc' object='libengine_common_la-AttributeSignature.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libengine_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libengine_common_la-AttributeSignature.lo `test -f 'AttributeSignature.cc' || echo '$(srcdir)/'`AttributeSignature.cc libengine_common_la-NamespaceContext.lo: NamespaceContext.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libengine_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libengine_common_la-NamespaceContext.lo -MD -MP -MF "$(DEPDIR)/libengine_common_la-NamespaceContext.Tpo" -c -o libengine_common_la-NamespaceContext.lo `test -f 'NamespaceContext.cc' || echo '$(srcdir)/'`NamespaceContext.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libengine_common_la-NamespaceContext.Tpo" "$(DEPDIR)/libengine_common_la-NamespaceContext.Plo"; else rm -f "$(DEPDIR)/libengine_common_la-NamespaceContext.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='NamespaceContext.cc' object='libengine_common_la-NamespaceContext.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libengine_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libengine_common_la-NamespaceContext.lo `test -f 'NamespaceContext.cc' || echo '$(srcdir)/'`NamespaceContext.cc libengine_common_la-View.lo: View.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libengine_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libengine_common_la-View.lo -MD -MP -MF "$(DEPDIR)/libengine_common_la-View.Tpo" -c -o libengine_common_la-View.lo `test -f 'View.cc' || echo '$(srcdir)/'`View.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libengine_common_la-View.Tpo" "$(DEPDIR)/libengine_common_la-View.Plo"; else rm -f "$(DEPDIR)/libengine_common_la-View.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='View.cc' object='libengine_common_la-View.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libengine_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libengine_common_la-View.lo `test -f 'View.cc' || echo '$(srcdir)/'`View.cc libengine_common_la-Node.lo: Node.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libengine_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libengine_common_la-Node.lo -MD -MP -MF "$(DEPDIR)/libengine_common_la-Node.Tpo" -c -o libengine_common_la-Node.lo `test -f 'Node.cc' || echo '$(srcdir)/'`Node.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libengine_common_la-Node.Tpo" "$(DEPDIR)/libengine_common_la-Node.Plo"; else rm -f "$(DEPDIR)/libengine_common_la-Node.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Node.cc' object='libengine_common_la-Node.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libengine_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libengine_common_la-Node.lo `test -f 'Node.cc' || echo '$(srcdir)/'`Node.cc libengine_common_la-Element.lo: Element.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libengine_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libengine_common_la-Element.lo -MD -MP -MF "$(DEPDIR)/libengine_common_la-Element.Tpo" -c -o libengine_common_la-Element.lo `test -f 'Element.cc' || echo '$(srcdir)/'`Element.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libengine_common_la-Element.Tpo" "$(DEPDIR)/libengine_common_la-Element.Plo"; else rm -f "$(DEPDIR)/libengine_common_la-Element.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Element.cc' object='libengine_common_la-Element.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libengine_common_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libengine_common_la-Element.lo `test -f 'Element.cc' || echo '$(srcdir)/'`Element.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-mathviewHEADERS: $(mathview_HEADERS) @$(NORMAL_INSTALL) test -z "$(mathviewdir)" || $(mkdir_p) "$(DESTDIR)$(mathviewdir)" @list='$(mathview_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(mathviewHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(mathviewdir)/$$f'"; \ $(mathviewHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(mathviewdir)/$$f"; \ done uninstall-mathviewHEADERS: @$(NORMAL_UNINSTALL) @list='$(mathview_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(mathviewdir)/$$f'"; \ rm -f "$(DESTDIR)$(mathviewdir)/$$f"; \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(mathviewdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-mathviewHEADERS install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-mathviewHEADERS .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-mathviewHEADERS install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-info-am \ uninstall-mathviewHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/src/engine/Makefile.in0000644000175000017500000004064410704610547015107 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/engine DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = common mathml boxml adapters DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = @COND_BOXML_FALSE@MAYBE_BOXML_SUBDIRS = $(NULL) @COND_BOXML_TRUE@MAYBE_BOXML_SUBDIRS = boxml adapters SUBDIRS = common mathml $(MAYBE_BOXML_SUBDIRS) all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/engine/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/engine/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ clean clean-generic clean-libtool clean-recursive ctags \ ctags-recursive distclean distclean-generic distclean-libtool \ distclean-recursive distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-exec install-exec-am install-info \ install-info-am install-man install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic maintainer-clean-recursive \ mostlyclean mostlyclean-generic mostlyclean-libtool \ mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/src/Makefile.am0000644000175000017500000000157410613606766013637 00000000000000 NULL = if COND_GTK MAYBE_GTK_SUBDIRS = widget else MAYBE_GTK_SUBDIRS = $(NULL) endif SUBDIRS = common engine backend frontend . view $(MAYBE_GTK_SUBDIRS) if COND_BOXML MAYBE_BOXML_LIBADD = \ $(top_builddir)/src/engine/boxml/libboxml.la \ $(top_builddir)/src/engine/adapters/libadapters.la \ $(NULL) else MAYBE_BOXML_LIBADD = $(NULL) endif lib_LTLIBRARIES = libmathview.la libmathview_la_CPPFLAGS = -DGMV_MathView_DLL libmathview_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ -no-undefined libmathview_la_SOURCES = dummy.cc libmathview_la_LIBADD = \ $(top_builddir)/src/backend/common/libbackend_common.la \ $(top_builddir)/src/frontend/common/libfrontend_common.la \ $(top_builddir)/src/engine/mathml/libmathml.la \ $(MAYBE_BOXML_LIBADD) \ $(top_builddir)/src/engine/common/libengine_common.la \ $(top_builddir)/src/common/libcommon.la \ -lstdc++ \ $(NULL) gtkmathview-0.8.0/src/dummy.cc0000644000175000017500000000216210661271105013223 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . // this file is just needed to make sure that when linking libmathview.la // libtool uses the g++ compiler, not gcc. This way linking will not // yield errors related to undefined symbols. It is a dirty hack, but it // works (and it is also unofficially recommended on some mailing lists) gtkmathview-0.8.0/src/common/0000777000175000017500000000000010704625453013143 500000000000000gtkmathview-0.8.0/src/common/Configuration.cc0000644000175000017500000001262110661271105016170 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "AbstractLogger.hh" #include "Configuration.hh" #include "TemplateStringParsers.hh" std::vector Configuration::configurationPaths; Configuration::Configuration() { } Configuration::~Configuration() { } const char* Configuration::getBinaryVersion() { return VERSION; } void Configuration::addConfigurationPath(const String& path) { configurationPaths.push_back(path); } const std::vector& Configuration::getConfigurationPaths() { return configurationPaths; } void Configuration::add(const String& key, const String& value) { Map::iterator p = map.find(key); if (p != map.end()) p->second = Entry::create(value, p->second); else map[key] = Entry::create(value, 0); } bool Configuration::has(const String& key) const { return map.find(key) != map.end(); } SmartPtr Configuration::get(const String& key) const { const Map::const_iterator p = map.find(key); if (p != map.end()) return p->second; else return 0; } std::vector > Configuration::getAll(const String& prefix) const { std::vector > content; for (Map::const_iterator p = map.begin(); p != map.end(); p++) if (p->first.substr(0, prefix.length()) == prefix) content.push_back(p->second); return content; } String Configuration::getString(const SmartPtr& logger, const String& key, const String& def) const { if (SmartPtr entry = get(key)) return entry->getValue(); else { logger->out(LOG_INFO, "missing `%s' key in configuration", key.c_str()); return def; } } std::vector Configuration::getStringList(const String& key) const { std::vector res; for (SmartPtr entry = get(key); entry; entry = entry->getNext()) res.push_back(entry->getValue()); std::reverse(res.begin(), res.end()); return res; } int Configuration::getInt(const SmartPtr& logger, const String& key, int def) const { if (SmartPtr entry = get(key)) { int res; if (entry->asInt(res)) return res; else { logger->out(LOG_WARNING, "syntax error for `%s' key in configuration (int expected)", key.c_str()); return def; } } else { logger->out(LOG_INFO, "missing `%s' key in configuration", key.c_str()); return def; } } bool Configuration::getBool(const SmartPtr& logger, const String& key, bool def) const { if (SmartPtr entry = get(key)) { bool res; if (entry->asBool(res)) return res; else { logger->out(LOG_WARNING, "syntax error for `%s' key in configuration (bool expected)", key.c_str()); return def; } } else { logger->out(LOG_INFO, "missing `%s' key in configuration", key.c_str()); return def; } } RGBColor Configuration::getRGBColor(const SmartPtr& logger, const String& key, const RGBColor& def) const { if (SmartPtr entry = get(key)) { RGBColor res; if (entry->asRGBColor(res)) return res; else { logger->out(LOG_WARNING, "syntax error for `%s' key in configuration (color expected)", key.c_str()); return def; } } else { logger->out(LOG_INFO, "missing `%s' key in configuration", key.c_str()); return def; } } Configuration::Entry::Entry(const String& _value, const SmartPtr& _next) : value(_value), next(_next) { } Configuration::Entry::~Entry() { } SmartPtr Configuration::Entry::create(const String& value, const SmartPtr& next) { return new Entry(value, next); } SmartPtr Configuration::Entry::getNext() const { return next; } bool Configuration::Entry::asInt(int& res) const { const UCS4String uValue = UCS4StringOfString(value); UCS4String::const_iterator next; if (SmartPtr v = Parse::parse(uValue.begin(), uValue.end(), next)) { res = ToInteger(v); return true; } else return false; } bool Configuration::Entry::asBool(bool& res) const { if (value == "true" || value == "on" || value == "yes") { res = true; return true; } else if (value == "false" || value == "off" || value == "yes") { res = false; return true; } else return false; } bool Configuration::Entry::asRGBColor(RGBColor& res) const { const UCS4String uValue = UCS4StringOfString(value); UCS4String::const_iterator next; if (SmartPtr v = ParseRGBColor::parse(uValue.begin(), uValue.end(), next)) { res = ToRGBColor(v); return true; } else return false; } gtkmathview-0.8.0/src/common/scaled.hh0000644000175000017500000000171110661271105014624 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __scaled_hh__ #define __scaled_hh__ #include "fixed.hh" typedef fixed scaled; #endif // __scaled_hh__ gtkmathview-0.8.0/src/common/SparseMap.hh0000644000175000017500000000356510661271105015275 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SparseMap_hh__ #define __SparseMap_hh__ #include "gmv_defines.h" template class GMV_MathView_EXPORT SparseMap { public: SparseMap(void) { for (unsigned i = 0; i < (1 << N); i++) defData[i] = T(); for (unsigned i = 0; i < (1 << M); i++) data[i] = defData; } ~SparseMap() { for (unsigned i = 0; i < (1 << M); i++) { if (data[i] != defData) delete [] data[i]; data[i] = 0; } } protected: unsigned I(unsigned index) const { return index >> N; } unsigned J(unsigned index) const { return index & ((1 << N) - 1); } public: void set(size_t index, const T& v) { unsigned i = I(index); assert(i < (1 << M)); if (data[i] == defData) { data[i] = new T[1 << N]; for (unsigned j = 0; j < (1 << N); j++) data[i][j] = T(); } data[i][J(index)] = v; } const T& operator[](size_t index) const { return data[I(index)][J(index)]; } private: typedef T* TBlock; TBlock data[1 << M]; T defData[1 << N]; }; #endif // __SparseMap_hh__ gtkmathview-0.8.0/src/common/StringHash.hh0000644000175000017500000000240210661271105015441 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __StringHash_hh__ #define __StringHash_hh__ #include #include "String.hh" struct GMV_MathView_EXPORT StringHash : public std::unary_function { size_t operator()(const String&) const; }; struct GMV_MathView_EXPORT StringEq : public std::binary_function { bool operator()(const String& s1, const String& s2) const { return s1 == s2; } }; #endif // __StringHash_hh__ gtkmathview-0.8.0/src/common/Point.hh0000644000175000017500000000224410661271105014464 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Point_hh__ #define __Point_hh__ #include "scaled.hh" struct GMV_MathView_EXPORT Point { Point(void) : x(scaled::zero()), y(scaled::zero()) { } Point(const scaled& x0, const scaled& y0) : x(x0), y(y0) { } void set(const scaled& x0, const scaled& y0) { x = x0; y = y0; } scaled x; scaled y; }; #endif // __Point_hh__ gtkmathview-0.8.0/src/common/token.hh0000644000175000017500000000213110661271105014506 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __token_hh__ #define __token_hh__ #include "String.hh" enum TokenId { #include "token.dec" T__NOTVALID }; TokenId tokenIdOfString(const char*); TokenId tokenIdOfString(const String&); const char* stringOfTokenId(TokenId); #endif // __token_hh__ gtkmathview-0.8.0/src/common/scaledAux.hh0000644000175000017500000000232010661271105015277 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __scaledAux_hh__ #define __scaledAux_hh__ #include #include #include "scaled.hh" inline GMV_MathView_EXPORT std::ostream& operator<<(std::ostream& os, const scaled& v) { return os << v.getValue(); } inline GMV_MathView_EXPORT std::string toString(const scaled& v) { std::ostringstream os; os << v; return os.str(); } #endif // __scaledAux_hh__ gtkmathview-0.8.0/src/common/Configuration.hh0000644000175000017500000000545110661271105016205 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Configuration_hh__ #define __Configuration_hh__ #include #include "defs.h" #include "String.hh" #include "StringHash.hh" #include "RGBColor.hh" #include "Object.hh" #include "SmartPtr.hh" #include "HashMap.hh" #include "Length.hh" class GMV_MathView_EXPORT Configuration : public Object { protected: Configuration(void); virtual ~Configuration(); public: static SmartPtr create(void) { return new Configuration(); } class Entry : public Object { protected: Entry(const String&, const SmartPtr&); virtual ~Entry(); public: static SmartPtr create(const String&, const SmartPtr&); String getValue(void) const { return value; } String asString(void) const { return value; } bool asInt(int&) const; bool asBool(bool&) const; bool asRGBColor(RGBColor&) const; SmartPtr getNext(void) const; private: String value; SmartPtr next; }; static const char* getBinaryVersion(void); static void addConfigurationPath(const String&); static const std::vector& getConfigurationPaths(void); bool has(const String&) const; void add(const String&, const String&); SmartPtr get(const String&) const; std::vector > getAll(const String&) const; String getString(const SmartPtr&, const String&, const String&) const; std::vector getStringList(const String&) const; int getInt(const SmartPtr&, const String&, int) const; bool getBool(const SmartPtr&, const String&, bool) const; RGBColor getRGBColor(const SmartPtr&, const String&, const RGBColor&) const; Length getLength(const SmartPtr&, const String&, const Length&) const; private: static std::vector configurationPaths; typedef HASH_MAP_NS::hash_map, StringHash, StringEq> Map; Map map; }; #endif // __Configuration_hh__ gtkmathview-0.8.0/src/common/fixed.hh0000644000175000017500000002403710661271105014476 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __fixed_hh__ #define __fixed_hh__ #include #include "gmv_defines.h" template::digits / 2> GMV_MathView_EXPORT class fixed { public: fixed(void) : value(0) { } fixed(T v, bool) : value(v) { } fixed(T v) : value(static_cast(v) << precision) { } fixed(float v) : value(static_cast(v * (static_cast(1) << precision))) { } fixed(double v) : value(static_cast(v * (static_cast(1) << precision))) { } static fixed zero(void) { return fixed(0, true); } static fixed half(void) { return fixed(static_cast(1) << (precision - 1), true); } static fixed one(void) { return fixed(static_cast(1) << precision, true); } static fixed min(void) { return fixed(std::numeric_limits::min(), true); } static fixed max(void) { return fixed(std::numeric_limits::max(), true); } template friend fixed abs(const fixed&); template friend fixed trunc(const fixed&); template friend fixed round(const fixed&); template friend fixed ceil(const fixed&); template friend fixed floor(const fixed&); template friend fixed operator+(const fixed&, const fixed&); template friend fixed operator-(const fixed&, const fixed&); template friend fixed operator-(const fixed&); template friend fixed operator*(const fixed&, const fixed&); template friend fixed operator*(const fixed&, int); template friend fixed operator*(const fixed&, float); template friend fixed operator*(const fixed&, double); template friend fixed operator*(int, const fixed&); template friend fixed operator*(float, const fixed&); template friend fixed operator*(double, const fixed&); template friend fixed operator/(const fixed&, int); template friend fixed operator/(const fixed&, float); template friend fixed operator/(const fixed&, double); template friend fixed& operator+=(fixed&, const fixed&); template friend fixed& operator-=(fixed&, const fixed&); template friend fixed& operator*=(fixed&, int); template friend fixed& operator*=(fixed&, float); template friend fixed& operator*=(fixed&, double); template friend fixed& operator/=(fixed&, int); template friend fixed& operator/=(fixed&, float); template friend fixed& operator/=(fixed&, double); template friend bool operator==(const fixed&, const fixed&); template friend bool operator!=(const fixed&, const fixed&); template friend bool operator<(const fixed&, const fixed&); template friend bool operator>(const fixed&, const fixed&); template friend bool operator<=(const fixed&, const fixed&); template friend bool operator>=(const fixed&, const fixed&); static int getPrecision(void) { return precision; } int toInt(void) const { return value >> precision; } float toFloat(void) const { return static_cast(value) / fixed::one().value; } double toDouble(void) const { return static_cast(value) / fixed::one().value; } T getValue(void) const { return value; } private: T value; }; template inline GMV_MathView_EXPORT fixed abs(const fixed& f) { return fixed((f.value > 0) ? f.value : -f.value, true); } template inline GMV_MathView_EXPORT fixed trunc(const fixed& f) { if (f.value > 0) return fixed(f.value & ~(fixed::one().value - 1), true); else return fixed(-(-f.value & ~(fixed::one().value - 1)), true); } template inline GMV_MathView_EXPORT fixed round(const fixed& f) { if (f.value > 0) return trunc(f + fixed::half()); else return trunc(f - fixed::half()); } template inline GMV_MathView_EXPORT fixed ceil(const fixed& f) { if (f.value > 0) return round(f + fixed::half()); else return trunc(f); } template inline GMV_MathView_EXPORT fixed floor(const fixed& f) { if (f.value > 0) return trunc(f); else return round(f - fixed::half()); } template inline GMV_MathView_EXPORT fixed operator+(const fixed& f1, const fixed& f2) { return fixed(f1.value + f2.value, true); } template inline GMV_MathView_EXPORT fixed operator-(const fixed& f1, const fixed& f2) { return fixed(f1.value - f2.value, true); } template inline GMV_MathView_EXPORT fixed operator-(const fixed& f) { return fixed(-f.value, true); } template inline GMV_MathView_EXPORT fixed operator*(const fixed& f1, const fixed& f2) { T a = f1.value >> (p / 2); T a1 = f1.value & ((1 << (p / 2)) - 1); T b = f2.value >> (p / 2); T b1 = f2.value & ((1 << (p / 2)) - 1); return fixed(static_cast(a * b + ((a1 * b) >> (p / 2)) + ((a * b1) >> (p / 2)) + ((a1 * b1) >> p)), true); } template inline GMV_MathView_EXPORT fixed operator*(const fixed& f, int v) { return fixed(f.value * v, true); } template inline GMV_MathView_EXPORT fixed operator*(const fixed& f, float v) { return fixed(static_cast(f.value * v), true); } template inline GMV_MathView_EXPORT fixed operator*(const fixed& f, double v) { return fixed(static_cast(f.value * v), true); } template inline GMV_MathView_EXPORT fixed operator/(const fixed& f, int v) { return fixed(f.value / v, true); } template inline GMV_MathView_EXPORT fixed operator/(const fixed& f, float v) { return fixed(static_cast(f.value / v), true); } template inline GMV_MathView_EXPORT fixed operator/(const fixed& f, double v) { return fixed(static_cast(f.value / v), true); } template inline GMV_MathView_EXPORT fixed operator*(int v, const fixed& f) { return fixed(f.value * v, true); } template inline GMV_MathView_EXPORT fixed operator*(float v, const fixed& f) { return fixed(static_cast(f.value * v), true); } template inline GMV_MathView_EXPORT fixed operator*(double v, const fixed& f) { return fixed(static_cast(f.value * v), true); } template inline GMV_MathView_EXPORT fixed& operator+=(fixed& f1, const fixed& f2) { f1.value += f2.value; return f1; } template inline GMV_MathView_EXPORT fixed& operator-=(fixed& f1, const fixed& f2) { f1.value -= f2.value; return f1; } template inline GMV_MathView_EXPORT fixed& operator*=(fixed& f, int v) { f.value *= v; return f; } template inline GMV_MathView_EXPORT fixed& operator*=(fixed& f, float v) { f.value = static_cast(f.value * v); return f; } template inline GMV_MathView_EXPORT fixed& operator*=(fixed& f, double v) { f.value = static_cast(f.value * v); return f; } template inline GMV_MathView_EXPORT fixed& operator/=(const fixed& f, int v) { f.value /= v; return f; } template inline GMV_MathView_EXPORT fixed& operator/=(const fixed& f, float v) { f.value = static_cast(f.value / v); return f; } template inline GMV_MathView_EXPORT fixed& operator/=(const fixed& f, double v) { f.value = static_cast(f.value / v); return f; } template inline GMV_MathView_EXPORT bool operator==(const fixed& f1, const fixed& f2) { return f1.value == f2.value; } template inline GMV_MathView_EXPORT bool operator!=(const fixed& f1, const fixed& f2) { return f1.value != f2.value; } template inline GMV_MathView_EXPORT bool operator<(const fixed& f1, const fixed& f2) { return f1.value < f2.value; } template inline GMV_MathView_EXPORT bool operator>(const fixed& f1, const fixed& f2) { return f1.value > f2.value; } template inline GMV_MathView_EXPORT bool operator<=(const fixed& f1, const fixed& f2) { return f1.value <= f2.value; } template inline GMV_MathView_EXPORT bool operator>=(const fixed& f1, const fixed& f2) { return f1.value >= f2.value; } #endif // __fixed_hh__ gtkmathview-0.8.0/src/common/AbstractLogger.cc0000644000175000017500000000321310661271105016261 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "AbstractLogger.hh" AbstractLogger::AbstractLogger() : logLevel(LOG_WARNING) { } AbstractLogger::~AbstractLogger() { } void AbstractLogger::setLogLevel(LogLevelId level) const { if (level < LOG_ERROR) level = LOG_ERROR; if (level > LOG_DEBUG) level = LOG_DEBUG; logLevel = LogLevelId(level); } void AbstractLogger::out(LogLevelId id, const char* fmt, ...) const { static const char* msg[] = { "Error", "Warning", "Info", "Debug" }; va_list args; va_start(args, fmt); if (id <= logLevel) { String res; static char buffer[256]; snprintf(buffer, 256, "[MathView] *** %s[%d:%d]: ", msg[id], id, logLevel); res += buffer; vsnprintf(buffer, 256, fmt, args); res += buffer; outString(res); } va_end(args); } gtkmathview-0.8.0/src/common/BoundingBoxAux.cc0000644000175000017500000000230610661271105016254 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "scaledAux.hh" #include "BoundingBoxAux.hh" std::string toString(const BoundingBox& box) { std::ostringstream os; os << "[W: " << box.width << "; H: " << box.height << "; D: " << box.depth << "]"; return os.str(); } std::ostream& operator<<(std::ostream& os, const BoundingBox& box) { return os << toString(box); } gtkmathview-0.8.0/src/common/BoundingBox.cc0000644000175000017500000000356610661271105015607 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "BoundingBox.hh" void BoundingBox::append(const BoundingBox& box) { width += box.width; height = std::max(height, box.height); depth = std::max(depth, box.depth); } void BoundingBox::overlap(const BoundingBox& box) { width = std::max(width, box.width); if (!box.defined()) return; else if (defined()) { height = std::max(height, box.height); depth = std::max(depth, box.depth); } else { height = box.height; depth = box.depth; } } void BoundingBox::under(const BoundingBox& box) { width = std::max(width, box.width); if (!box.defined()) return; else if (defined()) height += box.height + box.depth; else { height = box.height + box.depth; depth = 0; } } void BoundingBox::over(const BoundingBox& box) { width = std::max(width, box.width); if (!box.defined()) return; else if (defined()) depth += box.height + box.depth; else { height = 0; depth = box.height + box.depth; } } gtkmathview-0.8.0/src/common/LengthAux.cc0000644000175000017500000000450310661271105015260 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include #include "LengthAux.hh" static const char* unitName[] = { "??", "", "infinity", "lt", "em", "ex", "px", "in", "cm", "mm", "pt", "pc", "%", "negativeveryverythickspace", "negativeverythickspace", "negativethickspace", "negativemediumspace", "negativethinspace", "negativeverythinspace", "negativeveryverythinspace", "zerospace", "veryverythinspace", "verythinspace", "thinspace", "mediumspace", "thickspace", "verythickspace", "veryverythickspace", 0 }; std::string toString(Length::Unit unit) { assert(unit >= Length::UNDEFINED_UNIT && unit < Length::LAST_UNIT); return unitName[unit]; } bool fromString(const std::string& s, Length::Unit& unit) { for (unsigned i = 0; unitName[i]; i++) if (s == unitName[i]) { unit = Length::Unit(i); return true; } return false; } std::ostream& operator<<(std::ostream& os, const Length::Unit& unit) { return os << toString(unit); } std::string toString(const Length& length) { if (!length.defined()) return "[undefined length]"; if (length.isSpace()) return unitName[length.type]; else if (length.type == Length::INFINITY_UNIT) return (length.value < 0.0) ? "-infinity" : "infinity"; else { std::ostringstream os; os << length.value << length.type; return os.str(); } } std::ostream& operator<<(std::ostream& os, const Length& length) { return os << toString(length); } gtkmathview-0.8.0/src/common/Utils.cc0000644000175000017500000000200510661271105014454 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Utils.hh" namespace MathViewNS { bool fileExists(const char* fileName) { return g_file_test(fileName, G_FILE_TEST_EXISTS); } } gtkmathview-0.8.0/src/common/BoundingBoxAux.hh0000644000175000017500000000217710661271105016274 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoundingBoxAux_hh__ #define __BoundingBoxAux_hh__ #include #include #include "BoundingBox.hh" GMV_MathView_EXPORT std::string toString(const BoundingBox&); GMV_MathView_EXPORT std::ostream& operator<<(std::ostream&, const BoundingBox&); #endif // __BoundingBoxAux_hh__ gtkmathview-0.8.0/src/common/ValueConversion.hh0000644000175000017500000000437710661271105016526 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __ValueConversion_hh__ #define __ValueConversion_hh__ #include "SmartPtr.hh" #include "Length.hh" #include "Value.hh" #include "Variant.hh" #include "token.hh" #include "RGBColor.hh" #include "String.hh" GMV_MathView_EXPORT bool IsEmpty(const SmartPtr&); GMV_MathView_EXPORT bool IsTokenId(const SmartPtr&); GMV_MathView_EXPORT bool IsSequence(const SmartPtr&); GMV_MathView_EXPORT bool IsLength(const SmartPtr&); GMV_MathView_EXPORT bool IsRGBColor(const SmartPtr&); GMV_MathView_EXPORT bool IsNumber(const SmartPtr&); GMV_MathView_EXPORT bool ToBoolean(const SmartPtr&); GMV_MathView_EXPORT int ToInteger(const SmartPtr&); GMV_MathView_EXPORT float ToNumber(const SmartPtr&); GMV_MathView_EXPORT String ToString(const SmartPtr&); GMV_MathView_EXPORT SmartPtr ToSequence(const SmartPtr&); GMV_MathView_EXPORT RGBColor ToRGBColor(const SmartPtr&); GMV_MathView_EXPORT RGBColor ToRGB(const SmartPtr&); GMV_MathView_EXPORT TokenId ToTokenId(const SmartPtr&); GMV_MathView_EXPORT Length::Unit toUnitId(TokenId); GMV_MathView_EXPORT Length::Unit toUnitId(const SmartPtr&); GMV_MathView_EXPORT Length ToLength(const SmartPtr&); GMV_MathView_EXPORT RGBColor ToRGBColor(const SmartPtr&); GMV_MathView_EXPORT SmartPtr GetComponent(const SmartPtr&, int = -1, int = -1); #endif // __ValueConversion_hh__ gtkmathview-0.8.0/src/common/GObjectPtr.hh0000644000175000017500000000262310661271105015377 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __GObjectPtr_hh__ #define __GObjectPtr_hh__ template class GObjectPtr { public: GObjectPtr(P* p = 0) : ptr(p) { if (ptr) g_object_ref(ptr); } GObjectPtr(const GObjectPtr& p) : ptr(p.ptr) { if (ptr) g_object_ref(ptr); } ~GObjectPtr() { if (ptr) g_object_unref(ptr); } GObjectPtr& operator=(const GObjectPtr& p) { if (ptr == p.ptr) return *this; if (p.ptr) g_object_ref(p.ptr); if (ptr) g_object_unref(ptr); ptr = p.ptr; return *this; } operator P*() const { return ptr; } private: P* ptr; }; #endif // __GObjectPtr_hh__ gtkmathview-0.8.0/src/common/Utils.hh0000644000175000017500000000177210661271105014500 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Utils_hh__ #define __Utils_hh__ #include "gmv_defines.h" namespace MathViewNS { GMV_MathView_EXPORT bool fileExists(const char*); } #endif // __Utils_hh__ gtkmathview-0.8.0/src/common/String.cc0000644000175000017500000000631010661271105014625 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include "String.hh" String trimSpacesLeft(const String& s) { String::const_iterator i = s.begin(); while (i != s.end() && isXmlSpace(*i)) i++; if (i != s.begin()) return String(i, s.end()); else return s; } String trimSpacesRight(const String& s) { String::const_iterator i = s.end(); while (i != s.begin() && isXmlSpace(*(i - 1))) i--; if (i != s.end()) return String(s.begin(), i); else return s; } String collapseSpaces(const String& s) { String res; res.reserve(s.length()); String::const_iterator i = s.begin(); while (i != s.end()) if (isXmlSpace(*i)) { res.push_back(' '); do i++; while (i != s.end() && isXmlSpace(*i)); } else { res.push_back(*i); i++; } return res; } String deleteSpaces(const String& s) { String res; res.reserve(s.length()); for (String::const_iterator i = s.begin(); i != s.end(); i++) if (!isXmlSpace(*i)) res.push_back(*i); return res; } String toLowerCase(const String& s) { String res; res.reserve(s.length()); for (String::const_iterator i = s.begin(); i != s.end(); i++) res.push_back(tolower(*i)); return res; } template DEST_STRING DESTofSOURCE(const SOURCE_STRING& s) { g_assert(sizeof(DEST_CHAR) == sizeof(typename DEST_STRING::value_type)); g_assert(sizeof(SOURCE_CHAR) == sizeof(typename SOURCE_STRING::value_type)); glong length; DEST_CHAR* destBuffer = f((const SOURCE_CHAR*) s.data(), s.length(), NULL, &length, NULL); DEST_STRING res((const typename DEST_STRING::value_type*) destBuffer, length); g_free(destBuffer); return res; } UTF8String UTF8StringOfUCS4String(const UCS4String& s) { return DESTofSOURCE(s); } UCS4String UCS4StringOfUTF8String(const UTF8String& s) { return DESTofSOURCE(s); } #if 0 UTF16String UTF16StringOfUCS4String(const UCS4String& s) { return DESTofSOURCE(s); } UCS4String UCS4StringOfUTF16String(const UTF16String& s) { return DESTofSOURCE(s); } #endif gtkmathview-0.8.0/src/common/Variant.hh0000644000175000017500000000476610661271105015012 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Variant_hh__ #define __Variant_hh__ #include #include "SmartPtr.hh" #include "Value.hh" template class GMV_MathView_EXPORT Variant : public Value { protected: Variant(const T& v) : value(v) { } virtual ~Variant() { } public: static SmartPtr create(const T& v) { return new Variant(v); } T getValue(void) const { return value; } private: T value; }; template <> class GMV_MathView_EXPORT Variant : public Value { protected: Variant(void) { } virtual ~Variant() { } public: static SmartPtr< Variant > create(void) { return new Variant(); } }; // The following full specialization is for sequences of Values // There are more accessor methods and getValue returns a // const reference instead of a copy fo the object template <> class GMV_MathView_EXPORT Variant< std::vector< SmartPtr > > : public Value { protected: Variant(const std::vector< SmartPtr >& v) : content(v) { } virtual ~Variant() { } public: static SmartPtr< Variant< std::vector< SmartPtr > > > create(const std::vector< SmartPtr >& v) { return new Variant(v); } const std::vector< SmartPtr >& getValue(void) const { return content; } unsigned getSize(void) const { return content.size(); } SmartPtr getValue(unsigned i) const { return content[i]; } private: std::vector< SmartPtr > content; }; typedef Variant< std::vector< SmartPtr > > ValueSequence; template /* GMV_MathView_EXPORT */ T as(const Value* v) { if (const Variant* obj = dynamic_cast*>(v)) return obj->getValue(); else throw Value::TypeError(); } #endif // __Variant_hh__ gtkmathview-0.8.0/src/common/RGBColorAux.cc0000644000175000017500000000274310661271105015454 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include "RGBColorAux.hh" std::string toString(const RGBColor& color) { std::ostringstream os; if (color.transparent()) os << "transparent"; else { os << "#" << std::setw(2) << std::setfill('0') << std::hex << (static_cast(color.red) & 0xff) << std::setw(2) << std::setfill('0') << std::hex << (static_cast(color.green) & 0xff) << std::setw(2) << std::setfill('0') << std::hex << (static_cast(color.blue) & 0xff); } return os.str(); } std::ostream& operator<<(std::ostream& os, const RGBColor& color) { return os << toString(color); } gtkmathview-0.8.0/src/common/ScopedHashMap.hh0000644000175000017500000000642010661271105016052 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __ScopedHashMap_hh__ #define __ScopedHashMap_hh__ #include "gmv_defines.h" #include "HashMap.hh" template , class EqualKey = std::equal_to, class Alloc = std::allocator > class GMV_MathView_EXPORT ScopedHashMap { public: ScopedHashMap(void) : env(0) { push(); } ~ScopedHashMap() { while (env) pop(); for (typename Map::iterator p = map.begin(); p != map.end(); p++) delete p->second; } void push(void) { env = new Env(env); } void pop() { Entry* p = env->first; Env* old_env = env->prev; delete env; env = old_env; while (p) { Entry* next = p->next_env; p->bucket->current_binding = p->prev; delete p; p = next; } } void set(const K& key, T value) { Bucket* bucket; typename Map::iterator p = map.find(key); if (p == map.end()) bucket = map[key] = new Bucket(key); else bucket = p->second; if (bucket->current_binding && bucket->current_binding->env == env) bucket->current_binding->value = value; else { bucket->current_binding = new Entry(env, bucket, bucket->current_binding, env->first, value); env->first = bucket->current_binding; } } T get(const K& key) const { typename Map::const_iterator p = map.find(key); if (p != map.end() && p->second->current_binding) return p->second->current_binding->value; else throw NotFound(); } bool defined(const K& key) const { typename Map::const_iterator p = map.find(key); return p != map.end() && p->second->current_binding; } bool definedInScope(const K& key) const { typename Map::const_iterator p = map.find(key); return p != map.end() && p->second->current_binding && p->second->current_binding->env == env; } class NotFound { }; private: struct Entry; struct Env; struct Bucket { Bucket(const K& k) : key(k), current_binding(0) { } K key; Entry* current_binding; }; struct Entry { Entry(Env* e, Bucket* b, Entry* p, Entry* p_env, const T& v) : env(e), bucket(b), next_env(p_env), prev(p), value(v) { } Env* env; Bucket* bucket; Entry* next_env; Entry* prev; T value; }; struct Env { Env(Env* p) : prev(p), first(0) { } Env* prev; Entry* first; }; typedef HASH_MAP_NS::hash_map Map; Env* env; Map map; }; #endif // __ScopedHashMap_hh__ gtkmathview-0.8.0/src/common/HashMap.hh0000644000175000017500000000237010661271105014714 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __HashMap_hh__ #define __HashMap_hh__ // !!! BEGIN WARNING: hash_map is not part of the STL !!! #if defined(GMV_HAVE_EXT_HASH_MAP) #include #define HASH_MAP_NS __gnu_cxx #elif defined(GMV_HAVE_HASH_MAP) #include #define HASH_MAP_NS std #else #error "no implementation of hash_map could be found" #endif // !!! END WARNING: hash_map is not part of the STL !!! #endif // __HashMap_hh__ gtkmathview-0.8.0/src/common/Logger.cc0000644000175000017500000000174210661271105014602 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "Logger.hh" void Logger::outString(const String& s) const { std::cerr << s << std::endl; } gtkmathview-0.8.0/src/common/ValueConversion.cc0000644000175000017500000001155510661271105016510 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "defs.h" #include "String.hh" #include "ValueConversion.hh" typedef Variant Variant_void; bool IsEmpty(const SmartPtr& value) { assert(value); return is_a(value); } bool IsTokenId(const SmartPtr& value) { assert(value); return is_a< Variant >(value); } bool IsSequence(const SmartPtr& value) { assert(value); return is_a< Variant< std::vector< SmartPtr > > >(value); } bool IsLength(const SmartPtr& value) { assert(value); return is_a< Variant >(value); } bool IsRGBColor(const SmartPtr& value) { assert(value); return is_a< Variant >(value); } bool IsNumber(const SmartPtr& value) { assert(value); return is_a< Variant >(value); } bool ToBoolean(const SmartPtr& value) { if (SmartPtr< Variant > v = smart_cast< Variant >(value)) return v->getValue(); assert(false); return bool(); } float ToNumber(const SmartPtr& value) { if (SmartPtr< Variant > v = smart_cast< Variant >(value)) return v->getValue(); assert(false); return float(); } int ToInteger(const SmartPtr& value) { if (SmartPtr< Variant > v = smart_cast< Variant >(value)) return v->getValue(); assert(false); return int(); } String ToString(const SmartPtr& value) { if (SmartPtr< Variant > v = smart_cast< Variant >(value)) return v->getValue(); assert(false); return String(); } Length ToLength(const SmartPtr& value) { if (SmartPtr< Variant > v = smart_cast< Variant >(value)) return v->getValue(); assert(false); return Length(); } RGBColor ToRGBColor(const SmartPtr& value) { if (SmartPtr< Variant > v = smart_cast< Variant >(value)) return v->getValue(); assert(false); return RGBColor(); } TokenId ToTokenId(const SmartPtr& value) { assert(value); if (SmartPtr< Variant > v = smart_cast< Variant >(value)) return v->getValue(); else return T__NOTVALID; } SmartPtr ToSequence(const SmartPtr& value) { return smart_cast(value); } Length::Unit toUnitId(TokenId id) { switch (id) { case T__PERCENTAGE: return Length::PERCENTAGE_UNIT; case T_EM: return Length::EM_UNIT; case T_EX: return Length::EX_UNIT; case T_PX: return Length::PX_UNIT; case T_IN: return Length::IN_UNIT; case T_CM: return Length::CM_UNIT; case T_MM: return Length::MM_UNIT; case T_PT: return Length::PT_UNIT; case T_PC: return Length::PC_UNIT; default: return Length::UNDEFINED_UNIT; } } Length::Unit toUnitId(const SmartPtr& value) { return toUnitId(ToTokenId(value)); } RGBColor ToRGB(const SmartPtr& value) { if (IsRGBColor(value)) return ToRGBColor(value); switch (ToTokenId(value)) { case T_BLACK: return RGBColor::BLACK(); case T_SILVER: return RGBColor::SILVER(); case T_GRAY: return RGBColor::GRAY(); case T_WHITE: return RGBColor::WHITE(); case T_MAROON: return RGBColor::MAROON(); case T_RED: return RGBColor::RED(); case T_PURPLE: return RGBColor::PURPLE(); case T_FUCHSIA: return RGBColor::FUCHSIA(); case T_GREEN: return RGBColor::GREEN(); case T_LIME: return RGBColor::LIME(); case T_OLIVE: return RGBColor::OLIVE(); case T_YELLOW: return RGBColor::YELLOW(); case T_NAVY: return RGBColor::NAVY(); case T_BLUE: return RGBColor::BLUE(); case T_TEAL: return RGBColor::TEAL(); case T_AQUA: return RGBColor::AQUA(); default: assert(false); return RGBColor::BLACK(); } } SmartPtr GetComponent(const SmartPtr& value, int i, int j) { if (value) if (i < 0) return value; else { SmartPtr vSeq = smart_cast(value); assert(vSeq); assert(vSeq->getSize() > 0); return GetComponent(vSeq->getValue(std::min(i, static_cast(vSeq->getSize() - 1))), j, -1); } else return 0; } gtkmathview-0.8.0/src/common/LengthAux.hh0000644000175000017500000000271010661271105015270 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __LengthAux_hh__ #define __LengthAux_hh__ #include #include #include "Length.hh" GMV_MathView_EXPORT std::string toString(Length::Unit); GMV_MathView_EXPORT bool fromString(const std::string&, Length::Unit&); GMV_MathView_EXPORT std::ostream& operator<<(std::ostream&, const Length::Unit&); GMV_MathView_EXPORT std::istream& operator>>(std::istream&, Length::Unit&); GMV_MathView_EXPORT std::string toString(const Length&); GMV_MathView_EXPORT std::ostream& operator<<(std::ostream&, const Length&); GMV_MathView_EXPORT std::istream& operator>>(std::istream&, Length&); #endif // __LengthAux_hh__ gtkmathview-0.8.0/src/common/StringHash.cc0000644000175000017500000000221110661271105015425 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include "StringHash.hh" size_t StringHash::operator()(const String& s) const { size_t h = 0; for (String::const_iterator i = s.begin(); i != s.end(); i++) { h = (h << 4) + *i; if (size_t g = h & 0xf0000000) { h = h ^ (g >> 24); h = h ^ g; } } return h; } gtkmathview-0.8.0/src/common/gmv_defines.h0000644000175000017500000000710710661271105015514 00000000000000/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef __gmv_defines_h__ #define __gmv_defines_h__ #if defined(WIN32) /* src/Makefile.am:lib_LTLIBRARIES = libmathview.la SUBLIB: src/backend/common/libbackend_common.la SUBLIB: src/backend/common/tfm/libtfm.la SUBLIB: src/frontend/common/libfrontend_common.la SUBLIB: src/engine/mathml/libmathml.la SUBLIB: src/engine/boxml/libboxml.la SUBLIB: src/engine/adapters/libadapters.la SUBLIB: src/engine/common/libengine_common.la SUBLIB: src/common/libcommon.la SUBLIB: src/common/mathvariants/libmathvariants.la */ #if defined(GMV_MathView_DLL) #define GMV_MathView_EXPORT __declspec(dllexport) #else #define GMV_MathView_EXPORT __declspec(dllimport) #endif /* src/backend/gtk/Makefile.am:lib_LTLIBRARIES = libmathview_backend_gtk.la src/backend/svg/Makefile.am:lib_LTLIBRARIES = libmathview_backend_svg.la */ #if defined(GMV_BackEnd_DLL) #define GMV_BackEnd_EXPORT __declspec(dllexport) #else #define GMV_BackEnd_EXPORT __declspec(dllimport) #endif /* src/view/Makefile.am:lib_LTLIBRARIES = $(CUSTOM_READER) $(LIBXML2_READER) $(LIBXML2) $(GMETADOM) CUSTOM_READER = libmathview_frontend_custom_reader.la ?? SUBLIB: src/frontend/libxml2_reader/libfrontend_libxml2_reader.la SUBLIB: src/frontend/custom_reader/libfrontend_custom_reader.la DEPENDS: libmathview.la LIBXML2_READER = libmathview_frontend_libxml2_reader.la SUBLIB: src/frontend/libxml2_reader/libfrontend_libxml2_reader.la DEPENDS: libmathview.la LIBXML2 = libmathview_frontend_libxml2.la SUBLIB: src/frontend/libxml2/libfrontend_libxml2.la DEPENDS: libmathview.la GMETADOM = libmathview_frontend_gmetadom.la SUBLIB: src/frontend/gmetadom/libfrontend_gmetadom.la DEPENDS: libmathview.la */ #if defined(GMV_FrontEnd_DLL) #define GMV_FrontEnd_EXPORT __declspec(dllexport) #else #define GMV_FrontEnd_EXPORT __declspec(dllimport) #endif /* src/widget/Makefile.am:lib_LTLIBRARIES = $(CUSTOM_READER) $(LIBXML2_READER) $(LIBXML2) $(GMETADOM) CUSTOM_READER = libgtkmathview_custom_reader.la DEPENDS: libmathview_backend_gtk.la DEPENDS: libmathview_frontend_custom_reader.la LIBXML2_READER = libgtkmathview_libxml2_reader.la DEPENDS: libmathview_backend_gtk.la DEPENDS: libmathview_frontend_libxml2_reader.la LIBXML2 = libgtkmathview_libxml2.la DEPENDS: libmathview_backend_gtk.la DEPENDS: libmathview_frontend_libxml2.la GMETADOM = libgtkmathview_gmetadom.la DEPENDS: libmathview_backend_gtk.la DEPENDS: libmathview_frontend_gmetadom.la */ #if defined(GMV_Widget_DLL) #define GMV_Widget_EXPORT __declspec(dllexport) #else #define GMV_Widget_EXPORT __declspec(dllimport) #endif #else #define GMV_MathView_EXPORT #define GMV_BackEnd_EXPORT #define GMV_FrontEnd_EXPORT #define GMV_Widget_EXPORT #endif /* WIN32 */ #endif /* __gmv_defines_h__ */ gtkmathview-0.8.0/src/common/WeakPtr.hh0000644000175000017500000000275610661271105014760 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __WeakPtr_hh__ #define __WeakPtr_hh__ #include #include "gmv_defines.h" template class GMV_MathView_EXPORT WeakPtr { public: WeakPtr(P* p = 0) : ptr(p) { } WeakPtr(const WeakPtr& p) : ptr(p.ptr) { } ~WeakPtr() { } P* operator->() const { assert(ptr); return ptr; } WeakPtr& operator=(const WeakPtr& p) { ptr = p.ptr; return *this; } operator P*() const { return ptr; } template friend WeakPtr weak_cast(const WeakPtr& p) { return WeakPtr(dynamic_cast(p.ptr)); } template operator WeakPtr() const { return WeakPtr(ptr); } private: P* ptr; }; #endif // __WeakPtr_hh__ gtkmathview-0.8.0/src/common/Object.hh0000644000175000017500000000310410661271105014575 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Object_hh__ #define __Object_hh__ #include "gmv_defines.h" class GMV_MathView_EXPORT Object { protected: // Having a protected constructor makes it impossible for users // to create directly instances of this class. We want to be sure // that all the instances are created dynamically, because of the // memory management Object(void) : refCounter(0) { } // Having a protected destructor makes it impossible for users // to call delete on an object of this class. Thus they are // forced to use the ref/unref mechanism virtual ~Object() { } public: void ref(void) const { refCounter++; } void unref(void) const { if (--refCounter == 0) delete this; } private: mutable unsigned refCounter; }; #endif // __Object_hh__ gtkmathview-0.8.0/src/common/Clock.hh0000644000175000017500000000235610661271105014432 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef Clock_hh #define Clock_hh #ifdef WIN32 #include #else #include #endif #include "gmv_defines.h" class GMV_MathView_EXPORT Clock { public: Clock(void); void Start(void); void Stop(void); void Dump(const char*) const; long Get(void) const; long operator()(void) const { return Get(); } private: struct timeval start; struct timeval stop; }; #endif // Clock_hh gtkmathview-0.8.0/src/common/Rectangle.hh0000644000175000017500000000370510661271105015302 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Rectangle_hh__ #define __Rectangle_hh__ #include "scaled.hh" #include "BoundingBox.hh" struct GMV_MathView_EXPORT Rectangle { scaled x; scaled y; scaled width; scaled height; Rectangle(void) { } Rectangle(const scaled& x0, const scaled& y0, const BoundingBox& box) : x(x0), y(y0 - box.depth), width(box.width), height(box.verticalExtent()) { } Rectangle(const scaled& x0, const scaled& y0, const scaled& width0, const scaled& height0) : x(x0), y(y0), width(width0), height(height0) { } void zero(void) { x = y = width = height = 0; } bool overlaps(const Rectangle& rect) const { return overlaps(rect.x, rect.y, rect.width, rect.height); } bool overlaps(const scaled& x0, const scaled& y0, const scaled& w0, const scaled& h0) const { return x <= x0 + w0 && x + width >= x0 && y <= y0 + h0 && y + height >= y0; } bool isNull(void) const { return (width == scaled(0)) || (height == scaled(0)); } bool isInside(const scaled& x0, const scaled& y0) const { return x <= x0 && x0 <= x + width && y <= y0 && y0 <= y + height; } void merge(const Rectangle&); }; #endif // __Rectangle_hh__ gtkmathview-0.8.0/src/common/CharTraits.icc0000644000175000017500000000242710661271105015601 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #if !defined(STD_TRAITS) #include "Char.hh" #include "CharTraits.hh" // force template instantiation typedef Char32* (*CT)(Char32*, const Char32*, size_t); typedef Char32* (*AT)(Char32*, size_t, Char32); static CT dont_discard_copy = &std::char_traits::copy; static CT dont_discard_move = &std::char_traits::move; static AT dont_discard_assign = &std::char_traits::assign; #endif // !defined(STD_TRAITS) gtkmathview-0.8.0/src/common/PointAux.hh0000644000175000017500000000213310661271105015137 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __PointAux_hh__ #define __PointAux_hh__ #include #include #include "Point.hh" GMV_MathView_EXPORT std::string toString(const Point&); GMV_MathView_EXPORT std::ostream& operator<<(std::ostream&, const Point&); #endif // __PointAux_hh__ gtkmathview-0.8.0/src/common/token.cc0000644000175000017500000000327510661271105014506 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "HashMap.hh" #include "StringHash.hh" #include "token.hh" struct Entry { TokenId id; const char* literal; }; static Entry token[] = { #include "token.def" { T__NOTVALID, 0 } }; typedef HASH_MAP_NS::hash_map Map; static Map map; TokenId tokenIdOfString(const char* s) { assert(s); return tokenIdOfString(String(s)); } TokenId tokenIdOfString(const String& s) { static bool initialized = false; if (!initialized) { for (unsigned i = 1; token[i].literal; i++) map[String(token[i].literal)] = token[i].id; initialized = true; } Map::iterator p = map.find(s); return (p != map.end()) ? (*p).second : T__NOTVALID; } const char* stringOfTokenId(TokenId id) { assert(id >= 0 && id < sizeof(token) / sizeof(Entry)); return token[id].literal; } gtkmathview-0.8.0/src/common/Makefile.am0000644000175000017500000000312510661271105015105 00000000000000 NULL = SUBDIRS = mathvariants noinst_LTLIBRARIES = libcommon.la libcommon_la_CPPFLAGS = $(NULL) libcommon_la_CPPFLAGS += -DGMV_MathView_DLL libcommon_la_LIBADD = \ $(top_builddir)/src/common/mathvariants/libmathvariants.la \ $(GLIB_LIBS) \ $(NULL) # if USE_GCC_PCH # BUILT_SOURCES = all.hh # include ./$(DEPDIR)/all.Po # include $(top_srcdir)/gcc-pch.mk # libcommon_la_CPPFLAGS += -include all.hh # endif libcommon_la_SOURCES = \ AbstractLogger.cc \ BoundingBox.cc \ BoundingBoxAux.cc \ Clock.cc \ Configuration.cc \ LengthAux.cc \ Logger.cc \ PointAux.cc \ RGBColorAux.cc \ Rectangle.cc \ String.cc \ StringAux.cc \ StringHash.cc \ Utils.cc \ ValueConversion.cc \ token.cc \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ AbstractLogger.hh \ BoundingBox.hh \ BoundingBoxAux.hh \ Configuration.hh \ HashMap.hh \ Length.hh \ LengthAux.hh \ Logger.hh \ Object.hh \ Point.hh \ PointAux.hh \ RGBColor.hh \ RGBColorAux.hh \ Rectangle.hh \ SmartPtr.hh \ ScopedHashMap.hh \ FastScopedHashMap.hh \ SparseMap.hh \ String.hh \ StringAux.hh \ StringHash.hh \ Utils.hh \ Value.hh \ ValueConversion.hh \ Variant.hh \ WeakPtr.hh \ defs.h \ fixed.hh \ gmv_defines.h \ scaled.hh \ scaledAux.hh \ $(NULL) noinst_HEADERS = \ CharTraits.hh \ CharTraits.icc \ Clock.hh \ GObjectPtr.hh \ TemplateStringScanners.hh \ TemplateStringParsers.hh \ TokenSet.hh \ for_each_if.h \ token.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ $(GLIB_CFLAGS) \ $(NULL) gtkmathview-0.8.0/src/common/TemplateStringParsers.hh0000644000175000017500000001625110661271105017700 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TemplateStringParsers_hh__ #define __TemplateStringParsers_hh__ #include "TokenSet.hh" #include "TemplateStringScanners.hh" #include "Variant.hh" #include "Length.hh" #include "ValueConversion.hh" typedef Set TokenSet_Boolean; typedef Set TokenSet_Unit; class ParseBin { public: static inline bool sequence(void) { return false; } static bool parseInSequence(const UCS4String::const_iterator&, const UCS4String::const_iterator&, UCS4String::const_iterator&, std::vector< SmartPtr >&) { assert(false); } }; template class Parse : public ParseBin { public: static SmartPtr parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { UCS4String::const_iterator p; ScanSpaces::scan(begin, end, p); if (Scanner::scan(p, end, next)) { NativeType v = Scanner::parse(p, next); return Variant::create(v); } return 0; } }; template <> class Parse { public: static SmartPtr parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { UCS4String::const_iterator p; ScanSpaces::scan(begin, end, p); if (ScanToken::scan(p, end, next)) { TokenId id = ScanToken::parse(p, next); if (TokenSet_Boolean::has(id)) return Variant::create(id == T_TRUE); } return 0; } }; class ParseLength : public ParseBin { public: static SmartPtr parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { UCS4String::const_iterator p; ScanSpaces::scan(begin, end, p); if (ScanNumber::scan(p, end, next)) { float v = ScanNumber::parse(p, next); p = next; ScanSpaces::scan(p, end, next); p = next; if (ScanToken::scan(p, end, next)) { TokenId id = ScanToken::parse(p, next); if (TokenSet_Unit::has(id)) return Variant::create(Length(v, toUnitId(id))); } } return 0; } }; class ParseString : public ParseBin { public: static SmartPtr parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { next = end; return Variant::create(Scan::toString(begin, end)); } }; class ParseKeyword : public ParseBin { public: static SmartPtr parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { UCS4String::const_iterator p; ScanSpaces::scan(begin, end, p); if (ScanKeywordToken::scan(p, end, next)) return Variant::create(Scan::toString(p, next)); else return 0; } }; template class ParseTokenSet : public ParseBin { public: static SmartPtr parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { UCS4String::const_iterator p; ScanSpaces::scan(begin, end, p); if (ScanToken::scan(p, end, next)) { TokenId id = ScanToken::parse(p, next); if (TokenSet::has(id)) return Variant::create(id); } return 0; } }; template class ParseToken : public ParseTokenSet< Singleton > { }; template class ParseChoice : public ParseBin { public: static SmartPtr parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { if (SmartPtr v = P1::parse(begin, end, next)) return v; else return P2::parse(begin, end, next); } }; template class ParseSeq { public: static inline bool sequence(void) { return true; } static bool parseInSequence(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next, std::vector< SmartPtr >& content) { UCS4String::const_iterator p; if (P1::sequence()) { if (!P1::parseInSequence(begin, end, p, content)) return false; } else if (SmartPtr v = P1::parse(begin, end, p)) content.push_back(v); else return false; if (P2::sequence()) { if (!P2::parseInSequence(p, end, next, content)) return false; } else if (SmartPtr v = P2::parse(p, end, next)) content.push_back(v); else return false; return true; } static SmartPtr parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { std::vector< SmartPtr > content; if (parseInSequence(begin, end, next, content)) return Variant > >::create(content); else return 0; } }; template class ParseZeroOrOne : public ParseBin { public: static SmartPtr parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { if (SmartPtr v = P::parse(begin, end, next)) return v; else { next = begin; return Variant::create(); } } }; template class ParseOneOrMore : public ParseBin { public: static SmartPtr parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { UCS4String::const_iterator p = begin; std::vector< SmartPtr > content; while (SmartPtr v = P::parse(p, end, next)) { content.push_back(v); p = next; } if (!content.empty()) { next = p; return Variant< std::vector< SmartPtr > >::create(content); } else return 0; } }; template class ParseZeroOrMore : public ParseZeroOrOne< ParseOneOrMore

> { }; class ParseRGBColor { public: static SmartPtr parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { UCS4String::const_iterator p; ScanSpaces::scan(begin, end, p); if (ScanRGBColor::scan(p, end, next)) return Variant::create(ScanRGBColor::parse(p, next)); else return 0; } }; #endif // __TemplateStringParsers_hh__ gtkmathview-0.8.0/src/common/for_each_if.h0000644000175000017500000000227510661271105015453 00000000000000/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef __for_each_if__ #define __for_each_if__ template UnaryFunction for_each_if(InputIterator first, InputIterator last, Predicate p, UnaryFunction f) { while (first != last) { if (p(*first)) f(*first); ++first; } return f; } #endif // __for_each_if__ gtkmathview-0.8.0/src/common/CharTraits.hh0000644000175000017500000000604610661271105015443 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __CharTraits_hh__ #define __CharTraits_hh__ #include namespace std { template<> struct char_traits { typedef Char32 char_type; typedef unsigned long int_type; typedef streampos pos_type; typedef streamoff off_type; typedef mbstate_t state_type; static void assign(char_type& __c1, const char_type& __c2) { __c1 = __c2; } static bool eq(const char_type& __c1, const char_type& __c2) { return __c1 == __c2; } static bool lt(const char_type& __c1, const char_type& __c2) { return __c1 < __c2; } static int compare(const char_type* __s1, const char_type* __s2, size_t __n) { for (size_t __i = 0; __i < __n; ++__i) if (!eq(__s1[__i], __s2[__i])) return lt(__s1[__i], __s2[__i]) ? -1 : 1; return 0; } static size_t length(const char_type* __s) { const char_type* __p = __s; while (*__p) ++__p; return (__p - __s); } static const char_type* find(const char_type* __s, size_t __n, const char_type& __a) { for (const char_type* __p = __s; size_t(__p - __s) < __n; ++__p) if (*__p == __a) return __p; return 0; } static char_type* move(char_type* __s1, const char_type* __s2, size_t __n) { return (char_type*) memmove(__s1, __s2, __n * sizeof(char_type)); } static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) { return (char_type*) memcpy(__s1, __s2, __n * sizeof(char_type)); } static char_type* assign(char_type* __s, size_t __n, char_type __a) { for (char_type* __p = __s; __p < __s + __n; ++__p) assign(*__p, __a); return __s; } static char_type to_char_type(const int_type& __c) { char_type __r = { __c }; return __r; } static int_type to_int_type(const char_type& __c) { return int_type(__c); } static bool eq_int_type(const int_type& __c1, const int_type& __c2) { return __c1 == __c2; } static int_type eof() { return static_cast(-1); } static int_type not_eof(const int_type& __c) { return eq_int_type(__c, eof()) ? int_type(0) : __c; } }; } #endif // __CharTraits_hh__ gtkmathview-0.8.0/src/common/Logger.hh0000644000175000017500000000233710661271105014615 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Logger_hh__ #define __Logger_hh__ #include "gmv_defines.h" #include "SmartPtr.hh" #include "AbstractLogger.hh" class GMV_MathView_EXPORT Logger : public AbstractLogger { protected: Logger(void) { } virtual ~Logger() { } public: static SmartPtr create(void) { return new Logger(); } protected: virtual void outString(const String&) const; }; #endif // _-Logger_hh__ gtkmathview-0.8.0/src/common/RGBColor.hh0000644000175000017500000000516110661271105015005 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __RGBColor_hh__ #define __RGBColor_hh__ #include "gmv_defines.h" #include "Char.hh" struct GMV_MathView_EXPORT RGBColor { RGBColor(UChar8 r = 0, UChar8 g = 0, UChar8 b = 0, UChar8 a = 0xff) : red(r), green(g), blue(b), alpha(a) { } static RGBColor BLACK (void) { return RGBColor(0x00,0x00,0x00); } static RGBColor SILVER (void) { return RGBColor(0xc0,0xc0,0xc0); } static RGBColor GRAY (void) { return RGBColor(0x80,0x80,0x80); } static RGBColor WHITE (void) { return RGBColor(0xff,0xff,0xff); } static RGBColor MAROON (void) { return RGBColor(0x80,0x00,0x00); } static RGBColor RED (void) { return RGBColor(0xff,0x00,0x00); } static RGBColor PURPLE (void) { return RGBColor(0x80,0x00,0x80); } static RGBColor FUCHSIA (void) { return RGBColor(0xff,0x00,0xff); } static RGBColor GREEN (void) { return RGBColor(0x00,0x80,0x00); } static RGBColor LIME (void) { return RGBColor(0x00,0xff,0x00); } static RGBColor OLIVE (void) { return RGBColor(0x80,0x80,0x00); } static RGBColor YELLOW (void) { return RGBColor(0xff,0xff,0x00); } static RGBColor NAVY (void) { return RGBColor(0x00,0x00,0x80); } static RGBColor BLUE (void) { return RGBColor(0x00,0x00,0xff); } static RGBColor TEAL (void) { return RGBColor(0x00,0x80,0x80); } static RGBColor AQUA (void) { return RGBColor(0x00,0xff,0xff); } void set(unsigned r, unsigned g, unsigned b, unsigned a) { red = r; green = g; blue = b; alpha = a; } bool operator==(const RGBColor& c) const { return red == c.red && green == c.green && blue == c.blue && alpha == c.alpha; } bool operator!=(const RGBColor& c) const { return !(*this == c); } bool transparent(void) const { return alpha == 0; } UChar8 red; UChar8 green; UChar8 blue; UChar8 alpha; }; #endif // __RGBColor_hh__ gtkmathview-0.8.0/src/common/FastScopedHashMap.hh0000644000175000017500000000567110661271105016677 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __FastScopedHashMap_hh__ #define __FastScopedHashMap_hh__ #include "gmv_defines.h" template class GMV_MathView_EXPORT FastScopedHashMap { public: FastScopedHashMap(void) : env(0) { push(); for (int i = 0; i < MAX; i++) map[i].key = i; } ~FastScopedHashMap() { while (env) pop(); for (int i = 0; i < MAX; i++) delete map[i].current_binding; } void push(void) { env = new Env(env); } void pop() { Entry* p = env->first; Env* old_env = env->prev; delete env; env = old_env; while (p) { Entry* next = p->next_env; p->bucket->current_binding = p->prev; delete p; p = next; } } void set(int key, T value) { assert(key >= 0 && key < MAX); Bucket* bucket = &map[key]; if (bucket->current_binding && bucket->current_binding->env == env) bucket->current_binding->value = value; else { bucket->current_binding = new Entry(env, bucket, bucket->current_binding, env->first, value); env->first = bucket->current_binding; } } T get(int key) const { assert(key >= 0 && key < MAX); const Bucket* bucket = &map[key]; if (bucket->current_binding) return bucket->current_binding->value; else throw NotFound(); } bool defined(int key) const { assert(key >= 0 && key < MAX); return map[key].current_binding; } bool definedInScope(int key) const { assert(key >= 0 && key < MAX); return map[key].current_binding && map[key].current_binding->env == env; } class NotFound { }; private: struct Entry; struct Env; struct Bucket { Bucket(void) : key(-1), current_binding(0) { } int key; Entry* current_binding; }; struct Entry { Entry(Env* e, Bucket* b, Entry* p, Entry* p_env, const T& v) : env(e), bucket(b), next_env(p_env), prev(p), value(v) { } Env* env; Bucket* bucket; Entry* next_env; Entry* prev; T value; }; struct Env { Env(Env* p) : prev(p), first(0) { } Env* prev; Entry* first; }; Env* env; Bucket map[MAX]; }; #endif // __FastScopedHashMap_hh__ gtkmathview-0.8.0/src/common/String.hh0000644000175000017500000000517010661271105014642 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __String_hh__ #define __String_hh__ #include #include "gmv_defines.h" #include "Char.hh" typedef std::basic_string String; typedef std::basic_string UTF8String; //typedef std::basic_string UTF16String; typedef std::basic_string UCS4String; inline GMV_MathView_EXPORT bool isXmlSpace(char ch) { return ch == 0x09 || ch == 0x0a || ch == 0x0d || ch == 0x20; } GMV_MathView_EXPORT String trimSpacesLeft(const String&); GMV_MathView_EXPORT String trimSpacesRight(const String&); GMV_MathView_EXPORT String collapseSpaces(const String&); GMV_MathView_EXPORT String deleteSpaces(const String&); GMV_MathView_EXPORT String toLowerCase(const String&); GMV_MathView_EXPORT UTF8String UTF8StringOfUCS4String(const UCS4String&); GMV_MathView_EXPORT UCS4String UCS4StringOfUTF8String(const UTF8String&); #if 0 GMV_MathView_EXPORT UTF16String UTF16StringOfUCS4String(const UCS4String&); GMV_MathView_EXPORT UCS4String UCS4StringOfUTF16String(const UTF16String&); #endif #if CHAR8 == 1 inline GMV_MathView_EXPORT String StringOfUCS4String(const UCS4String& s) { return UTF8StringOfUCS4String(s); } inline GMV_MathView_EXPORT UCS4String UCS4StringOfString(const String& s) { return UCS4StringOfUTF8String(s); } #elif CHAR16 == 1 #error "UTF16 encoding is not supported" #if 0 inline GMV_MathView_EXPORT String StringOfUCS4String(const UCS4String& s) { return UTF16StringOfUCS4String(s); } inline GMV_MathView_EXPORT UCS4String UCS4StringOfString(const String& s) { return UCS4StringOfUTF16String(s); } #endif #elif CHAR32 == 1 inline GMV_MathView_EXPORT String StringOfUCS4String(const UCS4String& s) { return s; } inline GMV_MathView_EXPORT UCS4String UCS4StringOfString(const String& s) { return s; } #else #error "could not define string conversion functions" #endif #endif // __String_hh__ gtkmathview-0.8.0/src/common/defs.h0000644000175000017500000000305210661271105014142 00000000000000/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef __defs_h__ #define __defs_h__ #define MATHML_NS_URI "http://www.w3.org/1998/Math/MathML" #define XLINK_NS_URI "http://www.w3.org/1999/xlink" #define SVG_NS_URI "http://www.w3.org/2000/svg" #define BOXML_NS_URI "http://helm.cs.unibo.it/2003/BoxML" #define GMV_NS_URI "http://helm.cs.unibo.it/2005/GtkMathView" #define EPSILON 0.01f #define DEFAULT_FONT_SIZE 12 #define DEFAULT_LINK_FOREGROUND RGBColor(50, 100, 139) #define DEFAULT_LINK_BACKGROUND RGBColor::WHITE() #define DEFAULT_SELECT_FOREGROUND RGBColor::BLACK() #define DEFAULT_SELECT_BACKGROUND RGBColor(135, 206, 250) #define DEFAULT_FOREGROUND RGBColor::BLACK() #define DEFAULT_BACKGROUND RGBColor::WHITE() #endif /* __defs_h__ */ gtkmathview-0.8.0/src/common/AbstractLogger.hh0000644000175000017500000000263510661271105016302 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __AbstractLogger_hh__ #define __AbstractLogger_hh__ #include "Object.hh" #include "String.hh" enum LogLevelId { LOG_ERROR, LOG_WARNING, LOG_INFO, LOG_DEBUG }; class GMV_MathView_EXPORT AbstractLogger : public Object { protected: AbstractLogger(void); virtual ~AbstractLogger(); public: void setLogLevel(LogLevelId) const; LogLevelId getLogLevel(void) const { return logLevel; } void out(LogLevelId, const char*, ...) const; protected: virtual void outString(const String&) const = 0; private: mutable LogLevelId logLevel; }; #endif // __AbstractLogger_hh__ gtkmathview-0.8.0/src/common/BoundingBox.hh0000644000175000017500000000346310661271105015615 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __BoundingBox_hh__ #define __BoundingBox_hh__ #include "gmv_defines.h" #include "scaled.hh" struct GMV_MathView_EXPORT BoundingBox { BoundingBox(void) : width(scaled::zero()), height(scaled::min()), depth(scaled::min()) { } BoundingBox(const scaled& w, const scaled& h, const scaled& d) : width(w), height(h), depth(d) { } bool defined(void) const { return height != scaled::min() && depth != scaled::min(); } scaled horizontalExtent(void) const { return width; } scaled verticalExtent(void) const { return height + depth; } void unset(void) { set(scaled::zero(), scaled::min(), scaled::min()); } void set(const scaled& w, const scaled& h, const scaled& d) { width = w; height = h; depth = d; } void append(const BoundingBox&); void overlap(const BoundingBox&); void under(const BoundingBox&); void over(const BoundingBox&); operator bool(void) const { return defined(); } scaled width; scaled height; scaled depth; }; #endif // __BoundingBox_hh__ gtkmathview-0.8.0/src/common/SmartPtr.hh0000644000175000017500000000363110661271105015150 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __SmartPtr_hh__ #define __SmartPtr_hh__ #include #include "gmv_defines.h" template class GMV_MathView_EXPORT SmartPtr { public: SmartPtr(P* p = 0) : ptr(p) { if (ptr) ptr->ref(); } SmartPtr(const SmartPtr& p) : ptr(p.ptr) { if (ptr) ptr->ref(); } ~SmartPtr() { if (ptr) ptr->unref(); } P* operator->() const { assert(ptr); return ptr; } SmartPtr& operator=(const SmartPtr& p) { if (ptr == p.ptr) return *this; if (p.ptr) p.ptr->ref(); if (ptr) ptr->unref(); ptr = p.ptr; return *this; } operator P*() const { return ptr; } template friend SmartPtr smart_cast(const SmartPtr&); template friend bool is_a(const SmartPtr&); template operator SmartPtr() const { return SmartPtr(ptr); } private: P* ptr; }; template SmartPtr smart_cast(const SmartPtr

& p) { return SmartPtr(dynamic_cast(p.ptr)); } template bool is_a(const SmartPtr& p) { return dynamic_cast(p.ptr) != 0; } #endif // __SmartPtr_hh__ gtkmathview-0.8.0/src/common/PointAux.cc0000644000175000017500000000222610661271105015130 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "scaledAux.hh" #include "PointAux.hh" std::string toString(const Point& point) { std::ostringstream os; os << "(" << point.x << "," << point.y << ")"; return os.str(); } std::ostream& operator<<(std::ostream& os, const Point& point) { return os << toString(point); } gtkmathview-0.8.0/src/common/Rectangle.cc0000644000175000017500000000223210661271105015262 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include "Rectangle.hh" void Rectangle::merge(const Rectangle& r) { scaled maxX = std::max(x + width, r.x + r.width); scaled maxY = std::max(y + height, r.y + r.height); x = std::min(x, r.x); y = std::min(y, r.y); width = maxX - x; height = maxY - y; } gtkmathview-0.8.0/src/common/mathvariants/0000777000175000017500000000000010704625454015645 500000000000000gtkmathview-0.8.0/src/common/mathvariants/MathVariantMap.cc0000644000175000017500000000432310661271105020736 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include "MathVariant.hh" #include "MathVariantMap.hh" #define MAP_NAME(n) map_variant_##n #define DECLARE_MAP(n) Char32 MAP_NAME(n)(Char32); typedef Char32 (*mapType)(Char32); DECLARE_MAP(bold) DECLARE_MAP(italic) DECLARE_MAP(bold_italic) DECLARE_MAP(double_struck) DECLARE_MAP(bold_fraktur) DECLARE_MAP(script) DECLARE_MAP(bold_script) DECLARE_MAP(fraktur) DECLARE_MAP(sans_serif) DECLARE_MAP(bold_sans_serif) DECLARE_MAP(sans_serif_italic) DECLARE_MAP(sans_serif_bold_italic) DECLARE_MAP(monospace) static Char32 map_variant_normal(Char32 ch) { return ch; } static mapType map[] = { MAP_NAME(normal), MAP_NAME(bold), MAP_NAME(italic), MAP_NAME(bold_italic), MAP_NAME(double_struck), MAP_NAME(bold_fraktur), MAP_NAME(script), MAP_NAME(bold_script), MAP_NAME(fraktur), MAP_NAME(sans_serif), MAP_NAME(bold_sans_serif), MAP_NAME(sans_serif_italic), MAP_NAME(sans_serif_bold_italic), MAP_NAME(monospace) }; Char32 mapMathVariant(MathVariant variant, Char32 ch) { assert(variant >= NORMAL_VARIANT && variant <= MONOSPACE_VARIANT); return map[variant - NORMAL_VARIANT](ch); } void mapMathVariant(MathVariant variant, UCS4String& str) { assert(variant >= NORMAL_VARIANT && variant <= MONOSPACE_VARIANT); mapType m = map[variant - NORMAL_VARIANT]; for (UCS4String::iterator p = str.begin(); p != str.end(); p++) *p = m(*p); } gtkmathview-0.8.0/src/common/mathvariants/script.cc0000644000175000017500000000500410704614656017375 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . // WARNING: do not edit! This file has been generated automatically #include typedef struct TableEntry { Char16 normal; Char32 variant; } TableEntry; static TableEntry table[] = { { 0x00041, 0x1D49C }, { 0x00042, 0x0212C }, { 0x00043, 0x1D49E }, { 0x00044, 0x1D49F }, { 0x00045, 0x02130 }, { 0x00046, 0x02131 }, { 0x00047, 0x1D4A2 }, { 0x00048, 0x0210B }, { 0x00049, 0x02110 }, { 0x0004A, 0x1D4A5 }, { 0x0004B, 0x1D4A6 }, { 0x0004C, 0x02112 }, { 0x0004D, 0x02133 }, { 0x0004E, 0x1D4A9 }, { 0x0004F, 0x1D4AA }, { 0x00050, 0x1D4AB }, { 0x00051, 0x1D4AC }, { 0x00052, 0x0211B }, { 0x00053, 0x1D4AE }, { 0x00054, 0x1D4AF }, { 0x00055, 0x1D4B0 }, { 0x00056, 0x1D4B1 }, { 0x00057, 0x1D4B2 }, { 0x00058, 0x1D4B3 }, { 0x00059, 0x1D4B4 }, { 0x0005A, 0x1D4B5 }, { 0x00061, 0x1D4B6 }, { 0x00062, 0x1D4B7 }, { 0x00063, 0x1D4B8 }, { 0x00064, 0x1D4B9 }, { 0x00065, 0x0212F }, { 0x00066, 0x1D4BB }, { 0x00067, 0x0210A }, { 0x00068, 0x1D4BD }, { 0x00069, 0x1D4BE }, { 0x0006A, 0x1D4BF }, { 0x0006B, 0x1D4C0 }, { 0x0006C, 0x02113 }, { 0x0006D, 0x1D4C2 }, { 0x0006E, 0x1D4C3 }, { 0x0006F, 0x02134 }, { 0x00070, 0x1D4C5 }, { 0x00071, 0x1D4C6 }, { 0x00072, 0x1D4C7 }, { 0x00073, 0x1D4C8 }, { 0x00074, 0x1D4C9 }, { 0x00075, 0x1D4CA }, { 0x00076, 0x1D4CB }, { 0x00077, 0x1D4CC }, { 0x00078, 0x1D4CD }, { 0x00079, 0x1D4CE }, { 0x0007A, 0x1D4CF }, { 0, 0 } }; Char32 map_variant_script (Char32 ch) { if (ch >= 0x0041 and ch <= 0x005A) return table[ch - 0x0041].variant; if (ch >= 0x0061 and ch <= 0x007A) return table[ch - 0x0047].variant; return ch; } gtkmathview-0.8.0/src/common/mathvariants/bold-script.cc0000644000175000017500000000501110704614650020303 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . // WARNING: do not edit! This file has been generated automatically #include typedef struct TableEntry { Char16 normal; Char32 variant; } TableEntry; static TableEntry table[] = { { 0x00041, 0x1D4D0 }, { 0x00042, 0x1D4D1 }, { 0x00043, 0x1D4D2 }, { 0x00044, 0x1D4D3 }, { 0x00045, 0x1D4D4 }, { 0x00046, 0x1D4D5 }, { 0x00047, 0x1D4D6 }, { 0x00048, 0x1D4D7 }, { 0x00049, 0x1D4D8 }, { 0x0004A, 0x1D4D9 }, { 0x0004B, 0x1D4DA }, { 0x0004C, 0x1D4DB }, { 0x0004D, 0x1D4DC }, { 0x0004E, 0x1D4DD }, { 0x0004F, 0x1D4DE }, { 0x00050, 0x1D4DF }, { 0x00051, 0x1D4E0 }, { 0x00052, 0x1D4E1 }, { 0x00053, 0x1D4E2 }, { 0x00054, 0x1D4E3 }, { 0x00055, 0x1D4E4 }, { 0x00056, 0x1D4E5 }, { 0x00057, 0x1D4E6 }, { 0x00058, 0x1D4E7 }, { 0x00059, 0x1D4E8 }, { 0x0005A, 0x1D4E9 }, { 0x00061, 0x1D4EA }, { 0x00062, 0x1D4EB }, { 0x00063, 0x1D4EC }, { 0x00064, 0x1D4ED }, { 0x00065, 0x1D4EE }, { 0x00066, 0x1D4EF }, { 0x00067, 0x1D4F0 }, { 0x00068, 0x1D4F1 }, { 0x00069, 0x1D4F2 }, { 0x0006A, 0x1D4F3 }, { 0x0006B, 0x1D4F4 }, { 0x0006C, 0x1D4F5 }, { 0x0006D, 0x1D4F6 }, { 0x0006E, 0x1D4F7 }, { 0x0006F, 0x1D4F8 }, { 0x00070, 0x1D4F9 }, { 0x00071, 0x1D4FA }, { 0x00072, 0x1D4FB }, { 0x00073, 0x1D4FC }, { 0x00074, 0x1D4FD }, { 0x00075, 0x1D4FE }, { 0x00076, 0x1D4FF }, { 0x00077, 0x1D500 }, { 0x00078, 0x1D501 }, { 0x00079, 0x1D502 }, { 0x0007A, 0x1D503 }, { 0, 0 } }; Char32 map_variant_bold_script (Char32 ch) { if (ch >= 0x0041 and ch <= 0x005A) return table[ch - 0x0041].variant; if (ch >= 0x0061 and ch <= 0x007A) return table[ch - 0x0047].variant; return ch; } gtkmathview-0.8.0/src/common/mathvariants/MathVariantMap.hh0000644000175000017500000000214110661271105020744 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathVariantMap_hh__ #define __MathVariantMap_hh__ #include "String.hh" #include "MathVariant.hh" GMV_MathView_EXPORT Char32 mapMathVariant(MathVariant, Char32); GMV_MathView_EXPORT void mapMathVariant(MathVariant, UCS4String&); #endif // __MathVariantMap_hh__ gtkmathview-0.8.0/src/common/mathvariants/monospace.cc0000644000175000017500000000551110704614653020055 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . // WARNING: do not edit! This file has been generated automatically #include typedef struct TableEntry { Char16 normal; Char32 variant; } TableEntry; static TableEntry table[] = { { 0x00030, 0x1D7F6 }, { 0x00031, 0x1D7F7 }, { 0x00032, 0x1D7F8 }, { 0x00033, 0x1D7F9 }, { 0x00034, 0x1D7FA }, { 0x00035, 0x1D7FB }, { 0x00036, 0x1D7FC }, { 0x00037, 0x1D7FD }, { 0x00038, 0x1D7FE }, { 0x00039, 0x1D7FF }, { 0x00041, 0x1D670 }, { 0x00042, 0x1D671 }, { 0x00043, 0x1D672 }, { 0x00044, 0x1D673 }, { 0x00045, 0x1D674 }, { 0x00046, 0x1D675 }, { 0x00047, 0x1D676 }, { 0x00048, 0x1D677 }, { 0x00049, 0x1D678 }, { 0x0004A, 0x1D679 }, { 0x0004B, 0x1D67A }, { 0x0004C, 0x1D67B }, { 0x0004D, 0x1D67C }, { 0x0004E, 0x1D67D }, { 0x0004F, 0x1D67E }, { 0x00050, 0x1D67F }, { 0x00051, 0x1D680 }, { 0x00052, 0x1D681 }, { 0x00053, 0x1D682 }, { 0x00054, 0x1D683 }, { 0x00055, 0x1D684 }, { 0x00056, 0x1D685 }, { 0x00057, 0x1D686 }, { 0x00058, 0x1D687 }, { 0x00059, 0x1D688 }, { 0x0005A, 0x1D689 }, { 0x00061, 0x1D68A }, { 0x00062, 0x1D68B }, { 0x00063, 0x1D68C }, { 0x00064, 0x1D68D }, { 0x00065, 0x1D68E }, { 0x00066, 0x1D68F }, { 0x00067, 0x1D690 }, { 0x00068, 0x1D691 }, { 0x00069, 0x1D692 }, { 0x0006A, 0x1D693 }, { 0x0006B, 0x1D694 }, { 0x0006C, 0x1D695 }, { 0x0006D, 0x1D696 }, { 0x0006E, 0x1D697 }, { 0x0006F, 0x1D698 }, { 0x00070, 0x1D699 }, { 0x00071, 0x1D69A }, { 0x00072, 0x1D69B }, { 0x00073, 0x1D69C }, { 0x00074, 0x1D69D }, { 0x00075, 0x1D69E }, { 0x00076, 0x1D69F }, { 0x00077, 0x1D6A0 }, { 0x00078, 0x1D6A1 }, { 0x00079, 0x1D6A2 }, { 0x0007A, 0x1D6A3 }, { 0, 0 } }; Char32 map_variant_monospace (Char32 ch) { if (ch >= 0x0030 and ch <= 0x0039) return table[ch - 0x0030].variant; if (ch >= 0x0041 and ch <= 0x005A) return table[ch - 0x0037].variant; if (ch >= 0x0061 and ch <= 0x007A) return table[ch - 0x003D].variant; return ch; } gtkmathview-0.8.0/src/common/mathvariants/sans-serif.cc0000644000175000017500000000551210704614655020146 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . // WARNING: do not edit! This file has been generated automatically #include typedef struct TableEntry { Char16 normal; Char32 variant; } TableEntry; static TableEntry table[] = { { 0x00030, 0x1D7E2 }, { 0x00031, 0x1D7E3 }, { 0x00032, 0x1D7E4 }, { 0x00033, 0x1D7E5 }, { 0x00034, 0x1D7E6 }, { 0x00035, 0x1D7E7 }, { 0x00036, 0x1D7E8 }, { 0x00037, 0x1D7E9 }, { 0x00038, 0x1D7EA }, { 0x00039, 0x1D7EB }, { 0x00041, 0x1D5A0 }, { 0x00042, 0x1D5A1 }, { 0x00043, 0x1D5A2 }, { 0x00044, 0x1D5A3 }, { 0x00045, 0x1D5A4 }, { 0x00046, 0x1D5A5 }, { 0x00047, 0x1D5A6 }, { 0x00048, 0x1D5A7 }, { 0x00049, 0x1D5A8 }, { 0x0004A, 0x1D5A9 }, { 0x0004B, 0x1D5AA }, { 0x0004C, 0x1D5AB }, { 0x0004D, 0x1D5AC }, { 0x0004E, 0x1D5AD }, { 0x0004F, 0x1D5AE }, { 0x00050, 0x1D5AF }, { 0x00051, 0x1D5B0 }, { 0x00052, 0x1D5B1 }, { 0x00053, 0x1D5B2 }, { 0x00054, 0x1D5B3 }, { 0x00055, 0x1D5B4 }, { 0x00056, 0x1D5B5 }, { 0x00057, 0x1D5B6 }, { 0x00058, 0x1D5B7 }, { 0x00059, 0x1D5B8 }, { 0x0005A, 0x1D5B9 }, { 0x00061, 0x1D5BA }, { 0x00062, 0x1D5BB }, { 0x00063, 0x1D5BC }, { 0x00064, 0x1D5BD }, { 0x00065, 0x1D5BE }, { 0x00066, 0x1D5BF }, { 0x00067, 0x1D5C0 }, { 0x00068, 0x1D5C1 }, { 0x00069, 0x1D5C2 }, { 0x0006A, 0x1D5C3 }, { 0x0006B, 0x1D5C4 }, { 0x0006C, 0x1D5C5 }, { 0x0006D, 0x1D5C6 }, { 0x0006E, 0x1D5C7 }, { 0x0006F, 0x1D5C8 }, { 0x00070, 0x1D5C9 }, { 0x00071, 0x1D5CA }, { 0x00072, 0x1D5CB }, { 0x00073, 0x1D5CC }, { 0x00074, 0x1D5CD }, { 0x00075, 0x1D5CE }, { 0x00076, 0x1D5CF }, { 0x00077, 0x1D5D0 }, { 0x00078, 0x1D5D1 }, { 0x00079, 0x1D5D2 }, { 0x0007A, 0x1D5D3 }, { 0, 0 } }; Char32 map_variant_sans_serif (Char32 ch) { if (ch >= 0x0030 and ch <= 0x0039) return table[ch - 0x0030].variant; if (ch >= 0x0041 and ch <= 0x005A) return table[ch - 0x0037].variant; if (ch >= 0x0061 and ch <= 0x007A) return table[ch - 0x003D].variant; return ch; } gtkmathview-0.8.0/src/common/mathvariants/fraktur.cc0000644000175000017500000000500510704614652017544 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . // WARNING: do not edit! This file has been generated automatically #include typedef struct TableEntry { Char16 normal; Char32 variant; } TableEntry; static TableEntry table[] = { { 0x00041, 0x1D504 }, { 0x00042, 0x1D505 }, { 0x00043, 0x0212D }, { 0x00044, 0x1D507 }, { 0x00045, 0x1D508 }, { 0x00046, 0x1D509 }, { 0x00047, 0x1D50A }, { 0x00048, 0x0210C }, { 0x00049, 0x02111 }, { 0x0004A, 0x1D50D }, { 0x0004B, 0x1D50E }, { 0x0004C, 0x1D50F }, { 0x0004D, 0x1D510 }, { 0x0004E, 0x1D511 }, { 0x0004F, 0x1D512 }, { 0x00050, 0x1D513 }, { 0x00051, 0x1D514 }, { 0x00052, 0x0211C }, { 0x00053, 0x1D516 }, { 0x00054, 0x1D517 }, { 0x00055, 0x1D518 }, { 0x00056, 0x1D519 }, { 0x00057, 0x1D51A }, { 0x00058, 0x1D51B }, { 0x00059, 0x1D51C }, { 0x0005A, 0x02128 }, { 0x00061, 0x1D51E }, { 0x00062, 0x1D51F }, { 0x00063, 0x1D520 }, { 0x00064, 0x1D521 }, { 0x00065, 0x1D522 }, { 0x00066, 0x1D523 }, { 0x00067, 0x1D524 }, { 0x00068, 0x1D525 }, { 0x00069, 0x1D526 }, { 0x0006A, 0x1D527 }, { 0x0006B, 0x1D528 }, { 0x0006C, 0x1D529 }, { 0x0006D, 0x1D52A }, { 0x0006E, 0x1D52B }, { 0x0006F, 0x1D52C }, { 0x00070, 0x1D52D }, { 0x00071, 0x1D52E }, { 0x00072, 0x1D52F }, { 0x00073, 0x1D530 }, { 0x00074, 0x1D531 }, { 0x00075, 0x1D532 }, { 0x00076, 0x1D533 }, { 0x00077, 0x1D534 }, { 0x00078, 0x1D535 }, { 0x00079, 0x1D536 }, { 0x0007A, 0x1D537 }, { 0, 0 } }; Char32 map_variant_fraktur (Char32 ch) { if (ch >= 0x0041 and ch <= 0x005A) return table[ch - 0x0041].variant; if (ch >= 0x0061 and ch <= 0x007A) return table[ch - 0x0047].variant; return ch; } gtkmathview-0.8.0/src/common/mathvariants/variant.bot0000644000175000017500000000000010613606765017724 00000000000000gtkmathview-0.8.0/src/common/mathvariants/bold-italic.cc0000644000175000017500000001071710704614647020263 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . // WARNING: do not edit! This file has been generated automatically #include typedef struct TableEntry { Char16 normal; Char32 variant; } TableEntry; static TableEntry table[] = { { 0x00041, 0x1D468 }, { 0x00042, 0x1D469 }, { 0x00043, 0x1D46A }, { 0x00044, 0x1D46B }, { 0x00045, 0x1D46C }, { 0x00046, 0x1D46D }, { 0x00047, 0x1D46E }, { 0x00048, 0x1D46F }, { 0x00049, 0x1D470 }, { 0x0004A, 0x1D471 }, { 0x0004B, 0x1D472 }, { 0x0004C, 0x1D473 }, { 0x0004D, 0x1D474 }, { 0x0004E, 0x1D475 }, { 0x0004F, 0x1D476 }, { 0x00050, 0x1D477 }, { 0x00051, 0x1D478 }, { 0x00052, 0x1D479 }, { 0x00053, 0x1D47A }, { 0x00054, 0x1D47B }, { 0x00055, 0x1D47C }, { 0x00056, 0x1D47D }, { 0x00057, 0x1D47E }, { 0x00058, 0x1D47F }, { 0x00059, 0x1D480 }, { 0x0005A, 0x1D481 }, { 0x00061, 0x1D482 }, { 0x00062, 0x1D483 }, { 0x00063, 0x1D484 }, { 0x00064, 0x1D485 }, { 0x00065, 0x1D486 }, { 0x00066, 0x1D487 }, { 0x00067, 0x1D488 }, { 0x00068, 0x1D489 }, { 0x00069, 0x1D48A }, { 0x0006A, 0x1D48B }, { 0x0006B, 0x1D48C }, { 0x0006C, 0x1D48D }, { 0x0006D, 0x1D48E }, { 0x0006E, 0x1D48F }, { 0x0006F, 0x1D490 }, { 0x00070, 0x1D491 }, { 0x00071, 0x1D492 }, { 0x00072, 0x1D493 }, { 0x00073, 0x1D494 }, { 0x00074, 0x1D495 }, { 0x00075, 0x1D496 }, { 0x00076, 0x1D497 }, { 0x00077, 0x1D498 }, { 0x00078, 0x1D499 }, { 0x00079, 0x1D49A }, { 0x0007A, 0x1D49B }, { 0x00391, 0x1D71C }, { 0x00392, 0x1D71D }, { 0x00393, 0x1D71E }, { 0x00394, 0x1D71F }, { 0x00395, 0x1D720 }, { 0x00396, 0x1D721 }, { 0x00397, 0x1D722 }, { 0x00398, 0x1D723 }, { 0x00399, 0x1D724 }, { 0x0039A, 0x1D725 }, { 0x0039B, 0x1D726 }, { 0x0039C, 0x1D727 }, { 0x0039D, 0x1D728 }, { 0x0039E, 0x1D729 }, { 0x0039F, 0x1D72A }, { 0x003A0, 0x1D72B }, { 0x003A1, 0x1D72C }, { 0x003A3, 0x1D72E }, { 0x003A4, 0x1D72F }, { 0x003A5, 0x1D730 }, { 0x003A6, 0x1D731 }, { 0x003A7, 0x1D732 }, { 0x003A8, 0x1D733 }, { 0x003A9, 0x1D734 }, { 0x003B1, 0x1D736 }, { 0x003B2, 0x1D737 }, { 0x003B3, 0x1D738 }, { 0x003B4, 0x1D739 }, { 0x003B5, 0x1D73A }, { 0x003B6, 0x1D73B }, { 0x003B7, 0x1D73C }, { 0x003B8, 0x1D73D }, { 0x003B9, 0x1D73E }, { 0x003BA, 0x1D73F }, { 0x003BB, 0x1D740 }, { 0x003BC, 0x1D741 }, { 0x003BD, 0x1D742 }, { 0x003BE, 0x1D743 }, { 0x003BF, 0x1D744 }, { 0x003C0, 0x1D745 }, { 0x003C1, 0x1D746 }, { 0x003C2, 0x1D747 }, { 0x003C3, 0x1D748 }, { 0x003C4, 0x1D749 }, { 0x003C5, 0x1D74A }, { 0x003C6, 0x1D74B }, { 0x003C7, 0x1D74C }, { 0x003C8, 0x1D74D }, { 0x003C9, 0x1D74E }, { 0x003D1, 0x1D751 }, { 0x003D5, 0x1D753 }, { 0x003D6, 0x1D755 }, { 0x003F0, 0x1D752 }, { 0x003F1, 0x1D754 }, { 0x003F4, 0x1D72D }, { 0x02202, 0x1D74F }, { 0x02207, 0x1D735 }, { 0x0220A, 0x1D750 }, { 0, 0 } }; Char32 map_variant_bold_italic (Char32 ch) { if (ch >= 0x0041 and ch <= 0x005A) return table[ch - 0x0041].variant; if (ch >= 0x0061 and ch <= 0x007A) return table[ch - 0x0047].variant; if (ch >= 0x0391 and ch <= 0x03A1) return table[ch - 0x035D].variant; if (ch >= 0x03A3 and ch <= 0x03A9) return table[ch - 0x035E].variant; if (ch >= 0x03B1 and ch <= 0x03C9) return table[ch - 0x0365].variant; if (ch == 0x03D1) return 0x1D751; if (ch >= 0x03D5 and ch <= 0x03D6) return table[ch - 0x036F].variant; if (ch >= 0x03F0 and ch <= 0x03F1) return table[ch - 0x0388].variant; if (ch == 0x03F4) return 0x1D72D; if (ch == 0x2202) return 0x1D74F; if (ch == 0x2207) return 0x1D735; if (ch == 0x220A) return 0x1D750; return ch; } gtkmathview-0.8.0/src/common/mathvariants/bold-fraktur.cc0000644000175000017500000000501210704614647020464 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . // WARNING: do not edit! This file has been generated automatically #include typedef struct TableEntry { Char16 normal; Char32 variant; } TableEntry; static TableEntry table[] = { { 0x00041, 0x1D56C }, { 0x00042, 0x1D56D }, { 0x00043, 0x1D56E }, { 0x00044, 0x1D56F }, { 0x00045, 0x1D570 }, { 0x00046, 0x1D571 }, { 0x00047, 0x1D572 }, { 0x00048, 0x1D573 }, { 0x00049, 0x1D574 }, { 0x0004A, 0x1D575 }, { 0x0004B, 0x1D576 }, { 0x0004C, 0x1D577 }, { 0x0004D, 0x1D578 }, { 0x0004E, 0x1D579 }, { 0x0004F, 0x1D57A }, { 0x00050, 0x1D57B }, { 0x00051, 0x1D57C }, { 0x00052, 0x1D57D }, { 0x00053, 0x1D57E }, { 0x00054, 0x1D57F }, { 0x00055, 0x1D580 }, { 0x00056, 0x1D581 }, { 0x00057, 0x1D582 }, { 0x00058, 0x1D583 }, { 0x00059, 0x1D584 }, { 0x0005A, 0x1D585 }, { 0x00061, 0x1D586 }, { 0x00062, 0x1D587 }, { 0x00063, 0x1D588 }, { 0x00064, 0x1D589 }, { 0x00065, 0x1D58A }, { 0x00066, 0x1D58B }, { 0x00067, 0x1D58C }, { 0x00068, 0x1D58D }, { 0x00069, 0x1D58E }, { 0x0006A, 0x1D58F }, { 0x0006B, 0x1D590 }, { 0x0006C, 0x1D591 }, { 0x0006D, 0x1D592 }, { 0x0006E, 0x1D593 }, { 0x0006F, 0x1D594 }, { 0x00070, 0x1D595 }, { 0x00071, 0x1D596 }, { 0x00072, 0x1D597 }, { 0x00073, 0x1D598 }, { 0x00074, 0x1D599 }, { 0x00075, 0x1D59A }, { 0x00076, 0x1D59B }, { 0x00077, 0x1D59C }, { 0x00078, 0x1D59D }, { 0x00079, 0x1D59E }, { 0x0007A, 0x1D59F }, { 0, 0 } }; Char32 map_variant_bold_fraktur (Char32 ch) { if (ch >= 0x0041 and ch <= 0x005A) return table[ch - 0x0041].variant; if (ch >= 0x0061 and ch <= 0x007A) return table[ch - 0x0047].variant; return ch; } gtkmathview-0.8.0/src/common/mathvariants/sans-serif-bold-italic.cc0000644000175000017500000001073210704614654022326 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . // WARNING: do not edit! This file has been generated automatically #include typedef struct TableEntry { Char16 normal; Char32 variant; } TableEntry; static TableEntry table[] = { { 0x00041, 0x1D63C }, { 0x00042, 0x1D63D }, { 0x00043, 0x1D63E }, { 0x00044, 0x1D63F }, { 0x00045, 0x1D640 }, { 0x00046, 0x1D641 }, { 0x00047, 0x1D642 }, { 0x00048, 0x1D643 }, { 0x00049, 0x1D644 }, { 0x0004A, 0x1D645 }, { 0x0004B, 0x1D646 }, { 0x0004C, 0x1D647 }, { 0x0004D, 0x1D648 }, { 0x0004E, 0x1D649 }, { 0x0004F, 0x1D64A }, { 0x00050, 0x1D64B }, { 0x00051, 0x1D64C }, { 0x00052, 0x1D64D }, { 0x00053, 0x1D64E }, { 0x00054, 0x1D64F }, { 0x00055, 0x1D650 }, { 0x00056, 0x1D651 }, { 0x00057, 0x1D652 }, { 0x00058, 0x1D653 }, { 0x00059, 0x1D654 }, { 0x0005A, 0x1D655 }, { 0x00061, 0x1D656 }, { 0x00062, 0x1D657 }, { 0x00063, 0x1D658 }, { 0x00064, 0x1D659 }, { 0x00065, 0x1D65A }, { 0x00066, 0x1D65B }, { 0x00067, 0x1D65C }, { 0x00068, 0x1D65D }, { 0x00069, 0x1D65E }, { 0x0006A, 0x1D65F }, { 0x0006B, 0x1D660 }, { 0x0006C, 0x1D661 }, { 0x0006D, 0x1D662 }, { 0x0006E, 0x1D663 }, { 0x0006F, 0x1D664 }, { 0x00070, 0x1D665 }, { 0x00071, 0x1D666 }, { 0x00072, 0x1D667 }, { 0x00073, 0x1D668 }, { 0x00074, 0x1D669 }, { 0x00075, 0x1D66A }, { 0x00076, 0x1D66B }, { 0x00077, 0x1D66C }, { 0x00078, 0x1D66D }, { 0x00079, 0x1D66E }, { 0x0007A, 0x1D66F }, { 0x00391, 0x1D790 }, { 0x00392, 0x1D791 }, { 0x00393, 0x1D792 }, { 0x00394, 0x1D793 }, { 0x00395, 0x1D794 }, { 0x00396, 0x1D795 }, { 0x00397, 0x1D796 }, { 0x00398, 0x1D797 }, { 0x00399, 0x1D798 }, { 0x0039A, 0x1D799 }, { 0x0039B, 0x1D79A }, { 0x0039C, 0x1D79B }, { 0x0039D, 0x1D79C }, { 0x0039E, 0x1D79D }, { 0x0039F, 0x1D79E }, { 0x003A0, 0x1D79F }, { 0x003A1, 0x1D7A0 }, { 0x003A3, 0x1D7A2 }, { 0x003A4, 0x1D7A3 }, { 0x003A5, 0x1D7A4 }, { 0x003A6, 0x1D7A5 }, { 0x003A7, 0x1D7A6 }, { 0x003A8, 0x1D7A7 }, { 0x003A9, 0x1D7A8 }, { 0x003B1, 0x1D7AA }, { 0x003B2, 0x1D7AB }, { 0x003B3, 0x1D7AC }, { 0x003B4, 0x1D7AD }, { 0x003B5, 0x1D7AE }, { 0x003B6, 0x1D7AF }, { 0x003B7, 0x1D7B0 }, { 0x003B8, 0x1D7B1 }, { 0x003B9, 0x1D7B2 }, { 0x003BA, 0x1D7B3 }, { 0x003BB, 0x1D7B4 }, { 0x003BC, 0x1D7B5 }, { 0x003BD, 0x1D7B6 }, { 0x003BE, 0x1D7B7 }, { 0x003BF, 0x1D7B8 }, { 0x003C0, 0x1D7B9 }, { 0x003C1, 0x1D7BA }, { 0x003C2, 0x1D7BB }, { 0x003C3, 0x1D7BC }, { 0x003C4, 0x1D7BD }, { 0x003C5, 0x1D7BE }, { 0x003C6, 0x1D7BF }, { 0x003C7, 0x1D7C0 }, { 0x003C8, 0x1D7C1 }, { 0x003C9, 0x1D7C2 }, { 0x003D1, 0x1D7C5 }, { 0x003D5, 0x1D7C7 }, { 0x003D6, 0x1D7C9 }, { 0x003F0, 0x1D7C6 }, { 0x003F1, 0x1D7C8 }, { 0x003F4, 0x1D7A1 }, { 0x02202, 0x1D7C3 }, { 0x02207, 0x1D7A9 }, { 0x0220A, 0x1D7C4 }, { 0, 0 } }; Char32 map_variant_sans_serif_bold_italic (Char32 ch) { if (ch >= 0x0041 and ch <= 0x005A) return table[ch - 0x0041].variant; if (ch >= 0x0061 and ch <= 0x007A) return table[ch - 0x0047].variant; if (ch >= 0x0391 and ch <= 0x03A1) return table[ch - 0x035D].variant; if (ch >= 0x03A3 and ch <= 0x03A9) return table[ch - 0x035E].variant; if (ch >= 0x03B1 and ch <= 0x03C9) return table[ch - 0x0365].variant; if (ch == 0x03D1) return 0x1D7C5; if (ch >= 0x03D5 and ch <= 0x03D6) return table[ch - 0x036F].variant; if (ch >= 0x03F0 and ch <= 0x03F1) return table[ch - 0x0388].variant; if (ch == 0x03F4) return 0x1D7A1; if (ch == 0x2202) return 0x1D7C3; if (ch == 0x2207) return 0x1D7A9; if (ch == 0x220A) return 0x1D7C4; return ch; } gtkmathview-0.8.0/src/common/mathvariants/double-struck.cc0000644000175000017500000000551510704614651020656 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . // WARNING: do not edit! This file has been generated automatically #include typedef struct TableEntry { Char16 normal; Char32 variant; } TableEntry; static TableEntry table[] = { { 0x00030, 0x1D7D8 }, { 0x00031, 0x1D7D9 }, { 0x00032, 0x1D7DA }, { 0x00033, 0x1D7DB }, { 0x00034, 0x1D7DC }, { 0x00035, 0x1D7DD }, { 0x00036, 0x1D7DE }, { 0x00037, 0x1D7DF }, { 0x00038, 0x1D7E0 }, { 0x00039, 0x1D7E1 }, { 0x00041, 0x1D538 }, { 0x00042, 0x1D539 }, { 0x00043, 0x02102 }, { 0x00044, 0x1D53B }, { 0x00045, 0x1D53C }, { 0x00046, 0x1D53D }, { 0x00047, 0x1D53E }, { 0x00048, 0x0210D }, { 0x00049, 0x1D540 }, { 0x0004A, 0x1D541 }, { 0x0004B, 0x1D542 }, { 0x0004C, 0x1D543 }, { 0x0004D, 0x1D544 }, { 0x0004E, 0x02115 }, { 0x0004F, 0x1D546 }, { 0x00050, 0x02119 }, { 0x00051, 0x0211A }, { 0x00052, 0x0211D }, { 0x00053, 0x1D54A }, { 0x00054, 0x1D54B }, { 0x00055, 0x1D54C }, { 0x00056, 0x1D54D }, { 0x00057, 0x1D54E }, { 0x00058, 0x1D54F }, { 0x00059, 0x1D550 }, { 0x0005A, 0x02124 }, { 0x00061, 0x1D552 }, { 0x00062, 0x1D553 }, { 0x00063, 0x1D554 }, { 0x00064, 0x1D555 }, { 0x00065, 0x1D556 }, { 0x00066, 0x1D557 }, { 0x00067, 0x1D558 }, { 0x00068, 0x1D559 }, { 0x00069, 0x1D55A }, { 0x0006A, 0x1D55B }, { 0x0006B, 0x1D55C }, { 0x0006C, 0x1D55D }, { 0x0006D, 0x1D55E }, { 0x0006E, 0x1D55F }, { 0x0006F, 0x1D560 }, { 0x00070, 0x1D561 }, { 0x00071, 0x1D562 }, { 0x00072, 0x1D563 }, { 0x00073, 0x1D564 }, { 0x00074, 0x1D565 }, { 0x00075, 0x1D566 }, { 0x00076, 0x1D567 }, { 0x00077, 0x1D568 }, { 0x00078, 0x1D569 }, { 0x00079, 0x1D56A }, { 0x0007A, 0x1D56B }, { 0, 0 } }; Char32 map_variant_double_struck (Char32 ch) { if (ch >= 0x0030 and ch <= 0x0039) return table[ch - 0x0030].variant; if (ch >= 0x0041 and ch <= 0x005A) return table[ch - 0x0037].variant; if (ch >= 0x0061 and ch <= 0x007A) return table[ch - 0x003D].variant; return ch; } gtkmathview-0.8.0/src/common/mathvariants/Makefile.am0000644000175000017500000000252710613606765017626 00000000000000 NULL = SUBDIRS = xml AUTO_CC = \ bold-fraktur.cc \ bold-italic.cc \ bold-sans-serif.cc \ bold-script.cc \ bold.cc \ double-struck.cc \ fraktur.cc \ italic.cc \ monospace.cc \ sans-serif-bold-italic.cc \ sans-serif-italic.cc \ sans-serif.cc \ script.cc \ $(NULL) EXTRA_DIST = variant.top variant.bot extract.xsl BUILT_SOURCES = $(AUTO_CC) CLEANFILES = $(AUTO_CC) noinst_LTLIBRARIES = libmathvariants.la libmathvariants_la_CPPFLAGS = -DGMV_MathView_DLL libmathvariants_la_SOURCES = \ $(AUTO_CC) \ MathVariantMap.cc \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ MathVariant.hh \ MathVariantMap.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common if COND_XSLTPROC XSLTPROC = xsltproc %_gen.cc : $(srcdir)/xml/%.xml $(srcdir)/extract.xsl $(XSLTPROC) --novalid $(srcdir)/extract.xsl $< >$@ %.cc : %_gen.cc $(srcdir)/variant.top $(srcdir)/variant.bot cat $(srcdir)/variant.top >$@ $(XSLTPROC) --novalid --param temp "false()" $(srcdir)/extract.xsl $(<:%_gen.cc=$(srcdir)/xml/%.xml) >>$@ $(CXX) -o $(@:%.cc=%) -I$(top_builddir)/auto $< echo "Char32 " >>$@ basename map_variant_$@ .cc | tr "-" "_" >>$@ echo "(Char32 ch)" >>$@ echo "{" >>$@ ./$(@:%.cc=%) >>$@ echo " return ch;" >>$@ echo "}" >>$@ rm -f $(@:%.cc=%) cat $(srcdir)/variant.bot >>$@ endif gtkmathview-0.8.0/src/common/mathvariants/variant.top0000644000175000017500000000162510661271105017745 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . // WARNING: do not edit! This file has been generated automatically gtkmathview-0.8.0/src/common/mathvariants/bold.cc0000644000175000017500000001141210704614651017004 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . // WARNING: do not edit! This file has been generated automatically #include typedef struct TableEntry { Char16 normal; Char32 variant; } TableEntry; static TableEntry table[] = { { 0x00030, 0x1D7CE }, { 0x00031, 0x1D7CF }, { 0x00032, 0x1D7D0 }, { 0x00033, 0x1D7D1 }, { 0x00034, 0x1D7D2 }, { 0x00035, 0x1D7D3 }, { 0x00036, 0x1D7D4 }, { 0x00037, 0x1D7D5 }, { 0x00038, 0x1D7D6 }, { 0x00039, 0x1D7D7 }, { 0x00041, 0x1D400 }, { 0x00042, 0x1D401 }, { 0x00043, 0x1D402 }, { 0x00044, 0x1D403 }, { 0x00045, 0x1D404 }, { 0x00046, 0x1D405 }, { 0x00047, 0x1D406 }, { 0x00048, 0x1D407 }, { 0x00049, 0x1D408 }, { 0x0004A, 0x1D409 }, { 0x0004B, 0x1D40A }, { 0x0004C, 0x1D40B }, { 0x0004D, 0x1D40C }, { 0x0004E, 0x1D40D }, { 0x0004F, 0x1D40E }, { 0x00050, 0x1D40F }, { 0x00051, 0x1D410 }, { 0x00052, 0x1D411 }, { 0x00053, 0x1D412 }, { 0x00054, 0x1D413 }, { 0x00055, 0x1D414 }, { 0x00056, 0x1D415 }, { 0x00057, 0x1D416 }, { 0x00058, 0x1D417 }, { 0x00059, 0x1D418 }, { 0x0005A, 0x1D419 }, { 0x00061, 0x1D41A }, { 0x00062, 0x1D41B }, { 0x00063, 0x1D41C }, { 0x00064, 0x1D41D }, { 0x00065, 0x1D41E }, { 0x00066, 0x1D41F }, { 0x00067, 0x1D420 }, { 0x00068, 0x1D421 }, { 0x00069, 0x1D422 }, { 0x0006A, 0x1D423 }, { 0x0006B, 0x1D424 }, { 0x0006C, 0x1D425 }, { 0x0006D, 0x1D426 }, { 0x0006E, 0x1D427 }, { 0x0006F, 0x1D428 }, { 0x00070, 0x1D429 }, { 0x00071, 0x1D42A }, { 0x00072, 0x1D42B }, { 0x00073, 0x1D42C }, { 0x00074, 0x1D42D }, { 0x00075, 0x1D42E }, { 0x00076, 0x1D42F }, { 0x00077, 0x1D430 }, { 0x00078, 0x1D431 }, { 0x00079, 0x1D432 }, { 0x0007A, 0x1D433 }, { 0x00391, 0x1D6A8 }, { 0x00392, 0x1D6A9 }, { 0x00393, 0x1D6AA }, { 0x00394, 0x1D6AB }, { 0x00395, 0x1D6AC }, { 0x00396, 0x1D6AD }, { 0x00397, 0x1D6AE }, { 0x00398, 0x1D6AF }, { 0x00399, 0x1D6B0 }, { 0x0039A, 0x1D6B1 }, { 0x0039B, 0x1D6B2 }, { 0x0039C, 0x1D6B3 }, { 0x0039D, 0x1D6B4 }, { 0x0039E, 0x1D6B5 }, { 0x0039F, 0x1D6B6 }, { 0x003A0, 0x1D6B7 }, { 0x003A1, 0x1D6B8 }, { 0x003A3, 0x1D6BA }, { 0x003A4, 0x1D6BB }, { 0x003A5, 0x1D6BC }, { 0x003A6, 0x1D6BD }, { 0x003A7, 0x1D6BE }, { 0x003A8, 0x1D6BF }, { 0x003A9, 0x1D6C0 }, { 0x003B1, 0x1D6C2 }, { 0x003B2, 0x1D6C3 }, { 0x003B3, 0x1D6C4 }, { 0x003B4, 0x1D6C5 }, { 0x003B5, 0x1D6C6 }, { 0x003B6, 0x1D6C7 }, { 0x003B7, 0x1D6C8 }, { 0x003B8, 0x1D6C9 }, { 0x003B9, 0x1D6CA }, { 0x003BA, 0x1D6CB }, { 0x003BB, 0x1D6CC }, { 0x003BC, 0x1D6CD }, { 0x003BD, 0x1D6CE }, { 0x003BE, 0x1D6CF }, { 0x003BF, 0x1D6D0 }, { 0x003C0, 0x1D6D1 }, { 0x003C1, 0x1D6D2 }, { 0x003C2, 0x1D6D3 }, { 0x003C3, 0x1D6D4 }, { 0x003C4, 0x1D6D5 }, { 0x003C5, 0x1D6D6 }, { 0x003C6, 0x1D6D7 }, { 0x003C7, 0x1D6D8 }, { 0x003C8, 0x1D6D9 }, { 0x003C9, 0x1D6DA }, { 0x003D1, 0x1D6DD }, { 0x003D5, 0x1D6DF }, { 0x003D6, 0x1D6E1 }, { 0x003F0, 0x1D6DE }, { 0x003F1, 0x1D6E0 }, { 0x003F4, 0x1D6B9 }, { 0x02202, 0x1D6DB }, { 0x02207, 0x1D6C1 }, { 0x0220A, 0x1D6DC }, { 0, 0 } }; Char32 map_variant_bold (Char32 ch) { if (ch >= 0x0030 and ch <= 0x0039) return table[ch - 0x0030].variant; if (ch >= 0x0041 and ch <= 0x005A) return table[ch - 0x0037].variant; if (ch >= 0x0061 and ch <= 0x007A) return table[ch - 0x003D].variant; if (ch >= 0x0391 and ch <= 0x03A1) return table[ch - 0x0353].variant; if (ch >= 0x03A3 and ch <= 0x03A9) return table[ch - 0x0354].variant; if (ch >= 0x03B1 and ch <= 0x03C9) return table[ch - 0x035B].variant; if (ch == 0x03D1) return 0x1D6DD; if (ch >= 0x03D5 and ch <= 0x03D6) return table[ch - 0x0365].variant; if (ch >= 0x03F0 and ch <= 0x03F1) return table[ch - 0x037E].variant; if (ch == 0x03F4) return 0x1D6B9; if (ch == 0x2202) return 0x1D6DB; if (ch == 0x2207) return 0x1D6C1; if (ch == 0x220A) return 0x1D6DC; return ch; } gtkmathview-0.8.0/src/common/mathvariants/italic.cc0000644000175000017500000001110410704614653017331 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . // WARNING: do not edit! This file has been generated automatically #include typedef struct TableEntry { Char16 normal; Char32 variant; } TableEntry; static TableEntry table[] = { { 0x00041, 0x1D434 }, { 0x00042, 0x1D435 }, { 0x00043, 0x1D436 }, { 0x00044, 0x1D437 }, { 0x00045, 0x1D438 }, { 0x00046, 0x1D439 }, { 0x00047, 0x1D43A }, { 0x00048, 0x1D43B }, { 0x00049, 0x1D43C }, { 0x0004A, 0x1D43D }, { 0x0004B, 0x1D43E }, { 0x0004C, 0x1D43F }, { 0x0004D, 0x1D440 }, { 0x0004E, 0x1D441 }, { 0x0004F, 0x1D442 }, { 0x00050, 0x1D443 }, { 0x00051, 0x1D444 }, { 0x00052, 0x1D445 }, { 0x00053, 0x1D446 }, { 0x00054, 0x1D447 }, { 0x00055, 0x1D448 }, { 0x00056, 0x1D449 }, { 0x00057, 0x1D44A }, { 0x00058, 0x1D44B }, { 0x00059, 0x1D44C }, { 0x0005A, 0x1D44D }, { 0x00061, 0x1D44E }, { 0x00062, 0x1D44F }, { 0x00063, 0x1D450 }, { 0x00064, 0x1D451 }, { 0x00065, 0x1D452 }, { 0x00066, 0x1D453 }, { 0x00067, 0x1D454 }, { 0x00068, 0x0210E }, { 0x00069, 0x1D456 }, { 0x0006A, 0x1D457 }, { 0x0006B, 0x1D458 }, { 0x0006C, 0x1D459 }, { 0x0006D, 0x1D45A }, { 0x0006E, 0x1D45B }, { 0x0006F, 0x1D45C }, { 0x00070, 0x1D45D }, { 0x00071, 0x1D45E }, { 0x00072, 0x1D45F }, { 0x00073, 0x1D460 }, { 0x00074, 0x1D461 }, { 0x00075, 0x1D462 }, { 0x00076, 0x1D463 }, { 0x00077, 0x1D464 }, { 0x00078, 0x1D465 }, { 0x00079, 0x1D466 }, { 0x0007A, 0x1D467 }, { 0x00131, 0x1D6A4 }, { 0x00237, 0x1D6A5 }, { 0x00391, 0x1D6E2 }, { 0x00392, 0x1D6E3 }, { 0x00393, 0x1D6E4 }, { 0x00394, 0x1D6E5 }, { 0x00395, 0x1D6E6 }, { 0x00396, 0x1D6E7 }, { 0x00397, 0x1D6E8 }, { 0x00398, 0x1D6E9 }, { 0x00399, 0x1D6EA }, { 0x0039A, 0x1D6EB }, { 0x0039B, 0x1D6EC }, { 0x0039C, 0x1D6ED }, { 0x0039D, 0x1D6EE }, { 0x0039E, 0x1D6EF }, { 0x0039F, 0x1D6F0 }, { 0x003A0, 0x1D6F1 }, { 0x003A1, 0x1D6F2 }, { 0x003A3, 0x1D6F4 }, { 0x003A4, 0x1D6F5 }, { 0x003A5, 0x1D6F6 }, { 0x003A6, 0x1D6F7 }, { 0x003A7, 0x1D6F8 }, { 0x003A8, 0x1D6F9 }, { 0x003A9, 0x1D6FA }, { 0x003B1, 0x1D6FC }, { 0x003B2, 0x1D6FD }, { 0x003B3, 0x1D6FE }, { 0x003B4, 0x1D6FF }, { 0x003B5, 0x1D700 }, { 0x003B6, 0x1D701 }, { 0x003B7, 0x1D702 }, { 0x003B8, 0x1D703 }, { 0x003B9, 0x1D704 }, { 0x003BA, 0x1D705 }, { 0x003BB, 0x1D706 }, { 0x003BC, 0x1D707 }, { 0x003BD, 0x1D708 }, { 0x003BE, 0x1D709 }, { 0x003BF, 0x1D70A }, { 0x003C0, 0x1D70B }, { 0x003C1, 0x1D70C }, { 0x003C2, 0x1D70D }, { 0x003C3, 0x1D70E }, { 0x003C4, 0x1D70F }, { 0x003C5, 0x1D710 }, { 0x003C6, 0x1D711 }, { 0x003C7, 0x1D712 }, { 0x003C8, 0x1D713 }, { 0x003C9, 0x1D714 }, { 0x003D1, 0x1D717 }, { 0x003D5, 0x1D719 }, { 0x003D6, 0x1D71B }, { 0x003F0, 0x1D718 }, { 0x003F1, 0x1D71A }, { 0x003F4, 0x1D6F3 }, { 0x02202, 0x1D715 }, { 0x02207, 0x1D6FB }, { 0x0220A, 0x1D716 }, { 0, 0 } }; Char32 map_variant_italic (Char32 ch) { if (ch >= 0x0041 and ch <= 0x005A) return table[ch - 0x0041].variant; if (ch >= 0x0061 and ch <= 0x007A) return table[ch - 0x0047].variant; if (ch == 0x0131) return 0x1D6A4; if (ch == 0x0237) return 0x1D6A5; if (ch >= 0x0391 and ch <= 0x03A1) return table[ch - 0x035B].variant; if (ch >= 0x03A3 and ch <= 0x03A9) return table[ch - 0x035C].variant; if (ch >= 0x03B1 and ch <= 0x03C9) return table[ch - 0x0363].variant; if (ch == 0x03D1) return 0x1D717; if (ch >= 0x03D5 and ch <= 0x03D6) return table[ch - 0x036D].variant; if (ch >= 0x03F0 and ch <= 0x03F1) return table[ch - 0x0386].variant; if (ch == 0x03F4) return 0x1D6F3; if (ch == 0x2202) return 0x1D715; if (ch == 0x2207) return 0x1D6FB; if (ch == 0x220A) return 0x1D716; return ch; } gtkmathview-0.8.0/src/common/mathvariants/extract.xsl0000644000175000017500000000240110613606765017763 00000000000000 #include <Char.hh> typedef struct TableEntry { Char16 normal; Char32 variant; } TableEntry; static TableEntry table[] = { { 0, 0 } }; #include <cstdio> int main() { unsigned i = 0; while (table[i].normal != 0) { unsigned i0 = i; while (table[i].normal == table[i + 1].normal - 1) i++; if (i0 == i) printf(" if (ch == 0x%04X) return 0x%04X;\n", table[i].normal, table[i].variant); else printf(" if (ch >= 0x%04X and ch <= 0x%04X) return table[ch - 0x%04X].variant;\n", table[i0].normal, table[i].normal, table[i0].normal - i0); i++; } return 0; } { 0x, 0x }, gtkmathview-0.8.0/src/common/mathvariants/bold-sans-serif.cc0000644000175000017500000001142510704614647021065 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . // WARNING: do not edit! This file has been generated automatically #include typedef struct TableEntry { Char16 normal; Char32 variant; } TableEntry; static TableEntry table[] = { { 0x00030, 0x1D7EC }, { 0x00031, 0x1D7ED }, { 0x00032, 0x1D7EE }, { 0x00033, 0x1D7EF }, { 0x00034, 0x1D7F0 }, { 0x00035, 0x1D7F1 }, { 0x00036, 0x1D7F2 }, { 0x00037, 0x1D7F3 }, { 0x00038, 0x1D7F4 }, { 0x00039, 0x1D7F5 }, { 0x00041, 0x1D5D4 }, { 0x00042, 0x1D5D5 }, { 0x00043, 0x1D5D6 }, { 0x00044, 0x1D5D7 }, { 0x00045, 0x1D5D8 }, { 0x00046, 0x1D5D9 }, { 0x00047, 0x1D5DA }, { 0x00048, 0x1D5DB }, { 0x00049, 0x1D5DC }, { 0x0004A, 0x1D5DD }, { 0x0004B, 0x1D5DE }, { 0x0004C, 0x1D5DF }, { 0x0004D, 0x1D5E0 }, { 0x0004E, 0x1D5E1 }, { 0x0004F, 0x1D5E2 }, { 0x00050, 0x1D5E3 }, { 0x00051, 0x1D5E4 }, { 0x00052, 0x1D5E5 }, { 0x00053, 0x1D5E6 }, { 0x00054, 0x1D5E7 }, { 0x00055, 0x1D5E8 }, { 0x00056, 0x1D5E9 }, { 0x00057, 0x1D5EA }, { 0x00058, 0x1D5EB }, { 0x00059, 0x1D5EC }, { 0x0005A, 0x1D5ED }, { 0x00061, 0x1D5EE }, { 0x00062, 0x1D5EF }, { 0x00063, 0x1D5F0 }, { 0x00064, 0x1D5F1 }, { 0x00065, 0x1D5F2 }, { 0x00066, 0x1D5F3 }, { 0x00067, 0x1D5F4 }, { 0x00068, 0x1D5F5 }, { 0x00069, 0x1D5F6 }, { 0x0006A, 0x1D5F7 }, { 0x0006B, 0x1D5F8 }, { 0x0006C, 0x1D5F9 }, { 0x0006D, 0x1D5FA }, { 0x0006E, 0x1D5FB }, { 0x0006F, 0x1D5FC }, { 0x00070, 0x1D5FD }, { 0x00071, 0x1D5FE }, { 0x00072, 0x1D5FF }, { 0x00073, 0x1D600 }, { 0x00074, 0x1D601 }, { 0x00075, 0x1D602 }, { 0x00076, 0x1D603 }, { 0x00077, 0x1D604 }, { 0x00078, 0x1D605 }, { 0x00079, 0x1D606 }, { 0x0007A, 0x1D607 }, { 0x00391, 0x1D756 }, { 0x00392, 0x1D757 }, { 0x00393, 0x1D758 }, { 0x00394, 0x1D759 }, { 0x00395, 0x1D75A }, { 0x00396, 0x1D75B }, { 0x00397, 0x1D75C }, { 0x00398, 0x1D75D }, { 0x00399, 0x1D75E }, { 0x0039A, 0x1D75F }, { 0x0039B, 0x1D760 }, { 0x0039C, 0x1D761 }, { 0x0039D, 0x1D762 }, { 0x0039E, 0x1D763 }, { 0x0039F, 0x1D764 }, { 0x003A0, 0x1D765 }, { 0x003A1, 0x1D766 }, { 0x003A3, 0x1D768 }, { 0x003A4, 0x1D769 }, { 0x003A5, 0x1D76A }, { 0x003A6, 0x1D76B }, { 0x003A7, 0x1D76C }, { 0x003A8, 0x1D76D }, { 0x003A9, 0x1D76E }, { 0x003B1, 0x1D770 }, { 0x003B2, 0x1D771 }, { 0x003B3, 0x1D772 }, { 0x003B4, 0x1D773 }, { 0x003B5, 0x1D774 }, { 0x003B6, 0x1D775 }, { 0x003B7, 0x1D776 }, { 0x003B8, 0x1D777 }, { 0x003B9, 0x1D778 }, { 0x003BA, 0x1D779 }, { 0x003BB, 0x1D77A }, { 0x003BC, 0x1D77B }, { 0x003BD, 0x1D77C }, { 0x003BE, 0x1D77D }, { 0x003BF, 0x1D77E }, { 0x003C0, 0x1D77F }, { 0x003C1, 0x1D780 }, { 0x003C2, 0x1D781 }, { 0x003C3, 0x1D782 }, { 0x003C4, 0x1D783 }, { 0x003C5, 0x1D784 }, { 0x003C6, 0x1D785 }, { 0x003C7, 0x1D786 }, { 0x003C8, 0x1D787 }, { 0x003C9, 0x1D788 }, { 0x003D1, 0x1D78B }, { 0x003D5, 0x1D78D }, { 0x003D6, 0x1D78F }, { 0x003F0, 0x1D78C }, { 0x003F1, 0x1D78E }, { 0x003F4, 0x1D767 }, { 0x02202, 0x1D789 }, { 0x02207, 0x1D76F }, { 0x0220A, 0x1D78A }, { 0, 0 } }; Char32 map_variant_bold_sans_serif (Char32 ch) { if (ch >= 0x0030 and ch <= 0x0039) return table[ch - 0x0030].variant; if (ch >= 0x0041 and ch <= 0x005A) return table[ch - 0x0037].variant; if (ch >= 0x0061 and ch <= 0x007A) return table[ch - 0x003D].variant; if (ch >= 0x0391 and ch <= 0x03A1) return table[ch - 0x0353].variant; if (ch >= 0x03A3 and ch <= 0x03A9) return table[ch - 0x0354].variant; if (ch >= 0x03B1 and ch <= 0x03C9) return table[ch - 0x035B].variant; if (ch == 0x03D1) return 0x1D78B; if (ch >= 0x03D5 and ch <= 0x03D6) return table[ch - 0x0365].variant; if (ch >= 0x03F0 and ch <= 0x03F1) return table[ch - 0x037E].variant; if (ch == 0x03F4) return 0x1D767; if (ch == 0x2202) return 0x1D789; if (ch == 0x2207) return 0x1D76F; if (ch == 0x220A) return 0x1D78A; return ch; } gtkmathview-0.8.0/src/common/mathvariants/sans-serif-italic.cc0000644000175000017500000000501710704614654021410 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . // WARNING: do not edit! This file has been generated automatically #include typedef struct TableEntry { Char16 normal; Char32 variant; } TableEntry; static TableEntry table[] = { { 0x00041, 0x1D608 }, { 0x00042, 0x1D609 }, { 0x00043, 0x1D60A }, { 0x00044, 0x1D60B }, { 0x00045, 0x1D60C }, { 0x00046, 0x1D60D }, { 0x00047, 0x1D60E }, { 0x00048, 0x1D60F }, { 0x00049, 0x1D610 }, { 0x0004A, 0x1D611 }, { 0x0004B, 0x1D612 }, { 0x0004C, 0x1D613 }, { 0x0004D, 0x1D614 }, { 0x0004E, 0x1D615 }, { 0x0004F, 0x1D616 }, { 0x00050, 0x1D617 }, { 0x00051, 0x1D618 }, { 0x00052, 0x1D619 }, { 0x00053, 0x1D61A }, { 0x00054, 0x1D61B }, { 0x00055, 0x1D61C }, { 0x00056, 0x1D61D }, { 0x00057, 0x1D61E }, { 0x00058, 0x1D61F }, { 0x00059, 0x1D620 }, { 0x0005A, 0x1D621 }, { 0x00061, 0x1D622 }, { 0x00062, 0x1D623 }, { 0x00063, 0x1D624 }, { 0x00064, 0x1D625 }, { 0x00065, 0x1D626 }, { 0x00066, 0x1D627 }, { 0x00067, 0x1D628 }, { 0x00068, 0x1D629 }, { 0x00069, 0x1D62A }, { 0x0006A, 0x1D62B }, { 0x0006B, 0x1D62C }, { 0x0006C, 0x1D62D }, { 0x0006D, 0x1D62E }, { 0x0006E, 0x1D62F }, { 0x0006F, 0x1D630 }, { 0x00070, 0x1D631 }, { 0x00071, 0x1D632 }, { 0x00072, 0x1D633 }, { 0x00073, 0x1D634 }, { 0x00074, 0x1D635 }, { 0x00075, 0x1D636 }, { 0x00076, 0x1D637 }, { 0x00077, 0x1D638 }, { 0x00078, 0x1D639 }, { 0x00079, 0x1D63A }, { 0x0007A, 0x1D63B }, { 0, 0 } }; Char32 map_variant_sans_serif_italic (Char32 ch) { if (ch >= 0x0041 and ch <= 0x005A) return table[ch - 0x0041].variant; if (ch >= 0x0061 and ch <= 0x007A) return table[ch - 0x0047].variant; return ch; } gtkmathview-0.8.0/src/common/mathvariants/Makefile.in0000644000175000017500000011713710704610546017634 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/common/mathvariants DIST_COMMON = $(mathview_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libmathvariants_la_LIBADD = am__objects_1 = am__objects_2 = libmathvariants_la-bold-fraktur.lo \ libmathvariants_la-bold-italic.lo \ libmathvariants_la-bold-sans-serif.lo \ libmathvariants_la-bold-script.lo libmathvariants_la-bold.lo \ libmathvariants_la-double-struck.lo \ libmathvariants_la-fraktur.lo libmathvariants_la-italic.lo \ libmathvariants_la-monospace.lo \ libmathvariants_la-sans-serif-bold-italic.lo \ libmathvariants_la-sans-serif-italic.lo \ libmathvariants_la-sans-serif.lo libmathvariants_la-script.lo \ $(am__objects_1) am_libmathvariants_la_OBJECTS = $(am__objects_2) \ libmathvariants_la-MathVariantMap.lo $(am__objects_1) libmathvariants_la_OBJECTS = $(am_libmathvariants_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libmathvariants_la_SOURCES) DIST_SOURCES = $(libmathvariants_la_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(mathviewdir)" mathviewHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(mathview_HEADERS) ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = SUBDIRS = xml AUTO_CC = \ bold-fraktur.cc \ bold-italic.cc \ bold-sans-serif.cc \ bold-script.cc \ bold.cc \ double-struck.cc \ fraktur.cc \ italic.cc \ monospace.cc \ sans-serif-bold-italic.cc \ sans-serif-italic.cc \ sans-serif.cc \ script.cc \ $(NULL) EXTRA_DIST = variant.top variant.bot extract.xsl BUILT_SOURCES = $(AUTO_CC) CLEANFILES = $(AUTO_CC) noinst_LTLIBRARIES = libmathvariants.la libmathvariants_la_CPPFLAGS = -DGMV_MathView_DLL libmathvariants_la_SOURCES = \ $(AUTO_CC) \ MathVariantMap.cc \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ MathVariant.hh \ MathVariantMap.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/src/common @COND_XSLTPROC_TRUE@XSLTPROC = xsltproc all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/common/mathvariants/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/common/mathvariants/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libmathvariants.la: $(libmathvariants_la_OBJECTS) $(libmathvariants_la_DEPENDENCIES) $(CXXLINK) $(libmathvariants_la_LDFLAGS) $(libmathvariants_la_OBJECTS) $(libmathvariants_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathvariants_la-MathVariantMap.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathvariants_la-bold-fraktur.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathvariants_la-bold-italic.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathvariants_la-bold-sans-serif.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathvariants_la-bold-script.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathvariants_la-bold.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathvariants_la-double-struck.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathvariants_la-fraktur.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathvariants_la-italic.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathvariants_la-monospace.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathvariants_la-sans-serif-bold-italic.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathvariants_la-sans-serif-italic.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathvariants_la-sans-serif.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathvariants_la-script.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libmathvariants_la-bold-fraktur.lo: bold-fraktur.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathvariants_la-bold-fraktur.lo -MD -MP -MF "$(DEPDIR)/libmathvariants_la-bold-fraktur.Tpo" -c -o libmathvariants_la-bold-fraktur.lo `test -f 'bold-fraktur.cc' || echo '$(srcdir)/'`bold-fraktur.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathvariants_la-bold-fraktur.Tpo" "$(DEPDIR)/libmathvariants_la-bold-fraktur.Plo"; else rm -f "$(DEPDIR)/libmathvariants_la-bold-fraktur.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='bold-fraktur.cc' object='libmathvariants_la-bold-fraktur.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathvariants_la-bold-fraktur.lo `test -f 'bold-fraktur.cc' || echo '$(srcdir)/'`bold-fraktur.cc libmathvariants_la-bold-italic.lo: bold-italic.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathvariants_la-bold-italic.lo -MD -MP -MF "$(DEPDIR)/libmathvariants_la-bold-italic.Tpo" -c -o libmathvariants_la-bold-italic.lo `test -f 'bold-italic.cc' || echo '$(srcdir)/'`bold-italic.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathvariants_la-bold-italic.Tpo" "$(DEPDIR)/libmathvariants_la-bold-italic.Plo"; else rm -f "$(DEPDIR)/libmathvariants_la-bold-italic.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='bold-italic.cc' object='libmathvariants_la-bold-italic.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathvariants_la-bold-italic.lo `test -f 'bold-italic.cc' || echo '$(srcdir)/'`bold-italic.cc libmathvariants_la-bold-sans-serif.lo: bold-sans-serif.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathvariants_la-bold-sans-serif.lo -MD -MP -MF "$(DEPDIR)/libmathvariants_la-bold-sans-serif.Tpo" -c -o libmathvariants_la-bold-sans-serif.lo `test -f 'bold-sans-serif.cc' || echo '$(srcdir)/'`bold-sans-serif.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathvariants_la-bold-sans-serif.Tpo" "$(DEPDIR)/libmathvariants_la-bold-sans-serif.Plo"; else rm -f "$(DEPDIR)/libmathvariants_la-bold-sans-serif.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='bold-sans-serif.cc' object='libmathvariants_la-bold-sans-serif.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathvariants_la-bold-sans-serif.lo `test -f 'bold-sans-serif.cc' || echo '$(srcdir)/'`bold-sans-serif.cc libmathvariants_la-bold-script.lo: bold-script.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathvariants_la-bold-script.lo -MD -MP -MF "$(DEPDIR)/libmathvariants_la-bold-script.Tpo" -c -o libmathvariants_la-bold-script.lo `test -f 'bold-script.cc' || echo '$(srcdir)/'`bold-script.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathvariants_la-bold-script.Tpo" "$(DEPDIR)/libmathvariants_la-bold-script.Plo"; else rm -f "$(DEPDIR)/libmathvariants_la-bold-script.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='bold-script.cc' object='libmathvariants_la-bold-script.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathvariants_la-bold-script.lo `test -f 'bold-script.cc' || echo '$(srcdir)/'`bold-script.cc libmathvariants_la-bold.lo: bold.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathvariants_la-bold.lo -MD -MP -MF "$(DEPDIR)/libmathvariants_la-bold.Tpo" -c -o libmathvariants_la-bold.lo `test -f 'bold.cc' || echo '$(srcdir)/'`bold.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathvariants_la-bold.Tpo" "$(DEPDIR)/libmathvariants_la-bold.Plo"; else rm -f "$(DEPDIR)/libmathvariants_la-bold.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='bold.cc' object='libmathvariants_la-bold.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathvariants_la-bold.lo `test -f 'bold.cc' || echo '$(srcdir)/'`bold.cc libmathvariants_la-double-struck.lo: double-struck.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathvariants_la-double-struck.lo -MD -MP -MF "$(DEPDIR)/libmathvariants_la-double-struck.Tpo" -c -o libmathvariants_la-double-struck.lo `test -f 'double-struck.cc' || echo '$(srcdir)/'`double-struck.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathvariants_la-double-struck.Tpo" "$(DEPDIR)/libmathvariants_la-double-struck.Plo"; else rm -f "$(DEPDIR)/libmathvariants_la-double-struck.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='double-struck.cc' object='libmathvariants_la-double-struck.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathvariants_la-double-struck.lo `test -f 'double-struck.cc' || echo '$(srcdir)/'`double-struck.cc libmathvariants_la-fraktur.lo: fraktur.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathvariants_la-fraktur.lo -MD -MP -MF "$(DEPDIR)/libmathvariants_la-fraktur.Tpo" -c -o libmathvariants_la-fraktur.lo `test -f 'fraktur.cc' || echo '$(srcdir)/'`fraktur.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathvariants_la-fraktur.Tpo" "$(DEPDIR)/libmathvariants_la-fraktur.Plo"; else rm -f "$(DEPDIR)/libmathvariants_la-fraktur.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='fraktur.cc' object='libmathvariants_la-fraktur.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathvariants_la-fraktur.lo `test -f 'fraktur.cc' || echo '$(srcdir)/'`fraktur.cc libmathvariants_la-italic.lo: italic.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathvariants_la-italic.lo -MD -MP -MF "$(DEPDIR)/libmathvariants_la-italic.Tpo" -c -o libmathvariants_la-italic.lo `test -f 'italic.cc' || echo '$(srcdir)/'`italic.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathvariants_la-italic.Tpo" "$(DEPDIR)/libmathvariants_la-italic.Plo"; else rm -f "$(DEPDIR)/libmathvariants_la-italic.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='italic.cc' object='libmathvariants_la-italic.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathvariants_la-italic.lo `test -f 'italic.cc' || echo '$(srcdir)/'`italic.cc libmathvariants_la-monospace.lo: monospace.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathvariants_la-monospace.lo -MD -MP -MF "$(DEPDIR)/libmathvariants_la-monospace.Tpo" -c -o libmathvariants_la-monospace.lo `test -f 'monospace.cc' || echo '$(srcdir)/'`monospace.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathvariants_la-monospace.Tpo" "$(DEPDIR)/libmathvariants_la-monospace.Plo"; else rm -f "$(DEPDIR)/libmathvariants_la-monospace.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='monospace.cc' object='libmathvariants_la-monospace.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathvariants_la-monospace.lo `test -f 'monospace.cc' || echo '$(srcdir)/'`monospace.cc libmathvariants_la-sans-serif-bold-italic.lo: sans-serif-bold-italic.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathvariants_la-sans-serif-bold-italic.lo -MD -MP -MF "$(DEPDIR)/libmathvariants_la-sans-serif-bold-italic.Tpo" -c -o libmathvariants_la-sans-serif-bold-italic.lo `test -f 'sans-serif-bold-italic.cc' || echo '$(srcdir)/'`sans-serif-bold-italic.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathvariants_la-sans-serif-bold-italic.Tpo" "$(DEPDIR)/libmathvariants_la-sans-serif-bold-italic.Plo"; else rm -f "$(DEPDIR)/libmathvariants_la-sans-serif-bold-italic.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='sans-serif-bold-italic.cc' object='libmathvariants_la-sans-serif-bold-italic.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathvariants_la-sans-serif-bold-italic.lo `test -f 'sans-serif-bold-italic.cc' || echo '$(srcdir)/'`sans-serif-bold-italic.cc libmathvariants_la-sans-serif-italic.lo: sans-serif-italic.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathvariants_la-sans-serif-italic.lo -MD -MP -MF "$(DEPDIR)/libmathvariants_la-sans-serif-italic.Tpo" -c -o libmathvariants_la-sans-serif-italic.lo `test -f 'sans-serif-italic.cc' || echo '$(srcdir)/'`sans-serif-italic.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathvariants_la-sans-serif-italic.Tpo" "$(DEPDIR)/libmathvariants_la-sans-serif-italic.Plo"; else rm -f "$(DEPDIR)/libmathvariants_la-sans-serif-italic.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='sans-serif-italic.cc' object='libmathvariants_la-sans-serif-italic.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathvariants_la-sans-serif-italic.lo `test -f 'sans-serif-italic.cc' || echo '$(srcdir)/'`sans-serif-italic.cc libmathvariants_la-sans-serif.lo: sans-serif.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathvariants_la-sans-serif.lo -MD -MP -MF "$(DEPDIR)/libmathvariants_la-sans-serif.Tpo" -c -o libmathvariants_la-sans-serif.lo `test -f 'sans-serif.cc' || echo '$(srcdir)/'`sans-serif.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathvariants_la-sans-serif.Tpo" "$(DEPDIR)/libmathvariants_la-sans-serif.Plo"; else rm -f "$(DEPDIR)/libmathvariants_la-sans-serif.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='sans-serif.cc' object='libmathvariants_la-sans-serif.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathvariants_la-sans-serif.lo `test -f 'sans-serif.cc' || echo '$(srcdir)/'`sans-serif.cc libmathvariants_la-script.lo: script.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathvariants_la-script.lo -MD -MP -MF "$(DEPDIR)/libmathvariants_la-script.Tpo" -c -o libmathvariants_la-script.lo `test -f 'script.cc' || echo '$(srcdir)/'`script.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathvariants_la-script.Tpo" "$(DEPDIR)/libmathvariants_la-script.Plo"; else rm -f "$(DEPDIR)/libmathvariants_la-script.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='script.cc' object='libmathvariants_la-script.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathvariants_la-script.lo `test -f 'script.cc' || echo '$(srcdir)/'`script.cc libmathvariants_la-MathVariantMap.lo: MathVariantMap.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathvariants_la-MathVariantMap.lo -MD -MP -MF "$(DEPDIR)/libmathvariants_la-MathVariantMap.Tpo" -c -o libmathvariants_la-MathVariantMap.lo `test -f 'MathVariantMap.cc' || echo '$(srcdir)/'`MathVariantMap.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathvariants_la-MathVariantMap.Tpo" "$(DEPDIR)/libmathvariants_la-MathVariantMap.Plo"; else rm -f "$(DEPDIR)/libmathvariants_la-MathVariantMap.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MathVariantMap.cc' object='libmathvariants_la-MathVariantMap.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathvariants_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathvariants_la-MathVariantMap.lo `test -f 'MathVariantMap.cc' || echo '$(srcdir)/'`MathVariantMap.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-mathviewHEADERS: $(mathview_HEADERS) @$(NORMAL_INSTALL) test -z "$(mathviewdir)" || $(mkdir_p) "$(DESTDIR)$(mathviewdir)" @list='$(mathview_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(mathviewHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(mathviewdir)/$$f'"; \ $(mathviewHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(mathviewdir)/$$f"; \ done uninstall-mathviewHEADERS: @$(NORMAL_UNINSTALL) @list='$(mathview_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(mathviewdir)/$$f'"; \ rm -f "$(DESTDIR)$(mathviewdir)/$$f"; \ done # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-recursive all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(mathviewdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-recursive clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-mathviewHEADERS install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-mathviewHEADERS uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ clean clean-generic clean-libtool clean-noinstLTLIBRARIES \ clean-recursive ctags ctags-recursive distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-recursive distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-exec install-exec-am install-info \ install-info-am install-man install-mathviewHEADERS \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ maintainer-clean-recursive mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \ pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-info-am uninstall-mathviewHEADERS @COND_XSLTPROC_TRUE@%_gen.cc : $(srcdir)/xml/%.xml $(srcdir)/extract.xsl @COND_XSLTPROC_TRUE@ $(XSLTPROC) --novalid $(srcdir)/extract.xsl $< >$@ @COND_XSLTPROC_TRUE@%.cc : %_gen.cc $(srcdir)/variant.top $(srcdir)/variant.bot @COND_XSLTPROC_TRUE@ cat $(srcdir)/variant.top >$@ @COND_XSLTPROC_TRUE@ $(XSLTPROC) --novalid --param temp "false()" $(srcdir)/extract.xsl $(<:%_gen.cc=$(srcdir)/xml/%.xml) >>$@ @COND_XSLTPROC_TRUE@ $(CXX) -o $(@:%.cc=%) -I$(top_builddir)/auto $< @COND_XSLTPROC_TRUE@ echo "Char32 " >>$@ @COND_XSLTPROC_TRUE@ basename map_variant_$@ .cc | tr "-" "_" >>$@ @COND_XSLTPROC_TRUE@ echo "(Char32 ch)" >>$@ @COND_XSLTPROC_TRUE@ echo "{" >>$@ @COND_XSLTPROC_TRUE@ ./$(@:%.cc=%) >>$@ @COND_XSLTPROC_TRUE@ echo " return ch;" >>$@ @COND_XSLTPROC_TRUE@ echo "}" >>$@ @COND_XSLTPROC_TRUE@ rm -f $(@:%.cc=%) @COND_XSLTPROC_TRUE@ cat $(srcdir)/variant.bot >>$@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/src/common/mathvariants/xml/0000777000175000017500000000000010704625454016445 500000000000000gtkmathview-0.8.0/src/common/mathvariants/xml/bold-italic.xml0000644000175000017500000010701710613606765021277 00000000000000 Bold Italic or Slanted

Bold Italic or Slanted


Unicode BMP Glyph Unicode Name MathML Names
1D468 00041 U1D468 MATHEMATICAL BOLD ITALIC CAPITAL A  
1D469 00042 U1D469 MATHEMATICAL BOLD ITALIC CAPITAL B  
1D46A 00043 U1D46A MATHEMATICAL BOLD ITALIC CAPITAL C  
1D46B 00044 U1D46B MATHEMATICAL BOLD ITALIC CAPITAL D  
1D46C 00045 U1D46C MATHEMATICAL BOLD ITALIC CAPITAL E  
1D46D 00046 U1D46D MATHEMATICAL BOLD ITALIC CAPITAL F  
1D46E 00047 U1D46E MATHEMATICAL BOLD ITALIC CAPITAL G  
1D46F 00048 U1D46F MATHEMATICAL BOLD ITALIC CAPITAL H  
1D470 00049 U1D470 MATHEMATICAL BOLD ITALIC CAPITAL I  
1D471 0004A U1D471 MATHEMATICAL BOLD ITALIC CAPITAL J  
1D472 0004B U1D472 MATHEMATICAL BOLD ITALIC CAPITAL K  
1D473 0004C U1D473 MATHEMATICAL BOLD ITALIC CAPITAL L  
1D474 0004D U1D474 MATHEMATICAL BOLD ITALIC CAPITAL M  
1D475 0004E U1D475 MATHEMATICAL BOLD ITALIC CAPITAL N  
1D476 0004F U1D476 MATHEMATICAL BOLD ITALIC CAPITAL O  
1D477 00050 U1D477 MATHEMATICAL BOLD ITALIC CAPITAL P  
1D478 00051 U1D478 MATHEMATICAL BOLD ITALIC CAPITAL Q  
1D479 00052 U1D479 MATHEMATICAL BOLD ITALIC CAPITAL R  
1D47A 00053 U1D47A MATHEMATICAL BOLD ITALIC CAPITAL S  
1D47B 00054 U1D47B MATHEMATICAL BOLD ITALIC CAPITAL T  
1D47C 00055 U1D47C MATHEMATICAL BOLD ITALIC CAPITAL U  
1D47D 00056 U1D47D MATHEMATICAL BOLD ITALIC CAPITAL V  
1D47E 00057 U1D47E MATHEMATICAL BOLD ITALIC CAPITAL W  
1D47F 00058 U1D47F MATHEMATICAL BOLD ITALIC CAPITAL X  
1D480 00059 U1D480 MATHEMATICAL BOLD ITALIC CAPITAL Y  
1D481 0005A U1D481 MATHEMATICAL BOLD ITALIC CAPITAL Z  
1D482 00061 U1D482 MATHEMATICAL BOLD ITALIC SMALL A  
1D483 00062 U1D483 MATHEMATICAL BOLD ITALIC SMALL B  
1D484 00063 U1D484 MATHEMATICAL BOLD ITALIC SMALL C  
1D485 00064 U1D485 MATHEMATICAL BOLD ITALIC SMALL D  
1D486 00065 U1D486 MATHEMATICAL BOLD ITALIC SMALL E  
1D487 00066 U1D487 MATHEMATICAL BOLD ITALIC SMALL F  
1D488 00067 U1D488 MATHEMATICAL BOLD ITALIC SMALL G  
1D489 00068 U1D489 MATHEMATICAL BOLD ITALIC SMALL H  
1D48A 00069 U1D48A MATHEMATICAL BOLD ITALIC SMALL I  
1D48B 0006A U1D48B MATHEMATICAL BOLD ITALIC SMALL J  
1D48C 0006B U1D48C MATHEMATICAL BOLD ITALIC SMALL K  
1D48D 0006C U1D48D MATHEMATICAL BOLD ITALIC SMALL L  
1D48E 0006D U1D48E MATHEMATICAL BOLD ITALIC SMALL M  
1D48F 0006E U1D48F MATHEMATICAL BOLD ITALIC SMALL N  
1D490 0006F U1D490 MATHEMATICAL BOLD ITALIC SMALL O  
1D491 00070 U1D491 MATHEMATICAL BOLD ITALIC SMALL P  
1D492 00071 U1D492 MATHEMATICAL BOLD ITALIC SMALL Q  
1D493 00072 U1D493 MATHEMATICAL BOLD ITALIC SMALL R  
1D494 00073 U1D494 MATHEMATICAL BOLD ITALIC SMALL S  
1D495 00074 U1D495 MATHEMATICAL BOLD ITALIC SMALL T  
1D496 00075 U1D496 MATHEMATICAL BOLD ITALIC SMALL U  
1D497 00076 U1D497 MATHEMATICAL BOLD ITALIC SMALL V  
1D498 00077 U1D498 MATHEMATICAL BOLD ITALIC SMALL W  
1D499 00078 U1D499 MATHEMATICAL BOLD ITALIC SMALL X  
1D49A 00079 U1D49A MATHEMATICAL BOLD ITALIC SMALL Y  
1D49B 0007A U1D49B MATHEMATICAL BOLD ITALIC SMALL Z  
1D71C 00391 U1D71C MATHEMATICAL BOLD ITALIC CAPITAL ALPHA  
1D71D 00392 U1D71D MATHEMATICAL BOLD ITALIC CAPITAL BETA  
1D71E 00393 U1D71E MATHEMATICAL BOLD ITALIC CAPITAL GAMMA  
1D71F 00394 U1D71F MATHEMATICAL BOLD ITALIC CAPITAL DELTA  
1D720 00395 U1D720 MATHEMATICAL BOLD ITALIC CAPITAL EPSILON  
1D721 00396 U1D721 MATHEMATICAL BOLD ITALIC CAPITAL ZETA  
1D722 00397 U1D722 MATHEMATICAL BOLD ITALIC CAPITAL ETA  
1D723 00398 U1D723 MATHEMATICAL BOLD ITALIC CAPITAL THETA  
1D724 00399 U1D724 MATHEMATICAL BOLD ITALIC CAPITAL IOTA  
1D725 0039A U1D725 MATHEMATICAL BOLD ITALIC CAPITAL KAPPA  
1D726 0039B U1D726 MATHEMATICAL BOLD ITALIC CAPITAL LAMDA  
1D727 0039C U1D727 MATHEMATICAL BOLD ITALIC CAPITAL MU  
1D728 0039D U1D728 MATHEMATICAL BOLD ITALIC CAPITAL NU  
1D729 0039E U1D729 MATHEMATICAL BOLD ITALIC CAPITAL XI  
1D72A 0039F U1D72A MATHEMATICAL BOLD ITALIC CAPITAL OMICRON  
1D72B 003A0 U1D72B MATHEMATICAL BOLD ITALIC CAPITAL PI  
1D72C 003A1 U1D72C MATHEMATICAL BOLD ITALIC CAPITAL RHO  
1D72D 003F4 U1D72D MATHEMATICAL BOLD ITALIC CAPITAL THETA SYMBOL  
1D72E 003A3 U1D72E MATHEMATICAL BOLD ITALIC CAPITAL SIGMA  
1D72F 003A4 U1D72F MATHEMATICAL BOLD ITALIC CAPITAL TAU  
1D730 003A5 U1D730 MATHEMATICAL BOLD ITALIC CAPITAL UPSILON  
1D731 003A6 U1D731 MATHEMATICAL BOLD ITALIC CAPITAL PHI  
1D732 003A7 U1D732 MATHEMATICAL BOLD ITALIC CAPITAL CHI  
1D733 003A8 U1D733 MATHEMATICAL BOLD ITALIC CAPITAL PSI  
1D734 003A9 U1D734 MATHEMATICAL BOLD ITALIC CAPITAL OMEGA  
1D735 02207 U1D735 MATHEMATICAL BOLD ITALIC NABLA  
1D736 003B1 U1D736 MATHEMATICAL BOLD ITALIC SMALL ALPHA  
1D737 003B2 U1D737 MATHEMATICAL BOLD ITALIC SMALL BETA  
1D738 003B3 U1D738 MATHEMATICAL BOLD ITALIC SMALL GAMMA  
1D739 003B4 U1D739 MATHEMATICAL BOLD ITALIC SMALL DELTA  
1D73A 003B5 U1D73A MATHEMATICAL BOLD ITALIC SMALL EPSILON  
1D73B 003B6 U1D73B MATHEMATICAL BOLD ITALIC SMALL ZETA  
1D73C 003B7 U1D73C MATHEMATICAL BOLD ITALIC SMALL ETA  
1D73D 003B8 U1D73D MATHEMATICAL BOLD ITALIC SMALL THETA  
1D73E 003B9 U1D73E MATHEMATICAL BOLD ITALIC SMALL IOTA  
1D73F 003BA U1D73F MATHEMATICAL BOLD ITALIC SMALL KAPPA  
1D740 003BB U1D740 MATHEMATICAL BOLD ITALIC SMALL LAMDA  
1D741 003BC U1D741 MATHEMATICAL BOLD ITALIC SMALL MU  
1D742 003BD U1D742 MATHEMATICAL BOLD ITALIC SMALL NU  
1D743 003BE U1D743 MATHEMATICAL BOLD ITALIC SMALL XI  
1D744 003BF U1D744 MATHEMATICAL BOLD ITALIC SMALL OMICRON  
1D745 003C0 U1D745 MATHEMATICAL BOLD ITALIC SMALL PI  
1D746 003C1 U1D746 MATHEMATICAL BOLD ITALIC SMALL RHO  
1D747 003C2 U1D747 MATHEMATICAL BOLD ITALIC SMALL FINAL SIGMA  
1D748 003C3 U1D748 MATHEMATICAL BOLD ITALIC SMALL SIGMA  
1D749 003C4 U1D749 MATHEMATICAL BOLD ITALIC SMALL TAU  
1D74A 003C5 U1D74A MATHEMATICAL BOLD ITALIC SMALL UPSILON  
1D74B 003C6 U1D74B MATHEMATICAL BOLD ITALIC SMALL PHI  
1D74C 003C7 U1D74C MATHEMATICAL BOLD ITALIC SMALL CHI  
1D74D 003C8 U1D74D MATHEMATICAL BOLD ITALIC SMALL PSI  
1D74E 003C9 U1D74E MATHEMATICAL BOLD ITALIC SMALL OMEGA  
1D74F 02202 U1D74F MATHEMATICAL BOLD ITALIC PARTIAL DIFFERENTIAL  
1D750 0220A U1D750 MATHEMATICAL BOLD ITALIC EPSILON SYMBOL  
1D751 003D1 U1D751 MATHEMATICAL BOLD ITALIC THETA SYMBOL  
1D752 003F0 U1D752 MATHEMATICAL BOLD ITALIC KAPPA SYMBOL  
1D753 003D5 U1D753 MATHEMATICAL BOLD ITALIC PHI SYMBOL  
1D754 003F1 U1D754 MATHEMATICAL BOLD ITALIC RHO SYMBOL  
1D755 003D6 U1D755 MATHEMATICAL BOLD ITALIC PI SYMBOL  

gtkmathview-0.8.0/src/common/mathvariants/xml/bold.xml0000644000175000017500000011276110613606765020036 00000000000000 Bold (Serif)

Bold (Serif)


Unicode BMP Glyph Unicode Name MathML Names
1D400 00041 U1D400 MATHEMATICAL BOLD CAPITAL A  
1D401 00042 U1D401 MATHEMATICAL BOLD CAPITAL B  
1D402 00043 U1D402 MATHEMATICAL BOLD CAPITAL C  
1D403 00044 U1D403 MATHEMATICAL BOLD CAPITAL D  
1D404 00045 U1D404 MATHEMATICAL BOLD CAPITAL E  
1D405 00046 U1D405 MATHEMATICAL BOLD CAPITAL F  
1D406 00047 U1D406 MATHEMATICAL BOLD CAPITAL G  
1D407 00048 U1D407 MATHEMATICAL BOLD CAPITAL H  
1D408 00049 U1D408 MATHEMATICAL BOLD CAPITAL I  
1D409 0004A U1D409 MATHEMATICAL BOLD CAPITAL J  
1D40A 0004B U1D40A MATHEMATICAL BOLD CAPITAL K  
1D40B 0004C U1D40B MATHEMATICAL BOLD CAPITAL L  
1D40C 0004D U1D40C MATHEMATICAL BOLD CAPITAL M  
1D40D 0004E U1D40D MATHEMATICAL BOLD CAPITAL N  
1D40E 0004F U1D40E MATHEMATICAL BOLD CAPITAL O  
1D40F 00050 U1D40F MATHEMATICAL BOLD CAPITAL P  
1D410 00051 U1D410 MATHEMATICAL BOLD CAPITAL Q  
1D411 00052 U1D411 MATHEMATICAL BOLD CAPITAL R  
1D412 00053 U1D412 MATHEMATICAL BOLD CAPITAL S  
1D413 00054 U1D413 MATHEMATICAL BOLD CAPITAL T  
1D414 00055 U1D414 MATHEMATICAL BOLD CAPITAL U  
1D415 00056 U1D415 MATHEMATICAL BOLD CAPITAL V  
1D416 00057 U1D416 MATHEMATICAL BOLD CAPITAL W  
1D417 00058 U1D417 MATHEMATICAL BOLD CAPITAL X  
1D418 00059 U1D418 MATHEMATICAL BOLD CAPITAL Y  
1D419 0005A U1D419 MATHEMATICAL BOLD CAPITAL Z  
1D41A 00061 U1D41A MATHEMATICAL BOLD SMALL A  
1D41B 00062 U1D41B MATHEMATICAL BOLD SMALL B  
1D41C 00063 U1D41C MATHEMATICAL BOLD SMALL C  
1D41D 00064 U1D41D MATHEMATICAL BOLD SMALL D  
1D41E 00065 U1D41E MATHEMATICAL BOLD SMALL E  
1D41F 00066 U1D41F MATHEMATICAL BOLD SMALL F  
1D420 00067 U1D420 MATHEMATICAL BOLD SMALL G  
1D421 00068 U1D421 MATHEMATICAL BOLD SMALL H  
1D422 00069 U1D422 MATHEMATICAL BOLD SMALL I  
1D423 0006A U1D423 MATHEMATICAL BOLD SMALL J  
1D424 0006B U1D424 MATHEMATICAL BOLD SMALL K  
1D425 0006C U1D425 MATHEMATICAL BOLD SMALL L  
1D426 0006D U1D426 MATHEMATICAL BOLD SMALL M  
1D427 0006E U1D427 MATHEMATICAL BOLD SMALL N  
1D428 0006F U1D428 MATHEMATICAL BOLD SMALL O  
1D429 00070 U1D429 MATHEMATICAL BOLD SMALL P  
1D42A 00071 U1D42A MATHEMATICAL BOLD SMALL Q  
1D42B 00072 U1D42B MATHEMATICAL BOLD SMALL R  
1D42C 00073 U1D42C MATHEMATICAL BOLD SMALL S  
1D42D 00074 U1D42D MATHEMATICAL BOLD SMALL T  
1D42E 00075 U1D42E MATHEMATICAL BOLD SMALL U  
1D42F 00076 U1D42F MATHEMATICAL BOLD SMALL V  
1D430 00077 U1D430 MATHEMATICAL BOLD SMALL W  
1D431 00078 U1D431 MATHEMATICAL BOLD SMALL X  
1D432 00079 U1D432 MATHEMATICAL BOLD SMALL Y  
1D433 0007A U1D433 MATHEMATICAL BOLD SMALL Z  
1D6A8 00391 U1D6A8 MATHEMATICAL BOLD CAPITAL ALPHA  
1D6A9 00392 U1D6A9 MATHEMATICAL BOLD CAPITAL BETA  
1D6AA 00393 U1D6AA MATHEMATICAL BOLD CAPITAL GAMMA  
1D6AB 00394 U1D6AB MATHEMATICAL BOLD CAPITAL DELTA  
1D6AC 00395 U1D6AC MATHEMATICAL BOLD CAPITAL EPSILON  
1D6AD 00396 U1D6AD MATHEMATICAL BOLD CAPITAL ZETA  
1D6AE 00397 U1D6AE MATHEMATICAL BOLD CAPITAL ETA  
1D6AF 00398 U1D6AF MATHEMATICAL BOLD CAPITAL THETA  
1D6B0 00399 U1D6B0 MATHEMATICAL BOLD CAPITAL IOTA  
1D6B1 0039A U1D6B1 MATHEMATICAL BOLD CAPITAL KAPPA  
1D6B2 0039B U1D6B2 MATHEMATICAL BOLD CAPITAL LAMDA  
1D6B3 0039C U1D6B3 MATHEMATICAL BOLD CAPITAL MU  
1D6B4 0039D U1D6B4 MATHEMATICAL BOLD CAPITAL NU  
1D6B5 0039E U1D6B5 MATHEMATICAL BOLD CAPITAL XI  
1D6B6 0039F U1D6B6 MATHEMATICAL BOLD CAPITAL OMICRON  
1D6B7 003A0 U1D6B7 MATHEMATICAL BOLD CAPITAL PI  
1D6B8 003A1 U1D6B8 MATHEMATICAL BOLD CAPITAL RHO  
1D6B9 003F4 U1D6B9 MATHEMATICAL BOLD CAPITAL THETA SYMBOL  
1D6BA 003A3 U1D6BA MATHEMATICAL BOLD CAPITAL SIGMA  
1D6BB 003A4 U1D6BB MATHEMATICAL BOLD CAPITAL TAU  
1D6BC 003A5 U1D6BC MATHEMATICAL BOLD CAPITAL UPSILON  
1D6BD 003A6 U1D6BD MATHEMATICAL BOLD CAPITAL PHI  
1D6BE 003A7 U1D6BE MATHEMATICAL BOLD CAPITAL CHI  
1D6BF 003A8 U1D6BF MATHEMATICAL BOLD CAPITAL PSI  
1D6C0 003A9 U1D6C0 MATHEMATICAL BOLD CAPITAL OMEGA  
1D6C1 02207 U1D6C1 MATHEMATICAL BOLD NABLA  
1D6C2 003B1 U1D6C2 MATHEMATICAL BOLD SMALL ALPHA  
1D6C3 003B2 U1D6C3 MATHEMATICAL BOLD SMALL BETA  
1D6C4 003B3 U1D6C4 MATHEMATICAL BOLD SMALL GAMMA  
1D6C5 003B4 U1D6C5 MATHEMATICAL BOLD SMALL DELTA  
1D6C6 003B5 U1D6C6 MATHEMATICAL BOLD SMALL EPSILON  
1D6C7 003B6 U1D6C7 MATHEMATICAL BOLD SMALL ZETA  
1D6C8 003B7 U1D6C8 MATHEMATICAL BOLD SMALL ETA  
1D6C9 003B8 U1D6C9 MATHEMATICAL BOLD SMALL THETA  
1D6CA 003B9 U1D6CA MATHEMATICAL BOLD SMALL IOTA  
1D6CB 003BA U1D6CB MATHEMATICAL BOLD SMALL KAPPA  
1D6CC 003BB U1D6CC MATHEMATICAL BOLD SMALL LAMDA  
1D6CD 003BC U1D6CD MATHEMATICAL BOLD SMALL MU  
1D6CE 003BD U1D6CE MATHEMATICAL BOLD SMALL NU  
1D6CF 003BE U1D6CF MATHEMATICAL BOLD SMALL XI  
1D6D0 003BF U1D6D0 MATHEMATICAL BOLD SMALL OMICRON  
1D6D1 003C0 U1D6D1 MATHEMATICAL BOLD SMALL PI  
1D6D2 003C1 U1D6D2 MATHEMATICAL BOLD SMALL RHO  
1D6D3 003C2 U1D6D3 MATHEMATICAL BOLD SMALL FINAL SIGMA  
1D6D4 003C3 U1D6D4 MATHEMATICAL BOLD SMALL SIGMA  
1D6D5 003C4 U1D6D5 MATHEMATICAL BOLD SMALL TAU  
1D6D6 003C5 U1D6D6 MATHEMATICAL BOLD SMALL UPSILON  
1D6D7 003C6 U1D6D7 MATHEMATICAL BOLD SMALL PHI  
1D6D8 003C7 U1D6D8 MATHEMATICAL BOLD SMALL CHI  
1D6D9 003C8 U1D6D9 MATHEMATICAL BOLD SMALL PSI  
1D6DA 003C9 U1D6DA MATHEMATICAL BOLD SMALL OMEGA  
1D6DB 02202 U1D6DB MATHEMATICAL BOLD PARTIAL DIFFERENTIAL  
1D6DC 0220A U1D6DC MATHEMATICAL BOLD EPSILON SYMBOL  
1D6DD 003D1 U1D6DD MATHEMATICAL BOLD THETA SYMBOL  
1D6DE 003F0 U1D6DE MATHEMATICAL BOLD KAPPA SYMBOL  
1D6DF 003D5 U1D6DF MATHEMATICAL BOLD PHI SYMBOL  
1D6E0 003F1 U1D6E0 MATHEMATICAL BOLD RHO SYMBOL  
1D6E1 003D6 U1D6E1 MATHEMATICAL BOLD PI SYMBOL  
1D7CE 00030 U1D7CE MATHEMATICAL BOLD DIGIT ZERO  
1D7CF 00031 U1D7CF MATHEMATICAL BOLD DIGIT ONE  
1D7D0 00032 U1D7D0 MATHEMATICAL BOLD DIGIT TWO  
1D7D1 00033 U1D7D1 MATHEMATICAL BOLD DIGIT THREE  
1D7D2 00034 U1D7D2 MATHEMATICAL BOLD DIGIT FOUR  
1D7D3 00035 U1D7D3 MATHEMATICAL BOLD DIGIT FIVE  
1D7D4 00036 U1D7D4 MATHEMATICAL BOLD DIGIT SIX  
1D7D5 00037 U1D7D5 MATHEMATICAL BOLD DIGIT SEVEN  
1D7D6 00038 U1D7D6 MATHEMATICAL BOLD DIGIT EIGHT  
1D7D7 00039 U1D7D7 MATHEMATICAL BOLD DIGIT NINE  

gtkmathview-0.8.0/src/common/mathvariants/xml/sans-serif-italic.xml0000644000175000017500000004406610613606765022435 00000000000000 Slanted Sans Serif

Slanted Sans Serif


Unicode BMP Glyph Unicode Name MathML Names
1D608 00041 U1D608 MATHEMATICAL SANS-SERIF ITALIC CAPITAL A  
1D609 00042 U1D609 MATHEMATICAL SANS-SERIF ITALIC CAPITAL B  
1D60A 00043 U1D60A MATHEMATICAL SANS-SERIF ITALIC CAPITAL C  
1D60B 00044 U1D60B MATHEMATICAL SANS-SERIF ITALIC CAPITAL D  
1D60C 00045 U1D60C MATHEMATICAL SANS-SERIF ITALIC CAPITAL E  
1D60D 00046 U1D60D MATHEMATICAL SANS-SERIF ITALIC CAPITAL F  
1D60E 00047 U1D60E MATHEMATICAL SANS-SERIF ITALIC CAPITAL G  
1D60F 00048 U1D60F MATHEMATICAL SANS-SERIF ITALIC CAPITAL H  
1D610 00049 U1D610 MATHEMATICAL SANS-SERIF ITALIC CAPITAL I  
1D611 0004A U1D611 MATHEMATICAL SANS-SERIF ITALIC CAPITAL J  
1D612 0004B U1D612 MATHEMATICAL SANS-SERIF ITALIC CAPITAL K  
1D613 0004C U1D613 MATHEMATICAL SANS-SERIF ITALIC CAPITAL L  
1D614 0004D U1D614 MATHEMATICAL SANS-SERIF ITALIC CAPITAL M  
1D615 0004E U1D615 MATHEMATICAL SANS-SERIF ITALIC CAPITAL N  
1D616 0004F U1D616 MATHEMATICAL SANS-SERIF ITALIC CAPITAL O  
1D617 00050 U1D617 MATHEMATICAL SANS-SERIF ITALIC CAPITAL P  
1D618 00051 U1D618 MATHEMATICAL SANS-SERIF ITALIC CAPITAL Q  
1D619 00052 U1D619 MATHEMATICAL SANS-SERIF ITALIC CAPITAL R  
1D61A 00053 U1D61A MATHEMATICAL SANS-SERIF ITALIC CAPITAL S  
1D61B 00054 U1D61B MATHEMATICAL SANS-SERIF ITALIC CAPITAL T  
1D61C 00055 U1D61C MATHEMATICAL SANS-SERIF ITALIC CAPITAL U  
1D61D 00056 U1D61D MATHEMATICAL SANS-SERIF ITALIC CAPITAL V  
1D61E 00057 U1D61E MATHEMATICAL SANS-SERIF ITALIC CAPITAL W  
1D61F 00058 U1D61F MATHEMATICAL SANS-SERIF ITALIC CAPITAL X  
1D620 00059 U1D620 MATHEMATICAL SANS-SERIF ITALIC CAPITAL Y  
1D621 0005A U1D621 MATHEMATICAL SANS-SERIF ITALIC CAPITAL Z  
1D622 00061 U1D622 MATHEMATICAL SANS-SERIF ITALIC SMALL A  
1D623 00062 U1D623 MATHEMATICAL SANS-SERIF ITALIC SMALL B  
1D624 00063 U1D624 MATHEMATICAL SANS-SERIF ITALIC SMALL C  
1D625 00064 U1D625 MATHEMATICAL SANS-SERIF ITALIC SMALL D  
1D626 00065 U1D626 MATHEMATICAL SANS-SERIF ITALIC SMALL E  
1D627 00066 U1D627 MATHEMATICAL SANS-SERIF ITALIC SMALL F  
1D628 00067 U1D628 MATHEMATICAL SANS-SERIF ITALIC SMALL G  
1D629 00068 U1D629 MATHEMATICAL SANS-SERIF ITALIC SMALL H  
1D62A 00069 U1D62A MATHEMATICAL SANS-SERIF ITALIC SMALL I  
1D62B 0006A U1D62B MATHEMATICAL SANS-SERIF ITALIC SMALL J  
1D62C 0006B U1D62C MATHEMATICAL SANS-SERIF ITALIC SMALL K  
1D62D 0006C U1D62D MATHEMATICAL SANS-SERIF ITALIC SMALL L  
1D62E 0006D U1D62E MATHEMATICAL SANS-SERIF ITALIC SMALL M  
1D62F 0006E U1D62F MATHEMATICAL SANS-SERIF ITALIC SMALL N  
1D630 0006F U1D630 MATHEMATICAL SANS-SERIF ITALIC SMALL O  
1D631 00070 U1D631 MATHEMATICAL SANS-SERIF ITALIC SMALL P  
1D632 00071 U1D632 MATHEMATICAL SANS-SERIF ITALIC SMALL Q  
1D633 00072 U1D633 MATHEMATICAL SANS-SERIF ITALIC SMALL R  
1D634 00073 U1D634 MATHEMATICAL SANS-SERIF ITALIC SMALL S  
1D635 00074 U1D635 MATHEMATICAL SANS-SERIF ITALIC SMALL T  
1D636 00075 U1D636 MATHEMATICAL SANS-SERIF ITALIC SMALL U  
1D637 00076 U1D637 MATHEMATICAL SANS-SERIF ITALIC SMALL V  
1D638 00077 U1D638 MATHEMATICAL SANS-SERIF ITALIC SMALL W  
1D639 00078 U1D639 MATHEMATICAL SANS-SERIF ITALIC SMALL X  
1D63A 00079 U1D63A MATHEMATICAL SANS-SERIF ITALIC SMALL Y  
1D63B 0007A U1D63B MATHEMATICAL SANS-SERIF ITALIC SMALL Z  

gtkmathview-0.8.0/src/common/mathvariants/xml/fraktur.xml0000644000175000017500000004315710613606765020576 00000000000000 Fraktur

Fraktur


Unicode BMP Glyph Unicode Name MathML Names
1D504 00041 U1D504 MATHEMATICAL FRAKTUR CAPITAL A Afr
1D505 00042 U1D505 MATHEMATICAL FRAKTUR CAPITAL B Bfr
0212D 00043 U0212D BLACK-LETTER CAPITAL C Cfr, Cayleys
1D507 00044 U1D507 MATHEMATICAL FRAKTUR CAPITAL D Dfr
1D508 00045 U1D508 MATHEMATICAL FRAKTUR CAPITAL E Efr
1D509 00046 U1D509 MATHEMATICAL FRAKTUR CAPITAL F Ffr
1D50A 00047 U1D50A MATHEMATICAL FRAKTUR CAPITAL G Gfr
0210C 00048 U0210C BLACK-LETTER CAPITAL H Hfr, Poincareplane
02111 00049 U02111 BLACK-LETTER CAPITAL I image, Im, imagpart, Ifr
1D50D 0004A U1D50D MATHEMATICAL FRAKTUR CAPITAL J Jfr
1D50E 0004B U1D50E MATHEMATICAL FRAKTUR CAPITAL K Kfr
1D50F 0004C U1D50F MATHEMATICAL FRAKTUR CAPITAL L Lfr
1D510 0004D U1D510 MATHEMATICAL FRAKTUR CAPITAL M Mfr
1D511 0004E U1D511 MATHEMATICAL FRAKTUR CAPITAL N Nfr
1D512 0004F U1D512 MATHEMATICAL FRAKTUR CAPITAL O Ofr
1D513 00050 U1D513 MATHEMATICAL FRAKTUR CAPITAL P Pfr
1D514 00051 U1D514 MATHEMATICAL FRAKTUR CAPITAL Q Qfr
0211C 00052 U0211C BLACK-LETTER CAPITAL R real, Re, realpart, Rfr
1D516 00053 U1D516 MATHEMATICAL FRAKTUR CAPITAL S Sfr
1D517 00054 U1D517 MATHEMATICAL FRAKTUR CAPITAL T Tfr
1D518 00055 U1D518 MATHEMATICAL FRAKTUR CAPITAL U Ufr
1D519 00056 U1D519 MATHEMATICAL FRAKTUR CAPITAL V Vfr
1D51A 00057 U1D51A MATHEMATICAL FRAKTUR CAPITAL W Wfr
1D51B 00058 U1D51B MATHEMATICAL FRAKTUR CAPITAL X Xfr
1D51C 00059 U1D51C MATHEMATICAL FRAKTUR CAPITAL Y Yfr
02128 0005A U02128 BLACK-LETTER CAPITAL Z Zfr, zeetrf
1D51E 00061 U1D51E MATHEMATICAL FRAKTUR SMALL A afr
1D51F 00062 U1D51F MATHEMATICAL FRAKTUR SMALL B bfr
1D520 00063 U1D520 MATHEMATICAL FRAKTUR SMALL C cfr
1D521 00064 U1D521 MATHEMATICAL FRAKTUR SMALL D dfr
1D522 00065 U1D522 MATHEMATICAL FRAKTUR SMALL E efr
1D523 00066 U1D523 MATHEMATICAL FRAKTUR SMALL F ffr
1D524 00067 U1D524 MATHEMATICAL FRAKTUR SMALL G gfr
1D525 00068 U1D525 MATHEMATICAL FRAKTUR SMALL H hfr
1D526 00069 U1D526 MATHEMATICAL FRAKTUR SMALL I ifr
1D527 0006A U1D527 MATHEMATICAL FRAKTUR SMALL J jfr
1D528 0006B U1D528 MATHEMATICAL FRAKTUR SMALL K kfr
1D529 0006C U1D529 MATHEMATICAL FRAKTUR SMALL L lfr
1D52A 0006D U1D52A MATHEMATICAL FRAKTUR SMALL M mfr
1D52B 0006E U1D52B MATHEMATICAL FRAKTUR SMALL N nfr
1D52C 0006F U1D52C MATHEMATICAL FRAKTUR SMALL O ofr
1D52D 00070 U1D52D MATHEMATICAL FRAKTUR SMALL P pfr
1D52E 00071 U1D52E MATHEMATICAL FRAKTUR SMALL Q qfr
1D52F 00072 U1D52F MATHEMATICAL FRAKTUR SMALL R rfr
1D530 00073 U1D530 MATHEMATICAL FRAKTUR SMALL S sfr
1D531 00074 U1D531 MATHEMATICAL FRAKTUR SMALL T tfr
1D532 00075 U1D532 MATHEMATICAL FRAKTUR SMALL U ufr
1D533 00076 U1D533 MATHEMATICAL FRAKTUR SMALL V vfr
1D534 00077 U1D534 MATHEMATICAL FRAKTUR SMALL W wfr
1D535 00078 U1D535 MATHEMATICAL FRAKTUR SMALL X xfr
1D536 00079 U1D536 MATHEMATICAL FRAKTUR SMALL Y yfr
1D537 0007A U1D537 MATHEMATICAL FRAKTUR SMALL Z zfr

gtkmathview-0.8.0/src/common/mathvariants/xml/double-struck.xml0000644000175000017500000005216010613606765021675 00000000000000 Double Struck (Open Face, Blackboard Bold)

Double Struck (Open Face, Blackboard Bold)


Unicode BMP Glyph Unicode Name MathML Names
1D538 00041 U1D538 MATHEMATICAL DOUBLE-STRUCK CAPITAL A Aopf
1D539 00042 U1D539 MATHEMATICAL DOUBLE-STRUCK CAPITAL B Bopf
02102 00043 U02102 DOUBLE-STRUCK CAPITAL C Copf, complexes
1D53B 00044 U1D53B MATHEMATICAL DOUBLE-STRUCK CAPITAL D Dopf
1D53C 00045 U1D53C MATHEMATICAL DOUBLE-STRUCK CAPITAL E Eopf
1D53D 00046 U1D53D MATHEMATICAL DOUBLE-STRUCK CAPITAL F Fopf
1D53E 00047 U1D53E MATHEMATICAL DOUBLE-STRUCK CAPITAL G Gopf
0210D 00048 U0210D DOUBLE-STRUCK CAPITAL H quaternions, Hopf
1D540 00049 U1D540 MATHEMATICAL DOUBLE-STRUCK CAPITAL I Iopf
1D541 0004A U1D541 MATHEMATICAL DOUBLE-STRUCK CAPITAL J Jopf
1D542 0004B U1D542 MATHEMATICAL DOUBLE-STRUCK CAPITAL K Kopf
1D543 0004C U1D543 MATHEMATICAL DOUBLE-STRUCK CAPITAL L Lopf, imped
1D544 0004D U1D544 MATHEMATICAL DOUBLE-STRUCK CAPITAL M Mopf
02115 0004E U02115 DOUBLE-STRUCK CAPITAL N Nopf, naturals
1D546 0004F U1D546 MATHEMATICAL DOUBLE-STRUCK CAPITAL O Oopf
02119 00050 U02119 DOUBLE-STRUCK CAPITAL P Popf, primes
0211A 00051 U0211A DOUBLE-STRUCK CAPITAL Q rationals, Qopf
0211D 00052 U0211D DOUBLE-STRUCK CAPITAL R reals, Ropf
1D54A 00053 U1D54A MATHEMATICAL DOUBLE-STRUCK CAPITAL S Sopf
1D54B 00054 U1D54B MATHEMATICAL DOUBLE-STRUCK CAPITAL T Topf
1D54C 00055 U1D54C MATHEMATICAL DOUBLE-STRUCK CAPITAL U Uopf
1D54D 00056 U1D54D MATHEMATICAL DOUBLE-STRUCK CAPITAL V Vopf
1D54E 00057 U1D54E MATHEMATICAL DOUBLE-STRUCK CAPITAL W Wopf
1D54F 00058 U1D54F MATHEMATICAL DOUBLE-STRUCK CAPITAL X Xopf
1D550 00059 U1D550 MATHEMATICAL DOUBLE-STRUCK CAPITAL Y Yopf
02124 0005A U02124 DOUBLE-STRUCK CAPITAL Z integers, Zopf
1D552 00061 U1D552 MATHEMATICAL DOUBLE-STRUCK SMALL A aopf
1D553 00062 U1D553 MATHEMATICAL DOUBLE-STRUCK SMALL B bopf
1D554 00063 U1D554 MATHEMATICAL DOUBLE-STRUCK SMALL C copf
1D555 00064 U1D555 MATHEMATICAL DOUBLE-STRUCK SMALL D dopf
1D556 00065 U1D556 MATHEMATICAL DOUBLE-STRUCK SMALL E eopf
1D557 00066 U1D557 MATHEMATICAL DOUBLE-STRUCK SMALL F fopf
1D558 00067 U1D558 MATHEMATICAL DOUBLE-STRUCK SMALL G gopf
1D559 00068 U1D559 MATHEMATICAL DOUBLE-STRUCK SMALL H hopf
1D55A 00069 U1D55A MATHEMATICAL DOUBLE-STRUCK SMALL I iopf
1D55B 0006A U1D55B MATHEMATICAL DOUBLE-STRUCK SMALL J jopf
1D55C 0006B U1D55C MATHEMATICAL DOUBLE-STRUCK SMALL K kopf
1D55D 0006C U1D55D MATHEMATICAL DOUBLE-STRUCK SMALL L lopf
1D55E 0006D U1D55E MATHEMATICAL DOUBLE-STRUCK SMALL M mopf
1D55F 0006E U1D55F MATHEMATICAL DOUBLE-STRUCK SMALL N nopf
1D560 0006F U1D560 MATHEMATICAL DOUBLE-STRUCK SMALL O oopf
1D561 00070 U1D561 MATHEMATICAL DOUBLE-STRUCK SMALL P popf
1D562 00071 U1D562 MATHEMATICAL DOUBLE-STRUCK SMALL Q qopf
1D563 00072 U1D563 MATHEMATICAL DOUBLE-STRUCK SMALL R ropf
1D564 00073 U1D564 MATHEMATICAL DOUBLE-STRUCK SMALL S sopf
1D565 00074 U1D565 MATHEMATICAL DOUBLE-STRUCK SMALL T topf
1D566 00075 U1D566 MATHEMATICAL DOUBLE-STRUCK SMALL U uopf
1D567 00076 U1D567 MATHEMATICAL DOUBLE-STRUCK SMALL V vopf
1D568 00077 U1D568 MATHEMATICAL DOUBLE-STRUCK SMALL W wopf
1D569 00078 U1D569 MATHEMATICAL DOUBLE-STRUCK SMALL X xopf
1D56A 00079 U1D56A MATHEMATICAL DOUBLE-STRUCK SMALL Y yopf
1D56B 0007A U1D56B MATHEMATICAL DOUBLE-STRUCK SMALL Z zopf
1D7D8 00030 U1D7D8 MATHEMATICAL DOUBLE-STRUCK DIGIT ZERO  
1D7D9 00031 U1D7D9 MATHEMATICAL DOUBLE-STRUCK DIGIT ONE  
1D7DA 00032 U1D7DA MATHEMATICAL DOUBLE-STRUCK DIGIT TWO  
1D7DB 00033 U1D7DB MATHEMATICAL DOUBLE-STRUCK DIGIT THREE  
1D7DC 00034 U1D7DC MATHEMATICAL DOUBLE-STRUCK DIGIT FOUR  
1D7DD 00035 U1D7DD MATHEMATICAL DOUBLE-STRUCK DIGIT FIVE  
1D7DE 00036 U1D7DE MATHEMATICAL DOUBLE-STRUCK DIGIT SIX  
1D7DF 00037 U1D7DF MATHEMATICAL DOUBLE-STRUCK DIGIT SEVEN  
1D7E0 00038 U1D7E0 MATHEMATICAL DOUBLE-STRUCK DIGIT EIGHT  
1D7E1 00039 U1D7E1 MATHEMATICAL DOUBLE-STRUCK DIGIT NINE  

gtkmathview-0.8.0/src/common/mathvariants/xml/bold-script.xml0000644000175000017500000004326210613606765021337 00000000000000 Bold Script

Bold Script


Unicode BMP Glyph Unicode Name MathML Names
1D4D0 00041 U1D4D0 MATHEMATICAL BOLD SCRIPT CAPITAL A  
1D4D1 00042 U1D4D1 MATHEMATICAL BOLD SCRIPT CAPITAL B  
1D4D2 00043 U1D4D2 MATHEMATICAL BOLD SCRIPT CAPITAL C  
1D4D3 00044 U1D4D3 MATHEMATICAL BOLD SCRIPT CAPITAL D  
1D4D4 00045 U1D4D4 MATHEMATICAL BOLD SCRIPT CAPITAL E  
1D4D5 00046 U1D4D5 MATHEMATICAL BOLD SCRIPT CAPITAL F  
1D4D6 00047 U1D4D6 MATHEMATICAL BOLD SCRIPT CAPITAL G  
1D4D7 00048 U1D4D7 MATHEMATICAL BOLD SCRIPT CAPITAL H  
1D4D8 00049 U1D4D8 MATHEMATICAL BOLD SCRIPT CAPITAL I  
1D4D9 0004A U1D4D9 MATHEMATICAL BOLD SCRIPT CAPITAL J  
1D4DA 0004B U1D4DA MATHEMATICAL BOLD SCRIPT CAPITAL K  
1D4DB 0004C U1D4DB MATHEMATICAL BOLD SCRIPT CAPITAL L  
1D4DC 0004D U1D4DC MATHEMATICAL BOLD SCRIPT CAPITAL M  
1D4DD 0004E U1D4DD MATHEMATICAL BOLD SCRIPT CAPITAL N  
1D4DE 0004F U1D4DE MATHEMATICAL BOLD SCRIPT CAPITAL O  
1D4DF 00050 U1D4DF MATHEMATICAL BOLD SCRIPT CAPITAL P  
1D4E0 00051 U1D4E0 MATHEMATICAL BOLD SCRIPT CAPITAL Q  
1D4E1 00052 U1D4E1 MATHEMATICAL BOLD SCRIPT CAPITAL R  
1D4E2 00053 U1D4E2 MATHEMATICAL BOLD SCRIPT CAPITAL S  
1D4E3 00054 U1D4E3 MATHEMATICAL BOLD SCRIPT CAPITAL T  
1D4E4 00055 U1D4E4 MATHEMATICAL BOLD SCRIPT CAPITAL U  
1D4E5 00056 U1D4E5 MATHEMATICAL BOLD SCRIPT CAPITAL V  
1D4E6 00057 U1D4E6 MATHEMATICAL BOLD SCRIPT CAPITAL W  
1D4E7 00058 U1D4E7 MATHEMATICAL BOLD SCRIPT CAPITAL X  
1D4E8 00059 U1D4E8 MATHEMATICAL BOLD SCRIPT CAPITAL Y  
1D4E9 0005A U1D4E9 MATHEMATICAL BOLD SCRIPT CAPITAL Z  
1D4EA 00061 U1D4EA MATHEMATICAL BOLD SCRIPT SMALL A  
1D4EB 00062 U1D4EB MATHEMATICAL BOLD SCRIPT SMALL B  
1D4EC 00063 U1D4EC MATHEMATICAL BOLD SCRIPT SMALL C  
1D4ED 00064 U1D4ED MATHEMATICAL BOLD SCRIPT SMALL D  
1D4EE 00065 U1D4EE MATHEMATICAL BOLD SCRIPT SMALL E  
1D4EF 00066 U1D4EF MATHEMATICAL BOLD SCRIPT SMALL F  
1D4F0 00067 U1D4F0 MATHEMATICAL BOLD SCRIPT SMALL G  
1D4F1 00068 U1D4F1 MATHEMATICAL BOLD SCRIPT SMALL H  
1D4F2 00069 U1D4F2 MATHEMATICAL BOLD SCRIPT SMALL I  
1D4F3 0006A U1D4F3 MATHEMATICAL BOLD SCRIPT SMALL J  
1D4F4 0006B U1D4F4 MATHEMATICAL BOLD SCRIPT SMALL K  
1D4F5 0006C U1D4F5 MATHEMATICAL BOLD SCRIPT SMALL L  
1D4F6 0006D U1D4F6 MATHEMATICAL BOLD SCRIPT SMALL M  
1D4F7 0006E U1D4F7 MATHEMATICAL BOLD SCRIPT SMALL N  
1D4F8 0006F U1D4F8 MATHEMATICAL BOLD SCRIPT SMALL O  
1D4F9 00070 U1D4F9 MATHEMATICAL BOLD SCRIPT SMALL P  
1D4FA 00071 U1D4FA MATHEMATICAL BOLD SCRIPT SMALL Q  
1D4FB 00072 U1D4FB MATHEMATICAL BOLD SCRIPT SMALL R  
1D4FC 00073 U1D4FC MATHEMATICAL BOLD SCRIPT SMALL S  
1D4FD 00074 U1D4FD MATHEMATICAL BOLD SCRIPT SMALL T  
1D4FE 00075 U1D4FE MATHEMATICAL BOLD SCRIPT SMALL U  
1D4FF 00076 U1D4FF MATHEMATICAL BOLD SCRIPT SMALL V  
1D500 00077 U1D500 MATHEMATICAL BOLD SCRIPT SMALL W  
1D501 00078 U1D501 MATHEMATICAL BOLD SCRIPT SMALL X  
1D502 00079 U1D502 MATHEMATICAL BOLD SCRIPT SMALL Y  
1D503 0007A U1D503 MATHEMATICAL BOLD SCRIPT SMALL Z  

gtkmathview-0.8.0/src/common/mathvariants/xml/bold-sans-serif.xml0000644000175000017500000011574310613606765022111 00000000000000 Bold Sans Serif

Bold Sans Serif


Unicode BMP Glyph Unicode Name MathML Names
1D5D4 00041 U1D5D4 MATHEMATICAL SANS-SERIF BOLD CAPITAL A  
1D5D5 00042 U1D5D5 MATHEMATICAL SANS-SERIF BOLD CAPITAL B  
1D5D6 00043 U1D5D6 MATHEMATICAL SANS-SERIF BOLD CAPITAL C  
1D5D7 00044 U1D5D7 MATHEMATICAL SANS-SERIF BOLD CAPITAL D  
1D5D8 00045 U1D5D8 MATHEMATICAL SANS-SERIF BOLD CAPITAL E  
1D5D9 00046 U1D5D9 MATHEMATICAL SANS-SERIF BOLD CAPITAL F  
1D5DA 00047 U1D5DA MATHEMATICAL SANS-SERIF BOLD CAPITAL G  
1D5DB 00048 U1D5DB MATHEMATICAL SANS-SERIF BOLD CAPITAL H  
1D5DC 00049 U1D5DC MATHEMATICAL SANS-SERIF BOLD CAPITAL I  
1D5DD 0004A U1D5DD MATHEMATICAL SANS-SERIF BOLD CAPITAL J  
1D5DE 0004B U1D5DE MATHEMATICAL SANS-SERIF BOLD CAPITAL K  
1D5DF 0004C U1D5DF MATHEMATICAL SANS-SERIF BOLD CAPITAL L  
1D5E0 0004D U1D5E0 MATHEMATICAL SANS-SERIF BOLD CAPITAL M  
1D5E1 0004E U1D5E1 MATHEMATICAL SANS-SERIF BOLD CAPITAL N  
1D5E2 0004F U1D5E2 MATHEMATICAL SANS-SERIF BOLD CAPITAL O  
1D5E3 00050 U1D5E3 MATHEMATICAL SANS-SERIF BOLD CAPITAL P  
1D5E4 00051 U1D5E4 MATHEMATICAL SANS-SERIF BOLD CAPITAL Q  
1D5E5 00052 U1D5E5 MATHEMATICAL SANS-SERIF BOLD CAPITAL R  
1D5E6 00053 U1D5E6 MATHEMATICAL SANS-SERIF BOLD CAPITAL S  
1D5E7 00054 U1D5E7 MATHEMATICAL SANS-SERIF BOLD CAPITAL T  
1D5E8 00055 U1D5E8 MATHEMATICAL SANS-SERIF BOLD CAPITAL U  
1D5E9 00056 U1D5E9 MATHEMATICAL SANS-SERIF BOLD CAPITAL V  
1D5EA 00057 U1D5EA MATHEMATICAL SANS-SERIF BOLD CAPITAL W  
1D5EB 00058 U1D5EB MATHEMATICAL SANS-SERIF BOLD CAPITAL X  
1D5EC 00059 U1D5EC MATHEMATICAL SANS-SERIF BOLD CAPITAL Y  
1D5ED 0005A U1D5ED MATHEMATICAL SANS-SERIF BOLD CAPITAL Z  
1D5EE 00061 U1D5EE MATHEMATICAL SANS-SERIF BOLD SMALL A  
1D5EF 00062 U1D5EF MATHEMATICAL SANS-SERIF BOLD SMALL B  
1D5F0 00063 U1D5F0 MATHEMATICAL SANS-SERIF BOLD SMALL C  
1D5F1 00064 U1D5F1 MATHEMATICAL SANS-SERIF BOLD SMALL D  
1D5F2 00065 U1D5F2 MATHEMATICAL SANS-SERIF BOLD SMALL E  
1D5F3 00066 U1D5F3 MATHEMATICAL SANS-SERIF BOLD SMALL F  
1D5F4 00067 U1D5F4 MATHEMATICAL SANS-SERIF BOLD SMALL G  
1D5F5 00068 U1D5F5 MATHEMATICAL SANS-SERIF BOLD SMALL H  
1D5F6 00069 U1D5F6 MATHEMATICAL SANS-SERIF BOLD SMALL I  
1D5F7 0006A U1D5F7 MATHEMATICAL SANS-SERIF BOLD SMALL J  
1D5F8 0006B U1D5F8 MATHEMATICAL SANS-SERIF BOLD SMALL K  
1D5F9 0006C U1D5F9 MATHEMATICAL SANS-SERIF BOLD SMALL L  
1D5FA 0006D U1D5FA MATHEMATICAL SANS-SERIF BOLD SMALL M  
1D5FB 0006E U1D5FB MATHEMATICAL SANS-SERIF BOLD SMALL N  
1D5FC 0006F U1D5FC MATHEMATICAL SANS-SERIF BOLD SMALL O  
1D5FD 00070 U1D5FD MATHEMATICAL SANS-SERIF BOLD SMALL P  
1D5FE 00071 U1D5FE MATHEMATICAL SANS-SERIF BOLD SMALL Q  
1D5FF 00072 U1D5FF MATHEMATICAL SANS-SERIF BOLD SMALL R  
1D600 00073 U1D600 MATHEMATICAL SANS-SERIF BOLD SMALL S  
1D601 00074 U1D601 MATHEMATICAL SANS-SERIF BOLD SMALL T  
1D602 00075 U1D602 MATHEMATICAL SANS-SERIF BOLD SMALL U  
1D603 00076 U1D603 MATHEMATICAL SANS-SERIF BOLD SMALL V  
1D604 00077 U1D604 MATHEMATICAL SANS-SERIF BOLD SMALL W  
1D605 00078 U1D605 MATHEMATICAL SANS-SERIF BOLD SMALL X  
1D606 00079 U1D606 MATHEMATICAL SANS-SERIF BOLD SMALL Y  
1D607 0007A U1D607 MATHEMATICAL SANS-SERIF BOLD SMALL Z  
1D756 00391 U1D756 MATHEMATICAL SANS-SERIF BOLD CAPITAL ALPHA  
1D757 00392 U1D757 MATHEMATICAL SANS-SERIF BOLD CAPITAL BETA  
1D758 00393 U1D758 MATHEMATICAL SANS-SERIF BOLD CAPITAL GAMMA  
1D759 00394 U1D759 MATHEMATICAL SANS-SERIF BOLD CAPITAL DELTA  
1D75A 00395 U1D75A MATHEMATICAL SANS-SERIF BOLD CAPITAL EPSILON  
1D75B 00396 U1D75B MATHEMATICAL SANS-SERIF BOLD CAPITAL ZETA  
1D75C 00397 U1D75C MATHEMATICAL SANS-SERIF BOLD CAPITAL ETA  
1D75D 00398 U1D75D MATHEMATICAL SANS-SERIF BOLD CAPITAL THETA  
1D75E 00399 U1D75E MATHEMATICAL SANS-SERIF BOLD CAPITAL IOTA  
1D75F 0039A U1D75F MATHEMATICAL SANS-SERIF BOLD CAPITAL KAPPA  
1D760 0039B U1D760 MATHEMATICAL SANS-SERIF BOLD CAPITAL LAMDA  
1D761 0039C U1D761 MATHEMATICAL SANS-SERIF BOLD CAPITAL MU  
1D762 0039D U1D762 MATHEMATICAL SANS-SERIF BOLD CAPITAL NU  
1D763 0039E U1D763 MATHEMATICAL SANS-SERIF BOLD CAPITAL XI  
1D764 0039F U1D764 MATHEMATICAL SANS-SERIF BOLD CAPITAL OMICRON  
1D765 003A0 U1D765 MATHEMATICAL SANS-SERIF BOLD CAPITAL PI  
1D766 003A1 U1D766 MATHEMATICAL SANS-SERIF BOLD CAPITAL RHO  
1D767 003F4 U1D767 MATHEMATICAL SANS-SERIF BOLD CAPITAL THETA SYMBOL  
1D768 003A3 U1D768 MATHEMATICAL SANS-SERIF BOLD CAPITAL SIGMA  
1D769 003A4 U1D769 MATHEMATICAL SANS-SERIF BOLD CAPITAL TAU  
1D76A 003A5 U1D76A MATHEMATICAL SANS-SERIF BOLD CAPITAL UPSILON  
1D76B 003A6 U1D76B MATHEMATICAL SANS-SERIF BOLD CAPITAL PHI  
1D76C 003A7 U1D76C MATHEMATICAL SANS-SERIF BOLD CAPITAL CHI  
1D76D 003A8 U1D76D MATHEMATICAL SANS-SERIF BOLD CAPITAL PSI  
1D76E 003A9 U1D76E MATHEMATICAL SANS-SERIF BOLD CAPITAL OMEGA  
1D76F 02207 U1D76F MATHEMATICAL SANS-SERIF BOLD NABLA  
1D770 003B1 U1D770 MATHEMATICAL SANS-SERIF BOLD SMALL ALPHA  
1D771 003B2 U1D771 MATHEMATICAL SANS-SERIF BOLD SMALL BETA  
1D772 003B3 U1D772 MATHEMATICAL SANS-SERIF BOLD SMALL GAMMA  
1D773 003B4 U1D773 MATHEMATICAL SANS-SERIF BOLD SMALL DELTA  
1D774 003B5 U1D774 MATHEMATICAL SANS-SERIF BOLD SMALL EPSILON  
1D775 003B6 U1D775 MATHEMATICAL SANS-SERIF BOLD SMALL ZETA  
1D776 003B7 U1D776 MATHEMATICAL SANS-SERIF BOLD SMALL ETA  
1D777 003B8 U1D777 MATHEMATICAL SANS-SERIF BOLD SMALL THETA  
1D778 003B9 U1D778 MATHEMATICAL SANS-SERIF BOLD SMALL IOTA  
1D779 003BA U1D779 MATHEMATICAL SANS-SERIF BOLD SMALL KAPPA  
1D77A 003BB U1D77A MATHEMATICAL SANS-SERIF BOLD SMALL LAMDA  
1D77B 003BC U1D77B MATHEMATICAL SANS-SERIF BOLD SMALL MU  
1D77C 003BD U1D77C MATHEMATICAL SANS-SERIF BOLD SMALL NU  
1D77D 003BE U1D77D MATHEMATICAL SANS-SERIF BOLD SMALL XI  
1D77E 003BF U1D77E MATHEMATICAL SANS-SERIF BOLD SMALL OMICRON  
1D77F 003C0 U1D77F MATHEMATICAL SANS-SERIF BOLD SMALL PI  
1D780 003C1 U1D780 MATHEMATICAL SANS-SERIF BOLD SMALL RHO  
1D781 003C2 U1D781 MATHEMATICAL SANS-SERIF BOLD SMALL FINAL SIGMA  
1D782 003C3 U1D782 MATHEMATICAL SANS-SERIF BOLD SMALL SIGMA  
1D783 003C4 U1D783 MATHEMATICAL SANS-SERIF BOLD SMALL TAU  
1D784 003C5 U1D784 MATHEMATICAL SANS-SERIF BOLD SMALL UPSILON  
1D785 003C6 U1D785 MATHEMATICAL SANS-SERIF BOLD SMALL PHI  
1D786 003C7 U1D786 MATHEMATICAL SANS-SERIF BOLD SMALL CHI  
1D787 003C8 U1D787 MATHEMATICAL SANS-SERIF BOLD SMALL PSI  
1D788 003C9 U1D788 MATHEMATICAL SANS-SERIF BOLD SMALL OMEGA  
1D789 02202 U1D789 MATHEMATICAL SANS-SERIF BOLD PARTIAL DIFFERENTIAL  
1D78A 0220A U1D78A MATHEMATICAL SANS-SERIF BOLD EPSILON SYMBOL  
1D78B 003D1 U1D78B MATHEMATICAL SANS-SERIF BOLD THETA SYMBOL  
1D78C 003F0 U1D78C MATHEMATICAL SANS-SERIF BOLD KAPPA SYMBOL  
1D78D 003D5 U1D78D MATHEMATICAL SANS-SERIF BOLD PHI SYMBOL  
1D78E 003F1 U1D78E MATHEMATICAL SANS-SERIF BOLD RHO SYMBOL  
1D78F 003D6 U1D78F MATHEMATICAL SANS-SERIF BOLD PI SYMBOL  
1D7EC 00030 U1D7EC MATHEMATICAL SANS-SERIF BOLD DIGIT ZERO  
1D7ED 00031 U1D7ED MATHEMATICAL SANS-SERIF BOLD DIGIT ONE  
1D7EE 00032 U1D7EE MATHEMATICAL SANS-SERIF BOLD DIGIT TWO  
1D7EF 00033 U1D7EF MATHEMATICAL SANS-SERIF BOLD DIGIT THREE  
1D7F0 00034 U1D7F0 MATHEMATICAL SANS-SERIF BOLD DIGIT FOUR  
1D7F1 00035 U1D7F1 MATHEMATICAL SANS-SERIF BOLD DIGIT FIVE  
1D7F2 00036 U1D7F2 MATHEMATICAL SANS-SERIF BOLD DIGIT SIX  
1D7F3 00037 U1D7F3 MATHEMATICAL SANS-SERIF BOLD DIGIT SEVEN  
1D7F4 00038 U1D7F4 MATHEMATICAL SANS-SERIF BOLD DIGIT EIGHT  
1D7F5 00039 U1D7F5 MATHEMATICAL SANS-SERIF BOLD DIGIT NINE  

gtkmathview-0.8.0/src/common/mathvariants/xml/bold-fraktur.xml0000644000175000017500000004332410613606765021510 00000000000000 Bold Fraktur

Bold Fraktur


Unicode BMP Glyph Unicode Name MathML Names
1D56C 00041 U1D56C MATHEMATICAL BOLD FRAKTUR CAPITAL A  
1D56D 00042 U1D56D MATHEMATICAL BOLD FRAKTUR CAPITAL B  
1D56E 00043 U1D56E MATHEMATICAL BOLD FRAKTUR CAPITAL C  
1D56F 00044 U1D56F MATHEMATICAL BOLD FRAKTUR CAPITAL D  
1D570 00045 U1D570 MATHEMATICAL BOLD FRAKTUR CAPITAL E  
1D571 00046 U1D571 MATHEMATICAL BOLD FRAKTUR CAPITAL F  
1D572 00047 U1D572 MATHEMATICAL BOLD FRAKTUR CAPITAL G  
1D573 00048 U1D573 MATHEMATICAL BOLD FRAKTUR CAPITAL H  
1D574 00049 U1D574 MATHEMATICAL BOLD FRAKTUR CAPITAL I  
1D575 0004A U1D575 MATHEMATICAL BOLD FRAKTUR CAPITAL J  
1D576 0004B U1D576 MATHEMATICAL BOLD FRAKTUR CAPITAL K  
1D577 0004C U1D577 MATHEMATICAL BOLD FRAKTUR CAPITAL L  
1D578 0004D U1D578 MATHEMATICAL BOLD FRAKTUR CAPITAL M  
1D579 0004E U1D579 MATHEMATICAL BOLD FRAKTUR CAPITAL N  
1D57A 0004F U1D57A MATHEMATICAL BOLD FRAKTUR CAPITAL O  
1D57B 00050 U1D57B MATHEMATICAL BOLD FRAKTUR CAPITAL P  
1D57C 00051 U1D57C MATHEMATICAL BOLD FRAKTUR CAPITAL Q  
1D57D 00052 U1D57D MATHEMATICAL BOLD FRAKTUR CAPITAL R  
1D57E 00053 U1D57E MATHEMATICAL BOLD FRAKTUR CAPITAL S  
1D57F 00054 U1D57F MATHEMATICAL BOLD FRAKTUR CAPITAL T  
1D580 00055 U1D580 MATHEMATICAL BOLD FRAKTUR CAPITAL U  
1D581 00056 U1D581 MATHEMATICAL BOLD FRAKTUR CAPITAL V  
1D582 00057 U1D582 MATHEMATICAL BOLD FRAKTUR CAPITAL W  
1D583 00058 U1D583 MATHEMATICAL BOLD FRAKTUR CAPITAL X  
1D584 00059 U1D584 MATHEMATICAL BOLD FRAKTUR CAPITAL Y  
1D585 0005A U1D585 MATHEMATICAL BOLD FRAKTUR CAPITAL Z  
1D586 00061 U1D586 MATHEMATICAL BOLD FRAKTUR SMALL A  
1D587 00062 U1D587 MATHEMATICAL BOLD FRAKTUR SMALL B  
1D588 00063 U1D588 MATHEMATICAL BOLD FRAKTUR SMALL C  
1D589 00064 U1D589 MATHEMATICAL BOLD FRAKTUR SMALL D  
1D58A 00065 U1D58A MATHEMATICAL BOLD FRAKTUR SMALL E  
1D58B 00066 U1D58B MATHEMATICAL BOLD FRAKTUR SMALL F  
1D58C 00067 U1D58C MATHEMATICAL BOLD FRAKTUR SMALL G  
1D58D 00068 U1D58D MATHEMATICAL BOLD FRAKTUR SMALL H  
1D58E 00069 U1D58E MATHEMATICAL BOLD FRAKTUR SMALL I  
1D58F 0006A U1D58F MATHEMATICAL BOLD FRAKTUR SMALL J  
1D590 0006B U1D590 MATHEMATICAL BOLD FRAKTUR SMALL K  
1D591 0006C U1D591 MATHEMATICAL BOLD FRAKTUR SMALL L  
1D592 0006D U1D592 MATHEMATICAL BOLD FRAKTUR SMALL M  
1D593 0006E U1D593 MATHEMATICAL BOLD FRAKTUR SMALL N  
1D594 0006F U1D594 MATHEMATICAL BOLD FRAKTUR SMALL O  
1D595 00070 U1D595 MATHEMATICAL BOLD FRAKTUR SMALL P  
1D596 00071 U1D596 MATHEMATICAL BOLD FRAKTUR SMALL Q  
1D597 00072 U1D597 MATHEMATICAL BOLD FRAKTUR SMALL R  
1D598 00073 U1D598 MATHEMATICAL BOLD FRAKTUR SMALL S  
1D599 00074 U1D599 MATHEMATICAL BOLD FRAKTUR SMALL T  
1D59A 00075 U1D59A MATHEMATICAL BOLD FRAKTUR SMALL U  
1D59B 00076 U1D59B MATHEMATICAL BOLD FRAKTUR SMALL V  
1D59C 00077 U1D59C MATHEMATICAL BOLD FRAKTUR SMALL W  
1D59D 00078 U1D59D MATHEMATICAL BOLD FRAKTUR SMALL X  
1D59E 00079 U1D59E MATHEMATICAL BOLD FRAKTUR SMALL Y  
1D59F 0007A U1D59F MATHEMATICAL BOLD FRAKTUR SMALL Z  

gtkmathview-0.8.0/src/common/mathvariants/xml/script.xml0000644000175000017500000004337010613606765020421 00000000000000 Script (or Calligraphic)

Script (or Calligraphic)


Unicode BMP Glyph Unicode Name MathML Names
1D49C 00041 U1D49C MATHEMATICAL SCRIPT CAPITAL A Ascr
0212C 00042 U0212C SCRIPT CAPITAL B bernou, Bernoullis, Bscr
1D49E 00043 U1D49E MATHEMATICAL SCRIPT CAPITAL C Cscr
1D49F 00044 U1D49F MATHEMATICAL SCRIPT CAPITAL D Dscr
02130 00045 U02130 SCRIPT CAPITAL E Escr, expectation
02131 00046 U02131 SCRIPT CAPITAL F Fscr, Fouriertrf
1D4A2 00047 U1D4A2 MATHEMATICAL SCRIPT CAPITAL G Gscr
0210B 00048 U0210B SCRIPT CAPITAL H hamilt, HilbertSpace, Hscr
02110 00049 U02110 SCRIPT CAPITAL I Iscr, imagline
1D4A5 0004A U1D4A5 MATHEMATICAL SCRIPT CAPITAL J Jscr
1D4A6 0004B U1D4A6 MATHEMATICAL SCRIPT CAPITAL K Kscr
02112 0004C U02112 SCRIPT CAPITAL L Lscr, lagran, Laplacetrf
02133 0004D U02133 SCRIPT CAPITAL M phmmat, Mellintrf, Mscr
1D4A9 0004E U1D4A9 MATHEMATICAL SCRIPT CAPITAL N Nscr
1D4AA 0004F U1D4AA MATHEMATICAL SCRIPT CAPITAL O Oscr
1D4AB 00050 U1D4AB MATHEMATICAL SCRIPT CAPITAL P Pscr
1D4AC 00051 U1D4AC MATHEMATICAL SCRIPT CAPITAL Q Qscr
0211B 00052 U0211B SCRIPT CAPITAL R Rscr, realine
1D4AE 00053 U1D4AE MATHEMATICAL SCRIPT CAPITAL S Sscr
1D4AF 00054 U1D4AF MATHEMATICAL SCRIPT CAPITAL T Tscr
1D4B0 00055 U1D4B0 MATHEMATICAL SCRIPT CAPITAL U Uscr
1D4B1 00056 U1D4B1 MATHEMATICAL SCRIPT CAPITAL V Vscr
1D4B2 00057 U1D4B2 MATHEMATICAL SCRIPT CAPITAL W Wscr
1D4B3 00058 U1D4B3 MATHEMATICAL SCRIPT CAPITAL X Xscr
1D4B4 00059 U1D4B4 MATHEMATICAL SCRIPT CAPITAL Y Yscr
1D4B5 0005A U1D4B5 MATHEMATICAL SCRIPT CAPITAL Z Zscr
1D4B6 00061 U1D4B6 MATHEMATICAL SCRIPT SMALL A ascr
1D4B7 00062 U1D4B7 MATHEMATICAL SCRIPT SMALL B bscr
1D4B8 00063 U1D4B8 MATHEMATICAL SCRIPT SMALL C cscr
1D4B9 00064 U1D4B9 MATHEMATICAL SCRIPT SMALL D dscr
0212F 00065 U0212F SCRIPT SMALL E escr
1D4BB 00066 U1D4BB MATHEMATICAL SCRIPT SMALL F fscr
0210A 00067 U0210A SCRIPT SMALL G gscr
1D4BD 00068 U1D4BD MATHEMATICAL SCRIPT SMALL H hscr
1D4BE 00069 U1D4BE MATHEMATICAL SCRIPT SMALL I iscr
1D4BF 0006A U1D4BF MATHEMATICAL SCRIPT SMALL J jscr
1D4C0 0006B U1D4C0 MATHEMATICAL SCRIPT SMALL K kscr
02113 0006C U02113 SCRIPT SMALL L ell, lscr
1D4C2 0006D U1D4C2 MATHEMATICAL SCRIPT SMALL M mscr
1D4C3 0006E U1D4C3 MATHEMATICAL SCRIPT SMALL N nscr
02134 0006F U02134 SCRIPT SMALL O order, orderof, oscr
1D4C5 00070 U1D4C5 MATHEMATICAL SCRIPT SMALL P pscr
1D4C6 00071 U1D4C6 MATHEMATICAL SCRIPT SMALL Q qscr
1D4C7 00072 U1D4C7 MATHEMATICAL SCRIPT SMALL R rscr
1D4C8 00073 U1D4C8 MATHEMATICAL SCRIPT SMALL S sscr
1D4C9 00074 U1D4C9 MATHEMATICAL SCRIPT SMALL T tscr
1D4CA 00075 U1D4CA MATHEMATICAL SCRIPT SMALL U uscr
1D4CB 00076 U1D4CB MATHEMATICAL SCRIPT SMALL V vscr
1D4CC 00077 U1D4CC MATHEMATICAL SCRIPT SMALL W wscr
1D4CD 00078 U1D4CD MATHEMATICAL SCRIPT SMALL X xscr
1D4CE 00079 U1D4CE MATHEMATICAL SCRIPT SMALL Y yscr
1D4CF 0007A U1D4CF MATHEMATICAL SCRIPT SMALL Z zscr

gtkmathview-0.8.0/src/common/mathvariants/xml/README0000644000175000017500000000010510613606765017240 00000000000000Note: the *.xml files were taked from the W3C MathML recommendation. gtkmathview-0.8.0/src/common/mathvariants/xml/sans-serif.xml0000644000175000017500000005126610613606765021172 00000000000000 Sans Serif

Sans Serif


Unicode BMP Glyph Unicode Name MathML Names
1D5A0 00041 U1D5A0 MATHEMATICAL SANS-SERIF CAPITAL A  
1D5A1 00042 U1D5A1 MATHEMATICAL SANS-SERIF CAPITAL B  
1D5A2 00043 U1D5A2 MATHEMATICAL SANS-SERIF CAPITAL C  
1D5A3 00044 U1D5A3 MATHEMATICAL SANS-SERIF CAPITAL D  
1D5A4 00045 U1D5A4 MATHEMATICAL SANS-SERIF CAPITAL E  
1D5A5 00046 U1D5A5 MATHEMATICAL SANS-SERIF CAPITAL F  
1D5A6 00047 U1D5A6 MATHEMATICAL SANS-SERIF CAPITAL G  
1D5A7 00048 U1D5A7 MATHEMATICAL SANS-SERIF CAPITAL H  
1D5A8 00049 U1D5A8 MATHEMATICAL SANS-SERIF CAPITAL I  
1D5A9 0004A U1D5A9 MATHEMATICAL SANS-SERIF CAPITAL J  
1D5AA 0004B U1D5AA MATHEMATICAL SANS-SERIF CAPITAL K  
1D5AB 0004C U1D5AB MATHEMATICAL SANS-SERIF CAPITAL L  
1D5AC 0004D U1D5AC MATHEMATICAL SANS-SERIF CAPITAL M  
1D5AD 0004E U1D5AD MATHEMATICAL SANS-SERIF CAPITAL N  
1D5AE 0004F U1D5AE MATHEMATICAL SANS-SERIF CAPITAL O  
1D5AF 00050 U1D5AF MATHEMATICAL SANS-SERIF CAPITAL P  
1D5B0 00051 U1D5B0 MATHEMATICAL SANS-SERIF CAPITAL Q  
1D5B1 00052 U1D5B1 MATHEMATICAL SANS-SERIF CAPITAL R  
1D5B2 00053 U1D5B2 MATHEMATICAL SANS-SERIF CAPITAL S  
1D5B3 00054 U1D5B3 MATHEMATICAL SANS-SERIF CAPITAL T  
1D5B4 00055 U1D5B4 MATHEMATICAL SANS-SERIF CAPITAL U  
1D5B5 00056 U1D5B5 MATHEMATICAL SANS-SERIF CAPITAL V  
1D5B6 00057 U1D5B6 MATHEMATICAL SANS-SERIF CAPITAL W  
1D5B7 00058 U1D5B7 MATHEMATICAL SANS-SERIF CAPITAL X  
1D5B8 00059 U1D5B8 MATHEMATICAL SANS-SERIF CAPITAL Y  
1D5B9 0005A U1D5B9 MATHEMATICAL SANS-SERIF CAPITAL Z  
1D5BA 00061 U1D5BA MATHEMATICAL SANS-SERIF SMALL A  
1D5BB 00062 U1D5BB MATHEMATICAL SANS-SERIF SMALL B  
1D5BC 00063 U1D5BC MATHEMATICAL SANS-SERIF SMALL C  
1D5BD 00064 U1D5BD MATHEMATICAL SANS-SERIF SMALL D  
1D5BE 00065 U1D5BE MATHEMATICAL SANS-SERIF SMALL E  
1D5BF 00066 U1D5BF MATHEMATICAL SANS-SERIF SMALL F  
1D5C0 00067 U1D5C0 MATHEMATICAL SANS-SERIF SMALL G  
1D5C1 00068 U1D5C1 MATHEMATICAL SANS-SERIF SMALL H  
1D5C2 00069 U1D5C2 MATHEMATICAL SANS-SERIF SMALL I  
1D5C3 0006A U1D5C3 MATHEMATICAL SANS-SERIF SMALL J  
1D5C4 0006B U1D5C4 MATHEMATICAL SANS-SERIF SMALL K  
1D5C5 0006C U1D5C5 MATHEMATICAL SANS-SERIF SMALL L  
1D5C6 0006D U1D5C6 MATHEMATICAL SANS-SERIF SMALL M  
1D5C7 0006E U1D5C7 MATHEMATICAL SANS-SERIF SMALL N  
1D5C8 0006F U1D5C8 MATHEMATICAL SANS-SERIF SMALL O  
1D5C9 00070 U1D5C9 MATHEMATICAL SANS-SERIF SMALL P  
1D5CA 00071 U1D5CA MATHEMATICAL SANS-SERIF SMALL Q  
1D5CB 00072 U1D5CB MATHEMATICAL SANS-SERIF SMALL R  
1D5CC 00073 U1D5CC MATHEMATICAL SANS-SERIF SMALL S  
1D5CD 00074 U1D5CD MATHEMATICAL SANS-SERIF SMALL T  
1D5CE 00075 U1D5CE MATHEMATICAL SANS-SERIF SMALL U  
1D5CF 00076 U1D5CF MATHEMATICAL SANS-SERIF SMALL V  
1D5D0 00077 U1D5D0 MATHEMATICAL SANS-SERIF SMALL W  
1D5D1 00078 U1D5D1 MATHEMATICAL SANS-SERIF SMALL X  
1D5D2 00079 U1D5D2 MATHEMATICAL SANS-SERIF SMALL Y  
1D5D3 0007A U1D5D3 MATHEMATICAL SANS-SERIF SMALL Z  
1D7E2 00030 U1D7E2 MATHEMATICAL SANS-SERIF DIGIT ZERO  
1D7E3 00031 U1D7E3 MATHEMATICAL SANS-SERIF DIGIT ONE  
1D7E4 00032 U1D7E4 MATHEMATICAL SANS-SERIF DIGIT TWO  
1D7E5 00033 U1D7E5 MATHEMATICAL SANS-SERIF DIGIT THREE  
1D7E6 00034 U1D7E6 MATHEMATICAL SANS-SERIF DIGIT FOUR  
1D7E7 00035 U1D7E7 MATHEMATICAL SANS-SERIF DIGIT FIVE  
1D7E8 00036 U1D7E8 MATHEMATICAL SANS-SERIF DIGIT SIX  
1D7E9 00037 U1D7E9 MATHEMATICAL SANS-SERIF DIGIT SEVEN  
1D7EA 00038 U1D7EA MATHEMATICAL SANS-SERIF DIGIT EIGHT  
1D7EB 00039 U1D7EB MATHEMATICAL SANS-SERIF DIGIT NINE  

gtkmathview-0.8.0/src/common/mathvariants/xml/Makefile.am0000644000175000017500000000042310613606765020417 00000000000000 EXTRA_DIST = \ bold-fraktur.xml \ bold-italic.xml \ bold-sans-serif.xml \ bold-script.xml \ bold.xml \ double-struck.xml \ fraktur.xml \ italic.xml \ monospace.xml \ sans-serif-bold-italic.xml \ sans-serif-italic.xml \ sans-serif.xml \ script.xml gtkmathview-0.8.0/src/common/mathvariants/xml/sans-serif-bold-italic.xml0000644000175000017500000011123110613606765023340 00000000000000 Slanted Bold Sans Serif

Slanted Bold Sans Serif


Unicode BMP Glyph Unicode Name MathML Names
1D63C 00041 U1D63C MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL A  
1D63D 00042 U1D63D MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL B  
1D63E 00043 U1D63E MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL C  
1D63F 00044 U1D63F MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL D  
1D640 00045 U1D640 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL E  
1D641 00046 U1D641 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL F  
1D642 00047 U1D642 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL G  
1D643 00048 U1D643 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL H  
1D644 00049 U1D644 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL I  
1D645 0004A U1D645 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL J  
1D646 0004B U1D646 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL K  
1D647 0004C U1D647 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL L  
1D648 0004D U1D648 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL M  
1D649 0004E U1D649 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL N  
1D64A 0004F U1D64A MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL O  
1D64B 00050 U1D64B MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL P  
1D64C 00051 U1D64C MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL Q  
1D64D 00052 U1D64D MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL R  
1D64E 00053 U1D64E MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL S  
1D64F 00054 U1D64F MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL T  
1D650 00055 U1D650 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL U  
1D651 00056 U1D651 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL V  
1D652 00057 U1D652 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL W  
1D653 00058 U1D653 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL X  
1D654 00059 U1D654 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL Y  
1D655 0005A U1D655 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL Z  
1D656 00061 U1D656 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL A  
1D657 00062 U1D657 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL B  
1D658 00063 U1D658 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL C  
1D659 00064 U1D659 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL D  
1D65A 00065 U1D65A MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL E  
1D65B 00066 U1D65B MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL F  
1D65C 00067 U1D65C MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL G  
1D65D 00068 U1D65D MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL H  
1D65E 00069 U1D65E MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL I  
1D65F 0006A U1D65F MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL J  
1D660 0006B U1D660 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL K  
1D661 0006C U1D661 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL L  
1D662 0006D U1D662 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL M  
1D663 0006E U1D663 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL N  
1D664 0006F U1D664 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL O  
1D665 00070 U1D665 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL P  
1D666 00071 U1D666 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL Q  
1D667 00072 U1D667 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL R  
1D668 00073 U1D668 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL S  
1D669 00074 U1D669 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL T  
1D66A 00075 U1D66A MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL U  
1D66B 00076 U1D66B MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL V  
1D66C 00077 U1D66C MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL W  
1D66D 00078 U1D66D MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL X  
1D66E 00079 U1D66E MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL Y  
1D66F 0007A U1D66F MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL Z  
1D790 00391 U1D790 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL ALPHA  
1D791 00392 U1D791 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL BETA  
1D792 00393 U1D792 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL GAMMA  
1D793 00394 U1D793 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL DELTA  
1D794 00395 U1D794 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL EPSILON  
1D795 00396 U1D795 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL ZETA  
1D796 00397 U1D796 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL ETA  
1D797 00398 U1D797 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL THETA  
1D798 00399 U1D798 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL IOTA  
1D799 0039A U1D799 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL KAPPA  
1D79A 0039B U1D79A MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL LAMDA  
1D79B 0039C U1D79B MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL MU  
1D79C 0039D U1D79C MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL NU  
1D79D 0039E U1D79D MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL XI  
1D79E 0039F U1D79E MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL OMICRON  
1D79F 003A0 U1D79F MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL PI  
1D7A0 003A1 U1D7A0 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL RHO  
1D7A1 003F4 U1D7A1 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL THETA SYMBOL  
1D7A2 003A3 U1D7A2 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL SIGMA  
1D7A3 003A4 U1D7A3 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL TAU  
1D7A4 003A5 U1D7A4 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL UPSILON  
1D7A5 003A6 U1D7A5 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL PHI  
1D7A6 003A7 U1D7A6 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL CHI  
1D7A7 003A8 U1D7A7 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL PSI  
1D7A8 003A9 U1D7A8 MATHEMATICAL SANS-SERIF BOLD ITALIC CAPITAL OMEGA  
1D7A9 02207 U1D7A9 MATHEMATICAL SANS-SERIF BOLD ITALIC NABLA  
1D7AA 003B1 U1D7AA MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL ALPHA  
1D7AB 003B2 U1D7AB MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL BETA  
1D7AC 003B3 U1D7AC MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL GAMMA  
1D7AD 003B4 U1D7AD MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL DELTA  
1D7AE 003B5 U1D7AE MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL EPSILON  
1D7AF 003B6 U1D7AF MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL ZETA  
1D7B0 003B7 U1D7B0 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL ETA  
1D7B1 003B8 U1D7B1 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL THETA  
1D7B2 003B9 U1D7B2 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL IOTA  
1D7B3 003BA U1D7B3 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL KAPPA  
1D7B4 003BB U1D7B4 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL LAMDA  
1D7B5 003BC U1D7B5 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL MU  
1D7B6 003BD U1D7B6 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL NU  
1D7B7 003BE U1D7B7 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL XI  
1D7B8 003BF U1D7B8 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL OMICRON  
1D7B9 003C0 U1D7B9 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL PI  
1D7BA 003C1 U1D7BA MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL RHO  
1D7BB 003C2 U1D7BB MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL FINAL SIGMA  
1D7BC 003C3 U1D7BC MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL SIGMA  
1D7BD 003C4 U1D7BD MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL TAU  
1D7BE 003C5 U1D7BE MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL UPSILON  
1D7BF 003C6 U1D7BF MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL PHI  
1D7C0 003C7 U1D7C0 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL CHI  
1D7C1 003C8 U1D7C1 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL PSI  
1D7C2 003C9 U1D7C2 MATHEMATICAL SANS-SERIF BOLD ITALIC SMALL OMEGA  
1D7C3 02202 U1D7C3 MATHEMATICAL SANS-SERIF BOLD ITALIC PARTIAL DIFFERENTIAL  
1D7C4 0220A U1D7C4 MATHEMATICAL SANS-SERIF BOLD ITALIC EPSILON SYMBOL  
1D7C5 003D1 U1D7C5 MATHEMATICAL SANS-SERIF BOLD ITALIC THETA SYMBOL  
1D7C6 003F0 U1D7C6 MATHEMATICAL SANS-SERIF BOLD ITALIC KAPPA SYMBOL  
1D7C7 003D5 U1D7C7 MATHEMATICAL SANS-SERIF BOLD ITALIC PHI SYMBOL  
1D7C8 003F1 U1D7C8 MATHEMATICAL SANS-SERIF BOLD ITALIC RHO SYMBOL  
1D7C9 003D6 U1D7C9 MATHEMATICAL SANS-SERIF BOLD ITALIC PI SYMBOL  

gtkmathview-0.8.0/src/common/mathvariants/xml/Makefile.in0000644000175000017500000002642710704610547020436 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../../../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/common/mathvariants/xml DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ EXTRA_DIST = \ bold-fraktur.xml \ bold-italic.xml \ bold-sans-serif.xml \ bold-script.xml \ bold.xml \ double-struck.xml \ fraktur.xml \ italic.xml \ monospace.xml \ sans-serif-bold-italic.xml \ sans-serif-italic.xml \ sans-serif.xml \ script.xml all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/common/mathvariants/xml/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/common/mathvariants/xml/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-exec install-exec-am \ install-info install-info-am install-man install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/src/common/mathvariants/xml/monospace.xml0000644000175000017500000005075010613606765021101 00000000000000 Monospace

Monospace


Unicode BMP Glyph Unicode Name MathML Names
1D670 00041 U1D670 MATHEMATICAL MONOSPACE CAPITAL A  
1D671 00042 U1D671 MATHEMATICAL MONOSPACE CAPITAL B  
1D672 00043 U1D672 MATHEMATICAL MONOSPACE CAPITAL C  
1D673 00044 U1D673 MATHEMATICAL MONOSPACE CAPITAL D  
1D674 00045 U1D674 MATHEMATICAL MONOSPACE CAPITAL E  
1D675 00046 U1D675 MATHEMATICAL MONOSPACE CAPITAL F  
1D676 00047 U1D676 MATHEMATICAL MONOSPACE CAPITAL G  
1D677 00048 U1D677 MATHEMATICAL MONOSPACE CAPITAL H  
1D678 00049 U1D678 MATHEMATICAL MONOSPACE CAPITAL I  
1D679 0004A U1D679 MATHEMATICAL MONOSPACE CAPITAL J  
1D67A 0004B U1D67A MATHEMATICAL MONOSPACE CAPITAL K  
1D67B 0004C U1D67B MATHEMATICAL MONOSPACE CAPITAL L  
1D67C 0004D U1D67C MATHEMATICAL MONOSPACE CAPITAL M  
1D67D 0004E U1D67D MATHEMATICAL MONOSPACE CAPITAL N  
1D67E 0004F U1D67E MATHEMATICAL MONOSPACE CAPITAL O  
1D67F 00050 U1D67F MATHEMATICAL MONOSPACE CAPITAL P  
1D680 00051 U1D680 MATHEMATICAL MONOSPACE CAPITAL Q  
1D681 00052 U1D681 MATHEMATICAL MONOSPACE CAPITAL R  
1D682 00053 U1D682 MATHEMATICAL MONOSPACE CAPITAL S  
1D683 00054 U1D683 MATHEMATICAL MONOSPACE CAPITAL T  
1D684 00055 U1D684 MATHEMATICAL MONOSPACE CAPITAL U  
1D685 00056 U1D685 MATHEMATICAL MONOSPACE CAPITAL V  
1D686 00057 U1D686 MATHEMATICAL MONOSPACE CAPITAL W  
1D687 00058 U1D687 MATHEMATICAL MONOSPACE CAPITAL X  
1D688 00059 U1D688 MATHEMATICAL MONOSPACE CAPITAL Y  
1D689 0005A U1D689 MATHEMATICAL MONOSPACE CAPITAL Z  
1D68A 00061 U1D68A MATHEMATICAL MONOSPACE SMALL A  
1D68B 00062 U1D68B MATHEMATICAL MONOSPACE SMALL B  
1D68C 00063 U1D68C MATHEMATICAL MONOSPACE SMALL C  
1D68D 00064 U1D68D MATHEMATICAL MONOSPACE SMALL D  
1D68E 00065 U1D68E MATHEMATICAL MONOSPACE SMALL E  
1D68F 00066 U1D68F MATHEMATICAL MONOSPACE SMALL F  
1D690 00067 U1D690 MATHEMATICAL MONOSPACE SMALL G  
1D691 00068 U1D691 MATHEMATICAL MONOSPACE SMALL H  
1D692 00069 U1D692 MATHEMATICAL MONOSPACE SMALL I  
1D693 0006A U1D693 MATHEMATICAL MONOSPACE SMALL J  
1D694 0006B U1D694 MATHEMATICAL MONOSPACE SMALL K  
1D695 0006C U1D695 MATHEMATICAL MONOSPACE SMALL L  
1D696 0006D U1D696 MATHEMATICAL MONOSPACE SMALL M  
1D697 0006E U1D697 MATHEMATICAL MONOSPACE SMALL N  
1D698 0006F U1D698 MATHEMATICAL MONOSPACE SMALL O  
1D699 00070 U1D699 MATHEMATICAL MONOSPACE SMALL P  
1D69A 00071 U1D69A MATHEMATICAL MONOSPACE SMALL Q  
1D69B 00072 U1D69B MATHEMATICAL MONOSPACE SMALL R  
1D69C 00073 U1D69C MATHEMATICAL MONOSPACE SMALL S  
1D69D 00074 U1D69D MATHEMATICAL MONOSPACE SMALL T  
1D69E 00075 U1D69E MATHEMATICAL MONOSPACE SMALL U  
1D69F 00076 U1D69F MATHEMATICAL MONOSPACE SMALL V  
1D6A0 00077 U1D6A0 MATHEMATICAL MONOSPACE SMALL W  
1D6A1 00078 U1D6A1 MATHEMATICAL MONOSPACE SMALL X  
1D6A2 00079 U1D6A2 MATHEMATICAL MONOSPACE SMALL Y  
1D6A3 0007A U1D6A3 MATHEMATICAL MONOSPACE SMALL Z  
1D7F6 00030 U1D7F6 MATHEMATICAL MONOSPACE DIGIT ZERO  
1D7F7 00031 U1D7F7 MATHEMATICAL MONOSPACE DIGIT ONE  
1D7F8 00032 U1D7F8 MATHEMATICAL MONOSPACE DIGIT TWO  
1D7F9 00033 U1D7F9 MATHEMATICAL MONOSPACE DIGIT THREE  
1D7FA 00034 U1D7FA MATHEMATICAL MONOSPACE DIGIT FOUR  
1D7FB 00035 U1D7FB MATHEMATICAL MONOSPACE DIGIT FIVE  
1D7FC 00036 U1D7FC MATHEMATICAL MONOSPACE DIGIT SIX  
1D7FD 00037 U1D7FD MATHEMATICAL MONOSPACE DIGIT SEVEN  
1D7FE 00038 U1D7FE MATHEMATICAL MONOSPACE DIGIT EIGHT  
1D7FF 00039 U1D7FF MATHEMATICAL MONOSPACE DIGIT NINE  

gtkmathview-0.8.0/src/common/mathvariants/xml/italic.xml0000644000175000017500000010655110661271105020350 00000000000000 Italic or Slanted

Italic or Slanted


Unicode BMP Glyph Unicode Name MathML Names
1D434 00041 U1D434 MATHEMATICAL ITALIC CAPITAL A  
1D435 00042 U1D435 MATHEMATICAL ITALIC CAPITAL B  
1D436 00043 U1D436 MATHEMATICAL ITALIC CAPITAL C  
1D437 00044 U1D437 MATHEMATICAL ITALIC CAPITAL D  
1D438 00045 U1D438 MATHEMATICAL ITALIC CAPITAL E  
1D439 00046 U1D439 MATHEMATICAL ITALIC CAPITAL F  
1D43A 00047 U1D43A MATHEMATICAL ITALIC CAPITAL G  
1D43B 00048 U1D43B MATHEMATICAL ITALIC CAPITAL H  
1D43C 00049 U1D43C MATHEMATICAL ITALIC CAPITAL I  
1D43D 0004A U1D43D MATHEMATICAL ITALIC CAPITAL J  
1D43E 0004B U1D43E MATHEMATICAL ITALIC CAPITAL K  
1D43F 0004C U1D43F MATHEMATICAL ITALIC CAPITAL L  
1D440 0004D U1D440 MATHEMATICAL ITALIC CAPITAL M  
1D441 0004E U1D441 MATHEMATICAL ITALIC CAPITAL N  
1D442 0004F U1D442 MATHEMATICAL ITALIC CAPITAL O  
1D443 00050 U1D443 MATHEMATICAL ITALIC CAPITAL P  
1D444 00051 U1D444 MATHEMATICAL ITALIC CAPITAL Q  
1D445 00052 U1D445 MATHEMATICAL ITALIC CAPITAL R  
1D446 00053 U1D446 MATHEMATICAL ITALIC CAPITAL S  
1D447 00054 U1D447 MATHEMATICAL ITALIC CAPITAL T  
1D448 00055 U1D448 MATHEMATICAL ITALIC CAPITAL U  
1D449 00056 U1D449 MATHEMATICAL ITALIC CAPITAL V  
1D44A 00057 U1D44A MATHEMATICAL ITALIC CAPITAL W  
1D44B 00058 U1D44B MATHEMATICAL ITALIC CAPITAL X  
1D44C 00059 U1D44C MATHEMATICAL ITALIC CAPITAL Y  
1D44D 0005A U1D44D MATHEMATICAL ITALIC CAPITAL Z  
1D44E 00061 U1D44E MATHEMATICAL ITALIC SMALL A  
1D44F 00062 U1D44F MATHEMATICAL ITALIC SMALL B  
1D450 00063 U1D450 MATHEMATICAL ITALIC SMALL C  
1D451 00064 U1D451 MATHEMATICAL ITALIC SMALL D  
1D452 00065 U1D452 MATHEMATICAL ITALIC SMALL E  
1D453 00066 U1D453 MATHEMATICAL ITALIC SMALL F  
1D454 00067 U1D454 MATHEMATICAL ITALIC SMALL G  
0210E 00068 U0210E PLANCK CONSTANT planckh
1D456 00069 U1D456 MATHEMATICAL ITALIC SMALL I  
1D457 0006A U1D457 MATHEMATICAL ITALIC SMALL J  
1D458 0006B U1D458 MATHEMATICAL ITALIC SMALL K  
1D459 0006C U1D459 MATHEMATICAL ITALIC SMALL L  
1D45A 0006D U1D45A MATHEMATICAL ITALIC SMALL M  
1D45B 0006E U1D45B MATHEMATICAL ITALIC SMALL N  
1D45C 0006F U1D45C MATHEMATICAL ITALIC SMALL O  
1D45D 00070 U1D45D MATHEMATICAL ITALIC SMALL P  
1D45E 00071 U1D45E MATHEMATICAL ITALIC SMALL Q  
1D45F 00072 U1D45F MATHEMATICAL ITALIC SMALL R  
1D460 00073 U1D460 MATHEMATICAL ITALIC SMALL S  
1D461 00074 U1D461 MATHEMATICAL ITALIC SMALL T  
1D462 00075 U1D462 MATHEMATICAL ITALIC SMALL U  
1D463 00076 U1D463 MATHEMATICAL ITALIC SMALL V  
1D464 00077 U1D464 MATHEMATICAL ITALIC SMALL W  
1D465 00078 U1D465 MATHEMATICAL ITALIC SMALL X  
1D466 00079 U1D466 MATHEMATICAL ITALIC SMALL Y  
1D467 0007A U1D467 MATHEMATICAL ITALIC SMALL Z  
1D6A4 00131 MATHEMATICAL ITALIC SMALL DOTLESS I  
1D6A5 00237 MATHEMATICAL ITALIC SMALL DOTLESS J  
1D6E2 00391 U1D6E2 MATHEMATICAL ITALIC CAPITAL ALPHA  
1D6E3 00392 U1D6E3 MATHEMATICAL ITALIC CAPITAL BETA  
1D6E4 00393 U1D6E4 MATHEMATICAL ITALIC CAPITAL GAMMA  
1D6E5 00394 U1D6E5 MATHEMATICAL ITALIC CAPITAL DELTA  
1D6E6 00395 U1D6E6 MATHEMATICAL ITALIC CAPITAL EPSILON  
1D6E7 00396 U1D6E7 MATHEMATICAL ITALIC CAPITAL ZETA  
1D6E8 00397 U1D6E8 MATHEMATICAL ITALIC CAPITAL ETA  
1D6E9 00398 U1D6E9 MATHEMATICAL ITALIC CAPITAL THETA  
1D6EA 00399 U1D6EA MATHEMATICAL ITALIC CAPITAL IOTA  
1D6EB 0039A U1D6EB MATHEMATICAL ITALIC CAPITAL KAPPA  
1D6EC 0039B U1D6EC MATHEMATICAL ITALIC CAPITAL LAMDA  
1D6ED 0039C U1D6ED MATHEMATICAL ITALIC CAPITAL MU  
1D6EE 0039D U1D6EE MATHEMATICAL ITALIC CAPITAL NU  
1D6EF 0039E U1D6EF MATHEMATICAL ITALIC CAPITAL XI  
1D6F0 0039F U1D6F0 MATHEMATICAL ITALIC CAPITAL OMICRON  
1D6F1 003A0 U1D6F1 MATHEMATICAL ITALIC CAPITAL PI  
1D6F2 003A1 U1D6F2 MATHEMATICAL ITALIC CAPITAL RHO  
1D6F3 003F4 U1D6F3 MATHEMATICAL ITALIC CAPITAL THETA SYMBOL  
1D6F4 003A3 U1D6F4 MATHEMATICAL ITALIC CAPITAL SIGMA  
1D6F5 003A4 U1D6F5 MATHEMATICAL ITALIC CAPITAL TAU  
1D6F6 003A5 U1D6F6 MATHEMATICAL ITALIC CAPITAL UPSILON  
1D6F7 003A6 U1D6F7 MATHEMATICAL ITALIC CAPITAL PHI  
1D6F8 003A7 U1D6F8 MATHEMATICAL ITALIC CAPITAL CHI  
1D6F9 003A8 U1D6F9 MATHEMATICAL ITALIC CAPITAL PSI  
1D6FA 003A9 U1D6FA MATHEMATICAL ITALIC CAPITAL OMEGA  
1D6FB 02207 U1D6FB MATHEMATICAL ITALIC NABLA  
1D6FC 003B1 U1D6FC MATHEMATICAL ITALIC SMALL ALPHA  
1D6FD 003B2 U1D6FD MATHEMATICAL ITALIC SMALL BETA  
1D6FE 003B3 U1D6FE MATHEMATICAL ITALIC SMALL GAMMA  
1D6FF 003B4 U1D6FF MATHEMATICAL ITALIC SMALL DELTA  
1D700 003B5 U1D700 MATHEMATICAL ITALIC SMALL EPSILON  
1D701 003B6 U1D701 MATHEMATICAL ITALIC SMALL ZETA  
1D702 003B7 U1D702 MATHEMATICAL ITALIC SMALL ETA  
1D703 003B8 U1D703 MATHEMATICAL ITALIC SMALL THETA  
1D704 003B9 U1D704 MATHEMATICAL ITALIC SMALL IOTA  
1D705 003BA U1D705 MATHEMATICAL ITALIC SMALL KAPPA  
1D706 003BB U1D706 MATHEMATICAL ITALIC SMALL LAMDA  
1D707 003BC U1D707 MATHEMATICAL ITALIC SMALL MU  
1D708 003BD U1D708 MATHEMATICAL ITALIC SMALL NU  
1D709 003BE U1D709 MATHEMATICAL ITALIC SMALL XI  
1D70A 003BF U1D70A MATHEMATICAL ITALIC SMALL OMICRON  
1D70B 003C0 U1D70B MATHEMATICAL ITALIC SMALL PI  
1D70C 003C1 U1D70C MATHEMATICAL ITALIC SMALL RHO  
1D70D 003C2 U1D70D MATHEMATICAL ITALIC SMALL FINAL SIGMA  
1D70E 003C3 U1D70E MATHEMATICAL ITALIC SMALL SIGMA  
1D70F 003C4 U1D70F MATHEMATICAL ITALIC SMALL TAU  
1D710 003C5 U1D710 MATHEMATICAL ITALIC SMALL UPSILON  
1D711 003C6 U1D711 MATHEMATICAL ITALIC SMALL PHI  
1D712 003C7 U1D712 MATHEMATICAL ITALIC SMALL CHI  
1D713 003C8 U1D713 MATHEMATICAL ITALIC SMALL PSI  
1D714 003C9 U1D714 MATHEMATICAL ITALIC SMALL OMEGA  
1D715 02202 U1D715 MATHEMATICAL ITALIC PARTIAL DIFFERENTIAL  
1D716 0220A U1D716 MATHEMATICAL ITALIC EPSILON SYMBOL  
1D717 003D1 U1D717 MATHEMATICAL ITALIC THETA SYMBOL  
1D718 003F0 U1D718 MATHEMATICAL ITALIC KAPPA SYMBOL  
1D719 003D5 U1D719 MATHEMATICAL ITALIC PHI SYMBOL  
1D71A 003F1 U1D71A MATHEMATICAL ITALIC RHO SYMBOL  
1D71B 003D6 U1D71B MATHEMATICAL ITALIC PI SYMBOL  

gtkmathview-0.8.0/src/common/mathvariants/MathVariant.hh0000644000175000017500000000265710661271105020322 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __MathVariant_hh__ #define __MathVariant_hh__ #include "gmv_defines.h" enum MathVariant { NORMAL_VARIANT, BOLD_VARIANT, ITALIC_VARIANT, BOLD_ITALIC_VARIANT, DOUBLE_STRUCK_VARIANT, BOLD_FRAKTUR_VARIANT, SCRIPT_VARIANT, BOLD_SCRIPT_VARIANT, FRAKTUR_VARIANT, SANS_SERIF_VARIANT, BOLD_SANS_SERIF_VARIANT, SANS_SERIF_ITALIC_VARIANT, SANS_SERIF_BOLD_ITALIC_VARIANT, MONOSPACE_VARIANT }; inline GMV_MathView_EXPORT bool validMathVariant(MathVariant id) { return id >= NORMAL_VARIANT && id <= MONOSPACE_VARIANT; } #endif // __MathVariant_hh__ gtkmathview-0.8.0/src/common/Value.hh0000644000175000017500000000206310661271105014446 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Value_hh__ #define __Value_hh__ #include "Object.hh" class GMV_MathView_EXPORT Value : public Object { protected: Value(void) { } virtual ~Value() { }; public: class TypeError { }; }; #endif // __Value_hh__ gtkmathview-0.8.0/src/common/Makefile.in0000644000175000017500000012010610704610545015120 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/common DIST_COMMON = $(mathview_HEADERS) $(noinst_HEADERS) \ $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) am__DEPENDENCIES_1 = libcommon_la_DEPENDENCIES = \ $(top_builddir)/src/common/mathvariants/libmathvariants.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) am__objects_1 = am_libcommon_la_OBJECTS = libcommon_la-AbstractLogger.lo \ libcommon_la-BoundingBox.lo libcommon_la-BoundingBoxAux.lo \ libcommon_la-Clock.lo libcommon_la-Configuration.lo \ libcommon_la-LengthAux.lo libcommon_la-Logger.lo \ libcommon_la-PointAux.lo libcommon_la-RGBColorAux.lo \ libcommon_la-Rectangle.lo libcommon_la-String.lo \ libcommon_la-StringAux.lo libcommon_la-StringHash.lo \ libcommon_la-Utils.lo libcommon_la-ValueConversion.lo \ libcommon_la-token.lo $(am__objects_1) libcommon_la_OBJECTS = $(am_libcommon_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libcommon_la_SOURCES) DIST_SOURCES = $(libcommon_la_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(mathviewdir)" mathviewHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(mathview_HEADERS) $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = SUBDIRS = mathvariants noinst_LTLIBRARIES = libcommon.la libcommon_la_CPPFLAGS = $(NULL) -DGMV_MathView_DLL libcommon_la_LIBADD = \ $(top_builddir)/src/common/mathvariants/libmathvariants.la \ $(GLIB_LIBS) \ $(NULL) # if USE_GCC_PCH # BUILT_SOURCES = all.hh # include ./$(DEPDIR)/all.Po # include $(top_srcdir)/gcc-pch.mk # libcommon_la_CPPFLAGS += -include all.hh # endif libcommon_la_SOURCES = \ AbstractLogger.cc \ BoundingBox.cc \ BoundingBoxAux.cc \ Clock.cc \ Configuration.cc \ LengthAux.cc \ Logger.cc \ PointAux.cc \ RGBColorAux.cc \ Rectangle.cc \ String.cc \ StringAux.cc \ StringHash.cc \ Utils.cc \ ValueConversion.cc \ token.cc \ $(NULL) mathviewdir = $(pkgincludedir)/MathView mathview_HEADERS = \ AbstractLogger.hh \ BoundingBox.hh \ BoundingBoxAux.hh \ Configuration.hh \ HashMap.hh \ Length.hh \ LengthAux.hh \ Logger.hh \ Object.hh \ Point.hh \ PointAux.hh \ RGBColor.hh \ RGBColorAux.hh \ Rectangle.hh \ SmartPtr.hh \ ScopedHashMap.hh \ FastScopedHashMap.hh \ SparseMap.hh \ String.hh \ StringAux.hh \ StringHash.hh \ Utils.hh \ Value.hh \ ValueConversion.hh \ Variant.hh \ WeakPtr.hh \ defs.h \ fixed.hh \ gmv_defines.h \ scaled.hh \ scaledAux.hh \ $(NULL) noinst_HEADERS = \ CharTraits.hh \ CharTraits.icc \ Clock.hh \ GObjectPtr.hh \ TemplateStringScanners.hh \ TemplateStringParsers.hh \ TokenSet.hh \ for_each_if.h \ token.hh \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto \ -I$(top_srcdir)/auto \ $(GLIB_CFLAGS) \ $(NULL) all: all-recursive .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/common/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/common/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libcommon.la: $(libcommon_la_OBJECTS) $(libcommon_la_DEPENDENCIES) $(CXXLINK) $(libcommon_la_LDFLAGS) $(libcommon_la_OBJECTS) $(libcommon_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcommon_la-AbstractLogger.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcommon_la-BoundingBox.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcommon_la-BoundingBoxAux.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcommon_la-Clock.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcommon_la-Configuration.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcommon_la-LengthAux.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcommon_la-Logger.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcommon_la-PointAux.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcommon_la-RGBColorAux.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcommon_la-Rectangle.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcommon_la-String.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcommon_la-StringAux.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcommon_la-StringHash.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcommon_la-Utils.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcommon_la-ValueConversion.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcommon_la-token.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libcommon_la-AbstractLogger.lo: AbstractLogger.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libcommon_la-AbstractLogger.lo -MD -MP -MF "$(DEPDIR)/libcommon_la-AbstractLogger.Tpo" -c -o libcommon_la-AbstractLogger.lo `test -f 'AbstractLogger.cc' || echo '$(srcdir)/'`AbstractLogger.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libcommon_la-AbstractLogger.Tpo" "$(DEPDIR)/libcommon_la-AbstractLogger.Plo"; else rm -f "$(DEPDIR)/libcommon_la-AbstractLogger.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='AbstractLogger.cc' object='libcommon_la-AbstractLogger.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libcommon_la-AbstractLogger.lo `test -f 'AbstractLogger.cc' || echo '$(srcdir)/'`AbstractLogger.cc libcommon_la-BoundingBox.lo: BoundingBox.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libcommon_la-BoundingBox.lo -MD -MP -MF "$(DEPDIR)/libcommon_la-BoundingBox.Tpo" -c -o libcommon_la-BoundingBox.lo `test -f 'BoundingBox.cc' || echo '$(srcdir)/'`BoundingBox.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libcommon_la-BoundingBox.Tpo" "$(DEPDIR)/libcommon_la-BoundingBox.Plo"; else rm -f "$(DEPDIR)/libcommon_la-BoundingBox.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoundingBox.cc' object='libcommon_la-BoundingBox.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libcommon_la-BoundingBox.lo `test -f 'BoundingBox.cc' || echo '$(srcdir)/'`BoundingBox.cc libcommon_la-BoundingBoxAux.lo: BoundingBoxAux.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libcommon_la-BoundingBoxAux.lo -MD -MP -MF "$(DEPDIR)/libcommon_la-BoundingBoxAux.Tpo" -c -o libcommon_la-BoundingBoxAux.lo `test -f 'BoundingBoxAux.cc' || echo '$(srcdir)/'`BoundingBoxAux.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libcommon_la-BoundingBoxAux.Tpo" "$(DEPDIR)/libcommon_la-BoundingBoxAux.Plo"; else rm -f "$(DEPDIR)/libcommon_la-BoundingBoxAux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BoundingBoxAux.cc' object='libcommon_la-BoundingBoxAux.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libcommon_la-BoundingBoxAux.lo `test -f 'BoundingBoxAux.cc' || echo '$(srcdir)/'`BoundingBoxAux.cc libcommon_la-Clock.lo: Clock.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libcommon_la-Clock.lo -MD -MP -MF "$(DEPDIR)/libcommon_la-Clock.Tpo" -c -o libcommon_la-Clock.lo `test -f 'Clock.cc' || echo '$(srcdir)/'`Clock.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libcommon_la-Clock.Tpo" "$(DEPDIR)/libcommon_la-Clock.Plo"; else rm -f "$(DEPDIR)/libcommon_la-Clock.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Clock.cc' object='libcommon_la-Clock.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libcommon_la-Clock.lo `test -f 'Clock.cc' || echo '$(srcdir)/'`Clock.cc libcommon_la-Configuration.lo: Configuration.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libcommon_la-Configuration.lo -MD -MP -MF "$(DEPDIR)/libcommon_la-Configuration.Tpo" -c -o libcommon_la-Configuration.lo `test -f 'Configuration.cc' || echo '$(srcdir)/'`Configuration.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libcommon_la-Configuration.Tpo" "$(DEPDIR)/libcommon_la-Configuration.Plo"; else rm -f "$(DEPDIR)/libcommon_la-Configuration.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Configuration.cc' object='libcommon_la-Configuration.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libcommon_la-Configuration.lo `test -f 'Configuration.cc' || echo '$(srcdir)/'`Configuration.cc libcommon_la-LengthAux.lo: LengthAux.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libcommon_la-LengthAux.lo -MD -MP -MF "$(DEPDIR)/libcommon_la-LengthAux.Tpo" -c -o libcommon_la-LengthAux.lo `test -f 'LengthAux.cc' || echo '$(srcdir)/'`LengthAux.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libcommon_la-LengthAux.Tpo" "$(DEPDIR)/libcommon_la-LengthAux.Plo"; else rm -f "$(DEPDIR)/libcommon_la-LengthAux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='LengthAux.cc' object='libcommon_la-LengthAux.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libcommon_la-LengthAux.lo `test -f 'LengthAux.cc' || echo '$(srcdir)/'`LengthAux.cc libcommon_la-Logger.lo: Logger.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libcommon_la-Logger.lo -MD -MP -MF "$(DEPDIR)/libcommon_la-Logger.Tpo" -c -o libcommon_la-Logger.lo `test -f 'Logger.cc' || echo '$(srcdir)/'`Logger.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libcommon_la-Logger.Tpo" "$(DEPDIR)/libcommon_la-Logger.Plo"; else rm -f "$(DEPDIR)/libcommon_la-Logger.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Logger.cc' object='libcommon_la-Logger.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libcommon_la-Logger.lo `test -f 'Logger.cc' || echo '$(srcdir)/'`Logger.cc libcommon_la-PointAux.lo: PointAux.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libcommon_la-PointAux.lo -MD -MP -MF "$(DEPDIR)/libcommon_la-PointAux.Tpo" -c -o libcommon_la-PointAux.lo `test -f 'PointAux.cc' || echo '$(srcdir)/'`PointAux.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libcommon_la-PointAux.Tpo" "$(DEPDIR)/libcommon_la-PointAux.Plo"; else rm -f "$(DEPDIR)/libcommon_la-PointAux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PointAux.cc' object='libcommon_la-PointAux.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libcommon_la-PointAux.lo `test -f 'PointAux.cc' || echo '$(srcdir)/'`PointAux.cc libcommon_la-RGBColorAux.lo: RGBColorAux.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libcommon_la-RGBColorAux.lo -MD -MP -MF "$(DEPDIR)/libcommon_la-RGBColorAux.Tpo" -c -o libcommon_la-RGBColorAux.lo `test -f 'RGBColorAux.cc' || echo '$(srcdir)/'`RGBColorAux.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libcommon_la-RGBColorAux.Tpo" "$(DEPDIR)/libcommon_la-RGBColorAux.Plo"; else rm -f "$(DEPDIR)/libcommon_la-RGBColorAux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='RGBColorAux.cc' object='libcommon_la-RGBColorAux.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libcommon_la-RGBColorAux.lo `test -f 'RGBColorAux.cc' || echo '$(srcdir)/'`RGBColorAux.cc libcommon_la-Rectangle.lo: Rectangle.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libcommon_la-Rectangle.lo -MD -MP -MF "$(DEPDIR)/libcommon_la-Rectangle.Tpo" -c -o libcommon_la-Rectangle.lo `test -f 'Rectangle.cc' || echo '$(srcdir)/'`Rectangle.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libcommon_la-Rectangle.Tpo" "$(DEPDIR)/libcommon_la-Rectangle.Plo"; else rm -f "$(DEPDIR)/libcommon_la-Rectangle.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Rectangle.cc' object='libcommon_la-Rectangle.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libcommon_la-Rectangle.lo `test -f 'Rectangle.cc' || echo '$(srcdir)/'`Rectangle.cc libcommon_la-String.lo: String.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libcommon_la-String.lo -MD -MP -MF "$(DEPDIR)/libcommon_la-String.Tpo" -c -o libcommon_la-String.lo `test -f 'String.cc' || echo '$(srcdir)/'`String.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libcommon_la-String.Tpo" "$(DEPDIR)/libcommon_la-String.Plo"; else rm -f "$(DEPDIR)/libcommon_la-String.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='String.cc' object='libcommon_la-String.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libcommon_la-String.lo `test -f 'String.cc' || echo '$(srcdir)/'`String.cc libcommon_la-StringAux.lo: StringAux.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libcommon_la-StringAux.lo -MD -MP -MF "$(DEPDIR)/libcommon_la-StringAux.Tpo" -c -o libcommon_la-StringAux.lo `test -f 'StringAux.cc' || echo '$(srcdir)/'`StringAux.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libcommon_la-StringAux.Tpo" "$(DEPDIR)/libcommon_la-StringAux.Plo"; else rm -f "$(DEPDIR)/libcommon_la-StringAux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='StringAux.cc' object='libcommon_la-StringAux.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libcommon_la-StringAux.lo `test -f 'StringAux.cc' || echo '$(srcdir)/'`StringAux.cc libcommon_la-StringHash.lo: StringHash.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libcommon_la-StringHash.lo -MD -MP -MF "$(DEPDIR)/libcommon_la-StringHash.Tpo" -c -o libcommon_la-StringHash.lo `test -f 'StringHash.cc' || echo '$(srcdir)/'`StringHash.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libcommon_la-StringHash.Tpo" "$(DEPDIR)/libcommon_la-StringHash.Plo"; else rm -f "$(DEPDIR)/libcommon_la-StringHash.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='StringHash.cc' object='libcommon_la-StringHash.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libcommon_la-StringHash.lo `test -f 'StringHash.cc' || echo '$(srcdir)/'`StringHash.cc libcommon_la-Utils.lo: Utils.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libcommon_la-Utils.lo -MD -MP -MF "$(DEPDIR)/libcommon_la-Utils.Tpo" -c -o libcommon_la-Utils.lo `test -f 'Utils.cc' || echo '$(srcdir)/'`Utils.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libcommon_la-Utils.Tpo" "$(DEPDIR)/libcommon_la-Utils.Plo"; else rm -f "$(DEPDIR)/libcommon_la-Utils.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Utils.cc' object='libcommon_la-Utils.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libcommon_la-Utils.lo `test -f 'Utils.cc' || echo '$(srcdir)/'`Utils.cc libcommon_la-ValueConversion.lo: ValueConversion.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libcommon_la-ValueConversion.lo -MD -MP -MF "$(DEPDIR)/libcommon_la-ValueConversion.Tpo" -c -o libcommon_la-ValueConversion.lo `test -f 'ValueConversion.cc' || echo '$(srcdir)/'`ValueConversion.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libcommon_la-ValueConversion.Tpo" "$(DEPDIR)/libcommon_la-ValueConversion.Plo"; else rm -f "$(DEPDIR)/libcommon_la-ValueConversion.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ValueConversion.cc' object='libcommon_la-ValueConversion.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libcommon_la-ValueConversion.lo `test -f 'ValueConversion.cc' || echo '$(srcdir)/'`ValueConversion.cc libcommon_la-token.lo: token.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libcommon_la-token.lo -MD -MP -MF "$(DEPDIR)/libcommon_la-token.Tpo" -c -o libcommon_la-token.lo `test -f 'token.cc' || echo '$(srcdir)/'`token.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libcommon_la-token.Tpo" "$(DEPDIR)/libcommon_la-token.Plo"; else rm -f "$(DEPDIR)/libcommon_la-token.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='token.cc' object='libcommon_la-token.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcommon_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libcommon_la-token.lo `test -f 'token.cc' || echo '$(srcdir)/'`token.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-mathviewHEADERS: $(mathview_HEADERS) @$(NORMAL_INSTALL) test -z "$(mathviewdir)" || $(mkdir_p) "$(DESTDIR)$(mathviewdir)" @list='$(mathview_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(mathviewHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(mathviewdir)/$$f'"; \ $(mathviewHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(mathviewdir)/$$f"; \ done uninstall-mathviewHEADERS: @$(NORMAL_UNINSTALL) @list='$(mathview_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(mathviewdir)/$$f'"; \ rm -f "$(DESTDIR)$(mathviewdir)/$$f"; \ done # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(mathviewdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-mathviewHEADERS install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-mathviewHEADERS uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ clean clean-generic clean-libtool clean-noinstLTLIBRARIES \ clean-recursive ctags ctags-recursive distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-recursive distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-exec install-exec-am install-info \ install-info-am install-man install-mathviewHEADERS \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ maintainer-clean-recursive mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \ pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-info-am uninstall-mathviewHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/src/common/StringAux.cc0000644000175000017500000000270610661271105015310 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include "StringAux.hh" std::string escape(const UCS4String& s) { std::ostringstream os; UCS4String::const_iterator i = s.begin(); while (i != s.end()) { if (*i >= std::numeric_limits::min() && *i <= std::numeric_limits::max()) os << static_cast(*i); else { os << "&#x" << std::hex; os.width(4); os.fill('0'); os << static_cast(*i) << std::dec; os.width(0); os << ";"; } i++; } return os.str(); } std::ostream& operator<<(std::ostream& os, const UCS4String& s) { return os << escape(s); } gtkmathview-0.8.0/src/common/TemplateStringScanners.hh0000644000175000017500000002322410661271105020033 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TemplateStringScanners_hh__ #define __TemplateStringScanners_hh__ #include "RGBColor.hh" #include "String.hh" class Scan { public: static UCS4String::value_type toChar(const UCS4String::const_iterator& begin, const UCS4String::const_iterator&) { return *begin; } static String toString(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end) { return StringOfUCS4String(UCS4String(begin, end)); } }; // ScanAny: any character class ScanAny : public Scan { public: static inline bool scan(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { if (begin != end) { next = begin + 1; return true; } else return false; } static inline Char parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator&) { return *begin; } }; // ScanSpace: an XML space class ScanSpace : public Scan { public: static inline bool scan(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { if (begin != end && isXmlSpace(*begin)) { next = begin + 1; return true; } else return false; } }; // ScanLiteral: character template class ScanLiteral : public Scan { public: static inline bool scan(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { if (begin != end && *begin == c) { next = begin + 1; return true; } else return false; } }; // ScanRange: range of characters template class ScanRange : public Scan { public: static inline bool scan(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { if (begin != end && *begin >= first && *begin <= last) { next = begin + 1; return true; } else return false; } }; // ScanSeq: sequence of expressions template class ScanSeq : public Scan { public: static inline bool scan(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { UCS4String::const_iterator p; if (E1::scan(begin, end, p)) return E2::scan(p, end, next); else return false; } }; // ScanRep: repetition of expression template class ScanRep : public Scan { public: static inline bool scan(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { UCS4String::const_iterator p = begin; unsigned n; for (n = 0; n < n0 && E::scan(p, end, next); n++) p = next; return n == n0; } }; // ScanChoice: alternative expressions template class ScanChoice : public Scan { public: static inline bool scan(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { if (E1::scan(begin, end, next)) { UCS4String::const_iterator next2; if (E2::scan(begin, end, next2)) next = std::max(next, next2); return true; } return E2::scan(begin, end, next); } }; // ScanOption: optional expression template class ScanZeroOrOne : public Scan { public: static inline bool scan(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { if (E::scan(begin, end, next)) return true; else { next = begin; return true; } } }; // ScanOneOrMore: one or more template class ScanOneOrMore : public Scan { public: static inline bool scan(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end, UCS4String::const_iterator& next) { UCS4String::const_iterator p = begin; while (E::scan(p, end, next)) p = next; if (p != begin) { next = p; return true; } else return false; } }; // ScanZeroOrMore template class ScanZeroOrMore : public ScanZeroOrOne< ScanOneOrMore > { }; // ScanSpaces: zero or more XML spaces typedef ScanZeroOrMore ScanSpaces; // Some more specialized scanners typedef ScanLiteral<'-'> ScanMinus; typedef ScanLiteral<'+'> ScanPlus; typedef ScanLiteral<'%'> ScanPercentage; typedef ScanLiteral<'{'> ScanLeftBrace; typedef ScanLiteral<'}'> ScanRightBrace; typedef ScanChoice ScanBrace; typedef ScanChoice ScanPlusOrMinus; typedef ScanChoice > ScanSpecialToken; typedef ScanRange<'0','9'> ScanDecDigit; typedef ScanZeroOrOne ScanOptionalMinus; typedef ScanChoice< ScanRange<'a','z'>,ScanRange<'A','Z'> > ScanLetter; typedef ScanChoice ScanLetterOrMinus; typedef ScanSeq > ScanKeywordToken; typedef ScanChoice,ScanRange<'A','F'> > > ScanHexDigit; typedef ScanRep<3,ScanHexDigit> ScanRGB4Color; typedef ScanRep<4,ScanHexDigit> ScanRGB4AColor; typedef ScanRep<6,ScanHexDigit> ScanRGB8Color; typedef ScanRep<8,ScanHexDigit> ScanRGB8AColor; typedef ScanSeq,ScanChoice > > > ScanRGBColorValue; class ScanSign : public ScanZeroOrOne { public: static int parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end) { if (begin != end) return (*begin == '+') ? 1 : -1; else return 0; } }; class ScanUnsignedInteger : public ScanOneOrMore { public: static int parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end) { int v = 0; for (UCS4String::const_iterator p = begin; p != end; p++) v = v * 10 + *p - '0'; return v; } }; class ScanInteger : public ScanSeq { public: static int parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end) { if (*begin == '-') return -ScanUnsignedInteger::parse(begin + 1, end); else return ScanUnsignedInteger::parse(begin, end); } }; class ScanToken : public ScanChoice { public: static TokenId parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end) { return tokenIdOfString(Scan::toString(begin, end)); } }; class ScanRGBColor : public ScanRGBColorValue { private: static unsigned hexOfChar(UCS4String::value_type ch) { if (ch >= '0' && ch <= '9') return ch - '0'; else if (ch >= 'A' && ch <= 'F') return ch - 'A' + 10; else return ch - 'a' + 10; } public: static RGBColor parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end) { switch (end - begin) { case 4: return RGBColor(17 * hexOfChar(*(begin + 1)), 17 * hexOfChar(*(begin + 2)), 17 * hexOfChar(*(begin + 3))); case 5: return RGBColor(17 * hexOfChar(*(begin + 1)), 17 * hexOfChar(*(begin + 2)), 17 * hexOfChar(*(begin + 3)), 17 * hexOfChar(*(begin + 4))); case 7: return RGBColor(16 * hexOfChar(*(begin + 1)) + hexOfChar(*(begin + 2)), 16 * hexOfChar(*(begin + 3)) + hexOfChar(*(begin + 4)), 16 * hexOfChar(*(begin + 5)) + hexOfChar(*(begin + 6))); case 9: return RGBColor(16 * hexOfChar(*(begin + 1)) + hexOfChar(*(begin + 2)), 16 * hexOfChar(*(begin + 3)) + hexOfChar(*(begin + 4)), 16 * hexOfChar(*(begin + 5)) + hexOfChar(*(begin + 6)), 16 * hexOfChar(*(begin + 7)) + hexOfChar(*(begin + 8))); default: assert(false); } } }; typedef ScanSeq,ScanUnsignedInteger> ScanDecimalPart; class ScanUnsignedNumber : public ScanChoice, ScanChoice > { public: static float parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end) { bool decimal = false; // true if decimal point found unsigned n = 0; // number of digits after decimal point float v = float(); UCS4String::const_iterator p = begin; while (p != end) { if (*p == '.') decimal = true; else { v = v * 10 + *p - '0'; if (decimal) n++; } p++; } while (n-- > 0) v /= 10; return v; } }; class ScanNumber : public ScanSeq { public: static float parse(const UCS4String::const_iterator& begin, const UCS4String::const_iterator& end) { if (*begin == '-') return -ScanUnsignedNumber::parse(begin + 1, end); else return ScanUnsignedNumber::parse(begin, end); } }; #endif // __TemplateStringScanners_hh__ gtkmathview-0.8.0/src/common/RGBColorAux.hh0000644000175000017500000000215510661271105015463 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __RGBColorAux_hh__ #define __RGBColorAux_hh__ #include #include #include "RGBColor.hh" GMV_MathView_EXPORT std::string toString(const RGBColor&); GMV_MathView_EXPORT std::ostream& operator<<(std::ostream&, const RGBColor&); #endif // __RGBColorAux_hh__ gtkmathview-0.8.0/src/common/Length.hh0000644000175000017500000000401210661271105014607 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Length_hh__ #define __Length_hh__ #include "gmv_defines.h" struct GMV_MathView_EXPORT Length { enum Unit { UNDEFINED_UNIT, PURE_UNIT, INFINITY_UNIT, LT_UNIT, EM_UNIT, EX_UNIT, PX_UNIT, IN_UNIT, CM_UNIT, MM_UNIT, PT_UNIT, PC_UNIT, PERCENTAGE_UNIT, NEGATIVE_VERYVERYTHICK_SPACE, NEGATIVE_VERYTHICK_SPACE, NEGATIVE_THICK_SPACE, NEGATIVE_MEDIUM_SPACE, NEGATIVE_THIN_SPACE, NEGATIVE_VERYTHIN_SPACE, NEGATIVE_VERYVERYTHIN_SPACE, ZERO_SPACE, VERYVERYTHIN_SPACE, VERYTHIN_SPACE, THIN_SPACE, MEDIUM_SPACE, THICK_SPACE, VERYTHICK_SPACE, VERYVERYTHICK_SPACE, LAST_UNIT }; Length(float v = 0.0f, Unit u = UNDEFINED_UNIT) : value(v), type(u) { } void set(float v = 0.0f, Unit u = UNDEFINED_UNIT) { value = v; type = u; } void unset(void) { type = UNDEFINED_UNIT; value = 0.0f; } bool defined(void) const { return type != UNDEFINED_UNIT; } bool absolute(void) const { return type >= IN_UNIT && type <= PC_UNIT; } bool isSpace(void) const { return type >= NEGATIVE_VERYVERYTHIN_SPACE && type <= VERYVERYTHICK_SPACE; } float value; Unit type; }; #endif // __Length_hh__ gtkmathview-0.8.0/src/common/StringAux.hh0000644000175000017500000000212610661271105015316 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __StringAux_hh__ #define __StringAux_hh__ #include #include "String.hh" GMV_MathView_EXPORT std::string escape(const UCS4String&); GMV_MathView_EXPORT std::ostream& operator<<(std::ostream&, const UCS4String&); #endif // __StringAux_hh__ gtkmathview-0.8.0/src/common/TokenSet.hh0000644000175000017500000000371610661271105015134 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __TokenSet_hh__ #define __TokenSet_hh__ #include "token.hh" template class Singleton { public: static inline bool empty(void) { return false; } static inline bool has(TokenId kw) { return kw == id; } }; template class Union { public: static inline bool empty(void) { return S1::empty() && S2::empty(); } static inline bool has(TokenId kw) { return S1::has(kw) || S2::has(kw); } }; template class Set { public: static inline bool empty(void) { return k1 == T__NOTVALID; } static inline bool has(TokenId kw) { return empty() ? false : Singleton::has(kw) || Set::has(kw); } }; #endif // __TokenSet_hh__ gtkmathview-0.8.0/src/common/Clock.cc0000644000175000017500000000342010661271105014411 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #ifdef WIN32 #include #else #include #endif #include "Clock.hh" Clock::Clock() { start.tv_sec = stop.tv_sec = 0; start.tv_usec = stop.tv_usec = 0; } void Clock::Start() { #ifdef WIN32 SYSTEMTIME st; ::GetSystemTime(&st); start.tv_sec = st.wSecond; start.tv_usec = st.wMilliseconds; #else gettimeofday(&start, NULL); #endif } void Clock::Stop() { #ifdef WIN32 SYSTEMTIME st; ::GetSystemTime(&st); stop.tv_sec = st.wSecond; stop.tv_usec = st.wMilliseconds; #else gettimeofday(&stop, NULL); #endif } long Clock::Get() const { struct timeval diff; // Compute the time remaining to wait. `tv_usec' is certainly positive. diff.tv_sec = stop.tv_sec - start.tv_sec; diff.tv_usec = stop.tv_usec - start.tv_usec; return (diff.tv_sec * 1000000 + diff.tv_usec) / 1000; } void Clock::Dump(const char* msg) const { printf("%s\t\t%ldms\n", msg, Get()); } gtkmathview-0.8.0/src/Makefile.in0000644000175000017500000005564210704610535013643 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(libdir)" libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = @COND_BOXML_FALSE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) @COND_BOXML_TRUE@am__DEPENDENCIES_2 = \ @COND_BOXML_TRUE@ $(top_builddir)/src/engine/boxml/libboxml.la \ @COND_BOXML_TRUE@ $(top_builddir)/src/engine/adapters/libadapters.la \ @COND_BOXML_TRUE@ $(am__DEPENDENCIES_1) libmathview_la_DEPENDENCIES = \ $(top_builddir)/src/backend/common/libbackend_common.la \ $(top_builddir)/src/frontend/common/libfrontend_common.la \ $(top_builddir)/src/engine/mathml/libmathml.la \ $(am__DEPENDENCIES_2) \ $(top_builddir)/src/engine/common/libengine_common.la \ $(top_builddir)/src/common/libcommon.la $(am__DEPENDENCIES_1) am_libmathview_la_OBJECTS = libmathview_la-dummy.lo libmathview_la_OBJECTS = $(am_libmathview_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libmathview_la_SOURCES) DIST_SOURCES = $(libmathview_la_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = common engine backend frontend . view widget DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = @COND_GTK_FALSE@MAYBE_GTK_SUBDIRS = $(NULL) @COND_GTK_TRUE@MAYBE_GTK_SUBDIRS = widget SUBDIRS = common engine backend frontend . view $(MAYBE_GTK_SUBDIRS) @COND_BOXML_FALSE@MAYBE_BOXML_LIBADD = $(NULL) @COND_BOXML_TRUE@MAYBE_BOXML_LIBADD = \ @COND_BOXML_TRUE@ $(top_builddir)/src/engine/boxml/libboxml.la \ @COND_BOXML_TRUE@ $(top_builddir)/src/engine/adapters/libadapters.la \ @COND_BOXML_TRUE@ $(NULL) lib_LTLIBRARIES = libmathview.la libmathview_la_CPPFLAGS = -DGMV_MathView_DLL libmathview_la_LDFLAGS = -version-info @MATHVIEW_VERSION_INFO@ -no-undefined libmathview_la_SOURCES = dummy.cc libmathview_la_LIBADD = \ $(top_builddir)/src/backend/common/libbackend_common.la \ $(top_builddir)/src/frontend/common/libfrontend_common.la \ $(top_builddir)/src/engine/mathml/libmathml.la \ $(MAYBE_BOXML_LIBADD) \ $(top_builddir)/src/engine/common/libengine_common.la \ $(top_builddir)/src/common/libcommon.la \ -lstdc++ \ $(NULL) all: all-recursive .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ else :; fi; \ done uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libmathview.la: $(libmathview_la_OBJECTS) $(libmathview_la_DEPENDENCIES) $(CXXLINK) -rpath $(libdir) $(libmathview_la_LDFLAGS) $(libmathview_la_OBJECTS) $(libmathview_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathview_la-dummy.Plo@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libmathview_la-dummy.lo: dummy.cc @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libmathview_la-dummy.lo -MD -MP -MF "$(DEPDIR)/libmathview_la-dummy.Tpo" -c -o libmathview_la-dummy.lo `test -f 'dummy.cc' || echo '$(srcdir)/'`dummy.cc; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/libmathview_la-dummy.Tpo" "$(DEPDIR)/libmathview_la-dummy.Plo"; else rm -f "$(DEPDIR)/libmathview_la-dummy.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='dummy.cc' object='libmathview_la-dummy.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmathview_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libmathview_la-dummy.lo `test -f 'dummy.cc' || echo '$(srcdir)/'`dummy.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LTLIBRARIES) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(libdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-exec-am: install-libLTLIBRARIES install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ clean clean-generic clean-libLTLIBRARIES clean-libtool \ clean-recursive ctags ctags-recursive distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-recursive distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-exec install-exec-am install-info \ install-info-am install-libLTLIBRARIES install-man \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ maintainer-clean-recursive mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \ pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-info-am uninstall-libLTLIBRARIES # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/viewer/0000777000175000017500000000000010704625472012366 500000000000000gtkmathview-0.8.0/viewer/main.cc0000644000175000017500000000556010661271105013533 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include // needed for old versions of GCC, must come before String.hh! #include "CharTraits.icc" #include #include #include #include "defs.h" #include "guiGTK.h" #include "String.hh" #include "MathMLTokenElement.hh" #ifdef DEBUG #include "Gtk_GraphicsContext.hh" #endif // DEBUG #ifdef ENABLE_PROFILE #endif // ENABLE_PROFILE enum CommandLineOptionId { OPTION_VERSION = 256, OPTION_VERBOSE }; // global options bool entityWarning = false; static char appName[64]; extern void *parseMathMLFile(char *); static void printVersion() { printf("%s - written by Luca Padovani (C) 2000-2005.\n", appName); exit(0); } static gint logLevel = -1; static struct poptOption optionsTable[] = { { "version", 'V', POPT_ARG_NONE, 0, OPTION_VERSION, "Output version information", 0 }, { "verbose", 'v', POPT_ARG_INT, &logLevel, OPTION_VERBOSE, "Display messages", "[0-3]" }, POPT_AUTOHELP { 0, 0, 0, 0, 0, 0, 0 } }; static void usage(poptContext optCon, int exitcode, const char* msg) { poptPrintUsage(optCon, stderr, 0); if (msg) fprintf(stderr, "%s\n", msg); exit(exitcode); } int main(int argc, const char *argv[]) { poptContext ctxt = poptGetContext(NULL, argc, argv, optionsTable, 0); sprintf(appName, "mathmlviewer v%s", VERSION); gint c; while ((c = poptGetNextOpt(ctxt)) >= 0) { switch (c) { case OPTION_VERSION: printVersion(); break; case OPTION_VERBOSE: break; default: assert(false); } } if (c < -1) { /* an error occurred during option processing */ fprintf(stderr, "%s: %s\n", poptBadOption(ctxt, POPT_BADOPTION_NOALIAS), poptStrerror(c)); return 1; } const gchar* file = poptGetArg(ctxt); if (file == 0 || !(poptPeekArg(ctxt) == 0)) usage(ctxt, 1, "fatal error: no input document"); poptFreeContext(ctxt); GUI_init(&argc, &argv, appName, 500, 600, logLevel); if (GUI_load_document(file) < 0) printf("fatal error: cannot load document `%s'\n", file); GUI_run(); GUI_uninit(); exit(0); } gtkmathview-0.8.0/viewer/test_loading_reader.c0000644000175000017500000000307110661271105016435 00000000000000/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #include #include #include "gtkmathview_libxml2_reader.h" int main(int argc, char *argv[]) { GtkWidget *window; GtkWidget* math_view; xmlTextReader* reader; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_show (window); g_signal_connect(GTK_OBJECT(window), "delete_event", (GtkSignalFunc) gtk_main_quit, NULL); math_view = gtk_math_view_new(NULL, NULL); reader = xmlReaderForFile(argv[1], NULL, 0); /*xmlTextReaderRead(reader);*/ assert(reader); gtk_math_view_load_reader(GTK_MATH_VIEW(math_view), reader); gtk_container_add (GTK_CONTAINER (window), math_view); gtk_widget_show (math_view); gtk_main (); return 0; } gtkmathview-0.8.0/viewer/test_rendering.cc0000644000175000017500000000720410661271105015620 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include #include #include "Logger.hh" #include "Init.hh" #include "Configuration.hh" #include "libxml2_MathView.hh" #include "MathMLOperatorDictionary.hh" #include "Gtk_Backend.hh" #include "Gtk_MathGraphicDevice.hh" #include "Gtk_RenderingContext.hh" #include "MathMLNamespaceContext.hh" #include "FormattingContext.hh" #if GMV_ENABLE_BOXML #include "BoxMLNamespaceContext.hh" #include "BoxGraphicDevice.hh" #endif // GMV_ENABLE_BOXML typedef libxml2_MathView MathView; SmartPtr logger; SmartPtr view; GtkWidget* window = 0; GdkPixmap* pixmap = 0; extern "C" gboolean expose(GtkWidget* widget, GdkEventExpose *event, gpointer user_data) { printf("expose %p\n", pixmap); const gint width = widget->allocation.width; const gint height = widget->allocation.height; if (!pixmap) { const BoundingBox box = view->getBoundingBox(); pixmap = gdk_pixmap_new(widget->window, width, height, -1); // needed to cleanup the pixmap gdk_draw_rectangle(pixmap, widget->style->white_gc, TRUE, 0, 0, width, height); Gtk_RenderingContext rc(logger); rc.setColorMap(gtk_widget_get_colormap(GTK_WIDGET(widget))); rc.setDrawable(pixmap); view->render(rc, scaled::zero(), -box.height); } gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], pixmap, 0, 0, 0, 0, width, height); return TRUE; } int main(int argc, char *argv[]) { gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_show (window); g_signal_connect(GTK_OBJECT(window), "expose_event", (GtkSignalFunc) expose, NULL); g_signal_connect(GTK_OBJECT(window), "delete_event", (GtkSignalFunc) gtk_main_quit, NULL); const char* configPath = getenv("GTKMATHVIEWCONF"); logger = Logger::create(); SmartPtr configuration = initConfiguration(logger, configPath); SmartPtr backend = Gtk_Backend::create(logger, configuration); SmartPtr mgd = backend->getMathGraphicDevice(); SmartPtr dictionary = initOperatorDictionary(logger, configuration); view = MathView::create(logger); view->setOperatorDictionary(dictionary); view->setMathMLNamespaceContext(MathMLNamespaceContext::create(view, mgd)); #if GMV_ENABLE_BOXML SmartPtr bgd = backend->getBoxGraphicDevice(); view->setBoxMLNamespaceContext(BoxMLNamespaceContext::create(view, bgd)); #endif //view->setDefaultFontSize(static_cast(fontSize)); #if GMV_ENABLE_BOXML FormattingContext context(mgd, bgd); #else FormattingContext context(mgd); #endif view->loadURI(argv[1]); gtk_main (); view->resetRootElement(); return 0; } gtkmathview-0.8.0/viewer/aux.cc0000644000175000017500000001416410661271105013404 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #include #include #include #include #include #include #include "defs.h" #include "gmetadom.hh" static unsigned getDepth(const DOM::Element& elem) { unsigned length = 0; DOM::Element p = elem; while (p) { p = p.get_parentNode(); length++; } return length; } static DOM::Element findCommonAncestor(const DOM::Element& first, const DOM::Element& last) { if (!first || !last) return DOM::Element(0); DOM::Element p(first); DOM::Element q(last); if (p != q) { unsigned pDepth = getDepth(p); unsigned qDepth = getDepth(q); while (p && pDepth > qDepth) { p = p.get_parentNode(); pDepth--; } while (q && qDepth > pDepth) { q = q.get_parentNode(); qDepth--; } assert(pDepth == qDepth); while (p && q && p != q) { p = p.get_parentNode(); q = q.get_parentNode(); } } return p; } static void findCommonSiblings(const DOM::Element& first, const DOM::Element& last, DOM::Element& firstS, DOM::Element& lastS) { DOM::Element p(first); DOM::Element q(last); if (p != q) { unsigned pDepth = getDepth(p); unsigned qDepth = getDepth(q); while (p && pDepth > qDepth) { p = p.get_parentNode(); pDepth--; } while (q && qDepth > pDepth) { q = q.get_parentNode(); qDepth--; } assert(pDepth == qDepth); while (p && q && p.get_parentNode() != q.get_parentNode()) { p = p.get_parentNode(); q = q.get_parentNode(); } } firstS = p; lastS = q; } static DOM::Node leftmostChild(const DOM::Node& node) { if (!node) return node; DOM::Node firstChild = node.get_firstChild(); if (!firstChild) return node; return leftmostChild(firstChild); } static DOM::Node rightmostChild(const DOM::Node& node) { if (!node) return node; DOM::Node lastChild = node.get_lastChild(); if (!lastChild) return node; return rightmostChild(lastChild); } static DOM::Node leftSibling(const DOM::Node& node) { DOM::Node p = node; if (!p) return p; while (p.get_parentNode() && p.get_parentNode().get_firstChild() == p) p = p.get_parentNode(); if (!p.get_parentNode()) return DOM::Node(0); DOM::Node prevSibling = p.get_previousSibling(); assert(prevSibling); return rightmostChild(prevSibling); } static DOM::Node rightSibling(const DOM::Node& node) { DOM::Node p = node; if (!p) return p; DOM::Node firstChild = p.get_firstChild(); if (firstChild) return firstChild; while (p.get_parentNode() && p.get_parentNode().get_lastChild() == p) p = p.get_parentNode(); if (!p.get_parentNode()) return DOM::Node(0); DOM::Node nextSibling = p.get_nextSibling(); assert(nextSibling); return leftmostChild(nextSibling); } extern "C" GdomeElement* find_common_ancestor(GdomeElement* first, GdomeElement* last) { DOM::Element p(first); DOM::Element q(last); return gdome_cast_el(findCommonAncestor(p, q).gdome_object()); } extern "C" GdomeElement* find_self_or_ancestor(GdomeElement* elem, const char* uri, const char* name) { DOM::Element el(elem); while (el && (el.get_namespaceURI() != uri || el.get_localName() != name)) el = el.get_parentNode(); return gdome_cast_el(el.gdome_object()); } extern "C" GdomeElement* find_action_element(GdomeElement* elem) { for (DOM::Element el(elem); el; el = el.get_parentNode()) if ((el.get_namespaceURI() == MATHML_NS_URI && el.get_localName() == "maction") || (el.get_namespaceURI() == BOXML_NS_URI && el.get_localName() == "action")) return gdome_cast_el(el.gdome_object()); return NULL; } extern "C" void action_toggle(GdomeElement* elem) { DOM::Element el(elem); guint idx; if (el.hasAttribute("selection")) idx = atoi(std::string(el.getAttribute("selection")).c_str()); else idx = 1; idx++; std::ostringstream os; os << idx; el.setAttribute("selection", os.str()); } extern "C" void find_common_siblings(GdomeElement* first, GdomeElement* last, GdomeElement** firstS, GdomeElement** lastS) { DOM::Element fs(0); DOM::Element ls(0); findCommonSiblings(DOM::Element(first), DOM::Element(last), fs, ls); if (firstS != NULL) *firstS = gdome_cast_el(fs.gdome_object()); if (lastS != NULL) *lastS = gdome_cast_el(ls.gdome_object()); } static DOM::Element findElementWithAttribute(const DOM::Element& elem, const std::string& name) { DOM::Element el(elem); while (el && !el.hasAttribute(name)) el = el.get_parentNode(); return el; } static DOM::Element findElementWithAttributeNS(const DOM::Element& elem, const std::string& ns_uri, const std::string& name) { DOM::Element el(elem); while (el && !el.hasAttributeNS(ns_uri, name)) el = el.get_parentNode(); return el; } extern "C" GdomeElement* find_xref_element(GdomeElement* elem) { DOM::Element el = findElementWithAttribute(DOM::Element(elem), "xref"); return gdome_cast_el(el.gdome_object()); } extern "C" GdomeDOMString* find_hyperlink(GdomeElement* elem, const char* ns_uri, const char* name) { DOM::Element el = findElementWithAttributeNS(DOM::Element(elem), ns_uri, name); if (el) return el.getAttributeNS(ns_uri, name).gdome_str(); else return NULL; } extern "C" void delete_element(GdomeElement* elem) { DOM::Element p(elem); DOM::Element parent = p.get_parentNode(); assert(parent); parent.removeChild(p); } gtkmathview-0.8.0/viewer/guiGTK.h0000644000175000017500000000256310661271105013603 00000000000000/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef guiGTK_h #define guiGTK_h #include #ifdef __cplusplus extern "C" { #endif /* initGUI: some initialization stuff, creates the main window, sets it with a title */ void GUI_init(int*, const char***, char*, guint, guint, gint); void GUI_uninit(void); int GUI_load_document(const char*); void GUI_unload_document(void); void GUI_dump_entities(void); /* main: this is the main event loop, to be called when the program is ready to run */ void GUI_run(void); #ifdef __cplusplus } #endif #endif /* guiGTK_h */ gtkmathview-0.8.0/viewer/test_building.cc0000644000175000017500000001041110661271105015432 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . /* Generate a continued fraction that represents the square root of * the first argument (default = 2.0) to the second argument (default * = 2) levels. The third argument optional argument is a file to * save the resulting xml to. */ #include #include "gtkmathview_libxml2.h" #include #include #include #include int main(int argc, char *argv[]) { gtk_init (&argc, &argv); GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_show (window); g_signal_connect(GTK_OBJECT(window), "delete_event", (GtkSignalFunc) gtk_main_quit, NULL); GtkWidget* math_view = gtk_math_view_new(NULL, NULL); /* * Creates a new document, a node and set it as a root node */ xmlDocPtr doc = xmlNewDoc(BAD_CAST "1.0"); xmlNodePtr root_node = xmlNewNode(NULL, BAD_CAST "math"); xmlDocSetRootElement(doc, root_node); // gtk_math_view_load_document is very picky about the namespace // used, so we have to make sure we set the ns for the document. xmlNsPtr ns = xmlNewNs(root_node, BAD_CAST "http://www.w3.org/1998/Math/MathML", BAD_CAST "m"); xmlNewProp(root_node, BAD_CAST "display" , BAD_CAST "block"); xmlSetNs(root_node, ns); /* * xmlNewChild() creates a new node, which is "attached" as child node * of root_node node. */ /* Here is the sort of mathml we want to generate. 1 + 1 1 + 1 1 + ... */ double rootand = 2; if(argc > 1) { sscanf(argv[1], "%lf", &rootand); } // We could just let a = 1 and b = rootand - 1, but this is more fun. double a = trunc(sqrt(rootand)); double b = rootand - a*a; printf("rooting %g (%g^2 + %g)\n", rootand, a, b); char rootand_str[256], a_str[256], b_str[256]; sprintf(rootand_str, "%g", rootand); sprintf(a_str, "%g", a); sprintf(b_str, "%g", b); xmlNodePtr sqrt_node = xmlNewChild(root_node, NULL, BAD_CAST "msqrt", NULL); xmlNewChild(sqrt_node, ns, BAD_CAST "mi", BAD_CAST rootand_str); xmlNewChild(root_node, ns, BAD_CAST "mo", BAD_CAST "="); xmlNewChild(root_node, ns, BAD_CAST "mi", BAD_CAST a_str); xmlNewChild(root_node, ns, BAD_CAST "mo", BAD_CAST "+"); // Now we must create the continued fraction sprintf(rootand_str, "%g", rootand-1); xmlNodePtr node = root_node; int layers = 2; if(argc > 2) { sscanf(argv[2], "%d", &layers); } for (; --layers >= 0;) { node = xmlNewChild(node, NULL, BAD_CAST "mfrac", NULL); xmlNewChild(node, ns, BAD_CAST "mi", BAD_CAST b_str); xmlNodePtr denom = xmlNewChild(node, NULL, BAD_CAST "mrow", NULL); xmlNewChild(denom, ns, BAD_CAST "mi", BAD_CAST a_str); xmlNewChild(denom, ns, BAD_CAST "mo", BAD_CAST "+"); node = denom; } xmlNewChild(node, ns, BAD_CAST "mi", BAD_CAST "..."); // If we have a second argument, save the mathml to disk. if(argc > 3) xmlSaveFormatFileEnc(argv[3], doc, "UTF-8", 1); gtk_math_view_load_document(GTK_MATH_VIEW(math_view), doc); gtk_container_add (GTK_CONTAINER (window), math_view); gtk_widget_show (math_view); gtk_main (); /*free the document */ xmlFreeDoc(doc); /* *Free the global variables that may *have been allocated by the parser. */ xmlCleanupParser(); return 0; } gtkmathview-0.8.0/viewer/guiGTK.c0000644000175000017500000005571610661271106013607 00000000000000/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #include #include "defs.h" #include #include #include #include #include #include "gtkmathview_gmetadom.h" #include "guiGTK.h" extern GdomeDOMString* find_hyperlink(GdomeElement*, const char*, const char*); extern GdomeElement* find_xref_element(GdomeElement*); extern GdomeElement* find_common_ancestor(GdomeElement*, GdomeElement*); extern GdomeElement* find_self_or_ancestor(GdomeElement*, const char*, const char*); extern GdomeElement* find_action_element(GdomeElement*); extern void action_toggle(GdomeElement*); extern void delete_element(GdomeElement*); static GtkWidget* window; static GtkWidget* main_area; static GtkWidget* scrolled_area; static GtkWidget* status_bar; static GdkCursor* normal_cursor; static GdkCursor* link_cursor; static gboolean semantic_selection = FALSE; static gchar* doc_name = NULL; static GdomeElement* first_selected = NULL; static GdomeElement* root_selected = NULL; static GtkMathViewDefaultCursorDecorator* cursor = NULL; static guint statusbar_context; static void create_widget_set(void); static GtkWidget* get_main_menu(void); static void file_open(GtkWidget*, gpointer); static void file_re_open(GtkWidget*, gpointer); static void file_close(GtkWidget*, gpointer); static void options_set_font_size(GtkWidget*, gpointer); static void options_change_font_size(GtkWidget*, gboolean); static void options_verbosity(GtkWidget*, guint); static void options_transparent(GtkWidget*, gpointer); static void options_anti_aliased(GtkWidget*, gpointer); static void options_selection(GtkWidget*, gboolean); static void selection_delete(GtkWidget*, gpointer); static void selection_parent(GtkWidget*, gpointer); static void selection_reset(GtkWidget*, gpointer); static void help_about(GtkWidget*, gpointer); static GtkItemFactoryEntry menu_items[] = { { "/_File", NULL, NULL, 0, "", 0 }, { "/File/_Open...", "O", file_open, 0, NULL, 0 }, { "/File/_Reopen", NULL, file_re_open, 0, NULL, 0 }, { "/File/_Close", "W", file_close, 0, NULL, 0 }, { "/File/sep1", NULL, NULL, 0, "", 0 }, { "/File/_Quit", "Q", gtk_main_quit, 0, NULL, 0 }, { "/_Selection", NULL, NULL, 0, "", 0 }, { "/Selection/Reset", NULL, selection_reset, 0, NULL, 0 }, { "/Selection/Delete", NULL, selection_delete, 0, NULL, 0 }, { "/Selection/Select Parent", NULL, selection_parent, 0, NULL, 0 }, { "/_Options", NULL, NULL, 0, "", 0 }, { "/Options/Default _Font Size", NULL, NULL, 0, "", 0 }, { "/Options/Default Font Size/Set...", NULL, options_set_font_size, 0, NULL, 0 }, { "/Options/Default Font Size/sep1", NULL, NULL, 0, "", 0 }, { "/Options/Default Font Size/Larger", "2", options_change_font_size, TRUE, NULL, 0 }, { "/Options/Default Font Size/Smaller", "1", options_change_font_size, FALSE, NULL, 0 }, { "/Options/Verbosity", NULL, NULL, 0, "", 0 }, { "/Options/Verbosity/_Errors", NULL, options_verbosity, 0, "", 0 }, { "/Options/Verbosity/_Warnings", NULL, options_verbosity, 1, "/Options/Verbosity/Errors", 0 }, { "/Options/Verbosity/_Info", NULL, options_verbosity, 2, "/Options/Verbosity/Errors", 0 }, { "/Options/Verbosity/_Debug", NULL, options_verbosity, 3, "/Options/Verbosity/Errors", 0 }, { "/Options/Type 1", NULL, NULL, 0, "", 0 }, { "/Options/Type 1/_Transparent", NULL, options_transparent, TRUE, "", 0 }, { "/Options/Type 1/_Anti Aliased", NULL, options_anti_aliased, 0, "", 0 }, { "/Options/sep1", NULL, NULL, 0, "", 0 }, { "/Options/Selection/Structure", NULL, options_selection, 0, "", 0 }, { "/Options/Selection/Semantics", NULL, options_selection, 1, "/Options/Selection/Structure", 0 }, { "/_Help" , NULL, NULL, 0, "", 0 }, { "/Help/About...", NULL, help_about, 0, NULL, 0 } }; #if 0 static void quick_message(const char* msg) { GtkWidget* dialog; GtkWidget* label; GtkWidget* okay_button; /* Create the widgets */ dialog = gtk_dialog_new(); label = gtk_label_new (msg); okay_button = gtk_button_new_with_label("OK"); gtk_widget_set_usize(dialog, 300, 100); /* Ensure that the dialog box is destroyed when the user clicks ok. */ /* g_signal_connect_object(GTK_OBJECT (okay_button), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), dialog,0); gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->action_area), okay_button); */ g_signal_connect_swapped(GTK_OBJECT(okay_button), "clicked", G_CALLBACK(gtk_widget_destroy), dialog); /* Add the label, and show everything we've added to the dialog. */ gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_widget_show_all (dialog); } static void load_error_msg(const char* name) { char* msg = g_strdup_printf("Could not load\n`%s'", name); quick_message(msg); g_free(msg); } #endif void GUI_init(int* argc, const char*** argv, char* title, guint width, guint height, gint logLevel) { gtk_init(argc, argv); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(window), title); gtk_window_set_default_size(GTK_WINDOW(window), width, height); g_signal_connect(GTK_OBJECT(window), "delete_event", (GtkSignalFunc) gtk_main_quit, NULL); create_widget_set(); g_assert(main_area != NULL); g_assert(GTK_IS_MATH_VIEW(main_area)); gtk_math_view_set_log_verbosity(GTK_MATH_VIEW(main_area), logLevel); gtk_widget_show(window); normal_cursor = gdk_cursor_new(GDK_TOP_LEFT_ARROW); link_cursor = gdk_cursor_new(GDK_HAND2); } void GUI_uninit() { /*gtk_widget_unref(GTK_WIDGET(window));*/ } int GUI_load_document(const char* name) { GtkMathView* math_view; g_return_val_if_fail(name != NULL, -1); g_return_val_if_fail(main_area != NULL, -1); g_return_val_if_fail(GTK_IS_MATH_VIEW(main_area), -1); math_view = GTK_MATH_VIEW(main_area); gtk_math_view_load_uri(math_view, name); if (name != doc_name) { if (doc_name != NULL) g_free(doc_name); doc_name = g_strdup(name); } gtk_statusbar_pop(GTK_STATUSBAR(status_bar), statusbar_context); if (strlen(name) > 40) name += strlen(name) - 40; gtk_statusbar_push(GTK_STATUSBAR(status_bar), statusbar_context, name); return 0; } void GUI_unload_document() { GtkMathView* math_view; g_return_if_fail(main_area != NULL); g_return_if_fail(GTK_IS_MATH_VIEW(main_area)); math_view = GTK_MATH_VIEW(main_area); gtk_math_view_unload(math_view); if (doc_name != NULL) g_free(doc_name); doc_name = NULL; gtk_statusbar_pop(GTK_STATUSBAR(status_bar), statusbar_context); gtk_statusbar_push(GTK_STATUSBAR(status_bar), statusbar_context, ""); } void GUI_run() { gtk_main(); } static void store_filename(GtkFileSelection* selector, GtkWidget* user_data) { const gchar* selected_filename = gtk_file_selection_get_filename (GTK_FILE_SELECTION(user_data)); if (selected_filename != NULL) GUI_load_document(selected_filename); } static void file_close(GtkWidget* widget, gpointer data) { GUI_unload_document(); } static void file_re_open(GtkWidget* widget, gpointer data) { if (doc_name != NULL) { GUI_load_document(doc_name); } } static void file_open(GtkWidget* widget, gpointer data) { GtkWidget* fs = gtk_file_selection_new("Open File"); g_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION(fs)->ok_button), "clicked", GTK_SIGNAL_FUNC(store_filename), (gpointer) fs); /* Ensure that the dialog box is destroyed when the user clicks a button. */ g_signal_connect_swapped(GTK_OBJECT (GTK_FILE_SELECTION(fs)->ok_button), "clicked", G_CALLBACK(gtk_widget_destroy), (gpointer) fs); /* gtk_signal_connect_object(GTK_OBJECT (GTK_FILE_SELECTION(fs)->cancel_button), "clicked", GTK_SIGNAL_FUNC (gtk_widget_destroy), (gpointer) fs); */ g_signal_connect_swapped(GTK_OBJECT(GTK_FILE_SELECTION(fs)->cancel_button), "clicked", G_CALLBACK(gtk_widget_destroy), (gpointer) fs); /* Display that dialog */ gtk_widget_show (fs); } static void options_verbosity(GtkWidget* widget, guint level) { gtk_math_view_set_log_verbosity(GTK_MATH_VIEW(main_area), level); } static void options_transparent(GtkWidget* widget, gpointer data) { GtkMathView* math_view = GTK_MATH_VIEW(main_area); g_return_if_fail(math_view != NULL); gtk_math_view_set_t1_opaque_mode(math_view, !gtk_math_view_get_t1_opaque_mode(math_view)); } static void options_anti_aliased(GtkWidget* widget, gpointer data) { GtkMathView* math_view = GTK_MATH_VIEW(main_area); g_return_if_fail(math_view != NULL); gtk_math_view_set_t1_anti_aliased_mode(math_view, !gtk_math_view_get_t1_anti_aliased_mode(math_view)); } static void options_selection(GtkWidget* widget, gboolean semantic) { semantic_selection = semantic; selection_reset(widget, NULL); } static void selection_delete(GtkWidget* widget, gpointer data) { if (root_selected != NULL) { GdomeException exc; gtk_math_view_freeze(GTK_MATH_VIEW(main_area)); delete_element(root_selected); gdome_el_unref(root_selected, &exc); g_assert(exc == 0); root_selected = NULL; gtk_math_view_thaw(GTK_MATH_VIEW(main_area)); } } static void selection_parent(GtkWidget* widget, gpointer data) { if (root_selected != NULL) { GdomeException exc = 0; GdomeElement* parent = (GdomeElement*) gdome_n_parentNode((GdomeNode*) root_selected, &exc); g_assert(exc == 0); gdome_el_unref(root_selected, &exc); g_assert(exc == 0); root_selected = parent; gtk_math_view_select(GTK_MATH_VIEW(main_area), root_selected); } } static void selection_reset(GtkWidget* widget, gpointer data) { if (root_selected != NULL) { GdomeException exc = 0; gtk_math_view_unselect(GTK_MATH_VIEW(main_area), root_selected); gdome_el_unref(root_selected, &exc); g_assert(exc == 0); root_selected = NULL; } } static void help_about(GtkWidget* widget, gpointer data) { GtkWidget* dialog; GtkWidget* label; GtkWidget* ok; dialog = gtk_dialog_new(); label = gtk_label_new("\n MathML Viewer \n Copyright (C) 2000-2004 Luca Padovani \n"); ok = gtk_button_new_with_label("Close"); /* gtk_signal_connect_object (GTK_OBJECT (ok), "clicked", GTK_SIGNAL_FUNC (gtk_widget_destroy), (gpointer) dialog); */ g_signal_connect_swapped(GTK_OBJECT(ok), "clicked", G_CALLBACK(gtk_widget_destroy), (gpointer) dialog); gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->action_area), ok); gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_widget_show_all (dialog); } static void change_default_font_size(GtkSpinButton* widget, GtkSpinButton* spin) { g_return_if_fail(spin != NULL); gtk_math_view_set_font_size( GTK_MATH_VIEW(main_area), gtk_spin_button_get_value_as_int(spin)); } static void options_change_font_size(GtkWidget* widget, gboolean larger) { gfloat size = gtk_math_view_get_font_size (GTK_MATH_VIEW(main_area)); if (larger) size = size / 0.71; else size = size * 0.71; if (size < 1) size = 1; gtk_math_view_set_font_size (GTK_MATH_VIEW(main_area), (gint) size + 0.5); } static void options_set_font_size(GtkWidget* widget, gpointer data) { GtkWidget* dialog; GtkWidget* label; GtkWidget* ok; GtkWidget* cancel; GtkWidget* spin; GtkObject* adj; dialog = gtk_dialog_new(); label = gtk_label_new("Default font size:"); ok = gtk_button_new_with_label("OK"); cancel = gtk_button_new_with_label("Cancel"); adj = gtk_adjustment_new (gtk_math_view_get_font_size (GTK_MATH_VIEW(main_area)), 1, 200, 1, 1, 1); spin = gtk_spin_button_new (GTK_ADJUSTMENT(adj), 1, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spin), TRUE); /* gtk_signal_connect (GTK_OBJECT (ok), "clicked", GTK_SIGNAL_FUNC (change_default_font_size), (gpointer) spin); */ g_signal_connect(GTK_OBJECT(ok), "clicked", G_CALLBACK(change_default_font_size), (gpointer) spin); /* gtk_signal_connect_object (GTK_OBJECT (ok), "clicked", GTK_SIGNAL_FUNC (gtk_widget_destroy), (gpointer) dialog); */ g_signal_connect_swapped(GTK_OBJECT (ok), "clicked", G_CALLBACK(gtk_widget_destroy), (gpointer) dialog); /* gtk_signal_connect_object (GTK_OBJECT (ok), "clicked", GTK_SIGNAL_FUNC (gtk_widget_destroy), (gpointer) dialog);*/ /* gtk_signal_connect_object (GTK_OBJECT (cancel), "clicked", GTK_SIGNAL_FUNC (gtk_widget_destroy), (gpointer) dialog); */ g_signal_connect_swapped(GTK_OBJECT (cancel), "clicked", G_CALLBACK(gtk_widget_destroy), (gpointer) dialog); gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), 5); gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->action_area), ok); gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->action_area), cancel); gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), spin); gtk_widget_show_all (dialog); } #if defined(HAVE_GMETADOM) static void element_over(GtkMathView* math_view, const GtkMathViewModelEvent* event) { GdomeElement* action = NULL; GdomeDOMString* link = NULL; g_return_if_fail(math_view != NULL); g_return_if_fail(GTK_IS_MATH_VIEW(math_view)); g_return_if_fail(event != NULL); link = find_hyperlink(event->id, XLINK_NS_URI, "href"); if (link != NULL) gdk_window_set_cursor(GTK_WIDGET(math_view)->window, link_cursor); else gdk_window_set_cursor(GTK_WIDGET(math_view)->window, normal_cursor); if (link != NULL) gdome_str_unref(link); action = find_action_element(event->id); #if 0 if (action != NULL) { GdomeException exc = 0; gtk_math_view_decor_default_cursor_set(cursor, TRUE, action, TRUE, -1, FALSE); gdome_el_unref(action, &exc); g_assert(exc == 0); } #endif } static void select_begin(GtkMathView* math_view, const GtkMathViewModelEvent* event) { g_return_if_fail(math_view != NULL); g_return_if_fail(GTK_IS_MATH_VIEW(math_view)); g_return_if_fail(event != NULL); if (event->id != NULL) { GdomeException exc = 0; gtk_math_view_freeze(math_view); if (root_selected != NULL) { gtk_math_view_unselect(math_view, root_selected); gdome_el_unref(root_selected, &exc); g_assert(exc == 0); root_selected = NULL; } if (semantic_selection) { GdomeElement* new_elem = find_xref_element(event->id); if (new_elem != NULL) { gdome_el_ref(new_elem, &exc); g_assert(exc == 0); } first_selected = root_selected = new_elem; } else { gdome_el_ref(event->id, &exc); g_assert(exc == 0); gdome_el_ref(event->id, &exc); g_assert(exc == 0); first_selected = root_selected = event->id; } if (root_selected != NULL) gtk_math_view_select(math_view, root_selected); gtk_math_view_thaw(math_view); } } static void select_over(GtkMathView* math_view, const GtkMathViewModelEvent* event) { g_return_if_fail(math_view != NULL); g_return_if_fail(GTK_IS_MATH_VIEW(math_view)); g_return_if_fail(event != NULL); if (first_selected != NULL && event->id != NULL) { GdomeException exc = 0; gtk_math_view_freeze(math_view); if (root_selected != NULL) { gtk_math_view_unselect(math_view, root_selected); gdome_el_unref(root_selected, &exc); g_assert(exc == 0); root_selected = NULL; } if (semantic_selection) { GdomeElement* new_root = find_common_ancestor(first_selected, event->id); if (new_root != NULL) { root_selected = find_xref_element(new_root); gdome_el_unref(new_root, &exc); g_assert(exc == 0); } else root_selected = NULL; } else root_selected = find_common_ancestor(first_selected, event->id); while (root_selected != NULL && !gtk_math_view_select(math_view, root_selected)) { GdomeElement* new_root = (GdomeElement*) gdome_el_parentNode(root_selected, &exc); g_assert(exc == 0); gdome_el_unref(root_selected, &exc); g_assert(exc == 0); root_selected = new_root; } gtk_math_view_thaw(math_view); } } static void select_end(GtkMathView* math_view, const GtkMathViewModelEvent* event) { g_return_if_fail(math_view != NULL); g_return_if_fail(GTK_IS_MATH_VIEW(math_view)); g_return_if_fail(event != NULL); if (first_selected != NULL) { GdomeException exc = 0; gdome_el_unref(first_selected, &exc); g_assert(exc == 0); first_selected = NULL; } } static void select_abort(GtkMathView* math_view) { GdomeException exc = 0; g_return_if_fail(math_view != NULL); g_return_if_fail(GTK_IS_MATH_VIEW(math_view)); if (first_selected != NULL) { gdome_el_unref(first_selected, &exc); g_assert(exc == 0); first_selected = NULL; } if (root_selected != NULL) { gtk_math_view_freeze(math_view); gtk_math_view_unselect(math_view, root_selected); gtk_math_view_thaw(math_view); gdome_el_unref(root_selected, &exc); g_assert(exc == 0); root_selected = NULL; } } static void click(GtkMathView* math_view, const GtkMathViewModelEvent* event) { gboolean res; gint index; GdomeElement* elem; GdomeException exc; GdomeDOMString* name; GdomeDOMString* ns_uri; GdomeElement* p; gint w, h; gtk_math_view_get_size(math_view, &w, &h); printf("click signal %d %d\n", w, h); g_return_if_fail(math_view != NULL); g_return_if_fail(event != NULL); #if 1 index = -1; if (gtk_math_view_get_char_at(math_view, event->x, event->y, &elem, &index, NULL, NULL)) gtk_math_view_decor_default_cursor_set(cursor, TRUE, event->id, TRUE, index, TRUE); else gtk_math_view_decor_default_cursor_set(cursor, FALSE, NULL, FALSE, -1, FALSE); #endif if (event->id != NULL) { name = gdome_el_nodeName(event->id, &exc); g_assert(exc == 0); printf("node name: %s\n", name->str); } if (event->id != NULL) { GdomeElement* action; GdomeDOMString* href = find_hyperlink(event->id, XLINK_NS_URI, "href"); if (href != NULL) { printf("hyperlink %s\n", href->str); gdome_str_unref(href); } action = find_action_element(event->id); printf("action? %p\n", action); if (action != NULL) { gtk_math_view_freeze(math_view); action_toggle(action); gtk_math_view_thaw(math_view); gdome_el_unref(action, &exc); g_assert(exc == 0); return; } } if (root_selected != NULL) { gtk_math_view_freeze(math_view); gtk_math_view_unselect(math_view, root_selected); gtk_math_view_thaw(math_view); gdome_el_unref(root_selected, &exc); g_assert(exc == 0); root_selected = NULL; } } #endif // HAVE_GMETADOM static gboolean cursor_blink(GtkMathViewDefaultCursorDecorator* cursor) { gboolean enabled; GdomeElement* focus; gboolean draw_focus; gint index; gboolean char_index; g_return_val_if_fail(cursor != NULL, FALSE); gtk_math_view_decor_default_cursor_get(cursor, &enabled, &focus, &draw_focus, &index, &char_index); gtk_math_view_decor_default_cursor_set(cursor, !enabled, focus, draw_focus, index, char_index); return TRUE; } static void create_widget_set() { GtkWidget* main_vbox; GtkWidget* menu_bar; main_vbox = gtk_vbox_new(FALSE, 1); gtk_container_border_width(GTK_CONTAINER(main_vbox), 1); gtk_container_add(GTK_CONTAINER(window), main_vbox); gtk_widget_show(main_vbox); menu_bar = get_main_menu(); gtk_box_pack_start(GTK_BOX(main_vbox), menu_bar, FALSE, TRUE, 0); gtk_widget_show(menu_bar); scrolled_area = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_area), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolled_area), GTK_SHADOW_IN); gtk_widget_show(scrolled_area); gtk_box_pack_start(GTK_BOX(main_vbox), scrolled_area, TRUE, TRUE, 0); main_area = gtk_math_view_new(NULL, NULL); gtk_widget_show(main_area); gtk_container_add(GTK_CONTAINER(scrolled_area), main_area); gtk_widget_set_double_buffered(main_area, FALSE); g_signal_connect(GTK_OBJECT (main_area), "select_begin", G_CALLBACK(select_begin), (gpointer) main_area); g_signal_connect(GTK_OBJECT (main_area), "select_over", G_CALLBACK(select_over), (gpointer) main_area); g_signal_connect(GTK_OBJECT (main_area), "select_end", G_CALLBACK(select_end), (gpointer) main_area); g_signal_connect(GTK_OBJECT (main_area), "select_abort", G_CALLBACK(select_abort), (gpointer) main_area); g_signal_connect(GTK_OBJECT (main_area), "element_over", G_CALLBACK(element_over), (gpointer) main_area); g_signal_connect(GTK_OBJECT (main_area), "click", G_CALLBACK(click), (gpointer) main_area); cursor = gtk_math_view_decor_default_cursor_new(GTK_MATH_VIEW(main_area)); g_timeout_add(500, cursor_blink, cursor); status_bar = gtk_statusbar_new(); gtk_widget_show(status_bar); gtk_box_pack_start(GTK_BOX(main_vbox), status_bar, FALSE, TRUE, 0); statusbar_context = gtk_statusbar_get_context_id(GTK_STATUSBAR(status_bar), "filename"); gtk_widget_show(main_vbox); } GtkWidget* get_main_menu() { GtkItemFactory* item_factory; GtkAccelGroup* accel_group; gint nmenu_items = sizeof(menu_items) / sizeof(menu_items[0]); accel_group = gtk_accel_group_new(); item_factory = gtk_item_factory_new(GTK_TYPE_MENU_BAR, "
", accel_group); gtk_item_factory_create_items(item_factory, nmenu_items, menu_items, NULL); gtk_window_add_accel_group(GTK_WINDOW(window), accel_group); return gtk_item_factory_get_widget(item_factory, "
"); } gtkmathview-0.8.0/viewer/Makefile.am0000644000175000017500000000546210661271105014335 00000000000000 NULL = bin_PROGRAMS = $(NULL) if COND_GMETADOM bin_PROGRAMS += mathmlviewer endif noinst_PROGRAMS = $(NULL) if COND_GMETADOM if COND_PROFILE noinst_PROGRAMS += mathmlviewer.static endif endif if COND_LIBXML2 noinst_PROGRAMS += test_embedding noinst_PROGRAMS += test_loading noinst_PROGRAMS += test_building noinst_PROGRAMS += test_rendering endif if COND_LIBXML2_READER noinst_PROGRAMS += test_loading_reader endif noinst_HEADERS = guiGTK.h mathmlviewer_static_SOURCES = main.cc aux.cc guiGTK.c mathmlviewer_static_LDFLAGS = -no-install -static mathmlviewer_static_LDADD = \ $(POPT_LIBS) \ $(DOM_LIBS) \ $(GTK_LIBS) \ $(top_builddir)/src/widget/libgtkmathview_gmetadom.la \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(NULL) mathmlviewer_SOURCES = main.cc aux.cc guiGTK.c mathmlviewer_LDADD = \ $(POPT_LIBS) \ $(DOM_LIBS) \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(top_builddir)/src/widget/libgtkmathview_gmetadom.la \ $(NULL) test_embedding_SOURCES = test_embedding.c dummy.cc test_embedding_LDFLAGS = -no-install -static test_embedding_LDADD = \ -lstdc++ \ $(XML_LIBS) \ $(GTK_LIBS) \ $(top_builddir)/src/widget/libgtkmathview_libxml2.la \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(NULL) test_loading_SOURCES = test_loading.c dummy.cc test_loading_LDFLASG = -no-install -static test_loading_LDADD = \ -lstdc++ \ $(XML_LIBS) \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(top_builddir)/src/widget/libgtkmathview_libxml2.la \ $(NULL) test_building_SOURCES = test_building.cc test_building_LDFLASG = -no-install -static test_building_LDADD = \ -lstdc++ \ $(XML_LIBS) \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(top_builddir)/src/widget/libgtkmathview_libxml2.la \ $(NULL) test_rendering_SOURCES = test_rendering.cc test_rendering_LDFLASG = -no-install -static test_rendering_LDADD = \ -lstdc++ \ $(XML_LIBS) \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(GLIB_LIBS) \ $(top_builddir)/src/backend/gtk/libmathview_backend_gtk.la \ $(top_builddir)/src/view/libmathview_frontend_libxml2.la \ $(NULL) test_loading_reader_SOURCES = test_loading_reader.c test_loading_reader_LDFLASG = -no-install -static test_loading_reader_LDADD = \ -lstdc++ \ $(XML_LIBS) \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(top_builddir)/src/widget/libgtkmathview_libxml2_reader.la \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto/ \ -I$(top_srcdir)/src/common/ \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/frontend/gmetadom/ \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/widget \ -I$(top_srcdir)/src/view \ -I$(top_srcdir)/src/backend/common/ \ -I$(top_srcdir)/src/backend/gtk/ \ $(POPT_CFLAGS) \ $(GTK_CFLAGS) \ $(XML_CFLAGS) \ $(DOM_CFLAGS) \ $(XML_CFLAGS) \ $(NULL) gtkmathview-0.8.0/viewer/dummy.cc0000644000175000017500000000216210661271105013735 00000000000000// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . // this file is just needed to make sure that when linking libmathview.la // libtool uses the g++ compiler, not gcc. This way linking will not // yield errors related to undefined symbols. It is a dirty hack, but it // works (and it is also unofficially recommended on some mailing lists) gtkmathview-0.8.0/viewer/test_embedding.c0000644000175000017500000000612310661271106015416 00000000000000/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #include #include "gtkmathview_libxml2.h" int main(int argc, char *argv[]) { GtkWidget *window; GtkTextBuffer* buffer; GtkTextIter start, end; GtkWidget* text_view; GtkWidget* math_view; GtkTextChildAnchor* math_anchor; GtkTextTag* rise_tag; GtkMathViewBoundingBox math_box; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_show (window); g_signal_connect(GTK_OBJECT(window), "delete_event", (GtkSignalFunc) gtk_main_quit, NULL); buffer = gtk_text_buffer_new(NULL); gtk_text_buffer_set_text(GTK_TEXT_BUFFER(buffer), "This kind of annotation is useful when something other than the \ default rendering of the content encoding is desired. For example, by \ default, some renderers might layout the integrand something like \ . Specifying that the integrand should by preference \ render as \"dx/x\" instead can be accomplished with the use of a \ MathML Presentation annotation as shown. Be aware, however, that \ renderers are not required to take into account information contained \ in annotations, and what use is made of them, if any, will depend on \ the renderer.", -1); gtk_text_buffer_get_iter_at_offset(buffer, &start, 199); math_anchor = gtk_text_buffer_create_child_anchor(buffer, &start); text_view = gtk_text_view_new_with_buffer(buffer); gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text_view), GTK_WRAP_WORD); math_view = gtk_math_view_new(NULL, NULL); gtk_math_view_load_uri(GTK_MATH_VIEW(math_view), "mini.xml"); #if 0 gtk_math_view_set_cursor(GTK_MATH_VIEW(math_view), root, 0); gtk_math_view_set_cursor_visible(GTK_MATH_VIEW(math_view), GTKMATHVIEW_CURSOR_FOCUS_ON); #endif gtk_math_view_get_bounding_box(GTK_MATH_VIEW(math_view), &math_box); gtk_text_buffer_get_iter_at_offset(buffer, &start, 199); gtk_text_buffer_get_iter_at_offset(buffer, &end, 200); rise_tag = gtk_text_buffer_create_tag(buffer, NULL, "rise", -PANGO_SCALE * math_box.depth, NULL); gtk_text_buffer_apply_tag(buffer, rise_tag, &start, &end); gtk_text_view_add_child_at_anchor(GTK_TEXT_VIEW(text_view), math_view, math_anchor); gtk_container_add (GTK_CONTAINER (window), text_view); gtk_widget_show (text_view); gtk_widget_show (math_view); gtk_main (); return 0; } gtkmathview-0.8.0/viewer/Makefile.in0000644000175000017500000006372410704610561014354 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) @COND_GMETADOM_TRUE@am__append_1 = mathmlviewer noinst_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_3) $(am__EXEEXT_4) \ $(am__EXEEXT_5) @COND_GMETADOM_TRUE@@COND_PROFILE_TRUE@am__append_2 = mathmlviewer.static @COND_LIBXML2_TRUE@am__append_3 = test_embedding test_loading \ @COND_LIBXML2_TRUE@ test_building test_rendering @COND_LIBXML2_READER_TRUE@am__append_4 = test_loading_reader subdir = viewer DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__EXEEXT_1 = @COND_GMETADOM_TRUE@am__EXEEXT_2 = mathmlviewer$(EXEEXT) am__installdirs = "$(DESTDIR)$(bindir)" binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) @COND_GMETADOM_TRUE@@COND_PROFILE_TRUE@am__EXEEXT_3 = mathmlviewer.static$(EXEEXT) @COND_LIBXML2_TRUE@am__EXEEXT_4 = test_embedding$(EXEEXT) \ @COND_LIBXML2_TRUE@ test_loading$(EXEEXT) \ @COND_LIBXML2_TRUE@ test_building$(EXEEXT) \ @COND_LIBXML2_TRUE@ test_rendering$(EXEEXT) @COND_LIBXML2_READER_TRUE@am__EXEEXT_5 = test_loading_reader$(EXEEXT) PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS) am_mathmlviewer_OBJECTS = main.$(OBJEXT) aux.$(OBJEXT) \ guiGTK.$(OBJEXT) mathmlviewer_OBJECTS = $(am_mathmlviewer_OBJECTS) am__DEPENDENCIES_1 = mathmlviewer_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(top_builddir)/src/widget/libgtkmathview_gmetadom.la \ $(am__DEPENDENCIES_1) am_mathmlviewer_static_OBJECTS = main.$(OBJEXT) aux.$(OBJEXT) \ guiGTK.$(OBJEXT) mathmlviewer_static_OBJECTS = $(am_mathmlviewer_static_OBJECTS) mathmlviewer_static_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(top_builddir)/src/widget/libgtkmathview_gmetadom.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) am_test_building_OBJECTS = test_building.$(OBJEXT) test_building_OBJECTS = $(am_test_building_OBJECTS) test_building_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) \ $(top_builddir)/src/widget/libgtkmathview_libxml2.la \ $(am__DEPENDENCIES_1) am_test_embedding_OBJECTS = test_embedding.$(OBJEXT) dummy.$(OBJEXT) test_embedding_OBJECTS = $(am_test_embedding_OBJECTS) test_embedding_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) \ $(top_builddir)/src/widget/libgtkmathview_libxml2.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) am_test_loading_OBJECTS = test_loading.$(OBJEXT) dummy.$(OBJEXT) test_loading_OBJECTS = $(am_test_loading_OBJECTS) test_loading_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) \ $(top_builddir)/src/widget/libgtkmathview_libxml2.la \ $(am__DEPENDENCIES_1) am_test_loading_reader_OBJECTS = test_loading_reader.$(OBJEXT) test_loading_reader_OBJECTS = $(am_test_loading_reader_OBJECTS) test_loading_reader_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) \ $(top_builddir)/src/widget/libgtkmathview_libxml2_reader.la \ $(am__DEPENDENCIES_1) am_test_rendering_OBJECTS = test_rendering.$(OBJEXT) test_rendering_OBJECTS = $(am_test_rendering_OBJECTS) test_rendering_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(top_builddir)/src/backend/gtk/libmathview_backend_gtk.la \ $(top_builddir)/src/view/libmathview_frontend_libxml2.la \ $(am__DEPENDENCIES_1) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(mathmlviewer_SOURCES) $(mathmlviewer_static_SOURCES) \ $(test_building_SOURCES) $(test_embedding_SOURCES) \ $(test_loading_SOURCES) $(test_loading_reader_SOURCES) \ $(test_rendering_SOURCES) DIST_SOURCES = $(mathmlviewer_SOURCES) $(mathmlviewer_static_SOURCES) \ $(test_building_SOURCES) $(test_embedding_SOURCES) \ $(test_loading_SOURCES) $(test_loading_reader_SOURCES) \ $(test_rendering_SOURCES) HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AREAMODEL_VERSION_INFO = @AREAMODEL_VERSION_INFO@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHAR_UNSIGNED = @CHAR_UNSIGNED@ COND_BOXML_FALSE = @COND_BOXML_FALSE@ COND_BOXML_TRUE = @COND_BOXML_TRUE@ COND_CUSTOM_READER_FALSE = @COND_CUSTOM_READER_FALSE@ COND_CUSTOM_READER_TRUE = @COND_CUSTOM_READER_TRUE@ COND_GMETADOM_FALSE = @COND_GMETADOM_FALSE@ COND_GMETADOM_TRUE = @COND_GMETADOM_TRUE@ COND_GTK_FALSE = @COND_GTK_FALSE@ COND_GTK_TRUE = @COND_GTK_TRUE@ COND_HAVE_POPT_FALSE = @COND_HAVE_POPT_FALSE@ COND_HAVE_POPT_TRUE = @COND_HAVE_POPT_TRUE@ COND_LIBXML2_FALSE = @COND_LIBXML2_FALSE@ COND_LIBXML2_READER_FALSE = @COND_LIBXML2_READER_FALSE@ COND_LIBXML2_READER_TRUE = @COND_LIBXML2_READER_TRUE@ COND_LIBXML2_TRUE = @COND_LIBXML2_TRUE@ COND_PROFILE_FALSE = @COND_PROFILE_FALSE@ COND_PROFILE_TRUE = @COND_PROFILE_TRUE@ COND_PS_FALSE = @COND_PS_FALSE@ COND_PS_TRUE = @COND_PS_TRUE@ COND_SVG_FALSE = @COND_SVG_FALSE@ COND_SVG_TRUE = @COND_SVG_TRUE@ COND_T1LIB_FALSE = @COND_T1LIB_FALSE@ COND_T1LIB_TRUE = @COND_T1LIB_TRUE@ COND_TFM_FALSE = @COND_TFM_FALSE@ COND_TFM_LEVEL_1_FALSE = @COND_TFM_LEVEL_1_FALSE@ COND_TFM_LEVEL_1_TRUE = @COND_TFM_LEVEL_1_TRUE@ COND_TFM_LEVEL_2_FALSE = @COND_TFM_LEVEL_2_FALSE@ COND_TFM_LEVEL_2_TRUE = @COND_TFM_LEVEL_2_TRUE@ COND_TFM_LEVEL_3_FALSE = @COND_TFM_LEVEL_3_FALSE@ COND_TFM_LEVEL_3_TRUE = @COND_TFM_LEVEL_3_TRUE@ COND_TFM_TRUE = @COND_TFM_TRUE@ COND_XSLTPROC_FALSE = @COND_XSLTPROC_FALSE@ COND_XSLTPROC_TRUE = @COND_XSLTPROC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOM_CFLAGS = @DOM_CFLAGS@ DOM_LIBS = @DOM_LIBS@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMV_ENABLE_BOXML_CFLAGS = @GMV_ENABLE_BOXML_CFLAGS@ GMV_HAVE_EXT_HASH_MAP_CFLAGS = @GMV_HAVE_EXT_HASH_MAP_CFLAGS@ GMV_HAVE_HASH_MAP_CFLAGS = @GMV_HAVE_HASH_MAP_CFLAGS@ GREP = @GREP@ GTKMATHVIEW_SIZEOF_CHAR = @GTKMATHVIEW_SIZEOF_CHAR@ GTKMATHVIEW_SIZEOF_INT = @GTKMATHVIEW_SIZEOF_INT@ GTKMATHVIEW_SIZEOF_LONG = @GTKMATHVIEW_SIZEOF_LONG@ GTKMATHVIEW_SIZEOF_LONG_LONG = @GTKMATHVIEW_SIZEOF_LONG_LONG@ GTKMATHVIEW_SIZEOF_SHORT = @GTKMATHVIEW_SIZEOF_SHORT@ GTKMATHVIEW_SIZEOF_WCHAR_T = @GTKMATHVIEW_SIZEOF_WCHAR_T@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_XSLTPROC = @HAVE_XSLTPROC@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MATHVIEW_VERSION = @MATHVIEW_VERSION@ MATHVIEW_VERSION_INFO = @MATHVIEW_VERSION_INFO@ MINOR_VERSION = @MINOR_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOX_CFLAGS = @PANGOX_CFLAGS@ PANGOX_LIBS = @PANGOX_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POPT_CFLAGS = @POPT_CFLAGS@ POPT_LIBS = @POPT_LIBS@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ T1_CFLAGS = @T1_CFLAGS@ T1_LIBS = @T1_LIBS@ T1_LIBS_X = @T1_LIBS_X@ USE_GCC_PCH_FALSE = @USE_GCC_PCH_FALSE@ USE_GCC_PCH_TRUE = @USE_GCC_PCH_TRUE@ VERSION = @VERSION@ WITH_BINRELOC_FALSE = @WITH_BINRELOC_FALSE@ WITH_BINRELOC_TRUE = @WITH_BINRELOC_TRUE@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ NULL = noinst_HEADERS = guiGTK.h mathmlviewer_static_SOURCES = main.cc aux.cc guiGTK.c mathmlviewer_static_LDFLAGS = -no-install -static mathmlviewer_static_LDADD = \ $(POPT_LIBS) \ $(DOM_LIBS) \ $(GTK_LIBS) \ $(top_builddir)/src/widget/libgtkmathview_gmetadom.la \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(NULL) mathmlviewer_SOURCES = main.cc aux.cc guiGTK.c mathmlviewer_LDADD = \ $(POPT_LIBS) \ $(DOM_LIBS) \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(top_builddir)/src/widget/libgtkmathview_gmetadom.la \ $(NULL) test_embedding_SOURCES = test_embedding.c dummy.cc test_embedding_LDFLAGS = -no-install -static test_embedding_LDADD = \ -lstdc++ \ $(XML_LIBS) \ $(GTK_LIBS) \ $(top_builddir)/src/widget/libgtkmathview_libxml2.la \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(NULL) test_loading_SOURCES = test_loading.c dummy.cc test_loading_LDFLASG = -no-install -static test_loading_LDADD = \ -lstdc++ \ $(XML_LIBS) \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(top_builddir)/src/widget/libgtkmathview_libxml2.la \ $(NULL) test_building_SOURCES = test_building.cc test_building_LDFLASG = -no-install -static test_building_LDADD = \ -lstdc++ \ $(XML_LIBS) \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(top_builddir)/src/widget/libgtkmathview_libxml2.la \ $(NULL) test_rendering_SOURCES = test_rendering.cc test_rendering_LDFLASG = -no-install -static test_rendering_LDADD = \ -lstdc++ \ $(XML_LIBS) \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(GLIB_LIBS) \ $(top_builddir)/src/backend/gtk/libmathview_backend_gtk.la \ $(top_builddir)/src/view/libmathview_frontend_libxml2.la \ $(NULL) test_loading_reader_SOURCES = test_loading_reader.c test_loading_reader_LDFLASG = -no-install -static test_loading_reader_LDADD = \ -lstdc++ \ $(XML_LIBS) \ $(GTK_LIBS) \ $(T1_LIBS) \ $(T1_LIBS_X) \ $(top_builddir)/src/widget/libgtkmathview_libxml2_reader.la \ $(NULL) INCLUDES = \ -I$(top_builddir)/auto/ \ -I$(top_srcdir)/src/common/ \ -I$(top_srcdir)/src/common/mathvariants \ -I$(top_srcdir)/src/frontend/gmetadom/ \ -I$(top_srcdir)/src/engine/common \ -I$(top_srcdir)/src/engine/mathml \ -I$(top_srcdir)/src/engine/boxml \ -I$(top_srcdir)/src/widget \ -I$(top_srcdir)/src/view \ -I$(top_srcdir)/src/backend/common/ \ -I$(top_srcdir)/src/backend/gtk/ \ $(POPT_CFLAGS) \ $(GTK_CFLAGS) \ $(XML_CFLAGS) \ $(DOM_CFLAGS) \ $(XML_CFLAGS) \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .c .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign viewer/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign viewer/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ || test -f $$p1 \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ rm -f "$(DESTDIR)$(bindir)/$$f"; \ done clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; for p in $$list; do \ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done mathmlviewer$(EXEEXT): $(mathmlviewer_OBJECTS) $(mathmlviewer_DEPENDENCIES) @rm -f mathmlviewer$(EXEEXT) $(CXXLINK) $(mathmlviewer_LDFLAGS) $(mathmlviewer_OBJECTS) $(mathmlviewer_LDADD) $(LIBS) mathmlviewer.static$(EXEEXT): $(mathmlviewer_static_OBJECTS) $(mathmlviewer_static_DEPENDENCIES) @rm -f mathmlviewer.static$(EXEEXT) $(CXXLINK) $(mathmlviewer_static_LDFLAGS) $(mathmlviewer_static_OBJECTS) $(mathmlviewer_static_LDADD) $(LIBS) test_building$(EXEEXT): $(test_building_OBJECTS) $(test_building_DEPENDENCIES) @rm -f test_building$(EXEEXT) $(CXXLINK) $(test_building_LDFLAGS) $(test_building_OBJECTS) $(test_building_LDADD) $(LIBS) test_embedding$(EXEEXT): $(test_embedding_OBJECTS) $(test_embedding_DEPENDENCIES) @rm -f test_embedding$(EXEEXT) $(CXXLINK) $(test_embedding_LDFLAGS) $(test_embedding_OBJECTS) $(test_embedding_LDADD) $(LIBS) test_loading$(EXEEXT): $(test_loading_OBJECTS) $(test_loading_DEPENDENCIES) @rm -f test_loading$(EXEEXT) $(CXXLINK) $(test_loading_LDFLAGS) $(test_loading_OBJECTS) $(test_loading_LDADD) $(LIBS) test_loading_reader$(EXEEXT): $(test_loading_reader_OBJECTS) $(test_loading_reader_DEPENDENCIES) @rm -f test_loading_reader$(EXEEXT) $(LINK) $(test_loading_reader_LDFLAGS) $(test_loading_reader_OBJECTS) $(test_loading_reader_LDADD) $(LIBS) test_rendering$(EXEEXT): $(test_rendering_OBJECTS) $(test_rendering_DEPENDENCIES) @rm -f test_rendering$(EXEEXT) $(CXXLINK) $(test_rendering_LDFLAGS) $(test_rendering_OBJECTS) $(test_rendering_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aux.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dummy.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/guiGTK.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_building.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_embedding.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_loading.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_loading_reader.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_rendering.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool \ clean-noinstPROGRAMS mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-binPROGRAMS install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool clean-noinstPROGRAMS ctags \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-exec install-exec-am \ install-info install-info-am install-man install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-binPROGRAMS \ uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkmathview-0.8.0/viewer/test_loading.c0000644000175000017500000000264210661271106015117 00000000000000/* Copyright (C) 2000-2007, Luca Padovani . * * This file is part of GtkMathView, a flexible, high-quality rendering * engine for MathML documents. * * GtkMathView is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GtkMathView is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #include #include "gtkmathview_libxml2.h" int main(int argc, char *argv[]) { GtkWidget *window; GtkWidget* math_view; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_show (window); g_signal_connect(GTK_OBJECT(window), "delete_event", (GtkSignalFunc) gtk_main_quit, NULL); math_view = gtk_math_view_new(NULL, NULL); gtk_math_view_load_uri(GTK_MATH_VIEW(math_view), argv[1]); gtk_container_add (GTK_CONTAINER (window), math_view); gtk_widget_show (math_view); gtk_main (); return 0; }