plurimath 0.1.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +33 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +2 -0
- data/AsciiMath-Supported-Data.adoc +280 -0
- data/Gemfile +1 -0
- data/Latex-Supported-Data.adoc +1872 -0
- data/MathML-Supported-Data.adoc +270 -0
- data/README.adoc +94 -0
- data/lib/plurimath/asciimath/constants.rb +301 -0
- data/lib/plurimath/asciimath/parse.rb +121 -0
- data/lib/plurimath/asciimath/parser.rb +25 -0
- data/lib/plurimath/asciimath/transform.rb +395 -0
- data/lib/plurimath/asciimath.rb +16 -0
- data/lib/plurimath/html/constants.rb +50 -0
- data/lib/plurimath/html/parse.rb +149 -0
- data/lib/plurimath/html/parser.rb +26 -0
- data/lib/plurimath/html/transform.rb +363 -0
- data/lib/plurimath/html.rb +15 -0
- data/lib/plurimath/latex/constants.rb +1990 -0
- data/lib/plurimath/latex/parse.rb +198 -0
- data/lib/plurimath/latex/parser.rb +25 -0
- data/lib/plurimath/latex/transform.rb +458 -0
- data/lib/plurimath/latex.rb +15 -0
- data/lib/plurimath/math/formula.rb +51 -0
- data/lib/plurimath/math/function/abs.rb +12 -0
- data/lib/plurimath/math/function/arccos.rb +12 -0
- data/lib/plurimath/math/function/arcsin.rb +12 -0
- data/lib/plurimath/math/function/arctan.rb +12 -0
- data/lib/plurimath/math/function/bar.rb +16 -0
- data/lib/plurimath/math/function/base.rb +36 -0
- data/lib/plurimath/math/function/binary_function.rb +58 -0
- data/lib/plurimath/math/function/cancel.rb +12 -0
- data/lib/plurimath/math/function/ceil.rb +12 -0
- data/lib/plurimath/math/function/color.rb +23 -0
- data/lib/plurimath/math/function/cos.rb +12 -0
- data/lib/plurimath/math/function/cosh.rb +12 -0
- data/lib/plurimath/math/function/cot.rb +12 -0
- data/lib/plurimath/math/function/coth.rb +12 -0
- data/lib/plurimath/math/function/csc.rb +12 -0
- data/lib/plurimath/math/function/csch.rb +12 -0
- data/lib/plurimath/math/function/ddot.rb +12 -0
- data/lib/plurimath/math/function/deg.rb +12 -0
- data/lib/plurimath/math/function/det.rb +12 -0
- data/lib/plurimath/math/function/dim.rb +12 -0
- data/lib/plurimath/math/function/dot.rb +12 -0
- data/lib/plurimath/math/function/exp.rb +12 -0
- data/lib/plurimath/math/function/f.rb +12 -0
- data/lib/plurimath/math/function/fenced.rb +27 -0
- data/lib/plurimath/math/function/floor.rb +12 -0
- data/lib/plurimath/math/function/font_style/bold.rb +18 -0
- data/lib/plurimath/math/function/font_style/double_struck.rb +18 -0
- data/lib/plurimath/math/function/font_style/fraktur.rb +18 -0
- data/lib/plurimath/math/function/font_style/monospace.rb +18 -0
- data/lib/plurimath/math/function/font_style/sans-serif.rb +18 -0
- data/lib/plurimath/math/function/font_style/script.rb +18 -0
- data/lib/plurimath/math/function/font_style.rb +25 -0
- data/lib/plurimath/math/function/frac.rb +23 -0
- data/lib/plurimath/math/function/g.rb +12 -0
- data/lib/plurimath/math/function/gcd.rb +12 -0
- data/lib/plurimath/math/function/glb.rb +12 -0
- data/lib/plurimath/math/function/hat.rb +12 -0
- data/lib/plurimath/math/function/hom.rb +12 -0
- data/lib/plurimath/math/function/inf.rb +17 -0
- data/lib/plurimath/math/function/int.rb +17 -0
- data/lib/plurimath/math/function/ker.rb +12 -0
- data/lib/plurimath/math/function/lcm.rb +12 -0
- data/lib/plurimath/math/function/left.rb +20 -0
- data/lib/plurimath/math/function/lg.rb +12 -0
- data/lib/plurimath/math/function/lim.rb +23 -0
- data/lib/plurimath/math/function/liminf.rb +12 -0
- data/lib/plurimath/math/function/limits.rb +18 -0
- data/lib/plurimath/math/function/limsup.rb +12 -0
- data/lib/plurimath/math/function/ln.rb +12 -0
- data/lib/plurimath/math/function/log.rb +29 -0
- data/lib/plurimath/math/function/lub.rb +12 -0
- data/lib/plurimath/math/function/max.rb +12 -0
- data/lib/plurimath/math/function/min.rb +12 -0
- data/lib/plurimath/math/function/mod.rb +29 -0
- data/lib/plurimath/math/function/multiscript.rb +11 -0
- data/lib/plurimath/math/function/norm.rb +16 -0
- data/lib/plurimath/math/function/obrace.rb +12 -0
- data/lib/plurimath/math/function/oint.rb +17 -0
- data/lib/plurimath/math/function/over.rb +29 -0
- data/lib/plurimath/math/function/overset.rb +23 -0
- data/lib/plurimath/math/function/power.rb +36 -0
- data/lib/plurimath/math/function/power_base.rb +33 -0
- data/lib/plurimath/math/function/prod.rb +29 -0
- data/lib/plurimath/math/function/right.rb +24 -0
- data/lib/plurimath/math/function/root.rb +23 -0
- data/lib/plurimath/math/function/sec.rb +12 -0
- data/lib/plurimath/math/function/sech.rb +12 -0
- data/lib/plurimath/math/function/sin.rb +12 -0
- data/lib/plurimath/math/function/sinh.rb +12 -0
- data/lib/plurimath/math/function/sqrt.rb +16 -0
- data/lib/plurimath/math/function/stackrel.rb +12 -0
- data/lib/plurimath/math/function/substack.rb +17 -0
- data/lib/plurimath/math/function/sum.rb +29 -0
- data/lib/plurimath/math/function/sup.rb +12 -0
- data/lib/plurimath/math/function/table/align.rb +24 -0
- data/lib/plurimath/math/function/table/array.rb +25 -0
- data/lib/plurimath/math/function/table/bmatrix.rb +26 -0
- data/lib/plurimath/math/function/table/matrix.rb +24 -0
- data/lib/plurimath/math/function/table/multline.rb +24 -0
- data/lib/plurimath/math/function/table/pmatrix.rb +24 -0
- data/lib/plurimath/math/function/table/split.rb +24 -0
- data/lib/plurimath/math/function/table/vmatrix.rb +25 -0
- data/lib/plurimath/math/function/table.rb +54 -0
- data/lib/plurimath/math/function/tan.rb +12 -0
- data/lib/plurimath/math/function/tanh.rb +12 -0
- data/lib/plurimath/math/function/td.rb +32 -0
- data/lib/plurimath/math/function/ternary_function.rb +52 -0
- data/lib/plurimath/math/function/text.rb +44 -0
- data/lib/plurimath/math/function/tilde.rb +12 -0
- data/lib/plurimath/math/function/tr.rb +30 -0
- data/lib/plurimath/math/function/ubrace.rb +12 -0
- data/lib/plurimath/math/function/ul.rb +12 -0
- data/lib/plurimath/math/function/unary_function.rb +46 -0
- data/lib/plurimath/math/function/underover.rb +12 -0
- data/lib/plurimath/math/function/underset.rb +12 -0
- data/lib/plurimath/math/function/vec.rb +16 -0
- data/lib/plurimath/math/function.rb +14 -0
- data/lib/plurimath/math/number.rb +37 -0
- data/lib/plurimath/math/symbol.rb +43 -0
- data/lib/plurimath/math.rb +56 -0
- data/lib/plurimath/mathml/constants.rb +295 -0
- data/lib/plurimath/mathml/parse.rb +68 -0
- data/lib/plurimath/mathml/parser.rb +26 -0
- data/lib/plurimath/mathml/transform.rb +200 -0
- data/lib/plurimath/mathml.rb +16 -0
- data/lib/plurimath/omml/constants.rb +154 -0
- data/lib/plurimath/omml/parser.rb +22 -0
- data/lib/plurimath/omml/transform.rb +216 -0
- data/lib/plurimath/omml.rb +15 -0
- data/lib/plurimath/unicode.rb +15 -0
- data/lib/plurimath/unitsml.rb +15 -0
- data/lib/plurimath/utility.rb +73 -0
- data/lib/plurimath/version.rb +3 -1
- data/lib/plurimath.rb +3 -5
- data/plurimath.gemspec +4 -3
- metadata +169 -9
- data/README.md +0 -40
@@ -0,0 +1,73 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Plurimath
|
4
|
+
class Utility
|
5
|
+
FONT_STYLES = {
|
6
|
+
"double-struck": Math::Function::FontStyle::DoubleStruck,
|
7
|
+
"sans-serif": Math::Function::FontStyle::SansSerif,
|
8
|
+
monospace: Math::Function::FontStyle::Monospace,
|
9
|
+
mathfrak: Math::Function::FontStyle::Fraktur,
|
10
|
+
mathcal: Math::Function::FontStyle::Script,
|
11
|
+
fraktur: Math::Function::FontStyle::Fraktur,
|
12
|
+
mathtt: Math::Function::FontStyle::Monospace,
|
13
|
+
mathbb: Math::Function::FontStyle::DoubleStruck,
|
14
|
+
script: Math::Function::FontStyle::Script,
|
15
|
+
mathsf: Math::Function::FontStyle::SansSerif,
|
16
|
+
mathbf: Math::Function::FontStyle::Bold,
|
17
|
+
bold: Math::Function::FontStyle::Bold,
|
18
|
+
bbb: Math::Function::FontStyle::DoubleStruck,
|
19
|
+
bf: Math::Function::FontStyle::Bold,
|
20
|
+
sf: Math::Function::FontStyle::SansSerif,
|
21
|
+
tt: Math::Function::FontStyle::Monospace,
|
22
|
+
fr: Math::Function::FontStyle::Fraktur,
|
23
|
+
cc: Math::Function::FontStyle::Script,
|
24
|
+
bb: Math::Function::FontStyle::Bold,
|
25
|
+
}.freeze
|
26
|
+
|
27
|
+
class << self
|
28
|
+
def organize_table(array, table = [], table_data = [], table_row = [])
|
29
|
+
table_separator = ["&", "\\\\"].freeze
|
30
|
+
array.each do |data|
|
31
|
+
if data.is_a?(Math::Symbol) && table_separator.include?(data.value)
|
32
|
+
table_row << Math::Function::Td.new(table_data)
|
33
|
+
table_data = []
|
34
|
+
if data.value == "\\\\"
|
35
|
+
table << Math::Function::Tr.new(table_row.flatten)
|
36
|
+
table_row = []
|
37
|
+
end
|
38
|
+
else
|
39
|
+
table_data << data
|
40
|
+
end
|
41
|
+
end
|
42
|
+
table_row << Math::Function::Td.new(table_data) if table_data
|
43
|
+
table << Math::Function::Tr.new(table_row) unless table_row.empty?
|
44
|
+
table
|
45
|
+
end
|
46
|
+
|
47
|
+
def get_table_class(text)
|
48
|
+
Object.const_get(
|
49
|
+
"Plurimath::Math::Function::Table::#{text.capitalize}",
|
50
|
+
)
|
51
|
+
end
|
52
|
+
|
53
|
+
def sub_sup_method?(sub_sup)
|
54
|
+
if sub_sup.methods.include?(:class_name)
|
55
|
+
Html::Constants::SUB_SUP_CLASSES.value?(sub_sup.class_name.to_sym)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def get_class(text)
|
60
|
+
Object.const_get(
|
61
|
+
"Plurimath::Math::Function::#{text.capitalize}",
|
62
|
+
)
|
63
|
+
end
|
64
|
+
|
65
|
+
def raise_error!(open_tag, close_tag)
|
66
|
+
message = "Please check your input."\
|
67
|
+
" Opening tag is \"#{open_tag}\""\
|
68
|
+
" and closing tag is \"#{close_tag}\""
|
69
|
+
raise Math::Error.new(message)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
data/lib/plurimath/version.rb
CHANGED
data/lib/plurimath.rb
CHANGED
data/plurimath.gemspec
CHANGED
@@ -8,14 +8,13 @@ Gem::Specification.new do |spec|
|
|
8
8
|
|
9
9
|
spec.summary = 'Converts LaTeX math into MathML.'
|
10
10
|
spec.description = 'Converts LaTeX math into MathML.'
|
11
|
-
spec.homepage = 'https://github.com/plurimath/
|
11
|
+
spec.homepage = 'https://github.com/plurimath/plurimath'
|
12
12
|
spec.license = 'BSD-2-Clause'
|
13
13
|
|
14
14
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
|
15
15
|
|
16
16
|
spec.metadata['homepage_uri'] = spec.homepage
|
17
|
-
spec.metadata['source_code_uri'] = 'https://github.com/plurimath/
|
18
|
-
spec.metadata['changelog_uri'] = 'https://github.com/plurimath/latexmath/blob/master/CHANGELOG.md.'
|
17
|
+
spec.metadata['source_code_uri'] = 'https://github.com/plurimath/plurimath'
|
19
18
|
|
20
19
|
# Specify which files should be added to the gem when it is released.
|
21
20
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
@@ -25,4 +24,6 @@ Gem::Specification.new do |spec|
|
|
25
24
|
spec.bindir = "exe"
|
26
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
26
|
spec.require_paths = ["lib"]
|
27
|
+
spec.add_dependency 'parslet'
|
28
|
+
spec.add_dependency 'ox'
|
28
29
|
end
|
metadata
CHANGED
@@ -1,15 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plurimath
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
11
|
+
date: 2022-10-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: parslet
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: ox
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
13
41
|
description: Converts LaTeX math into MathML.
|
14
42
|
email:
|
15
43
|
- open.source@ribose.com
|
@@ -17,23 +45,155 @@ executables: []
|
|
17
45
|
extensions: []
|
18
46
|
extra_rdoc_files: []
|
19
47
|
files:
|
48
|
+
- ".github/workflows/test.yml"
|
20
49
|
- ".gitignore"
|
50
|
+
- ".rubocop.yml"
|
51
|
+
- AsciiMath-Supported-Data.adoc
|
21
52
|
- CODE_OF_CONDUCT.md
|
22
53
|
- Gemfile
|
23
|
-
-
|
54
|
+
- Latex-Supported-Data.adoc
|
55
|
+
- MathML-Supported-Data.adoc
|
56
|
+
- README.adoc
|
24
57
|
- Rakefile
|
25
58
|
- bin/console
|
26
59
|
- bin/setup
|
27
60
|
- lib/plurimath.rb
|
61
|
+
- lib/plurimath/asciimath.rb
|
62
|
+
- lib/plurimath/asciimath/constants.rb
|
63
|
+
- lib/plurimath/asciimath/parse.rb
|
64
|
+
- lib/plurimath/asciimath/parser.rb
|
65
|
+
- lib/plurimath/asciimath/transform.rb
|
66
|
+
- lib/plurimath/html.rb
|
67
|
+
- lib/plurimath/html/constants.rb
|
68
|
+
- lib/plurimath/html/parse.rb
|
69
|
+
- lib/plurimath/html/parser.rb
|
70
|
+
- lib/plurimath/html/transform.rb
|
71
|
+
- lib/plurimath/latex.rb
|
72
|
+
- lib/plurimath/latex/constants.rb
|
73
|
+
- lib/plurimath/latex/parse.rb
|
74
|
+
- lib/plurimath/latex/parser.rb
|
75
|
+
- lib/plurimath/latex/transform.rb
|
76
|
+
- lib/plurimath/math.rb
|
77
|
+
- lib/plurimath/math/formula.rb
|
78
|
+
- lib/plurimath/math/function.rb
|
79
|
+
- lib/plurimath/math/function/abs.rb
|
80
|
+
- lib/plurimath/math/function/arccos.rb
|
81
|
+
- lib/plurimath/math/function/arcsin.rb
|
82
|
+
- lib/plurimath/math/function/arctan.rb
|
83
|
+
- lib/plurimath/math/function/bar.rb
|
84
|
+
- lib/plurimath/math/function/base.rb
|
85
|
+
- lib/plurimath/math/function/binary_function.rb
|
86
|
+
- lib/plurimath/math/function/cancel.rb
|
87
|
+
- lib/plurimath/math/function/ceil.rb
|
88
|
+
- lib/plurimath/math/function/color.rb
|
89
|
+
- lib/plurimath/math/function/cos.rb
|
90
|
+
- lib/plurimath/math/function/cosh.rb
|
91
|
+
- lib/plurimath/math/function/cot.rb
|
92
|
+
- lib/plurimath/math/function/coth.rb
|
93
|
+
- lib/plurimath/math/function/csc.rb
|
94
|
+
- lib/plurimath/math/function/csch.rb
|
95
|
+
- lib/plurimath/math/function/ddot.rb
|
96
|
+
- lib/plurimath/math/function/deg.rb
|
97
|
+
- lib/plurimath/math/function/det.rb
|
98
|
+
- lib/plurimath/math/function/dim.rb
|
99
|
+
- lib/plurimath/math/function/dot.rb
|
100
|
+
- lib/plurimath/math/function/exp.rb
|
101
|
+
- lib/plurimath/math/function/f.rb
|
102
|
+
- lib/plurimath/math/function/fenced.rb
|
103
|
+
- lib/plurimath/math/function/floor.rb
|
104
|
+
- lib/plurimath/math/function/font_style.rb
|
105
|
+
- lib/plurimath/math/function/font_style/bold.rb
|
106
|
+
- lib/plurimath/math/function/font_style/double_struck.rb
|
107
|
+
- lib/plurimath/math/function/font_style/fraktur.rb
|
108
|
+
- lib/plurimath/math/function/font_style/monospace.rb
|
109
|
+
- lib/plurimath/math/function/font_style/sans-serif.rb
|
110
|
+
- lib/plurimath/math/function/font_style/script.rb
|
111
|
+
- lib/plurimath/math/function/frac.rb
|
112
|
+
- lib/plurimath/math/function/g.rb
|
113
|
+
- lib/plurimath/math/function/gcd.rb
|
114
|
+
- lib/plurimath/math/function/glb.rb
|
115
|
+
- lib/plurimath/math/function/hat.rb
|
116
|
+
- lib/plurimath/math/function/hom.rb
|
117
|
+
- lib/plurimath/math/function/inf.rb
|
118
|
+
- lib/plurimath/math/function/int.rb
|
119
|
+
- lib/plurimath/math/function/ker.rb
|
120
|
+
- lib/plurimath/math/function/lcm.rb
|
121
|
+
- lib/plurimath/math/function/left.rb
|
122
|
+
- lib/plurimath/math/function/lg.rb
|
123
|
+
- lib/plurimath/math/function/lim.rb
|
124
|
+
- lib/plurimath/math/function/liminf.rb
|
125
|
+
- lib/plurimath/math/function/limits.rb
|
126
|
+
- lib/plurimath/math/function/limsup.rb
|
127
|
+
- lib/plurimath/math/function/ln.rb
|
128
|
+
- lib/plurimath/math/function/log.rb
|
129
|
+
- lib/plurimath/math/function/lub.rb
|
130
|
+
- lib/plurimath/math/function/max.rb
|
131
|
+
- lib/plurimath/math/function/min.rb
|
132
|
+
- lib/plurimath/math/function/mod.rb
|
133
|
+
- lib/plurimath/math/function/multiscript.rb
|
134
|
+
- lib/plurimath/math/function/norm.rb
|
135
|
+
- lib/plurimath/math/function/obrace.rb
|
136
|
+
- lib/plurimath/math/function/oint.rb
|
137
|
+
- lib/plurimath/math/function/over.rb
|
138
|
+
- lib/plurimath/math/function/overset.rb
|
139
|
+
- lib/plurimath/math/function/power.rb
|
140
|
+
- lib/plurimath/math/function/power_base.rb
|
141
|
+
- lib/plurimath/math/function/prod.rb
|
142
|
+
- lib/plurimath/math/function/right.rb
|
143
|
+
- lib/plurimath/math/function/root.rb
|
144
|
+
- lib/plurimath/math/function/sec.rb
|
145
|
+
- lib/plurimath/math/function/sech.rb
|
146
|
+
- lib/plurimath/math/function/sin.rb
|
147
|
+
- lib/plurimath/math/function/sinh.rb
|
148
|
+
- lib/plurimath/math/function/sqrt.rb
|
149
|
+
- lib/plurimath/math/function/stackrel.rb
|
150
|
+
- lib/plurimath/math/function/substack.rb
|
151
|
+
- lib/plurimath/math/function/sum.rb
|
152
|
+
- lib/plurimath/math/function/sup.rb
|
153
|
+
- lib/plurimath/math/function/table.rb
|
154
|
+
- lib/plurimath/math/function/table/align.rb
|
155
|
+
- lib/plurimath/math/function/table/array.rb
|
156
|
+
- lib/plurimath/math/function/table/bmatrix.rb
|
157
|
+
- lib/plurimath/math/function/table/matrix.rb
|
158
|
+
- lib/plurimath/math/function/table/multline.rb
|
159
|
+
- lib/plurimath/math/function/table/pmatrix.rb
|
160
|
+
- lib/plurimath/math/function/table/split.rb
|
161
|
+
- lib/plurimath/math/function/table/vmatrix.rb
|
162
|
+
- lib/plurimath/math/function/tan.rb
|
163
|
+
- lib/plurimath/math/function/tanh.rb
|
164
|
+
- lib/plurimath/math/function/td.rb
|
165
|
+
- lib/plurimath/math/function/ternary_function.rb
|
166
|
+
- lib/plurimath/math/function/text.rb
|
167
|
+
- lib/plurimath/math/function/tilde.rb
|
168
|
+
- lib/plurimath/math/function/tr.rb
|
169
|
+
- lib/plurimath/math/function/ubrace.rb
|
170
|
+
- lib/plurimath/math/function/ul.rb
|
171
|
+
- lib/plurimath/math/function/unary_function.rb
|
172
|
+
- lib/plurimath/math/function/underover.rb
|
173
|
+
- lib/plurimath/math/function/underset.rb
|
174
|
+
- lib/plurimath/math/function/vec.rb
|
175
|
+
- lib/plurimath/math/number.rb
|
176
|
+
- lib/plurimath/math/symbol.rb
|
177
|
+
- lib/plurimath/mathml.rb
|
178
|
+
- lib/plurimath/mathml/constants.rb
|
179
|
+
- lib/plurimath/mathml/parse.rb
|
180
|
+
- lib/plurimath/mathml/parser.rb
|
181
|
+
- lib/plurimath/mathml/transform.rb
|
182
|
+
- lib/plurimath/omml.rb
|
183
|
+
- lib/plurimath/omml/constants.rb
|
184
|
+
- lib/plurimath/omml/parser.rb
|
185
|
+
- lib/plurimath/omml/transform.rb
|
186
|
+
- lib/plurimath/unicode.rb
|
187
|
+
- lib/plurimath/unitsml.rb
|
188
|
+
- lib/plurimath/utility.rb
|
28
189
|
- lib/plurimath/version.rb
|
29
190
|
- plurimath.gemspec
|
30
|
-
homepage: https://github.com/plurimath/
|
191
|
+
homepage: https://github.com/plurimath/plurimath
|
31
192
|
licenses:
|
32
193
|
- BSD-2-Clause
|
33
194
|
metadata:
|
34
|
-
homepage_uri: https://github.com/plurimath/
|
35
|
-
source_code_uri: https://github.com/plurimath/
|
36
|
-
changelog_uri: https://github.com/plurimath/latexmath/blob/master/CHANGELOG.md.
|
195
|
+
homepage_uri: https://github.com/plurimath/plurimath
|
196
|
+
source_code_uri: https://github.com/plurimath/plurimath
|
37
197
|
post_install_message:
|
38
198
|
rdoc_options: []
|
39
199
|
require_paths:
|
@@ -49,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
209
|
- !ruby/object:Gem::Version
|
50
210
|
version: '0'
|
51
211
|
requirements: []
|
52
|
-
rubygems_version: 3.
|
212
|
+
rubygems_version: 3.3.22
|
53
213
|
signing_key:
|
54
214
|
specification_version: 4
|
55
215
|
summary: Converts LaTeX math into MathML.
|
data/README.md
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
# Plurimath
|
2
|
-
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/plurimath`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'plurimath'
|
13
|
-
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle install
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install plurimath
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/plurimath. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/plurimath/blob/master/CODE_OF_CONDUCT.md).
|
36
|
-
|
37
|
-
|
38
|
-
## Code of Conduct
|
39
|
-
|
40
|
-
Everyone interacting in the Plurimath project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/plurimath/blob/master/CODE_OF_CONDUCT.md).
|