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
@@ -0,0 +1,15 @@
1
+ #include <lsmmisc.h>
2
+
3
+ char *
4
+ lsm_g_string_free_and_steal (GString *string)
5
+ {
6
+ #if GLIB_CHECK_VERSION(2,75,4)
7
+ return g_string_free_and_steal(string);
8
+ #else
9
+ char *buffer = string->str;
10
+
11
+ g_string_free (string, FALSE);
12
+
13
+ return buffer;
14
+ #endif
15
+ }
@@ -0,0 +1,32 @@
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
+
25
+ #ifndef LSM_MISC_H
26
+ #define LSM_MISC_H
27
+
28
+ #include <lsmtypes.h>
29
+
30
+ char * lsm_g_string_free_and_steal (GString *string) G_GNUC_WARN_UNUSED_RESULT;
31
+
32
+ #endif
@@ -24,6 +24,7 @@
24
24
  #include <lsmproperties.h>
25
25
  #include <lsmdebug.h>
26
26
  #include <lsmstr.h>
27
+ #include <lsmmisc.h>
27
28
  #include <string.h>
28
29
 
29
30
  #define PROPERTY_TRAIT(property) ((void *) (((char *) property) + sizeof (LsmProperty)))
@@ -281,7 +282,6 @@ lsm_property_manager_serialize (LsmPropertyManager *manager,
281
282
  LsmProperty *property;
282
283
  GSList *iter;
283
284
  GString *string;
284
- char *c_string;
285
285
  gboolean attribute_found = FALSE;
286
286
 
287
287
  g_return_val_if_fail (property_bag != NULL, NULL);
@@ -310,10 +310,7 @@ lsm_property_manager_serialize (LsmPropertyManager *manager,
310
310
  return NULL;
311
311
  }
312
312
 
313
- c_string = string->str;
314
- g_string_free (string, FALSE);
315
-
316
- return c_string;
313
+ return lsm_g_string_free_and_steal (string);
317
314
  }
318
315
 
319
316
  void
@@ -69,10 +69,12 @@ lsm_svg_filter_surface_new_with_content (const char *name, cairo_surface_t *surf
69
69
  cairo_image_surface_get_format (surface) != CAIRO_FORMAT_ARGB32) {
70
70
  surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 0, 0);
71
71
  subregion = &null_subregion;
72
- } else if (subregion == NULL)
72
+ } else if (subregion == NULL) {
73
73
  subregion = &null_subregion;
74
-
75
- cairo_surface_reference (surface);
74
+ cairo_surface_reference (surface);
75
+ } else {
76
+ cairo_surface_reference (surface);
77
+ }
76
78
 
77
79
  filter_surface = g_new (LsmSvgFilterSurface, 1);
78
80
  filter_surface->name = g_strdup (name);
@@ -505,6 +507,7 @@ lsm_svg_filter_surface_flood (LsmSvgFilterSurface *surface,
505
507
  cairo_clip (cairo);
506
508
  cairo_set_source_rgba (cairo, red, green, blue, opacity);
507
509
  cairo_paint (cairo);
510
+ cairo_destroy (cairo);
508
511
  }
509
512
 
510
513
  void
@@ -647,10 +647,19 @@ lsm_svg_paint_trait_to_string (LsmTrait *abstract_trait)
647
647
  100.0 * paint->color.blue);
648
648
  }
649
649
 
650
+ static void
651
+ lsm_svg_paint_trait_finalize (LsmTrait *abstract_trait)
652
+ {
653
+ LsmSvgPaint *paint = (LsmSvgPaint *) abstract_trait;
654
+
655
+ g_free (paint->url);
656
+ }
657
+
650
658
  const LsmTraitClass lsm_svg_paint_trait_class = {
651
659
  .size = sizeof (LsmSvgPaint),
652
660
  .from_string = lsm_svg_paint_trait_from_string,
653
- .to_string = lsm_svg_paint_trait_to_string
661
+ .to_string = lsm_svg_paint_trait_to_string,
662
+ .finalize = lsm_svg_paint_trait_finalize,
654
663
  };
