mathematical 1.6.14 → 1.6.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (318) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -1
  3. data/Rakefile +31 -21
  4. data/ext/mathematical/extconf.rb +71 -69
  5. data/ext/mathematical/lasem/COPYING +118 -99
  6. data/ext/mathematical/lasem/{NEWS → NEWS.md} +10 -0
  7. data/ext/mathematical/lasem/README.md +65 -0
  8. data/ext/mathematical/lasem/docs/lasem-render-0.6.1 +2 -2
  9. data/ext/mathematical/lasem/docs/meson.build +3 -0
  10. data/ext/mathematical/lasem/docs/reference/lasem/building.md +32 -0
  11. data/ext/mathematical/lasem/docs/reference/lasem/lasem.toml.in +47 -0
  12. data/ext/mathematical/lasem/docs/reference/lasem/meson.build +44 -0
  13. data/ext/mathematical/lasem/docs/reference/lasem/overview.md +24 -0
  14. data/ext/mathematical/lasem/docs/reference/lasem/urlmap.js +5 -0
  15. data/ext/mathematical/lasem/itex2mml/README.itex2MML +5 -2
  16. data/ext/mathematical/lasem/itex2mml/itex2MML.h +10 -10
  17. data/ext/mathematical/lasem/itex2mml/itex2MML.l +126 -27
  18. data/ext/mathematical/lasem/itex2mml/itex2MML.y +262 -99
  19. data/ext/mathematical/lasem/itex2mml/meson.build +17 -0
  20. data/ext/mathematical/lasem/lasem.doap +7 -7
  21. data/ext/mathematical/lasem/meson.build +46 -0
  22. data/ext/mathematical/lasem/meson_options.txt +5 -0
  23. data/ext/mathematical/lasem/org.lasem.Viewer.json +41 -0
  24. data/ext/mathematical/lasem/po/LINGUAS +0 -2
  25. data/ext/mathematical/lasem/po/eu.po +30 -66
  26. data/ext/mathematical/lasem/po/meson.build +4 -0
  27. data/ext/mathematical/lasem/src/lasemrender.c +1 -6
  28. data/ext/mathematical/lasem/src/lsm.c +2 -0
  29. data/ext/mathematical/lasem/src/lsmattributes.c +2 -5
  30. data/ext/mathematical/lasem/src/lsmmathmlglyphtableams.c +71 -7
  31. data/ext/mathematical/lasem/src/lsmmathmlitexelement.c +7 -5
  32. data/ext/mathematical/lasem/src/lsmmathmloperatordictionary.c +11 -1
  33. data/ext/mathematical/lasem/src/lsmmathmloperatordictionary.h +2 -1
  34. data/ext/mathematical/lasem/src/lsmmathmloperatorelement.c +6 -1
  35. data/ext/mathematical/lasem/src/lsmmathmlview.c +21 -3
  36. data/ext/mathematical/lasem/src/lsmmathmlview.h +2 -2
  37. data/ext/mathematical/lasem/src/lsmmisc.c +15 -0
  38. data/ext/mathematical/lasem/src/lsmmisc.h +32 -0
  39. data/ext/mathematical/lasem/src/lsmproperties.c +2 -5
  40. data/ext/mathematical/lasem/src/lsmsvgfiltersurface.c +6 -3
  41. data/ext/mathematical/lasem/src/lsmsvgtraits.c +10 -1
  42. data/ext/mathematical/lasem/src/meson.build +321 -0
  43. data/ext/mathematical/lasem/subprojects/gi-docgen.wrap +6 -0
  44. data/ext/mathematical/lasem/tests/data/mathml/tex/misc/array.tex +3 -0
  45. data/ext/mathematical/lasem/tests/dom.c +0 -6
  46. data/ext/mathematical/lasem/tests/filter.c +8 -7
  47. data/ext/mathematical/lasem/tests/lasem.supp +185 -0
  48. data/ext/mathematical/lasem/tests/lsmtest.c +2 -9
  49. data/ext/mathematical/lasem/tests/meson.build +39 -0
  50. data/ext/mathematical/lasem/tests/str.c +0 -4
  51. data/ext/mathematical/lasem/tests/suite.c +0 -4
  52. data/ext/mathematical/lasem/viewer/meson.build +17 -0
  53. data/ext/mathematical/lasem/viewer/viewer.c +248 -0
  54. data/ext/mathematical/mtex2MML/script/tag +15 -14
  55. data/ext/mathematical/mtex2MML/src/lexer.l +4 -4
  56. data/ext/mathematical/mtex2MML/src/mtex2MML.h +7 -7
  57. data/ext/mathematical/mtex2MML/src/parser.y +5 -5
  58. data/ext/mathematical/mtex2MML/tests/clar.c +2 -2
  59. data/ext/mathematical/mtex2MML/tests/deps/trim/package.json +2 -2
  60. data/lib/mathematical/configuration.rb +8 -4
  61. data/lib/mathematical/corrections.rb +3 -1
  62. data/lib/mathematical/validator.rb +11 -8
  63. data/lib/mathematical/version.rb +3 -1
  64. data/lib/mathematical.rb +21 -19
  65. data/mathematical.gemspec +21 -22
  66. metadata +36 -336
  67. data/ext/mathematical/lasem/AUTHORS +0 -1
  68. data/ext/mathematical/lasem/ChangeLog +0 -0
  69. data/ext/mathematical/lasem/MAINTAINERS +0 -3
  70. data/ext/mathematical/lasem/Makefile.am +0 -34
  71. data/ext/mathematical/lasem/Makefile.decl +0 -57
  72. data/ext/mathematical/lasem/README +0 -28
  73. data/ext/mathematical/lasem/RELEASING +0 -85
  74. data/ext/mathematical/lasem/autogen.sh +0 -180
  75. data/ext/mathematical/lasem/configure.ac +0 -139
  76. data/ext/mathematical/lasem/docs/Makefile.am +0 -14
  77. data/ext/mathematical/lasem/docs/reference/Makefile.am +0 -3
  78. data/ext/mathematical/lasem/docs/reference/lasem/Makefile.am +0 -205
  79. data/ext/mathematical/lasem/docs/reference/lasem/lasem-docs.xml +0 -75
  80. data/ext/mathematical/lasem/docs/reference/lasem/lasem-overview.xml +0 -64
  81. data/ext/mathematical/lasem/docs/reference/lasem/lasem-sections.txt +0 -213
  82. data/ext/mathematical/lasem/docs/reference/lasem/lasem.types +0 -110
  83. data/ext/mathematical/lasem/itex2mml/Makefile.am +0 -37
  84. data/ext/mathematical/lasem/lasem.pc.in +0 -11
  85. data/ext/mathematical/lasem/m4/introspection.m4 +0 -96
  86. data/ext/mathematical/lasem/po/ChangeLog +0 -0
  87. data/ext/mathematical/lasem/po/ro.po +0 -64
  88. data/ext/mathematical/lasem/src/Makefile.am +0 -349
  89. data/ext/mathematical/lasem/src/lsmdomenumtypes.c.template +0 -39
  90. data/ext/mathematical/lasem/src/lsmdomenumtypes.h.template +0 -26
  91. data/ext/mathematical/lasem/src/lsmmathmlenumtypes.c.template +0 -39
  92. data/ext/mathematical/lasem/src/lsmmathmlenumtypes.h.template +0 -26
  93. data/ext/mathematical/lasem/src/lsmsvgenumtypes.c.template +0 -39
  94. data/ext/mathematical/lasem/src/lsmsvgenumtypes.h.template +0 -26
  95. data/ext/mathematical/lasem/tests/Makefile.am +0 -34
  96. data/ext/mathematical/lib/liblasem.dylib +0 -0
  97. data/ext/mathematical/lib/libmtex2MML.a +0 -0
  98. data/ext/mathematical/mtex2MML/build/CMakeCache.txt +0 -512
  99. data/ext/mathematical/mtex2MML/build/CMakeFiles/3.16.2/CMakeCCompiler.cmake +0 -76
  100. data/ext/mathematical/mtex2MML/build/CMakeFiles/3.16.2/CMakeCXXCompiler.cmake +0 -88
  101. data/ext/mathematical/mtex2MML/build/CMakeFiles/3.16.2/CMakeDetermineCompilerABI_C.bin +0 -0
  102. data/ext/mathematical/mtex2MML/build/CMakeFiles/3.16.2/CMakeDetermineCompilerABI_CXX.bin +0 -0
  103. data/ext/mathematical/mtex2MML/build/CMakeFiles/3.16.2/CMakeSystem.cmake +0 -15
  104. data/ext/mathematical/mtex2MML/build/CMakeFiles/3.16.2/CompilerIdC/CMakeCCompilerId.c +0 -671
  105. data/ext/mathematical/mtex2MML/build/CMakeFiles/3.16.2/CompilerIdCXX/CMakeCXXCompilerId.cpp +0 -660
  106. data/ext/mathematical/mtex2MML/build/CMakeFiles/CMakeDirectoryInformation.cmake +0 -16
  107. data/ext/mathematical/mtex2MML/build/CMakeFiles/CMakeError.log +0 -22
  108. data/ext/mathematical/mtex2MML/build/CMakeFiles/CMakeOutput.log +0 -351
  109. data/ext/mathematical/mtex2MML/build/CMakeFiles/CMakeRuleHashes.txt +0 -34
  110. data/ext/mathematical/mtex2MML/build/CMakeFiles/Continuous.dir/DependInfo.cmake +0 -11
  111. data/ext/mathematical/mtex2MML/build/CMakeFiles/Continuous.dir/build.make +0 -76
  112. data/ext/mathematical/mtex2MML/build/CMakeFiles/Continuous.dir/cmake_clean.cmake +0 -8
  113. data/ext/mathematical/mtex2MML/build/CMakeFiles/Continuous.dir/progress.make +0 -1
  114. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousBuild.dir/DependInfo.cmake +0 -11
  115. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousBuild.dir/build.make +0 -76
  116. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousBuild.dir/cmake_clean.cmake +0 -8
  117. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousBuild.dir/progress.make +0 -1
  118. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousConfigure.dir/DependInfo.cmake +0 -11
  119. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousConfigure.dir/build.make +0 -76
  120. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousConfigure.dir/cmake_clean.cmake +0 -8
  121. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousConfigure.dir/progress.make +0 -1
  122. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousCoverage.dir/DependInfo.cmake +0 -11
  123. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousCoverage.dir/build.make +0 -76
  124. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousCoverage.dir/cmake_clean.cmake +0 -8
  125. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousCoverage.dir/progress.make +0 -1
  126. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousMemCheck.dir/DependInfo.cmake +0 -11
  127. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousMemCheck.dir/build.make +0 -76
  128. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousMemCheck.dir/cmake_clean.cmake +0 -8
  129. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousMemCheck.dir/progress.make +0 -1
  130. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousStart.dir/DependInfo.cmake +0 -11
  131. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousStart.dir/build.make +0 -76
  132. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousStart.dir/cmake_clean.cmake +0 -8
  133. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousStart.dir/progress.make +0 -1
  134. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousSubmit.dir/DependInfo.cmake +0 -11
  135. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousSubmit.dir/build.make +0 -76
  136. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousSubmit.dir/cmake_clean.cmake +0 -8
  137. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousSubmit.dir/progress.make +0 -1
  138. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousTest.dir/DependInfo.cmake +0 -11
  139. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousTest.dir/build.make +0 -76
  140. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousTest.dir/cmake_clean.cmake +0 -8
  141. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousTest.dir/progress.make +0 -1
  142. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousUpdate.dir/DependInfo.cmake +0 -11
  143. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousUpdate.dir/build.make +0 -76
  144. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousUpdate.dir/cmake_clean.cmake +0 -8
  145. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousUpdate.dir/progress.make +0 -1
  146. data/ext/mathematical/mtex2MML/build/CMakeFiles/Experimental.dir/DependInfo.cmake +0 -11
  147. data/ext/mathematical/mtex2MML/build/CMakeFiles/Experimental.dir/build.make +0 -76
  148. data/ext/mathematical/mtex2MML/build/CMakeFiles/Experimental.dir/cmake_clean.cmake +0 -8
  149. data/ext/mathematical/mtex2MML/build/CMakeFiles/Experimental.dir/progress.make +0 -1
  150. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalBuild.dir/DependInfo.cmake +0 -11
  151. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalBuild.dir/build.make +0 -76
  152. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalBuild.dir/cmake_clean.cmake +0 -8
  153. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalBuild.dir/progress.make +0 -1
  154. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalConfigure.dir/DependInfo.cmake +0 -11
  155. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalConfigure.dir/build.make +0 -76
  156. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalConfigure.dir/cmake_clean.cmake +0 -8
  157. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalConfigure.dir/progress.make +0 -1
  158. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalCoverage.dir/DependInfo.cmake +0 -11
  159. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalCoverage.dir/build.make +0 -76
  160. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalCoverage.dir/cmake_clean.cmake +0 -8
  161. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalCoverage.dir/progress.make +0 -1
  162. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalMemCheck.dir/DependInfo.cmake +0 -11
  163. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalMemCheck.dir/build.make +0 -76
  164. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalMemCheck.dir/cmake_clean.cmake +0 -8
  165. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalMemCheck.dir/progress.make +0 -1
  166. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalStart.dir/DependInfo.cmake +0 -11
  167. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalStart.dir/build.make +0 -76
  168. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalStart.dir/cmake_clean.cmake +0 -8
  169. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalStart.dir/progress.make +0 -1
  170. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalSubmit.dir/DependInfo.cmake +0 -11
  171. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalSubmit.dir/build.make +0 -76
  172. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalSubmit.dir/cmake_clean.cmake +0 -8
  173. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalSubmit.dir/progress.make +0 -1
  174. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalTest.dir/DependInfo.cmake +0 -11
  175. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalTest.dir/build.make +0 -76
  176. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalTest.dir/cmake_clean.cmake +0 -8
  177. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalTest.dir/progress.make +0 -1
  178. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalUpdate.dir/DependInfo.cmake +0 -11
  179. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalUpdate.dir/build.make +0 -76
  180. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalUpdate.dir/cmake_clean.cmake +0 -8
  181. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalUpdate.dir/progress.make +0 -1
  182. data/ext/mathematical/mtex2MML/build/CMakeFiles/Makefile.cmake +0 -177
  183. data/ext/mathematical/mtex2MML/build/CMakeFiles/Makefile2 +0 -1033
  184. data/ext/mathematical/mtex2MML/build/CMakeFiles/Nightly.dir/DependInfo.cmake +0 -11
  185. data/ext/mathematical/mtex2MML/build/CMakeFiles/Nightly.dir/build.make +0 -76
  186. data/ext/mathematical/mtex2MML/build/CMakeFiles/Nightly.dir/cmake_clean.cmake +0 -8
  187. data/ext/mathematical/mtex2MML/build/CMakeFiles/Nightly.dir/progress.make +0 -1
  188. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyBuild.dir/DependInfo.cmake +0 -11
  189. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyBuild.dir/build.make +0 -76
  190. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyBuild.dir/cmake_clean.cmake +0 -8
  191. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyBuild.dir/progress.make +0 -1
  192. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyConfigure.dir/DependInfo.cmake +0 -11
  193. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyConfigure.dir/build.make +0 -76
  194. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyConfigure.dir/cmake_clean.cmake +0 -8
  195. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyConfigure.dir/progress.make +0 -1
  196. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyCoverage.dir/DependInfo.cmake +0 -11
  197. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyCoverage.dir/build.make +0 -76
  198. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyCoverage.dir/cmake_clean.cmake +0 -8
  199. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyCoverage.dir/progress.make +0 -1
  200. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemCheck.dir/DependInfo.cmake +0 -11
  201. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemCheck.dir/build.make +0 -76
  202. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemCheck.dir/cmake_clean.cmake +0 -8
  203. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemCheck.dir/progress.make +0 -1
  204. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemoryCheck.dir/DependInfo.cmake +0 -11
  205. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemoryCheck.dir/build.make +0 -76
  206. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemoryCheck.dir/cmake_clean.cmake +0 -8
  207. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemoryCheck.dir/progress.make +0 -1
  208. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyStart.dir/DependInfo.cmake +0 -11
  209. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyStart.dir/build.make +0 -76
  210. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyStart.dir/cmake_clean.cmake +0 -8
  211. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyStart.dir/progress.make +0 -1
  212. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlySubmit.dir/DependInfo.cmake +0 -11
  213. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlySubmit.dir/build.make +0 -76
  214. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlySubmit.dir/cmake_clean.cmake +0 -8
  215. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlySubmit.dir/progress.make +0 -1
  216. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyTest.dir/DependInfo.cmake +0 -11
  217. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyTest.dir/build.make +0 -76
  218. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyTest.dir/cmake_clean.cmake +0 -8
  219. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyTest.dir/progress.make +0 -1
  220. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyUpdate.dir/DependInfo.cmake +0 -11
  221. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyUpdate.dir/build.make +0 -76
  222. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyUpdate.dir/cmake_clean.cmake +0 -8
  223. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyUpdate.dir/progress.make +0 -1
  224. data/ext/mathematical/mtex2MML/build/CMakeFiles/TargetDirectories.txt +0 -41
  225. data/ext/mathematical/mtex2MML/build/CMakeFiles/cmake.check_cache +0 -1
  226. data/ext/mathematical/mtex2MML/build/CMakeFiles/format.dir/DependInfo.cmake +0 -11
  227. data/ext/mathematical/mtex2MML/build/CMakeFiles/format.dir/build.make +0 -76
  228. data/ext/mathematical/mtex2MML/build/CMakeFiles/format.dir/cmake_clean.cmake +0 -8
  229. data/ext/mathematical/mtex2MML/build/CMakeFiles/format.dir/progress.make +0 -1
  230. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/DependInfo.cmake +0 -44
  231. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/build.make +0 -206
  232. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/cmake_clean.cmake +0 -20
  233. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/depend.make +0 -2
  234. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/flags.make +0 -10
  235. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/link.txt +0 -1
  236. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/progress.make +0 -11
  237. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/C.includecache +0 -244
  238. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/DependInfo.cmake +0 -42
  239. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/build.make +0 -203
  240. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/cmake_clean.cmake +0 -19
  241. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/cmake_clean_target.cmake +0 -3
  242. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/depend.internal +0 -49
  243. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/depend.make +0 -49
  244. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/flags.make +0 -10
  245. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/link.txt +0 -2
  246. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/progress.make +0 -11
  247. data/ext/mathematical/mtex2MML/build/CMakeFiles/memcheck.dir/DependInfo.cmake +0 -11
  248. data/ext/mathematical/mtex2MML/build/CMakeFiles/memcheck.dir/build.make +0 -76
  249. data/ext/mathematical/mtex2MML/build/CMakeFiles/memcheck.dir/cmake_clean.cmake +0 -8
  250. data/ext/mathematical/mtex2MML/build/CMakeFiles/memcheck.dir/progress.make +0 -1
  251. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML.dir/DependInfo.cmake +0 -43
  252. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML.dir/build.make +0 -217
  253. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML.dir/cmake_clean.cmake +0 -20
  254. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML.dir/depend.make +0 -2
  255. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML.dir/flags.make +0 -10
  256. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML.dir/link.txt +0 -1
  257. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML.dir/progress.make +0 -12
  258. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML_clar.dir/DependInfo.cmake +0 -59
  259. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML_clar.dir/build.make +0 -473
  260. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML_clar.dir/cmake_clean.cmake +0 -37
  261. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML_clar.dir/depend.make +0 -2
  262. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML_clar.dir/flags.make +0 -10
  263. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML_clar.dir/link.txt +0 -1
  264. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML_clar.dir/progress.make +0 -29
  265. data/ext/mathematical/mtex2MML/build/CMakeFiles/progress.marks +0 -1
  266. data/ext/mathematical/mtex2MML/build/CTestTestfile.cmake +0 -8
  267. data/ext/mathematical/mtex2MML/build/DartConfiguration.tcl +0 -105
  268. data/ext/mathematical/mtex2MML/build/Makefile +0 -1485
  269. data/ext/mathematical/mtex2MML/build/cmake_install.cmake +0 -102
  270. data/ext/mathematical/mtex2MML/build/lexer.c +0 -8903
  271. data/ext/mathematical/mtex2MML/build/libmtex2MML.a +0 -0
  272. data/ext/mathematical/mtex2MML/build/libmtex2MML.pc +0 -10
  273. data/ext/mathematical/mtex2MML/build/mtex2mml_export.h +0 -42
  274. data/ext/mathematical/mtex2MML/build/parser.c +0 -10334
  275. data/ext/mathematical/mtex2MML/build/parser.h +0 -625
  276. data/ext/mathematical/mtex2MML/build/parser.output +0 -120719
  277. data/test/mathematical/basic_test.rb +0 -89
  278. data/test/mathematical/corrections_test.rb +0 -16
  279. data/test/mathematical/delimiters_test.rb +0 -69
  280. data/test/mathematical/fixtures/after/backslashes.html +0 -5
  281. data/test/mathematical/fixtures/after/brackets_display.html +0 -1
  282. data/test/mathematical/fixtures/after/compliance_accents.html +0 -17
  283. data/test/mathematical/fixtures/after/compliance_arrows.html +0 -71
  284. data/test/mathematical/fixtures/after/compliance_colors.html +0 -4
  285. data/test/mathematical/fixtures/after/compliance_greek_letters.html +0 -42
  286. data/test/mathematical/fixtures/after/compliance_large_math.html +0 -19
  287. data/test/mathematical/fixtures/after/compliance_log_symbols.html +0 -34
  288. data/test/mathematical/fixtures/after/compliance_operators.html +0 -262
  289. data/test/mathematical/fixtures/after/dollar_sign_inline.html +0 -1
  290. data/test/mathematical/fixtures/after/equation_display.html +0 -1
  291. data/test/mathematical/fixtures/after/multiple_dollar_inline.html +0 -1
  292. data/test/mathematical/fixtures/after/parens_inline.html +0 -1
  293. data/test/mathematical/fixtures/before/backslashes.text +0 -17
  294. data/test/mathematical/fixtures/before/brackets_display.text +0 -1
  295. data/test/mathematical/fixtures/before/compliance_accents.text +0 -17
  296. data/test/mathematical/fixtures/before/compliance_arrows.text +0 -71
  297. data/test/mathematical/fixtures/before/compliance_colors.text +0 -4
  298. data/test/mathematical/fixtures/before/compliance_greek_letters.text +0 -42
  299. data/test/mathematical/fixtures/before/compliance_large_math.text +0 -19
  300. data/test/mathematical/fixtures/before/compliance_log_symbols.text +0 -34
  301. data/test/mathematical/fixtures/before/compliance_operators.text +0 -262
  302. data/test/mathematical/fixtures/before/dollar_sign_inline.text +0 -1
  303. data/test/mathematical/fixtures/before/equation_display.text +0 -1
  304. data/test/mathematical/fixtures/before/multiple_dollar_inline.text +0 -1
  305. data/test/mathematical/fixtures/before/parens_inline.text +0 -1
  306. data/test/mathematical/fixtures/performance/big_file.text +0 -1755
  307. data/test/mathematical/fixtures/png/numeric_test_1.png +0 -0
  308. data/test/mathematical/fixtures/png/numeric_test_2.png +0 -0
  309. data/test/mathematical/fixtures/png/numeric_test_3.png +0 -0
  310. data/test/mathematical/fixtures/png/pmatrix.png +0 -0
  311. data/test/mathematical/fixtures_test.rb +0 -51
  312. data/test/mathematical/maliciousness_test.rb +0 -152
  313. data/test/mathematical/mathjax_test.rb +0 -26
  314. data/test/mathematical/mathml_test.rb +0 -21
  315. data/test/mathematical/multiples_test.rb +0 -71
  316. data/test/mathematical/performance_test.rb +0 -15
  317. data/test/mathematical/png_test.rb +0 -30
  318. data/test/test_helper.rb +0 -72
