mathematical 1.6.17 → 1.6.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/mathematical/lasem/COPYING +502 -0
- data/ext/mathematical/lasem/NEWS.md +146 -0
- data/ext/mathematical/lasem/README.md +65 -0
- data/ext/mathematical/lasem/TODO +50 -0
- data/ext/mathematical/lasem/docs/lasem-render-0.6.1 +106 -0
- data/ext/mathematical/lasem/docs/meson.build +3 -0
- data/ext/mathematical/lasem/docs/reference/lasem/building.md +32 -0
- data/ext/mathematical/lasem/docs/reference/lasem/lasem.toml.in +47 -0
- data/ext/mathematical/lasem/docs/reference/lasem/meson.build +44 -0
- data/ext/mathematical/lasem/docs/reference/lasem/overview.md +24 -0
- data/ext/mathematical/lasem/docs/reference/lasem/urlmap.js +5 -0
- data/ext/mathematical/lasem/itex2mml/COPYING.itex2MML +3 -0
- data/ext/mathematical/lasem/itex2mml/README.itex2MML +16 -0
- data/ext/mathematical/lasem/itex2mml/itex2MML.h +63 -0
- data/ext/mathematical/lasem/itex2mml/itex2MML.l +1183 -0
- data/ext/mathematical/lasem/itex2mml/itex2MML.y +2108 -0
- data/ext/mathematical/lasem/itex2mml/meson.build +17 -0
- data/ext/mathematical/lasem/lasem.doap +21 -0
- data/ext/mathematical/lasem/meson.build +46 -0
- data/ext/mathematical/lasem/meson_options.txt +5 -0
- data/ext/mathematical/lasem/org.lasem.Viewer.json +41 -0
- data/ext/mathematical/lasem/po/LINGUAS +31 -0
- data/ext/mathematical/lasem/po/POTFILES.in +195 -0
- data/ext/mathematical/lasem/po/POTFILES.skip +1 -0
- data/ext/mathematical/lasem/po/bs.po +65 -0
- data/ext/mathematical/lasem/po/cs.po +102 -0
- data/ext/mathematical/lasem/po/da.po +99 -0
- data/ext/mathematical/lasem/po/de.po +104 -0
- data/ext/mathematical/lasem/po/el.po +73 -0
- data/ext/mathematical/lasem/po/es.po +107 -0
- data/ext/mathematical/lasem/po/eu.po +66 -0
- data/ext/mathematical/lasem/po/fr.po +65 -0
- data/ext/mathematical/lasem/po/fur.po +101 -0
- data/ext/mathematical/lasem/po/gl.po +64 -0
- data/ext/mathematical/lasem/po/hu.po +105 -0
- data/ext/mathematical/lasem/po/id.po +102 -0
- data/ext/mathematical/lasem/po/it.po +104 -0
- data/ext/mathematical/lasem/po/lt.po +106 -0
- data/ext/mathematical/lasem/po/lv.po +109 -0
- data/ext/mathematical/lasem/po/meson.build +4 -0
- data/ext/mathematical/lasem/po/nb.po +62 -0
- data/ext/mathematical/lasem/po/nl.po +102 -0
- data/ext/mathematical/lasem/po/oc.po +65 -0
- data/ext/mathematical/lasem/po/pl.po +102 -0
- data/ext/mathematical/lasem/po/pt.po +77 -0
- data/ext/mathematical/lasem/po/pt_BR.po +105 -0
- data/ext/mathematical/lasem/po/ru.po +66 -0
- data/ext/mathematical/lasem/po/sl.po +117 -0
- data/ext/mathematical/lasem/po/sr.po +105 -0
- data/ext/mathematical/lasem/po/sr@latin.po +105 -0
- data/ext/mathematical/lasem/po/sv.po +105 -0
- data/ext/mathematical/lasem/po/tg.po +64 -0
- data/ext/mathematical/lasem/po/tr.po +105 -0
- data/ext/mathematical/lasem/po/zh_CN.po +100 -0
- data/ext/mathematical/lasem/src/lasemrender.c +357 -0
- data/ext/mathematical/lasem/src/lsm.c +33 -0
- data/ext/mathematical/lasem/src/lsm.h +39 -0
- data/ext/mathematical/lasem/src/lsmattributes.c +276 -0
- data/ext/mathematical/lasem/src/lsmattributes.h +75 -0
- data/ext/mathematical/lasem/src/lsmcairo.c +598 -0
- data/ext/mathematical/lasem/src/lsmcairo.h +51 -0
- data/ext/mathematical/lasem/src/lsmdebug.c +185 -0
- data/ext/mathematical/lasem/src/lsmdebug.h +73 -0
- data/ext/mathematical/lasem/src/lsmdom.h +43 -0
- data/ext/mathematical/lasem/src/lsmdomcharacterdata.c +131 -0
- data/ext/mathematical/lasem/src/lsmdomcharacterdata.h +59 -0
- data/ext/mathematical/lasem/src/lsmdomdocument.c +272 -0
- data/ext/mathematical/lasem/src/lsmdomdocument.h +75 -0
- data/ext/mathematical/lasem/src/lsmdomdocumentfragment.c +81 -0
- data/ext/mathematical/lasem/src/lsmdomdocumentfragment.h +55 -0
- data/ext/mathematical/lasem/src/lsmdomelement.c +148 -0
- data/ext/mathematical/lasem/src/lsmdomelement.h +62 -0
- data/ext/mathematical/lasem/src/lsmdomentities.c +2166 -0
- data/ext/mathematical/lasem/src/lsmdomentities.h +35 -0
- data/ext/mathematical/lasem/src/lsmdomimplementation.c +82 -0
- data/ext/mathematical/lasem/src/lsmdomimplementation.h +41 -0
- data/ext/mathematical/lasem/src/lsmdomnamednodemap.c +118 -0
- data/ext/mathematical/lasem/src/lsmdomnamednodemap.h +64 -0
- data/ext/mathematical/lasem/src/lsmdomnode.c +737 -0
- data/ext/mathematical/lasem/src/lsmdomnode.h +122 -0
- data/ext/mathematical/lasem/src/lsmdomnodelist.c +70 -0
- data/ext/mathematical/lasem/src/lsmdomnodelist.h +58 -0
- data/ext/mathematical/lasem/src/lsmdomparser.c +523 -0
- data/ext/mathematical/lasem/src/lsmdomparser.h +54 -0
- data/ext/mathematical/lasem/src/lsmdomtext.c +82 -0
- data/ext/mathematical/lasem/src/lsmdomtext.h +55 -0
- data/ext/mathematical/lasem/src/lsmdomtypes.h +44 -0
- data/ext/mathematical/lasem/src/lsmdomview.c +423 -0
- data/ext/mathematical/lasem/src/lsmdomview.h +94 -0
- data/ext/mathematical/lasem/src/lsmitex.c +79 -0
- data/ext/mathematical/lasem/src/lsmitex.h +36 -0
- data/ext/mathematical/lasem/src/lsmmathml.h +66 -0
- data/ext/mathematical/lasem/src/lsmmathmlactionelement.c +93 -0
- data/ext/mathematical/lasem/src/lsmmathmlactionelement.h +57 -0
- data/ext/mathematical/lasem/src/lsmmathmlaligngroupelement.c +102 -0
- data/ext/mathematical/lasem/src/lsmmathmlaligngroupelement.h +56 -0
- data/ext/mathematical/lasem/src/lsmmathmlalignmarkelement.c +102 -0
- data/ext/mathematical/lasem/src/lsmmathmlalignmarkelement.h +56 -0
- data/ext/mathematical/lasem/src/lsmmathmlattributes.c +219 -0
- data/ext/mathematical/lasem/src/lsmmathmlattributes.h +126 -0
- data/ext/mathematical/lasem/src/lsmmathmldocument.c +307 -0
- data/ext/mathematical/lasem/src/lsmmathmldocument.h +61 -0
- data/ext/mathematical/lasem/src/lsmmathmlelement.c +491 -0
- data/ext/mathematical/lasem/src/lsmmathmlelement.h +107 -0
- data/ext/mathematical/lasem/src/lsmmathmlencloseelement.c +142 -0
- data/ext/mathematical/lasem/src/lsmmathmlencloseelement.h +64 -0
- data/ext/mathematical/lasem/src/lsmmathmlenums.c +500 -0
- data/ext/mathematical/lasem/src/lsmmathmlenums.h +224 -0
- data/ext/mathematical/lasem/src/lsmmathmlerrorelement.c +58 -0
- data/ext/mathematical/lasem/src/lsmmathmlerrorelement.h +56 -0
- data/ext/mathematical/lasem/src/lsmmathmlfencedelement.c +180 -0
- data/ext/mathematical/lasem/src/lsmmathmlfencedelement.h +65 -0
- data/ext/mathematical/lasem/src/lsmmathmlfractionelement.c +253 -0
- data/ext/mathematical/lasem/src/lsmmathmlfractionelement.h +62 -0
- data/ext/mathematical/lasem/src/lsmmathmlglyphtableams.c +661 -0
- data/ext/mathematical/lasem/src/lsmmathmlglyphtableams.h +45 -0
- data/ext/mathematical/lasem/src/lsmmathmlitexelement.c +189 -0
- data/ext/mathematical/lasem/src/lsmmathmlitexelement.h +60 -0
- data/ext/mathematical/lasem/src/lsmmathmllayoututils.c +191 -0
- data/ext/mathematical/lasem/src/lsmmathmllayoututils.h +58 -0
- data/ext/mathematical/lasem/src/lsmmathmlmathelement.c +212 -0
- data/ext/mathematical/lasem/src/lsmmathmlmathelement.h +81 -0
- data/ext/mathematical/lasem/src/lsmmathmloperatordictionary.c +3342 -0
- data/ext/mathematical/lasem/src/lsmmathmloperatordictionary.h +55 -0
- data/ext/mathematical/lasem/src/lsmmathmloperatorelement.c +314 -0
- data/ext/mathematical/lasem/src/lsmmathmloperatorelement.h +73 -0
- data/ext/mathematical/lasem/src/lsmmathmlpaddedelement.c +137 -0
- data/ext/mathematical/lasem/src/lsmmathmlpaddedelement.h +61 -0
- data/ext/mathematical/lasem/src/lsmmathmlphantomelement.c +71 -0
- data/ext/mathematical/lasem/src/lsmmathmlphantomelement.h +56 -0
- data/ext/mathematical/lasem/src/lsmmathmlpresentationcontainer.c +43 -0
- data/ext/mathematical/lasem/src/lsmmathmlpresentationcontainer.h +54 -0
- data/ext/mathematical/lasem/src/lsmmathmlpresentationtoken.c +303 -0
- data/ext/mathematical/lasem/src/lsmmathmlpresentationtoken.h +83 -0
- data/ext/mathematical/lasem/src/lsmmathmlradicalelement.c +266 -0
- data/ext/mathematical/lasem/src/lsmmathmlradicalelement.h +71 -0
- data/ext/mathematical/lasem/src/lsmmathmlrowelement.c +58 -0
- data/ext/mathematical/lasem/src/lsmmathmlrowelement.h +56 -0
- data/ext/mathematical/lasem/src/lsmmathmlscriptelement.c +282 -0
- data/ext/mathematical/lasem/src/lsmmathmlscriptelement.h +78 -0
- data/ext/mathematical/lasem/src/lsmmathmlsemanticselement.c +84 -0
- data/ext/mathematical/lasem/src/lsmmathmlsemanticselement.h +56 -0
- data/ext/mathematical/lasem/src/lsmmathmlspaceelement.c +156 -0
- data/ext/mathematical/lasem/src/lsmmathmlspaceelement.h +60 -0
- data/ext/mathematical/lasem/src/lsmmathmlstringelement.c +123 -0
- data/ext/mathematical/lasem/src/lsmmathmlstringelement.h +58 -0
- data/ext/mathematical/lasem/src/lsmmathmlstyle.c +130 -0
- data/ext/mathematical/lasem/src/lsmmathmlstyle.h +89 -0
- data/ext/mathematical/lasem/src/lsmmathmlstyleelement.c +391 -0
- data/ext/mathematical/lasem/src/lsmmathmlstyleelement.h +94 -0
- data/ext/mathematical/lasem/src/lsmmathmltablecellelement.c +122 -0
- data/ext/mathematical/lasem/src/lsmmathmltablecellelement.h +62 -0
- data/ext/mathematical/lasem/src/lsmmathmltableelement.c +572 -0
- data/ext/mathematical/lasem/src/lsmmathmltableelement.h +78 -0
- data/ext/mathematical/lasem/src/lsmmathmltablerowelement.c +120 -0
- data/ext/mathematical/lasem/src/lsmmathmltablerowelement.h +64 -0
- data/ext/mathematical/lasem/src/lsmmathmltraits.c +867 -0
- data/ext/mathematical/lasem/src/lsmmathmltraits.h +129 -0
- data/ext/mathematical/lasem/src/lsmmathmltypes.h +67 -0
- data/ext/mathematical/lasem/src/lsmmathmlunderoverelement.c +485 -0
- data/ext/mathematical/lasem/src/lsmmathmlunderoverelement.h +82 -0
- data/ext/mathematical/lasem/src/lsmmathmlutils.c +170 -0
- data/ext/mathematical/lasem/src/lsmmathmlutils.h +57 -0
- data/ext/mathematical/lasem/src/lsmmathmlview.c +1343 -0
- data/ext/mathematical/lasem/src/lsmmathmlview.h +179 -0
- data/ext/mathematical/lasem/src/lsmmisc.c +15 -0
- data/ext/mathematical/lasem/src/lsmmisc.h +32 -0
- data/ext/mathematical/lasem/src/lsmproperties.c +415 -0
- data/ext/mathematical/lasem/src/lsmproperties.h +85 -0
- data/ext/mathematical/lasem/src/lsmstr.c +231 -0
- data/ext/mathematical/lasem/src/lsmstr.h +114 -0
- data/ext/mathematical/lasem/src/lsmsvg.h +67 -0
- data/ext/mathematical/lasem/src/lsmsvgaelement.c +73 -0
- data/ext/mathematical/lasem/src/lsmsvgaelement.h +55 -0
- data/ext/mathematical/lasem/src/lsmsvgattributes.h +168 -0
- data/ext/mathematical/lasem/src/lsmsvgcircleelement.c +153 -0
- data/ext/mathematical/lasem/src/lsmsvgcircleelement.h +59 -0
- data/ext/mathematical/lasem/src/lsmsvgclippathelement.c +134 -0
- data/ext/mathematical/lasem/src/lsmsvgclippathelement.h +59 -0
- data/ext/mathematical/lasem/src/lsmsvgcolors.c +212 -0
- data/ext/mathematical/lasem/src/lsmsvgcolors.h +39 -0
- data/ext/mathematical/lasem/src/lsmsvgdefselement.c +74 -0
- data/ext/mathematical/lasem/src/lsmsvgdefselement.h +55 -0
- data/ext/mathematical/lasem/src/lsmsvgdocument.c +306 -0
- data/ext/mathematical/lasem/src/lsmsvgdocument.h +64 -0
- data/ext/mathematical/lasem/src/lsmsvgelement.c +371 -0
- data/ext/mathematical/lasem/src/lsmsvgelement.h +80 -0
- data/ext/mathematical/lasem/src/lsmsvgellipseelement.c +158 -0
- data/ext/mathematical/lasem/src/lsmsvgellipseelement.h +60 -0
- data/ext/mathematical/lasem/src/lsmsvgenums.c +674 -0
- data/ext/mathematical/lasem/src/lsmsvgenums.h +416 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterblend.c +105 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterblend.h +58 -0
- data/ext/mathematical/lasem/src/lsmsvgfiltercolormatrix.c +115 -0
- data/ext/mathematical/lasem/src/lsmsvgfiltercolormatrix.h +58 -0
- data/ext/mathematical/lasem/src/lsmsvgfiltercomposite.c +109 -0
- data/ext/mathematical/lasem/src/lsmsvgfiltercomposite.h +58 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterconvolvematrix.c +206 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterconvolvematrix.h +64 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterdisplacementmap.c +124 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterdisplacementmap.h +60 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterelement.c +266 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterelement.h +66 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterflood.c +86 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterflood.h +55 -0
- data/ext/mathematical/lasem/src/lsmsvgfiltergaussianblur.c +114 -0
- data/ext/mathematical/lasem/src/lsmsvgfiltergaussianblur.h +57 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterimage.c +169 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterimage.h +61 -0
- data/ext/mathematical/lasem/src/lsmsvgfiltermerge.c +98 -0
- data/ext/mathematical/lasem/src/lsmsvgfiltermerge.h +55 -0
- data/ext/mathematical/lasem/src/lsmsvgfiltermergenode.c +87 -0
- data/ext/mathematical/lasem/src/lsmsvgfiltermergenode.h +57 -0
- data/ext/mathematical/lasem/src/lsmsvgfiltermorphology.c +116 -0
- data/ext/mathematical/lasem/src/lsmsvgfiltermorphology.h +58 -0
- data/ext/mathematical/lasem/src/lsmsvgfilteroffset.c +112 -0
- data/ext/mathematical/lasem/src/lsmsvgfilteroffset.h +58 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterprimitive.c +168 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterprimitive.h +66 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterspecularlighting.c +134 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterspecularlighting.h +60 -0
- data/ext/mathematical/lasem/src/lsmsvgfiltersurface.c +1540 -0
- data/ext/mathematical/lasem/src/lsmsvgfiltersurface.h +92 -0
- data/ext/mathematical/lasem/src/lsmsvgfiltertile.c +102 -0
- data/ext/mathematical/lasem/src/lsmsvgfiltertile.h +57 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterturbulence.c +142 -0
- data/ext/mathematical/lasem/src/lsmsvgfilterturbulence.h +61 -0
- data/ext/mathematical/lasem/src/lsmsvggelement.c +73 -0
- data/ext/mathematical/lasem/src/lsmsvggelement.h +55 -0
- data/ext/mathematical/lasem/src/lsmsvggradientelement.c +151 -0
- data/ext/mathematical/lasem/src/lsmsvggradientelement.h +68 -0
- data/ext/mathematical/lasem/src/lsmsvgimageelement.c +261 -0
- data/ext/mathematical/lasem/src/lsmsvgimageelement.h +67 -0
- data/ext/mathematical/lasem/src/lsmsvglength.c +152 -0
- data/ext/mathematical/lasem/src/lsmsvglength.h +65 -0
- data/ext/mathematical/lasem/src/lsmsvglineargradientelement.c +271 -0
- data/ext/mathematical/lasem/src/lsmsvglineargradientelement.h +60 -0
- data/ext/mathematical/lasem/src/lsmsvglineelement.c +153 -0
- data/ext/mathematical/lasem/src/lsmsvglineelement.h +60 -0
- data/ext/mathematical/lasem/src/lsmsvgmarkerelement.c +266 -0
- data/ext/mathematical/lasem/src/lsmsvgmarkerelement.h +74 -0
- data/ext/mathematical/lasem/src/lsmsvgmaskelement.c +232 -0
- data/ext/mathematical/lasem/src/lsmsvgmaskelement.h +64 -0
- data/ext/mathematical/lasem/src/lsmsvgmatrix.c +221 -0
- data/ext/mathematical/lasem/src/lsmsvgmatrix.h +60 -0
- data/ext/mathematical/lasem/src/lsmsvgpathelement.c +115 -0
- data/ext/mathematical/lasem/src/lsmsvgpathelement.h +59 -0
- data/ext/mathematical/lasem/src/lsmsvgpatternelement.c +398 -0
- data/ext/mathematical/lasem/src/lsmsvgpatternelement.h +69 -0
- data/ext/mathematical/lasem/src/lsmsvgpolygonelement.c +106 -0
- data/ext/mathematical/lasem/src/lsmsvgpolygonelement.h +57 -0
- data/ext/mathematical/lasem/src/lsmsvgpolylineelement.c +106 -0
- data/ext/mathematical/lasem/src/lsmsvgpolylineelement.h +57 -0
- data/ext/mathematical/lasem/src/lsmsvgradialgradientelement.c +323 -0
- data/ext/mathematical/lasem/src/lsmsvgradialgradientelement.h +61 -0
- data/ext/mathematical/lasem/src/lsmsvgrectelement.c +184 -0
- data/ext/mathematical/lasem/src/lsmsvgrectelement.h +62 -0
- data/ext/mathematical/lasem/src/lsmsvgstopelement.c +106 -0
- data/ext/mathematical/lasem/src/lsmsvgstopelement.h +57 -0
- data/ext/mathematical/lasem/src/lsmsvgstyle.c +546 -0
- data/ext/mathematical/lasem/src/lsmsvgstyle.h +217 -0
- data/ext/mathematical/lasem/src/lsmsvgsvgelement.c +266 -0
- data/ext/mathematical/lasem/src/lsmsvgsvgelement.h +71 -0
- data/ext/mathematical/lasem/src/lsmsvgswitchelement.c +103 -0
- data/ext/mathematical/lasem/src/lsmsvgswitchelement.h +55 -0
- data/ext/mathematical/lasem/src/lsmsvgsymbolelement.c +148 -0
- data/ext/mathematical/lasem/src/lsmsvgsymbolelement.h +58 -0
- data/ext/mathematical/lasem/src/lsmsvgtextelement.c +203 -0
- data/ext/mathematical/lasem/src/lsmsvgtextelement.h +60 -0
- data/ext/mathematical/lasem/src/lsmsvgtraits.c +1490 -0
- data/ext/mathematical/lasem/src/lsmsvgtraits.h +122 -0
- data/ext/mathematical/lasem/src/lsmsvgtransformable.c +106 -0
- data/ext/mathematical/lasem/src/lsmsvgtransformable.h +54 -0
- data/ext/mathematical/lasem/src/lsmsvgtspanelement.c +174 -0
- data/ext/mathematical/lasem/src/lsmsvgtspanelement.h +60 -0
- data/ext/mathematical/lasem/src/lsmsvgtypes.h +83 -0
- data/ext/mathematical/lasem/src/lsmsvguseelement.c +238 -0
- data/ext/mathematical/lasem/src/lsmsvguseelement.h +69 -0
- data/ext/mathematical/lasem/src/lsmsvgview.c +2797 -0
- data/ext/mathematical/lasem/src/lsmsvgview.h +203 -0
- data/ext/mathematical/lasem/src/lsmtraits.c +171 -0
- data/ext/mathematical/lasem/src/lsmtraits.h +51 -0
- data/ext/mathematical/lasem/src/lsmtypes.h +36 -0
- data/ext/mathematical/lasem/src/lsmutils.c +54 -0
- data/ext/mathematical/lasem/src/lsmutils.h +56 -0
- data/ext/mathematical/lasem/src/meson.build +321 -0
- data/ext/mathematical/lasem/subprojects/gi-docgen.wrap +6 -0
- data/ext/mathematical/lasem/tests/data/mathml/gtkmathview/README +5 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/fractions/fraction-02.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/fractions/fraction-03-inline.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/fractions/fraction-03.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/fractions/fraction.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/integrals/closed.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/integrals/multiples.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/integrals/standard.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/matrices/matrix-01.tex +5 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/misc/array.tex +3 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/misc/cases-cr.tex +7 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/misc/cases-space.tex +7 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/misc/cases.tex +7 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/misc/color.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/misc/complex-2.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/misc/complex-inline.tex +7 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/misc/complex.tex +7 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/misc/quadratic-inline.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/misc/quadratic.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/radicals/radical-01.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/radicals/radical-02.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/scripts/accents.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/scripts/script.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/scripts/stack.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/scripts/subscript.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/scripts/sums-inline.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/scripts/sums.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/scripts/superscript-inline.tex +1 -0
- data/ext/mathematical/lasem/tests/data/mathml/tex/scripts/superscript.tex +1 -0
- data/ext/mathematical/lasem/tests/data/svg/batik/resources/images/bmpCursor.bmp +0 -0
- data/ext/mathematical/lasem/tests/data/svg/batik/resources/images/brushedMetal.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/batik/resources/images/jpeg.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/batik/resources/images/jpegCursor.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/batik/resources/images/operaBridge.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/batik/resources/images/operaSteps.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/batik/resources/images/operaWalk.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/batik/resources/images/sm_colors.tif +0 -0
- data/ext/mathematical/lasem/tests/data/svg/batik/resources/images/sm_colors_pb.tif +0 -0
- data/ext/mathematical/lasem/tests/data/svg/batik/resources/images/sm_colors_pb_tile.tif +0 -0
- data/ext/mathematical/lasem/tests/data/svg/batik/resources/images/sm_colors_tile.tif +0 -0
- data/ext/mathematical/lasem/tests/data/svg/batik/resources/images/tde.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/batik/resources/images/tiffCursor.tif +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.1/images/image1.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.1/images/struct-image-01.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.1/images/struct-image-02.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/CNN.3gp +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/SVG-1.1-monolithic-fixed.dtd +1622 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/TraitAccess.common.es +672 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/advice.wav +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/beep.wav +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/boing_x.wav +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/clock.mp4 +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/cloud-ps411q4app.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/cloud411q25s.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/cloud411q65float.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/cloud411q75o.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/cloud411q75p.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/cloud411q75s.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/cloud444q65o.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/cloudgsq75s.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/cloudoddq65o.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/cloudqllo.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/copyright-documents-19990405.html +89 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/disco.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/dogandball.3gp +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/dogandball.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/dogandball.mov +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/duckfeeding.3gp +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/duckfeeding.mov +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/excuse_me.wav +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/externalscript.js +1 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/greentopbutton.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/greentopbutton1.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/greentopbutton2.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/greentopbutton3.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/greentopbutton4.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/heroesLanding.3gp +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/image1.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/image2_b.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/myimage.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/pacman.wav +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/plant.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/pref_image0.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/pref_image1.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/pref_image2.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/pref_image3.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/pref_image4.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/pref_image5.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/pref_image6.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/pref_image7.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/pref_image8.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/pref_image9.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/script1.js +1 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/script10.js +1 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/script2.js +1 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/script3.js +1 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/script4.js +1 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/script5.js +1 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/script6.js +1 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/script7.js +1 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/script8.js +1 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/script9.js +1 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/skier.3gp +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/skier.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/struct-image-01.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/struct-image-02.jpg +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/svgRef4.css +4 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/welcome.wav +0 -0
- data/ext/mathematical/lasem/tests/data/svg/svg1.2/images/xmltree.xml +4 -0
- data/ext/mathematical/lasem/tests/dom.c +266 -0
- data/ext/mathematical/lasem/tests/filter.c +153 -0
- data/ext/mathematical/lasem/tests/fuzztest.sh +12 -0
- data/ext/mathematical/lasem/tests/lasem.supp +185 -0
- data/ext/mathematical/lasem/tests/lsmtest.c +592 -0
- data/ext/mathematical/lasem/tests/meson.build +39 -0
- data/ext/mathematical/lasem/tests/str.c +44 -0
- data/ext/mathematical/lasem/tests/suite.c +140 -0
- data/ext/mathematical/lasem/tests/suite.ini +27 -0
- data/ext/mathematical/lasem/tools/change-license +3 -0
- data/ext/mathematical/lasem/tools/charlist.dtd +73 -0
- data/ext/mathematical/lasem/tools/entities-to-c.xsl +1067 -0
- data/ext/mathematical/lasem/tools/fuzzxml +243 -0
- data/ext/mathematical/lasem/tools/generate-entity-array.c +2136 -0
- data/ext/mathematical/lasem/tools/unicode.xml +44303 -0
- data/ext/mathematical/lasem/viewer/meson.build +17 -0
- data/ext/mathematical/lasem/viewer/viewer.c +248 -0
- data/ext/mathematical/lasem_overrides.c +4 -8
- data/ext/mathematical/mathematical.c +7 -9
- data/ext/mathematical/mtex2MML/CMakeLists.txt +255 -0
- data/ext/mathematical/mtex2MML/CONTRIBUTING.md +22 -0
- data/ext/mathematical/mtex2MML/README.md +143 -0
- data/ext/mathematical/mtex2MML/SUPPORTED.md +1216 -0
- data/ext/mathematical/mtex2MML/appveyor.yml +35 -0
- data/ext/mathematical/mtex2MML/cmake/Modules/astyle.cmake +12 -0
- data/ext/mathematical/mtex2MML/deps/uthash/package.json +27 -0
- data/ext/mathematical/mtex2MML/deps/uthash/utarray.h +239 -0
- data/ext/mathematical/mtex2MML/deps/uthash/uthash.h +1074 -0
- data/ext/mathematical/mtex2MML/deps/uthash/utlist.h +895 -0
- data/ext/mathematical/mtex2MML/deps/uthash/utringbuffer.h +108 -0
- data/ext/mathematical/mtex2MML/deps/uthash/utstring.h +398 -0
- data/ext/mathematical/mtex2MML/script/bootstrap +39 -0
- data/ext/mathematical/mtex2MML/script/cibuild +58 -0
- data/ext/mathematical/mtex2MML/script/tag +28 -0
- data/ext/mathematical/mtex2MML/src/colors.c +44 -0
- data/ext/mathematical/mtex2MML/src/colors.h +23 -0
- data/ext/mathematical/mtex2MML/src/em.c +99 -0
- data/ext/mathematical/mtex2MML/src/em.h +31 -0
- data/ext/mathematical/mtex2MML/src/environment.c +515 -0
- data/ext/mathematical/mtex2MML/src/environment.h +85 -0
- data/ext/mathematical/mtex2MML/src/lexer.l +1594 -0
- data/ext/mathematical/mtex2MML/src/libmtex2MML.pc.in +10 -0
- data/ext/mathematical/mtex2MML/src/main.c +187 -0
- data/ext/mathematical/mtex2MML/src/mtex2MML.h +89 -0
- data/ext/mathematical/mtex2MML/src/parser.y +3817 -0
- data/ext/mathematical/mtex2MML/src/string_dup.c +23 -0
- data/ext/mathematical/mtex2MML/src/string_dup.h +23 -0
- data/ext/mathematical/mtex2MML/src/string_extras.c +47 -0
- data/ext/mathematical/mtex2MML/src/string_extras.h +30 -0
- data/ext/mathematical/mtex2MML/src/win32-shims/unistd.h +51 -0
- data/ext/mathematical/mtex2MML/tests/array.c +127 -0
- data/ext/mathematical/mtex2MML/tests/basic.c +96 -0
- data/ext/mathematical/mtex2MML/tests/clar/fixtures.h +38 -0
- data/ext/mathematical/mtex2MML/tests/clar/fs.h +335 -0
- data/ext/mathematical/mtex2MML/tests/clar/print.h +66 -0
- data/ext/mathematical/mtex2MML/tests/clar/sandbox.h +141 -0
- data/ext/mathematical/mtex2MML/tests/clar.c +644 -0
- data/ext/mathematical/mtex2MML/tests/clar.h +163 -0
- data/ext/mathematical/mtex2MML/tests/clar_test.h +20 -0
- data/ext/mathematical/mtex2MML/tests/cornercases.c +46 -0
- data/ext/mathematical/mtex2MML/tests/debug/mtex2MML_debug.cc +21 -0
- data/ext/mathematical/mtex2MML/tests/delimiters.c +242 -0
- data/ext/mathematical/mtex2MML/tests/deps/file2str/file2str.c +62 -0
- data/ext/mathematical/mtex2MML/tests/deps/file2str/file2str.h +12 -0
- data/ext/mathematical/mtex2MML/tests/deps/file2str/package.json +9 -0
- data/ext/mathematical/mtex2MML/tests/deps/mkdtemp/mkdtemp.c +151 -0
- data/ext/mathematical/mtex2MML/tests/deps/mkdtemp/mkdtemp.h +10 -0
- data/ext/mathematical/mtex2MML/tests/deps/trim/package.json +7 -0
- data/ext/mathematical/mtex2MML/tests/deps/trim/trim.c +27 -0
- data/ext/mathematical/mtex2MML/tests/deps/trim/trim.h +7 -0
- data/ext/mathematical/mtex2MML/tests/env.c +334 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/AMScd/amscd-1.html +86 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/AMScd/amscd-2.html +148 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/AMScd/amscd-3.html +188 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/AMScd/arrows-2.html +156 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/AMScd/min-1.html +45 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/AMScd/min-2.html +35 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/accents-1.html +16 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/accents-2.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/accents-3.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/buildrel-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/issue490.html +0 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/issue877.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/issue937.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/overbrace-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/overbracket-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/overset-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/sideset-1.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/stackrel-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/subarray-1.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/substack-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/underbrace-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/underbracket-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/underset-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/action/mathtip-1.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/action/texttip-1.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/action/toggle-1.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/arrows/Newextarrow-1.html +10 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/arrows/arrows-1.html +34 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/arrows/arrows-2.html +30 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/arrows/arrows-3.html +9 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/arrows/arrows-4.html +13 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/arrows/arrows-5.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/atoms/mathbin-1.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/atoms/mathinner-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/atoms/mathop-1a.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/atoms/mathop-1b.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/atoms/mathop-2.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/atoms/mathopenclose-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/atoms/mathord-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/atoms/mathpunct-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/atoms/mathrel-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/basic-operators/backslashed-1.html +16 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/basic-operators/basic-operators-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/basic-operators/basic-operators-2.html +25 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/basic-operators/remap-1.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/colors/color-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/colors/colorbox-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/colors/definecolor-1.html +37 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/colors/definecolor-2.html +79 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/colors/fcolorbox-1.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/colors/issue446.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/colors/namedcolors-1.html +70 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/delimiters/big-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/delimiters/big-2.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/delimiters/big-3.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/delimiters/delimiters-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/delimiters/delimiters-2.html +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/delimiters/issue775.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/delimiters/issue776-1a.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/delimiters/issue776-1b.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/delimiters/issue776-2.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/delimiters/issue776-3.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/delimiters/issue776-4.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/delimiters/issue776-5.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/delimiters/left-right-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/align-1a.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/align-1b.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/alignat-1a.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/alignat-1b.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/aligned-1.html +9 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/aligned-2.html +14 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/alignedat-1.html +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/eqalign-1.html +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/eqalignno-1.html +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/eqnarray-1a.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/eqnarray-1b.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/eqnarray-2.html +64 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/equation-1.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/equation-2.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/gather-1a.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/gather-1b.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/gathered-1.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/gathered-2.html +12 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/issue982-1a.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/issue982-1b.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/issue982-2a.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/issue982-2b.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/issue982-3a.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/issue982-3b.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/leqalignno-1.html +11 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/multline-1a.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/multline-1b.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/environments/split-1.html +9 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/errors/noErrors-1.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/errors/noUndefined-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/above-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/abovewithdelims-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/atop-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/atopwithdelims-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/binom-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/brace-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/brack-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/cfrac-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/choose-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/dbinom-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/dfrac-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/frac-1a.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/frac-1b.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/genfrac-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/issue969.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/overwithdelims-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/tbinom-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/frac/tfrac-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/issues/issue1152-1.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/issues/issue1152-2.html +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/issues/issue375.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/issues/issue856.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/issues/issue901-1a.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/issues/issue901-1b.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/issues/issue901-1c.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/issues/issue901-1d.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/boxes-1.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/kern-1a.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/kern-1b.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/llap-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/lower-1.html +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/mathstrut-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/moveleft-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/moveright-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/newline-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/phantom-1.html +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/raise-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/rlap-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/shove-1.html +19 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/skip-1a.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/skip-1b.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/smash-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/spaces-1.html +18 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/strut-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/layout/vcenter-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/letters/greek-1.html +32 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/letters/greek-2.html +13 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/letters/greek-3.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/letters/greek-4.html +13 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/letters/hebrew-1.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/macro/begingroup-1.html +15 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/macro/def-1.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/macro/let-1.html +14 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/macro/macro-1.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/macro/macro-2.html +25 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/macro/macro-3.html +50 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/macro/macro-5.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/macro/macro-6.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/macro/macro-7.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/Bbb-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/bf-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/boldsymbol-1.html +9 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/cal-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/frak-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/it-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/mathbb-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/mathbf-1a.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/mathbf-1b.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/mathbf-2.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/mathcal-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/mathfrak-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/mathit-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/mathrm-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/mathscr-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/mathsf-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/mathtt-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/mit-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/pmb-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/rm-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/scr-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/sf-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/text-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/textbf-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/textit-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/textrm-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/textsf-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/texttt-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mathvariant/tt-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/matrices/array-1a.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/matrices/array-1b.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/matrices/array-2.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/matrices/array-3.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/matrices/bmatrix-1.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/matrices/bmatrix-2.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/matrices/matrix-1.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/matrices/matrix-2.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/matrices/pmatrix-1.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/matrices/pmatrix-2.html +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/matrices/smallmatrix-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/matrices/vmatrix-1.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/matrices/vmatrix-2.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mhchem/advanced-1.html +120 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mhchem/advanced-2.html +35 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mhchem/advanced-3.html +138 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mhchem/amounts-1.html +46 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mhchem/arrows-1.html +235 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mhchem/arrows-2.html +159 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mhchem/basics-1.html +139 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mhchem/bonds-1.html +256 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mhchem/environments-1.html +81 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mhchem/isotopes-1.html +30 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mhchem/math-1.html +101 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/mhchem/special_symbols-1.html +176 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/non-standard/Rule-1.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/non-standard/Tiny-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/non-standard/class-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/non-standard/cssId-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/non-standard/href-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/non-standard/href-2.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/non-standard/require-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/non-standard/style-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/non-standard/unicode-1.html +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/LaTeX-1.html +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/bbox-1.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/boxed-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/cancel-1.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/cases-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/displaylines-1.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/enclose-1.html +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/functions-1.html +34 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/limits-1.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/limits-2.html +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/limits-3.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/mathsize-1.html +11 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/mod-1.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/not-1.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/pod-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/primes-1.html +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/primes-2.html +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/primes-3.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/style-1.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/style-2.html +0 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/verb-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/other/verb-2.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/references/eqref-1.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/references/label-1.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/references/label-2.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/references/notag-1.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/references/ref-1.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/references/ref-2.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/references/ref-3.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/roots/root-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/roots/root-2.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/roots/root-3.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/roots/sqrt-1.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/roots/sqrt-2.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/symbols/binaryops-1.html +32 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/symbols/dots-1.html +26 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/symbols/largeops-1.html +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/symbols/largeops-2.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/symbols/relations-1.html +39 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/symbols/symbols-1.html +25 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/symbols/symbols-2.html +31 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/symbols/symbols-3.html +40 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/symbols/symbols-4.html +39 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/symbols/symbols-5.html +56 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/symbols/symbols-6.html +49 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/AMScd/amscd-1.no_tex +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/AMScd/amscd-2.no_tex +13 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/AMScd/amscd-3.no_tex +23 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/AMScd/arrows-1.no_tex +23 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/AMScd/arrows-2.no_tex +26 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/AMScd/min-1.no_tex +14 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/AMScd/min-2.no_tex +14 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/above-below/accents-1.txt +16 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/above-below/accents-2.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/above-below/accents-3.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/above-below/buildrel-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/above-below/issue490.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/above-below/issue877.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/above-below/issue937.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/above-below/overbrace-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/above-below/overbracket-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/above-below/overset-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/above-below/sideset-1.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/above-below/stackrel-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/above-below/subarray-1.txt +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/above-below/substack-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/above-below/underbrace-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/above-below/underbracket-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/above-below/underset-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/action/mathtip-1.no_tex +2 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/action/texttip-1.no_tex +2 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/action/toggle-1.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/arrows/Newextarrow-1.xtex +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/arrows/arrows-1.txt +34 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/arrows/arrows-2.txt +30 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/arrows/arrows-3.txt +9 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/arrows/arrows-4.txt +13 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/arrows/arrows-5.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/atoms/mathbin-1.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/atoms/mathinner-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/atoms/mathop-1a.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/atoms/mathop-1b.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/atoms/mathop-2.xtex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/atoms/mathopenclose-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/atoms/mathord-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/atoms/mathpunct-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/atoms/mathrel-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/basic-operators/backslashed-1.txt +16 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/basic-operators/basic-operators-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/basic-operators/basic-operators-2.xtex +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/basic-operators/remap-1.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/colors/color-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/colors/colorbox-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/colors/definecolor-1a.xtex +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/colors/definecolor-1b.xtex +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/colors/definecolor-1c.xtex +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/colors/definecolor-2.xtex +13 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/colors/fcolorbox-1.xtex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/colors/issue446.xtex +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/colors/namedcolors-1.txt +70 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/delimiters/big-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/delimiters/big-2.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/delimiters/big-3.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/delimiters/delimiters-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/delimiters/delimiters-2.txt +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/delimiters/issue775.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/delimiters/issue776-1a.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/delimiters/issue776-1b.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/delimiters/issue776-2.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/delimiters/issue776-3.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/delimiters/issue776-4.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/delimiters/issue776-5.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/delimiters/left-right-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/align-1a.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/align-1b.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/alignat-1a.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/alignat-1b.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/aligned-1.txt +9 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/aligned-2.txt +14 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/alignedat-1.txt +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/eqalign-1.txt +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/eqalignno-1.txt +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/eqnarray-1a.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/eqnarray-1b.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/eqnarray-1c.no_tex +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/eqnarray-2a.no_tex +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/equation-1.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/equation-2.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/gather-1a.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/gather-1b.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/gathered-1.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/gathered-2.txt +12 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/issue982-1a.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/issue982-1b.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/issue982-2a.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/issue982-2b.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/issue982-3a.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/issue982-3b.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/leqalignno-1.xtex +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/multline-1a.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/multline-1b.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/environments/split-1.txt +9 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/errors/noErrors-1.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/errors/noUndefined-1.no_tex +2 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/above-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/abovewithdelims-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/atop-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/atopwithdelims-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/binom-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/brace-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/brack-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/cfrac-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/choose-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/dbinom-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/dfrac-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/frac-1a.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/frac-1b.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/genfrac-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/issue969.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/overwithdelims-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/tbinom-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/frac/tfrac-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/issues/issue1151.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/issues/issue1152-1.xtex +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/issues/issue1152-2.txt +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/issues/issue375.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/issues/issue856.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/issues/issue901-1a.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/issues/issue901-1b.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/issues/issue901-1c.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/issues/issue901-1d.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/issues/issue903-1.xtex +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/issues/issue903-2.xtex +16 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/boxes-1.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/kern-1a.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/kern-1b.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/llap-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/lower-1.txt +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/mathstrut-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/moveleft-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/moveright-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/newline-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/phantom-1.txt +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/raise-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/rlap-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/shove-1.xtex +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/skip-1a.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/skip-1b.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/smash-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/spaces-1.txt +18 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/strut-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/layout/vcenter-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/letters/greek-1.txt +32 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/letters/greek-2.txt +13 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/letters/greek-3.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/letters/greek-4.txt +13 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/letters/hebrew-1.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/macro/begingroup-1.no_tex +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/macro/def-1.no_tex +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/macro/let-1.no_tex +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/macro/macro-1a.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/macro/macro-1b.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/macro/macro-2.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/macro/macro-3.no_tex +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/macro/macro-5.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/macro/macro-6.no_tex +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/macro/macro-7.no_tex +11 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/Bbb-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/bf-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/boldsymbol-1.txt +9 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/cal-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/frak-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/it-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/mathbb-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/mathbf-1a.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/mathbf-1b.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/mathbf-2.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/mathcal-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/mathfrak-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/mathit-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/mathrm-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/mathscr-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/mathsf-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/mathtt-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/mit-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/pmb-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/rm-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/scr-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/sf-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/text-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/textbf-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/textit-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/textrm-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/textsf-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/texttt-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mathvariant/tt-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/matrices/array-1a.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/matrices/array-1b.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/matrices/array-2.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/matrices/array-3.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/matrices/bmatrix-1.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/matrices/bmatrix-2.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/matrices/matrix-1.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/matrices/matrix-2.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/matrices/pmatrix-1.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/matrices/pmatrix-2.txt +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/matrices/smallmatrix-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/matrices/vmatrix-1.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/matrices/vmatrix-2.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mhchem/advanced-1.no_tex +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mhchem/advanced-2.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mhchem/advanced-3.no_tex +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mhchem/amounts-1.no_tex +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mhchem/arrows-1.no_tex +10 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mhchem/arrows-2.no_tex +9 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mhchem/basics-1.no_tex +13 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mhchem/bonds-1.no_tex +11 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mhchem/environments-1.no_tex +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mhchem/isotopes-1.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mhchem/math-1.no_tex +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/mhchem/special_symbols-1.no_tex +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/non-standard/Rule-1.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/non-standard/Tiny-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/non-standard/class-1.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/non-standard/cssId-1.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/non-standard/href-1.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/non-standard/href-2.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/non-standard/require-1.no_tex +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/non-standard/style-1.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/non-standard/unicode-1.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/LaTeX-1.txt +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/bbox-1.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/boxed-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/cancel-1.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/cases-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/displaylines-1.xtex +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/enclose-1.txt +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/functions-1.txt +34 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/limits-1.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/limits-2.txt +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/limits-3.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/mathsize-1.txt +11 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/mod-1.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/not-1.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/pod-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/primes-1.txt +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/primes-2.txt +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/primes-3.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/style-1.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/style-2.no_tex +10 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/verb-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/other/verb-2.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/references/eqref-1.no_tex +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/references/label-1.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/references/label-2.no_tex +2 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/references/notag-1.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/references/ref-1a.no_tex +2 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/references/ref-1b.no_tex +2 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/references/ref-2.no_tex +2 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/references/ref-3.no_tex +2 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/references/tag-1.no_tex +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/references/tag-2.no_tex +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/references/tag-3.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/references/tag-4.no_tex +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/roots/root-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/roots/root-2.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/roots/root-3.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/roots/sqrt-1.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/roots/sqrt-2.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/symbols/binaryops-1.txt +32 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/symbols/dots-1.txt +26 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/symbols/largeops-1.txt +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/symbols/largeops-2.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/symbols/relations-1.txt +39 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/symbols/symbols-1.txt +25 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/symbols/symbols-2.txt +31 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/symbols/symbols-3.txt +40 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/symbols/symbols-4.txt +39 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/symbols/symbols-5.txt +56 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-tex/symbols/symbols-6.txt +49 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/MathJax/TODO.md +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/array_nesting.html +32 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/array_nesting.txt +32 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/array_pos_alignment.html +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/array_pos_alignment.txt +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/array_pos_alignment_with_hline.html +12 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/array_pos_alignment_with_hline.txt +12 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/array_vertical_column.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/array_vertical_column.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/array_vertical_column_with_align.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/array_vertical_column_with_align.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/array_with_hline.html +9 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/array_with_hline.txt +9 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/array_with_hline_and_hdashline.html +10 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/array_with_hline_and_hdashline.txt +10 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/array_with_vertical_and_horizontal_dashes.html +10 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/array_with_vertical_and_horizontal_dashes.txt +10 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/augmented_matrix.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/augmented_matrix.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/basic_array.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/basic_array.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/strip_excess_whitespace_in_array_attributes.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/array/strip_excess_whitespace_in_array_attributes.txt +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/basic/block.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/basic/block.txt +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/basic/comments.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/basic/comments.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/basic/filter.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/basic/filter.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/basic/inline.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/basic/inline.txt +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/basic/strict_filter.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/basic/strict_filter.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/basic/text_filter.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/basic/text_filter.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/basic/text_rendering.html +23 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/basic/text_rendering.txt +23 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/cornercases/broken_up_inline_env.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/cornercases/broken_up_inline_env.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/cornercases/some_crazy_alignment.html +24 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/cornercases/some_crazy_alignment.txt +24 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/align.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/align.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/alignat-1a.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/alignat-1a.txt +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/aligned_ex_spacing.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/aligned_ex_spacing.txt +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/basic_array.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/basic_array.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/brackets.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/dollar_spacings_filter.html +2 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/dollar_spacings_filter.txt +27 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/dollar_spacings_text_filter.html +27 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/dollar_spacings_text_filter.txt +27 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/double_dollar.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/escaping.txt +35 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/escaping_with_brackets.html +35 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/escaping_with_dollars.html +35 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/escaping_with_parens.html +35 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/mixed.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/mixed_env.html +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/mixed_env.txt +11 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/parens.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/single_dollar.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/single_equation.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/delimiters/single_equation.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/aligned_ex_spacing.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/aligned_ex_spacing.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/aligned_no_ex_spacing.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/aligned_no_ex_spacing.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/aligned_no_lines.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/aligned_no_lines.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/bbmatrix_ex_spacing.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/bbmatrix_ex_spacing.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/bbmatrix_no_ex_spacing.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/bbmatrix_no_ex_spacing.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/bbmatrix_no_lines.html +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/bbmatrix_no_lines.txt +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/bmatrix_ex_spacing.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/bmatrix_ex_spacing.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/bmatrix_no_ex_spacing.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/bmatrix_no_ex_spacing.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/bmatrix_no_lines.html +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/bmatrix_no_lines.txt +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/cases_ex_spacing.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/cases_ex_spacing.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/cases_no_ex_spacing.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/cases_no_ex_spacing.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/cases_no_lines.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/cases_no_lines.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/gathered_ex_spacing.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/gathered_ex_spacing.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/gathered_no_ex_spacing.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/gathered_no_ex_spacing.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/gathered_no_lines.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/gathered_no_lines.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/matrix_ex_spacing.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/matrix_ex_spacing.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/matrix_no_ex_spacing.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/matrix_no_ex_spacing.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/matrix_no_lines.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/matrix_no_lines.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/pmatrix_ex_spacing.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/pmatrix_ex_spacing.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/pmatrix_no_ex_spacing.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/pmatrix_no_ex_spacing.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/pmatrix_no_lines.html +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/pmatrix_no_lines.txt +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/smallmatrix_ex_spacing.html +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/smallmatrix_ex_spacing.txt +8 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/smallmatrix_no_ex_spacing.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/smallmatrix_no_ex_spacing.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/smallmatrix_no_lines.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/smallmatrix_no_lines.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/spaces_after_rowsep.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/spaces_after_rowsep.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/split_ex_spacing.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/split_ex_spacing.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/split_no_ex_spacing.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/split_no_ex_spacing.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/split_no_lines.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/split_no_lines.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/vmatrix_ex_spacing.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/vmatrix_ex_spacing.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/vmatrix_no_ex_spacing.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/vmatrix_no_ex_spacing.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/vmatrix_no_lines.html +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/vmatrix_no_lines.txt +4 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/vvmatrix_ex_spacing.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/vvmatrix_ex_spacing.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/vvmatrix_no_ex_spacing.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/vvmatrix_no_ex_spacing.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/vvmatrix_no_lines.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/env/vvmatrix_no_lines.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/functions/max_limits.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/functions/max_limits.txt +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/functions/min_limits.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/functions/min_limits.txt +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/functions/prod_limits.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/functions/prod_limits.txt +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/maliciousness/excess_parsing.txt +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/maliciousness/just_enough_parsing.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/maliciousness/just_enough_parsing.txt +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/numbered_equations/multiple_equations.html +11 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/numbered_equations/multiple_equations.txt +13 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/numbered_equations/multiple_notag_nonumber.html +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/numbered_equations/multiple_notag_nonumber.txt +7 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/numbered_equations/single_equation.html +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/numbered_equations/single_equation.txt +5 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/numbered_equations/single_nonumber.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/numbered_equations/single_nonumber.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/numbered_equations/single_notag.html +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/numbered_equations/single_notag.txt +6 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/numbered_equations/skip_label.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/numbered_equations/skip_label.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/numbered_equations/skip_tag.html +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/numbered_equations/skip_tag.txt +3 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/performance/big_file.html +12 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/performance/big_file.txt +1755 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/symbols/gt.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/symbols/gt.txt +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/symbols/lt.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/symbols/lt.txt +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/symbols/textgreater.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/symbols/textgreater.txt +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/symbols/textless.html +1 -0
- data/ext/mathematical/mtex2MML/tests/fixtures/symbols/textless.txt +1 -0
- data/ext/mathematical/mtex2MML/tests/functions.c +55 -0
- data/ext/mathematical/mtex2MML/tests/generate.py +244 -0
- data/ext/mathematical/mtex2MML/tests/helpers.c +29 -0
- data/ext/mathematical/mtex2MML/tests/helpers.h +8 -0
- data/ext/mathematical/mtex2MML/tests/main.c +35 -0
- data/ext/mathematical/mtex2MML/tests/maliciousness.c +107 -0
- data/ext/mathematical/mtex2MML/tests/mathjax.c +2040 -0
- data/ext/mathematical/mtex2MML/tests/mathjax_generate.py +72 -0
- data/ext/mathematical/mtex2MML/tests/numbered_equations.c +92 -0
- data/ext/mathematical/mtex2MML/tests/performance.c +39 -0
- data/ext/mathematical/mtex2MML/tests/symbols.c +69 -0
- data/lib/mathematical/version.rb +1 -1
- data/mathematical.gemspec +1 -1
- metadata +1191 -6
@@ -0,0 +1,1343 @@
|
|
1
|
+
/* Lasem
|
2
|
+
*
|
3
|
+
* Copyright © 2007-2012 Emmanuel Pacaud
|
4
|
+
*
|
5
|
+
* This library is free software; you can redistribute it and/or
|
6
|
+
* modify it under the terms of the GNU Lesser General Public
|
7
|
+
* License as published by the Free Software Foundation; either
|
8
|
+
* version 2 of the License, or (at your option) any later version.
|
9
|
+
*
|
10
|
+
* This library is distributed in the hope that it will be useful,
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
+
* Lesser General Public License for more details.
|
14
|
+
*
|
15
|
+
* You should have received a copy of the GNU Lesser General
|
16
|
+
* Public License along with this library; if not, write to the
|
17
|
+
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
18
|
+
* Boston, MA 02110-1335, USA.
|
19
|
+
*
|
20
|
+
* Author:
|
21
|
+
* Emmanuel Pacaud <emmanuel@gnome.org>
|
22
|
+
*/
|
23
|
+
|
24
|
+
#include <lsmdebug.h>
|
25
|
+
#include <lsmmathmlview.h>
|
26
|
+
#include <lsmmathmldocument.h>
|
27
|
+
#include <lsmmathmlelement.h>
|
28
|
+
#include <lsmmathmlmathelement.h>
|
29
|
+
#include <lsmmathmlstyleelement.h>
|
30
|
+
#include <lsmmathmlglyphtableams.h>
|
31
|
+
#include <glib/gprintf.h>
|
32
|
+
|
33
|
+
#include <math.h>
|
34
|
+
#include <string.h>
|
35
|
+
|
36
|
+
typedef enum {
|
37
|
+
_GMATHML_STROKE_WIDTH_EVEN,
|
38
|
+
_GMATHML_STROKE_WIDTH_ODD,
|
39
|
+
_GMATHML_STROKE_WIDTH_NULL,
|
40
|
+
_GMATHML_STROKE_WIDTH_VECTOR
|
41
|
+
} _LsmMathmlStrokeWidth;
|
42
|
+
|
43
|
+
#define LSM_MATHML_LARGE_OP_SCALE 1.6
|
44
|
+
|
45
|
+
static const char *lsm_mathml_font_names[] = {
|
46
|
+
"",
|
47
|
+
"Sans",
|
48
|
+
"cmr10",
|
49
|
+
"cmmi10",
|
50
|
+
"cmex10",
|
51
|
+
"cmsy10",
|
52
|
+
"symbol"
|
53
|
+
};
|
54
|
+
|
55
|
+
static const struct {
|
56
|
+
const char *font;
|
57
|
+
PangoStyle style;
|
58
|
+
PangoWeight weight;
|
59
|
+
} lsm_mathml_pango_options[LSM_MATHML_VARIANT_MONOSPACE + 1] = {
|
60
|
+
{NULL, PANGO_STYLE_NORMAL, PANGO_WEIGHT_NORMAL},
|
61
|
+
{NULL, PANGO_STYLE_NORMAL, PANGO_WEIGHT_BOLD},
|
62
|
+
{NULL, PANGO_STYLE_ITALIC, PANGO_WEIGHT_NORMAL},
|
63
|
+
{NULL, PANGO_STYLE_ITALIC, PANGO_WEIGHT_BOLD},
|
64
|
+
{LSM_MATHML_FONT_DOUBLE_STRUCK, PANGO_STYLE_NORMAL, PANGO_WEIGHT_NORMAL},
|
65
|
+
{NULL, PANGO_STYLE_NORMAL, PANGO_WEIGHT_NORMAL},
|
66
|
+
{LSM_MATHML_FONT_SCRIPT, PANGO_STYLE_NORMAL, PANGO_WEIGHT_NORMAL},
|
67
|
+
{LSM_MATHML_FONT_SCRIPT, PANGO_STYLE_NORMAL, PANGO_WEIGHT_BOLD},
|
68
|
+
{NULL, PANGO_STYLE_NORMAL, PANGO_WEIGHT_NORMAL},
|
69
|
+
{LSM_MATHML_FONT_SANS, PANGO_STYLE_NORMAL, PANGO_WEIGHT_NORMAL},
|
70
|
+
{LSM_MATHML_FONT_SANS, PANGO_STYLE_NORMAL, PANGO_WEIGHT_BOLD},
|
71
|
+
{LSM_MATHML_FONT_SANS, PANGO_STYLE_ITALIC, PANGO_WEIGHT_NORMAL},
|
72
|
+
{LSM_MATHML_FONT_SANS, PANGO_STYLE_ITALIC, PANGO_WEIGHT_BOLD},
|
73
|
+
{LSM_MATHML_FONT_MONOSPACE, PANGO_STYLE_NORMAL, PANGO_WEIGHT_NORMAL}
|
74
|
+
};
|
75
|
+
|
76
|
+
static GObjectClass *parent_class;
|
77
|
+
|
78
|
+
static void
|
79
|
+
_debug_element_style (const char *format, const LsmMathmlElementStyle *style) {
|
80
|
+
if (lsm_debug_check (&lsm_debug_category_render, LSM_DEBUG_LEVEL_DEBUG)) {
|
81
|
+
char *string;
|
82
|
+
|
83
|
+
string = g_strdup_printf ("%s %s %gpt (c:%02X%02X%02X b:%02X%02X%02X)",
|
84
|
+
style->math_family,
|
85
|
+
lsm_mathml_variant_to_string (style->math_variant),
|
86
|
+
style->math_size,
|
87
|
+
(int) (255.0 * style->math_color.red),
|
88
|
+
(int) (255.0 * style->math_color.green),
|
89
|
+
(int) (255.0 * style->math_color.blue),
|
90
|
+
(int) (255.0 * style->math_background.red),
|
91
|
+
(int) (255.0 * style->math_background.green),
|
92
|
+
(int) (255.0 * style->math_background.blue));
|
93
|
+
lsm_debug_render ("[LsmMathmlView::render] Show notation %s", string);
|
94
|
+
g_free (string);
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
static void
|
99
|
+
lsm_mathml_view_apply_style_to_font_description (PangoFontDescription *font_description,
|
100
|
+
const LsmMathmlElementStyle *style,
|
101
|
+
gboolean set_family)
|
102
|
+
{
|
103
|
+
g_return_if_fail (font_description != NULL);
|
104
|
+
g_return_if_fail (style != NULL);
|
105
|
+
|
106
|
+
if (style->math_variant < G_N_ELEMENTS (lsm_mathml_pango_options)) {
|
107
|
+
if (set_family) {
|
108
|
+
if (lsm_mathml_pango_options[style->math_variant].font == NULL)
|
109
|
+
pango_font_description_set_family (font_description, style->math_family);
|
110
|
+
else
|
111
|
+
pango_font_description_set_family (font_description,
|
112
|
+
lsm_mathml_pango_options[style->math_variant].font);
|
113
|
+
}
|
114
|
+
pango_font_description_set_style (font_description,
|
115
|
+
lsm_mathml_pango_options[style->math_variant].style);
|
116
|
+
pango_font_description_set_weight (font_description,
|
117
|
+
lsm_mathml_pango_options[style->math_variant].weight);
|
118
|
+
return;
|
119
|
+
}
|
120
|
+
|
121
|
+
if (set_family)
|
122
|
+
pango_font_description_set_family (font_description, style->math_family);
|
123
|
+
pango_font_description_set_style (font_description, PANGO_STYLE_NORMAL);
|
124
|
+
pango_font_description_set_weight (font_description, PANGO_WEIGHT_NORMAL);
|
125
|
+
}
|
126
|
+
|
127
|
+
static void
|
128
|
+
lsm_mathml_view_update_layout_for_text (LsmMathmlView *view,
|
129
|
+
const LsmMathmlElementStyle *style,
|
130
|
+
const char *text,
|
131
|
+
PangoLayout *pango_layout,
|
132
|
+
PangoRectangle *ink_rect,
|
133
|
+
PangoRectangle *rect,
|
134
|
+
int *baseline)
|
135
|
+
{
|
136
|
+
PangoFontDescription *font_description;
|
137
|
+
|
138
|
+
font_description = view->dom_view.font_description;
|
139
|
+
|
140
|
+
pango_font_description_set_size (font_description, style->math_size * PANGO_SCALE);
|
141
|
+
|
142
|
+
/* Kludge for a nicer latex like rendering */
|
143
|
+
if (strcmp (style->math_family, "cmr10") == 0 &&
|
144
|
+
(style->math_variant == LSM_MATHML_VARIANT_ITALIC ||
|
145
|
+
style->math_variant == LSM_MATHML_VARIANT_BOLD_ITALIC)) {
|
146
|
+
pango_font_description_set_family (font_description, "cmmi10");
|
147
|
+
pango_font_description_set_style (font_description, PANGO_STYLE_NORMAL);
|
148
|
+
if (style->math_variant == LSM_MATHML_VARIANT_BOLD_ITALIC)
|
149
|
+
pango_font_description_set_weight (font_description, PANGO_WEIGHT_BOLD);
|
150
|
+
else
|
151
|
+
pango_font_description_set_weight (font_description, PANGO_WEIGHT_NORMAL);
|
152
|
+
} else {
|
153
|
+
lsm_mathml_view_apply_style_to_font_description (font_description, style, TRUE);
|
154
|
+
}
|
155
|
+
pango_layout_set_text (pango_layout, text, -1);
|
156
|
+
pango_layout_set_font_description (pango_layout, font_description);
|
157
|
+
pango_layout_get_extents (pango_layout, ink_rect, rect);
|
158
|
+
|
159
|
+
if (baseline != NULL) {
|
160
|
+
PangoLayoutIter *iter;
|
161
|
+
|
162
|
+
iter = pango_layout_get_iter (pango_layout);
|
163
|
+
*baseline = pango_layout_iter_get_baseline (iter);
|
164
|
+
pango_layout_iter_free (iter);
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
static void
|
169
|
+
lsm_mathml_view_show_layout (LsmMathmlView *view,
|
170
|
+
double x, double y,
|
171
|
+
int baseline,
|
172
|
+
const PangoRectangle *ink_rect,
|
173
|
+
const PangoRectangle * rect)
|
174
|
+
{
|
175
|
+
if (lsm_debug_check (&lsm_debug_category_render, LSM_DEBUG_LEVEL_DEBUG)) {
|
176
|
+
cairo_t *cairo;
|
177
|
+
|
178
|
+
cairo = view->dom_view.cairo;
|
179
|
+
|
180
|
+
cairo_set_line_width (cairo, 0.1);
|
181
|
+
cairo_set_source_rgb (cairo, 1,0,0);
|
182
|
+
cairo_rectangle (cairo,
|
183
|
+
x + pango_units_to_double (rect->x)
|
184
|
+
- pango_units_to_double (ink_rect->x),
|
185
|
+
y + pango_units_to_double (rect->y) -
|
186
|
+
pango_units_to_double (baseline),
|
187
|
+
pango_units_to_double (rect->width),
|
188
|
+
pango_units_to_double (rect->height));
|
189
|
+
cairo_stroke (cairo);
|
190
|
+
cairo_set_source_rgb (cairo, 0,1,0);
|
191
|
+
cairo_rectangle (cairo,
|
192
|
+
x,
|
193
|
+
y + pango_units_to_double (ink_rect->y) -
|
194
|
+
pango_units_to_double (baseline),
|
195
|
+
pango_units_to_double (ink_rect->width),
|
196
|
+
pango_units_to_double (ink_rect->height));
|
197
|
+
cairo_stroke (cairo);
|
198
|
+
}
|
199
|
+
|
200
|
+
}
|
201
|
+
|
202
|
+
double
|
203
|
+
lsm_mathml_view_measure_axis_offset (LsmMathmlView *view,
|
204
|
+
double math_size)
|
205
|
+
{
|
206
|
+
PangoLayout *pango_layout;
|
207
|
+
PangoRectangle ink_rect;
|
208
|
+
PangoLayoutIter *iter;
|
209
|
+
PangoFontDescription *font_description;
|
210
|
+
double axis_offset;
|
211
|
+
int baseline;
|
212
|
+
|
213
|
+
g_return_val_if_fail (LSM_IS_MATHML_VIEW (view), 0.0);
|
214
|
+
|
215
|
+
font_description = view->dom_view.font_description;
|
216
|
+
pango_layout = view->dom_view.measure_pango_layout;
|
217
|
+
|
218
|
+
pango_font_description_set_family (font_description, LSM_MATHML_FONT_SERIF);
|
219
|
+
pango_font_description_set_size (font_description, math_size * PANGO_SCALE);
|
220
|
+
pango_font_description_set_style (font_description, PANGO_STYLE_NORMAL);
|
221
|
+
pango_font_description_set_weight (font_description, PANGO_WEIGHT_NORMAL);
|
222
|
+
pango_layout_set_text (pango_layout, "\xe2\x88\x92", -1);
|
223
|
+
pango_layout_set_font_description (pango_layout, font_description);
|
224
|
+
pango_layout_get_extents (pango_layout, &ink_rect, NULL);
|
225
|
+
|
226
|
+
iter = pango_layout_get_iter (pango_layout);
|
227
|
+
baseline = pango_layout_iter_get_baseline (iter);
|
228
|
+
pango_layout_iter_free (iter);
|
229
|
+
|
230
|
+
axis_offset = pango_units_to_double (- 0.5 * ink_rect.height - ink_rect.y + baseline);
|
231
|
+
|
232
|
+
lsm_debug_measure ("[LsmMathmlView::measure_axis_offset] offset = %g (%g %%)",
|
233
|
+
axis_offset, axis_offset / math_size);
|
234
|
+
|
235
|
+
return axis_offset;
|
236
|
+
}
|
237
|
+
|
238
|
+
void
|
239
|
+
lsm_mathml_view_get_font_metrics (LsmMathmlView *view,
|
240
|
+
const LsmMathmlElementStyle *style,
|
241
|
+
double *ascent,
|
242
|
+
double *descent)
|
243
|
+
{
|
244
|
+
LsmMathmlBbox bbox;
|
245
|
+
|
246
|
+
lsm_mathml_view_measure_text (view, style, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", &bbox);
|
247
|
+
|
248
|
+
if (ascent != NULL)
|
249
|
+
*ascent = bbox.height;
|
250
|
+
if (descent != NULL)
|
251
|
+
*descent = bbox.depth;
|
252
|
+
}
|
253
|
+
|
254
|
+
char *
|
255
|
+
_add_zero_width_non_joiner_to_combining (const char *text)
|
256
|
+
{
|
257
|
+
if (text != NULL && ((text[0] == '\xcc' && text[1] >= '\x80' && text[1] <= '\xbf') ||
|
258
|
+
(text[0] == '\xcd' && text[1] >= '\x80' && text[1] <= '\xaf')) && text[2] == '\0')
|
259
|
+
return g_strdup_printf ("\xe2\x80\x8c%s", text);
|
260
|
+
else
|
261
|
+
return g_strdup (text);
|
262
|
+
}
|
263
|
+
|
264
|
+
void
|
265
|
+
lsm_mathml_view_measure_text (LsmMathmlView *view,
|
266
|
+
const LsmMathmlElementStyle *style,
|
267
|
+
char const *text,
|
268
|
+
LsmMathmlBbox *bbox)
|
269
|
+
{
|
270
|
+
PangoRectangle ink_rect;
|
271
|
+
char *actual_text;
|
272
|
+
int baseline;
|
273
|
+
|
274
|
+
g_return_if_fail (LSM_IS_MATHML_VIEW (view));
|
275
|
+
g_return_if_fail (style != NULL);
|
276
|
+
g_return_if_fail (bbox != NULL);
|
277
|
+
|
278
|
+
if (text == NULL) {
|
279
|
+
*bbox = lsm_mathml_bbox_null;
|
280
|
+
return;
|
281
|
+
}
|
282
|
+
|
283
|
+
actual_text = _add_zero_width_non_joiner_to_combining(text);
|
284
|
+
lsm_mathml_view_update_layout_for_text (view, style, actual_text,
|
285
|
+
view->dom_view.measure_pango_layout, &ink_rect, NULL, &baseline);
|
286
|
+
g_free (actual_text);
|
287
|
+
|
288
|
+
bbox->width = pango_units_to_double (ink_rect.width);
|
289
|
+
bbox->height = pango_units_to_double (baseline - ink_rect.y);
|
290
|
+
bbox->depth = pango_units_to_double (ink_rect.height + ink_rect.y - baseline);
|
291
|
+
bbox->is_defined = TRUE;
|
292
|
+
}
|
293
|
+
|
294
|
+
void
|
295
|
+
lsm_mathml_view_show_text (LsmMathmlView *view,
|
296
|
+
const LsmMathmlElementStyle *style,
|
297
|
+
double x, double y, char const *text)
|
298
|
+
{
|
299
|
+
PangoLayout *pango_layout;
|
300
|
+
PangoRectangle rect, ink_rect;
|
301
|
+
char *actual_text;
|
302
|
+
cairo_t *cairo;
|
303
|
+
int baseline;
|
304
|
+
|
305
|
+
g_return_if_fail (LSM_IS_MATHML_VIEW (view));
|
306
|
+
g_return_if_fail (style != NULL);
|
307
|
+
|
308
|
+
if (text == NULL || strlen (text) < 1)
|
309
|
+
return;
|
310
|
+
|
311
|
+
actual_text = _add_zero_width_non_joiner_to_combining (text);
|
312
|
+
|
313
|
+
actual_text = _add_zero_width_non_joiner_to_combining(text);
|
314
|
+
lsm_debug_render ("[LsmMathmlView::show_text] '%s' at %g, %g (size = %g) %s",
|
315
|
+
actual_text, x, y, style->math_size,
|
316
|
+
lsm_mathml_variant_to_string (style->math_variant));
|
317
|
+
|
318
|
+
lsm_mathml_view_update_layout_for_text (view, style, actual_text,
|
319
|
+
view->dom_view.pango_layout, &ink_rect, &rect, &baseline);
|
320
|
+
lsm_mathml_view_show_layout (view, x, y, baseline, &ink_rect, &rect);
|
321
|
+
g_free (actual_text);
|
322
|
+
|
323
|
+
if (ink_rect.width <= 0 || ink_rect.height <= 0)
|
324
|
+
return;
|
325
|
+
|
326
|
+
cairo = view->dom_view.cairo;
|
327
|
+
pango_layout = view->dom_view.pango_layout;
|
328
|
+
|
329
|
+
cairo_save (cairo);
|
330
|
+
|
331
|
+
if (lsm_debug_check (&lsm_debug_category_dom, LSM_DEBUG_LEVEL_DEBUG)) {
|
332
|
+
cairo_set_source_rgba (cairo, 1.0, 0.0, 0.0, 0.2);
|
333
|
+
cairo_arc (cairo, x, y, 1.0, 0.0, 2.0 * M_PI);
|
334
|
+
cairo_fill (cairo);
|
335
|
+
}
|
336
|
+
|
337
|
+
cairo_set_source_rgba (cairo,
|
338
|
+
style->math_color.red,
|
339
|
+
style->math_color.green,
|
340
|
+
style->math_color.blue,
|
341
|
+
style->math_color.alpha);
|
342
|
+
|
343
|
+
cairo_move_to (cairo, x - pango_units_to_double (ink_rect.x), y - pango_units_to_double (baseline));
|
344
|
+
pango_cairo_show_layout (cairo, pango_layout);
|
345
|
+
|
346
|
+
cairo_restore (cairo);
|
347
|
+
}
|
348
|
+
|
349
|
+
static void
|
350
|
+
lsm_mathml_view_update_layout_for_operator (LsmMathmlView *view,
|
351
|
+
const LsmMathmlElementStyle *style,
|
352
|
+
const char *text,
|
353
|
+
gboolean large,
|
354
|
+
PangoLayout *pango_layout,
|
355
|
+
PangoRectangle *ink_rect,
|
356
|
+
PangoRectangle *rect,
|
357
|
+
int *baseline)
|
358
|
+
{
|
359
|
+
PangoFontDescription *font_description;
|
360
|
+
|
361
|
+
font_description = view->dom_view.font_description;
|
362
|
+
|
363
|
+
pango_font_description_set_size (font_description,
|
364
|
+
style->math_size * PANGO_SCALE * (large ? LSM_MATHML_LARGE_OP_SCALE : 1.0));
|
365
|
+
pango_font_description_set_family (font_description, LSM_MATHML_FONT_SERIF);
|
366
|
+
lsm_mathml_view_apply_style_to_font_description (font_description, style, FALSE);
|
367
|
+
pango_layout_set_text (pango_layout, text, -1);
|
368
|
+
pango_layout_set_font_description (pango_layout, font_description);
|
369
|
+
pango_layout_get_extents (pango_layout, ink_rect, rect);
|
370
|
+
|
371
|
+
if (baseline != NULL) {
|
372
|
+
PangoLayoutIter *iter;
|
373
|
+
|
374
|
+
iter = pango_layout_get_iter (pango_layout);
|
375
|
+
*baseline = pango_layout_iter_get_baseline (iter);
|
376
|
+
pango_layout_iter_free (iter);
|
377
|
+
}
|
378
|
+
}
|
379
|
+
|
380
|
+
void
|
381
|
+
lsm_mathml_view_measure_operator (LsmMathmlView *view,
|
382
|
+
const LsmMathmlElementStyle *style,
|
383
|
+
char const *text,
|
384
|
+
gboolean large,
|
385
|
+
gboolean symmetric,
|
386
|
+
double axis_offset,
|
387
|
+
double min_size, /* TODO actually use this parameter */
|
388
|
+
double max_size, /* TODO actually use this parameter */
|
389
|
+
LsmMathmlBbox const *stretch_bbox,
|
390
|
+
LsmMathmlBbox *bbox)
|
391
|
+
{
|
392
|
+
PangoFontDescription *font_description;
|
393
|
+
PangoLayout *pango_layout;
|
394
|
+
PangoRectangle ink_rect;
|
395
|
+
LsmMathmlGlyphFlags flags;
|
396
|
+
const LsmMathmlOperatorGlyph *glyph;
|
397
|
+
const char *font_name;
|
398
|
+
int baseline;
|
399
|
+
gboolean is_stretch_bbox_defined;
|
400
|
+
|
401
|
+
g_return_if_fail (LSM_IS_MATHML_VIEW (view));
|
402
|
+
g_return_if_fail (style != NULL);
|
403
|
+
g_return_if_fail (bbox != NULL);
|
404
|
+
g_return_if_fail (stretch_bbox != NULL);
|
405
|
+
|
406
|
+
if (text == NULL) {
|
407
|
+
*bbox = lsm_mathml_bbox_null;
|
408
|
+
return;
|
409
|
+
}
|
410
|
+
|
411
|
+
is_stretch_bbox_defined = stretch_bbox->is_defined;
|
412
|
+
|
413
|
+
font_description = view->dom_view.font_description;
|
414
|
+
pango_layout = view->dom_view.measure_pango_layout;
|
415
|
+
|
416
|
+
if (is_stretch_bbox_defined)
|
417
|
+
lsm_debug_render ("[LsmMathmlView::measure_operator] Stretch bbox w = %g, h = %g, d = %g",
|
418
|
+
stretch_bbox->width, stretch_bbox->height, stretch_bbox->depth);
|
419
|
+
|
420
|
+
glyph = lsm_mathml_glyph_table_find_operator_glyph (text);
|
421
|
+
if (glyph == NULL) {
|
422
|
+
lsm_mathml_view_update_layout_for_operator (view, style, text, large,
|
423
|
+
pango_layout, &ink_rect, NULL, &baseline);
|
424
|
+
flags = 0;
|
425
|
+
|
426
|
+
lsm_debug_render ("[LsmMathmlView::measure_operator] operator = %s", text);
|
427
|
+
|
428
|
+
} else {
|
429
|
+
PangoLayoutIter *iter;
|
430
|
+
unsigned int i;
|
431
|
+
double width, height;
|
432
|
+
gboolean found = FALSE;
|
433
|
+
|
434
|
+
if (large && (glyph->flags & LSM_MATHML_GLYPH_FLAG_HAS_LARGE_VERSION) &&
|
435
|
+
!is_stretch_bbox_defined) {
|
436
|
+
pango_font_description_set_size (font_description,
|
437
|
+
style->math_size * PANGO_SCALE);
|
438
|
+
i = 1;
|
439
|
+
} else {
|
440
|
+
pango_font_description_set_size (font_description,
|
441
|
+
style->math_size * PANGO_SCALE *
|
442
|
+
(large ? LSM_MATHML_LARGE_OP_SCALE : 1.0));
|
443
|
+
i = 0;
|
444
|
+
}
|
445
|
+
|
446
|
+
for (; i < glyph->n_sized_glyphs; i++) {
|
447
|
+
font_name = lsm_mathml_font_names [glyph->sized_glyphs[i].font];
|
448
|
+
pango_font_description_set_family (font_description, font_name);
|
449
|
+
lsm_mathml_view_apply_style_to_font_description (font_description, style, FALSE);
|
450
|
+
pango_layout_set_text (pango_layout, glyph->sized_glyphs[i].utf8, -1);
|
451
|
+
pango_layout_set_font_description (pango_layout, font_description);
|
452
|
+
pango_layout_get_extents (pango_layout, &ink_rect, NULL);
|
453
|
+
|
454
|
+
height = pango_units_to_double (ink_rect.height);
|
455
|
+
width = pango_units_to_double (ink_rect.width);
|
456
|
+
|
457
|
+
lsm_debug_render ( "[LsmMathmlView::measure_operator] Glyph #%i -> width = %g, height = %g",
|
458
|
+
i, width, height);
|
459
|
+
|
460
|
+
if (!is_stretch_bbox_defined) {
|
461
|
+
found = TRUE;
|
462
|
+
break;
|
463
|
+
}
|
464
|
+
|
465
|
+
if (glyph->flags & LSM_MATHML_GLYPH_FLAG_STRETCH_VERTICAL) {
|
466
|
+
if (height > (stretch_bbox->height + stretch_bbox->depth))
|
467
|
+
found = TRUE;
|
468
|
+
}
|
469
|
+
|
470
|
+
if (glyph->flags & LSM_MATHML_GLYPH_FLAG_STRETCH_HORIZONTAL) {
|
471
|
+
if (width > stretch_bbox->width)
|
472
|
+
found = TRUE;
|
473
|
+
}
|
474
|
+
|
475
|
+
if (found)
|
476
|
+
break;
|
477
|
+
}
|
478
|
+
|
479
|
+
if (found)
|
480
|
+
lsm_debug_render ("[LsmMathmlView::measure_operator] Found sized glyph #%i", i);
|
481
|
+
|
482
|
+
iter = pango_layout_get_iter (pango_layout);
|
483
|
+
baseline = pango_layout_iter_get_baseline (iter);
|
484
|
+
pango_layout_iter_free (iter);
|
485
|
+
|
486
|
+
flags = glyph->flags;
|
487
|
+
}
|
488
|
+
|
489
|
+
if (is_stretch_bbox_defined && (flags & LSM_MATHML_GLYPH_FLAG_STRETCH_VERTICAL) &&
|
490
|
+
(stretch_bbox->height + stretch_bbox->depth) >= 0) {
|
491
|
+
bbox->height = stretch_bbox->height;
|
492
|
+
bbox->depth = stretch_bbox->depth;
|
493
|
+
} else {
|
494
|
+
bbox->height = pango_units_to_double (baseline - ink_rect.y);
|
495
|
+
bbox->depth = pango_units_to_double (ink_rect.height + ink_rect.y - baseline);
|
496
|
+
}
|
497
|
+
|
498
|
+
if (is_stretch_bbox_defined && (flags & LSM_MATHML_GLYPH_FLAG_STRETCH_HORIZONTAL) &&
|
499
|
+
stretch_bbox->width >= 0.0)
|
500
|
+
bbox->width = stretch_bbox->width;
|
501
|
+
else
|
502
|
+
bbox->width = pango_units_to_double (ink_rect.width);
|
503
|
+
|
504
|
+
if (!is_stretch_bbox_defined &&
|
505
|
+
(flags & LSM_MATHML_GLYPH_FLAG_ALIGN_AXIS)) {
|
506
|
+
double length = bbox->depth + bbox->height;
|
507
|
+
|
508
|
+
bbox->height = 0.5 * length + axis_offset;
|
509
|
+
bbox->depth = 0.5 * length - axis_offset;
|
510
|
+
}
|
511
|
+
|
512
|
+
if (is_stretch_bbox_defined && symmetric &&
|
513
|
+
(flags & LSM_MATHML_GLYPH_FLAG_STRETCH_VERTICAL)) {
|
514
|
+
double length = MAX (axis_offset + bbox->depth, bbox->height - axis_offset);
|
515
|
+
|
516
|
+
bbox->height = length + axis_offset;
|
517
|
+
bbox->depth = length - axis_offset;
|
518
|
+
}
|
519
|
+
|
520
|
+
bbox->is_defined = TRUE;
|
521
|
+
}
|
522
|
+
|
523
|
+
void
|
524
|
+
lsm_mathml_view_show_operator (LsmMathmlView *view,
|
525
|
+
const LsmMathmlElementStyle *style,
|
526
|
+
double x, double y, char const *text,
|
527
|
+
gboolean large,
|
528
|
+
LsmMathmlBbox const *stretch_bbox)
|
529
|
+
{
|
530
|
+
PangoFontDescription *font_description;
|
531
|
+
PangoLayout *pango_layout;
|
532
|
+
PangoRectangle rect, ink_rect;
|
533
|
+
cairo_t *cairo;
|
534
|
+
const LsmMathmlOperatorGlyph *glyph;
|
535
|
+
const char *font_name;
|
536
|
+
double scale_x, scale_y;
|
537
|
+
int baseline;
|
538
|
+
|
539
|
+
g_return_if_fail (LSM_IS_MATHML_VIEW (view));
|
540
|
+
g_return_if_fail (style != NULL);
|
541
|
+
g_return_if_fail (stretch_bbox != NULL);
|
542
|
+
|
543
|
+
if (text == NULL || !stretch_bbox->is_defined)
|
544
|
+
return;
|
545
|
+
|
546
|
+
font_description = view->dom_view.font_description;
|
547
|
+
pango_layout = view->dom_view.measure_pango_layout;
|
548
|
+
|
549
|
+
if (stretch_bbox->is_defined)
|
550
|
+
lsm_debug_render ("[LsmMathmlView::show_operator] Stretch bbox w = %g, h = %g, d = %g",
|
551
|
+
stretch_bbox->width, stretch_bbox->height, stretch_bbox->depth);
|
552
|
+
|
553
|
+
glyph = lsm_mathml_glyph_table_find_operator_glyph (text);
|
554
|
+
if (glyph == NULL) {
|
555
|
+
lsm_mathml_view_update_layout_for_operator (view, style, text, large,
|
556
|
+
pango_layout, &ink_rect, &rect, &baseline);
|
557
|
+
} else {
|
558
|
+
PangoLayoutIter *iter;
|
559
|
+
unsigned int i;
|
560
|
+
gboolean found = FALSE;
|
561
|
+
|
562
|
+
if (large && (glyph->flags & LSM_MATHML_GLYPH_FLAG_HAS_LARGE_VERSION)) {
|
563
|
+
pango_font_description_set_size (font_description,
|
564
|
+
style->math_size * PANGO_SCALE);
|
565
|
+
i = 1;
|
566
|
+
} else {
|
567
|
+
pango_font_description_set_size (font_description,
|
568
|
+
style->math_size * PANGO_SCALE *
|
569
|
+
(large ? LSM_MATHML_LARGE_OP_SCALE : 1.0));
|
570
|
+
i = 0;
|
571
|
+
}
|
572
|
+
|
573
|
+
for (; i < glyph->n_sized_glyphs; i++) {
|
574
|
+
font_name = lsm_mathml_font_names [glyph->sized_glyphs[i].font];
|
575
|
+
pango_font_description_set_family (font_description, font_name);
|
576
|
+
lsm_mathml_view_apply_style_to_font_description (font_description, style, FALSE);
|
577
|
+
pango_layout_set_text (pango_layout, glyph->sized_glyphs[i].utf8, -1);
|
578
|
+
pango_layout_set_font_description (pango_layout, font_description);
|
579
|
+
pango_layout_get_extents (pango_layout, &ink_rect, NULL);
|
580
|
+
|
581
|
+
lsm_debug_render ("[LsmMathmlView::show_operator] Glyph #%i -> width = %g, height = %g", i,
|
582
|
+
pango_units_to_double (ink_rect.width),
|
583
|
+
pango_units_to_double (ink_rect.height));
|
584
|
+
|
585
|
+
if (!stretch_bbox->is_defined) {
|
586
|
+
found = TRUE;
|
587
|
+
break;
|
588
|
+
}
|
589
|
+
|
590
|
+
if (glyph->flags & LSM_MATHML_GLYPH_FLAG_STRETCH_VERTICAL) {
|
591
|
+
if (pango_units_to_double (ink_rect.height) >
|
592
|
+
(stretch_bbox->height + stretch_bbox->depth))
|
593
|
+
found = TRUE;
|
594
|
+
}
|
595
|
+
|
596
|
+
if (glyph->flags & LSM_MATHML_GLYPH_FLAG_STRETCH_HORIZONTAL) {
|
597
|
+
if (pango_units_to_double (ink_rect.width) >
|
598
|
+
stretch_bbox->width)
|
599
|
+
found = TRUE;
|
600
|
+
}
|
601
|
+
|
602
|
+
if (found)
|
603
|
+
break;
|
604
|
+
}
|
605
|
+
|
606
|
+
if (found)
|
607
|
+
lsm_debug_render ("[LsmMathmlView::show_operator] Found sized glyph #%i", i);
|
608
|
+
|
609
|
+
iter = pango_layout_get_iter (pango_layout);
|
610
|
+
baseline = pango_layout_iter_get_baseline (iter);
|
611
|
+
pango_layout_iter_free (iter);
|
612
|
+
}
|
613
|
+
|
614
|
+
lsm_debug_render ("[LsmMathmlView::show_operator] '%s' at %g, %g (size = %g) %s - %s",
|
615
|
+
text, x, y, style->math_size,
|
616
|
+
style->math_family,
|
617
|
+
lsm_mathml_variant_to_string (style->math_variant));
|
618
|
+
|
619
|
+
if (ink_rect.width == 0 || ink_rect.height == 0)
|
620
|
+
return;
|
621
|
+
|
622
|
+
scale_x = stretch_bbox->width / pango_units_to_double (ink_rect.width);
|
623
|
+
scale_y = (stretch_bbox->height + stretch_bbox->depth) / pango_units_to_double (ink_rect.height);
|
624
|
+
|
625
|
+
cairo = view->dom_view.cairo;
|
626
|
+
|
627
|
+
cairo_save (cairo);
|
628
|
+
|
629
|
+
if (lsm_debug_check (&lsm_debug_category_render, LSM_DEBUG_LEVEL_DEBUG)) {
|
630
|
+
cairo_set_source_rgba (cairo, 1.0, 0.0, 0.0, 0.1);
|
631
|
+
cairo_arc (cairo, x, y, 1.0, 0.0, 2.0 * M_PI);
|
632
|
+
cairo_fill (cairo);
|
633
|
+
}
|
634
|
+
|
635
|
+
cairo_move_to (cairo, x , y - stretch_bbox->height);
|
636
|
+
cairo_scale (cairo, scale_x, scale_y);
|
637
|
+
cairo_rel_move_to (cairo,
|
638
|
+
- pango_units_to_double (ink_rect.x),
|
639
|
+
- pango_units_to_double (ink_rect.y));
|
640
|
+
|
641
|
+
cairo_set_source_rgba (cairo,
|
642
|
+
style->math_color.red,
|
643
|
+
style->math_color.green,
|
644
|
+
style->math_color.blue,
|
645
|
+
style->math_color.alpha);
|
646
|
+
|
647
|
+
pango_cairo_show_layout (cairo, pango_layout);
|
648
|
+
cairo_restore (cairo);
|
649
|
+
}
|
650
|
+
|
651
|
+
double
|
652
|
+
lsm_mathml_view_get_operator_slant (LsmMathmlView *view,
|
653
|
+
const LsmMathmlElementStyle *style,
|
654
|
+
const char *text)
|
655
|
+
{
|
656
|
+
return lsm_mathml_glyph_table_get_operator_slant (text);
|
657
|
+
}
|
658
|
+
|
659
|
+
void
|
660
|
+
lsm_mathml_view_measure_radical (LsmMathmlView *view,
|
661
|
+
const LsmMathmlElementStyle *style,
|
662
|
+
const LsmMathmlBbox *stretch_bbox,
|
663
|
+
LsmMathmlBbox *bbox, double *x_offset, double *y_offset)
|
664
|
+
{
|
665
|
+
LsmMathmlBbox radical_stretch_bbox;
|
666
|
+
double thickness;
|
667
|
+
|
668
|
+
g_return_if_fail (LSM_IS_MATHML_VIEW (view));
|
669
|
+
g_return_if_fail (style != NULL);
|
670
|
+
g_return_if_fail (bbox != NULL);
|
671
|
+
g_return_if_fail (stretch_bbox != NULL);
|
672
|
+
|
673
|
+
radical_stretch_bbox = *stretch_bbox;
|
674
|
+
|
675
|
+
thickness = style->math_size * LSM_MATHML_RADICAL_TOP_LINE_WIDTH;
|
676
|
+
|
677
|
+
radical_stretch_bbox.height += LSM_MATHML_SPACE_EM_THICK * style->math_size + thickness;
|
678
|
+
|
679
|
+
radical_stretch_bbox.depth += LSM_MATHML_SPACE_EM_THICK * style->math_size;
|
680
|
+
|
681
|
+
lsm_mathml_view_measure_operator (view, style, LSM_MATHML_RADICAL_UTF8,
|
682
|
+
FALSE, FALSE, 0.0,
|
683
|
+
0, G_MAXDOUBLE,
|
684
|
+
&radical_stretch_bbox, bbox);
|
685
|
+
|
686
|
+
if (x_offset != NULL) {
|
687
|
+
*x_offset = bbox->width * LSM_MATHML_RADICAL_ORDER_X_OFFSET;
|
688
|
+
}
|
689
|
+
|
690
|
+
if (y_offset != NULL) {
|
691
|
+
*y_offset = (bbox->height + bbox->depth) * LSM_MATHML_RADICAL_ORDER_Y_OFFSET -
|
692
|
+
LSM_MATHML_SPACE_EM_MEDIUM * style->math_size;
|
693
|
+
}
|
694
|
+
}
|
695
|
+
|
696
|
+
void
|
697
|
+
lsm_mathml_view_show_radical (LsmMathmlView *view,
|
698
|
+
const LsmMathmlElementStyle *style,
|
699
|
+
double x, double y, double width,
|
700
|
+
LsmMathmlBbox const *stretch_bbox)
|
701
|
+
{
|
702
|
+
cairo_t *cairo;
|
703
|
+
double thickness;
|
704
|
+
double y_line;
|
705
|
+
double dummy = 0.0;
|
706
|
+
double alpha;
|
707
|
+
|
708
|
+
g_return_if_fail (LSM_IS_MATHML_VIEW (view));
|
709
|
+
g_return_if_fail (style != NULL);
|
710
|
+
g_return_if_fail (stretch_bbox != NULL);
|
711
|
+
|
712
|
+
cairo = view->dom_view.cairo;
|
713
|
+
|
714
|
+
lsm_mathml_view_show_operator (view, style, x, y, LSM_MATHML_RADICAL_UTF8, FALSE, stretch_bbox);
|
715
|
+
|
716
|
+
thickness = style->math_size * LSM_MATHML_RADICAL_TOP_LINE_WIDTH;
|
717
|
+
|
718
|
+
alpha = style->math_color.alpha;
|
719
|
+
|
720
|
+
if (!view->dom_view.is_vector) {
|
721
|
+
cairo_user_to_device_distance (cairo, &dummy, &thickness);
|
722
|
+
|
723
|
+
if (thickness < 1.0) {
|
724
|
+
alpha *= thickness;
|
725
|
+
thickness = 1.0;
|
726
|
+
}
|
727
|
+
|
728
|
+
thickness = floor (thickness + 0.5);
|
729
|
+
cairo_device_to_user_distance (cairo, &dummy, &thickness);
|
730
|
+
}
|
731
|
+
|
732
|
+
cairo_save (cairo);
|
733
|
+
cairo_set_line_cap (cairo, CAIRO_LINE_CAP_ROUND);
|
734
|
+
cairo_set_line_width (cairo, thickness);
|
735
|
+
|
736
|
+
cairo_set_source_rgba (cairo,
|
737
|
+
style->math_color.red,
|
738
|
+
style->math_color.green,
|
739
|
+
style->math_color.blue,
|
740
|
+
alpha);
|
741
|
+
|
742
|
+
x += stretch_bbox->width;
|
743
|
+
|
744
|
+
y_line = y - stretch_bbox->height;
|
745
|
+
|
746
|
+
if (!view->dom_view.is_vector) {
|
747
|
+
cairo_user_to_device (cairo, &dummy, &y_line);
|
748
|
+
|
749
|
+
y_line = floor (y_line);
|
750
|
+
|
751
|
+
cairo_device_to_user (cairo, &dummy, &y_line);
|
752
|
+
}
|
753
|
+
|
754
|
+
y_line += 0.5 * thickness;
|
755
|
+
|
756
|
+
cairo_move_to (cairo,
|
757
|
+
x - 0.5 * style->math_size * LSM_MATHML_RADICAL_TOP_LINE_WIDTH,
|
758
|
+
y_line);
|
759
|
+
cairo_line_to (cairo,
|
760
|
+
x - thickness * 0.5 + width,
|
761
|
+
y_line);
|
762
|
+
|
763
|
+
cairo_stroke (cairo);
|
764
|
+
|
765
|
+
cairo_restore (cairo);
|
766
|
+
}
|
767
|
+
|
768
|
+
static void
|
769
|
+
_round_rectangle_coordinates (cairo_t *cairo,
|
770
|
+
_LsmMathmlStrokeWidth stroke_width,
|
771
|
+
double *x0, double *y0,
|
772
|
+
double *x1, double *y1)
|
773
|
+
{
|
774
|
+
if (stroke_width != _GMATHML_STROKE_WIDTH_VECTOR) {
|
775
|
+
cairo_user_to_device (cairo, x0, y0);
|
776
|
+
cairo_user_to_device (cairo, x1, y1);
|
777
|
+
|
778
|
+
if (stroke_width == _GMATHML_STROKE_WIDTH_EVEN) {
|
779
|
+
*x0 = floor (*x0 + 0.5);
|
780
|
+
*y0 = floor (*y0 + 0.5);
|
781
|
+
*x1 = floor (*x1 + 0.5);
|
782
|
+
*y1 = floor (*y1 + 0.5);
|
783
|
+
} else {
|
784
|
+
*x0 = 0.5 + floor (*x0);
|
785
|
+
*y0 = 0.5 + floor (*y0);
|
786
|
+
*x1 = 0.5 + floor (*x1);
|
787
|
+
*y1 = 0.5 + floor (*y1);
|
788
|
+
}
|
789
|
+
|
790
|
+
cairo_device_to_user (cairo, x0, y0);
|
791
|
+
cairo_device_to_user (cairo, x1, y1);
|
792
|
+
}
|
793
|
+
}
|
794
|
+
|
795
|
+
static _LsmMathmlStrokeWidth
|
796
|
+
_emit_stroke_attributes (LsmMathmlView *view, LsmMathmlLine line, double line_width,
|
797
|
+
const LsmMathmlColor *color)
|
798
|
+
{
|
799
|
+
_LsmMathmlStrokeWidth stroke_width;
|
800
|
+
cairo_t *cairo;
|
801
|
+
double dashes[2] = {3.0, 2.0};
|
802
|
+
double rounded_width = line_width;
|
803
|
+
double dummy = 0;
|
804
|
+
double alpha = color->alpha;
|
805
|
+
|
806
|
+
cairo = view->dom_view.cairo;
|
807
|
+
|
808
|
+
switch (line) {
|
809
|
+
case LSM_MATHML_LINE_DASHED:
|
810
|
+
cairo_set_dash (cairo, dashes, 2, 0.0);
|
811
|
+
break;
|
812
|
+
case LSM_MATHML_LINE_SOLID:
|
813
|
+
cairo_set_dash (cairo, NULL, 0, 0.0);
|
814
|
+
break;
|
815
|
+
default:
|
816
|
+
return _GMATHML_STROKE_WIDTH_NULL;
|
817
|
+
}
|
818
|
+
|
819
|
+
if (view->dom_view.is_vector) {
|
820
|
+
cairo_set_line_width (cairo, line_width);
|
821
|
+
cairo_set_source_rgba (cairo,
|
822
|
+
color->red,
|
823
|
+
color->green,
|
824
|
+
color->blue,
|
825
|
+
color->alpha);
|
826
|
+
return _GMATHML_STROKE_WIDTH_VECTOR;
|
827
|
+
}
|
828
|
+
|
829
|
+
cairo_user_to_device_distance (cairo, &dummy, &rounded_width);
|
830
|
+
|
831
|
+
if (rounded_width < 1.0) {
|
832
|
+
alpha *= rounded_width;
|
833
|
+
rounded_width = 1.0;
|
834
|
+
}
|
835
|
+
|
836
|
+
rounded_width = floor (rounded_width + 0.5);
|
837
|
+
|
838
|
+
if (((int) rounded_width) % 2 == 0)
|
839
|
+
stroke_width = _GMATHML_STROKE_WIDTH_EVEN;
|
840
|
+
else
|
841
|
+
stroke_width = _GMATHML_STROKE_WIDTH_ODD;
|
842
|
+
|
843
|
+
cairo_device_to_user_distance (cairo, &dummy, &rounded_width);
|
844
|
+
|
845
|
+
cairo_set_line_width (cairo, rounded_width);
|
846
|
+
cairo_set_source_rgba (cairo,
|
847
|
+
color->red,
|
848
|
+
color->green,
|
849
|
+
color->blue,
|
850
|
+
alpha);
|
851
|
+
|
852
|
+
return stroke_width;
|
853
|
+
}
|
854
|
+
|
855
|
+
const LsmMathmlPadding notation_padding[] = {
|
856
|
+
{ .left = 0.0, .right = 0.0, .top = 1.0, .bottom = 0.0 }, /* longdiv */
|
857
|
+
{ .left = 1.0, .right = 1.0, .top = 1.0, .bottom = 1.0 }, /* actuarial */
|
858
|
+
{ .left = 0.0, .right = 0.0, .top = 0.0, .bottom = 0.0 }, /* radical */
|
859
|
+
{ .left = 1.0, .right = 1.0, .top = 1.0, .bottom = 1.0 }, /* box */
|
860
|
+
{ .left = 1.0, .right = 1.0, .top = 1.0, .bottom = 1.0 }, /* boundedbox */
|
861
|
+
{ .left = 2.0, .right = 2.0, .top = 2.0, .bottom = 2.0 }, /* circle */
|
862
|
+
{ .left = 1.0, .right = 0.0, .top = 1.0, .bottom = 1.0 }, /* left */
|
863
|
+
{ .left = 0.0, .right = 1.0, .top = 1.0, .bottom = 1.0 }, /* right */
|
864
|
+
{ .left = 1.0, .right = 1.0, .top = 1.0, .bottom = 0.0 }, /* top */
|
865
|
+
{ .left = 1.0, .right = 1.0, .top = 0.0, .bottom = 1.0 }, /* bottom */
|
866
|
+
{ .left = 0.0, .right = 0.0, .top = 1.0, .bottom = 1.0 }, /* updiagonalstrike */
|
867
|
+
{ .left = 0.0, .right = 0.0, .top = 1.0, .bottom = 1.0 }, /* downdiagonalstrike */
|
868
|
+
{ .left = 0.0, .right = 0.0, .top = 1.0, .bottom = 1.0 }, /* verticalstrike */
|
869
|
+
{ .left = 1.0, .right = 1.0, .top = 0.0, .bottom = 0.0 }, /* horizontalstrike */
|
870
|
+
{ .left = 1.0, .right = 1.0, .top = 1.0, .bottom = 1.0 }, /* madruwb */
|
871
|
+
{ .left = 0.0, .right = 5.0, .top = 1.0, .bottom = 1.0 } /* updiagonalarrow */
|
872
|
+
};
|
873
|
+
|
874
|
+
void
|
875
|
+
lsm_mathml_view_measure_notation (LsmMathmlView *view,
|
876
|
+
const LsmMathmlElementStyle *style,
|
877
|
+
LsmMathmlNotation notation,
|
878
|
+
const LsmMathmlBbox *stretch_bbox,
|
879
|
+
LsmMathmlBbox *bbox,
|
880
|
+
double *x_child_offset)
|
881
|
+
{
|
882
|
+
LsmMathmlLength padding_x = {.value = 0.5, .unit = LSM_MATHML_UNIT_EX};
|
883
|
+
LsmMathmlLength padding_y = {.value = 0.4, .unit = LSM_MATHML_UNIT_EM};
|
884
|
+
double base_x;
|
885
|
+
double base_y;
|
886
|
+
|
887
|
+
g_return_if_fail (LSM_IS_MATHML_VIEW (view));
|
888
|
+
g_return_if_fail (style != NULL);
|
889
|
+
g_return_if_fail (stretch_bbox != NULL);
|
890
|
+
g_return_if_fail (bbox != NULL);
|
891
|
+
|
892
|
+
if (notation == LSM_MATHML_NOTATION_RADICAL) {
|
893
|
+
lsm_mathml_view_measure_radical (view, style, stretch_bbox, bbox, NULL, NULL);
|
894
|
+
if (x_child_offset != NULL)
|
895
|
+
*x_child_offset = bbox->width;
|
896
|
+
lsm_mathml_bbox_add_horizontally (bbox, stretch_bbox);
|
897
|
+
return;
|
898
|
+
}
|
899
|
+
|
900
|
+
base_x = lsm_mathml_length_normalize (&padding_x, 0.0, style->math_size);
|
901
|
+
base_y = lsm_mathml_length_normalize (&padding_y, 0.0, style->math_size);
|
902
|
+
|
903
|
+
*bbox = *stretch_bbox;
|
904
|
+
|
905
|
+
if (notation >= 0 && notation < LSM_MATHML_NOTATION_LAST) {
|
906
|
+
bbox->width += base_x * (notation_padding[notation].left + notation_padding[notation].right);
|
907
|
+
bbox->height += base_y * notation_padding[notation].top;
|
908
|
+
bbox->depth += base_y * notation_padding[notation].bottom;
|
909
|
+
|
910
|
+
if (notation == LSM_MATHML_NOTATION_LONGDIV) {
|
911
|
+
bbox->width += bbox->height / 2.0;
|
912
|
+
if (x_child_offset != NULL)
|
913
|
+
*x_child_offset = bbox->height / 2.0;
|
914
|
+
} else {
|
915
|
+
if (x_child_offset != NULL)
|
916
|
+
*x_child_offset = base_x * notation_padding[notation].left;
|
917
|
+
}
|
918
|
+
} else {
|
919
|
+
if (x_child_offset != NULL)
|
920
|
+
*x_child_offset = 0;
|
921
|
+
}
|
922
|
+
}
|
923
|
+
|
924
|
+
static void
|
925
|
+
_cairo_arrow (cairo_t *cairo, double scale, double x0, double y0, double x1, double y1)
|
926
|
+
{
|
927
|
+
double angle;
|
928
|
+
double x2, y2;
|
929
|
+
|
930
|
+
if ((y1 - y0) == 0 && (x1 - x0) == 0)
|
931
|
+
return;
|
932
|
+
|
933
|
+
angle = atan2 (y1 - y0, x1 - x0);
|
934
|
+
x2 = x1 - scale * cos (angle) / 2.0;
|
935
|
+
y2 = y1 - scale * sin (angle) / 2.0;
|
936
|
+
|
937
|
+
cairo_move_to (cairo, x0, y0);
|
938
|
+
cairo_line_to (cairo, x2, y2);
|
939
|
+
cairo_stroke (cairo);
|
940
|
+
|
941
|
+
cairo_save (cairo);
|
942
|
+
|
943
|
+
cairo_translate (cairo, x1, y1);
|
944
|
+
cairo_scale (cairo, scale, scale);
|
945
|
+
cairo_rotate (cairo, angle);
|
946
|
+
|
947
|
+
cairo_move_to (cairo, -1.0, 0.3);
|
948
|
+
cairo_line_to (cairo, 0.0, 0.0);
|
949
|
+
cairo_line_to (cairo, -1.0, -0.3);
|
950
|
+
cairo_line_to (cairo, -0.9, 0.0);
|
951
|
+
cairo_close_path (cairo);
|
952
|
+
|
953
|
+
cairo_restore (cairo);
|
954
|
+
|
955
|
+
cairo_fill (cairo);
|
956
|
+
}
|
957
|
+
|
958
|
+
static void
|
959
|
+
_cairo_rounded_rectangle (cairo_t *cairo, double radius, double x0, double y0, double x1, double y1)
|
960
|
+
{
|
961
|
+
cairo_new_path (cairo);
|
962
|
+
|
963
|
+
cairo_arc (cairo, x0 + radius, y0 - radius, radius, M_PI / 2.0, -M_PI);
|
964
|
+
cairo_arc (cairo, x0 + radius, y1 + radius, radius, M_PI, -M_PI / 2.0);
|
965
|
+
cairo_arc (cairo, x1 - radius, y1 + radius, radius, -M_PI / 2.0, 0.0);
|
966
|
+
cairo_arc (cairo, x1 - radius, y0 - radius, radius, 0.0, M_PI / 2.0);
|
967
|
+
cairo_close_path (cairo);
|
968
|
+
|
969
|
+
cairo_stroke (cairo);
|
970
|
+
}
|
971
|
+
|
972
|
+
void
|
973
|
+
lsm_mathml_view_show_notation (LsmMathmlView *view,
|
974
|
+
const LsmMathmlElementStyle *style,
|
975
|
+
LsmMathmlNotation notation,
|
976
|
+
double x, double y,
|
977
|
+
const LsmMathmlBbox *bbox,
|
978
|
+
double x_child_offset)
|
979
|
+
{
|
980
|
+
LsmMathmlBbox stretch_bbox;
|
981
|
+
LsmMathmlLength padding_x = {.value = 0.5, .unit = LSM_MATHML_UNIT_EX};
|
982
|
+
_LsmMathmlStrokeWidth stroke_width;
|
983
|
+
cairo_t *cairo;
|
984
|
+
double x1, y1;
|
985
|
+
double base_x;
|
986
|
+
|
987
|
+
g_return_if_fail (LSM_IS_MATHML_VIEW (view));
|
988
|
+
g_return_if_fail (style != NULL);
|
989
|
+
g_return_if_fail (bbox != NULL);
|
990
|
+
|
991
|
+
stroke_width = _emit_stroke_attributes (view, LSM_MATHML_LINE_SOLID, 1.0, &style->math_color);
|
992
|
+
|
993
|
+
_debug_element_style ("[LsmMathmlView::render] Show notation %s", style);
|
994
|
+
|
995
|
+
if (stroke_width == _GMATHML_STROKE_WIDTH_NULL)
|
996
|
+
return;
|
997
|
+
|
998
|
+
base_x = lsm_mathml_length_normalize (&padding_x, 0.0, style->math_size);
|
999
|
+
|
1000
|
+
y = y + bbox->depth;
|
1001
|
+
x1 = x + bbox->width;
|
1002
|
+
y1 = y - bbox->height - bbox->depth;
|
1003
|
+
|
1004
|
+
cairo = view->dom_view.cairo;
|
1005
|
+
|
1006
|
+
_round_rectangle_coordinates (cairo, stroke_width, &x, &y, &x1, &y1);
|
1007
|
+
|
1008
|
+
cairo_new_path (cairo);
|
1009
|
+
|
1010
|
+
switch (notation) {
|
1011
|
+
case LSM_MATHML_NOTATION_ACTUARIAL:
|
1012
|
+
cairo_move_to (cairo, x, y1);
|
1013
|
+
cairo_line_to (cairo, x1, y1);
|
1014
|
+
cairo_line_to (cairo, x1, y);
|
1015
|
+
cairo_stroke (cairo);
|
1016
|
+
break;
|
1017
|
+
case LSM_MATHML_NOTATION_RADICAL:
|
1018
|
+
stretch_bbox = *bbox;
|
1019
|
+
stretch_bbox.width = x_child_offset;
|
1020
|
+
lsm_mathml_view_show_radical (view, style, x, y - bbox->depth,
|
1021
|
+
bbox->width - x_child_offset, &stretch_bbox);
|
1022
|
+
break;
|
1023
|
+
case LSM_MATHML_NOTATION_BOX:
|
1024
|
+
cairo_move_to (cairo, x, y);
|
1025
|
+
cairo_line_to (cairo, x, y1);
|
1026
|
+
cairo_line_to (cairo, x1, y1);
|
1027
|
+
cairo_line_to (cairo, x1, y);
|
1028
|
+
cairo_close_path (cairo);
|
1029
|
+
cairo_stroke (cairo);
|
1030
|
+
break;
|
1031
|
+
case LSM_MATHML_NOTATION_ROUNDED_BOX:
|
1032
|
+
_cairo_rounded_rectangle (cairo, base_x, x, y, x1, y1);
|
1033
|
+
break;
|
1034
|
+
case LSM_MATHML_NOTATION_CIRCLE:
|
1035
|
+
cairo_save (cairo);
|
1036
|
+
cairo_translate (cairo, (x + x1) / 2.0, (y + y1) / 2.0);
|
1037
|
+
cairo_scale (cairo, (x - x1) / 2.0, (y - y1) / 2.0);
|
1038
|
+
cairo_arc (cairo, 0., 0., 1., 0., 2 * M_PI);
|
1039
|
+
cairo_restore (cairo);
|
1040
|
+
cairo_stroke (cairo);
|
1041
|
+
break;
|
1042
|
+
case LSM_MATHML_NOTATION_LEFT:
|
1043
|
+
cairo_move_to (cairo, x, y);
|
1044
|
+
cairo_line_to (cairo, x, y1);
|
1045
|
+
cairo_stroke (cairo);
|
1046
|
+
break;
|
1047
|
+
case LSM_MATHML_NOTATION_RIGHT:
|
1048
|
+
cairo_move_to (cairo, x1, y);
|
1049
|
+
cairo_line_to (cairo, x1, y1);
|
1050
|
+
cairo_stroke (cairo);
|
1051
|
+
break;
|
1052
|
+
case LSM_MATHML_NOTATION_TOP:
|
1053
|
+
cairo_move_to (cairo, x, y1);
|
1054
|
+
cairo_line_to (cairo, x1, y1);
|
1055
|
+
cairo_stroke (cairo);
|
1056
|
+
break;
|
1057
|
+
case LSM_MATHML_NOTATION_BOTTOM:
|
1058
|
+
cairo_move_to (cairo, x, y);
|
1059
|
+
cairo_line_to (cairo, x1, y);
|
1060
|
+
cairo_stroke (cairo);
|
1061
|
+
break;
|
1062
|
+
case LSM_MATHML_NOTATION_UP_DIAGONAL_STRIKE:
|
1063
|
+
cairo_move_to (cairo, x, y);
|
1064
|
+
cairo_line_to (cairo, x1, y1);
|
1065
|
+
cairo_stroke (cairo);
|
1066
|
+
break;
|
1067
|
+
case LSM_MATHML_NOTATION_DOWN_DIAGONAL_STRIKE:
|
1068
|
+
cairo_move_to (cairo, x, y1);
|
1069
|
+
cairo_line_to (cairo, x1, y);
|
1070
|
+
cairo_stroke (cairo);
|
1071
|
+
break;
|
1072
|
+
case LSM_MATHML_NOTATION_HORIZONTAL_STRIKE:
|
1073
|
+
cairo_move_to (cairo, x, (y + y1) / 2.0);
|
1074
|
+
cairo_line_to (cairo, x1,(y + y1) / 2.0);
|
1075
|
+
cairo_stroke (cairo);
|
1076
|
+
break;
|
1077
|
+
case LSM_MATHML_NOTATION_VERTICAL_STRIKE:
|
1078
|
+
cairo_move_to (cairo, (x + x1) / 2.0, y);
|
1079
|
+
cairo_line_to (cairo, (x + x1) / 2.0, y1);
|
1080
|
+
cairo_stroke (cairo);
|
1081
|
+
break;
|
1082
|
+
case LSM_MATHML_NOTATION_MADRUWB:
|
1083
|
+
cairo_move_to (cairo, x, y);
|
1084
|
+
cairo_line_to (cairo, x1, y);
|
1085
|
+
cairo_line_to (cairo, x1, y1);
|
1086
|
+
cairo_stroke (cairo);
|
1087
|
+
break;
|
1088
|
+
case LSM_MATHML_NOTATION_UP_DIAGONAL_ARROW:
|
1089
|
+
_cairo_arrow (cairo, 4.0 * base_x, x, y, x1, y1);
|
1090
|
+
break;
|
1091
|
+
case LSM_MATHML_NOTATION_ERROR:
|
1092
|
+
case LSM_MATHML_NOTATION_LONGDIV:
|
1093
|
+
default:
|
1094
|
+
cairo_move_to (cairo, x, y);
|
1095
|
+
cairo_curve_to (cairo,
|
1096
|
+
x + bbox->height / 4.0, y - bbox->height / 4.0,
|
1097
|
+
x + bbox->height / 4.0, y1 + bbox->height / 4.0,
|
1098
|
+
x, y1);
|
1099
|
+
cairo_line_to (cairo, x1, y1);
|
1100
|
+
cairo_stroke (cairo);
|
1101
|
+
break;
|
1102
|
+
}
|
1103
|
+
}
|
1104
|
+
|
1105
|
+
void
|
1106
|
+
lsm_mathml_view_show_background (LsmMathmlView *view,
|
1107
|
+
const LsmMathmlElementStyle *style,
|
1108
|
+
double x, double y,
|
1109
|
+
const LsmMathmlBbox *bbox)
|
1110
|
+
{
|
1111
|
+
cairo_t *cairo;
|
1112
|
+
double x0, y0, x1, y1;
|
1113
|
+
|
1114
|
+
g_return_if_fail (LSM_IS_MATHML_VIEW (view));
|
1115
|
+
g_return_if_fail (style != NULL);
|
1116
|
+
|
1117
|
+
cairo = view->dom_view.cairo;
|
1118
|
+
|
1119
|
+
x0 = x;
|
1120
|
+
y0 = y - bbox->height;
|
1121
|
+
x1 = x + bbox->width;
|
1122
|
+
y1 = y + bbox->depth;
|
1123
|
+
|
1124
|
+
if (!view->dom_view.is_vector)
|
1125
|
+
_round_rectangle_coordinates (cairo, _GMATHML_STROKE_WIDTH_EVEN, &x0, &y0, &x1, &y1);
|
1126
|
+
|
1127
|
+
cairo_set_source_rgba (cairo,
|
1128
|
+
style->math_background.red,
|
1129
|
+
style->math_background.green,
|
1130
|
+
style->math_background.blue,
|
1131
|
+
style->math_background.alpha);
|
1132
|
+
cairo_rectangle (cairo, x0, y0, x1 - x0, y1 - y0);
|
1133
|
+
cairo_fill (cairo);
|
1134
|
+
}
|
1135
|
+
|
1136
|
+
void
|
1137
|
+
lsm_mathml_view_show_bbox (LsmMathmlView *view, double x, double y, const LsmMathmlBbox *bbox)
|
1138
|
+
{
|
1139
|
+
cairo_t *cairo;
|
1140
|
+
|
1141
|
+
g_return_if_fail (LSM_IS_MATHML_VIEW (view));
|
1142
|
+
|
1143
|
+
cairo = view->dom_view.cairo;
|
1144
|
+
|
1145
|
+
if (lsm_debug_check (&lsm_debug_category_render, LSM_DEBUG_LEVEL_DEBUG)) {
|
1146
|
+
cairo_move_to (cairo, x, y);
|
1147
|
+
cairo_set_source_rgba (cairo, 0,0,1,0.1);
|
1148
|
+
cairo_rectangle (cairo, x, y, bbox->width, -bbox->height);
|
1149
|
+
cairo_rectangle (cairo, x, y, bbox->width, bbox->depth);
|
1150
|
+
cairo_fill (cairo);
|
1151
|
+
}
|
1152
|
+
}
|
1153
|
+
|
1154
|
+
void
|
1155
|
+
lsm_mathml_view_show_rectangle (LsmMathmlView *view,
|
1156
|
+
const LsmMathmlElementStyle *style,
|
1157
|
+
double x0, double y0, double width, double height,
|
1158
|
+
LsmMathmlLine line, double line_width)
|
1159
|
+
{
|
1160
|
+
_LsmMathmlStrokeWidth stroke_width;
|
1161
|
+
cairo_t *cairo;
|
1162
|
+
double x1, y1;
|
1163
|
+
|
1164
|
+
g_return_if_fail (LSM_IS_MATHML_VIEW (view));
|
1165
|
+
g_return_if_fail (style != NULL);
|
1166
|
+
|
1167
|
+
stroke_width = _emit_stroke_attributes (view, line, line_width, &style->math_color);
|
1168
|
+
|
1169
|
+
if (stroke_width == _GMATHML_STROKE_WIDTH_NULL)
|
1170
|
+
return;
|
1171
|
+
|
1172
|
+
x1 = x0 + width;
|
1173
|
+
y1 = y0 + height;
|
1174
|
+
|
1175
|
+
cairo = view->dom_view.cairo;
|
1176
|
+
|
1177
|
+
_round_rectangle_coordinates (cairo, stroke_width, &x0, &y0, &x1, &y1);
|
1178
|
+
|
1179
|
+
cairo_rectangle (cairo, x0, y0, x1 - x0, y1 - y0);
|
1180
|
+
cairo_stroke (cairo);
|
1181
|
+
}
|
1182
|
+
|
1183
|
+
void
|
1184
|
+
lsm_mathml_view_show_line (LsmMathmlView *view,
|
1185
|
+
const LsmMathmlElementStyle *style,
|
1186
|
+
double x0, double y0, double x1, double y1,
|
1187
|
+
LsmMathmlLine line, double line_width)
|
1188
|
+
{
|
1189
|
+
_LsmMathmlStrokeWidth stroke_width;
|
1190
|
+
cairo_t *cairo;
|
1191
|
+
|
1192
|
+
g_return_if_fail (LSM_IS_MATHML_VIEW (view));
|
1193
|
+
g_return_if_fail (style != NULL);
|
1194
|
+
|
1195
|
+
stroke_width = _emit_stroke_attributes (view, line, line_width, &style->math_color);
|
1196
|
+
|
1197
|
+
if (stroke_width == _GMATHML_STROKE_WIDTH_NULL)
|
1198
|
+
return;
|
1199
|
+
|
1200
|
+
cairo = view->dom_view.cairo;
|
1201
|
+
|
1202
|
+
_round_rectangle_coordinates (cairo, stroke_width, &x0, &y0, &x1, &y1);
|
1203
|
+
|
1204
|
+
cairo_move_to (cairo, x0, y0);
|
1205
|
+
cairo_line_to (cairo, x1, y1);
|
1206
|
+
cairo_stroke (cairo);
|
1207
|
+
}
|
1208
|
+
|
1209
|
+
void
|
1210
|
+
lsm_mathml_view_show_fraction_line (LsmMathmlView *view,
|
1211
|
+
const LsmMathmlElementStyle *style,
|
1212
|
+
double x, double y,
|
1213
|
+
double width, double thickness)
|
1214
|
+
{
|
1215
|
+
_LsmMathmlStrokeWidth stroke_width;
|
1216
|
+
cairo_t *cairo;
|
1217
|
+
double x0, y0, x1, y1;
|
1218
|
+
|
1219
|
+
g_return_if_fail (LSM_IS_MATHML_VIEW (view));
|
1220
|
+
g_return_if_fail (style != NULL);
|
1221
|
+
|
1222
|
+
stroke_width = _emit_stroke_attributes (view, LSM_MATHML_LINE_SOLID, thickness, &style->math_color);
|
1223
|
+
|
1224
|
+
_debug_element_style ("[LsmMathmlView::render] Show fraction line %s", style);
|
1225
|
+
|
1226
|
+
if (stroke_width == _GMATHML_STROKE_WIDTH_NULL)
|
1227
|
+
return;
|
1228
|
+
|
1229
|
+
x0 = x;
|
1230
|
+
y0 = y;
|
1231
|
+
x1 = x + width;
|
1232
|
+
y1 = y;
|
1233
|
+
|
1234
|
+
cairo = view->dom_view.cairo;
|
1235
|
+
|
1236
|
+
_round_rectangle_coordinates (cairo, stroke_width, &x0, &y0, &x1, &y1);
|
1237
|
+
|
1238
|
+
cairo_move_to (cairo, x0, y0);
|
1239
|
+
cairo_line_to (cairo, x1, y1);
|
1240
|
+
cairo_stroke (cairo);
|
1241
|
+
}
|
1242
|
+
|
1243
|
+
static const LsmMathmlBbox *
|
1244
|
+
_view_measure (LsmMathmlView *view, double *width, double *height, double *baseline)
|
1245
|
+
{
|
1246
|
+
LsmMathmlMathElement *math_element;
|
1247
|
+
const LsmMathmlBbox *bbox;
|
1248
|
+
|
1249
|
+
math_element = lsm_mathml_document_get_root_element (LSM_MATHML_DOCUMENT (view->dom_view.document));
|
1250
|
+
if (math_element == NULL)
|
1251
|
+
return NULL;
|
1252
|
+
|
1253
|
+
lsm_mathml_math_element_update (math_element);
|
1254
|
+
|
1255
|
+
bbox = lsm_mathml_math_element_measure (math_element, view);
|
1256
|
+
|
1257
|
+
if (bbox != NULL) {
|
1258
|
+
if (width != NULL)
|
1259
|
+
*width = bbox->width;
|
1260
|
+
if (height != NULL)
|
1261
|
+
*height = bbox->height + bbox->depth;
|
1262
|
+
if (baseline != NULL)
|
1263
|
+
*baseline = bbox->height;
|
1264
|
+
}
|
1265
|
+
|
1266
|
+
return bbox;
|
1267
|
+
}
|
1268
|
+
|
1269
|
+
static void
|
1270
|
+
lsm_mathml_view_measure (LsmDomView *dom_view, double *width, double *height, double *baseline)
|
1271
|
+
{
|
1272
|
+
_view_measure (LSM_MATHML_VIEW (dom_view), width, height, baseline);
|
1273
|
+
}
|
1274
|
+
|
1275
|
+
static void
|
1276
|
+
lsm_mathml_view_render (LsmDomView *dom_view)
|
1277
|
+
{
|
1278
|
+
LsmMathmlView *view = LSM_MATHML_VIEW (dom_view);
|
1279
|
+
LsmMathmlMathElement *math_element;
|
1280
|
+
cairo_t *cairo;
|
1281
|
+
const LsmMathmlBbox *bbox;
|
1282
|
+
double resolution_ppi;
|
1283
|
+
|
1284
|
+
math_element = lsm_mathml_document_get_root_element (LSM_MATHML_DOCUMENT (view->dom_view.document));
|
1285
|
+
if (math_element == NULL)
|
1286
|
+
return;
|
1287
|
+
|
1288
|
+
resolution_ppi = lsm_dom_view_get_resolution (dom_view);
|
1289
|
+
|
1290
|
+
bbox = _view_measure (view, NULL, NULL, NULL);
|
1291
|
+
|
1292
|
+
lsm_mathml_math_element_layout (math_element, view, bbox);
|
1293
|
+
|
1294
|
+
cairo = view->dom_view.cairo;
|
1295
|
+
|
1296
|
+
cairo_scale (cairo, resolution_ppi / 72.0, resolution_ppi / 72.0);
|
1297
|
+
|
1298
|
+
cairo_translate (cairo, 0, bbox->height);
|
1299
|
+
|
1300
|
+
lsm_mathml_math_element_render (math_element, view);
|
1301
|
+
|
1302
|
+
lsm_debug_render ("[LsmMathmlView::render] cairo status = %s",
|
1303
|
+
cairo_status_to_string (cairo_status (cairo)));
|
1304
|
+
}
|
1305
|
+
|
1306
|
+
LsmMathmlView *
|
1307
|
+
lsm_mathml_view_new (LsmMathmlDocument *document)
|
1308
|
+
{
|
1309
|
+
LsmMathmlView *view;
|
1310
|
+
|
1311
|
+
view = g_object_new (LSM_TYPE_MATHML_VIEW, NULL);
|
1312
|
+
|
1313
|
+
lsm_dom_view_set_document (LSM_DOM_VIEW (view), LSM_DOM_DOCUMENT (document));
|
1314
|
+
|
1315
|
+
return view;
|
1316
|
+
}
|
1317
|
+
|
1318
|
+
static void
|
1319
|
+
lsm_mathml_view_init (LsmMathmlView *view)
|
1320
|
+
{
|
1321
|
+
}
|
1322
|
+
|
1323
|
+
static void
|
1324
|
+
lsm_mathml_view_finalize (GObject *object)
|
1325
|
+
{
|
1326
|
+
parent_class->finalize (object);
|
1327
|
+
}
|
1328
|
+
|
1329
|
+
static void
|
1330
|
+
lsm_mathml_view_class_init (LsmMathmlViewClass *view_class)
|
1331
|
+
{
|
1332
|
+
GObjectClass *object_class = G_OBJECT_CLASS (view_class);
|
1333
|
+
LsmDomViewClass *d_view_class = LSM_DOM_VIEW_CLASS (view_class);
|
1334
|
+
|
1335
|
+
parent_class = g_type_class_peek_parent (view_class);
|
1336
|
+
|
1337
|
+
object_class->finalize = lsm_mathml_view_finalize;
|
1338
|
+
|
1339
|
+
d_view_class->measure = lsm_mathml_view_measure;
|
1340
|
+
d_view_class->render = lsm_mathml_view_render;
|
1341
|
+
}
|
1342
|
+
|
1343
|
+
G_DEFINE_TYPE (LsmMathmlView, lsm_mathml_view, LSM_TYPE_DOM_VIEW)
|