mathtype_to_mathml 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,253 @@
1
+ <math>
2
+ <semantics>
3
+ <mrow>
4
+ <mtable>
5
+ <mtr>
6
+ <mtd>
7
+ <mtable columnalign='left'>
8
+ <mtr>
9
+ <mtd>
10
+ <mi>d</mi>
11
+ </mtd>
12
+ </mtr>
13
+ <mtr>
14
+ <mtd>
15
+ <mi>g</mi>
16
+ </mtd>
17
+ </mtr>
18
+ <mtr>
19
+ <mtd>
20
+ <mi>b</mi>
21
+ </mtd>
22
+ </mtr>
23
+ <mtr>
24
+ <mtd>
25
+ <mi>a</mi>
26
+ </mtd>
27
+ </mtr>
28
+ <mtr>
29
+ <mtd>
30
+ <mi>b</mi>
31
+ </mtd>
32
+ </mtr>
33
+ <mtr>
34
+ <mtd>
35
+ <mi>c</mi>
36
+ </mtd>
37
+ </mtr>
38
+ </mtable>
39
+
40
+ </mtd>
41
+ <mtd>
42
+ <mtable columnalign='left'>
43
+ <mtr>
44
+ <mtd>
45
+ <mi>d</mi>
46
+ </mtd>
47
+ </mtr>
48
+ <mtr>
49
+ <mtd>
50
+ <mi>b</mi>
51
+ </mtd>
52
+ </mtr>
53
+ <mtr>
54
+ <mtd>
55
+ <mi>d</mi>
56
+ </mtd>
57
+ </mtr>
58
+ <mtr>
59
+ <mtd>
60
+ <mi>a</mi>
61
+ </mtd>
62
+ </mtr>
63
+ <mtr>
64
+ <mtd>
65
+ <mi>b</mi>
66
+ </mtd>
67
+ </mtr>
68
+ <mtr>
69
+ <mtd>
70
+ <mi>c</mi>
71
+ </mtd>
72
+ </mtr>
73
+ </mtable>
74
+
75
+ </mtd>
76
+ <mtd>
77
+ <mtable columnalign='left'>
78
+ <mtr>
79
+ <mtd>
80
+ <mi>c</mi>
81
+ </mtd>
82
+ </mtr>
83
+ <mtr>
84
+ <mtd>
85
+ <mi>b</mi>
86
+ </mtd>
87
+ </mtr>
88
+ <mtr>
89
+ <mtd>
90
+ <mi>d</mi>
91
+ </mtd>
92
+ </mtr>
93
+ <mtr>
94
+ <mtd>
95
+ <mi>d</mi>
96
+ </mtd>
97
+ </mtr>
98
+ <mtr>
99
+ <mtd>
100
+ <mi>b</mi>
101
+ </mtd>
102
+ </mtr>
103
+ <mtr>
104
+ <mtd>
105
+ <mi>e</mi>
106
+ </mtd>
107
+ </mtr>
108
+ </mtable>
109
+
110
+ </mtd>
111
+ </mtr>
112
+ <mtr>
113
+ <mtd>
114
+ <mtable columnalign='left'>
115
+ <mtr>
116
+ <mtd>
117
+ <mi>a</mi>
118
+ </mtd>
119
+ </mtr>
120
+ <mtr>
121
+ <mtd>
122
+ <mi>b</mi>
123
+ </mtd>
124
+ </mtr>
125
+ </mtable>
126
+
127
+ </mtd>
128
+ <mtd>
129
+ <mtable columnalign='left'>
130
+ <mtr>
131
+ <mtd>
132
+ <mi>c</mi>
133
+ </mtd>
134
+ </mtr>
135
+ <mtr>
136
+ <mtd>
137
+ <mi>d</mi>
138
+ </mtd>
139
+ </mtr>
140
+ </mtable>
141
+
142
+ </mtd>
143
+ <mtd>
144
+ <mtable columnalign='left'>
145
+ <mtr>
146
+ <mtd>
147
+ <mi>e</mi>
148
+ </mtd>
149
+ </mtr>
150
+ <mtr>
151
+ <mtd>
152
+ <mi>f</mi>
153
+ </mtd>
154
+ </mtr>
155
+ </mtable>
156
+
157
+ </mtd>
158
+ </mtr>
159
+ <mtr>
160
+ <mtd>
161
+ <mi>x</mi>
162
+ </mtd>
163
+ <mtd>
164
+ <mi>y</mi>
165
+ </mtd>
166
+ <mtd>
167
+ <mi>z</mi>
168
+ </mtd>
169
+ </mtr>
170
+
171
+ </mtable><mo>+</mo><mtable>
172
+ <mtr>
173
+ <mtd>
174
+ <mrow>
175
+ <mi>a</mi><mo>+</mo><mi>b</mi></mrow>
176
+ </mtd>
177
+ <mtd>
178
+ <mi>d</mi>
179
+ </mtd>
180
+ <mtd>
181
+ <mrow>
182
+ <mn>3</mn><mi>e</mi></mrow>
183
+ </mtd>
184
+ </mtr>
185
+ <mtr>
186
+ <mtd>
187
+ <mrow>
188
+ <mi>v</mi><mo>&#x2212;</mo><mn>2</mn></mrow>
189
+ </mtd>
190
+ <mtd>
191
+ <mrow>
192
+ <mi>r</mi><mo>+</mo><mi>l</mi></mrow>
193
+ </mtd>
194
+ <mtd>
195
+ <mrow>
196
+ <mi>d</mi><mi>b</mi><mo>+</mo><mn>3</mn></mrow>
197
+ </mtd>
198
+ </mtr>
199
+ <mtr>
200
+ <mtd>
201
+ <mi>x</mi>
202
+ </mtd>
203
+ <mtd>
204
+ <mi>x</mi>
205
+ </mtd>
206
+ <mtd>
207
+ <mi>s</mi>
208
+ </mtd>
209
+ </mtr>
210
+
211
+ </mtable><mo>+</mo><mtable columnalign='right'>
212
+ <mtr columnalign='right'>
213
+ <mtd columnalign='right'>
214
+ <mrow>
215
+ <mi>a</mi><mo>+</mo><mi>b</mi></mrow>
216
+ </mtd>
217
+ <mtd columnalign='right'>
218
+ <mrow>
219
+ <mi>c</mi><mo>+</mo><mi>d</mi></mrow>
220
+ </mtd>
221
+ <mtd columnalign='right'>
222
+ <mi>w</mi>
223
+ </mtd>
224
+ </mtr>
225
+ <mtr columnalign='right'>
226
+ <mtd columnalign='right'>
227
+ <mrow>
228
+ <mi>c</mi><mo>+</mo><mn>2</mn></mrow>
229
+ </mtd>
230
+ <mtd columnalign='right'>
231
+ <mi>e</mi>
232
+ </mtd>
233
+ <mtd columnalign='right'>
234
+ <mrow>
235
+ <mi>e</mi><mo>+</mo><mn>3</mn></mrow>
236
+ </mtd>
237
+ </mtr>
238
+ <mtr columnalign='right'>
239
+ <mtd columnalign='right'>
240
+ <mi>e</mi>
241
+ </mtd>
242
+ <mtd columnalign='right'>
243
+ <mi>w</mi>
244
+ </mtd>
245
+ <mtd columnalign='right'>
246
+ <mi>x</mi>
247
+ </mtd>
248
+ </mtr>
249
+
250
+ </mtable></mrow>
251
+ <annotation encoding='MathType-MTEF'>MathType@MTEF@5@5@+=faaagCart1ev2aqaKnaaaaWenf2ys9wBH5garuavP1wzZbItLDhis9wBH5garmWu51MyVXgaruWqVvNCPvMCG4uz3bqee0evGueE0jxyaibaieYlf9irVeeu0dXdh9vqqj=hHeeu0xXdbba9frFj0=OqFfea0dXdd9vqaq=JfrVkFHe9pgea0dXdar=Jb9hs0dXdbPYxe9vr0=vr0=vqpi0dc9GqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOqaauaabeqadmaaaqaabeqaaiaadsgaaeaacaWGNbaabaGaamOyaaqaaiaadggaaeaacaWGIbaabaGaam4yaaaaeaqabeaacaWGKbaabaGaamOyaaqaaiaadsgaaeaacaWGHbaabaGaamOyaaqaaiaadogaaaabaeqabaGaam4yaaqaaiaadkgaaeaacaWGKbaabaGaamizaaqaaiaadkgaaeaacaWGLbaaaqaabeqaaiaadggaaeaacaWGIbaaaqaabeqaaiaadogaaeaacaWGKbaaaqaabeqaaiaadwgaaeaacaWGMbaaaeaacaWG4baabaGaamyEaaqaaiaadQhaaaGaey4kaSsbaeqabmWaaaqaaiaadggacqGHRaWkcaWGIbaabaGaamizaaqaaiaaiodacaWGLbaabaGaamODaiabgkHiTiaaikdaaeaacaWGYbGaey4kaSIaamiBaaqaaiaadsgacaWGIbGaey4kaSIaaG4maaqaaiaadIhaaeaacaWG4baabaGaam4CaaaacqGHRaWkfaqaceWadaaabaGaamyyaiabgUcaRiaadkgaaeaacaWGJbGaey4kaSIaamizaaqaaiaadEhaaeaacaWGJbGaey4kaSIaaGOmaaqaaiaadwgaaeaacaWGLbGaey4kaSIaaG4maaqaaiaadwgaaeaacaWG3baabaGaamiEaaaaaaa@6E11@</annotation>
252
+ </semantics>
253
+ </math>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mathtype_to_mathml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - PLOS
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.0.7
89
+ version: 0.0.8
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.0.7
96
+ version: 0.0.8
97
97
  description: This gem can be used to convert MathType equations from a binary format
