mathematical 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -1,182 +0,0 @@
1
- /* Lasem
2
- *
3
- * Copyright © 2007-2008 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., 59 Temple Place, Suite 330,
18
- * Boston, MA 02111-1307, USA.
19
- *
20
- * Author:
21
- * Emmanuel Pacaud <emmanuel@gnome.org>
22
- */
23
-
24
- #ifndef LSM_MATHML_ENUMS_H
25
- #define LSM_MATHML_ENUMS_H
26
-
27
- #include <glib-object.h>
28
-
29
- G_BEGIN_DECLS
30
-
31
- typedef enum {
32
- LSM_MATHML_CSS_TYPE_USER,
33
- LSM_MATHML_CSS_TYPE_AUTHOR,
34
- LSM_MATHML_CSS_TYPE_AUTHOR_IMPORTANT,
35
- LSM_MATHML_CSS_TYPE_USER_IMPORTANT
36
- } LsmMathmlCssType;
37
-
38
- typedef enum {
39
- LSM_MATHML_MODE_ERROR = -1,
40
- LSM_MATHML_MODE_DISPLAY,
41
- LSM_MATHML_MODE_INLINE
42
- } LsmMathmlMode;
43
-
44
- const char * lsm_mathml_mode_to_string (LsmMathmlMode mode);
45
- LsmMathmlMode lsm_mathml_mode_from_string (const char *string);
46
-
47
- typedef enum {
48
- LSM_MATHML_DISPLAY_ERROR = -1,
49
- LSM_MATHML_DISPLAY_BLOCK,
50
- LSM_MATHML_DISPLAY_INLINE
51
- } LsmMathmlDisplay;
52
-
53
- const char * lsm_mathml_display_to_string (LsmMathmlDisplay display);
54
- LsmMathmlDisplay lsm_mathml_display_from_string (const char *string);
55
-
56
- typedef enum {
57
- LSM_MATHML_SPACE_NAME_ERROR = -1,
58
- LSM_MATHML_SPACE_NAME_VERY_VERY_THIN,
59
- LSM_MATHML_SPACE_NAME_VERY_THIN,
60
- LSM_MATHML_SPACE_NAME_THIN,
61
- LSM_MATHML_SPACE_NAME_MEDIUM,
62
- LSM_MATHML_SPACE_NAME_THICK,
63
- LSM_MATHML_SPACE_NAME_VERY_THICK,
64
- LSM_MATHML_SPACE_NAME_VERY_VERY_THICK,
65
- LSM_MATHML_SPACE_NAME_INFINITY
66
- } LsmMathmlSpaceName;
67
-
68
- const char * lsm_mathml_space_name_to_string (LsmMathmlSpaceName name);
69
- LsmMathmlSpaceName lsm_mathml_space_name_from_string (const char *string);
70
-
71
- typedef enum {
72
- LSM_MATHML_UNIT_ERROR = -1,
73
- LSM_MATHML_UNIT_NONE,
74
- LSM_MATHML_UNIT_EM,
75
- LSM_MATHML_UNIT_EX,
76
- LSM_MATHML_UNIT_IN,
77
- LSM_MATHML_UNIT_CM,
78
- LSM_MATHML_UNIT_MM,
79
- LSM_MATHML_UNIT_PT,
80
- LSM_MATHML_UNIT_PX,
81
- LSM_MATHML_UNIT_PC,
82
- LSM_MATHML_UNIT_PERCENT
83
- } LsmMathmlUnit;
84
-
85
- const char * lsm_mathml_unit_to_string (LsmMathmlUnit unit);
86
- LsmMathmlUnit lsm_mathml_unit_from_string (const char *string);
87
-
88
- typedef enum {
89
- LSM_MATHML_FONT_STYLE_ERROR = -1,
90
- LSM_MATHML_FONT_STYLE_NORMAL,
91
- LSM_MATHML_FONT_STYLE_ITALIC
92
- } LsmMathmlFontStyle;
93
-
94
- const char * lsm_mathml_font_style_to_string (LsmMathmlFontStyle font_style);
95
- LsmMathmlFontStyle lsm_mathml_font_style_from_string (const char *string);
96
-
97
- typedef enum {
98
- LSM_MATHML_FONT_WEIGHT_ERROR = -1,
99
- LSM_MATHML_FONT_WEIGHT_NORMAL,
100
- LSM_MATHML_FONT_WEIGHT_BOLD
101
- } LsmMathmlFontWeight;
102
-
103
- const char * lsm_mathml_font_weight_to_string (LsmMathmlFontWeight font_weight);
104
- LsmMathmlFontWeight lsm_mathml_font_weight_from_string (const char *string);
105
-
106
- /* Keep in sync with lsm_mathml_pango_options in lsm_mathml_view */
107
- typedef enum {
108
- LSM_MATHML_VARIANT_ERROR = -1,
109
- LSM_MATHML_VARIANT_NORMAL,
110
- LSM_MATHML_VARIANT_BOLD,
111
- LSM_MATHML_VARIANT_ITALIC,
112
- LSM_MATHML_VARIANT_BOLD_ITALIC,
113
- LSM_MATHML_VARIANT_DOUBLE_STRUCK,
114
- LSM_MATHML_VARIANT_FRAKTUR_BOLD,
115
- LSM_MATHML_VARIANT_SCRIPT,
116
- LSM_MATHML_VARIANT_SCRIPT_BOLD,
117
- LSM_MATHML_VARIANT_FRAKTUR,
118
- LSM_MATHML_VARIANT_SANS_SERIF,
119
- LSM_MATHML_VARIANT_SANS_SERIF_BOLD,
120
- LSM_MATHML_VARIANT_SANS_SERIF_ITALIC,
121
- LSM_MATHML_VARIANT_SANS_SERIF_BOLD_ITALIC,
122
- LSM_MATHML_VARIANT_MONOSPACE
123
- } LsmMathmlVariant;
124
-
125
- const char * lsm_mathml_variant_to_string (LsmMathmlVariant variant);
126
- LsmMathmlVariant lsm_mathml_variant_from_string (const char *string);
127
- void lsm_mathml_variant_set_font_style (LsmMathmlVariant *variant, LsmMathmlFontStyle style);
128
- void lsm_mathml_variant_set_font_weight (LsmMathmlVariant *variant, LsmMathmlFontWeight weight);
129
-
130
- typedef enum {
131
- LSM_MATHML_FORM_ERROR = -1,
132
- LSM_MATHML_FORM_PREFIX,
133
- LSM_MATHML_FORM_POSTFIX,
134
- LSM_MATHML_FORM_INFIX
135
- } LsmMathmlForm;
136
-
137
- const char * lsm_mathml_form_to_string (LsmMathmlForm form);
138
- LsmMathmlForm lsm_mathml_form_from_string (const char *string);
139
-
140
- typedef enum {
141
- LSM_MATHML_ROW_ALIGN_ERROR = -1,
142
- LSM_MATHML_ROW_ALIGN_BASELINE,
143
- LSM_MATHML_ROW_ALIGN_TOP,
144
- LSM_MATHML_ROW_ALIGN_BOTTOM,
145
- LSM_MATHML_ROW_ALIGN_CENTER,
146
- LSM_MATHML_ROW_ALIGN_AXIS
147
- } LsmMathmlRowAlign;
148
-
149
- const char * lsm_mathml_row_align_to_string (LsmMathmlRowAlign row_align);
150
- LsmMathmlRowAlign lsm_mathml_row_align_from_string (const char *string);
151
-
152
- typedef enum {
153
- LSM_MATHML_COLUMN_ALIGN_ERROR = -1,
154
- LSM_MATHML_COLUMN_ALIGN_CENTER,
155
- LSM_MATHML_COLUMN_ALIGN_LEFT,
156
- LSM_MATHML_COLUMN_ALIGN_RIGHT
157
- } LsmMathmlColumnAlign;
158
-
159
- const char * lsm_mathml_column_align_to_string (LsmMathmlColumnAlign column_align);
160
- LsmMathmlColumnAlign lsm_mathml_column_align_from_string (const char *string);
161
-
162
- typedef enum {
163
- LSM_MATHML_LINE_ERROR = -1,
164
- LSM_MATHML_LINE_NONE,
165
- LSM_MATHML_LINE_SOLID,
166
- LSM_MATHML_LINE_DASHED
167
- } LsmMathmlLine;
168
-
169
- const char * lsm_mathml_line_to_string (LsmMathmlLine line);
170
- LsmMathmlLine lsm_mathml_line_from_string (const char *string);
171
-
172
- typedef enum {
173
- LSM_MATHML_SCRIPT_LEVEL_SIGN_ERROR = -1,
174
- LSM_MATHML_SCRIPT_LEVEL_SIGN_NONE,
175
- LSM_MATHML_SCRIPT_LEVEL_SIGN_PLUS,
176
- LSM_MATHML_SCRIPT_LEVEL_SIGN_MINUS
177
- } LsmMathmlScriptLevelSign;
178
-
179
- G_END_DECLS
180
-
181
- #endif
182
-
@@ -1,666 +0,0 @@
1
-
2
- /* Generated data (by glib-mkenums) */
3
-
4
- #include "lsmmathmlenumtypes.h"
5
-
6
- /* enumerations from "lsmmathmlenums.h" */
7
- #include "lsmmathmlenums.h"
8
-
9
- GType
10
- lsm_mathml_css_type_get_type (void)
11
- {
12
- static GType the_type = 0;
13
-
14
- if (the_type == 0)
15
- {
16
- static const GEnumValue values[] = {
17
- { LSM_MATHML_CSS_TYPE_USER,
18
- "LSM_MATHML_CSS_TYPE_USER",
19
- "user" },
20
- { LSM_MATHML_CSS_TYPE_AUTHOR,
21
- "LSM_MATHML_CSS_TYPE_AUTHOR",
22
- "author" },
23
- { LSM_MATHML_CSS_TYPE_AUTHOR_IMPORTANT,
24
- "LSM_MATHML_CSS_TYPE_AUTHOR_IMPORTANT",
25
- "author-important" },
26
- { LSM_MATHML_CSS_TYPE_USER_IMPORTANT,
27
- "LSM_MATHML_CSS_TYPE_USER_IMPORTANT",
28
- "user-important" },
29
- { 0, NULL, NULL }
30
- };
31
- the_type = g_enum_register_static (
32
- g_intern_static_string ("LsmMathmlCssType"),
33
- values);
34
- }
35
- return the_type;
36
- }
37
-
38
- GType
39
- lsm_mathml_mode_get_type (void)
40
- {
41
- static GType the_type = 0;
42
-
43
- if (the_type == 0)
44
- {
45
- static const GEnumValue values[] = {
46
- { LSM_MATHML_MODE_ERROR,
47
- "LSM_MATHML_MODE_ERROR",
48
- "error" },
49
- { LSM_MATHML_MODE_DISPLAY,
50
- "LSM_MATHML_MODE_DISPLAY",
51
- "display" },
52
- { LSM_MATHML_MODE_INLINE,
53
- "LSM_MATHML_MODE_INLINE",
54
- "inline" },
55
- { 0, NULL, NULL }
56
- };
57
- the_type = g_enum_register_static (
58
- g_intern_static_string ("LsmMathmlMode"),
59
- values);
60
- }
61
- return the_type;
62
- }
63
-
64
- GType
65
- lsm_mathml_display_get_type (void)
66
- {
67
- static GType the_type = 0;
68
-
69
- if (the_type == 0)
70
- {
71
- static const GEnumValue values[] = {
72
- { LSM_MATHML_DISPLAY_ERROR,
73
- "LSM_MATHML_DISPLAY_ERROR",
74
- "error" },
75
- { LSM_MATHML_DISPLAY_BLOCK,
76
- "LSM_MATHML_DISPLAY_BLOCK",
77
- "block" },
78
- { LSM_MATHML_DISPLAY_INLINE,
79
- "LSM_MATHML_DISPLAY_INLINE",
80
- "inline" },
81
- { 0, NULL, NULL }
82
- };
83
- the_type = g_enum_register_static (
84
- g_intern_static_string ("LsmMathmlDisplay"),
85
- values);
86
- }
87
- return the_type;
88
- }
89
-
90
- GType
91
- lsm_mathml_space_name_get_type (void)
92
- {
93
- static GType the_type = 0;
94
-
95
- if (the_type == 0)
96
- {
97
- static const GEnumValue values[] = {
98
- { LSM_MATHML_SPACE_NAME_ERROR,
99
- "LSM_MATHML_SPACE_NAME_ERROR",
100
- "error" },
101
- { LSM_MATHML_SPACE_NAME_VERY_VERY_THIN,
102
- "LSM_MATHML_SPACE_NAME_VERY_VERY_THIN",
103
- "very-very-thin" },
104
- { LSM_MATHML_SPACE_NAME_VERY_THIN,
105
- "LSM_MATHML_SPACE_NAME_VERY_THIN",
106
- "very-thin" },
107
- { LSM_MATHML_SPACE_NAME_THIN,
108
- "LSM_MATHML_SPACE_NAME_THIN",
109
- "thin" },
110
- { LSM_MATHML_SPACE_NAME_MEDIUM,
111
- "LSM_MATHML_SPACE_NAME_MEDIUM",
112
- "medium" },
113
- { LSM_MATHML_SPACE_NAME_THICK,
114
- "LSM_MATHML_SPACE_NAME_THICK",
115
- "thick" },
116
- { LSM_MATHML_SPACE_NAME_VERY_THICK,
117
- "LSM_MATHML_SPACE_NAME_VERY_THICK",
118
- "very-thick" },
119
- { LSM_MATHML_SPACE_NAME_VERY_VERY_THICK,
120
- "LSM_MATHML_SPACE_NAME_VERY_VERY_THICK",
121
- "very-very-thick" },
122
- { LSM_MATHML_SPACE_NAME_INFINITY,
123
- "LSM_MATHML_SPACE_NAME_INFINITY",
124
- "infinity" },
125
- { 0, NULL, NULL }
126
- };
127
- the_type = g_enum_register_static (
128
- g_intern_static_string ("LsmMathmlSpaceName"),
129
- values);
130
- }
131
- return the_type;
132
- }
133
-
134
- GType
135
- lsm_mathml_unit_get_type (void)
136
- {
137
- static GType the_type = 0;
138
-
139
- if (the_type == 0)
140
- {
141
- static const GEnumValue values[] = {
142
- { LSM_MATHML_UNIT_ERROR,
143
- "LSM_MATHML_UNIT_ERROR",
144
- "error" },
145
- { LSM_MATHML_UNIT_NONE,
146
- "LSM_MATHML_UNIT_NONE",
147
- "none" },
148
- { LSM_MATHML_UNIT_EM,
149
- "LSM_MATHML_UNIT_EM",
150
- "em" },
151
- { LSM_MATHML_UNIT_EX,
152
- "LSM_MATHML_UNIT_EX",
153
- "ex" },
154
- { LSM_MATHML_UNIT_IN,
155
- "LSM_MATHML_UNIT_IN",
156
- "in" },
157
- { LSM_MATHML_UNIT_CM,
158
- "LSM_MATHML_UNIT_CM",
159
- "cm" },
160
- { LSM_MATHML_UNIT_MM,
161
- "LSM_MATHML_UNIT_MM",
162
- "mm" },
163
- { LSM_MATHML_UNIT_PT,
164
- "LSM_MATHML_UNIT_PT",
165
- "pt" },
166
- { LSM_MATHML_UNIT_PX,
167
- "LSM_MATHML_UNIT_PX",
168
- "px" },
169
- { LSM_MATHML_UNIT_PC,
170
- "LSM_MATHML_UNIT_PC",
171
- "pc" },
172
- { LSM_MATHML_UNIT_PERCENT,
173
- "LSM_MATHML_UNIT_PERCENT",
174
- "percent" },
175
- { 0, NULL, NULL }
176
- };
177
- the_type = g_enum_register_static (
178
- g_intern_static_string ("LsmMathmlUnit"),
179
- values);
180
- }
181
- return the_type;
182
- }
183
-
184
- GType
185
- lsm_mathml_font_style_get_type (void)
186
- {
187
- static GType the_type = 0;
188
-
189
- if (the_type == 0)
190
- {
191
- static const GEnumValue values[] = {
192
- { LSM_MATHML_FONT_STYLE_ERROR,
193
- "LSM_MATHML_FONT_STYLE_ERROR",
194
- "error" },
195
- { LSM_MATHML_FONT_STYLE_NORMAL,
196
- "LSM_MATHML_FONT_STYLE_NORMAL",
197
- "normal" },
198
- { LSM_MATHML_FONT_STYLE_ITALIC,
199
- "LSM_MATHML_FONT_STYLE_ITALIC",
200
- "italic" },
201
- { 0, NULL, NULL }
202
- };
203
- the_type = g_enum_register_static (
204
- g_intern_static_string ("LsmMathmlFontStyle"),
205
- values);
206
- }
207
- return the_type;
208
- }
209
-
210
- GType
211
- lsm_mathml_font_weight_get_type (void)
212
- {
213
- static GType the_type = 0;
214
-
215
- if (the_type == 0)
216
- {
217
- static const GEnumValue values[] = {
218
- { LSM_MATHML_FONT_WEIGHT_ERROR,
219
- "LSM_MATHML_FONT_WEIGHT_ERROR",
220
- "error" },
221
- { LSM_MATHML_FONT_WEIGHT_NORMAL,
222
- "LSM_MATHML_FONT_WEIGHT_NORMAL",
223
- "normal" },
224
- { LSM_MATHML_FONT_WEIGHT_BOLD,
225
- "LSM_MATHML_FONT_WEIGHT_BOLD",
226
- "bold" },
227
- { 0, NULL, NULL }
228
- };
229
- the_type = g_enum_register_static (
230
- g_intern_static_string ("LsmMathmlFontWeight"),
231
- values);
232
- }
233
- return the_type;
234
- }
235
-
236
- GType
237
- lsm_mathml_variant_get_type (void)
238
- {
239
- static GType the_type = 0;
240
-
241
- if (the_type == 0)
242
- {
243
- static const GEnumValue values[] = {
244
- { LSM_MATHML_VARIANT_ERROR,
245
- "LSM_MATHML_VARIANT_ERROR",
246
- "error" },
247
- { LSM_MATHML_VARIANT_NORMAL,
248
- "LSM_MATHML_VARIANT_NORMAL",
249
- "normal" },
250
- { LSM_MATHML_VARIANT_BOLD,
251
- "LSM_MATHML_VARIANT_BOLD",
252
- "bold" },
253
- { LSM_MATHML_VARIANT_ITALIC,
254
- "LSM_MATHML_VARIANT_ITALIC",
255
- "italic" },
256
- { LSM_MATHML_VARIANT_BOLD_ITALIC,
257
- "LSM_MATHML_VARIANT_BOLD_ITALIC",
258
- "bold-italic" },
259
- { LSM_MATHML_VARIANT_DOUBLE_STRUCK,
260
- "LSM_MATHML_VARIANT_DOUBLE_STRUCK",
261
- "double-struck" },
262
- { LSM_MATHML_VARIANT_FRAKTUR_BOLD,
263
- "LSM_MATHML_VARIANT_FRAKTUR_BOLD",
264
- "fraktur-bold" },
265
- { LSM_MATHML_VARIANT_SCRIPT,
266
- "LSM_MATHML_VARIANT_SCRIPT",
267
- "script" },
268
- { LSM_MATHML_VARIANT_SCRIPT_BOLD,
269
- "LSM_MATHML_VARIANT_SCRIPT_BOLD",
270
- "script-bold" },
271
- { LSM_MATHML_VARIANT_FRAKTUR,
272
- "LSM_MATHML_VARIANT_FRAKTUR",
273
- "fraktur" },
274
- { LSM_MATHML_VARIANT_SANS_SERIF,
275
- "LSM_MATHML_VARIANT_SANS_SERIF",
276
- "sans-serif" },
277
- { LSM_MATHML_VARIANT_SANS_SERIF_BOLD,
278
- "LSM_MATHML_VARIANT_SANS_SERIF_BOLD",
279
- "sans-serif-bold" },
280
- { LSM_MATHML_VARIANT_SANS_SERIF_ITALIC,
281
- "LSM_MATHML_VARIANT_SANS_SERIF_ITALIC",
282
- "sans-serif-italic" },
283
- { LSM_MATHML_VARIANT_SANS_SERIF_BOLD_ITALIC,
284
- "LSM_MATHML_VARIANT_SANS_SERIF_BOLD_ITALIC",
285
- "sans-serif-bold-italic" },
286
- { LSM_MATHML_VARIANT_MONOSPACE,
287
- "LSM_MATHML_VARIANT_MONOSPACE",
288
- "monospace" },
289
- { 0, NULL, NULL }
290
- };
291
- the_type = g_enum_register_static (
292
- g_intern_static_string ("LsmMathmlVariant"),
293
- values);
294
- }
295
- return the_type;
296
- }
297
-
298
- GType
299
- lsm_mathml_form_get_type (void)
300
- {
301
- static GType the_type = 0;
302
-
303
- if (the_type == 0)
304
- {
305
- static const GEnumValue values[] = {
306
- { LSM_MATHML_FORM_ERROR,
307
- "LSM_MATHML_FORM_ERROR",
308
- "error" },
309
- { LSM_MATHML_FORM_PREFIX,
310
- "LSM_MATHML_FORM_PREFIX",
311
- "prefix" },
312
- { LSM_MATHML_FORM_POSTFIX,
313
- "LSM_MATHML_FORM_POSTFIX",
314
- "postfix" },
315
- { LSM_MATHML_FORM_INFIX,
316
- "LSM_MATHML_FORM_INFIX",
317
- "infix" },
318
- { 0, NULL, NULL }
319
- };
320
- the_type = g_enum_register_static (
321
- g_intern_static_string ("LsmMathmlForm"),
322
- values);
323
- }
324
- return the_type;
325
- }
326
-
327
- GType
328
- lsm_mathml_row_align_get_type (void)
329
- {
330
- static GType the_type = 0;
331
-
332
- if (the_type == 0)
333
- {
334
- static const GEnumValue values[] = {
335
- { LSM_MATHML_ROW_ALIGN_ERROR,
336
- "LSM_MATHML_ROW_ALIGN_ERROR",
337
- "error" },
338
- { LSM_MATHML_ROW_ALIGN_BASELINE,
339
- "LSM_MATHML_ROW_ALIGN_BASELINE",
340
- "baseline" },
341
- { LSM_MATHML_ROW_ALIGN_TOP,
342
- "LSM_MATHML_ROW_ALIGN_TOP",
343
- "top" },
344
- { LSM_MATHML_ROW_ALIGN_BOTTOM,
345
- "LSM_MATHML_ROW_ALIGN_BOTTOM",
346
- "bottom" },
347
- { LSM_MATHML_ROW_ALIGN_CENTER,
348
- "LSM_MATHML_ROW_ALIGN_CENTER",
349
- "center" },
350
- { LSM_MATHML_ROW_ALIGN_AXIS,
351
- "LSM_MATHML_ROW_ALIGN_AXIS",
352
- "axis" },
353
- { 0, NULL, NULL }
354
- };
355
- the_type = g_enum_register_static (
356
- g_intern_static_string ("LsmMathmlRowAlign"),
357
- values);
358
- }
359
- return the_type;
360
- }
361
-
362
- GType
363
- lsm_mathml_column_align_get_type (void)
364
- {
365
- static GType the_type = 0;
366
-
367
- if (the_type == 0)
368
- {
369
- static const GEnumValue values[] = {
370
- { LSM_MATHML_COLUMN_ALIGN_ERROR,
371
- "LSM_MATHML_COLUMN_ALIGN_ERROR",
372
- "error" },
373
- { LSM_MATHML_COLUMN_ALIGN_CENTER,
374
- "LSM_MATHML_COLUMN_ALIGN_CENTER",
375
- "center" },
376
- { LSM_MATHML_COLUMN_ALIGN_LEFT,
377
- "LSM_MATHML_COLUMN_ALIGN_LEFT",
378
- "left" },
379
- { LSM_MATHML_COLUMN_ALIGN_RIGHT,
380
- "LSM_MATHML_COLUMN_ALIGN_RIGHT",
381
- "right" },
382
- { 0, NULL, NULL }
383
- };
384
- the_type = g_enum_register_static (
385
- g_intern_static_string ("LsmMathmlColumnAlign"),
386
- values);
387
- }
388
- return the_type;
389
- }
390
-
391
- GType
392
- lsm_mathml_line_get_type (void)
393
- {
394
- static GType the_type = 0;
395
-
396
- if (the_type == 0)
397
- {
398
- static const GEnumValue values[] = {
399
- { LSM_MATHML_LINE_ERROR,
400
- "LSM_MATHML_LINE_ERROR",
401
- "error" },
402
- { LSM_MATHML_LINE_NONE,
403
- "LSM_MATHML_LINE_NONE",
404
- "none" },
405
- { LSM_MATHML_LINE_SOLID,
406
- "LSM_MATHML_LINE_SOLID",
407
- "solid" },
408
- { LSM_MATHML_LINE_DASHED,
409
- "LSM_MATHML_LINE_DASHED",
410
- "dashed" },
411
- { 0, NULL, NULL }
412
- };
413
- the_type = g_enum_register_static (
414
- g_intern_static_string ("LsmMathmlLine"),
415
- values);
416
- }
417
- return the_type;
418
- }
419
-
420
- GType
421
- lsm_mathml_script_level_sign_get_type (void)
422
- {
423
- static GType the_type = 0;
424
-
425
- if (the_type == 0)
426
- {
427
- static const GEnumValue values[] = {
428
- { LSM_MATHML_SCRIPT_LEVEL_SIGN_ERROR,
429
- "LSM_MATHML_SCRIPT_LEVEL_SIGN_ERROR",
430
- "error" },
431
- { LSM_MATHML_SCRIPT_LEVEL_SIGN_NONE,
432
- "LSM_MATHML_SCRIPT_LEVEL_SIGN_NONE",
433
- "none" },
434
- { LSM_MATHML_SCRIPT_LEVEL_SIGN_PLUS,
435
- "LSM_MATHML_SCRIPT_LEVEL_SIGN_PLUS",
436
- "plus" },
437
- { LSM_MATHML_SCRIPT_LEVEL_SIGN_MINUS,
438
- "LSM_MATHML_SCRIPT_LEVEL_SIGN_MINUS",
439
- "minus" },
440
- { 0, NULL, NULL }
441
- };
442
- the_type = g_enum_register_static (
443
- g_intern_static_string ("LsmMathmlScriptLevelSign"),
444
- values);
445
- }
446
- return the_type;
447
- }
448
-
449
- /* enumerations from "lsmmathmltablerowelement.h" */
450
- #include "lsmmathmltablerowelement.h"
451
-
452
- GType
453
- lsm_mathml_table_row_element_type_get_type (void)
454
- {
455
- static GType the_type = 0;
456
-
457
- if (the_type == 0)
458
- {
459
- static const GEnumValue values[] = {
460
- { LSM_MATHML_TABLE_ROW_ELEMENT_TYPE_ROW,
461
- "LSM_MATHML_TABLE_ROW_ELEMENT_TYPE_ROW",
462
- "row" },
463
- { LSM_MATHML_TABLE_ROW_ELEMENT_TYPE_LABELED_ROW,
464
- "LSM_MATHML_TABLE_ROW_ELEMENT_TYPE_LABELED_ROW",
465
- "labeled-row" },
466
- { 0, NULL, NULL }
467
- };
468
- the_type = g_enum_register_static (
469
- g_intern_static_string ("LsmMathmlTableRowElementType"),
470
- values);
471
- }
472
- return the_type;
473
- }
474
-
475
- /* enumerations from "lsmmathmlradicalelement.h" */
476
- #include "lsmmathmlradicalelement.h"
477
-
478
- GType
479
- lsm_mathml_radical_element_type_get_type (void)
480
- {
481
- static GType the_type = 0;
482
-
483
- if (the_type == 0)
484
- {
485
- static const GEnumValue values[] = {
486
- { LSM_MATHML_RADICAL_ELEMENT_TYPE_SQRT,
487
- "LSM_MATHML_RADICAL_ELEMENT_TYPE_SQRT",
488
- "sqrt" },
489
- { LSM_MATHML_RADICAL_ELEMENT_TYPE_ROOT,
490
- "LSM_MATHML_RADICAL_ELEMENT_TYPE_ROOT",
491
- "root" },
492
- { 0, NULL, NULL }
493
- };
494
- the_type = g_enum_register_static (
495
- g_intern_static_string ("LsmMathmlRadicalElementType"),
496
- values);
497
- }
498
- return the_type;
499
- }
500
-
501
- /* enumerations from "lsmmathmlscriptelement.h" */
502
- #include "lsmmathmlscriptelement.h"
503
-
504
- GType
505
- lsm_mathml_script_element_type_get_type (void)
506
- {
507
- static GType the_type = 0;
508
-
509
- if (the_type == 0)
510
- {
511
- static const GEnumValue values[] = {
512
- { LSM_MATHML_SCRIPT_ELEMENT_TYPE_SUB,
513
- "LSM_MATHML_SCRIPT_ELEMENT_TYPE_SUB",
514
- "sub" },
515
- { LSM_MATHML_SCRIPT_ELEMENT_TYPE_SUP,
516
- "LSM_MATHML_SCRIPT_ELEMENT_TYPE_SUP",
517
- "sup" },
518
- { LSM_MATHML_SCRIPT_ELEMENT_TYPE_SUB_SUP,
519
- "LSM_MATHML_SCRIPT_ELEMENT_TYPE_SUB_SUP",
520
- "sub-sup" },
521
- { 0, NULL, NULL }
522
- };
523
- the_type = g_enum_register_static (
524
- g_intern_static_string ("LsmMathmlScriptElementType"),
525
- values);
526
- }
527
- return the_type;
528
- }
529
-
530
- /* enumerations from "lsmmathmlunderoverelement.h" */
531
- #include "lsmmathmlunderoverelement.h"
532
-
533
- GType
534
- lsm_mathml_under_over_element_type_get_type (void)
535
- {
536
- static GType the_type = 0;
537
-
538
- if (the_type == 0)
539
- {
540
- static const GEnumValue values[] = {
541
- { LSM_MATHML_UNDER_OVER_ELEMENT_TYPE_UNDER,
542
- "LSM_MATHML_UNDER_OVER_ELEMENT_TYPE_UNDER",
543
- "under" },
544
- { LSM_MATHML_UNDER_OVER_ELEMENT_TYPE_OVER,
545
- "LSM_MATHML_UNDER_OVER_ELEMENT_TYPE_OVER",
546
- "over" },
547
- { LSM_MATHML_UNDER_OVER_ELEMENT_TYPE_UNDER_OVER,
548
- "LSM_MATHML_UNDER_OVER_ELEMENT_TYPE_UNDER_OVER",
549
- "under-over" },
550
- { 0, NULL, NULL }
551
- };
552
- the_type = g_enum_register_static (
553
- g_intern_static_string ("LsmMathmlUnderOverElementType"),
554
- values);
555
- }
556
- return the_type;
557
- }
558
-
559
- /* enumerations from "lsmmathmlpresentationtoken.h" */
560
- #include "lsmmathmlpresentationtoken.h"
561
-
562
- GType
563
- lsm_mathml_presentation_token_type_get_type (void)
564
- {
565
- static GType the_type = 0;
566
-
567
- if (the_type == 0)
568
- {
569
- static const GEnumValue values[] = {
570
- { LSM_MATHML_PRESENTATION_TOKEN_TYPE_NUMBER,
571
- "LSM_MATHML_PRESENTATION_TOKEN_TYPE_NUMBER",
572
- "number" },
573
- { LSM_MATHML_PRESENTATION_TOKEN_TYPE_IDENTIFIER,
574
- "LSM_MATHML_PRESENTATION_TOKEN_TYPE_IDENTIFIER",
575
- "identifier" },
576
- { LSM_MATHML_PRESENTATION_TOKEN_TYPE_TEXT,
577
- "LSM_MATHML_PRESENTATION_TOKEN_TYPE_TEXT",
578
- "text" },
579
- { 0, NULL, NULL }
580
- };
581
- the_type = g_enum_register_static (
582
- g_intern_static_string ("LsmMathmlPresentationTokenType"),
583
- values);
584
- }
585
- return the_type;
586
- }
587
-
588
- /* enumerations from "lsmmathmlview.h" */
589
- #include "lsmmathmlview.h"
590
-
591
- GType
592
- lsm_mathml_glyph_flags_get_type (void)
593
- {
594
- static GType the_type = 0;
595
-
596
- if (the_type == 0)
597
- {
598
- static const GFlagsValue values[] = {
599
- { LSM_MATHML_GLYPH_FLAG_STRETCH_VERTICAL,
600
- "LSM_MATHML_GLYPH_FLAG_STRETCH_VERTICAL",
601
- "stretch-vertical" },
602
- { LSM_MATHML_GLYPH_FLAG_STRETCH_HORIZONTAL,
603
- "LSM_MATHML_GLYPH_FLAG_STRETCH_HORIZONTAL",
604
- "stretch-horizontal" },
605
- { LSM_MATHML_GLYPH_FLAG_TYPE_SIZED,
606
- "LSM_MATHML_GLYPH_FLAG_TYPE_SIZED",
607
- "type-sized" },
608
- { LSM_MATHML_GLYPH_FLAG_ALIGN_AXIS,
609
- "LSM_MATHML_GLYPH_FLAG_ALIGN_AXIS",
610
- "align-axis" },
611
- { LSM_MATHML_GLYPH_FLAG_HAS_LARGE_VERSION,
612
- "LSM_MATHML_GLYPH_FLAG_HAS_LARGE_VERSION",
613
- "has-large-version" },
614
- { LSM_MATHML_GLYPH_FLAG_INTEGRAL_SLANT,
615
- "LSM_MATHML_GLYPH_FLAG_INTEGRAL_SLANT",
616
- "integral-slant" },
617
- { 0, NULL, NULL }
618
- };
619
- the_type = g_flags_register_static (
620
- g_intern_static_string ("LsmMathmlGlyphFlags"),
621
- values);
622
- }
623
- return the_type;
624
- }
625
-
626
- GType
627
- lsm_mathml_font_get_type (void)
628
- {
629
- static GType the_type = 0;
630
-
631
- if (the_type == 0)
632
- {
633
- static const GEnumValue values[] = {
634
- { LSM_MATHML_FONT_ERROR,
635
- "LSM_MATHML_FONT_ERROR",
636
- "error" },
637
- { LSM_MATHML_FONT_DEFAULT,
638
- "LSM_MATHML_FONT_DEFAULT",
639
- "default" },
640
- { LSM_MATHML_FONT_CMR10,
641
- "LSM_MATHML_FONT_CMR10",
642
- "cmr10" },
643
- { LSM_MATHML_FONT_CMMI10,
644
- "LSM_MATHML_FONT_CMMI10",
645
- "cmmi10" },
646
- { LSM_MATHML_FONT_CMEX10,
647
- "LSM_MATHML_FONT_CMEX10",
648
- "cmex10" },
649
- { LSM_MATHML_FONT_CMSY10,
650
- "LSM_MATHML_FONT_CMSY10",
651
- "cmsy10" },
652
- { LSM_MATHML_FONT_SYMBOL,
653
- "LSM_MATHML_FONT_SYMBOL",
654
- "symbol" },
655
- { 0, NULL, NULL }
656
- };
657
- the_type = g_enum_register_static (
658
- g_intern_static_string ("LsmMathmlFont"),
659
- values);
660
- }
661
- return the_type;
662
- }
663
-
664
-
665
- /* Generated data ends here */
666
-