mathematical 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/ext/mathematical/extconf.rb +14 -0
- data/ext/mathematical/itex2MML.h +63 -0
- data/ext/mathematical/lasemrender.c +257 -0
- data/ext/mathematical/lex.yy.c +6548 -0
- data/ext/mathematical/lsm.c +31 -0
- data/ext/mathematical/lsm.h +39 -0
- data/ext/mathematical/lsmattributes.c +279 -0
- data/ext/mathematical/lsmattributes.h +75 -0
- data/ext/mathematical/lsmcairo.c +598 -0
- data/ext/mathematical/lsmcairo.h +51 -0
- data/ext/mathematical/lsmdebug.c +183 -0
- data/ext/mathematical/lsmdebug.h +73 -0
- data/ext/mathematical/lsmdom.h +43 -0
- data/ext/mathematical/lsmdomcharacterdata.c +114 -0
- data/ext/mathematical/lsmdomcharacterdata.h +59 -0
- data/ext/mathematical/lsmdomdocument.c +255 -0
- data/ext/mathematical/lsmdomdocument.h +75 -0
- data/ext/mathematical/lsmdomdocumentfragment.c +81 -0
- data/ext/mathematical/lsmdomdocumentfragment.h +55 -0
- data/ext/mathematical/lsmdomelement.c +148 -0
- data/ext/mathematical/lsmdomelement.h +62 -0
- data/ext/mathematical/lsmdomentities.c +2166 -0
- data/ext/mathematical/lsmdomentities.h +35 -0
- data/ext/mathematical/lsmdomenumtypes.c +99 -0
- data/ext/mathematical/lsmdomenumtypes.h +26 -0
- data/ext/mathematical/lsmdomimplementation.c +82 -0
- data/ext/mathematical/lsmdomimplementation.h +41 -0
- data/ext/mathematical/lsmdomnamednodemap.c +118 -0
- data/ext/mathematical/lsmdomnamednodemap.h +64 -0
- data/ext/mathematical/lsmdomnode.c +737 -0
- data/ext/mathematical/lsmdomnode.h +122 -0
- data/ext/mathematical/lsmdomnodelist.c +70 -0
- data/ext/mathematical/lsmdomnodelist.h +58 -0
- data/ext/mathematical/lsmdomparser.c +461 -0
- data/ext/mathematical/lsmdomparser.h +54 -0
- data/ext/mathematical/lsmdomtext.c +82 -0
- data/ext/mathematical/lsmdomtext.h +55 -0
- data/ext/mathematical/lsmdomtypes.h +44 -0
- data/ext/mathematical/lsmdomview.c +422 -0
- data/ext/mathematical/lsmdomview.h +94 -0
- data/ext/mathematical/lsmitex.c +76 -0
- data/ext/mathematical/lsmitex.h +36 -0
- data/ext/mathematical/lsmmathml.h +66 -0
- data/ext/mathematical/lsmmathmlactionelement.c +93 -0
- data/ext/mathematical/lsmmathmlactionelement.h +57 -0
- data/ext/mathematical/lsmmathmlaligngroupelement.c +102 -0
- data/ext/mathematical/lsmmathmlaligngroupelement.h +56 -0
- data/ext/mathematical/lsmmathmlalignmarkelement.c +102 -0
- data/ext/mathematical/lsmmathmlalignmarkelement.h +56 -0
- data/ext/mathematical/lsmmathmlattributes.c +197 -0
- data/ext/mathematical/lsmmathmlattributes.h +126 -0
- data/ext/mathematical/lsmmathmldocument.c +304 -0
- data/ext/mathematical/lsmmathmldocument.h +61 -0
- data/ext/mathematical/lsmmathmlelement.c +491 -0
- data/ext/mathematical/lsmmathmlelement.h +107 -0
- data/ext/mathematical/lsmmathmlenums.c +429 -0
- data/ext/mathematical/lsmmathmlenums.h +182 -0
- data/ext/mathematical/lsmmathmlenumtypes.c +666 -0
- data/ext/mathematical/lsmmathmlenumtypes.h +90 -0
- data/ext/mathematical/lsmmathmlerrorelement.c +58 -0
- data/ext/mathematical/lsmmathmlerrorelement.h +56 -0
- data/ext/mathematical/lsmmathmlfencedelement.c +178 -0
- data/ext/mathematical/lsmmathmlfencedelement.h +65 -0
- data/ext/mathematical/lsmmathmlfractionelement.c +253 -0
- data/ext/mathematical/lsmmathmlfractionelement.h +62 -0
- data/ext/mathematical/lsmmathmlglyphtableams.c +597 -0
- data/ext/mathematical/lsmmathmlglyphtableams.h +45 -0
- data/ext/mathematical/lsmmathmlitexelement.c +187 -0
- data/ext/mathematical/lsmmathmlitexelement.h +60 -0
- data/ext/mathematical/lsmmathmllayoututils.c +191 -0
- data/ext/mathematical/lsmmathmllayoututils.h +58 -0
- data/ext/mathematical/lsmmathmlmathelement.c +204 -0
- data/ext/mathematical/lsmmathmlmathelement.h +81 -0
- data/ext/mathematical/lsmmathmloperatordictionary.c +3332 -0
- data/ext/mathematical/lsmmathmloperatordictionary.h +54 -0
- data/ext/mathematical/lsmmathmloperatorelement.c +307 -0
- data/ext/mathematical/lsmmathmloperatorelement.h +73 -0
- data/ext/mathematical/lsmmathmlpaddedelement.c +58 -0
- data/ext/mathematical/lsmmathmlpaddedelement.h +56 -0
- data/ext/mathematical/lsmmathmlphantomelement.c +71 -0
- data/ext/mathematical/lsmmathmlphantomelement.h +56 -0
- data/ext/mathematical/lsmmathmlpresentationcontainer.c +43 -0
- data/ext/mathematical/lsmmathmlpresentationcontainer.h +54 -0
- data/ext/mathematical/lsmmathmlpresentationtoken.c +303 -0
- data/ext/mathematical/lsmmathmlpresentationtoken.h +83 -0
- data/ext/mathematical/lsmmathmlradicalelement.c +266 -0
- data/ext/mathematical/lsmmathmlradicalelement.h +71 -0
- data/ext/mathematical/lsmmathmlrowelement.c +58 -0
- data/ext/mathematical/lsmmathmlrowelement.h +56 -0
- data/ext/mathematical/lsmmathmlscriptelement.c +282 -0
- data/ext/mathematical/lsmmathmlscriptelement.h +78 -0
- data/ext/mathematical/lsmmathmlsemanticselement.c +84 -0
- data/ext/mathematical/lsmmathmlsemanticselement.h +56 -0
- data/ext/mathematical/lsmmathmlspaceelement.c +142 -0
- data/ext/mathematical/lsmmathmlspaceelement.h +60 -0
- data/ext/mathematical/lsmmathmlstringelement.c +123 -0
- data/ext/mathematical/lsmmathmlstringelement.h +58 -0
- data/ext/mathematical/lsmmathmlstyle.c +130 -0
- data/ext/mathematical/lsmmathmlstyle.h +81 -0
- data/ext/mathematical/lsmmathmlstyleelement.c +307 -0
- data/ext/mathematical/lsmmathmlstyleelement.h +87 -0
- data/ext/mathematical/lsmmathmltablecellelement.c +122 -0
- data/ext/mathematical/lsmmathmltablecellelement.h +62 -0
- data/ext/mathematical/lsmmathmltableelement.c +545 -0
- data/ext/mathematical/lsmmathmltableelement.h +78 -0
- data/ext/mathematical/lsmmathmltablerowelement.c +120 -0
- data/ext/mathematical/lsmmathmltablerowelement.h +64 -0
- data/ext/mathematical/lsmmathmltraits.c +819 -0
- data/ext/mathematical/lsmmathmltraits.h +119 -0
- data/ext/mathematical/lsmmathmltypes.h +66 -0
- data/ext/mathematical/lsmmathmlunderoverelement.c +485 -0
- data/ext/mathematical/lsmmathmlunderoverelement.h +82 -0
- data/ext/mathematical/lsmmathmlutils.c +170 -0
- data/ext/mathematical/lsmmathmlutils.h +50 -0
- data/ext/mathematical/lsmmathmlview.c +1048 -0
- data/ext/mathematical/lsmmathmlview.h +164 -0
- data/ext/mathematical/lsmproperties.c +418 -0
- data/ext/mathematical/lsmproperties.h +85 -0
- data/ext/mathematical/lsmstr.c +231 -0
- data/ext/mathematical/lsmstr.h +114 -0
- data/ext/mathematical/lsmsvg.h +67 -0
- data/ext/mathematical/lsmsvgaelement.c +73 -0
- data/ext/mathematical/lsmsvgaelement.h +55 -0
- data/ext/mathematical/lsmsvgattributes.h +118 -0
- data/ext/mathematical/lsmsvgcircleelement.c +153 -0
- data/ext/mathematical/lsmsvgcircleelement.h +59 -0
- data/ext/mathematical/lsmsvgclippathelement.c +134 -0
- data/ext/mathematical/lsmsvgclippathelement.h +59 -0
- data/ext/mathematical/lsmsvgcolors.c +212 -0
- data/ext/mathematical/lsmsvgcolors.h +39 -0
- data/ext/mathematical/lsmsvgdefselement.c +74 -0
- data/ext/mathematical/lsmsvgdefselement.h +55 -0
- data/ext/mathematical/lsmsvgdocument.c +288 -0
- data/ext/mathematical/lsmsvgdocument.h +64 -0
- data/ext/mathematical/lsmsvgelement.c +373 -0
- data/ext/mathematical/lsmsvgelement.h +81 -0
- data/ext/mathematical/lsmsvgellipseelement.c +158 -0
- data/ext/mathematical/lsmsvgellipseelement.h +60 -0
- data/ext/mathematical/lsmsvgenums.c +544 -0
- data/ext/mathematical/lsmsvgenums.h +357 -0
- data/ext/mathematical/lsmsvgenumtypes.c +1083 -0
- data/ext/mathematical/lsmsvgenumtypes.h +111 -0
- data/ext/mathematical/lsmsvgfilterblend.c +105 -0
- data/ext/mathematical/lsmsvgfilterblend.h +58 -0
- data/ext/mathematical/lsmsvgfiltercomposite.c +109 -0
- data/ext/mathematical/lsmsvgfiltercomposite.h +58 -0
- data/ext/mathematical/lsmsvgfilterelement.c +266 -0
- data/ext/mathematical/lsmsvgfilterelement.h +66 -0
- data/ext/mathematical/lsmsvgfilterflood.c +86 -0
- data/ext/mathematical/lsmsvgfilterflood.h +55 -0
- data/ext/mathematical/lsmsvgfiltergaussianblur.c +114 -0
- data/ext/mathematical/lsmsvgfiltergaussianblur.h +57 -0
- data/ext/mathematical/lsmsvgfiltermerge.c +98 -0
- data/ext/mathematical/lsmsvgfiltermerge.h +55 -0
- data/ext/mathematical/lsmsvgfiltermergenode.c +87 -0
- data/ext/mathematical/lsmsvgfiltermergenode.h +57 -0
- data/ext/mathematical/lsmsvgfilteroffset.c +112 -0
- data/ext/mathematical/lsmsvgfilteroffset.h +58 -0
- data/ext/mathematical/lsmsvgfilterprimitive.c +168 -0
- data/ext/mathematical/lsmsvgfilterprimitive.h +66 -0
- data/ext/mathematical/lsmsvgfilterspecularlighting.c +127 -0
- data/ext/mathematical/lsmsvgfilterspecularlighting.h +60 -0
- data/ext/mathematical/lsmsvgfiltersurface.c +455 -0
- data/ext/mathematical/lsmsvgfiltersurface.h +66 -0
- data/ext/mathematical/lsmsvgfiltertile.c +102 -0
- data/ext/mathematical/lsmsvgfiltertile.h +57 -0
- data/ext/mathematical/lsmsvggelement.c +73 -0
- data/ext/mathematical/lsmsvggelement.h +55 -0
- data/ext/mathematical/lsmsvggradientelement.c +151 -0
- data/ext/mathematical/lsmsvggradientelement.h +68 -0
- data/ext/mathematical/lsmsvgimageelement.c +261 -0
- data/ext/mathematical/lsmsvgimageelement.h +67 -0
- data/ext/mathematical/lsmsvglength.c +152 -0
- data/ext/mathematical/lsmsvglength.h +65 -0
- data/ext/mathematical/lsmsvglineargradientelement.c +271 -0
- data/ext/mathematical/lsmsvglineargradientelement.h +60 -0
- data/ext/mathematical/lsmsvglineelement.c +153 -0
- data/ext/mathematical/lsmsvglineelement.h +60 -0
- data/ext/mathematical/lsmsvgmarkerelement.c +266 -0
- data/ext/mathematical/lsmsvgmarkerelement.h +74 -0
- data/ext/mathematical/lsmsvgmaskelement.c +232 -0
- data/ext/mathematical/lsmsvgmaskelement.h +64 -0
- data/ext/mathematical/lsmsvgmatrix.c +205 -0
- data/ext/mathematical/lsmsvgmatrix.h +59 -0
- data/ext/mathematical/lsmsvgpathelement.c +115 -0
- data/ext/mathematical/lsmsvgpathelement.h +59 -0
- data/ext/mathematical/lsmsvgpatternelement.c +398 -0
- data/ext/mathematical/lsmsvgpatternelement.h +69 -0
- data/ext/mathematical/lsmsvgpolygonelement.c +106 -0
- data/ext/mathematical/lsmsvgpolygonelement.h +57 -0
- data/ext/mathematical/lsmsvgpolylineelement.c +106 -0
- data/ext/mathematical/lsmsvgpolylineelement.h +57 -0
- data/ext/mathematical/lsmsvgradialgradientelement.c +323 -0
- data/ext/mathematical/lsmsvgradialgradientelement.h +61 -0
- data/ext/mathematical/lsmsvgrectelement.c +184 -0
- data/ext/mathematical/lsmsvgrectelement.h +62 -0
- data/ext/mathematical/lsmsvgstopelement.c +106 -0
- data/ext/mathematical/lsmsvgstopelement.h +57 -0
- data/ext/mathematical/lsmsvgstyle.c +560 -0
- data/ext/mathematical/lsmsvgstyle.h +217 -0
- data/ext/mathematical/lsmsvgsvgelement.c +260 -0
- data/ext/mathematical/lsmsvgsvgelement.h +71 -0
- data/ext/mathematical/lsmsvgswitchelement.c +103 -0
- data/ext/mathematical/lsmsvgswitchelement.h +55 -0
- data/ext/mathematical/lsmsvgsymbolelement.c +74 -0
- data/ext/mathematical/lsmsvgsymbolelement.h +55 -0
- data/ext/mathematical/lsmsvgtextelement.c +203 -0
- data/ext/mathematical/lsmsvgtextelement.h +60 -0
- data/ext/mathematical/lsmsvgtraits.c +1232 -0
- data/ext/mathematical/lsmsvgtraits.h +104 -0
- data/ext/mathematical/lsmsvgtransformable.c +106 -0
- data/ext/mathematical/lsmsvgtransformable.h +54 -0
- data/ext/mathematical/lsmsvgtspanelement.c +174 -0
- data/ext/mathematical/lsmsvgtspanelement.h +60 -0
- data/ext/mathematical/lsmsvgtypes.h +77 -0
- data/ext/mathematical/lsmsvguseelement.c +237 -0
- data/ext/mathematical/lsmsvguseelement.h +69 -0
- data/ext/mathematical/lsmsvgview.c +2583 -0
- data/ext/mathematical/lsmsvgview.h +179 -0
- data/ext/mathematical/lsmtraits.c +119 -0
- data/ext/mathematical/lsmtraits.h +49 -0
- data/ext/mathematical/lsmtypes.h +36 -0
- data/ext/mathematical/lsmutils.c +54 -0
- data/ext/mathematical/lsmutils.h +56 -0
- data/ext/mathematical/mathematical.c +145 -0
- data/ext/mathematical/y.tab.c +6179 -0
- data/ext/mathematical/y.tab.h +389 -0
- data/lib/mathematical/version.rb +1 -1
- data/mathematical.gemspec +8 -6
- data/test/mathematical/basic_test.rb +9 -0
- data/test/mathematical/fixtures/after/brackets_display.html +1 -0
- data/test/mathematical/fixtures/after/compliance_accents.html +17 -0
- data/test/mathematical/fixtures/after/compliance_arrows.html +71 -0
- data/test/mathematical/fixtures/after/compliance_colors.html +4 -0
- data/test/mathematical/fixtures/after/compliance_greek_letters.html +42 -0
- data/test/mathematical/fixtures/after/compliance_large_math.html +19 -0
- data/test/mathematical/fixtures/after/compliance_log_symbols.html +34 -0
- data/test/mathematical/fixtures/after/compliance_operators.html +262 -0
- data/test/mathematical/fixtures/after/dollar_sign_inline.html +1 -0
- data/test/mathematical/fixtures/after/equation_display.html +1 -0
- data/test/mathematical/fixtures/after/multiple_dollar_inline.html +1 -0
- data/test/mathematical/fixtures/after/parens_inline.html +1 -0
- data/test/mathematical/fixtures/before/brackets_display.text +1 -0
- data/test/mathematical/fixtures/before/compliance_accents.text +17 -0
- data/test/mathematical/fixtures/before/compliance_arrows.text +71 -0
- data/test/mathematical/fixtures/before/compliance_colors.text +4 -0
- data/test/mathematical/fixtures/before/compliance_greek_letters.text +42 -0
- data/test/mathematical/fixtures/before/compliance_large_math.text +19 -0
- data/test/mathematical/fixtures/before/compliance_log_symbols.text +34 -0
- data/test/mathematical/fixtures/before/compliance_operators.text +262 -0
- data/test/mathematical/fixtures/before/dollar_sign_inline.text +1 -0
- data/test/mathematical/fixtures/before/equation_display.text +1 -0
- data/test/mathematical/fixtures/before/multiple_dollar_inline.text +1 -0
- data/test/mathematical/fixtures/before/parens_inline.text +1 -0
- data/test/mathematical/fixtures/performance/big_file.text +1767 -0
- data/test/mathematical/fixtures_test.rb +45 -0
- data/test/mathematical/maliciousness_test.rb +45 -0
- data/test/mathematical/performance_test.rb +15 -0
- data/test/test_helper.rb +5 -0
- metadata +301 -14
- data/lib/mathematical.bundle +0 -0
- data/lib/mathematical/mathematical.bundle +0 -0
|
@@ -0,0 +1,182 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,666 @@
|
|
|
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
|
+
|