mathtype 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mathtype/version.rb +1 -1
- data/lib/records/size.rb +36 -10
- data/spec/fixtures/expected/{embelishments.xml → embellishments.xml} +0 -0
- data/spec/fixtures/expected/equation3.xml +100 -100
- data/spec/fixtures/expected/sizes.xml +379 -0
- data/spec/fixtures/input/{embelishments.bin → embellishments.bin} +0 -0
- data/spec/fixtures/input/sizes.bin +0 -0
- metadata +9 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28c7465c5f6c8e4c701ee90b51c9d3c52cafe5f4
|
4
|
+
data.tar.gz: 5b4264072775d86c25a78b64b7663acbe76eec8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 842d64eface390636c6347e1bfff4c8327719ab2e4938a9a1bc9c48fd8d553362122b9ce2b73912f3742402dc31ad90c6ca3ba35e7195c4f6398ab78d8dfc5ff
|
7
|
+
data.tar.gz: 2cd1f345b939570694b11513946b167c7fa6bc1b58459e3c606fccdd43a76dcfab405ece48b8b3d0ffef016598e2324c6ca00c72f078da71213926381d5e8062
|
data/lib/mathtype/version.rb
CHANGED
data/lib/records/size.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require_relative "snapshot"
|
2
|
+
|
1
3
|
# SIZE record (9):
|
2
4
|
# Consists of one of the following cases:
|
3
5
|
|
@@ -23,22 +25,46 @@
|
|
23
25
|
|
24
26
|
module Mathtype
|
25
27
|
class RecordSize < BinData::Record
|
28
|
+
include Snapshot
|
29
|
+
EXPOSED_IN_SNAPSHOT = %i(lsize dsize point_size)
|
30
|
+
|
26
31
|
endian :little
|
27
|
-
int8 :
|
32
|
+
int8 :_size_select
|
33
|
+
|
34
|
+
uint16 :_point_size, onlyif: lambda { _size_select == 101 }
|
35
|
+
uint8 :_lsize_large_delta, onlyif: lambda { _size_select == 100 }
|
28
36
|
|
29
|
-
|
37
|
+
uint8 :_dsize, onlyif: lambda { _size_select != 100 && _size_select != 101 }
|
38
|
+
uint16 :_dsize_large, onlyif: lambda { _size_select == 100 }
|
39
|
+
|
40
|
+
def dsize
|
41
|
+
case _size_select
|
42
|
+
when 100
|
43
|
+
if _dsize_large > 255
|
44
|
+
(_dsize_large - (256 << 8)) / 32
|
45
|
+
else
|
46
|
+
_dsize_large / 32
|
47
|
+
end
|
48
|
+
when 101
|
49
|
+
nil
|
50
|
+
else
|
51
|
+
(_dsize - 128) / 32 # in 32nds of a point
|
52
|
+
end
|
53
|
+
end
|
30
54
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
55
|
+
def lsize
|
56
|
+
case _size_select
|
57
|
+
when 100
|
58
|
+
_lsize_large_delta
|
59
|
+
when 101
|
60
|
+
nil
|
61
|
+
else
|
62
|
+
_size_select
|
36
63
|
end
|
37
64
|
end
|
38
65
|
|
39
|
-
|
40
|
-
|
41
|
-
uint16 0
|
66
|
+
def point_size
|
67
|
+
-_point_size if _point_size != 0
|
42
68
|
end
|
43
69
|
end
|
44
70
|
end
|
File without changes
|
@@ -1250,125 +1250,125 @@
|
|
1250
1250
|
<end/>
|
1251
1251
|
</slot>
|
1252
1252
|
<size>
|
1253
|
-
<lsize>
|
1254
|
-
<dsize>
|
1253
|
+
<lsize>0</lsize>
|
1254
|
+
<dsize>5</dsize>
|
1255
1255
|
</size>
|
1256
|
-
<
|
1257
|
-
</matrix>
|
1258
|
-
<slot>
|
1259
|
-
<options>0</options>
|
1260
|
-
<char>
|
1261
|
-
<nudge>
|
1262
|
-
<dx>-30</dx>
|
1263
|
-
<dy>-160</dy>
|
1264
|
-
</nudge>
|
1265
|
-
<typeface>8</typeface>
|
1266
|
-
<mt_code_value>0x0030</mt_code_value>
|
1267
|
-
<options>8</options>
|
1268
|
-
<variation>mathmode</variation>
|
1269
|
-
</char>
|
1270
|
-
<end/>
|
1271
|
-
</slot>
|
1272
|
-
<full/>
|
1273
|
-
<slot>
|
1274
|
-
<options>0</options>
|
1275
|
-
<char>
|
1276
|
-
<typeface>8</typeface>
|
1277
|
-
<mt_code_value>0x0034</mt_code_value>
|
1256
|
+
<slot>
|
1278
1257
|
<options>0</options>
|
1279
|
-
<
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
<
|
1290
|
-
</
|
1291
|
-
<
|
1292
|
-
|
1293
|
-
<slot>
|
1294
|
-
<options>0</options>
|
1295
|
-
<char>
|
1296
|
-
<typeface>8</typeface>
|
1297
|
-
<mt_code_value>0x0032</mt_code_value>
|
1258
|
+
<char>
|
1259
|
+
<nudge>
|
1260
|
+
<dx>-30</dx>
|
1261
|
+
<dy>-160</dy>
|
1262
|
+
</nudge>
|
1263
|
+
<typeface>8</typeface>
|
1264
|
+
<mt_code_value>0x0030</mt_code_value>
|
1265
|
+
<options>8</options>
|
1266
|
+
<variation>mathmode</variation>
|
1267
|
+
</char>
|
1268
|
+
<end/>
|
1269
|
+
</slot>
|
1270
|
+
<full/>
|
1271
|
+
<slot>
|
1298
1272
|
<options>0</options>
|
1299
|
-
<
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
<end/>
|
1308
|
-
</slot>
|
1309
|
-
<slot>
|
1310
|
-
<options>0</options>
|
1311
|
-
<char>
|
1312
|
-
<typeface>8</typeface>
|
1313
|
-
<mt_code_value>0x0030</mt_code_value>
|
1314
|
-
<options>0</options>
|
1315
|
-
<variation>mathmode</variation>
|
1316
|
-
</char>
|
1317
|
-
<end/>
|
1318
|
-
</slot>
|
1319
|
-
<full/>
|
1320
|
-
<slot>
|
1321
|
-
<options>0</options>
|
1322
|
-
<char>
|
1323
|
-
<typeface>8</typeface>
|
1324
|
-
<mt_code_value>0x0033</mt_code_value>
|
1325
|
-
<options>0</options>
|
1326
|
-
<variation>mathmode</variation>
|
1327
|
-
</char>
|
1328
|
-
<end/>
|
1329
|
-
</slot>
|
1330
|
-
<slot>
|
1331
|
-
<options>0</options>
|
1332
|
-
<char>
|
1333
|
-
<typeface>3</typeface>
|
1334
|
-
<mt_code_value>0x0061</mt_code_value>
|
1335
|
-
<options>0</options>
|
1336
|
-
</char>
|
1337
|
-
<tmpl>
|
1338
|
-
<selector>tmSUB</selector>
|
1339
|
-
<template_specific_options>0</template_specific_options>
|
1340
|
-
<sub/>
|
1273
|
+
<char>
|
1274
|
+
<typeface>8</typeface>
|
1275
|
+
<mt_code_value>0x0034</mt_code_value>
|
1276
|
+
<options>0</options>
|
1277
|
+
<variation>mathmode</variation>
|
1278
|
+
</char>
|
1279
|
+
<end/>
|
1280
|
+
</slot>
|
1341
1281
|
<slot>
|
1342
1282
|
<options>0</options>
|
1343
1283
|
<char>
|
1344
|
-
<typeface>
|
1345
|
-
<mt_code_value>
|
1284
|
+
<typeface>11</typeface>
|
1285
|
+
<mt_code_value>0x22F1</mt_code_value>
|
1286
|
+
<options>4</options>
|
1287
|
+
<font_position>79</font_position>
|
1288
|
+
</char>
|
1289
|
+
<end/>
|
1290
|
+
</slot>
|
1291
|
+
<slot>
|
1292
|
+
<options>0</options>
|
1293
|
+
<char>
|
1294
|
+
<typeface>8</typeface>
|
1295
|
+
<mt_code_value>0x0032</mt_code_value>
|
1296
|
+
<options>0</options>
|
1297
|
+
<variation>mathmode</variation>
|
1298
|
+
</char>
|
1299
|
+
<end/>
|
1300
|
+
</slot>
|
1301
|
+
<size>
|
1302
|
+
<lsize>0</lsize>
|
1303
|
+
<dsize>5</dsize>
|
1304
|
+
</size>
|
1305
|
+
<slot>
|
1306
|
+
<options>0</options>
|
1307
|
+
<char>
|
1308
|
+
<typeface>8</typeface>
|
1309
|
+
<mt_code_value>0x0030</mt_code_value>
|
1346
1310
|
<options>0</options>
|
1311
|
+
<variation>mathmode</variation>
|
1347
1312
|
</char>
|
1348
1313
|
<end/>
|
1349
1314
|
</slot>
|
1315
|
+
<full/>
|
1350
1316
|
<slot>
|
1351
|
-
<options>
|
1317
|
+
<options>0</options>
|
1318
|
+
<char>
|
1319
|
+
<typeface>8</typeface>
|
1320
|
+
<mt_code_value>0x0033</mt_code_value>
|
1321
|
+
<options>0</options>
|
1322
|
+
<variation>mathmode</variation>
|
1323
|
+
</char>
|
1324
|
+
<end/>
|
1325
|
+
</slot>
|
1326
|
+
<slot>
|
1327
|
+
<options>0</options>
|
1328
|
+
<char>
|
1329
|
+
<typeface>3</typeface>
|
1330
|
+
<mt_code_value>0x0061</mt_code_value>
|
1331
|
+
<options>0</options>
|
1332
|
+
</char>
|
1333
|
+
<tmpl>
|
1334
|
+
<selector>tmSUB</selector>
|
1335
|
+
<template_specific_options>0</template_specific_options>
|
1336
|
+
<sub/>
|
1337
|
+
<slot>
|
1338
|
+
<options>0</options>
|
1339
|
+
<char>
|
1340
|
+
<typeface>3</typeface>
|
1341
|
+
<mt_code_value>0x006E</mt_code_value>
|
1342
|
+
<options>0</options>
|
1343
|
+
</char>
|
1344
|
+
<end/>
|
1345
|
+
</slot>
|
1346
|
+
<slot>
|
1347
|
+
<options>1</options>
|
1348
|
+
</slot>
|
1349
|
+
<end/>
|
1350
|
+
</tmpl>
|
1351
|
+
<end/>
|
1352
1352
|
</slot>
|
1353
1353
|
<end/>
|
1354
|
-
</
|
1354
|
+
</matrix>
|
1355
1355
|
<end/>
|
1356
1356
|
</slot>
|
1357
|
+
<full/>
|
1358
|
+
<char>
|
1359
|
+
<typeface>22</typeface>
|
1360
|
+
<mt_code_value>0x0028</mt_code_value>
|
1361
|
+
<options>0</options>
|
1362
|
+
</char>
|
1363
|
+
<char>
|
1364
|
+
<typeface>22</typeface>
|
1365
|
+
<mt_code_value>0x0029</mt_code_value>
|
1366
|
+
<options>0</options>
|
1367
|
+
</char>
|
1357
1368
|
<end/>
|
1358
1369
|
</tmpl>
|
1359
1370
|
<end/>
|
1360
1371
|
</slot>
|
1361
|
-
<full/>
|
1362
|
-
<char>
|
1363
|
-
<typeface>22</typeface>
|
1364
|
-
<mt_code_value>0x0028</mt_code_value>
|
1365
|
-
<options>0</options>
|
1366
|
-
</char>
|
1367
|
-
<char>
|
1368
|
-
<typeface>22</typeface>
|
1369
|
-
<mt_code_value>0x0029</mt_code_value>
|
1370
|
-
<options>0</options>
|
1371
|
-
</char>
|
1372
1372
|
<end/>
|
1373
1373
|
</mtef>
|
1374
1374
|
</root>
|
@@ -0,0 +1,379 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<root>
|
3
|
+
<mtef>
|
4
|
+
<mtef_version>5</mtef_version>
|
5
|
+
<platform>0</platform>
|
6
|
+
<product>0</product>
|
7
|
+
<product_version>6</product_version>
|
8
|
+
<product_subversion>7</product_subversion>
|
9
|
+
<application_key>DSMT6</application_key>
|
10
|
+
<equation_options>0</equation_options>
|
11
|
+
<future>
|
12
|
+
<skip>3</skip>
|
13
|
+
</future>
|
14
|
+
<encoding_def>
|
15
|
+
<name>MacRoman</name>
|
16
|
+
</encoding_def>
|
17
|
+
<font_def>
|
18
|
+
<enc_def_index>5</enc_def_index>
|
19
|
+
<font_name>Cambria</font_name>
|
20
|
+
</font_def>
|
21
|
+
<font_def>
|
22
|
+
<enc_def_index>3</enc_def_index>
|
23
|
+
<font_name>Symbol</font_name>
|
24
|
+
</font_def>
|
25
|
+
<font_def>
|
26
|
+
<enc_def_index>5</enc_def_index>
|
27
|
+
<font_name>Courier</font_name>
|
28
|
+
</font_def>
|
29
|
+
<font_def>
|
30
|
+
<enc_def_index>4</enc_def_index>
|
31
|
+
<font_name>MT Extra</font_name>
|
32
|
+
</font_def>
|
33
|
+
<eqn_prefs>
|
34
|
+
<options>0</options>
|
35
|
+
<sizes_count>8</sizes_count>
|
36
|
+
<sizes>
|
37
|
+
<unit>2</unit>
|
38
|
+
<nibbles>1</nibbles>
|
39
|
+
<nibbles>2</nibbles>
|
40
|
+
<nibbles>15</nibbles>
|
41
|
+
</sizes>
|
42
|
+
<sizes>
|
43
|
+
<unit>4</unit>
|
44
|
+
<nibbles>5</nibbles>
|
45
|
+
<nibbles>8</nibbles>
|
46
|
+
<nibbles>15</nibbles>
|
47
|
+
</sizes>
|
48
|
+
<sizes>
|
49
|
+
<unit>4</unit>
|
50
|
+
<nibbles>4</nibbles>
|
51
|
+
<nibbles>2</nibbles>
|
52
|
+
<nibbles>15</nibbles>
|
53
|
+
</sizes>
|
54
|
+
<sizes>
|
55
|
+
<unit>4</unit>
|
56
|
+
<nibbles>1</nibbles>
|
57
|
+
<nibbles>5</nibbles>
|
58
|
+
<nibbles>0</nibbles>
|
59
|
+
<nibbles>15</nibbles>
|
60
|
+
</sizes>
|
61
|
+
<sizes>
|
62
|
+
<unit>1</unit>
|
63
|
+
<nibbles>0</nibbles>
|
64
|
+
<nibbles>0</nibbles>
|
65
|
+
<nibbles>15</nibbles>
|
66
|
+
</sizes>
|
67
|
+
<sizes>
|
68
|
+
<unit>4</unit>
|
69
|
+
<nibbles>7</nibbles>
|
70
|
+
<nibbles>5</nibbles>
|
71
|
+
<nibbles>15</nibbles>
|
72
|
+
</sizes>
|
73
|
+
<sizes>
|
74
|
+
<unit>4</unit>
|
75
|
+
<nibbles>1</nibbles>
|
76
|
+
<nibbles>5</nibbles>
|
77
|
+
<nibbles>0</nibbles>
|
78
|
+
<nibbles>15</nibbles>
|
79
|
+
</sizes>
|
80
|
+
<sizes>
|
81
|
+
<unit>1</unit>
|
82
|
+
<nibbles>15</nibbles>
|
83
|
+
</sizes>
|
84
|
+
<spaces_count>33</spaces_count>
|
85
|
+
<spaces>
|
86
|
+
<unit>4</unit>
|
87
|
+
<nibbles>1</nibbles>
|
88
|
+
<nibbles>5</nibbles>
|
89
|
+
<nibbles>0</nibbles>
|
90
|
+
<nibbles>15</nibbles>
|
91
|
+
</spaces>
|
92
|
+
<spaces>
|
93
|
+
<unit>1</unit>
|
94
|
+
<nibbles>5</nibbles>
|
95
|
+
<nibbles>0</nibbles>
|
96
|
+
<nibbles>15</nibbles>
|
97
|
+
</spaces>
|
98
|
+
<spaces>
|
99
|
+
<unit>4</unit>
|
100
|
+
<nibbles>1</nibbles>
|
101
|
+
<nibbles>0</nibbles>
|
102
|
+
<nibbles>0</nibbles>
|
103
|
+
<nibbles>15</nibbles>
|
104
|
+
</spaces>
|
105
|
+
<spaces>
|
106
|
+
<unit>4</unit>
|
107
|
+
<nibbles>5</nibbles>
|
108
|
+
<nibbles>15</nibbles>
|
109
|
+
</spaces>
|
110
|
+
<spaces>
|
111
|
+
<unit>2</unit>
|
112
|
+
<nibbles>5</nibbles>
|
113
|
+
<nibbles>15</nibbles>
|
114
|
+
</spaces>
|
115
|
+
<spaces>
|
116
|
+
<unit>8</unit>
|
117
|
+
<nibbles>15</nibbles>
|
118
|
+
</spaces>
|
119
|
+
<spaces>
|
120
|
+
<unit>4</unit>
|
121
|
+
<nibbles>2</nibbles>
|
122
|
+
<nibbles>5</nibbles>
|
123
|
+
<nibbles>15</nibbles>
|
124
|
+
</spaces>
|
125
|
+
<spaces>
|
126
|
+
<unit>4</unit>
|
127
|
+
<nibbles>1</nibbles>
|
128
|
+
<nibbles>0</nibbles>
|
129
|
+
<nibbles>0</nibbles>
|
130
|
+
<nibbles>15</nibbles>
|
131
|
+
</spaces>
|
132
|
+
<spaces>
|
133
|
+
<unit>1</unit>
|
134
|
+
<nibbles>0</nibbles>
|
135
|
+
<nibbles>0</nibbles>
|
136
|
+
<nibbles>15</nibbles>
|
137
|
+
</spaces>
|
138
|
+
<spaces>
|
139
|
+
<unit>4</unit>
|
140
|
+
<nibbles>3</nibbles>
|
141
|
+
<nibbles>5</nibbles>
|
142
|
+
<nibbles>15</nibbles>
|
143
|
+
</spaces>
|
144
|
+
<spaces>
|
145
|
+
<unit>4</unit>
|
146
|
+
<nibbles>1</nibbles>
|
147
|
+
<nibbles>0</nibbles>
|
148
|
+
<nibbles>0</nibbles>
|
149
|
+
<nibbles>15</nibbles>
|
150
|
+
</spaces>
|
151
|
+
<spaces>
|
152
|
+
<unit>8</unit>
|
153
|
+
<nibbles>15</nibbles>
|
154
|
+
</spaces>
|
155
|
+
<spaces>
|
156
|
+
<unit>4</unit>
|
157
|
+
<nibbles>5</nibbles>
|
158
|
+
<nibbles>15</nibbles>
|
159
|
+
</spaces>
|
160
|
+
<spaces>
|
161
|
+
<unit>2</unit>
|
162
|
+
<nibbles>10</nibbles>
|
163
|
+
<nibbles>5</nibbles>
|
164
|
+
<nibbles>15</nibbles>
|
165
|
+
</spaces>
|
166
|
+
<spaces>
|
167
|
+
<unit>4</unit>
|
168
|
+
<nibbles>8</nibbles>
|
169
|
+
<nibbles>15</nibbles>
|
170
|
+
</spaces>
|
171
|
+
<spaces>
|
172
|
+
<unit>8</unit>
|
173
|
+
<nibbles>15</nibbles>
|
174
|
+
</spaces>
|
175
|
+
<spaces>
|
176
|
+
<unit>4</unit>
|
177
|
+
<nibbles>1</nibbles>
|
178
|
+
<nibbles>0</nibbles>
|
179
|
+
<nibbles>0</nibbles>
|
180
|
+
<nibbles>15</nibbles>
|
181
|
+
</spaces>
|
182
|
+
<spaces>
|
183
|
+
<unit>1</unit>
|
184
|
+
<nibbles>0</nibbles>
|
185
|
+
<nibbles>0</nibbles>
|
186
|
+
<nibbles>15</nibbles>
|
187
|
+
</spaces>
|
188
|
+
<spaces>
|
189
|
+
<unit>4</unit>
|
190
|
+
<nibbles>0</nibbles>
|
191
|
+
<nibbles>15</nibbles>
|
192
|
+
</spaces>
|
193
|
+
<spaces>
|
194
|
+
<unit>8</unit>
|
195
|
+
<nibbles>15</nibbles>
|
196
|
+
</spaces>
|
197
|
+
<spaces>
|
198
|
+
<unit>4</unit>
|
199
|
+
<nibbles>1</nibbles>
|
200
|
+
<nibbles>7</nibbles>
|
201
|
+
<nibbles>15</nibbles>
|
202
|
+
</spaces>
|
203
|
+
<spaces>
|
204
|
+
<unit>4</unit>
|
205
|
+
<nibbles>8</nibbles>
|
206
|
+
<nibbles>15</nibbles>
|
207
|
+
</spaces>
|
208
|
+
<spaces>
|
209
|
+
<unit>1</unit>
|
210
|
+
<nibbles>0</nibbles>
|
211
|
+
<nibbles>0</nibbles>
|
212
|
+
<nibbles>15</nibbles>
|
213
|
+
</spaces>
|
214
|
+
<spaces>
|
215
|
+
<unit>4</unit>
|
216
|
+
<nibbles>1</nibbles>
|
217
|
+
<nibbles>2</nibbles>
|
218
|
+
<nibbles>10</nibbles>
|
219
|
+
<nibbles>5</nibbles>
|
220
|
+
<nibbles>15</nibbles>
|
221
|
+
</spaces>
|
222
|
+
<spaces>
|
223
|
+
<unit>4</unit>
|
224
|
+
<nibbles>4</nibbles>
|
225
|
+
<nibbles>5</nibbles>
|
226
|
+
<nibbles>15</nibbles>
|
227
|
+
</spaces>
|
228
|
+
<spaces>
|
229
|
+
<unit>4</unit>
|
230
|
+
<nibbles>5</nibbles>
|
231
|
+
<nibbles>15</nibbles>
|
232
|
+
</spaces>
|
233
|
+
<spaces>
|
234
|
+
<unit>5</unit>
|
235
|
+
<nibbles>15</nibbles>
|
236
|
+
</spaces>
|
237
|
+
<spaces>
|
238
|
+
<unit>4</unit>
|
239
|
+
<nibbles>5</nibbles>
|
240
|
+
<nibbles>15</nibbles>
|
241
|
+
</spaces>
|
242
|
+
<spaces>
|
243
|
+
<unit>5</unit>
|
244
|
+
<nibbles>15</nibbles>
|
245
|
+
</spaces>
|
246
|
+
<spaces>
|
247
|
+
<unit>4</unit>
|
248
|
+
<nibbles>1</nibbles>
|
249
|
+
<nibbles>0</nibbles>
|
250
|
+
<nibbles>15</nibbles>
|
251
|
+
</spaces>
|
252
|
+
<spaces>
|
253
|
+
<unit>4</unit>
|
254
|
+
<nibbles>2</nibbles>
|
255
|
+
<nibbles>0</nibbles>
|
256
|
+
<nibbles>15</nibbles>
|
257
|
+
</spaces>
|
258
|
+
<spaces>
|
259
|
+
<unit>4</unit>
|
260
|
+
<nibbles>2</nibbles>
|
261
|
+
<nibbles>0</nibbles>
|
262
|
+
<nibbles>15</nibbles>
|
263
|
+
</spaces>
|
264
|
+
<spaces>
|
265
|
+
<unit>4</unit>
|
266
|
+
<nibbles>2</nibbles>
|
267
|
+
<nibbles>0</nibbles>
|
268
|
+
<nibbles>15</nibbles>
|
269
|
+
</spaces>
|
270
|
+
<styles_count>12</styles_count>
|
271
|
+
<styles>
|
272
|
+
<font_def>1</font_def>
|
273
|
+
<font_style>0</font_style>
|
274
|
+
</styles>
|
275
|
+
<styles>
|
276
|
+
<font_def>1</font_def>
|
277
|
+
<font_style>0</font_style>
|
278
|
+
</styles>
|
279
|
+
<styles>
|
280
|
+
<font_def>1</font_def>
|
281
|
+
<font_style>2</font_style>
|
282
|
+
</styles>
|
283
|
+
<styles>
|
284
|
+
<font_def>2</font_def>
|
285
|
+
<font_style>2</font_style>
|
286
|
+
</styles>
|
287
|
+
<styles>
|
288
|
+
<font_def>2</font_def>
|
289
|
+
<font_style>0</font_style>
|
290
|
+
</styles>
|
291
|
+
<styles>
|
292
|
+
<font_def>2</font_def>
|
293
|
+
<font_style>0</font_style>
|
294
|
+
</styles>
|
295
|
+
<styles>
|
296
|
+
<font_def>1</font_def>
|
297
|
+
<font_style>1</font_style>
|
298
|
+
</styles>
|
299
|
+
<styles>
|
300
|
+
<font_def>1</font_def>
|
301
|
+
<font_style>0</font_style>
|
302
|
+
</styles>
|
303
|
+
<styles>
|
304
|
+
<font_def>3</font_def>
|
305
|
+
<font_style>0</font_style>
|
306
|
+
</styles>
|
307
|
+
<styles>
|
308
|
+
<font_def>1</font_def>
|
309
|
+
<font_style>0</font_style>
|
310
|
+
</styles>
|
311
|
+
<styles>
|
312
|
+
<font_def>4</font_def>
|
313
|
+
<font_style>0</font_style>
|
314
|
+
</styles>
|
315
|
+
<styles>
|
316
|
+
<font_def>0</font_def>
|
317
|
+
</styles>
|
318
|
+
</eqn_prefs>
|
319
|
+
<full/>
|
320
|
+
<slot>
|
321
|
+
<options>0</options>
|
322
|
+
<char>
|
323
|
+
<typeface>3</typeface>
|
324
|
+
<mt_code_value>0x0061</mt_code_value>
|
325
|
+
<options>0</options>
|
326
|
+
</char>
|
327
|
+
<sub/>
|
328
|
+
<char>
|
329
|
+
<typeface>3</typeface>
|
330
|
+
<mt_code_value>0x0062</mt_code_value>
|
331
|
+
<options>0</options>
|
332
|
+
</char>
|
333
|
+
<size>
|
334
|
+
<lsize>4</lsize>
|
335
|
+
<dsize>3</dsize>
|
336
|
+
</size>
|
337
|
+
<char>
|
338
|
+
<typeface>3</typeface>
|
339
|
+
<mt_code_value>0x0063</mt_code_value>
|
340
|
+
<options>0</options>
|
341
|
+
</char>
|
342
|
+
<size>
|
343
|
+
<lsize>0</lsize>
|
344
|
+
<dsize>-4</dsize>
|
345
|
+
</size>
|
346
|
+
<char>
|
347
|
+
<typeface>3</typeface>
|
348
|
+
<mt_code_value>0x0064</mt_code_value>
|
349
|
+
<options>0</options>
|
350
|
+
</char>
|
351
|
+
<sub2/>
|
352
|
+
<char>
|
353
|
+
<typeface>3</typeface>
|
354
|
+
<mt_code_value>0x0065</mt_code_value>
|
355
|
+
<options>0</options>
|
356
|
+
</char>
|
357
|
+
<size>
|
358
|
+
<lsize>0</lsize>
|
359
|
+
<dsize>2</dsize>
|
360
|
+
</size>
|
361
|
+
<char>
|
362
|
+
<typeface>3</typeface>
|
363
|
+
<mt_code_value>0x0066</mt_code_value>
|
364
|
+
<options>0</options>
|
365
|
+
</char>
|
366
|
+
<size>
|
367
|
+
<lsize>0</lsize>
|
368
|
+
<dsize>-2</dsize>
|
369
|
+
</size>
|
370
|
+
<char>
|
371
|
+
<typeface>3</typeface>
|
372
|
+
<mt_code_value>0x0067</mt_code_value>
|
373
|
+
<options>0</options>
|
374
|
+
</char>
|
375
|
+
<end/>
|
376
|
+
</slot>
|
377
|
+
<end/>
|
378
|
+
</mtef>
|
379
|
+
</root>
|
File without changes
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mathtype
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jure Triglav
|
@@ -146,7 +146,7 @@ files:
|
|
146
146
|
- lib/records/tmpl.rb
|
147
147
|
- lib/records/typesizes.rb
|
148
148
|
- mathtype.gemspec
|
149
|
-
- spec/fixtures/expected/
|
149
|
+
- spec/fixtures/expected/embellishments.xml
|
150
150
|
- spec/fixtures/expected/equation1.xml
|
151
151
|
- spec/fixtures/expected/equation10.xml
|
152
152
|
- spec/fixtures/expected/equation11.xml
|
@@ -160,7 +160,8 @@ files:
|
|
160
160
|
- spec/fixtures/expected/equation7.xml
|
161
161
|
- spec/fixtures/expected/equation8.xml
|
162
162
|
- spec/fixtures/expected/equation9.xml
|
163
|
-
- spec/fixtures/
|
163
|
+
- spec/fixtures/expected/sizes.xml
|
164
|
+
- spec/fixtures/input/embellishments.bin
|
164
165
|
- spec/fixtures/input/equation1.bin
|
165
166
|
- spec/fixtures/input/equation10.bin
|
166
167
|
- spec/fixtures/input/equation11.bin
|
@@ -174,6 +175,7 @@ files:
|
|
174
175
|
- spec/fixtures/input/equation7.bin
|
175
176
|
- spec/fixtures/input/equation8.bin
|
176
177
|
- spec/fixtures/input/equation9.bin
|
178
|
+
- spec/fixtures/input/sizes.bin
|
177
179
|
- spec/mathtype_spec.rb
|
178
180
|
- spec/spec_helper.rb
|
179
181
|
homepage: ''
|
@@ -201,7 +203,7 @@ signing_key:
|
|
201
203
|
specification_version: 4
|
202
204
|
summary: A Ruby gem for reading MathType binaries and converting them to an XML form.
|
203
205
|
test_files:
|
204
|
-
- spec/fixtures/expected/
|
206
|
+
- spec/fixtures/expected/embellishments.xml
|
205
207
|
- spec/fixtures/expected/equation1.xml
|
206
208
|
- spec/fixtures/expected/equation10.xml
|
207
209
|
- spec/fixtures/expected/equation11.xml
|
@@ -215,7 +217,8 @@ test_files:
|
|
215
217
|
- spec/fixtures/expected/equation7.xml
|
216
218
|
- spec/fixtures/expected/equation8.xml
|
217
219
|
- spec/fixtures/expected/equation9.xml
|
218
|
-
- spec/fixtures/
|
220
|
+
- spec/fixtures/expected/sizes.xml
|
221
|
+
- spec/fixtures/input/embellishments.bin
|
219
222
|
- spec/fixtures/input/equation1.bin
|
220
223
|
- spec/fixtures/input/equation10.bin
|
221
224
|
- spec/fixtures/input/equation11.bin
|
@@ -229,5 +232,6 @@ test_files:
|
|
229
232
|
- spec/fixtures/input/equation7.bin
|
230
233
|
- spec/fixtures/input/equation8.bin
|
231
234
|
- spec/fixtures/input/equation9.bin
|
235
|
+
- spec/fixtures/input/sizes.bin
|
232
236
|
- spec/mathtype_spec.rb
|
233
237
|
- spec/spec_helper.rb
|