mathematical 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (263) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +52 -10
  3. data/Rakefile +42 -3
  4. data/lib/mathematical.rb +5 -4
  5. data/lib/mathematical/mathematical.bundle +0 -0
  6. data/lib/mathematical/render.rb +6 -5
  7. data/lib/mathematical/version.rb +1 -1
  8. data/mathematical.gemspec +5 -5
  9. metadata +14 -296
  10. data/.gitignore +0 -24
  11. data/.gitmodules +0 -0
  12. data/Gemfile +0 -4
  13. data/ext/mathematical/README.itex2MML.md +0 -11
  14. data/ext/mathematical/README.lasem.md +0 -11
  15. data/ext/mathematical/extconf.rb +0 -51
  16. data/ext/mathematical/itex2MML.h +0 -63
  17. data/ext/mathematical/lasemrender.c +0 -257
  18. data/ext/mathematical/lex.yy.c +0 -6548
  19. data/ext/mathematical/lsm.c +0 -30
  20. data/ext/mathematical/lsm.h +0 -36
  21. data/ext/mathematical/lsmattributes.c +0 -279
  22. data/ext/mathematical/lsmattributes.h +0 -75
  23. data/ext/mathematical/lsmcairo.c +0 -598
  24. data/ext/mathematical/lsmcairo.h +0 -51
  25. data/ext/mathematical/lsmdebug.c +0 -179
  26. data/ext/mathematical/lsmdebug.h +0 -76
  27. data/ext/mathematical/lsmdom.h +0 -43
  28. data/ext/mathematical/lsmdomcharacterdata.c +0 -114
  29. data/ext/mathematical/lsmdomcharacterdata.h +0 -59
  30. data/ext/mathematical/lsmdomdocument.c +0 -292
  31. data/ext/mathematical/lsmdomdocument.h +0 -82
  32. data/ext/mathematical/lsmdomdocumentfragment.c +0 -81
  33. data/ext/mathematical/lsmdomdocumentfragment.h +0 -55
  34. data/ext/mathematical/lsmdomelement.c +0 -148
  35. data/ext/mathematical/lsmdomelement.h +0 -62
  36. data/ext/mathematical/lsmdomentities.c +0 -2155
  37. data/ext/mathematical/lsmdomentities.h +0 -35
  38. data/ext/mathematical/lsmdomenumtypes.c +0 -99
  39. data/ext/mathematical/lsmdomenumtypes.c.template +0 -39
  40. data/ext/mathematical/lsmdomenumtypes.h +0 -26
  41. data/ext/mathematical/lsmdomenumtypes.h.template +0 -26
  42. data/ext/mathematical/lsmdomimplementation.c +0 -82
  43. data/ext/mathematical/lsmdomimplementation.h +0 -41
  44. data/ext/mathematical/lsmdomnamednodemap.c +0 -118
  45. data/ext/mathematical/lsmdomnamednodemap.h +0 -64
  46. data/ext/mathematical/lsmdomnode.c +0 -725
  47. data/ext/mathematical/lsmdomnode.h +0 -120
  48. data/ext/mathematical/lsmdomnodelist.c +0 -70
  49. data/ext/mathematical/lsmdomnodelist.h +0 -58
  50. data/ext/mathematical/lsmdomparser.c +0 -461
  51. data/ext/mathematical/lsmdomparser.h +0 -54
  52. data/ext/mathematical/lsmdomtext.c +0 -82
  53. data/ext/mathematical/lsmdomtext.h +0 -55
  54. data/ext/mathematical/lsmdomtypes.h +0 -44
  55. data/ext/mathematical/lsmdomview.c +0 -422
  56. data/ext/mathematical/lsmdomview.h +0 -94
  57. data/ext/mathematical/lsmmathml.h +0 -66
  58. data/ext/mathematical/lsmmathmlactionelement.c +0 -93
  59. data/ext/mathematical/lsmmathmlactionelement.h +0 -57
  60. data/ext/mathematical/lsmmathmlaligngroupelement.c +0 -102
  61. data/ext/mathematical/lsmmathmlaligngroupelement.h +0 -56
  62. data/ext/mathematical/lsmmathmlalignmarkelement.c +0 -102
  63. data/ext/mathematical/lsmmathmlalignmarkelement.h +0 -56
  64. data/ext/mathematical/lsmmathmlattributes.c +0 -197
  65. data/ext/mathematical/lsmmathmlattributes.h +0 -126
  66. data/ext/mathematical/lsmmathmldocument.c +0 -306
  67. data/ext/mathematical/lsmmathmldocument.h +0 -61
  68. data/ext/mathematical/lsmmathmlelement.c +0 -491
  69. data/ext/mathematical/lsmmathmlelement.h +0 -107
  70. data/ext/mathematical/lsmmathmlenums.c +0 -429
  71. data/ext/mathematical/lsmmathmlenums.h +0 -182
  72. data/ext/mathematical/lsmmathmlenumtypes.c +0 -666
  73. data/ext/mathematical/lsmmathmlenumtypes.c.template +0 -39
  74. data/ext/mathematical/lsmmathmlenumtypes.h +0 -90
  75. data/ext/mathematical/lsmmathmlenumtypes.h.template +0 -26
  76. data/ext/mathematical/lsmmathmlerrorelement.c +0 -58
  77. data/ext/mathematical/lsmmathmlerrorelement.h +0 -56
  78. data/ext/mathematical/lsmmathmlfencedelement.c +0 -178
  79. data/ext/mathematical/lsmmathmlfencedelement.h +0 -65
  80. data/ext/mathematical/lsmmathmlfractionelement.c +0 -253
  81. data/ext/mathematical/lsmmathmlfractionelement.h +0 -62
  82. data/ext/mathematical/lsmmathmlglyphtableams.c +0 -597
  83. data/ext/mathematical/lsmmathmlglyphtableams.h +0 -45
  84. data/ext/mathematical/lsmmathmlitexelement.c +0 -187
  85. data/ext/mathematical/lsmmathmlitexelement.h +0 -60
  86. data/ext/mathematical/lsmmathmllayoututils.c +0 -191
  87. data/ext/mathematical/lsmmathmllayoututils.h +0 -58
  88. data/ext/mathematical/lsmmathmlmathelement.c +0 -204
  89. data/ext/mathematical/lsmmathmlmathelement.h +0 -81
  90. data/ext/mathematical/lsmmathmloperatordictionary.c +0 -3332
  91. data/ext/mathematical/lsmmathmloperatordictionary.h +0 -54
  92. data/ext/mathematical/lsmmathmloperatorelement.c +0 -307
  93. data/ext/mathematical/lsmmathmloperatorelement.h +0 -73
  94. data/ext/mathematical/lsmmathmlpaddedelement.c +0 -58
  95. data/ext/mathematical/lsmmathmlpaddedelement.h +0 -56
  96. data/ext/mathematical/lsmmathmlphantomelement.c +0 -71
  97. data/ext/mathematical/lsmmathmlphantomelement.h +0 -56
  98. data/ext/mathematical/lsmmathmlpresentationcontainer.c +0 -43
  99. data/ext/mathematical/lsmmathmlpresentationcontainer.h +0 -54
  100. data/ext/mathematical/lsmmathmlpresentationtoken.c +0 -303
  101. data/ext/mathematical/lsmmathmlpresentationtoken.h +0 -83
  102. data/ext/mathematical/lsmmathmlradicalelement.c +0 -266
  103. data/ext/mathematical/lsmmathmlradicalelement.h +0 -71
  104. data/ext/mathematical/lsmmathmlrowelement.c +0 -58
  105. data/ext/mathematical/lsmmathmlrowelement.h +0 -56
  106. data/ext/mathematical/lsmmathmlscriptelement.c +0 -282
  107. data/ext/mathematical/lsmmathmlscriptelement.h +0 -78
  108. data/ext/mathematical/lsmmathmlsemanticselement.c +0 -82
  109. data/ext/mathematical/lsmmathmlsemanticselement.h +0 -56
  110. data/ext/mathematical/lsmmathmlspaceelement.c +0 -142
  111. data/ext/mathematical/lsmmathmlspaceelement.h +0 -60
  112. data/ext/mathematical/lsmmathmlstringelement.c +0 -123
  113. data/ext/mathematical/lsmmathmlstringelement.h +0 -58
  114. data/ext/mathematical/lsmmathmlstyle.c +0 -130
  115. data/ext/mathematical/lsmmathmlstyle.h +0 -81
  116. data/ext/mathematical/lsmmathmlstyleelement.c +0 -307
  117. data/ext/mathematical/lsmmathmlstyleelement.h +0 -87
  118. data/ext/mathematical/lsmmathmltablecellelement.c +0 -122
  119. data/ext/mathematical/lsmmathmltablecellelement.h +0 -62
  120. data/ext/mathematical/lsmmathmltableelement.c +0 -545
  121. data/ext/mathematical/lsmmathmltableelement.h +0 -78
  122. data/ext/mathematical/lsmmathmltablerowelement.c +0 -120
  123. data/ext/mathematical/lsmmathmltablerowelement.h +0 -64
  124. data/ext/mathematical/lsmmathmltraits.c +0 -819
  125. data/ext/mathematical/lsmmathmltraits.h +0 -119
  126. data/ext/mathematical/lsmmathmltypes.h +0 -66
  127. data/ext/mathematical/lsmmathmlunderoverelement.c +0 -485
  128. data/ext/mathematical/lsmmathmlunderoverelement.h +0 -82
  129. data/ext/mathematical/lsmmathmlutils.c +0 -170
  130. data/ext/mathematical/lsmmathmlutils.h +0 -50
  131. data/ext/mathematical/lsmmathmlview.c +0 -1048
  132. data/ext/mathematical/lsmmathmlview.h +0 -164
  133. data/ext/mathematical/lsmproperties.c +0 -418
  134. data/ext/mathematical/lsmproperties.h +0 -85
  135. data/ext/mathematical/lsmstr.c +0 -231
  136. data/ext/mathematical/lsmstr.h +0 -114
  137. data/ext/mathematical/lsmsvg.h +0 -67
  138. data/ext/mathematical/lsmsvgaelement.c +0 -73
  139. data/ext/mathematical/lsmsvgaelement.h +0 -55
  140. data/ext/mathematical/lsmsvgattributes.h +0 -113
  141. data/ext/mathematical/lsmsvgcircleelement.c +0 -153
  142. data/ext/mathematical/lsmsvgcircleelement.h +0 -59
  143. data/ext/mathematical/lsmsvgclippathelement.c +0 -134
  144. data/ext/mathematical/lsmsvgclippathelement.h +0 -59
  145. data/ext/mathematical/lsmsvgcolors.c +0 -212
  146. data/ext/mathematical/lsmsvgcolors.h +0 -39
  147. data/ext/mathematical/lsmsvgdefselement.c +0 -74
  148. data/ext/mathematical/lsmsvgdefselement.h +0 -55
  149. data/ext/mathematical/lsmsvgdocument.c +0 -230
  150. data/ext/mathematical/lsmsvgdocument.h +0 -58
  151. data/ext/mathematical/lsmsvgelement.c +0 -367
  152. data/ext/mathematical/lsmsvgelement.h +0 -81
  153. data/ext/mathematical/lsmsvgellipseelement.c +0 -158
  154. data/ext/mathematical/lsmsvgellipseelement.h +0 -60
  155. data/ext/mathematical/lsmsvgenums.c +0 -544
  156. data/ext/mathematical/lsmsvgenums.h +0 -357
  157. data/ext/mathematical/lsmsvgenumtypes.c +0 -1083
  158. data/ext/mathematical/lsmsvgenumtypes.c.template +0 -39
  159. data/ext/mathematical/lsmsvgenumtypes.h +0 -111
  160. data/ext/mathematical/lsmsvgenumtypes.h.template +0 -26
  161. data/ext/mathematical/lsmsvgfilterblend.c +0 -105
  162. data/ext/mathematical/lsmsvgfilterblend.h +0 -58
  163. data/ext/mathematical/lsmsvgfiltercomposite.c +0 -109
  164. data/ext/mathematical/lsmsvgfiltercomposite.h +0 -58
  165. data/ext/mathematical/lsmsvgfilterelement.c +0 -266
  166. data/ext/mathematical/lsmsvgfilterelement.h +0 -66
  167. data/ext/mathematical/lsmsvgfilterflood.c +0 -86
  168. data/ext/mathematical/lsmsvgfilterflood.h +0 -55
  169. data/ext/mathematical/lsmsvgfiltergaussianblur.c +0 -114
  170. data/ext/mathematical/lsmsvgfiltergaussianblur.h +0 -57
  171. data/ext/mathematical/lsmsvgfiltermerge.c +0 -98
  172. data/ext/mathematical/lsmsvgfiltermerge.h +0 -55
  173. data/ext/mathematical/lsmsvgfiltermergenode.c +0 -87
  174. data/ext/mathematical/lsmsvgfiltermergenode.h +0 -57
  175. data/ext/mathematical/lsmsvgfilteroffset.c +0 -112
  176. data/ext/mathematical/lsmsvgfilteroffset.h +0 -58
  177. data/ext/mathematical/lsmsvgfilterprimitive.c +0 -168
  178. data/ext/mathematical/lsmsvgfilterprimitive.h +0 -66
  179. data/ext/mathematical/lsmsvgfilterspecularlighting.c +0 -127
  180. data/ext/mathematical/lsmsvgfilterspecularlighting.h +0 -60
  181. data/ext/mathematical/lsmsvgfiltersurface.c +0 -455
  182. data/ext/mathematical/lsmsvgfiltersurface.h +0 -66
  183. data/ext/mathematical/lsmsvgfiltertile.c +0 -102
  184. data/ext/mathematical/lsmsvgfiltertile.h +0 -57
  185. data/ext/mathematical/lsmsvggelement.c +0 -73
  186. data/ext/mathematical/lsmsvggelement.h +0 -55
  187. data/ext/mathematical/lsmsvggradientelement.c +0 -151
  188. data/ext/mathematical/lsmsvggradientelement.h +0 -68
  189. data/ext/mathematical/lsmsvgimageelement.c +0 -261
  190. data/ext/mathematical/lsmsvgimageelement.h +0 -67
  191. data/ext/mathematical/lsmsvglength.c +0 -93
  192. data/ext/mathematical/lsmsvglength.h +0 -59
  193. data/ext/mathematical/lsmsvglineargradientelement.c +0 -271
  194. data/ext/mathematical/lsmsvglineargradientelement.h +0 -60
  195. data/ext/mathematical/lsmsvglineelement.c +0 -153
  196. data/ext/mathematical/lsmsvglineelement.h +0 -60
  197. data/ext/mathematical/lsmsvgmarkerelement.c +0 -266
  198. data/ext/mathematical/lsmsvgmarkerelement.h +0 -74
  199. data/ext/mathematical/lsmsvgmaskelement.c +0 -232
  200. data/ext/mathematical/lsmsvgmaskelement.h +0 -64
  201. data/ext/mathematical/lsmsvgmatrix.c +0 -205
  202. data/ext/mathematical/lsmsvgmatrix.h +0 -59
  203. data/ext/mathematical/lsmsvgpathelement.c +0 -115
  204. data/ext/mathematical/lsmsvgpathelement.h +0 -59
  205. data/ext/mathematical/lsmsvgpatternelement.c +0 -398
  206. data/ext/mathematical/lsmsvgpatternelement.h +0 -69
  207. data/ext/mathematical/lsmsvgpolygonelement.c +0 -106
  208. data/ext/mathematical/lsmsvgpolygonelement.h +0 -57
  209. data/ext/mathematical/lsmsvgpolylineelement.c +0 -106
  210. data/ext/mathematical/lsmsvgpolylineelement.h +0 -57
  211. data/ext/mathematical/lsmsvgradialgradientelement.c +0 -323
  212. data/ext/mathematical/lsmsvgradialgradientelement.h +0 -61
  213. data/ext/mathematical/lsmsvgrectelement.c +0 -184
  214. data/ext/mathematical/lsmsvgrectelement.h +0 -62
  215. data/ext/mathematical/lsmsvgstopelement.c +0 -106
  216. data/ext/mathematical/lsmsvgstopelement.h +0 -57
  217. data/ext/mathematical/lsmsvgstyle.c +0 -558
  218. data/ext/mathematical/lsmsvgstyle.h +0 -217
  219. data/ext/mathematical/lsmsvgsvgelement.c +0 -260
  220. data/ext/mathematical/lsmsvgsvgelement.h +0 -71
  221. data/ext/mathematical/lsmsvgswitchelement.c +0 -103
  222. data/ext/mathematical/lsmsvgswitchelement.h +0 -55
  223. data/ext/mathematical/lsmsvgsymbolelement.c +0 -74
  224. data/ext/mathematical/lsmsvgsymbolelement.h +0 -55
  225. data/ext/mathematical/lsmsvgtextelement.c +0 -170
  226. data/ext/mathematical/lsmsvgtextelement.h +0 -58
  227. data/ext/mathematical/lsmsvgtraits.c +0 -1158
  228. data/ext/mathematical/lsmsvgtraits.h +0 -103
  229. data/ext/mathematical/lsmsvgtransformable.c +0 -106
  230. data/ext/mathematical/lsmsvgtransformable.h +0 -54
  231. data/ext/mathematical/lsmsvgtspanelement.c +0 -143
  232. data/ext/mathematical/lsmsvgtspanelement.h +0 -58
  233. data/ext/mathematical/lsmsvgtypes.h +0 -77
  234. data/ext/mathematical/lsmsvguseelement.c +0 -237
  235. data/ext/mathematical/lsmsvguseelement.h +0 -69
  236. data/ext/mathematical/lsmsvgview.c +0 -2400
  237. data/ext/mathematical/lsmsvgview.h +0 -168
  238. data/ext/mathematical/lsmtraits.c +0 -119
  239. data/ext/mathematical/lsmtraits.h +0 -49
  240. data/ext/mathematical/lsmtypes.h +0 -36
  241. data/ext/mathematical/lsmutils.c +0 -54
  242. data/ext/mathematical/lsmutils.h +0 -56
  243. data/ext/mathematical/mathematical.c +0 -122
  244. data/ext/mathematical/y.tab.c +0 -6179
  245. data/ext/mathematical/y.tab.h +0 -389
  246. data/script/bench +0 -21
  247. data/script/bootstrap +0 -9
  248. data/script/single_test +0 -7
  249. data/test/mathematical/basic_test.rb +0 -38
  250. data/test/mathematical/fixtures/after/brackets_display.html +0 -1
  251. data/test/mathematical/fixtures/after/dollar_sign_inline.html +0 -1
  252. data/test/mathematical/fixtures/after/equation_display.html +0 -1
  253. data/test/mathematical/fixtures/after/multiple_dollar_inline.html +0 -1
  254. data/test/mathematical/fixtures/after/parens_inline.html +0 -1
  255. data/test/mathematical/fixtures/before/brackets_display.text +0 -1
  256. data/test/mathematical/fixtures/before/dollar_sign_inline.text +0 -1
  257. data/test/mathematical/fixtures/before/equation_display.text +0 -1
  258. data/test/mathematical/fixtures/before/multiple_dollar_inline.text +0 -1
  259. data/test/mathematical/fixtures/before/parens_inline.text +0 -1
  260. data/test/mathematical/fixtures/performance/big_file.text +0 -1767
  261. data/test/mathematical/fixtures_test.rb +0 -31
  262. data/test/mathematical/performance_test.rb +0 -13
  263. data/test/test_helper.rb +0 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c14fe131c5b4079e2bbe97ce285fcd667d4be3dd
