mathtype_to_mathml 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mathtype_to_mathml/version.rb +1 -1
- data/lib/transform.xsl +7 -1
- data/mathtype_to_mathml.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b5040ab7fdfb8f3bb22ba7e4240609263d89753
|
|
4
|
+
data.tar.gz: b8e4b7c783a2023bf9c86ad667569227932ad198
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cac7467b131f51bf6a7563f27dcf650c9c070767db79d90688b83bd4abe5a0953c28892098246d474324d241aded13a09c4ae8d4cb2f61478c95d44d73bc7b1a
|
|
7
|
+
data.tar.gz: 0dbcde536151eba17dacccd896db2740669331d9438cb3501e62f6d36b6e5dc7ed69618a2cd691086b86e075e52fb47bb705b1d392dd9302dae20ce3b6c552b4
|
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>
|
data/mathtype_to_mathml.gemspec
CHANGED
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.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-
|
|
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.
|
|
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.
|
|
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
|