@@ -1,11 +1,11 @@
1
- /* itex2MML 1.4.5
2
- * itex2MML.h last modified 10/2/2010
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.4.5"
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, unsigned long length);
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, unsigned long length);
25
+ extern int itex2MML_filter (const char * buffer, size_t length);
26
26
 
27
- extern int itex2MML_html_filter (const char * buffer, unsigned long length);
28
- extern int itex2MML_strict_html_filter (const char * buffer, unsigned long length);
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, unsigned long length); /* default writes to stdout */
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, unsigned long length);
42
+ extern void itex2MML_setup (const char * buffer, size_t length);
43
43
 
44
- extern void itex2MML_restart (void);
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.4.5
2
- * itex2MML.l last modified 10/2/2010
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
- %x MATH ATTRIBUTELIST BBOLD FRAKTUR CALLIGRAPHIC ROMAN PLAINTEXT INT1 INT2 INT3 MATHENV SVGENV SVGEND OPTARG ARRAYOPTIONS COLOPTS
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 "y.tab.h"
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 int s_itex2MML_read (char * buffer, int max_size);
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
- "\\]" {BEGIN(INITIAL); return ENDMATH;}
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("&amp;"); 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,.]*[0-9]+ {yylval=itex2MML_copy_string(yytext); return MN;}
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("&infin;"); 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("&#x27E6;"); return LEFTDELIM;}
125
+ "\\rrbracket" {yylval=itex2MML_copy_string("&#x27E7;"); return RIGHTDELIM;}
126
+
127
+ "\\lvert" {yylval=itex2MML_copy_string("&vert;"); return LEFTDELIM;}
128
+ "\\lVert" {yylval=itex2MML_copy_string("&Vert;"); return LEFTDELIM;}
129
+ "\\rvert" {yylval=itex2MML_copy_string("&vert;"); return RIGHTDELIM;}
130
+ "\\rVert" {yylval=itex2MML_copy_string("&Vert;"); return RIGHTDELIM;}
131
+
116
132
  "\\vert" |
