mathematical 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (239) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +12 -0
  3. data/ext/mathematical/extconf.rb +12 -2
  4. data/ext/mathematical/{itex2MML.h → itexToMML/itex2MML.h} +0 -0
  5. data/ext/mathematical/{lex.yy.c → itexToMML/lex.yy.c} +0 -0
  6. data/ext/mathematical/{y.tab.c → itexToMML/y.tab.c} +0 -0
  7. data/ext/mathematical/{y.tab.h → itexToMML/y.tab.h} +0 -0
  8. data/ext/mathematical/lasem/itex2mml/itex2MML.h +63 -0
  9. data/ext/mathematical/{lasemrender.c → lasem/src/lasemrender.c} +27 -21
  10. data/ext/mathematical/{lsm.c → lasem/src/lsm.c} +0 -0
  11. data/ext/mathematical/{lsm.h → lasem/src/lsm.h} +0 -0
  12. data/ext/mathematical/{lsmattributes.c → lasem/src/lsmattributes.c} +0 -0
  13. data/ext/mathematical/{lsmattributes.h → lasem/src/lsmattributes.h} +0 -0
  14. data/ext/mathematical/{lsmcairo.c → lasem/src/lsmcairo.c} +0 -0
  15. data/ext/mathematical/{lsmcairo.h → lasem/src/lsmcairo.h} +0 -0
  16. data/ext/mathematical/{lsmdebug.c → lasem/src/lsmdebug.c} +2 -0
  17. data/ext/mathematical/{lsmdebug.h → lasem/src/lsmdebug.h} +3 -3
  18. data/ext/mathematical/{lsmdom.h → lasem/src/lsmdom.h} +0 -0
  19. data/ext/mathematical/{lsmdomcharacterdata.c → lasem/src/lsmdomcharacterdata.c} +0 -0
  20. data/ext/mathematical/{lsmdomcharacterdata.h → lasem/src/lsmdomcharacterdata.h} +0 -0
  21. data/ext/mathematical/{lsmdomdocument.c → lasem/src/lsmdomdocument.c} +0 -0
  22. data/ext/mathematical/{lsmdomdocument.h → lasem/src/lsmdomdocument.h} +0 -0
  23. data/ext/mathematical/{lsmdomdocumentfragment.c → lasem/src/lsmdomdocumentfragment.c} +0 -0
  24. data/ext/mathematical/{lsmdomdocumentfragment.h → lasem/src/lsmdomdocumentfragment.h} +0 -0
  25. data/ext/mathematical/{lsmdomelement.c → lasem/src/lsmdomelement.c} +0 -0
  26. data/ext/mathematical/{lsmdomelement.h → lasem/src/lsmdomelement.h} +0 -0
  27. data/ext/mathematical/{lsmdomentities.c → lasem/src/lsmdomentities.c} +0 -0
  28. data/ext/mathematical/{lsmdomentities.h → lasem/src/lsmdomentities.h} +0 -0
  29. data/ext/mathematical/{lsmdomimplementation.c → lasem/src/lsmdomimplementation.c} +0 -0
  30. data/ext/mathematical/{lsmdomimplementation.h → lasem/src/lsmdomimplementation.h} +0 -0
  31. data/ext/mathematical/{lsmdomnamednodemap.c → lasem/src/lsmdomnamednodemap.c} +0 -0
  32. data/ext/mathematical/{lsmdomnamednodemap.h → lasem/src/lsmdomnamednodemap.h} +0 -0
  33. data/ext/mathematical/{lsmdomnode.c → lasem/src/lsmdomnode.c} +0 -0
  34. data/ext/mathematical/{lsmdomnode.h → lasem/src/lsmdomnode.h} +0 -0
  35. data/ext/mathematical/{lsmdomnodelist.c → lasem/src/lsmdomnodelist.c} +0 -0
  36. data/ext/mathematical/{lsmdomnodelist.h → lasem/src/lsmdomnodelist.h} +0 -0
  37. data/ext/mathematical/{lsmdomparser.c → lasem/src/lsmdomparser.c} +78 -16
  38. data/ext/mathematical/{lsmdomparser.h → lasem/src/lsmdomparser.h} +7 -7
  39. data/ext/mathematical/{lsmdomtext.c → lasem/src/lsmdomtext.c} +0 -0
  40. data/ext/mathematical/{lsmdomtext.h → lasem/src/lsmdomtext.h} +0 -0
  41. data/ext/mathematical/{lsmdomtypes.h → lasem/src/lsmdomtypes.h} +0 -0
  42. data/ext/mathematical/{lsmdomview.c → lasem/src/lsmdomview.c} +1 -0
  43. data/ext/mathematical/{lsmdomview.h → lasem/src/lsmdomview.h} +0 -0
  44. data/ext/mathematical/{lsmitex.c → lasem/src/lsmitex.c} +4 -4
  45. data/ext/mathematical/{lsmitex.h → lasem/src/lsmitex.h} +1 -1
  46. data/ext/mathematical/{lsmmathml.h → lasem/src/lsmmathml.h} +0 -0
  47. data/ext/mathematical/{lsmmathmlactionelement.c → lasem/src/lsmmathmlactionelement.c} +0 -0
  48. data/ext/mathematical/{lsmmathmlactionelement.h → lasem/src/lsmmathmlactionelement.h} +0 -0
  49. data/ext/mathematical/{lsmmathmlaligngroupelement.c → lasem/src/lsmmathmlaligngroupelement.c} +0 -0
  50. data/ext/mathematical/{lsmmathmlaligngroupelement.h → lasem/src/lsmmathmlaligngroupelement.h} +0 -0
  51. data/ext/mathematical/{lsmmathmlalignmarkelement.c → lasem/src/lsmmathmlalignmarkelement.c} +0 -0
  52. data/ext/mathematical/{lsmmathmlalignmarkelement.h → lasem/src/lsmmathmlalignmarkelement.h} +0 -0
  53. data/ext/mathematical/{lsmmathmlattributes.c → lasem/src/lsmmathmlattributes.c} +0 -0
  54. data/ext/mathematical/{lsmmathmlattributes.h → lasem/src/lsmmathmlattributes.h} +0 -0
  55. data/ext/mathematical/{lsmmathmldocument.c → lasem/src/lsmmathmldocument.c} +2 -2
  56. data/ext/mathematical/{lsmmathmldocument.h → lasem/src/lsmmathmldocument.h} +1 -1
  57. data/ext/mathematical/{lsmmathmlelement.c → lasem/src/lsmmathmlelement.c} +0 -0
  58. data/ext/mathematical/{lsmmathmlelement.h → lasem/src/lsmmathmlelement.h} +0 -0
  59. data/ext/mathematical/{lsmmathmlenums.c → lasem/src/lsmmathmlenums.c} +0 -0
  60. data/ext/mathematical/{lsmmathmlenums.h → lasem/src/lsmmathmlenums.h} +0 -0
  61. data/ext/mathematical/{lsmmathmlerrorelement.c → lasem/src/lsmmathmlerrorelement.c} +0 -0
  62. data/ext/mathematical/{lsmmathmlerrorelement.h → lasem/src/lsmmathmlerrorelement.h} +0 -0
  63. data/ext/mathematical/{lsmmathmlfencedelement.c → lasem/src/lsmmathmlfencedelement.c} +0 -0
  64. data/ext/mathematical/{lsmmathmlfencedelement.h → lasem/src/lsmmathmlfencedelement.h} +0 -0
  65. data/ext/mathematical/{lsmmathmlfractionelement.c → lasem/src/lsmmathmlfractionelement.c} +0 -0
  66. data/ext/mathematical/{lsmmathmlfractionelement.h → lasem/src/lsmmathmlfractionelement.h} +0 -0
  67. data/ext/mathematical/{lsmmathmlglyphtableams.c → lasem/src/lsmmathmlglyphtableams.c} +0 -0
  68. data/ext/mathematical/{lsmmathmlglyphtableams.h → lasem/src/lsmmathmlglyphtableams.h} +0 -0
  69. data/ext/mathematical/{lsmmathmlitexelement.c → lasem/src/lsmmathmlitexelement.c} +0 -0
  70. data/ext/mathematical/{lsmmathmlitexelement.h → lasem/src/lsmmathmlitexelement.h} +0 -0
  71. data/ext/mathematical/{lsmmathmllayoututils.c → lasem/src/lsmmathmllayoututils.c} +0 -0
  72. data/ext/mathematical/{lsmmathmllayoututils.h → lasem/src/lsmmathmllayoututils.h} +0 -0
  73. data/ext/mathematical/{lsmmathmlmathelement.c → lasem/src/lsmmathmlmathelement.c} +0 -0
  74. data/ext/mathematical/{lsmmathmlmathelement.h → lasem/src/lsmmathmlmathelement.h} +0 -0
  75. data/ext/mathematical/{lsmmathmloperatordictionary.c → lasem/src/lsmmathmloperatordictionary.c} +0 -0
  76. data/ext/mathematical/{lsmmathmloperatordictionary.h → lasem/src/lsmmathmloperatordictionary.h} +0 -0
  77. data/ext/mathematical/{lsmmathmloperatorelement.c → lasem/src/lsmmathmloperatorelement.c} +0 -0
  78. data/ext/mathematical/{lsmmathmloperatorelement.h → lasem/src/lsmmathmloperatorelement.h} +0 -0
  79. data/ext/mathematical/{lsmmathmlpaddedelement.c → lasem/src/lsmmathmlpaddedelement.c} +0 -0
  80. data/ext/mathematical/{lsmmathmlpaddedelement.h → lasem/src/lsmmathmlpaddedelement.h} +0 -0
  81. data/ext/mathematical/{lsmmathmlphantomelement.c → lasem/src/lsmmathmlphantomelement.c} +0 -0
  82. data/ext/mathematical/{lsmmathmlphantomelement.h → lasem/src/lsmmathmlphantomelement.h} +0 -0
  83. data/ext/mathematical/{lsmmathmlpresentationcontainer.c → lasem/src/lsmmathmlpresentationcontainer.c} +0 -0
  84. data/ext/mathematical/{lsmmathmlpresentationcontainer.h → lasem/src/lsmmathmlpresentationcontainer.h} +0 -0
  85. data/ext/mathematical/{lsmmathmlpresentationtoken.c → lasem/src/lsmmathmlpresentationtoken.c} +0 -0
  86. data/ext/mathematical/{lsmmathmlpresentationtoken.h → lasem/src/lsmmathmlpresentationtoken.h} +0 -0
  87. data/ext/mathematical/{lsmmathmlradicalelement.c → lasem/src/lsmmathmlradicalelement.c} +0 -0
  88. data/ext/mathematical/{lsmmathmlradicalelement.h → lasem/src/lsmmathmlradicalelement.h} +0 -0
  89. data/ext/mathematical/{lsmmathmlrowelement.c → lasem/src/lsmmathmlrowelement.c} +0 -0
  90. data/ext/mathematical/{lsmmathmlrowelement.h → lasem/src/lsmmathmlrowelement.h} +0 -0
  91. data/ext/mathematical/{lsmmathmlscriptelement.c → lasem/src/lsmmathmlscriptelement.c} +0 -0
  92. data/ext/mathematical/{lsmmathmlscriptelement.h → lasem/src/lsmmathmlscriptelement.h} +0 -0
  93. data/ext/mathematical/{lsmmathmlsemanticselement.c → lasem/src/lsmmathmlsemanticselement.c} +0 -0
  94. data/ext/mathematical/{lsmmathmlsemanticselement.h → lasem/src/lsmmathmlsemanticselement.h} +0 -0
  95. data/ext/mathematical/{lsmmathmlspaceelement.c → lasem/src/lsmmathmlspaceelement.c} +0 -0
  96. data/ext/mathematical/{lsmmathmlspaceelement.h → lasem/src/lsmmathmlspaceelement.h} +0 -0
  97. data/ext/mathematical/{lsmmathmlstringelement.c → lasem/src/lsmmathmlstringelement.c} +0 -0
  98. data/ext/mathematical/{lsmmathmlstringelement.h → lasem/src/lsmmathmlstringelement.h} +0 -0
  99. data/ext/mathematical/{lsmmathmlstyle.c → lasem/src/lsmmathmlstyle.c} +0 -0
  100. data/ext/mathematical/{lsmmathmlstyle.h → lasem/src/lsmmathmlstyle.h} +0 -0
  101. data/ext/mathematical/{lsmmathmlstyleelement.c → lasem/src/lsmmathmlstyleelement.c} +0 -0
  102. data/ext/mathematical/{lsmmathmlstyleelement.h → lasem/src/lsmmathmlstyleelement.h} +0 -0
  103. data/ext/mathematical/{lsmmathmltablecellelement.c → lasem/src/lsmmathmltablecellelement.c} +0 -0
  104. data/ext/mathematical/{lsmmathmltablecellelement.h → lasem/src/lsmmathmltablecellelement.h} +0 -0
  105. data/ext/mathematical/{lsmmathmltableelement.c → lasem/src/lsmmathmltableelement.c} +0 -0
  106. data/ext/mathematical/{lsmmathmltableelement.h → lasem/src/lsmmathmltableelement.h} +0 -0
  107. data/ext/mathematical/{lsmmathmltablerowelement.c → lasem/src/lsmmathmltablerowelement.c} +0 -0
  108. data/ext/mathematical/{lsmmathmltablerowelement.h → lasem/src/lsmmathmltablerowelement.h} +0 -0
  109. data/ext/mathematical/{lsmmathmltraits.c → lasem/src/lsmmathmltraits.c} +0 -0
  110. data/ext/mathematical/{lsmmathmltraits.h → lasem/src/lsmmathmltraits.h} +0 -0
  111. data/ext/mathematical/{lsmmathmltypes.h → lasem/src/lsmmathmltypes.h} +0 -0
  112. data/ext/mathematical/{lsmmathmlunderoverelement.c → lasem/src/lsmmathmlunderoverelement.c} +0 -0
  113. data/ext/mathematical/{lsmmathmlunderoverelement.h → lasem/src/lsmmathmlunderoverelement.h} +0 -0
  114. data/ext/mathematical/{lsmmathmlutils.c → lasem/src/lsmmathmlutils.c} +0 -0
  115. data/ext/mathematical/{lsmmathmlutils.h → lasem/src/lsmmathmlutils.h} +0 -0
  116. data/ext/mathematical/{lsmmathmlview.c → lasem/src/lsmmathmlview.c} +0 -0
  117. data/ext/mathematical/{lsmmathmlview.h → lasem/src/lsmmathmlview.h} +0 -0
  118. data/ext/mathematical/{lsmproperties.c → lasem/src/lsmproperties.c} +0 -0
  119. data/ext/mathematical/{lsmproperties.h → lasem/src/lsmproperties.h} +0 -0
  120. data/ext/mathematical/{lsmstr.c → lasem/src/lsmstr.c} +0 -0
  121. data/ext/mathematical/{lsmstr.h → lasem/src/lsmstr.h} +0 -0
  122. data/ext/mathematical/{lsmsvg.h → lasem/src/lsmsvg.h} +0 -0
  123. data/ext/mathematical/{lsmsvgaelement.c → lasem/src/lsmsvgaelement.c} +0 -0
  124. data/ext/mathematical/{lsmsvgaelement.h → lasem/src/lsmsvgaelement.h} +0 -0
  125. data/ext/mathematical/{lsmsvgattributes.h → lasem/src/lsmsvgattributes.h} +0 -0
  126. data/ext/mathematical/{lsmsvgcircleelement.c → lasem/src/lsmsvgcircleelement.c} +0 -0
  127. data/ext/mathematical/{lsmsvgcircleelement.h → lasem/src/lsmsvgcircleelement.h} +0 -0
  128. data/ext/mathematical/{lsmsvgclippathelement.c → lasem/src/lsmsvgclippathelement.c} +0 -0
  129. data/ext/mathematical/{lsmsvgclippathelement.h → lasem/src/lsmsvgclippathelement.h} +0 -0
  130. data/ext/mathematical/{lsmsvgcolors.c → lasem/src/lsmsvgcolors.c} +0 -0
  131. data/ext/mathematical/{lsmsvgcolors.h → lasem/src/lsmsvgcolors.h} +0 -0
  132. data/ext/mathematical/{lsmsvgdefselement.c → lasem/src/lsmsvgdefselement.c} +0 -0
  133. data/ext/mathematical/{lsmsvgdefselement.h → lasem/src/lsmsvgdefselement.h} +0 -0
  134. data/ext/mathematical/{lsmsvgdocument.c → lasem/src/lsmsvgdocument.c} +0 -0
  135. data/ext/mathematical/{lsmsvgdocument.h → lasem/src/lsmsvgdocument.h} +0 -0
  136. data/ext/mathematical/{lsmsvgelement.c → lasem/src/lsmsvgelement.c} +0 -0
  137. data/ext/mathematical/{lsmsvgelement.h → lasem/src/lsmsvgelement.h} +0 -0
  138. data/ext/mathematical/{lsmsvgellipseelement.c → lasem/src/lsmsvgellipseelement.c} +0 -0
  139. data/ext/mathematical/{lsmsvgellipseelement.h → lasem/src/lsmsvgellipseelement.h} +0 -0
  140. data/ext/mathematical/{lsmsvgenums.c → lasem/src/lsmsvgenums.c} +0 -0
  141. data/ext/mathematical/{lsmsvgenums.h → lasem/src/lsmsvgenums.h} +0 -0
  142. data/ext/mathematical/{lsmsvgfilterblend.c → lasem/src/lsmsvgfilterblend.c} +0 -0
  143. data/ext/mathematical/{lsmsvgfilterblend.h → lasem/src/lsmsvgfilterblend.h} +0 -0
  144. data/ext/mathematical/{lsmsvgfiltercomposite.c → lasem/src/lsmsvgfiltercomposite.c} +0 -0
  145. data/ext/mathematical/{lsmsvgfiltercomposite.h → lasem/src/lsmsvgfiltercomposite.h} +0 -0
  146. data/ext/mathematical/{lsmsvgfilterelement.c → lasem/src/lsmsvgfilterelement.c} +0 -0
  147. data/ext/mathematical/{lsmsvgfilterelement.h → lasem/src/lsmsvgfilterelement.h} +0 -0
  148. data/ext/mathematical/{lsmsvgfilterflood.c → lasem/src/lsmsvgfilterflood.c} +0 -0
  149. data/ext/mathematical/{lsmsvgfilterflood.h → lasem/src/lsmsvgfilterflood.h} +0 -0
  150. data/ext/mathematical/{lsmsvgfiltergaussianblur.c → lasem/src/lsmsvgfiltergaussianblur.c} +0 -0
  151. data/ext/mathematical/{lsmsvgfiltergaussianblur.h → lasem/src/lsmsvgfiltergaussianblur.h} +0 -0
  152. data/ext/mathematical/{lsmsvgfiltermerge.c → lasem/src/lsmsvgfiltermerge.c} +0 -0
  153. data/ext/mathematical/{lsmsvgfiltermerge.h → lasem/src/lsmsvgfiltermerge.h} +0 -0
  154. data/ext/mathematical/{lsmsvgfiltermergenode.c → lasem/src/lsmsvgfiltermergenode.c} +0 -0
  155. data/ext/mathematical/{lsmsvgfiltermergenode.h → lasem/src/lsmsvgfiltermergenode.h} +0 -0
  156. data/ext/mathematical/{lsmsvgfilteroffset.c → lasem/src/lsmsvgfilteroffset.c} +0 -0
  157. data/ext/mathematical/{lsmsvgfilteroffset.h → lasem/src/lsmsvgfilteroffset.h} +0 -0
  158. data/ext/mathematical/{lsmsvgfilterprimitive.c → lasem/src/lsmsvgfilterprimitive.c} +0 -0
  159. data/ext/mathematical/{lsmsvgfilterprimitive.h → lasem/src/lsmsvgfilterprimitive.h} +0 -0
  160. data/ext/mathematical/{lsmsvgfilterspecularlighting.c → lasem/src/lsmsvgfilterspecularlighting.c} +0 -0
  161. data/ext/mathematical/{lsmsvgfilterspecularlighting.h → lasem/src/lsmsvgfilterspecularlighting.h} +0 -0
  162. data/ext/mathematical/{lsmsvgfiltersurface.c → lasem/src/lsmsvgfiltersurface.c} +0 -0
  163. data/ext/mathematical/{lsmsvgfiltersurface.h → lasem/src/lsmsvgfiltersurface.h} +0 -0
  164. data/ext/mathematical/{lsmsvgfiltertile.c → lasem/src/lsmsvgfiltertile.c} +0 -0
  165. data/ext/mathematical/{lsmsvgfiltertile.h → lasem/src/lsmsvgfiltertile.h} +0 -0
  166. data/ext/mathematical/{lsmsvggelement.c → lasem/src/lsmsvggelement.c} +0 -0
  167. data/ext/mathematical/{lsmsvggelement.h → lasem/src/lsmsvggelement.h} +0 -0
  168. data/ext/mathematical/{lsmsvggradientelement.c → lasem/src/lsmsvggradientelement.c} +0 -0
  169. data/ext/mathematical/{lsmsvggradientelement.h → lasem/src/lsmsvggradientelement.h} +0 -0
  170. data/ext/mathematical/{lsmsvgimageelement.c → lasem/src/lsmsvgimageelement.c} +0 -0
  171. data/ext/mathematical/{lsmsvgimageelement.h → lasem/src/lsmsvgimageelement.h} +0 -0
  172. data/ext/mathematical/{lsmsvglength.c → lasem/src/lsmsvglength.c} +0 -0
  173. data/ext/mathematical/{lsmsvglength.h → lasem/src/lsmsvglength.h} +0 -0
  174. data/ext/mathematical/{lsmsvglineargradientelement.c → lasem/src/lsmsvglineargradientelement.c} +0 -0
  175. data/ext/mathematical/{lsmsvglineargradientelement.h → lasem/src/lsmsvglineargradientelement.h} +0 -0
  176. data/ext/mathematical/{lsmsvglineelement.c → lasem/src/lsmsvglineelement.c} +0 -0
  177. data/ext/mathematical/{lsmsvglineelement.h → lasem/src/lsmsvglineelement.h} +0 -0
  178. data/ext/mathematical/{lsmsvgmarkerelement.c → lasem/src/lsmsvgmarkerelement.c} +0 -0
  179. data/ext/mathematical/{lsmsvgmarkerelement.h → lasem/src/lsmsvgmarkerelement.h} +0 -0
  180. data/ext/mathematical/{lsmsvgmaskelement.c → lasem/src/lsmsvgmaskelement.c} +0 -0
  181. data/ext/mathematical/{lsmsvgmaskelement.h → lasem/src/lsmsvgmaskelement.h} +0 -0
  182. data/ext/mathematical/{lsmsvgmatrix.c → lasem/src/lsmsvgmatrix.c} +0 -0
  183. data/ext/mathematical/{lsmsvgmatrix.h → lasem/src/lsmsvgmatrix.h} +0 -0
  184. data/ext/mathematical/{lsmsvgpathelement.c → lasem/src/lsmsvgpathelement.c} +0 -0
  185. data/ext/mathematical/{lsmsvgpathelement.h → lasem/src/lsmsvgpathelement.h} +0 -0
  186. data/ext/mathematical/{lsmsvgpatternelement.c → lasem/src/lsmsvgpatternelement.c} +0 -0
  187. data/ext/mathematical/{lsmsvgpatternelement.h → lasem/src/lsmsvgpatternelement.h} +0 -0
  188. data/ext/mathematical/{lsmsvgpolygonelement.c → lasem/src/lsmsvgpolygonelement.c} +0 -0
  189. data/ext/mathematical/{lsmsvgpolygonelement.h → lasem/src/lsmsvgpolygonelement.h} +0 -0
  190. data/ext/mathematical/{lsmsvgpolylineelement.c → lasem/src/lsmsvgpolylineelement.c} +0 -0
  191. data/ext/mathematical/{lsmsvgpolylineelement.h → lasem/src/lsmsvgpolylineelement.h} +0 -0
  192. data/ext/mathematical/{lsmsvgradialgradientelement.c → lasem/src/lsmsvgradialgradientelement.c} +0 -0
  193. data/ext/mathematical/{lsmsvgradialgradientelement.h → lasem/src/lsmsvgradialgradientelement.h} +0 -0
  194. data/ext/mathematical/{lsmsvgrectelement.c → lasem/src/lsmsvgrectelement.c} +0 -0
  195. data/ext/mathematical/{lsmsvgrectelement.h → lasem/src/lsmsvgrectelement.h} +0 -0
  196. data/ext/mathematical/{lsmsvgstopelement.c → lasem/src/lsmsvgstopelement.c} +0 -0
  197. data/ext/mathematical/{lsmsvgstopelement.h → lasem/src/lsmsvgstopelement.h} +0 -0
  198. data/ext/mathematical/{lsmsvgstyle.c → lasem/src/lsmsvgstyle.c} +0 -14
  199. data/ext/mathematical/{lsmsvgstyle.h → lasem/src/lsmsvgstyle.h} +0 -0
  200. data/ext/mathematical/{lsmsvgsvgelement.c → lasem/src/lsmsvgsvgelement.c} +0 -0
  201. data/ext/mathematical/{lsmsvgsvgelement.h → lasem/src/lsmsvgsvgelement.h} +0 -0
  202. data/ext/mathematical/{lsmsvgswitchelement.c → lasem/src/lsmsvgswitchelement.c} +0 -0
  203. data/ext/mathematical/{lsmsvgswitchelement.h → lasem/src/lsmsvgswitchelement.h} +0 -0
  204. data/ext/mathematical/{lsmsvgsymbolelement.c → lasem/src/lsmsvgsymbolelement.c} +0 -0
  205. data/ext/mathematical/{lsmsvgsymbolelement.h → lasem/src/lsmsvgsymbolelement.h} +0 -0
  206. data/ext/mathematical/{lsmsvgtextelement.c → lasem/src/lsmsvgtextelement.c} +0 -0
  207. data/ext/mathematical/{lsmsvgtextelement.h → lasem/src/lsmsvgtextelement.h} +0 -0
  208. data/ext/mathematical/{lsmsvgtraits.c → lasem/src/lsmsvgtraits.c} +0 -0
  209. data/ext/mathematical/{lsmsvgtraits.h → lasem/src/lsmsvgtraits.h} +0 -0
  210. data/ext/mathematical/{lsmsvgtransformable.c → lasem/src/lsmsvgtransformable.c} +0 -0
  211. data/ext/mathematical/{lsmsvgtransformable.h → lasem/src/lsmsvgtransformable.h} +0 -0
  212. data/ext/mathematical/{lsmsvgtspanelement.c → lasem/src/lsmsvgtspanelement.c} +0 -0
  213. data/ext/mathematical/{lsmsvgtspanelement.h → lasem/src/lsmsvgtspanelement.h} +0 -0
  214. data/ext/mathematical/{lsmsvgtypes.h → lasem/src/lsmsvgtypes.h} +0 -0
  215. data/ext/mathematical/{lsmsvguseelement.c → lasem/src/lsmsvguseelement.c} +0 -0
  216. data/ext/mathematical/{lsmsvguseelement.h → lasem/src/lsmsvguseelement.h} +0 -0
  217. data/ext/mathematical/{lsmsvgview.c → lasem/src/lsmsvgview.c} +2 -1
  218. data/ext/mathematical/{lsmsvgview.h → lasem/src/lsmsvgview.h} +0 -0
  219. data/ext/mathematical/{lsmtraits.c → lasem/src/lsmtraits.c} +0 -0
  220. data/ext/mathematical/{lsmtraits.h → lasem/src/lsmtraits.h} +0 -0
  221. data/ext/mathematical/{lsmtypes.h → lasem/src/lsmtypes.h} +0 -0
  222. data/ext/mathematical/{lsmutils.c → lasem/src/lsmutils.c} +0 -0
  223. data/ext/mathematical/{lsmutils.h → lasem/src/lsmutils.h} +0 -0
  224. data/ext/mathematical/lasem/tests/dom.c +272 -0
  225. data/ext/mathematical/lasem/tests/lsmtest.c +597 -0
  226. data/ext/mathematical/lasem/tests/str.c +48 -0
  227. data/ext/mathematical/lasem/tests/suite.c +125 -0
  228. data/ext/mathematical/lasem/tools/generate-entity-array.c +2136 -0
  229. data/ext/mathematical/mathematical.c +38 -34
  230. data/lib/mathematical/render.rb +5 -4
  231. data/lib/mathematical/version.rb +1 -1
  232. data/test/mathematical/maliciousness_test.rb +27 -1
  233. metadata +242 -242
  234. data/ext/mathematical/lsmdomenumtypes.c +0 -99
  235. data/ext/mathematical/lsmdomenumtypes.h +0 -26
  236. data/ext/mathematical/lsmmathmlenumtypes.c +0 -666
  237. data/ext/mathematical/lsmmathmlenumtypes.h +0 -90
  238. data/ext/mathematical/lsmsvgenumtypes.c +0 -1083
  239. data/ext/mathematical/lsmsvgenumtypes.h +0 -111