655
664
 
656
665
  static gboolean
@@ -0,0 +1,321 @@
1
+ dom_sources = [
2
+ 'lsm.c',
3
+ 'lsmdebug.c',
4
+ 'lsmstr.c',
5
+ 'lsmutils.c',
6
+ 'lsmmisc.c',
7
+ 'lsmtraits.c',
8
+ 'lsmproperties.c',
9
+ 'lsmattributes.c',
10
+ 'lsmcairo.c',
11
+ 'lsmitex.c',
12
+ 'lsmdomentities.c',
13
+ 'lsmdomnode.c',
14
+ 'lsmdomnodelist.c',
15
+ 'lsmdomnamednodemap.c',
16
+ 'lsmdomdocument.c',
17
+ 'lsmdomdocumentfragment.c',
18
+ 'lsmdomelement.c',
19
+ 'lsmdomcharacterdata.c',
20
+ 'lsmdomtext.c',
21
+ 'lsmdomview.c',
22
+ 'lsmdomparser.c',
23
+ 'lsmdomimplementation.c'
24
+ ]
25
+
26
+ mathml_sources = [
27
+ 'lsmmathmlenums.c',
28
+ 'lsmmathmltraits.c',
29
+ 'lsmmathmlattributes.c',
30
+ 'lsmmathmloperatordictionary.c',
31
+ 'lsmmathmldocument.c',
32
+ 'lsmmathmlelement.c',
33
+ 'lsmmathmlsemanticselement.c',
34
+ 'lsmmathmlphantomelement.c',
35
+ 'lsmmathmlmathelement.c',
36
+ 'lsmmathmltableelement.c',
37
+ 'lsmmathmltablerowelement.c',
38
+ 'lsmmathmltablecellelement.c',
39
+ 'lsmmathmlspaceelement.c',
40
+ 'lsmmathmlradicalelement.c',
41
+ 'lsmmathmlscriptelement.c',
42
+ 'lsmmathmlfractionelement.c',
43
+ 'lsmmathmlunderoverelement.c',
44
+ 'lsmmathmlpresentationtoken.c',
45
+ 'lsmmathmloperatorelement.c',
46
+ 'lsmmathmlstringelement.c',
47
+ 'lsmmathmlpresentationcontainer.c',
48
+ 'lsmmathmlstyleelement.c',
49
+ 'lsmmathmlrowelement.c',
50
+ 'lsmmathmlencloseelement.c',
51
+ 'lsmmathmlfencedelement.c',
52
+ 'lsmmathmlpaddedelement.c',
53
+ 'lsmmathmlerrorelement.c',
54
+ 'lsmmathmlactionelement.c',
55
+ 'lsmmathmlstyle.c',
56
+ 'lsmmathmlview.c',
57
+ 'lsmmathmlglyphtableams.c',
58
+ 'lsmmathmlalignmarkelement.c',
59
+ 'lsmmathmlaligngroupelement.c',
60
+ 'lsmmathmlitexelement.c',
61
+ 'lsmmathmlutils.c',
62
+ 'lsmmathmllayoututils.c'
63
+ ]
64
+
65
+ svg_sources = [
66
+ 'lsmsvgenums.c',
67
+ 'lsmsvgtraits.c',
68
+ 'lsmsvgstyle.c',
69
+ 'lsmsvgcolors.c',
70
+ 'lsmsvglength.c',
71
+ 'lsmsvgview.c',
72
+ 'lsmsvgmatrix.c',
73
+ 'lsmsvgdocument.c',
74
+ 'lsmsvgelement.c',
75
+ 'lsmsvgtransformable.c',
76
+ 'lsmsvgclippathelement.c',
77
+ 'lsmsvgsvgelement.c',
78
+ 'lsmsvguseelement.c',
79
+ 'lsmsvgimageelement.c',
80
+ 'lsmsvgsymbolelement.c',
81
+ 'lsmsvgmarkerelement.c',
82
+ 'lsmsvgaelement.c',
83
+ 'lsmsvggelement.c',
84
+ 'lsmsvgdefselement.c',
85
+ 'lsmsvgrectelement.c',
86
+ 'lsmsvgcircleelement.c',
87
+ 'lsmsvgellipseelement.c',
88
+ 'lsmsvglineelement.c',
89
+ 'lsmsvgpolylineelement.c',
90
+ 'lsmsvgpolygonelement.c',
91
+ 'lsmsvgpathelement.c',
92
+ 'lsmsvgtextelement.c',
93
+ 'lsmsvgtspanelement.c',
94
+ 'lsmsvggradientelement.c',
95
+ 'lsmsvglineargradientelement.c',
96
+ 'lsmsvgradialgradientelement.c',
97
+ 'lsmsvgstopelement.c',
98
+ 'lsmsvgswitchelement.c',
99
+ 'lsmsvgpatternelement.c',
100
+ 'lsmsvgmaskelement.c',
101
+ 'lsmsvgfilterelement.c',
102
+ 'lsmsvgfilterprimitive.c',
103
+ 'lsmsvgfilterblend.c',
104
+ 'lsmsvgfiltercolormatrix.c',
105
+ 'lsmsvgfiltercomposite.c',
106
+ 'lsmsvgfilterconvolvematrix.c',
107
+ 'lsmsvgfilterdisplacementmap.c',
108
+ 'lsmsvgfilterflood.c',
109
+ 'lsmsvgfiltergaussianblur.c',
110
+ 'lsmsvgfilterimage.c',
111
+ 'lsmsvgfilteroffset.c',
112
+ 'lsmsvgfiltermerge.c',
113
+ 'lsmsvgfiltermergenode.c',
114
+ 'lsmsvgfiltermorphology.c',
115
+ 'lsmsvgfilterspecularlighting.c',
116
+ 'lsmsvgfiltertile.c',
117
+ 'lsmsvgfilterturbulence.c',
118
+ 'lsmsvgfiltersurface.c'
119
+ ]
120
+
121
+ dom_headers = [
122
+ 'lsm.h',
123
+ 'lsmtypes.h',
124
+ 'lsmcairo.h',
125
+ 'lsmstr.h',
126
+ 'lsmutils.h',
127
+ 'lsmmisc.h',
128
+ 'lsmdebug.h',
129
+ 'lsmtraits.h',
130
+ 'lsmproperties.h',
131
+ 'lsmattributes.h',
132
+ 'lsmitex.h',
133
+ 'lsmdomentities.h',
134
+ 'lsmdom.h',
135
+ 'lsmdomtypes.h',
136
+ 'lsmdomnode.h',
137
+ 'lsmdomnodelist.h',
138
+ 'lsmdomnamednodemap.h',
139
+ 'lsmdomdocument.h',
140
+ 'lsmdomdocumentfragment.h',
141
+ 'lsmdomelement.h',
142
+ 'lsmdomcharacterdata.h',
143
+ 'lsmdomtext.h',
144
+ 'lsmdomview.h',
145
+ 'lsmdomparser.h',
146
+ 'lsmdomimplementation.h'
147
+ ]
148
+
149
+ mathml_headers = [
150
+ 'lsmmathml.h',
151
+ 'lsmmathmltypes.h',
152
+ 'lsmmathmlenums.h',
153
+ 'lsmmathmltraits.h',
154
+ 'lsmmathmlattributes.h',
155
+ 'lsmmathmloperatordictionary.h',
156
+ 'lsmmathmldocument.h',
157
+ 'lsmmathmlelement.h',
158
+ 'lsmmathmlsemanticselement.h',
159
+ 'lsmmathmlphantomelement.h',
160
+ 'lsmmathmlmathelement.h',
161
+ 'lsmmathmltableelement.h',
162
+ 'lsmmathmltablerowelement.h',
163
+ 'lsmmathmltablecellelement.h',
164
+ 'lsmmathmlspaceelement.h',
165
+ 'lsmmathmlradicalelement.h',
166
+ 'lsmmathmlscriptelement.h',
167
+ 'lsmmathmlfractionelement.h',
168
+ 'lsmmathmlunderoverelement.h',
169
+ 'lsmmathmlpresentationtoken.h',
170
+ 'lsmmathmloperatorelement.h',
171
+ 'lsmmathmlstringelement.h',
172
+ 'lsmmathmlpresentationcontainer.h',
173
+ 'lsmmathmlstyleelement.h',
174
+ 'lsmmathmlrowelement.h',
175
+ 'lsmmathmlencloseelement.h',
176
+ 'lsmmathmlfencedelement.h',
177
+ 'lsmmathmlpaddedelement.h',
178
+ 'lsmmathmlerrorelement.h',
179
+ 'lsmmathmlactionelement.h',
180
+ 'lsmmathmlstyle.h',
181
+ 'lsmmathmlview.h',
182
+ 'lsmmathmlglyphtableams.h',
183
+ 'lsmmathmlalignmarkelement.h',
184
+ 'lsmmathmlaligngroupelement.h',
185
+ 'lsmmathmlitexelement.h',
186
+ 'lsmmathmlutils.h',
187
+ 'lsmmathmllayoututils.h'
188
+ ]
189
+
190
+ svg_headers = [
191
+ 'lsmsvg.h',
192
+ 'lsmsvgtypes.h',
193
+ 'lsmsvgenums.h',
194
+ 'lsmsvgtraits.h',
195
+ 'lsmsvgattributes.h',
196
+ 'lsmsvgstyle.h',
197
+ 'lsmsvgcolors.h',
198
+ 'lsmsvglength.h',
199
+ 'lsmsvgview.h',
200
+ 'lsmsvgmatrix.h',
201
+ 'lsmsvgdocument.h',
202
+ 'lsmsvgelement.h',
203
+ 'lsmsvgtransformable.h',
204
+ 'lsmsvgclippathelement.h',
205
+ 'lsmsvgsvgelement.h',
206
+ 'lsmsvgaelement.h',
207
+ 'lsmsvggelement.h',
208
+ 'lsmsvgdefselement.h',
209
+ 'lsmsvguseelement.h',
210
+ 'lsmsvgimageelement.h',
211
+ 'lsmsvgsymbolelement.h',
212
+ 'lsmsvgmarkerelement.h',
213
+ 'lsmsvgrectelement.h',
214
+ 'lsmsvgcircleelement.h',
215
+ 'lsmsvgellipseelement.h',
216
+ 'lsmsvglineelement.h',
217
+ 'lsmsvgpathelement.h',
218
+ 'lsmsvgpolylineelement.h',
219
+ 'lsmsvgpolygonelement.h',
220
+ 'lsmsvgtextelement.h',
221
+ 'lsmsvgtspanelement.h',
222
+ 'lsmsvggradientelement.h',
223
+ 'lsmsvglineargradientelement.h',
224
+ 'lsmsvgradialgradientelement.h',
225
+ 'lsmsvgstopelement.h',
226
+ 'lsmsvgswitchelement.h',
227
+ 'lsmsvgpatternelement.h',
228
+ 'lsmsvgmaskelement.h',
229
+ 'lsmsvgfilterelement.h',
230
+ 'lsmsvgfilterprimitive.h',
231
+ 'lsmsvgfilterblend.h',
232
+ 'lsmsvgfiltercolormatrix.h',
233
+ 'lsmsvgfiltercomposite.h',
234
+ 'lsmsvgfilterdisplacementmap.h',
235
+ 'lsmsvgfilterconvolvematrix.h',
236
+ 'lsmsvgfilterflood.h',
237
+ 'lsmsvgfiltergaussianblur.h',
238
+ 'lsmsvgfilterimage.h',
239
+ 'lsmsvgfilteroffset.h',
240
+ 'lsmsvgfiltermerge.h',
241
+ 'lsmsvgfiltermergenode.h',
242
+ 'lsmsvgfiltermorphology.h',
243
+ 'lsmsvgfilterspecularlighting.h',
244
+ 'lsmsvgfiltertile.h',
245
+ 'lsmsvgfilterturbulence.h',
246
+ 'lsmsvgfiltersurface.h'
247
+ ]
248
+
249
+ dom_enums = gnome.mkenums_simple ('lsmdomenumtypes', sources: dom_headers)
250
+ mathml_enums = gnome.mkenums_simple ('lsmmathmlenumtypes', sources: mathml_headers)
251
+ svg_enums = gnome.mkenums_simple ('lsmsvgenumtypes', sources: svg_headers)
252
+
253
+ library_sources = dom_sources + mathml_sources + svg_sources
254
+ library_headers = dom_headers + mathml_headers + svg_headers
255
+ library_enums = dom_enums + mathml_enums + svg_enums
256
+
257
+ library_include_dir = join_paths (get_option ('includedir'), 'lasem-@0@'.format (lasem_api_version))
258
+
259
+ library_inc = include_directories (['.'])
260
+
261
+ install_headers (library_headers, install_dir: library_include_dir)
262
+
263
+ library_c_args = [
264
+ '-DG_LOG_DOMAIN="Lasem"'
265
+ ]
266
+
267
+ lasem_library = library ('lasem-@0@'.format (lasem_api_version),
268
+ itex2mml_files,
269
+ library_sources, library_headers,
270
+ library_enums,
271
+ include_directories: [library_inc, itex2mml_inc],
272
+ version: lasem_version,
273
+ soversion: '0',
274
+ dependencies: lasem_dependencies,
275
+ c_args: library_c_args,
276
+ install: true)
277
+
278
+ lasem_library_dependencies = declare_dependency (dependencies: lasem_dependencies,
279
+ link_with: lasem_library)
280
+
281
+ pkg.generate (libraries: [lasem_library, libm],
282
+ filebase: 'lasem-@0@'.format (lasem_api_version),
283
+ version: lasem_version,
284
+ subdirs: 'lasem-@0@'.format (lasem_api_version),
285
+ name: 'Lasem',
286
+ description: 'Mathml and SVG rendering library',
287
+ requires: [glib_dep, gobject_dep, gio_dep, cairo_dep, gdk_dep])
288
+
289
+ render_c_args = [
290
+ '-DPACKAGE_LOCALE_DIR="@0@"'.format (join_paths (get_option ('prefix'), 'locale')),
291
+ ]
292
+
293
+ lasem_render = executable ('lasem-render-@0@'.format (lasem_api_version),
294
+ 'lasemrender.c',
295
+ link_with: lasem_library,
296
+ dependencies: lasem_dependencies,
297
+ c_args: render_c_args,
298
+ install: true)
299
+
300
+
301
+ introspection_option = get_option('introspection')
302
+ introspection_enabled = false
303
+ if introspection_option.auto() or introspection_option.enabled()
304
+ gir_scanner = find_program('g-ir-scanner', required: introspection_option)
305
+ gi_dep = dependency('gobject-introspection-1.0', required: introspection_option)
306
+
307
+ if gir_scanner.found() and gi_dep.found()
308
+ lasem_gir = gnome.generate_gir (
309
+ lasem_library,
310
+ sources : [dom_sources, dom_headers, dom_enums],
311
+ nsversion : lasem_api_version,
312
+ namespace : 'Lasem',
313
+ symbol_prefix : 'lsm_',
314
+ identifier_prefix : 'Lsm',
315
+ export_packages : 'lasem',
316
+ includes : ['GObject-2.0', 'Gio-2.0', 'cairo-1.0', 'GdkPixbuf-2.0'],
317
+ install : true
318
+ )
319
+ introspection_enabled = true
320
+ endif
321
+ endif
@@ -0,0 +1,6 @@
1
+ [wrap-git]
2
+ directory=gi-docgen
3
+ url=https://gitlab.gnome.org/GNOME/gi-docgen.git
4
+ push-url=ssh://git@gitlab.gnome.org:GNOME/gi-docgen.git
5
+ revision=main
6
+ depth=1
@@ -0,0 +1,3 @@
1
+ $$
2
+ \begin{array}{rlc} 12345 & 12345 & 12345 \\ 1 & 2 & 3 \end{array}
3
+ $$
@@ -157,8 +157,6 @@ add_remove_element_test (void)
157
157
  g_assert (lsm_dom_node_get_owner_document (LSM_DOM_NODE (element)) == document);