98
98
  (e.g. embedded in Word documents) to an open MathML representation. It achieves
99
99
  that in several stages, first using the "mathtype" gem to convert from a binary
@@ -125,6 +125,8 @@ files:
125
125
  - lib/xsl/frac.xsl
126
126
  - lib/xsl/int.xsl
127
127
  - lib/xsl/lim.xsl
128
+ - lib/xsl/long_division.xsl
129
+ - lib/xsl/long_embellishment.xsl
128
130
  - lib/xsl/matrix.xsl
129
131
  - lib/xsl/pile.xsl
130
132
  - lib/xsl/product_coproduct.xsl
@@ -140,9 +142,11 @@ files:
140
142
  - spec/fixtures/expected/450.xml
141
143
  - spec/fixtures/expected/452.xml
142
144
  - spec/fixtures/expected/478.xml
145
+ - spec/fixtures/expected/629.xml
143
146
  - spec/fixtures/expected/arrows.xml
144
147
  - spec/fixtures/expected/boxes.xml
145
148
  - spec/fixtures/expected/embellishments.xml
149
+ - spec/fixtures/expected/embellishments_roots_long_divisions.xml
146
150
  - spec/fixtures/expected/equation1.xml
147
151
  - spec/fixtures/expected/equation10.xml
148
152
  - spec/fixtures/expected/equation11.xml
