mathtype 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +40 -0
- data/Rakefile +2 -0
- data/lib/mathtype/version.rb +3 -0
- data/lib/mathtype.rb +61 -0
- data/lib/records/char.rb +84 -0
- data/lib/records/color.rb +13 -0
- data/lib/records/color_def.rb +37 -0
- data/lib/records/embell.rb +103 -0
- data/lib/records/encoding_def.rb +22 -0
- data/lib/records/end.rb +8 -0
- data/lib/records/eqn_prefs.rb +44 -0
- data/lib/records/font_def.rb +14 -0
- data/lib/records/font_style_def.rb +14 -0
- data/lib/records/future.rb +14 -0
- data/lib/records/line.rb +36 -0
- data/lib/records/matrix.rb +41 -0
- data/lib/records/mtef.rb +118 -0
- data/lib/records/nudge.rb +34 -0
- data/lib/records/pile.rb +28 -0
- data/lib/records/ruler.rb +22 -0
- data/lib/records/size.rb +44 -0
- data/lib/records/snapshot.rb +19 -0
- data/lib/records/tmpl.rb +449 -0
- data/lib/records/typesizes.rb +24 -0
- data/mathtype.gemspec +28 -0
- data/spec/fixtures/expected/embelishments.xml +848 -0
- data/spec/fixtures/expected/equation1.xml +492 -0
- data/spec/fixtures/expected/equation10.xml +369 -0
- data/spec/fixtures/expected/equation11.xml +370 -0
- data/spec/fixtures/expected/equation12.xml +433 -0
- data/spec/fixtures/expected/equation13.xml +680 -0
- data/spec/fixtures/expected/equation2.xml +429 -0
- data/spec/fixtures/expected/equation3.xml +1374 -0
- data/spec/fixtures/expected/equation4.xml +360 -0
- data/spec/fixtures/expected/equation5.xml +377 -0
- data/spec/fixtures/expected/equation6.xml +364 -0
- data/spec/fixtures/expected/equation7.xml +369 -0
- data/spec/fixtures/expected/equation8.xml +362 -0
- data/spec/fixtures/expected/equation9.xml +355 -0
- data/spec/fixtures/input/embelishments.bin +0 -0
- data/spec/fixtures/input/equation1.bin +0 -0
- data/spec/fixtures/input/equation10.bin +0 -0
- data/spec/fixtures/input/equation11.bin +0 -0
- data/spec/fixtures/input/equation12.bin +0 -0
- data/spec/fixtures/input/equation13.bin +0 -0
- data/spec/fixtures/input/equation2.bin +0 -0
- data/spec/fixtures/input/equation3.bin +0 -0
- data/spec/fixtures/input/equation4.bin +0 -0
- data/spec/fixtures/input/equation5.bin +0 -0
- data/spec/fixtures/input/equation6.bin +0 -0
- data/spec/fixtures/input/equation7.bin +0 -0
- data/spec/fixtures/input/equation8.bin +0 -0
- data/spec/fixtures/input/equation9.bin +0 -0
- data/spec/mathtype_spec.rb +16 -0
- data/spec/spec_helper.rb +64 -0
- metadata +233 -0
metadata
ADDED
@@ -0,0 +1,233 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mathtype
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jure Triglav
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-08-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.10'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.10'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bindata
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.1'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: nokogiri
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.6'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.6'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: ruby-ole
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.2'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.2'
|
111
|
+
description: " This gem can read proprietary MathType binary equations that are usually
|
112
|
+
embedded in Word documents and convert these equations into an XML form. This XML
|
113
|
+
form can then be used for further processing, e.g. to convert the equation to MathML."
|
114
|
+
email:
|
115
|
+
- juretriglav@gmail.com
|
116
|
+
executables: []
|
117
|
+
extensions: []
|
118
|
+
extra_rdoc_files: []
|
119
|
+
files:
|
120
|
+
- ".gitignore"
|
121
|
+
- ".rspec"
|
122
|
+
- Gemfile
|
123
|
+
- LICENSE.txt
|
124
|
+
- README.md
|
125
|
+
- Rakefile
|
126
|
+
- lib/mathtype.rb
|
127
|
+
- lib/mathtype/version.rb
|
128
|
+
- lib/records/char.rb
|
129
|
+
- lib/records/color.rb
|
130
|
+
- lib/records/color_def.rb
|
131
|
+
- lib/records/embell.rb
|
132
|
+
- lib/records/encoding_def.rb
|
133
|
+
- lib/records/end.rb
|
134
|
+
- lib/records/eqn_prefs.rb
|
135
|
+
- lib/records/font_def.rb
|
136
|
+
- lib/records/font_style_def.rb
|
137
|
+
- lib/records/future.rb
|
138
|
+
- lib/records/line.rb
|
139
|
+
- lib/records/matrix.rb
|
140
|
+
- lib/records/mtef.rb
|
141
|
+
- lib/records/nudge.rb
|
142
|
+
- lib/records/pile.rb
|
143
|
+
- lib/records/ruler.rb
|
144
|
+
- lib/records/size.rb
|
145
|
+
- lib/records/snapshot.rb
|
146
|
+
- lib/records/tmpl.rb
|
147
|
+
- lib/records/typesizes.rb
|
148
|
+
- mathtype.gemspec
|
149
|
+
- spec/fixtures/expected/embelishments.xml
|
150
|
+
- spec/fixtures/expected/equation1.xml
|
151
|
+
- spec/fixtures/expected/equation10.xml
|
152
|
+
- spec/fixtures/expected/equation11.xml
|
153
|
+
- spec/fixtures/expected/equation12.xml
|
154
|
+
- spec/fixtures/expected/equation13.xml
|
155
|
+
- spec/fixtures/expected/equation2.xml
|
156
|
+
- spec/fixtures/expected/equation3.xml
|
157
|
+
- spec/fixtures/expected/equation4.xml
|
158
|
+
- spec/fixtures/expected/equation5.xml
|
159
|
+
- spec/fixtures/expected/equation6.xml
|
160
|
+
- spec/fixtures/expected/equation7.xml
|
161
|
+
- spec/fixtures/expected/equation8.xml
|
162
|
+
- spec/fixtures/expected/equation9.xml
|
163
|
+
- spec/fixtures/input/embelishments.bin
|
164
|
+
- spec/fixtures/input/equation1.bin
|
165
|
+
- spec/fixtures/input/equation10.bin
|
166
|
+
- spec/fixtures/input/equation11.bin
|
167
|
+
- spec/fixtures/input/equation12.bin
|
168
|
+
- spec/fixtures/input/equation13.bin
|
169
|
+
- spec/fixtures/input/equation2.bin
|
170
|
+
- spec/fixtures/input/equation3.bin
|
171
|
+
- spec/fixtures/input/equation4.bin
|
172
|
+
- spec/fixtures/input/equation5.bin
|
173
|
+
- spec/fixtures/input/equation6.bin
|
174
|
+
- spec/fixtures/input/equation7.bin
|
175
|
+
- spec/fixtures/input/equation8.bin
|
176
|
+
- spec/fixtures/input/equation9.bin
|
177
|
+
- spec/mathtype_spec.rb
|
178
|
+
- spec/spec_helper.rb
|
179
|
+
homepage: ''
|
180
|
+
licenses:
|
181
|
+
- MIT
|
182
|
+
metadata: {}
|
183
|
+
post_install_message:
|
184
|
+
rdoc_options: []
|
185
|
+
require_paths:
|
186
|
+
- lib
|
187
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
188
|
+
requirements:
|
189
|
+
- - ">="
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
version: '0'
|
192
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
|
+
requirements:
|
194
|
+
- - ">="
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: '0'
|
197
|
+
requirements: []
|
198
|
+
rubyforge_project:
|
199
|
+
rubygems_version: 2.2.2
|
200
|
+
signing_key:
|
201
|
+
specification_version: 4
|
202
|
+
summary: A Ruby gem for reading MathType binaries and converting them to an XML form.
|
203
|
+
test_files:
|
204
|
+
- spec/fixtures/expected/embelishments.xml
|
205
|
+
- spec/fixtures/expected/equation1.xml
|
206
|
+
- spec/fixtures/expected/equation10.xml
|
207
|
+
- spec/fixtures/expected/equation11.xml
|
208
|
+
- spec/fixtures/expected/equation12.xml
|
209
|
+
- spec/fixtures/expected/equation13.xml
|
210
|
+
- spec/fixtures/expected/equation2.xml
|
211
|
+
- spec/fixtures/expected/equation3.xml
|
212
|
+
- spec/fixtures/expected/equation4.xml
|
213
|
+
- spec/fixtures/expected/equation5.xml
|
214
|
+
- spec/fixtures/expected/equation6.xml
|
215
|
+
- spec/fixtures/expected/equation7.xml
|
216
|
+
- spec/fixtures/expected/equation8.xml
|
217
|
+
- spec/fixtures/expected/equation9.xml
|
218
|
+
- spec/fixtures/input/embelishments.bin
|
219
|
+
- spec/fixtures/input/equation1.bin
|
220
|
+
- spec/fixtures/input/equation10.bin
|
221
|
+
- spec/fixtures/input/equation11.bin
|
222
|
+
- spec/fixtures/input/equation12.bin
|
223
|
+
- spec/fixtures/input/equation13.bin
|
224
|
+
- spec/fixtures/input/equation2.bin
|
225
|
+
- spec/fixtures/input/equation3.bin
|
226
|
+
- spec/fixtures/input/equation4.bin
|
227
|
+
- spec/fixtures/input/equation5.bin
|
228
|
+
- spec/fixtures/input/equation6.bin
|
229
|
+
- spec/fixtures/input/equation7.bin
|
230
|
+
- spec/fixtures/input/equation8.bin
|
231
|
+
- spec/fixtures/input/equation9.bin
|
232
|
+
- spec/mathtype_spec.rb
|
233
|
+
- spec/spec_helper.rb
|