mathtype_to_mathml 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_to_mathml.rb +5 -1
- data/lib/mathtype_to_mathml/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86e1892851c0f155e597a31f3fda79307f8b26fd
|
4
|
+
data.tar.gz: 25cc035a98c6e87f51bc0e6c4888180622cef578
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b755aec266e3717b31bede80d4b1b79c1f660e7e10d1cdb4a6eac87647f46603a86dbffe4ac0a908897470bc3dde9a925ab12ccef1c38b0d399a75c424b84c99
|
7
|
+
data.tar.gz: ffa60e12f05dadd22fefb991b1a333ac356ac13d61c60b3e342a6d53ff4e8ada1b238b0fd5d24139432606352982edff0978212c013b92ba70cf1a4fdad52564
|
data/lib/mathtype_to_mathml.rb
CHANGED
@@ -8,7 +8,7 @@ require "pry"
|
|
8
8
|
module MathTypeToMathML
|
9
9
|
class Converter
|
10
10
|
def initialize(mathtype)
|
11
|
-
@xslt = Nokogiri::XSLT(File.open(
|
11
|
+
@xslt = Nokogiri::XSLT(File.open(path_to_xslt))
|
12
12
|
|
13
13
|
@mathtype = Mathtype::Converter.new(mathtype).xml.doc
|
14
14
|
|
@@ -24,5 +24,9 @@ module MathTypeToMathML
|
|
24
24
|
def convert
|
25
25
|
@xslt.transform(@mathtype).to_s
|
26
26
|
end
|
27
|
+
|
28
|
+
def path_to_xslt
|
29
|
+
File.join(File.dirname(File.expand_path(__FILE__)), "transform.xsl")
|
30
|
+
end
|
27
31
|
end
|
28
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mathtype_to_mathml
|
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
|
- PLOS
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|