@@ -159,6 +163,7 @@ files:
159
163
  - spec/fixtures/expected/equation9.xml
160
164
  - spec/fixtures/expected/fences.xml
161
165
  - spec/fixtures/expected/integrals.xml
166
+ - spec/fixtures/expected/matrices.xml
162
167
  - spec/fixtures/expected/sums.xml
163
168
  - spec/fixtures/expected/unions_and_intersections.xml
164
169
  - spec/fixtures/input/280.bin
@@ -169,9 +174,11 @@ files:
169
174
  - spec/fixtures/input/450.bin
170
175
  - spec/fixtures/input/452.bin
171
176
  - spec/fixtures/input/478.bin
177
+ - spec/fixtures/input/629.bin
172
178
  - spec/fixtures/input/arrows.bin
173
179
  - spec/fixtures/input/boxes.bin
174
180
  - spec/fixtures/input/embellishments.bin
181
+ - spec/fixtures/input/embellishments_roots_long_divisions.bin
175
182
  - spec/fixtures/input/equation1.bin
176
183
  - spec/fixtures/input/equation10.bin
177
184
  - spec/fixtures/input/equation11.bin
@@ -188,6 +195,7 @@ files:
188
195
  - spec/fixtures/input/equation9.bin
189
196
  - spec/fixtures/input/fences.bin
190
197
  - spec/fixtures/input/integrals.bin
198
+ - spec/fixtures/input/matrices.bin
191
199
  - spec/fixtures/input/sums.bin
192
200
  - spec/fixtures/input/unions_and_intersections.bin
193
201
  - spec/html_output.rb
@@ -226,9 +234,11 @@ test_files:
226
234
  - spec/fixtures/expected/450.xml
227
235
  - spec/fixtures/expected/452.xml
228
236
  - spec/fixtures/expected/478.xml
237
+ - spec/fixtures/expected/629.xml
229
238
  - spec/fixtures/expected/arrows.xml
230
239
  - spec/fixtures/expected/boxes.xml
231
240
  - spec/fixtures/expected/embellishments.xml
241
+ - spec/fixtures/expected/embellishments_roots_long_divisions.xml
232
242
  - spec/fixtures/expected/equation1.xml
233
243
  - spec/fixtures/expected/equation10.xml
234
244
  - spec/fixtures/expected/equation11.xml
@@ -245,6 +255,7 @@ test_files:
245
255
  - spec/fixtures/expected/equation9.xml
246
256
  - spec/fixtures/expected/fences.xml
247
257
  - spec/fixtures/expected/integrals.xml
258
+ - spec/fixtures/expected/matrices.xml
248
259
  - spec/fixtures/expected/sums.xml
249
260
  - spec/fixtures/expected/unions_and_intersections.xml
250
261
  - spec/fixtures/input/280.bin
@@ -255,9 +266,11 @@ test_files:
255
266
  - spec/fixtures/input/450.bin
256
267
  - spec/fixtures/input/452.bin
257
268
  - spec/fixtures/input/478.bin
269
+ - spec/fixtures/input/629.bin
258
270
  - spec/fixtures/input/arrows.bin
259
271
  - spec/fixtures/input/boxes.bin
260
272
  - spec/fixtures/input/embellishments.bin
273
+ - spec/fixtures/input/embellishments_roots_long_divisions.bin
261
274
  - spec/fixtures/input/equation1.bin
262
275
  - spec/fixtures/input/equation10.bin
263
276
  - spec/fixtures/input/equation11.bin
@@ -274,6 +287,7 @@ test_files:
274
287
  - spec/fixtures/input/equation9.bin
275
288
  - spec/fixtures/input/fences.bin
276
289
  - spec/fixtures/input/integrals.bin
290
+ - spec/fixtures/input/matrices.bin
277
291
  - spec/fixtures/input/sums.bin
278
292
  - spec/fixtures/input/unions_and_intersections.bin
279
293
  - spec/html_output.rb