4
- data.tar.gz: 23e84555231c9fc95d7cb52f2e35018088e27e4b
3
+ metadata.gz: 34522215d0a06c7c138d535be83702dfb8e1484a
4
+ data.tar.gz: 33f52d326e7dbae045e0b594afe190b3e2cc5004
5
5
  SHA512:
6
- metadata.gz: 5564644e717a270346c927ff7ef6157eaf74924c20739f096277d6cccd50e625a704ae6034e7a8dbb19909ddf3ebee5560d3060e28c329badf7e4d0556b29494
7
- data.tar.gz: 43c6e5740f9d46d36429741dc4a775963066b82dd7292a6b61f8a23f777c3c5d506c8e4bd93267ee16b3a9524d45c8d9136a5638144c6baa6af6abf9638027cb
6
+ metadata.gz: dbb53762ad4ecebfd027e6eed1289ef59a86b68a355d01e3d4f18e4ce73a372fb4620263922d08bbc4dab7c7ba204b6a84942d6e654d54765c72e585b3be0e12
7
+ data.tar.gz: ba2f5b09af01921201bfb43ddf7ae99ad136f95b66e53d47c89d686452efe0b20f321dc9ea4b560ea81b6dd4f74d5953c826fd3b13cd0d70edf85396bcd80adf
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Convert mathematical equations to base64 encoded images.
4
4
 
