mathematical 1.6.14 → 1.6.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -1
- data/Rakefile +31 -21
- data/ext/mathematical/extconf.rb +71 -69
- data/ext/mathematical/lasem/COPYING +118 -99
- data/ext/mathematical/lasem/{NEWS → NEWS.md} +10 -0
- data/ext/mathematical/lasem/README.md +65 -0
- data/ext/mathematical/lasem/docs/lasem-render-0.6.1 +2 -2
- 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/README.itex2MML +5 -2
- data/ext/mathematical/lasem/itex2mml/itex2MML.h +10 -10
- data/ext/mathematical/lasem/itex2mml/itex2MML.l +126 -27
- data/ext/mathematical/lasem/itex2mml/itex2MML.y +262 -99
- data/ext/mathematical/lasem/itex2mml/meson.build +17 -0
- data/ext/mathematical/lasem/lasem.doap +7 -7
- 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 +0 -2
- data/ext/mathematical/lasem/po/eu.po +30 -66
- data/ext/mathematical/lasem/po/meson.build +4 -0
- data/ext/mathematical/lasem/src/lasemrender.c +1 -6
- data/ext/mathematical/lasem/src/lsm.c +2 -0
- data/ext/mathematical/lasem/src/lsmattributes.c +2 -5
- data/ext/mathematical/lasem/src/lsmmathmlglyphtableams.c +71 -7
- data/ext/mathematical/lasem/src/lsmmathmlitexelement.c +7 -5
- data/ext/mathematical/lasem/src/lsmmathmloperatordictionary.c +11 -1
- data/ext/mathematical/lasem/src/lsmmathmloperatordictionary.h +2 -1
- data/ext/mathematical/lasem/src/lsmmathmloperatorelement.c +6 -1
- data/ext/mathematical/lasem/src/lsmmathmlview.c +21 -3
- data/ext/mathematical/lasem/src/lsmmathmlview.h +2 -2
- 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 +2 -5
- data/ext/mathematical/lasem/src/lsmsvgfiltersurface.c +6 -3
- data/ext/mathematical/lasem/src/lsmsvgtraits.c +10 -1
- 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/tex/misc/array.tex +3 -0
- data/ext/mathematical/lasem/tests/dom.c +0 -6
- data/ext/mathematical/lasem/tests/filter.c +8 -7
- data/ext/mathematical/lasem/tests/lasem.supp +185 -0
- data/ext/mathematical/lasem/tests/lsmtest.c +2 -9
- data/ext/mathematical/lasem/tests/meson.build +39 -0
- data/ext/mathematical/lasem/tests/str.c +0 -4
- data/ext/mathematical/lasem/tests/suite.c +0 -4
- data/ext/mathematical/lasem/viewer/meson.build +17 -0
- data/ext/mathematical/lasem/viewer/viewer.c +248 -0
- data/ext/mathematical/mtex2MML/script/tag +15 -14
- data/ext/mathematical/mtex2MML/src/lexer.l +4 -4
- data/ext/mathematical/mtex2MML/src/mtex2MML.h +7 -7
- data/ext/mathematical/mtex2MML/src/parser.y +5 -5
- data/ext/mathematical/mtex2MML/tests/clar.c +2 -2
- data/ext/mathematical/mtex2MML/tests/deps/trim/package.json +2 -2
- data/lib/mathematical/configuration.rb +8 -4
- data/lib/mathematical/corrections.rb +3 -1
- data/lib/mathematical/validator.rb +11 -8
- data/lib/mathematical/version.rb +3 -1
- data/lib/mathematical.rb +21 -19
- data/mathematical.gemspec +21 -22
- metadata +36 -336
- data/ext/mathematical/lasem/AUTHORS +0 -1
- data/ext/mathematical/lasem/ChangeLog +0 -0
- data/ext/mathematical/lasem/MAINTAINERS +0 -3
- data/ext/mathematical/lasem/Makefile.am +0 -34
- data/ext/mathematical/lasem/Makefile.decl +0 -57
- data/ext/mathematical/lasem/README +0 -28
- data/ext/mathematical/lasem/RELEASING +0 -85
- data/ext/mathematical/lasem/autogen.sh +0 -180
- data/ext/mathematical/lasem/configure.ac +0 -139
- data/ext/mathematical/lasem/docs/Makefile.am +0 -14
- data/ext/mathematical/lasem/docs/reference/Makefile.am +0 -3
- data/ext/mathematical/lasem/docs/reference/lasem/Makefile.am +0 -205
- data/ext/mathematical/lasem/docs/reference/lasem/lasem-docs.xml +0 -75
- data/ext/mathematical/lasem/docs/reference/lasem/lasem-overview.xml +0 -64
- data/ext/mathematical/lasem/docs/reference/lasem/lasem-sections.txt +0 -213
- data/ext/mathematical/lasem/docs/reference/lasem/lasem.types +0 -110
- data/ext/mathematical/lasem/itex2mml/Makefile.am +0 -37
- data/ext/mathematical/lasem/lasem.pc.in +0 -11
- data/ext/mathematical/lasem/m4/introspection.m4 +0 -96
- data/ext/mathematical/lasem/po/ChangeLog +0 -0
- data/ext/mathematical/lasem/po/ro.po +0 -64
- data/ext/mathematical/lasem/src/Makefile.am +0 -349
- data/ext/mathematical/lasem/src/lsmdomenumtypes.c.template +0 -39
- data/ext/mathematical/lasem/src/lsmdomenumtypes.h.template +0 -26
- data/ext/mathematical/lasem/src/lsmmathmlenumtypes.c.template +0 -39
- data/ext/mathematical/lasem/src/lsmmathmlenumtypes.h.template +0 -26
- data/ext/mathematical/lasem/src/lsmsvgenumtypes.c.template +0 -39
- data/ext/mathematical/lasem/src/lsmsvgenumtypes.h.template +0 -26
- data/ext/mathematical/lasem/tests/Makefile.am +0 -34
- data/ext/mathematical/lib/liblasem.dylib +0 -0
- data/ext/mathematical/lib/libmtex2MML.a +0 -0
- data/ext/mathematical/mtex2MML/build/CMakeCache.txt +0 -512
- data/ext/mathematical/mtex2MML/build/CMakeFiles/3.16.2/CMakeCCompiler.cmake +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/3.16.2/CMakeCXXCompiler.cmake +0 -88
- data/ext/mathematical/mtex2MML/build/CMakeFiles/3.16.2/CMakeDetermineCompilerABI_C.bin +0 -0
- data/ext/mathematical/mtex2MML/build/CMakeFiles/3.16.2/CMakeDetermineCompilerABI_CXX.bin +0 -0
- data/ext/mathematical/mtex2MML/build/CMakeFiles/3.16.2/CMakeSystem.cmake +0 -15
- data/ext/mathematical/mtex2MML/build/CMakeFiles/3.16.2/CompilerIdC/CMakeCCompilerId.c +0 -671
- data/ext/mathematical/mtex2MML/build/CMakeFiles/3.16.2/CompilerIdCXX/CMakeCXXCompilerId.cpp +0 -660
- data/ext/mathematical/mtex2MML/build/CMakeFiles/CMakeDirectoryInformation.cmake +0 -16
- data/ext/mathematical/mtex2MML/build/CMakeFiles/CMakeError.log +0 -22
- data/ext/mathematical/mtex2MML/build/CMakeFiles/CMakeOutput.log +0 -351
- data/ext/mathematical/mtex2MML/build/CMakeFiles/CMakeRuleHashes.txt +0 -34
- data/ext/mathematical/mtex2MML/build/CMakeFiles/Continuous.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/Continuous.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/Continuous.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/Continuous.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousBuild.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousBuild.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousBuild.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousBuild.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousConfigure.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousConfigure.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousConfigure.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousConfigure.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousCoverage.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousCoverage.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousCoverage.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousCoverage.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousMemCheck.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousMemCheck.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousMemCheck.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousMemCheck.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousStart.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousStart.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousStart.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousStart.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousSubmit.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousSubmit.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousSubmit.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousSubmit.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousTest.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousTest.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousTest.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousTest.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousUpdate.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousUpdate.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousUpdate.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousUpdate.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/Experimental.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/Experimental.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/Experimental.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/Experimental.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalBuild.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalBuild.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalBuild.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalBuild.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalConfigure.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalConfigure.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalConfigure.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalConfigure.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalCoverage.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalCoverage.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalCoverage.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalCoverage.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalMemCheck.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalMemCheck.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalMemCheck.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalMemCheck.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalStart.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalStart.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalStart.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalStart.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalSubmit.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalSubmit.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalSubmit.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalSubmit.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalTest.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalTest.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalTest.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalTest.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalUpdate.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalUpdate.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalUpdate.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalUpdate.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/Makefile.cmake +0 -177
- data/ext/mathematical/mtex2MML/build/CMakeFiles/Makefile2 +0 -1033
- data/ext/mathematical/mtex2MML/build/CMakeFiles/Nightly.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/Nightly.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/Nightly.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/Nightly.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyBuild.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyBuild.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyBuild.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyBuild.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyConfigure.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyConfigure.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyConfigure.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyConfigure.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyCoverage.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyCoverage.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyCoverage.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyCoverage.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemCheck.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemCheck.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemCheck.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemCheck.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemoryCheck.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemoryCheck.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemoryCheck.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemoryCheck.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyStart.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyStart.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyStart.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyStart.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlySubmit.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlySubmit.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlySubmit.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlySubmit.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyTest.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyTest.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyTest.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyTest.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyUpdate.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyUpdate.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyUpdate.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyUpdate.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/TargetDirectories.txt +0 -41
- data/ext/mathematical/mtex2MML/build/CMakeFiles/cmake.check_cache +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/format.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/format.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/format.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/format.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/DependInfo.cmake +0 -44
- data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/build.make +0 -206
- data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/cmake_clean.cmake +0 -20
- data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/depend.make +0 -2
- data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/flags.make +0 -10
- data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/link.txt +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/progress.make +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/C.includecache +0 -244
- data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/DependInfo.cmake +0 -42
- data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/build.make +0 -203
- data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/cmake_clean.cmake +0 -19
- data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/cmake_clean_target.cmake +0 -3
- data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/depend.internal +0 -49
- data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/depend.make +0 -49
- data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/flags.make +0 -10
- data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/link.txt +0 -2
- data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/progress.make +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/memcheck.dir/DependInfo.cmake +0 -11
- data/ext/mathematical/mtex2MML/build/CMakeFiles/memcheck.dir/build.make +0 -76
- data/ext/mathematical/mtex2MML/build/CMakeFiles/memcheck.dir/cmake_clean.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/CMakeFiles/memcheck.dir/progress.make +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML.dir/DependInfo.cmake +0 -43
- data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML.dir/build.make +0 -217
- data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML.dir/cmake_clean.cmake +0 -20
- data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML.dir/depend.make +0 -2
- data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML.dir/flags.make +0 -10
- data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML.dir/link.txt +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML.dir/progress.make +0 -12
- data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML_clar.dir/DependInfo.cmake +0 -59
- data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML_clar.dir/build.make +0 -473
- data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML_clar.dir/cmake_clean.cmake +0 -37
- data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML_clar.dir/depend.make +0 -2
- data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML_clar.dir/flags.make +0 -10
- data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML_clar.dir/link.txt +0 -1
- data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML_clar.dir/progress.make +0 -29
- data/ext/mathematical/mtex2MML/build/CMakeFiles/progress.marks +0 -1
- data/ext/mathematical/mtex2MML/build/CTestTestfile.cmake +0 -8
- data/ext/mathematical/mtex2MML/build/DartConfiguration.tcl +0 -105
- data/ext/mathematical/mtex2MML/build/Makefile +0 -1485
- data/ext/mathematical/mtex2MML/build/cmake_install.cmake +0 -102
- data/ext/mathematical/mtex2MML/build/lexer.c +0 -8903
- data/ext/mathematical/mtex2MML/build/libmtex2MML.a +0 -0
- data/ext/mathematical/mtex2MML/build/libmtex2MML.pc +0 -10
- data/ext/mathematical/mtex2MML/build/mtex2mml_export.h +0 -42
- data/ext/mathematical/mtex2MML/build/parser.c +0 -10334
- data/ext/mathematical/mtex2MML/build/parser.h +0 -625
- data/ext/mathematical/mtex2MML/build/parser.output +0 -120719
- data/test/mathematical/basic_test.rb +0 -89
- data/test/mathematical/corrections_test.rb +0 -16
- data/test/mathematical/delimiters_test.rb +0 -69
- data/test/mathematical/fixtures/after/backslashes.html +0 -5
- data/test/mathematical/fixtures/after/brackets_display.html +0 -1
- data/test/mathematical/fixtures/after/compliance_accents.html +0 -17
- data/test/mathematical/fixtures/after/compliance_arrows.html +0 -71
- data/test/mathematical/fixtures/after/compliance_colors.html +0 -4
- data/test/mathematical/fixtures/after/compliance_greek_letters.html +0 -42
- data/test/mathematical/fixtures/after/compliance_large_math.html +0 -19
- data/test/mathematical/fixtures/after/compliance_log_symbols.html +0 -34
- data/test/mathematical/fixtures/after/compliance_operators.html +0 -262
- data/test/mathematical/fixtures/after/dollar_sign_inline.html +0 -1
- data/test/mathematical/fixtures/after/equation_display.html +0 -1
- data/test/mathematical/fixtures/after/multiple_dollar_inline.html +0 -1
- data/test/mathematical/fixtures/after/parens_inline.html +0 -1
- data/test/mathematical/fixtures/before/backslashes.text +0 -17
- data/test/mathematical/fixtures/before/brackets_display.text +0 -1
- data/test/mathematical/fixtures/before/compliance_accents.text +0 -17
- data/test/mathematical/fixtures/before/compliance_arrows.text +0 -71
- data/test/mathematical/fixtures/before/compliance_colors.text +0 -4
- data/test/mathematical/fixtures/before/compliance_greek_letters.text +0 -42
- data/test/mathematical/fixtures/before/compliance_large_math.text +0 -19
- data/test/mathematical/fixtures/before/compliance_log_symbols.text +0 -34
- data/test/mathematical/fixtures/before/compliance_operators.text +0 -262
- data/test/mathematical/fixtures/before/dollar_sign_inline.text +0 -1
- data/test/mathematical/fixtures/before/equation_display.text +0 -1
- data/test/mathematical/fixtures/before/multiple_dollar_inline.text +0 -1
- data/test/mathematical/fixtures/before/parens_inline.text +0 -1
- data/test/mathematical/fixtures/performance/big_file.text +0 -1755
- data/test/mathematical/fixtures/png/numeric_test_1.png +0 -0
- data/test/mathematical/fixtures/png/numeric_test_2.png +0 -0
- data/test/mathematical/fixtures/png/numeric_test_3.png +0 -0
- data/test/mathematical/fixtures/png/pmatrix.png +0 -0
- data/test/mathematical/fixtures_test.rb +0 -51
- data/test/mathematical/maliciousness_test.rb +0 -152
- data/test/mathematical/mathjax_test.rb +0 -26
- data/test/mathematical/mathml_test.rb +0 -21
- data/test/mathematical/multiples_test.rb +0 -71
- data/test/mathematical/performance_test.rb +0 -15
- data/test/mathematical/png_test.rb +0 -30
- data/test/test_helper.rb +0 -72
@@ -1,11 +1,11 @@
|
|
1
|
-
/* itex2MML 1.
|
2
|
-
* itex2MML.h last modified 10/
|
1
|
+
/* itex2MML 1.6.1
|
2
|
+
* itex2MML.h last modified 10/3/2021
|
3
3
|
*/
|
4
4
|
|
5
5
|
#ifndef ITEX2MML_H
|
6
6
|
#define ITEX2MML_H
|
7
7
|
|
8
|
-
#define ITEX2MML_VERSION "1.
|
8
|
+
#define ITEX2MML_VERSION "1.6.1"
|
9
9
|
|
10
10
|
#ifdef __cplusplus
|
11
11
|
extern "C" {
|
@@ -13,7 +13,7 @@ extern "C" {
|
|
13
13
|
|
14
14
|
/* Step 1. Parse a buffer with itex source; return value is mathml, or 0 on failure (e.g., parse error).
|
15
15
|
*/
|
16
|
-
extern char * itex2MML_parse (const char * buffer,
|
16
|
+
extern char * itex2MML_parse (const char * buffer, size_t length);
|
17
17
|
|
18
18
|
/* Step 2. Free the string from Step 1.
|
19
19
|
*/
|
@@ -22,26 +22,26 @@ extern "C" {
|
|
22
22
|
|
23
23
|
/* Alternatively, to filter generic source and converting embedded equations, use:
|
24
24
|
*/
|
25
|
-
extern int itex2MML_filter (const char * buffer,
|
25
|
+
extern int itex2MML_filter (const char * buffer, size_t length);
|
26
26
|
|
27
|
-
extern int itex2MML_html_filter (const char * buffer,
|
28
|
-
extern int itex2MML_strict_html_filter (const char * buffer,
|
27
|
+
extern int itex2MML_html_filter (const char * buffer, size_t length);
|
28
|
+
extern int itex2MML_strict_html_filter (const char * buffer, size_t length);
|
29
29
|
|
30
30
|
|
31
31
|
/* To change output methods:
|
32
32
|
*
|
33
33
|
* Note: If length is 0, then buffer is treated like a string; otherwise only length bytes are written.
|
34
34
|
*/
|
35
|
-
extern void (*itex2MML_write) (const char * buffer,
|
35
|
+
extern void (*itex2MML_write) (const char * buffer, size_t length); /* default writes to stdout */
|
36
36
|
extern void (*itex2MML_write_mathml) (const char * mathml); /* default calls itex2MML_write(mathml,0) */
|
37
37
|
extern void (*itex2MML_error) (const char * msg); /* default writes to stderr */
|
38
38
|
|
39
39
|
|
40
40
|
/* Other stuff:
|
41
41
|
*/
|
42
|
-
extern void itex2MML_setup (const char * buffer,
|
42
|
+
extern void itex2MML_setup (const char * buffer, size_t length);
|
43
43
|
|
44
|
-
extern void itex2MML_restart (
|
44
|
+
extern void itex2MML_restart ();
|
45
45
|
|
46
46
|
extern char * itex2MML_copy_string (const char * str);
|
47
47
|
extern char * itex2MML_copy_string_extra (const char * str, unsigned extra);
|
@@ -1,24 +1,26 @@
|
|
1
|
-
/* itex2MML 1.
|
2
|
-
* itex2MML.l last modified 10/
|
1
|
+
/* itex2MML 1.6.1
|
2
|
+
* itex2MML.l last modified 10/3/2021
|
3
3
|
*/
|
4
4
|
|
5
5
|
%{
|
6
6
|
%}
|
7
7
|
%option noyywrap
|
8
|
-
%
|
8
|
+
%option noinput
|
9
|
+
%x MATH ATTRIBUTELIST BBOLD FRAKTUR CALLIGRAPHIC SCRIPT ROMAN PLAINTEXT INT1 INT2 INT3 MATHENV SVGENV SVGEND OPTARG ARRAYOPTIONS COLOPTS TEXTOPTARG TEXTOPTARG1 RAISEBOX1 RAISEBOX2
|
9
10
|
%{
|
10
11
|
#include <string.h>
|
11
12
|
|
12
13
|
#define YYSTYPE char *
|
13
14
|
|
14
|
-
#include "
|
15
|
+
#include "itex2MML.tab.h"
|
15
16
|
#include "itex2MML.h"
|
16
17
|
|
17
18
|
#define YY_NEVER_INTERACTIVE 1
|
18
19
|
#define YY_INPUT(buffer,result,max_size) result = s_itex2MML_read (buffer, max_size)
|
19
|
-
#define YY_NO_INPUT
|
20
20
|
|
21
|
-
static
|
21
|
+
static size_t s_itex2MML_read (char * buffer, size_t max_size);
|
22
|
+
void itex2MML_do_capture_eqn();
|
23
|
+
void itex2MML_capture_eqn_src();
|
22
24
|
|
23
25
|
#define yylval itex2MML_yylval
|
24
26
|
#define itex2MML_optarg_depth 100
|
@@ -30,6 +32,11 @@ int itex2MML_inoptarg[itex2MML_optarg_depth];
|
|
30
32
|
int itex2MML_optarg_ind = 0;
|
31
33
|
int itex2MML_env_start = 0;
|
32
34
|
|
35
|
+
#define YY_USER_ACTION itex2MML_capture_eqn_src();
|
36
|
+
# define itex2MML_eqn_bufsize 131072
|
37
|
+
char itex2MML_eqn_src[itex2MML_eqn_bufsize];
|
38
|
+
char * itex2MML_eqn_end = itex2MML_eqn_src;
|
39
|
+
|
33
40
|
int itex2MML_rowposn = 0;
|
34
41
|
int itex2MML_displaymode = 0;
|
35
42
|
|
@@ -41,6 +48,7 @@ int itex2MML_displaymode = 0;
|
|
41
48
|
|
42
49
|
<INITIAL>"$"{1,2} BEGIN(MATH); itex2MML_inoptarg[0] = 0; itex2MML_rowposn=2; if (yyleng==2) { itex2MML_displaymode=1; return STARTDMATH;}; itex2MML_displaymode=0; return STARTMATH;
|
43
50
|
<INITIAL>"\\[" BEGIN(MATH); itex2MML_inoptarg[0] = 0; itex2MML_rowposn=2; itex2MML_displaymode=1; return STARTDMATH;
|
51
|
+
<INITIAL>"\\(" BEGIN(MATH); itex2MML_inoptarg[0] = 0; itex2MML_rowposn=2; itex2MML_displaymode=0; return STARTMATH;
|
44
52
|
<INITIAL>EOF return 0;
|
45
53
|
<INITIAL>"\n" {itex2MML_lineno++; yylval=itex2MML_copy_string(yytext); return CHAR;}
|
46
54
|
<INITIAL>. {yylval=itex2MML_copy_string(yytext); return CHAR;}
|
@@ -48,11 +56,10 @@ int itex2MML_displaymode = 0;
|
|
48
56
|
|
49
57
|
<MATH>{
|
50
58
|
|
51
|
-
|
52
|
-
|
59
|
+
"\\$"/. {yylval=itex2MML_copy_string("$"); return MI;};
|
53
60
|
"$"{1,2} |
|
54
|
-
"\\
|
55
|
-
|
61
|
+
"\\)" |
|
62
|
+
"\\]" {itex2MML_eqn_src[itex2MML_eqn_end-itex2MML_eqn_src-yyleng]=0; itex2MML_eqn_end=itex2MML_eqn_src; yylval=itex2MML_copy_escaped(itex2MML_eqn_src); BEGIN(INITIAL); return ENDMATH;}
|
56
63
|
|
57
64
|
"^" return SUP;
|
58
65
|
"_" return SUB;
|
@@ -91,14 +98,15 @@ int itex2MML_displaymode = 0;
|
|
91
98
|
|
92
99
|
"\\&" {yylval=itex2MML_copy_string("&"); return MI;}
|
93
100
|
|
94
|
-
"\\$" {yylval=itex2MML_copy_string("$"); return MI;}
|
95
101
|
"\\%" {yylval=itex2MML_copy_string("%"); return MI;}
|
96
102
|
|
97
103
|
"\\\\" itex2MML_rowposn=2; return ROWSEP;
|
98
104
|
|
99
105
|
[a-zA-Z]+ {yylval=itex2MML_copy_string(yytext); return MI;}
|
100
106
|
|
101
|
-
[0-9
|
107
|
+
[0-9]{1,3}(,[0-9]{3,3})*(\.[0-9]+)? |
|
108
|
+
[0-9]*[\.][0-9]+ |
|
109
|
+
[0-9]+ {yylval=itex2MML_copy_string(yytext); return MN;}
|
102
110
|
"\\infty" |
|
103
111
|
"\\infinity" {yylval=itex2MML_copy_string("∞"); return MN;}
|
104
112
|
|
@@ -113,10 +121,18 @@ int itex2MML_displaymode = 0;
|
|
113
121
|
"\\rbrace" |
|
114
122
|
"\\}" {yylval=itex2MML_copy_string("}"); return RIGHTDELIM;}
|
115
123
|
|
124
|
+
"\\llbracket" {yylval=itex2MML_copy_string("⟦"); return LEFTDELIM;}
|
125
|
+
"\\rrbracket" {yylval=itex2MML_copy_string("⟧"); return RIGHTDELIM;}
|
126
|
+
|
127
|
+
"\\lvert" {yylval=itex2MML_copy_string("|"); return LEFTDELIM;}
|
128
|
+
"\\lVert" {yylval=itex2MML_copy_string("‖"); return LEFTDELIM;}
|
129
|
+
"\\rvert" {yylval=itex2MML_copy_string("|"); return RIGHTDELIM;}
|
130
|
+
"\\rVert" {yylval=itex2MML_copy_string("‖"); return RIGHTDELIM;}
|
131
|
+
|
116
132
|
"\\vert" |
|
117
|
-
"|" {yylval=itex2MML_copy_string("&
|
133
|
+
"|" {yylval=itex2MML_copy_string("|"); return OTHERDELIM;}
|
118
134
|
"\\Vert" |
|
119
|
-
"\\|" {yylval=itex2MML_copy_string("&
|
135
|
+
"\\|" {yylval=itex2MML_copy_string("‖"); return OTHERDELIM;}
|
120
136
|
|
121
137
|
"\\setminus" {yylval=itex2MML_copy_string("∖"); return MO;}
|
122
138
|
"\\backslash" {yylval=itex2MML_copy_string("\"); return MO;}
|
@@ -126,13 +142,17 @@ int itex2MML_displaymode = 0;
|
|
126
142
|
|
127
143
|
"\\lfloor" |
|
128
144
|
"\\lceil" |
|
145
|
+
"\\lmoustache" |
|
129
146
|
"\\lang" |
|
130
147
|
"\\langle" {yylval=itex2MML_copy2(yytext, ";"); if (yylval != itex2MML_empty_string) yylval[0]='&'; return LEFTDELIM;}
|
148
|
+
"\\llangle" {yylval=itex2MML_copy_string("⟪"); return LEFTDELIM;}
|
131
149
|
|
132
150
|
"\\rfloor" |
|
133
151
|
"\\rceil" |
|
152
|
+
"\\rmoustache" |
|
134
153
|
"\\rang" |
|
135
154
|
"\\rangle" {yylval=itex2MML_copy2(yytext, ";"); if (yylval != itex2MML_empty_string) yylval[0]='&'; return RIGHTDELIM;}
|
155
|
+
"\\rrangle" {yylval=itex2MML_copy_string("⟫"); return RIGHTDELIM;}
|
136
156
|
|
137
157
|
"/" {yylval=itex2MML_copy_string(yytext); return OTHERDELIM;}
|
138
158
|
|
@@ -365,6 +385,10 @@ int itex2MML_displaymode = 0;
|
|
365
385
|
"\\nleftrightarrow" |
|
366
386
|
"\\nRightarrow" |
|
367
387
|
"\\nrightarrow" |
|
388
|
+
"\\rightharpoonup" |
|
389
|
+
"\\rightharpoondown" |
|
390
|
+
"\\leftharpoonup" |
|
391
|
+
"\\leftharpoondown" |
|
368
392
|
"\\downharpoonleft" |
|
369
393
|
"\\downharpoonright" |
|
370
394
|
"\\leftrightharpoons" |
|
@@ -651,6 +675,15 @@ int itex2MML_displaymode = 0;
|
|
651
675
|
"\\Perp" |
|
652
676
|
"\\Vbar" {yylval=itex2MML_copy_string("⫫"); return MOL;}
|
653
677
|
"\\boxdot" {yylval=itex2MML_copy_string("⊡"); return MOL;}
|
678
|
+
"\\boxslash" {yylval=itex2MML_copy_string("⧄"); return MOL;}
|
679
|
+
"\\boxbslash" {yylval=itex2MML_copy_string("⧅"); return MOL;}
|
680
|
+
"\\boxast" {yylval=itex2MML_copy_string("⧆"); return MOL;}
|
681
|
+
"\\boxcircle" {yylval=itex2MML_copy_string("⧇"); return MOL;}
|
682
|
+
"\\boxbox" {yylval=itex2MML_copy_string("⧈"); return MOL;}
|
683
|
+
"\\obar" {yylval=itex2MML_copy_string("⦶"); return MOL;}
|
684
|
+
"\\obslash" {yylval=itex2MML_copy_string("⦸"); return MOL;}
|
685
|
+
"\\olessthan" {yylval=itex2MML_copy_string("⧀"); return MOL;}
|
686
|
+
"\\ogreaterthan" {yylval=itex2MML_copy_string("⧁"); return MOL;}
|
654
687
|
"\\Box" |
|
655
688
|
"\\square" {yylval=itex2MML_copy_string("□"); return MOL;}
|
656
689
|
"\\emptyset" |
|
@@ -739,6 +772,8 @@ int itex2MML_displaymode = 0;
|
|
739
772
|
|
740
773
|
"\\bigodot" {yylval=itex2MML_copy_string("⨀"); return MOB;}
|
741
774
|
"\\bigsqcup" {yylval=itex2MML_copy_string("⨆"); return MOB;}
|
775
|
+
"\\bigsqcap" {yylval=itex2MML_copy_string("⨅"); return MOB;}
|
776
|
+
"\\biginterleave" {yylval=itex2MML_copy_string("⫼"); return MOB;}
|
742
777
|
"\\biguplus" {yylval=itex2MML_copy_string("⨄"); return MOB;}
|
743
778
|
|
744
779
|
"\\wedge" {yylval=itex2MML_copy_string("∧"); return MOL;}
|
@@ -773,7 +808,14 @@ int itex2MML_displaymode = 0;
|
|
773
808
|
"\\widebar" {return WIDEBAR;}
|
774
809
|
|
775
810
|
"\\vec" {return VEC;}
|
776
|
-
"\\widevec"
|
811
|
+
"\\widevec" |
|
812
|
+
"\\overrightarrow" {return WIDEVEC;}
|
813
|
+
"\\overleftarrow" {return WIDELVEC;}
|
814
|
+
"\\overleftrightarrow" {return WIDELRVEC;}
|
815
|
+
|
816
|
+
"\\underrightarrow" {return WIDEUVEC;}
|
817
|
+
"\\underleftarrow" {return WIDEULVEC;}
|
818
|
+
"\\underleftrightarrow" {return WIDEULRVEC;}
|
777
819
|
|
778
820
|
"\\dot" {return DOT;}
|
779
821
|
"\\ddot" {return DDOT;}
|
@@ -783,11 +825,9 @@ int itex2MML_displaymode = 0;
|
|
783
825
|
"\\tilde" {return TILDE;}
|
784
826
|
"\\widetilde" {return WIDETILDE;}
|
785
827
|
|
786
|
-
|
787
828
|
"\\check" {return CHECK;}
|
788
829
|
"\\widecheck" {return WIDECHECK;}
|
789
830
|
|
790
|
-
|
791
831
|
"\\hat" {return HAT;}
|
792
832
|
"\\widehat" {return WIDEHAT;}
|
793
833
|
|
@@ -813,6 +853,10 @@ int itex2MML_displaymode = 0;
|
|
813
853
|
"\\tooltip" {BEGIN(PLAINTEXT); return TOOLTIP;}
|
814
854
|
|
815
855
|
"\\toggle" {return TOGGLE;}
|
856
|
+
"\\begintoggle" {return TOGGLESTART;}
|
857
|
+
"\\endtoggle" {return TOGGLEEND;}
|
858
|
+
|
859
|
+
"\\mathraisebox" {BEGIN(RAISEBOX1); return RAISEBOX;}
|
816
860
|
|
817
861
|
"\\fghilight" |
|
818
862
|
"\\fghighlight" {BEGIN(ATTRIBUTELIST); return FGHIGHLIGHT;}
|
@@ -823,9 +867,9 @@ int itex2MML_displaymode = 0;
|
|
823
867
|
"\\color" {BEGIN(ATTRIBUTELIST); return COLOR;}
|
824
868
|
"\\bgcolor" {BEGIN(ATTRIBUTELIST); return BGCOLOR;}
|
825
869
|
|
826
|
-
"\\displaystyle" {itex2MML_rowposn=2; return DISPLAY;}
|
870
|
+
"\\displaystyle" {itex2MML_displaymode=1; itex2MML_rowposn=2; return DISPLAY;}
|
827
871
|
|
828
|
-
"\\textstyle" {itex2MML_rowposn=2; return TEXTSTY;}
|
872
|
+
"\\textstyle" {itex2MML_displaymode=0; itex2MML_rowposn=2; return TEXTSTY;}
|
829
873
|
|
830
874
|
"\\textsize" {return TEXTSIZE;}
|
831
875
|
|
@@ -835,6 +879,9 @@ int itex2MML_displaymode = 0;
|
|
835
879
|
|
836
880
|
"\\mathit" {return ITALICS;}
|
837
881
|
|
882
|
+
"\\mathsf" {return SANS;}
|
883
|
+
"\\mathtt" {return TT;}
|
884
|
+
|
838
885
|
"\\boldsymbol" |
|
839
886
|
"\\mathbf" {return BOLD;}
|
840
887
|
|
@@ -850,6 +897,7 @@ int itex2MML_displaymode = 0;
|
|
850
897
|
"\\boxed" {return BOXED;}
|
851
898
|
|
852
899
|
"\\mathcal" {BEGIN(CALLIGRAPHIC); return CAL;}
|
900
|
+
"\\mathscr" {BEGIN(SCRIPT); return SCR;}
|
853
901
|
|
854
902
|
"\\begin" {itex2MML_env_start = 1; BEGIN(MATHENV); return BEGINENV;}
|
855
903
|
"\\end" {BEGIN(MATHENV); return ENDENV;}
|
@@ -895,6 +943,7 @@ int itex2MML_displaymode = 0;
|
|
895
943
|
"\\:" |
|
896
944
|
"\\medspace" {return MEDSPACE;}
|
897
945
|
|
946
|
+
"\\ " |
|
898
947
|
"\\;" |
|
899
948
|
"\\thickspace" {return THICKSPACE;}
|
900
949
|
|
@@ -902,7 +951,12 @@ int itex2MML_displaymode = 0;
|
|
902
951
|
"\\qquad" {return QQUAD;}
|
903
952
|
|
904
953
|
"\\!" |
|
905
|
-
"\\negspace"
|
954
|
+
"\\negspace" |
|
955
|
+
"\\negthinspace" {return NEGSPACE;}
|
956
|
+
|
957
|
+
"\\negmedspace" {return NEGMEDSPACE;}
|
958
|
+
|
959
|
+
"\\negthickspace" {return NEGTHICKSPACE;}
|
906
960
|
|
907
961
|
"\\phantom" {return PHANTOM;}
|
908
962
|
|
@@ -912,6 +966,7 @@ int itex2MML_displaymode = 0;
|
|
912
966
|
"\\mathop" {BEGIN(PLAINTEXT); return MATHOP;}
|
913
967
|
"\\mathbin" {BEGIN(PLAINTEXT); return MATHBIN;}
|
914
968
|
"\\mathrel" {BEGIN(PLAINTEXT); return MATHREL;}
|
969
|
+
"\\itexnum" {BEGIN(PLAINTEXT); return ITEXNUM;}
|
915
970
|
|
916
971
|
"\\includegraphics"(\[[^\]]*\])?\{[^}]*\} ;
|
917
972
|
|
@@ -932,7 +987,28 @@ int itex2MML_displaymode = 0;
|
|
932
987
|
|
933
988
|
<OPTARG>{
|
934
989
|
"[" {if(itex2MML_optarg_ind < itex2MML_optarg_depth - 1 && itex2MML_inoptarg[itex2MML_optarg_ind] !=1 ){itex2MML_optarg_ind++; itex2MML_inoptarg[itex2MML_optarg_ind]=1;}; BEGIN(MATH); return OPTARGOPEN;}
|
935
|
-
|
990
|
+
[\n\r\t ]+ ;
|
991
|
+
. {itex2MML_eqn_src[itex2MML_eqn_end-itex2MML_eqn_src]=0; --itex2MML_eqn_end; BEGIN(MATH); unput(yytext[0]);}
|
992
|
+
}
|
993
|
+
|
994
|
+
<RAISEBOX1>{
|
995
|
+
\{[\n\r\t ]*- {BEGIN(RAISEBOX2); return NEG;}
|
996
|
+
\{[\n\r\t ]* {BEGIN(RAISEBOX2);}
|
997
|
+
}
|
998
|
+
|
999
|
+
<RAISEBOX2>{
|
1000
|
+
[^\}]*?\} {yylval=itex2MML_copy_string(yytext); if ((yyleng > 1) && (yylval != itex2MML_empty_string)) yylval[yyleng-1]='\0'; BEGIN(TEXTOPTARG1); return TEXTSTRING;}
|
1001
|
+
}
|
1002
|
+
|
1003
|
+
|
1004
|
+
<TEXTOPTARG1>{
|
1005
|
+
\[[^\]]*?\] {yylval=itex2MML_copy_string(yytext+1); if ((yyleng > 1) && (yylval != itex2MML_empty_string)) yylval[yyleng-2]='\0'; BEGIN(TEXTOPTARG); return TEXTSTRING;}
|
1006
|
+
. {itex2MML_eqn_src[itex2MML_eqn_end-itex2MML_eqn_src]=0; --itex2MML_eqn_end; BEGIN(MATH); unput(yytext[0]);}
|
1007
|
+
}
|
1008
|
+
|
1009
|
+
<TEXTOPTARG>{
|
1010
|
+
\[[^\]]*?\] {yylval=itex2MML_copy_string(yytext+1); if ((yyleng > 1) && (yylval != itex2MML_empty_string)) yylval[yyleng-2]='\0'; BEGIN(MATH); return TEXTSTRING;}
|
1011
|
+
. {itex2MML_eqn_src[itex2MML_eqn_end-itex2MML_eqn_src]=0; --itex2MML_eqn_end; BEGIN(MATH); unput(yytext[0]);}
|
936
1012
|
}
|
937
1013
|
|
938
1014
|
<MATHENV>{
|
@@ -968,7 +1044,7 @@ int itex2MML_displaymode = 0;
|
|
968
1044
|
}
|
969
1045
|
|
970
1046
|
<SVGENV>{
|
971
|
-
"\\end\{svg" {yylval=itex2MML_copy_string(yytext); yylval[yyleng-8]=0; BEGIN(SVGEND); return XMLSTRING;}
|
1047
|
+
"\\end\{svg" {itex2MML_do_capture_eqn(); yylval=itex2MML_copy_string(yytext); yylval[yyleng-8]=0; BEGIN(SVGEND); return XMLSTRING;}
|
972
1048
|
(.|\n) {yymore();}
|
973
1049
|
}
|
974
1050
|
|
@@ -1002,6 +1078,14 @@ int itex2MML_displaymode = 0;
|
|
1002
1078
|
. {return yytext[0];}
|
1003
1079
|
}
|
1004
1080
|
|
1081
|
+
<SCRIPT>{
|
1082
|
+
"\{" {return ST;}
|
1083
|
+
"\}" {BEGIN(MATH); return END;}
|
1084
|
+
[a-zA-Z] {yylval=itex2MML_copy_string(yytext); return CALCHAR;}
|
1085
|
+
[\t\n\r ]+ ;
|
1086
|
+
. {return yytext[0];}
|
1087
|
+
}
|
1088
|
+
|
1005
1089
|
<FRAKTUR>{
|
1006
1090
|
"\{" {return ST;}
|
1007
1091
|
"\}" {BEGIN(MATH); return END;}
|
@@ -1042,15 +1126,15 @@ int itex2MML_displaymode = 0;
|
|
1042
1126
|
|
1043
1127
|
%%
|
1044
1128
|
|
1045
|
-
void itex2MML_restart (
|
1129
|
+
void itex2MML_restart ()
|
1046
1130
|
{
|
1047
1131
|
BEGIN(INITIAL);
|
1048
1132
|
}
|
1049
1133
|
|
1050
1134
|
static const char * s_itex2MML_buffer = 0;
|
1051
|
-
static
|
1135
|
+
static size_t s_itex2MML_length = 0;
|
1052
1136
|
|
1053
|
-
void itex2MML_setup (const char * buffer,
|
1137
|
+
void itex2MML_setup (const char * buffer, size_t length)
|
1054
1138
|
{
|
1055
1139
|
yy_flush_buffer( YY_CURRENT_BUFFER );
|
1056
1140
|
|
@@ -1058,9 +1142,24 @@ void itex2MML_setup (const char * buffer, unsigned long length)
|
|
1058
1142
|
s_itex2MML_length = length;
|
1059
1143
|
}
|
1060
1144
|
|
1061
|
-
|
1145
|
+
void itex2MML_capture_eqn_src()
|
1146
|
+
{
|
1147
|
+
if (YY_START != INITIAL && YY_START != SVGENV)
|
1148
|
+
itex2MML_do_capture_eqn();
|
1149
|
+
}
|
1150
|
+
|
1151
|
+
void itex2MML_do_capture_eqn()
|
1152
|
+
{
|
1153
|
+
if (itex2MML_eqn_bufsize - (itex2MML_eqn_end-itex2MML_eqn_src+yyleng) > 1)
|
1154
|
+
{
|
1155
|
+
strcpy(itex2MML_eqn_end, yytext);
|
1156
|
+
itex2MML_eqn_end += yyleng;
|
1157
|
+
}
|
1158
|
+
}
|
1159
|
+
|
1160
|
+
static size_t s_itex2MML_read (char * buffer, size_t max_size)
|
1062
1161
|
{
|
1063
|
-
|
1162
|
+
size_t result = 0;
|
1064
1163
|
|
1065
1164
|
if (max_size < s_itex2MML_length)
|
1066
1165
|
{
|