mathtype_to_mathml 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86e1892851c0f155e597a31f3fda79307f8b26fd
4
- data.tar.gz: 25cc035a98c6e87f51bc0e6c4888180622cef578
3
+ metadata.gz: 0b5040ab7fdfb8f3bb22ba7e4240609263d89753
4
+ data.tar.gz: b8e4b7c783a2023bf9c86ad667569227932ad198
5
5
  SHA512:
6
- metadata.gz: b755aec266e3717b31bede80d4b1b79c1f660e7e10d1cdb4a6eac87647f46603a86dbffe4ac0a908897470bc3dde9a925ab12ccef1c38b0d399a75c424b84c99
7
- data.tar.gz: ffa60e12f05dadd22fefb991b1a333ac356ac13d61c60b3e342a6d53ff4e8ada1b238b0fd5d24139432606352982edff0978212c013b92ba70cf1a4fdad52564
6
+ metadata.gz: cac7467b131f51bf6a7563f27dcf650c9c070767db79d90688b83bd4abe5a0953c28892098246d474324d241aded13a09c4ae8d4cb2f61478c95d44d73bc7b1a
7
+ data.tar.gz: 0dbcde536151eba17dacccd896db2740669331d9438cb3501e62f6d36b6e5dc7ed69618a2cd691086b86e075e52fb47bb705b1d392dd9302dae20ce3b6c552b4
@@ -1,3 +1,3 @@
1
1
  module MathTypeToMathML
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/transform.xsl CHANGED
@@ -7,7 +7,13 @@
7
7
  <xsl:apply-templates select=".//mtef" />
8
8
  </xsl:template>
9
9
 
10
- <xsl:template match="mtef">
10
+ <xsl:template match="mtef[equation_options = 'inline']">
11
+ <math>
12
+ <xsl:apply-templates select="pile | slot"/>
13
+ </math>
14
+ </xsl:template>
15
+
16
+ <xsl:template match="mtef[equation_options = 'block']">
11
17
  <math display="block">
12
18
  <xsl:apply-templates select="pile | slot"/>
13
19
  </math>
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "pry", "~> 0.10"
25
25
 
26
26
  spec.add_dependency "nokogiri", "~> 1.6"
27
- spec.add_dependency "mathtype", "~> 0.0.6"
27
+ spec.add_dependency "mathtype", "~> 0.0.7"
28
28
  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.3
4
+ version: 0.0.5
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-25 00:00:00.000000000 Z
11
+ date: 2015-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.0.6
89
+ version: 0.0.7
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.6
96
+ version: 0.0.7
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