158
158
  g_assert (lsm_dom_node_get_first_child (LSM_DOM_NODE (document)) == LSM_DOM_NODE (element));
159
159
 
160
- g_object_ref (element);
161
-
162
160
  lsm_dom_node_remove_child (LSM_DOM_NODE (document), LSM_DOM_NODE (element));
163
161
  g_assert (lsm_dom_node_get_first_child (LSM_DOM_NODE (document)) == NULL);
164
162
  g_assert (lsm_dom_node_get_parent_node (LSM_DOM_NODE (element)) == NULL);
@@ -260,10 +258,6 @@ main (int argc, char *argv[])
260
258
  g_test_add_func ("/dom/node-list", node_list_test);
261
259
  g_test_add_func ("/dom/insert-before", insert_before_test);
262
260
 
263
- #if !GLIB_CHECK_VERSION(2,36,0)
264
- g_type_init ();
265
- #endif
266
-
267
261
  result = g_test_run();
268
262
 
269
263
  lsm_shutdown ();
@@ -21,11 +21,13 @@ surface (void)
21
21
 
22
22
  lsm_svg_filter_surface_unref (surface);
23
23
 
24
- g_test_expect_message ("Lasem", G_LOG_LEVEL_CRITICAL, "*assertion*ref_count*failed");
24
+ if (g_test_undefined()) {
25
+ g_test_expect_message ("Lasem", G_LOG_LEVEL_CRITICAL, "*assertion*ref_count*failed");
25
26
 
26
- lsm_svg_filter_surface_unref (surface);
27
+ lsm_svg_filter_surface_unref (surface);
27
28
 
28
- g_test_assert_expected_messages ();
29
+ g_test_assert_expected_messages ();
30
+ }
29
31
  }