@@ -30,23 +30,23 @@
30
30
  G_BEGIN_DECLS
31
31
 
32
32
  void lsm_dom_document_append_from_memory (LsmDomDocument *document, LsmDomNode *node,
33
- const void *buffer, int size, GError **error);
34
- LsmDomDocument * lsm_dom_document_new_from_memory (const void *buffer, int size, GError **error);
33
+ const void *buffer, gsize size, GError **error);
34
+ LsmDomDocument * lsm_dom_document_new_from_memory (const void *buffer, gsize size, GError **error);
35
35
  LsmDomDocument * lsm_dom_document_new_from_path (const char *path, GError **error);
36
36
  LsmDomDocument * lsm_dom_document_new_from_url (const char *url, GError **error);
37
37
 
38
38
  void lsm_dom_document_save_to_stream (LsmDomDocument *document,
39
39
  GOutputStream *stream,
40
40
  GError **error);
41
- void lsm_dom_document_save_to_memory (LsmDomDocument *documennt,
41
+ void lsm_dom_document_save_to_memory (LsmDomDocument *document,
42
42
  void **buffer,
43
- int *size,
43
+ gsize *size,
44
44
  GError **error);
45
- void lsm_dom_document_save_to_path (LsmDomDocument *documennt,
45
+ void lsm_dom_document_save_to_path (LsmDomDocument *document,
46
46
  const char *path,
47
47
  GError **error);
48
- void lsm_dom_document_save_to_url (LsmDomDocument *documennt,
49
- const char *path,
48
+ void lsm_dom_document_save_to_url (LsmDomDocument *document,
49
+ const char *url,
50
50
  GError **error);
51
51
 
52
52
  G_END_DECLS
@@ -291,6 +291,7 @@ lsm_dom_view_render (LsmDomView *view, cairo_t *cairo, double x, double y)
291
291
  view_class->render (view);
292
292
 
293
293
  cairo_restore (view->cairo);
294
+ cairo_new_path (cairo);
294
295
 
295
296
  lsm_debug_render ("[LsmDomView::render] cairo status = %s",
296
297
  cairo_status_to_string (cairo_status (view->cairo)));
@@ -23,12 +23,12 @@
23
23
 
24
24
  #include <lsmitex.h>
25
25
  #include <string.h>
26
- #include "itex2MML.h"
26
+ #include <../itex2mml/itex2MML.h>
27
27
 
28
28
  /**
29
29
  * lsm_itex_to_mathml:
30
30
  * @itex: (allow-none): an itex string
31
- * @size: itex string length, -1 if unknown
31
+ * @size: itex string length, 0 if unknown
32
32
  *
33
33
  * Converts an itex string to a Mathml representation.
34
34
  *
@@ -36,14 +36,14 @@
36
36
  */
37
37
 
38
38
  char *
39
- lsm_itex_to_mathml (const char *itex, int size)
39
+ lsm_itex_to_mathml (const char *itex, gsize size)
40
40
  {
41
41
  char *mathml;
42
42
 
43
43
  if (itex == NULL)
44
44
  return NULL;
45
45
 
46
- if (size < 0)
46
+ if (size < 1)
47
47
  size = strlen (itex);
48
48
 
49
49
  mathml = itex2MML_parse (itex, size);
@@ -28,7 +28,7 @@
28
28
 
29
29
  G_BEGIN_DECLS
30
30
 
31
- char * lsm_itex_to_mathml (const char *itex, int size);
31
+ char * lsm_itex_to_mathml (const char *itex, gsize size);
32
32
  void lsm_itex_free_mathml_buffer (char *mathml);
33
33
 
34
34
  G_END_DECLS
@@ -51,7 +51,7 @@
51
51
 
52
52
  #include <lsmdomparser.h>
53
53
 
54
- #include "itex2MML.h"
54
+ #include <../itex2mml/itex2MML.h>
55
55
 
56
56
  /* LsmDomNode implementation */
57
57
 
@@ -213,7 +213,7 @@ typedef enum {
213
213
  } LsmMathmlDocumentError;
214
214
 
215
215
  LsmMathmlDocument *
216
- lsm_mathml_document_new_from_itex (const char *itex, int size, GError **error)
216
+ lsm_mathml_document_new_from_itex (const char *itex, gsize size, GError **error)
217
217
  {
218
218
  LsmDomDocument *document;
219
219
  char *mathml;
@@ -51,7 +51,7 @@ GType lsm_mathml_document_get_type (void);
51
51
  LsmDomDocument * lsm_mathml_document_new (void);
52
52
  LsmMathmlMathElement * lsm_mathml_document_get_root_element (const LsmMathmlDocument *document);
53
53
 
54
- LsmMathmlDocument * lsm_mathml_document_new_from_itex (const char *itex, int size, GError **error);
54
+ LsmMathmlDocument * lsm_mathml_document_new_from_itex (const char *itex, gsize size, GError **error);
55
55
  LsmMathmlDocument * lsm_mathml_document_new_from_itex_path (const char *url, GError **error);
56
56
  LsmMathmlDocument * lsm_mathml_document_new_from_itex_url (const char *url, GError **error);
57
57
 
File without changes
File without changes
File without changes