117
- "|" {yylval=itex2MML_copy_string("&VerticalBar;"); return OTHERDELIM;}
133
+ "|" {yylval=itex2MML_copy_string("&vert;"); return OTHERDELIM;}
118
134
  "\\Vert" |
119
- "\\|" {yylval=itex2MML_copy_string("&DoubleVerticalBar;"); return OTHERDELIM;}
135
+ "\\|" {yylval=itex2MML_copy_string("&Vert;"); return OTHERDELIM;}
120
136
 
121
137
  "\\setminus" {yylval=itex2MML_copy_string("&setminus;"); return MO;}
122
138
  "\\backslash" {yylval=itex2MML_copy_string("&bsol;"); 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("&Lang;"); 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("&Rang;"); 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("&Vbar;"); return MOL;}
653
677
  "\\boxdot" {yylval=itex2MML_copy_string("&sdotb;"); return MOL;}
678
+ "\\boxslash" {yylval=itex2MML_copy_string("&#x29C4;"); return MOL;}
679
+ "\\boxbslash" {yylval=itex2MML_copy_string("&#x29C5;"); return MOL;}
680
+ "\\boxast" {yylval=itex2MML_copy_string("&#x29C6;"); return MOL;}
681
+ "\\boxcircle" {yylval=itex2MML_copy_string("&#x29C7;"); return MOL;}
682
+ "\\boxbox" {yylval=itex2MML_copy_string("&#x29C8;"); return MOL;}
683
+ "\\obar" {yylval=itex2MML_copy_string("&#x29B6;"); return MOL;}
684
+ "\\obslash" {yylval=itex2MML_copy_string("&#x29B8;"); return MOL;}
685
+ "\\olessthan" {yylval=itex2MML_copy_string("&#x29C0;"); return MOL;}
686
+ "\\ogreaterthan" {yylval=itex2MML_copy_string("&#x29C1;"); return MOL;}
654
687
  "\\Box" |