30
32
 
31
33
  static void
@@ -118,6 +120,9 @@ processing_null (void)
118
120
  {
119
121
  unsigned int i;
120
122
 
123
+ if (!g_test_undefined())
124
+ return;
125
+
121
126
  for (i = 0; i < 20; i++)
122
127
  g_test_expect_message ("Lasem", G_LOG_LEVEL_CRITICAL, "*assertion*NULL*failed");
123
128
 
@@ -140,10 +145,6 @@ main (int argc, char *argv[])
140
145
  g_test_add_func ("/filter/processing_mismatch", processing_mismatch);
141
146
  g_test_add_func ("/filter/processing_null", processing_null);
142
147
 
143
- #if !GLIB_CHECK_VERSION(2,36,0)
144
- g_type_init ();
145
- #endif
146
-
147
148
  result = g_test_run ();
148
149
 
149
150
  lsm_shutdown ();
@@ -0,0 +1,185 @@
1
+ # vfs
2
+
3
+ {
4
+ g_daemon_vfs_init
5
+ Memcheck:Leak
6
+ fun:calloc
7
+ ...
8
+ fun:g_daemon_vfs_init
9
+ }
10
+
11
+ # fontconfig
12
+
13
+ {
14
+ FcDefaultSubstitute
15
+ Memcheck:Leak
16
+ fun:realloc
17
+ ...
18
+ fun:FcDefaultSubstitute
19
+ }
20
+
21
+ {
22
+ FcFontSetMatch
23
+ Memcheck:Leak
24
+ fun:realloc
25
+ ...
26
+ fun:FcFontSetMatch
27
+ }
28
+
29
+ {
30
+ FcFontSetMatch calloc
31
+ Memcheck:Leak
32
+ fun:calloc
33
+ ...
34
+ fun:FcFontSetMatch
35
+ }
36
+
37
+ {
38
+ FcFontSetSort
39
+ Memcheck:Leak
40
+ fun:realloc
41
+ ...
42
+ fun:FcFontSetSort
43
+ }
44
+
45
+ {
46
+ FcFontSetSort malloc
47
+ Memcheck:Leak
48
+ fun:malloc
49
+ ...
50
+ fun:FcFontSetSort
51
+ }
52
+
53
+ {
54
+ FcFontRenderPrepare
55
+ Memcheck:Leak
56
+ match-leak-kinds: definite
57
+ fun:*alloc
58
+ obj:/usr/lib*/libfontconfig.so*
59
+ obj:/usr/lib*/libfontconfig.so*
60
+ fun:FcFontRenderPrepare
61
+ }
62
+
63
+ {
64
+ FcPatternObjectInsertElt
65
+ Memcheck:Leak
66
+ match-leak-kinds: definite
67
+ fun:malloc
68
+ fun:FcPatternObjectInsertElt
69
+ }
70
+
71
+ # pango
72
+
73
+ {
74
+ pango_cairo_fc_font_map_fontset_key_substitute
75
+ Memcheck:Leak
76
+ match-leak-kinds: definite
77
+ fun:realloc
78
+ obj:/usr/lib*/libfontconfig.so*
79
+ obj:/usr/lib*/libfontconfig.so*
80
+ obj:/usr/lib*/libcairo.so*
81
+ fun:pango_cairo_fc_font_map_fontset_key_substitute
82
+ }
83
+
84
+ {
85
+ pango_language_from_string
86
+ Memcheck:Leak
87
+ fun:calloc
88
+ ...
89
+ fun:pango_language_from_string
90
+ }
91
+
92
+ {
93
+ pango_fc_font_map_load_fontset
94
+ Memcheck:Leak
95
+ fun:*alloc
96
+ ...
97
+ fun:pango_fc_font_map_load_fontset
98
+ }
99
+
100
+ # glib
101
+
102
+ {
103
+ glib initialisation
104
+ Memcheck:Leak
105
+ fun:calloc
106
+ fun:g_malloc0
107
+ ...
108
+ fun:_dl_init
109
+ }
110
+
111
+ {
112
+ g_type_register_fundamental_realloc
113
+ Memcheck:Leak
114
+ fun:malloc
115
+ fun:realloc
116
+ fun:g_realloc
117
+ ...
118
+ fun:g_type_register_fundamental
119
+ ...
120
+ fun:_dl_init
121
+ }
122
+
123
+ {
124
+ g-type-register-static
125
+ Memcheck:Leak
126
+ match-leak-kinds:possible,reachable
127
+ fun:malloc
128
+ ...
129
+ fun:g_type_register_static
130
+ }
131
+
132
+ {
133
+ g-type-register-static-realloc
134
+ Memcheck:Leak
135
+ match-leak-kinds:possible,reachable
136
+ fun:realloc
137
+ ...
138
+ fun:g_type_register_static
139
+ }
140
+
141
+ {
142
+ g-type-register-static-calloc
143
+ Memcheck:Leak
144
+ match-leak-kinds:reachable
145
+ fun:calloc
146
+ ...
147
+ fun:g_type_register_static
148
+ }
149
+
150
+ {
151
+ g_type_add_interface_static_app
152
+ Memcheck:Leak
153
+ fun:malloc
154
+ fun:g_malloc
155
+ fun:g_slice_alloc
156
+ ...
157
+ fun:g_type_add_interface_static
158
+ }
159
+
160
+ {
161
+ g_type_create_instance
162
+ Memcheck:Leak
163
+ fun:g_type_create_instance
164
+ ...
165
+ fun:g_type_class_ref
166
+ }
167
+
168
+ {
169
+ g_type_class_ref
170
+ Memcheck:Leak
171
+ fun:calloc
172
+ fun:g_malloc0
173
+ fun:g_type_class_ref
174
+ fun:g_type_class_ref
175
+ }
176
+
177
+ {
178
+ g_type_class_ref_Wm
179
+ Memcheck:Leak
180
+ fun:calloc
181
+ fun:g_malloc0
182
+ fun:type_class_init_Wm
183
+ fun:g_type_class_ref
184
+ fun:g_type_class_ref
185
+ }