5
+ [![Build Status](https://travis-ci.org/gjtorikian/mathematical.svg?branch=master)](https://travis-ci.org/gjtorikian/mathematical)
6
+
5
7
  ![](https://i.imgur.com/JC7HT32.gif)
6
8
 
7
9
  ## Installation
@@ -32,8 +34,8 @@ They look something like this:
32
34
 
33
35
  ``` html
34
36
  <img class="type-inline" data-math-type="type-inline" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0..."/>
35
-
36
37
  ```
38
+
37
39
  Inline math will have `class="type-inline" data-math-type="type-inline"` set, and display math will have
38
40
  `class="type-display" data-math-type="type-display"`.
39
41
 
@@ -46,7 +48,12 @@ Currently, the following formats are supported:
46
48
  | `$...$` | `[...]`
47
49
  | `(...)` | `\begin{equation}...\end{equation}`
48
50
 
49
- ## Options
51
+ ### Supported commands and symbols
52
+
53
+ Literally everything on the [itex2MML homepage for version 1.5.1](http://golem.ph.utexas.edu/~distler/blog/itex2MMLcommands.html)
54
+ is supported, because it acts as the interpretation engine for mathematical.
55
+
56
+ ### Options
50
57
 
51
58
  `Mathematical::Render.new` can take a few options:
52
59
 
@@ -62,18 +69,52 @@ renderer = Mathematical::Render.new(opts)
62
69
 
63
70
  ## Dependencies
64
71
 
65
- This package depends on the following libraries:
72
+ Before using this gem, you must install the following libraries:
66
73
 
67
74
  * glib-2.0
68
75
  * gdk-pixbuf-2.0
69
76
  * xml2
70
77
  * cairo
71
78
  * pango
72
- * pangocairo
73
79
 
74
- * On a Mac, pretty much everything can be installed via Homebrew.
75
- * On a *nix machine, I'm sure it's possible via package managers to install all of these.
76
- * On a Windows machine, I have no idea.
80
+ You will also need fonts for cmr10, cmmi10, cmex10, and cmsy10.
81
+
82
+ ### Mac install
83
+
84
+ To install these dependencies on a Mac, everything can be installed via Homebrew:
85
+
86
+ ```
87
+ brew install glib gdk-pixbuf cairo pango
88
+ ```
89
+
90
+ `xml2` should already be on your machine.
91
+
92
+ The fonts should also be available on your system.
93
+
94
+ ### *nix install
95
+
96
+ To install these dependencies on a *nix machine, fetch the packages through your package manager. For example:
97
+
98
+ ```
99
+ sudo apt-get -qq -y install libxml2-dev libcairo2-dev libpango1.0-dev ttf-lyx
100
+ ```
101
+
102
+ `glib` and `gdk-pixbuf` should be on your machine.
103
+
104
+ ### Windows install
105
+
106
+ On a Windows machine, I have no idea. Pull requests welcome!
107
+
108
+ ## Hacking
109
+
110
+ After cloning the repo:
111
+
112
+ ``` bash
113
+ script/bootstrap
114
+ bundle exec rake compile
115
+ ```
116
+
117
+ If there were no errors, you're done! Otherwise, make sure to follow the dependency instructions.
77
118
 
78
119
  ## History
79
120
 
@@ -94,16 +135,17 @@ week. Here was my journey:
94
135
  TeX equations and converts them to PNG. This wasn't a bad idea, but it took too long;
95
136
  for twelve equations, it took eight seconds. It was slow because it shelled out
96
137
  to [`LaTeX`](http://www.latex-project.org/), *then* [`dvipng`](http://www.nongnu.org/dvipng/).
138
+
97
139
  In fact, as I discovered, most projects on the 'Net shell out to `LaTeX`, then
98
140
  something else, which makes performance absolutely horrid. I had to find something
99
- better, with no preferably dependency on `LaTeX`.
141
+ better, with preferably no dependency on `LaTeX`.
100
142
 
101
143
  * [`mimetex`](http://www.forkosh.com/mimetex.html) was my next attempt. It looked
102
144
  great: a pure C implementation that turned TeX equations into a rasterized representation,
103
145
  and then into a PNG. The speed was there, but the output image was pretty jagged.
104
146
  I tweaked the program to output BMPs, and tried to sharpen those with [`potrace`](http://potrace.sourceforge.net/),
105
147
  but the results were less then pleasant. The "update" to `mimetex` is [`mathtex`](http://www.forkosh.com/mathtex.html),
106
- but it, too, depend on `LaTeX` and `dvipng` binaries to produce images.
148
+ but it, too, depends on `LaTeX` and `dvipng` binaries to produce images.
107
149
 
108
150
  * [`pmml2svg`](http://pmml2svg.sourceforge.net/) had potential. It's a set of
109
151
  XSLT stylesheets to convert MathML to SVG. Unfortunately, it relies on XSLT 2.0,
@@ -126,7 +168,7 @@ it into SVG)
126
168
 
127
169
  * At one point, I began to try and convert the MathJax code to Ruby to figure out
128
170
  how it accomplished its `toSVG` methods. The MathJax codebase, while written by
129
- geniuses, is absoloutely incomprehnsible, due in part to JavaScript's inability
171
+ geniuses, is incomprehensible, due in part to JavaScript's inability
130
172
  to possess a coherent structure.
131
173
 
132
174
  * Near the end of my wits, I mimicked the behavior of [`mathrender2`](https://github.com/quipper/mathrender2),
data/Rakefile CHANGED
@@ -3,6 +3,7 @@ require "bundler/gem_tasks"
3
3
  require 'rake/testtask'
4
4
  require 'rbconfig'
5
5
  require 'fileutils'
6
+ require 'tmpdir'
6
7
 
7
8
  Rake::TestTask.new do |t|
8
9
  t.libs << "test"
@@ -10,8 +11,46 @@ Rake::TestTask.new do |t|
10
11
  t.verbose = true
11
12
  end
12
13
 
13
- task :default => [:test]
14
-
15
14
  require 'rake/extensiontask'
16
15
  spec = Gem::Specification.load('mathematical.gemspec')
17
- Rake::ExtensionTask.new('mathematical', spec)
16
+ Rake::ExtensionTask.new('mathematical', spec) do |ext|
17
+ ext.lib_dir = File.join('lib', 'mathematical')
18
+ end
19
+
20
+ Gem::PackageTask.new(spec) do |pkg|
21
+ end
22
+
23
+ Rake::Task[:test].prerequisites << :compile
24
+
25
+ task :default => [:test]
26
+
27
+ desc "Generate and publish to gh-pages"
28
+ task :publish do
29
+ Dir.mktmpdir do |tmp|
30
+ system "cp test/mathematical/fixtures/after/* #{tmp}"
31
+ titles_to_content = {}
32
+ Dir.glob("#{tmp}/compliance_*.html") do |item|
33
+ titles_to_content[File.basename(item)] = File.read(item)
34
+ end
35
+
36
+ system "git checkout gh-pages"
37
+
38
+ li_listing = titles_to_content.keys.map { |title| "<li><a href='#{title}'>#{File.basename(title, File.extname(title))}</a></li>" }
39
+ index = File.read("index.html")
40
+ File.open("index.html", 'w') { |file| file.write(index.sub(/<!-- LIST_GOES_HERE -->/, li_listing.join("\n"))) }
41
+
42
+ layout = File.read("layout_shell.text")
43
+ titles_to_content.each do |title, content|
44
+ new_layout = layout.sub(/<!-- TITLE_GOES_HERE -->/, title)
45
+ new_layout = new_layout.sub(/<!-- CONTENT_GOES_HERE -->/, content)
46
+ File.open("#{title}", 'w') { |file| file.write(new_layout) }
47
+ end
48
+
49
+ message = "Site updated at #{Time.now.utc}"
50
+ system "git add ."
51
+ system "git commit -am #{message.shellescape}"
52
+ system "git push origin gh-pages --force"
53
+ system "git checkout master"
54
+ system "echo yolo"
55
+ end
56
+ end
data/lib/mathematical.rb CHANGED
@@ -1,7 +1,8 @@
1
- require "./lib/mathematical/parser"
2
- require "./lib/mathematical/render"
3
- require "./lib/mathematical/version"
4
- require "./lib/mathematical.bundle"
1
+ require "mathematical/mathematical"
2
+
3
+ require "mathematical/parser"
4
+ require "mathematical/render"
5
+ require "mathematical/version"
5
6
 
6
7
  module Mathematical
7
8
  # Raised when missing binaries for images rendering.
@@ -25,8 +25,8 @@ module Mathematical
25
25
  raise(TypeError, "text must be a string!") unless text.is_a? String
26
26
 
27
27
  # TODO: figure out how to write svgs without the tempfile
28
- tempfile = Tempfile.new('foo')
29
- text.gsub(Mathematical::Parser::REGEX) do |maths|
28
+ tempfile = Tempfile.new('mathematical-temp.svg')
29
+ text = text.gsub(Mathematical::Parser::REGEX) do |maths|
30
30
  if maths =~ /^\$(?!\$)/
31
31
  just_maths = maths[1..-2]
32
32
  type = :inline
@@ -50,18 +50,19 @@ module Mathematical
50
50
 
51
51
  begin
52
52
  status = @processer.process(just_maths, tempfile.path)
53
- raise RuntimeError unless status == 0
53
+ raise RuntimeError unless status
54
54
  svg_content = File.open(tempfile.path, 'r') { |image_file| image_file.read }
55
55
  svg_content = svg_content.lines.to_a[1..-1].join
56
56
  rescue RuntimeError => e # an error in the C code, probably a bad TeX parse
57
- $stderr.puts e.message
58
- return just_maths
57
+ $stderr.puts "#{e.message}: #{maths}"
58
+ next(maths)
59
59
  end
60
60
 
61
61
  "<img class=\"#{named_type(type)}\" data-math-type=\"#{named_type(type)}\" src=\"data:image/svg+xml;base64,#{svg_to_base64(svg_content)}\"/>"
62
62
  end
63
63
  tempfile.close
64
64
  tempfile.unlink
65
+ text
65
66
  end
66
67
 
67
68
  def svg_to_base64(contents)
@@ -1,3 +1,3 @@
1
1
  module Mathematical
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/mathematical.gemspec CHANGED
@@ -8,18 +8,18 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Mathematical::VERSION
9
9
  spec.authors = ["Garen Torikian"]
10
10
  spec.email = ["gjtorikian@gmail.com"]
11
- spec.summary = %q{Turn itex math equations into base64 SVGs.}
12
- spec.description = %q{This is a general purpose wrapper to GNOME's Lasem. It's a fast and aesthetically pleasing mechanism to turn math equations into base64 SVGs, to embed on the web.}
11
+ spec.summary = %q{Quickly turn itex math equations into base64 SVGs.}
12
+ spec.description = %q{A very fast way to turn itex math equations into beautifully rendered base64 SVGs, to embed on the web. This library is a general purpose wrapper to GNOME's Lasem. }
13
13
  spec.homepage = "https://github.com/gjtorikian/mathematical"
14
14
  spec.license = "MIT"
15
15
 
16
- spec.files = `git ls-files -z`.split("\x0")
16
+ spec.files = %w(LICENSE.txt README.md Rakefile mathematical.gemspec)
17
+ spec.files += Dir.glob("lib/**/*")
17
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
20
  spec.require_paths = ["lib"]
20
21
 
21
- spec.add_development_dependency "bundler", "~> 1.5"
22
- spec.add_development_dependency "rake"
23
22
  spec.add_development_dependency "rake-compiler"
23
+ spec.add_development_dependency "bundler", "~> 1.5"
24
24
  spec.add_development_dependency "mocha", "~> 1.0"
25
25
  end
metadata CHANGED
@@ -1,31 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mathematical
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-02 00:00:00.000000000 Z
11
+ date: 2014-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.5'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.5'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
14
+ name: rake-compiler
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - ">="
@@ -39,19 +25,19 @@ dependencies:
39
25
  - !ruby/object:Gem::Version
40
26
  version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
- name: rake-compiler
28
+ name: bundler
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
- - - ">="
31
+ - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: '0'
33
+ version: '1.5'
48
34
  type: :development
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - ">="
38
+ - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: '0'
40
+ version: '1.5'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: mocha
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -66,277 +52,24 @@ dependencies:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
54
  version: '1.0'
69
- description: This is a general purpose wrapper to GNOME's Lasem. It's a fast and aesthetically
70
- pleasing mechanism to turn math equations into base64 SVGs, to embed on the web.
55
+ description: 'A very fast way to turn itex math equations into beautifully rendered
56
+ base64 SVGs, to embed on the web. This library is a general purpose wrapper to GNOME''s
57
+ Lasem. '
71
58
  email:
72
59
  - gjtorikian@gmail.com
73
60
  executables: []
74
61
  extensions: []
75
62
  extra_rdoc_files: []
76
63
  files:
77
- - ".gitignore"
78
- - ".gitmodules"
79
- - Gemfile
80
64
  - LICENSE.txt
81
65
  - README.md
82
66
  - Rakefile
83
- - ext/mathematical/README.itex2MML.md
84
- - ext/mathematical/README.lasem.md
85
- - ext/mathematical/extconf.rb
86
- - ext/mathematical/itex2MML.h
87
- - ext/mathematical/lasemrender.c
88
- - ext/mathematical/lex.yy.c
89
- - ext/mathematical/lsm.c
90
- - ext/mathematical/lsm.h
91
- - ext/mathematical/lsmattributes.c
92
- - ext/mathematical/lsmattributes.h
93
- - ext/mathematical/lsmcairo.c
94
- - ext/mathematical/lsmcairo.h
95
- - ext/mathematical/lsmdebug.c
96
- - ext/mathematical/lsmdebug.h
97
- - ext/mathematical/lsmdom.h
98
- - ext/mathematical/lsmdomcharacterdata.c
99
- - ext/mathematical/lsmdomcharacterdata.h
100
- - ext/mathematical/lsmdomdocument.c
101
- - ext/mathematical/lsmdomdocument.h
102
- - ext/mathematical/lsmdomdocumentfragment.c
103
- - ext/mathematical/lsmdomdocumentfragment.h
104
- - ext/mathematical/lsmdomelement.c
105
- - ext/mathematical/lsmdomelement.h
106
- - ext/mathematical/lsmdomentities.c
107
- - ext/mathematical/lsmdomentities.h
108
- - ext/mathematical/lsmdomenumtypes.c
109
- - ext/mathematical/lsmdomenumtypes.c.template
110
- - ext/mathematical/lsmdomenumtypes.h
111
- - ext/mathematical/lsmdomenumtypes.h.template
112
- - ext/mathematical/lsmdomimplementation.c
113
- - ext/mathematical/lsmdomimplementation.h
114
- - ext/mathematical/lsmdomnamednodemap.c
115
- - ext/mathematical/lsmdomnamednodemap.h
116
- - ext/mathematical/lsmdomnode.c
117
- - ext/mathematical/lsmdomnode.h
118
- - ext/mathematical/lsmdomnodelist.c
119
- - ext/mathematical/lsmdomnodelist.h
120
- - ext/mathematical/lsmdomparser.c
121
- - ext/mathematical/lsmdomparser.h
122
- - ext/mathematical/lsmdomtext.c
123
- - ext/mathematical/lsmdomtext.h
124
- - ext/mathematical/lsmdomtypes.h
125
- - ext/mathematical/lsmdomview.c
126
- - ext/mathematical/lsmdomview.h
127
- - ext/mathematical/lsmmathml.h
128
- - ext/mathematical/lsmmathmlactionelement.c
129
- - ext/mathematical/lsmmathmlactionelement.h
130
- - ext/mathematical/lsmmathmlaligngroupelement.c
131
- - ext/mathematical/lsmmathmlaligngroupelement.h
132
- - ext/mathematical/lsmmathmlalignmarkelement.c
133
- - ext/mathematical/lsmmathmlalignmarkelement.h
134
- - ext/mathematical/lsmmathmlattributes.c
135
- - ext/mathematical/lsmmathmlattributes.h
136
- - ext/mathematical/lsmmathmldocument.c
137
- - ext/mathematical/lsmmathmldocument.h
138
- - ext/mathematical/lsmmathmlelement.c
139
- - ext/mathematical/lsmmathmlelement.h
140
- - ext/mathematical/lsmmathmlenums.c
141
- - ext/mathematical/lsmmathmlenums.h
142
- - ext/mathematical/lsmmathmlenumtypes.c
143
- - ext/mathematical/lsmmathmlenumtypes.c.template
144
- - ext/mathematical/lsmmathmlenumtypes.h
145
- - ext/mathematical/lsmmathmlenumtypes.h.template
146
- - ext/mathematical/lsmmathmlerrorelement.c
147
- - ext/mathematical/lsmmathmlerrorelement.h
148
- - ext/mathematical/lsmmathmlfencedelement.c
149
- - ext/mathematical/lsmmathmlfencedelement.h
150
- - ext/mathematical/lsmmathmlfractionelement.c
151
- - ext/mathematical/lsmmathmlfractionelement.h
152
- - ext/mathematical/lsmmathmlglyphtableams.c
153
- - ext/mathematical/lsmmathmlglyphtableams.h
154
- - ext/mathematical/lsmmathmlitexelement.c
155
- - ext/mathematical/lsmmathmlitexelement.h
156
- - ext/mathematical/lsmmathmllayoututils.c
157
- - ext/mathematical/lsmmathmllayoututils.h
158
- - ext/mathematical/lsmmathmlmathelement.c
159
- - ext/mathematical/lsmmathmlmathelement.h
160
- - ext/mathematical/lsmmathmloperatordictionary.c
161
- - ext/mathematical/lsmmathmloperatordictionary.h
162
- - ext/mathematical/lsmmathmloperatorelement.c
163
- - ext/mathematical/lsmmathmloperatorelement.h
164
- - ext/mathematical/lsmmathmlpaddedelement.c
165
- - ext/mathematical/lsmmathmlpaddedelement.h
166
- - ext/mathematical/lsmmathmlphantomelement.c
167
- - ext/mathematical/lsmmathmlphantomelement.h
168
- - ext/mathematical/lsmmathmlpresentationcontainer.c
169
- - ext/mathematical/lsmmathmlpresentationcontainer.h
170
- - ext/mathematical/lsmmathmlpresentationtoken.c
171
- - ext/mathematical/lsmmathmlpresentationtoken.h
172
- - ext/mathematical/lsmmathmlradicalelement.c
173
- - ext/mathematical/lsmmathmlradicalelement.h
174
- - ext/mathematical/lsmmathmlrowelement.c
175
- - ext/mathematical/lsmmathmlrowelement.h
176
- - ext/mathematical/lsmmathmlscriptelement.c
177
- - ext/mathematical/lsmmathmlscriptelement.h
178
- - ext/mathematical/lsmmathmlsemanticselement.c
179
- - ext/mathematical/lsmmathmlsemanticselement.h
180
- - ext/mathematical/lsmmathmlspaceelement.c
181
- - ext/mathematical/lsmmathmlspaceelement.h
182
- - ext/mathematical/lsmmathmlstringelement.c
183
- - ext/mathematical/lsmmathmlstringelement.h
184
- - ext/mathematical/lsmmathmlstyle.c
185
- - ext/mathematical/lsmmathmlstyle.h
186
- - ext/mathematical/lsmmathmlstyleelement.c
187
- - ext/mathematical/lsmmathmlstyleelement.h
188
- - ext/mathematical/lsmmathmltablecellelement.c
189
- - ext/mathematical/lsmmathmltablecellelement.h
190
- - ext/mathematical/lsmmathmltableelement.c
191
- - ext/mathematical/lsmmathmltableelement.h
192
- - ext/mathematical/lsmmathmltablerowelement.c
193
- - ext/mathematical/lsmmathmltablerowelement.h
194
- - ext/mathematical/lsmmathmltraits.c
195
- - ext/mathematical/lsmmathmltraits.h
196
- - ext/mathematical/lsmmathmltypes.h
197
- - ext/mathematical/lsmmathmlunderoverelement.c
198
- - ext/mathematical/lsmmathmlunderoverelement.h
199
- - ext/mathematical/lsmmathmlutils.c
200
- - ext/mathematical/lsmmathmlutils.h
201
- - ext/mathematical/lsmmathmlview.c
202
- - ext/mathematical/lsmmathmlview.h
203
- - ext/mathematical/lsmproperties.c
204
- - ext/mathematical/lsmproperties.h
205
- - ext/mathematical/lsmstr.c
206
- - ext/mathematical/lsmstr.h
207
- - ext/mathematical/lsmsvg.h
208
- - ext/mathematical/lsmsvgaelement.c
209
- - ext/mathematical/lsmsvgaelement.h
210
- - ext/mathematical/lsmsvgattributes.h
211
- - ext/mathematical/lsmsvgcircleelement.c
212
- - ext/mathematical/lsmsvgcircleelement.h
213
- - ext/mathematical/lsmsvgclippathelement.c
214
- - ext/mathematical/lsmsvgclippathelement.h
215
- - ext/mathematical/lsmsvgcolors.c
216
- - ext/mathematical/lsmsvgcolors.h
217
- - ext/mathematical/lsmsvgdefselement.c
218
- - ext/mathematical/lsmsvgdefselement.h
219
- - ext/mathematical/lsmsvgdocument.c
220
- - ext/mathematical/lsmsvgdocument.h
221
- - ext/mathematical/lsmsvgelement.c
222
- - ext/mathematical/lsmsvgelement.h
223
- - ext/mathematical/lsmsvgellipseelement.c
224
- - ext/mathematical/lsmsvgellipseelement.h
225
- - ext/mathematical/lsmsvgenums.c
226
- - ext/mathematical/lsmsvgenums.h
227
- - ext/mathematical/lsmsvgenumtypes.c
228
- - ext/mathematical/lsmsvgenumtypes.c.template
229
- - ext/mathematical/lsmsvgenumtypes.h
230
- - ext/mathematical/lsmsvgenumtypes.h.template
231
- - ext/mathematical/lsmsvgfilterblend.c
232
- - ext/mathematical/lsmsvgfilterblend.h
233
- - ext/mathematical/lsmsvgfiltercomposite.c
234
- - ext/mathematical/lsmsvgfiltercomposite.h
235
- - ext/mathematical/lsmsvgfilterelement.c
236
- - ext/mathematical/lsmsvgfilterelement.h
237
- - ext/mathematical/lsmsvgfilterflood.c
238
- - ext/mathematical/lsmsvgfilterflood.h
239
- - ext/mathematical/lsmsvgfiltergaussianblur.c
240
- - ext/mathematical/lsmsvgfiltergaussianblur.h
241
- - ext/mathematical/lsmsvgfiltermerge.c
242
- - ext/mathematical/lsmsvgfiltermerge.h
243
- - ext/mathematical/lsmsvgfiltermergenode.c
244
- - ext/mathematical/lsmsvgfiltermergenode.h
245
- - ext/mathematical/lsmsvgfilteroffset.c
246
- - ext/mathematical/lsmsvgfilteroffset.h
247
- - ext/mathematical/lsmsvgfilterprimitive.c
248
- - ext/mathematical/lsmsvgfilterprimitive.h
249
- - ext/mathematical/lsmsvgfilterspecularlighting.c
250
- - ext/mathematical/lsmsvgfilterspecularlighting.h
251
- - ext/mathematical/lsmsvgfiltersurface.c
252
- - ext/mathematical/lsmsvgfiltersurface.h
253
- - ext/mathematical/lsmsvgfiltertile.c
254
- - ext/mathematical/lsmsvgfiltertile.h
255
- - ext/mathematical/lsmsvggelement.c
256
- - ext/mathematical/lsmsvggelement.h
257
- - ext/mathematical/lsmsvggradientelement.c
258
- - ext/mathematical/lsmsvggradientelement.h
259
- - ext/mathematical/lsmsvgimageelement.c
260
- - ext/mathematical/lsmsvgimageelement.h
261
- - ext/mathematical/lsmsvglength.c
262
- - ext/mathematical/lsmsvglength.h
263
- - ext/mathematical/lsmsvglineargradientelement.c
264
- - ext/mathematical/lsmsvglineargradientelement.h
265
- - ext/mathematical/lsmsvglineelement.c
266
- - ext/mathematical/lsmsvglineelement.h
267
- - ext/mathematical/lsmsvgmarkerelement.c
268
- - ext/mathematical/lsmsvgmarkerelement.h
269
- - ext/mathematical/lsmsvgmaskelement.c
270
- - ext/mathematical/lsmsvgmaskelement.h
271
- - ext/mathematical/lsmsvgmatrix.c
272
- - ext/mathematical/lsmsvgmatrix.h
273
- - ext/mathematical/lsmsvgpathelement.c
274
- - ext/mathematical/lsmsvgpathelement.h
275
- - ext/mathematical/lsmsvgpatternelement.c
276
- - ext/mathematical/lsmsvgpatternelement.h
277
- - ext/mathematical/lsmsvgpolygonelement.c
278
- - ext/mathematical/lsmsvgpolygonelement.h
279
- - ext/mathematical/lsmsvgpolylineelement.c
280
- - ext/mathematical/lsmsvgpolylineelement.h
281
- - ext/mathematical/lsmsvgradialgradientelement.c
282
- - ext/mathematical/lsmsvgradialgradientelement.h
283
- - ext/mathematical/lsmsvgrectelement.c
284
- - ext/mathematical/lsmsvgrectelement.h
285
- - ext/mathematical/lsmsvgstopelement.c
286
- - ext/mathematical/lsmsvgstopelement.h
287
- - ext/mathematical/lsmsvgstyle.c
288
- - ext/mathematical/lsmsvgstyle.h
289
- - ext/mathematical/lsmsvgsvgelement.c
290
- - ext/mathematical/lsmsvgsvgelement.h
291
- - ext/mathematical/lsmsvgswitchelement.c
292
- - ext/mathematical/lsmsvgswitchelement.h
293
- - ext/mathematical/lsmsvgsymbolelement.c
294
- - ext/mathematical/lsmsvgsymbolelement.h
295
- - ext/mathematical/lsmsvgtextelement.c
296
- - ext/mathematical/lsmsvgtextelement.h
297
- - ext/mathematical/lsmsvgtraits.c
298
- - ext/mathematical/lsmsvgtraits.h
299
- - ext/mathematical/lsmsvgtransformable.c
300
- - ext/mathematical/lsmsvgtransformable.h
301
- - ext/mathematical/lsmsvgtspanelement.c
302
- - ext/mathematical/lsmsvgtspanelement.h
303
- - ext/mathematical/lsmsvgtypes.h
304
- - ext/mathematical/lsmsvguseelement.c
305
- - ext/mathematical/lsmsvguseelement.h
306
- - ext/mathematical/lsmsvgview.c
307
- - ext/mathematical/lsmsvgview.h
308
- - ext/mathematical/lsmtraits.c
309
- - ext/mathematical/lsmtraits.h
310
- - ext/mathematical/lsmtypes.h
311
- - ext/mathematical/lsmutils.c
312
- - ext/mathematical/lsmutils.h
313
- - ext/mathematical/mathematical.c
314
- - ext/mathematical/y.tab.c
315
- - ext/mathematical/y.tab.h
316
67
  - lib/mathematical.rb
68
+ - lib/mathematical/mathematical.bundle
317
69
  - lib/mathematical/parser.rb
318
70
  - lib/mathematical/render.rb
319
71
  - lib/mathematical/version.rb
320
72
  - mathematical.gemspec
321
- - script/bench
322
- - script/bootstrap
323
- - script/single_test
324
- - script/single_text
325
- - test/mathematical/basic_test.rb
326
- - test/mathematical/fixtures/after/brackets_display.html
327
- - test/mathematical/fixtures/after/dollar_sign_inline.html
328
- - test/mathematical/fixtures/after/equation_display.html
329
- - test/mathematical/fixtures/after/multiple_dollar_inline.html
330
- - test/mathematical/fixtures/after/parens_inline.html
331
- - test/mathematical/fixtures/before/brackets_display.text
332
- - test/mathematical/fixtures/before/dollar_sign_inline.text
333
- - test/mathematical/fixtures/before/equation_display.text
334
- - test/mathematical/fixtures/before/multiple_dollar_inline.text
335
- - test/mathematical/fixtures/before/parens_inline.text
336
- - test/mathematical/fixtures/performance/big_file.text
337
- - test/mathematical/fixtures_test.rb
338
- - test/mathematical/performance_test.rb
339
- - test/test_helper.rb
340
73
  homepage: https://github.com/gjtorikian/mathematical
341
74
  licenses:
342
75
  - MIT
@@ -360,20 +93,5 @@ rubyforge_project:
360
93
  rubygems_version: 2.2.2
361
94
  signing_key:
362
95
  specification_version: 4
363
- summary: Turn itex math equations into base64 SVGs.
364
- test_files:
365
- - test/mathematical/basic_test.rb
366
- - test/mathematical/fixtures/after/brackets_display.html
367
- - test/mathematical/fixtures/after/dollar_sign_inline.html
368
- - test/mathematical/fixtures/after/equation_display.html
369
- - test/mathematical/fixtures/after/multiple_dollar_inline.html
370
- - test/mathematical/fixtures/after/parens_inline.html
371
- - test/mathematical/fixtures/before/brackets_display.text
372
- - test/mathematical/fixtures/before/dollar_sign_inline.text
373
- - test/mathematical/fixtures/before/equation_display.text
374
- - test/mathematical/fixtures/before/multiple_dollar_inline.text
375
- - test/mathematical/fixtures/before/parens_inline.text
376
- - test/mathematical/fixtures/performance/big_file.text
377
- - test/mathematical/fixtures_test.rb
378
- - test/mathematical/performance_test.rb
379
- - test/test_helper.rb
96
+ summary: Quickly turn itex math equations into base64 SVGs.
97
+ test_files: []