655
688
  "\\square" {yylval=itex2MML_copy_string("&square;"); return MOL;}
656
689
  "\\emptyset" |
@@ -739,6 +772,8 @@ int itex2MML_displaymode = 0;
739
772
 
740
773
  "\\bigodot" {yylval=itex2MML_copy_string("&bigodot;"); return MOB;}
741
774
  "\\bigsqcup" {yylval=itex2MML_copy_string("&bigsqcup;"); return MOB;}
775
+ "\\bigsqcap" {yylval=itex2MML_copy_string("&#x2A05;"); return MOB;}
776
+ "\\biginterleave" {yylval=itex2MML_copy_string("&#x2AFC;"); return MOB;}
742
777
  "\\biguplus" {yylval=itex2MML_copy_string("&biguplus;"); return MOB;}
743
778
 
744
779
  "\\wedge" {yylval=itex2MML_copy_string("&wedge;"); return MOL;}
@@ -773,7 +808,14 @@ int itex2MML_displaymode = 0;
773
808
  "\\widebar" {return WIDEBAR;}
774
809
 
775
810
  "\\vec" {return VEC;}
776
- "\\widevec" {return 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" {return 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
- . {BEGIN(MATH); unput(yytext[0]);}
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 (void)
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 unsigned long s_itex2MML_length = 0;
1135
+ static size_t s_itex2MML_length = 0;
1052
1136
 
1053
- void itex2MML_setup (const char * buffer, unsigned long length)
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
- static int s_itex2MML_read (char * buffer, int max_size)
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
- int result = 0;
1162
+ size_t result = 0;
1064
1163
 
1065
1164
  if (max_size < s_itex2MML_length)
1066
1165
  {