mml 2.0.3 → 2.2.0
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/.github/workflows/release.yml +10 -4
- data/.gitignore +2 -0
- data/.rubocop.yml +1 -1
- data/.rubocop_todo.yml +20 -91
- data/Gemfile +2 -1
- data/README.adoc +365 -4
- data/lib/mml/v3/common_attributes.rb +22 -0
- data/lib/mml/v3/configuration.rb +105 -0
- data/lib/mml/v3/maction.rb +22 -0
- data/lib/mml/v3/maligngroup.rb +20 -0
- data/lib/mml/v3/malignmark.rb +20 -0
- data/lib/mml/v3/math.rb +20 -0
- data/lib/mml/v3/menclose.rb +21 -0
- data/lib/mml/v3/merror.rb +19 -0
- data/lib/mml/v3/mfenced.rb +28 -0
- data/lib/mml/v3/mfrac.rb +27 -0
- data/lib/mml/v3/mfraction.rb +27 -0
- data/lib/mml/v3/mglyph.rb +46 -0
- data/lib/mml/v3/mi.rb +38 -0
- data/lib/mml/v3/mlabeledtr.rb +31 -0
- data/lib/mml/v3/mlongdiv.rb +25 -0
- data/lib/mml/v3/mmultiscripts.rb +27 -0
- data/lib/mml/v3/mn.rb +38 -0
- data/lib/mml/v3/mo.rb +86 -0
- data/lib/mml/v3/mover.rb +23 -0
- data/lib/mml/v3/mpadded.rb +29 -0
- data/lib/mml/v3/mphantom.rb +19 -0
- data/lib/mml/v3/mprescripts.rb +18 -0
- data/lib/mml/v3/mroot.rb +19 -0
- data/lib/mml/v3/mrow.rb +25 -0
- data/lib/mml/v3/ms.rb +43 -0
- data/lib/mml/v3/mscarries.rb +27 -0
- data/lib/mml/v3/mscarry.rb +23 -0
- data/lib/mml/v3/msgroup.rb +25 -0
- data/lib/mml/v3/msline.rb +28 -0
- data/lib/mml/v3/mspace.rb +58 -0
- data/lib/mml/v3/msqrt.rb +19 -0
- data/lib/mml/v3/msrow.rb +21 -0
- data/lib/mml/v3/mstack.rb +27 -0
- data/lib/mml/v3/mstyle.rb +211 -0
- data/lib/mml/v3/msub.rb +21 -0
- data/lib/mml/v3/msubsup.rb +23 -0
- data/lib/mml/v3/msup.rb +21 -0
- data/lib/mml/v3/mtable.rb +61 -0
- data/lib/mml/v3/mtd.rb +23 -0
- data/lib/mml/v3/mtext.rb +38 -0
- data/lib/mml/v3/mtr.rb +29 -0
- data/lib/mml/v3/munder.rb +25 -0
- data/lib/mml/v3/munderover.rb +25 -0
- data/lib/mml/v3/namespace.rb +10 -0
- data/lib/mml/v3/none.rb +18 -0
- data/lib/mml/v3/semantics.rb +19 -0
- data/lib/mml/v3/version.rb +7 -0
- data/lib/mml/v3.rb +85 -0
- data/lib/mml/v4/a.rb +31 -0
- data/lib/mml/v4/common_attributes.rb +26 -0
- data/lib/mml/v4/configuration.rb +106 -0
- data/lib/mml/v4/maction.rb +30 -0
- data/lib/mml/v4/maligngroup.rb +28 -0
- data/lib/mml/v4/malignmark.rb +28 -0
- data/lib/mml/v4/math.rb +27 -0
- data/lib/mml/v4/menclose.rb +29 -0
- data/lib/mml/v4/merror.rb +27 -0
- data/lib/mml/v4/mfenced.rb +36 -0
- data/lib/mml/v4/mfrac.rb +35 -0
- data/lib/mml/v4/mfraction.rb +31 -0
- data/lib/mml/v4/mglyph.rb +46 -0
- data/lib/mml/v4/mi.rb +41 -0
- data/lib/mml/v4/mlabeledtr.rb +34 -0
- data/lib/mml/v4/mlongdiv.rb +29 -0
- data/lib/mml/v4/mmultiscripts.rb +35 -0
- data/lib/mml/v4/mn.rb +40 -0
- data/lib/mml/v4/mo.rb +86 -0
- data/lib/mml/v4/mover.rb +31 -0
- data/lib/mml/v4/mpadded.rb +37 -0
- data/lib/mml/v4/mphantom.rb +27 -0
- data/lib/mml/v4/mprescripts.rb +22 -0
- data/lib/mml/v4/mroot.rb +27 -0
- data/lib/mml/v4/mrow.rb +31 -0
- data/lib/mml/v4/ms.rb +45 -0
- data/lib/mml/v4/mscarries.rb +31 -0
- data/lib/mml/v4/mscarry.rb +27 -0
- data/lib/mml/v4/msgroup.rb +29 -0
- data/lib/mml/v4/msline.rb +32 -0
- data/lib/mml/v4/mspace.rb +60 -0
- data/lib/mml/v4/msqrt.rb +27 -0
- data/lib/mml/v4/msrow.rb +29 -0
- data/lib/mml/v4/mstack.rb +35 -0
- data/lib/mml/v4/mstyle.rb +197 -0
- data/lib/mml/v4/msub.rb +29 -0
- data/lib/mml/v4/msubsup.rb +31 -0
- data/lib/mml/v4/msup.rb +29 -0
- data/lib/mml/v4/mtable.rb +66 -0
- data/lib/mml/v4/mtd.rb +31 -0
- data/lib/mml/v4/mtext.rb +40 -0
- data/lib/mml/v4/mtr.rb +36 -0
- data/lib/mml/v4/munder.rb +33 -0
- data/lib/mml/v4/munderover.rb +33 -0
- data/lib/mml/v4/namespace.rb +10 -0
- data/lib/mml/v4/none.rb +22 -0
- data/lib/mml/v4/opal_setup.rb.erb +6 -0
- data/lib/mml/v4/semantics.rb +23 -0
- data/lib/mml/v4/version.rb +7 -0
- data/lib/mml/v4.rb +81 -0
- data/lib/mml/version.rb +1 -1
- data/lib/mml.rb +25 -43
- data/mml.gemspec +1 -1
- metadata +105 -53
- data/lib/mml/common_attributes.rb +0 -23
- data/lib/mml/configuration.rb +0 -104
- data/lib/mml/maction.rb +0 -19
- data/lib/mml/maligngroup.rb +0 -17
- data/lib/mml/malignmark.rb +0 -17
- data/lib/mml/math_with_namespace.rb +0 -14
- data/lib/mml/math_with_nil_namespace.rb +0 -13
- data/lib/mml/menclose.rb +0 -17
- data/lib/mml/merror.rb +0 -15
- data/lib/mml/mfenced.rb +0 -24
- data/lib/mml/mfrac.rb +0 -23
- data/lib/mml/mfraction.rb +0 -23
- data/lib/mml/mglyph.rb +0 -43
- data/lib/mml/mi.rb +0 -35
- data/lib/mml/mlabeledtr.rb +0 -27
- data/lib/mml/mlongdiv.rb +0 -21
- data/lib/mml/mmultiscripts.rb +0 -23
- data/lib/mml/mn.rb +0 -35
- data/lib/mml/mo.rb +0 -83
- data/lib/mml/mover.rb +0 -19
- data/lib/mml/mpadded.rb +0 -25
- data/lib/mml/mphantom.rb +0 -15
- data/lib/mml/mprescripts.rb +0 -15
- data/lib/mml/mroot.rb +0 -15
- data/lib/mml/mrow.rb +0 -21
- data/lib/mml/ms.rb +0 -39
- data/lib/mml/mscarries.rb +0 -24
- data/lib/mml/mscarry.rb +0 -19
- data/lib/mml/msgroup.rb +0 -21
- data/lib/mml/msline.rb +0 -25
- data/lib/mml/mspace.rb +0 -55
- data/lib/mml/msqrt.rb +0 -15
- data/lib/mml/msrow.rb +0 -17
- data/lib/mml/mstack.rb +0 -23
- data/lib/mml/mstyle.rb +0 -212
- data/lib/mml/msub.rb +0 -17
- data/lib/mml/msubsup.rb +0 -19
- data/lib/mml/msup.rb +0 -17
- data/lib/mml/mtable.rb +0 -57
- data/lib/mml/mtd.rb +0 -19
- data/lib/mml/mtext.rb +0 -35
- data/lib/mml/mtr.rb +0 -25
- data/lib/mml/munder.rb +0 -21
- data/lib/mml/munderover.rb +0 -21
- data/lib/mml/none.rb +0 -15
- data/lib/mml/semantics.rb +0 -15
- /data/lib/mml/{opal_setup.rb.erb → v3/opal_setup.rb.erb} +0 -0
data/lib/mml/configuration.rb
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
module Configuration
|
|
5
|
-
SUPPORTED_TAGS = %i[
|
|
6
|
-
mmultiscripts
|
|
7
|
-
maligngroup
|
|
8
|
-
malignmark
|
|
9
|
-
munderover
|
|
10
|
-
semantics
|
|
11
|
-
mscarries
|
|
12
|
-
mfraction
|
|
13
|
-
mphantom
|
|
14
|
-
menclose
|
|
15
|
-
mlongdiv
|
|
16
|
-
mpadded
|
|
17
|
-
msubsup
|
|
18
|
-
mscarry
|
|
19
|
-
mfenced
|
|
20
|
-
msgroup
|
|
21
|
-
mglyph
|
|
22
|
-
mstack
|
|
23
|
-
munder
|
|
24
|
-
mtable
|
|
25
|
-
mstyle
|
|
26
|
-
mspace
|
|
27
|
-
msline
|
|
28
|
-
merror
|
|
29
|
-
msrow
|
|
30
|
-
mfrac
|
|
31
|
-
mover
|
|
32
|
-
mroot
|
|
33
|
-
mtext
|
|
34
|
-
msqrt
|
|
35
|
-
none
|
|
36
|
-
mrow
|
|
37
|
-
msub
|
|
38
|
-
msup
|
|
39
|
-
mi
|
|
40
|
-
mo
|
|
41
|
-
mn
|
|
42
|
-
ms
|
|
43
|
-
].freeze
|
|
44
|
-
|
|
45
|
-
COMMON_ATTRIBUTES_CLASSES = %w[
|
|
46
|
-
MathWithNilNamespace
|
|
47
|
-
MathWithNamespace
|
|
48
|
-
Mmultiscripts
|
|
49
|
-
Munderover
|
|
50
|
-
Semantics
|
|
51
|
-
Mscarries
|
|
52
|
-
Mfraction
|
|
53
|
-
Mlongdiv
|
|
54
|
-
Mphantom
|
|
55
|
-
Menclose
|
|
56
|
-
Mfenced
|
|
57
|
-
Mpadded
|
|
58
|
-
Msubsup
|
|
59
|
-
Msgroup
|
|
60
|
-
Mscarry
|
|
61
|
-
Munder
|
|
62
|
-
Mstyle
|
|
63
|
-
Mstack
|
|
64
|
-
Merror
|
|
65
|
-
Mover
|
|
66
|
-
Mfrac
|
|
67
|
-
Msrow
|
|
68
|
-
Mroot
|
|
69
|
-
Msqrt
|
|
70
|
-
Mrow
|
|
71
|
-
Msub
|
|
72
|
-
Msup
|
|
73
|
-
Mtd
|
|
74
|
-
Ms
|
|
75
|
-
].freeze
|
|
76
|
-
|
|
77
|
-
module_function
|
|
78
|
-
|
|
79
|
-
def config
|
|
80
|
-
@config ||= {}
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
def config=(config)
|
|
84
|
-
self.config.merge!(config)
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
def custom_models=(models_hash)
|
|
88
|
-
# { Mi => CustomMiClass, Mo => CustomMoClass }
|
|
89
|
-
models_hash.each { |klass, model| klass.model(model) }
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
def adapter
|
|
93
|
-
Lutaml::Model::Config.xml_adapter
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
def adapter=(adapter)
|
|
97
|
-
Lutaml::Model::Config.xml_adapter_type = adapter.downcase
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
def class_for(class_name)
|
|
101
|
-
config[class_name]
|
|
102
|
-
end
|
|
103
|
-
end
|
|
104
|
-
end
|
data/lib/mml/maction.rb
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Maction < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
attribute :actiontype, :string
|
|
8
|
-
attribute :selection, :string
|
|
9
|
-
|
|
10
|
-
xml do
|
|
11
|
-
root "maction"
|
|
12
|
-
|
|
13
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
14
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
15
|
-
map_attribute "actiontype", to: :actiontype, namespace: nil
|
|
16
|
-
map_attribute "selection", to: :selection, namespace: nil
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
data/lib/mml/maligngroup.rb
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Maligngroup < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
attribute :groupalign, :string
|
|
8
|
-
|
|
9
|
-
xml do
|
|
10
|
-
root "maligngroup"
|
|
11
|
-
|
|
12
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
13
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
14
|
-
map_attribute "groupalign", to: :groupalign, namespace: nil
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
data/lib/mml/malignmark.rb
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Malignmark < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
attribute :edge, :string
|
|
8
|
-
|
|
9
|
-
xml do
|
|
10
|
-
root "malignmark"
|
|
11
|
-
|
|
12
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
13
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
14
|
-
map_attribute "edge", to: :edge, namespace: nil
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class MathWithNamespace < Lutaml::Model::Serializable
|
|
5
|
-
attribute :display, :string
|
|
6
|
-
|
|
7
|
-
xml do
|
|
8
|
-
root "math", mixed: true
|
|
9
|
-
namespace "http://www.w3.org/1998/Math/MathML", nil
|
|
10
|
-
|
|
11
|
-
map_attribute :display, to: :display
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
end
|
data/lib/mml/menclose.rb
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Menclose < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
attribute :notation, :string
|
|
8
|
-
|
|
9
|
-
xml do
|
|
10
|
-
root "menclose", mixed: true
|
|
11
|
-
|
|
12
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
13
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
14
|
-
map_attribute "notation", to: :notation, namespace: nil
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
data/lib/mml/merror.rb
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Merror < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathbackground, :string
|
|
6
|
-
attribute :mathcolor, :string
|
|
7
|
-
|
|
8
|
-
xml do
|
|
9
|
-
root "merror", mixed: true
|
|
10
|
-
|
|
11
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
12
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
data/lib/mml/mfenced.rb
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mfenced < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathbackground, :string
|
|
6
|
-
attribute :separators, :string
|
|
7
|
-
attribute :mathcolor, :string
|
|
8
|
-
attribute :content, :string
|
|
9
|
-
attribute :close, :string
|
|
10
|
-
attribute :open, :string
|
|
11
|
-
|
|
12
|
-
xml do
|
|
13
|
-
root "mfenced", mixed: true
|
|
14
|
-
|
|
15
|
-
map_content to: :content
|
|
16
|
-
|
|
17
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
18
|
-
map_attribute "separators", to: :separators, namespace: nil
|
|
19
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
20
|
-
map_attribute "close", to: :close, namespace: nil
|
|
21
|
-
map_attribute "open", to: :open, namespace: nil
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
data/lib/mml/mfrac.rb
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mfrac < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
attribute :linethickness, :string
|
|
8
|
-
attribute :numalign, :string
|
|
9
|
-
attribute :denomalign, :string
|
|
10
|
-
attribute :bevelled, :string
|
|
11
|
-
|
|
12
|
-
xml do
|
|
13
|
-
root "mfrac", mixed: true
|
|
14
|
-
|
|
15
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
16
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
17
|
-
map_attribute "linethickness", to: :linethickness, namespace: nil
|
|
18
|
-
map_attribute "numalign", to: :numalign, namespace: nil
|
|
19
|
-
map_attribute "denomalign", to: :denomalign, namespace: nil
|
|
20
|
-
map_attribute "bevelled", to: :bevelled, namespace: nil
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
data/lib/mml/mfraction.rb
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mfraction < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
attribute :linethickness, :string
|
|
8
|
-
attribute :numalign, :string
|
|
9
|
-
attribute :denomalign, :string
|
|
10
|
-
attribute :bevelled, :string
|
|
11
|
-
|
|
12
|
-
xml do
|
|
13
|
-
root "mfraction", mixed: true
|
|
14
|
-
|
|
15
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
16
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
17
|
-
map_attribute "linethickness", to: :linethickness, namespace: nil
|
|
18
|
-
map_attribute "numalign", to: :numalign, namespace: nil
|
|
19
|
-
map_attribute "denomalign", to: :denomalign, namespace: nil
|
|
20
|
-
map_attribute "bevelled", to: :bevelled, namespace: nil
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
data/lib/mml/mglyph.rb
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mglyph < Lutaml::Model::Serializable
|
|
5
|
-
attribute :alt, :string
|
|
6
|
-
attribute :src, :string
|
|
7
|
-
attribute :width, :string
|
|
8
|
-
attribute :color, :string
|
|
9
|
-
attribute :index, :integer
|
|
10
|
-
attribute :height, :string
|
|
11
|
-
attribute :valign, :string
|
|
12
|
-
attribute :mathsize, :string
|
|
13
|
-
attribute :fontsize, :string
|
|
14
|
-
attribute :fontstyle, :string
|
|
15
|
-
attribute :mathcolor, :string
|
|
16
|
-
attribute :fontfamily, :string
|
|
17
|
-
attribute :fontweight, :string
|
|
18
|
-
attribute :background, :string
|
|
19
|
-
attribute :mathvariant, :string
|
|
20
|
-
attribute :mathbackground, :string
|
|
21
|
-
|
|
22
|
-
xml do
|
|
23
|
-
root "mglyph"
|
|
24
|
-
|
|
25
|
-
map_attribute "src", to: :src, namespace: nil
|
|
26
|
-
map_attribute "alt", to: :alt, namespace: nil
|
|
27
|
-
map_attribute "color", to: :color, namespace: nil
|
|
28
|
-
map_attribute "index", to: :index, namespace: nil
|
|
29
|
-
map_attribute "width", to: :width, namespace: nil
|
|
30
|
-
map_attribute "height", to: :height, namespace: nil
|
|
31
|
-
map_attribute "valign", to: :valign, namespace: nil
|
|
32
|
-
map_attribute "mathsize", to: :mathsize, namespace: nil
|
|
33
|
-
map_attribute "fontsize", to: :fontsize, namespace: nil
|
|
34
|
-
map_attribute "fontstyle", to: :fontstyle, namespace: nil
|
|
35
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
36
|
-
map_attribute "background", to: :background, namespace: nil
|
|
37
|
-
map_attribute "fontfamily", to: :fontfamily, namespace: nil
|
|
38
|
-
map_attribute "fontweight", to: :fontweight, namespace: nil
|
|
39
|
-
map_attribute "mathvariant", to: :mathvariant, namespace: nil
|
|
40
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
data/lib/mml/mi.rb
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mi < Lutaml::Model::Serializable
|
|
5
|
-
attribute :dir, :string
|
|
6
|
-
attribute :value, :string
|
|
7
|
-
attribute :color, :string
|
|
8
|
-
attribute :mathsize, :string
|
|
9
|
-
attribute :fontsize, :string
|
|
10
|
-
attribute :fontstyle, :string
|
|
11
|
-
attribute :mathcolor, :string
|
|
12
|
-
attribute :background, :string
|
|
13
|
-
attribute :fontfamily, :string
|
|
14
|
-
attribute :fontweight, :string
|
|
15
|
-
attribute :mathvariant, :string
|
|
16
|
-
attribute :mathbackground, :string
|
|
17
|
-
|
|
18
|
-
xml do
|
|
19
|
-
root "mi"
|
|
20
|
-
|
|
21
|
-
map_content to: :value
|
|
22
|
-
map_attribute "dir", to: :dir, namespace: nil
|
|
23
|
-
map_attribute "color", to: :color, namespace: nil
|
|
24
|
-
map_attribute "mathsize", to: :mathsize, namespace: nil
|
|
25
|
-
map_attribute "fontsize", to: :fontsize, namespace: nil
|
|
26
|
-
map_attribute "fontstyle", to: :fontstyle, namespace: nil
|
|
27
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
28
|
-
map_attribute "fontfamily", to: :fontfamily, namespace: nil
|
|
29
|
-
map_attribute "fontweight", to: :fontweight, namespace: nil
|
|
30
|
-
map_attribute "background", to: :background, namespace: nil
|
|
31
|
-
map_attribute "mathvariant", to: :mathvariant, namespace: nil
|
|
32
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
data/lib/mml/mlabeledtr.rb
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
autoload(:Mtd, "mml/mtd")
|
|
5
|
-
|
|
6
|
-
class Mlabeledtr < Lutaml::Model::Serializable
|
|
7
|
-
attribute :mathbackground, :string
|
|
8
|
-
attribute :columnalign, :string
|
|
9
|
-
attribute :groupalign, :string
|
|
10
|
-
attribute :mathcolor, :string
|
|
11
|
-
attribute :rowalign, :string
|
|
12
|
-
attribute :id, :string
|
|
13
|
-
attribute :mtd_value, Mtd, collection: true
|
|
14
|
-
|
|
15
|
-
xml do
|
|
16
|
-
root "mlabeledtr", mixed: true
|
|
17
|
-
|
|
18
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
19
|
-
map_attribute "columnalign", to: :columnalign, namespace: nil
|
|
20
|
-
map_attribute "groupalign", to: :groupalign, namespace: nil
|
|
21
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
22
|
-
map_attribute "rowalign", to: :rowalign, namespace: nil
|
|
23
|
-
map_attribute "id", to: :id, namespace: nil
|
|
24
|
-
map_element "mtd", to: :mtd_value
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
data/lib/mml/mlongdiv.rb
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mlongdiv < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathbackground, :string
|
|
6
|
-
attribute :longdivstyle, :string
|
|
7
|
-
attribute :mathcolor, :string
|
|
8
|
-
attribute :position, :integer
|
|
9
|
-
attribute :shift, :integer
|
|
10
|
-
|
|
11
|
-
xml do
|
|
12
|
-
root "mlongdiv", mixed: true
|
|
13
|
-
|
|
14
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
15
|
-
map_attribute "longdivstyle", to: :longdivstyle, namespace: nil
|
|
16
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
17
|
-
map_attribute "position", to: :position, namespace: nil
|
|
18
|
-
map_attribute "shift", to: :shift, namespace: nil
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
data/lib/mml/mmultiscripts.rb
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
autoload(:Mprescripts, "mml/mprescripts")
|
|
5
|
-
|
|
6
|
-
class Mmultiscripts < Lutaml::Model::Serializable
|
|
7
|
-
attribute :mathcolor, :string
|
|
8
|
-
attribute :mathbackground, :string
|
|
9
|
-
attribute :subscriptshift, :string
|
|
10
|
-
attribute :superscriptshift, :string
|
|
11
|
-
attribute :mprescripts_value, Mprescripts
|
|
12
|
-
|
|
13
|
-
xml do
|
|
14
|
-
root "mmultiscripts", mixed: true
|
|
15
|
-
|
|
16
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
17
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
18
|
-
map_attribute "subscriptshift", to: :subscriptshift, namespace: nil
|
|
19
|
-
map_attribute "superscriptshift", to: :superscriptshift, namespace: nil
|
|
20
|
-
map_element "mprescripts", to: :mprescripts_value
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
data/lib/mml/mn.rb
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mn < Lutaml::Model::Serializable
|
|
5
|
-
attribute :value, :string
|
|
6
|
-
attribute :mathcolor, :string
|
|
7
|
-
attribute :mathbackground, :string
|
|
8
|
-
attribute :mathvariant, :string
|
|
9
|
-
attribute :mathsize, :string
|
|
10
|
-
attribute :dir, :string
|
|
11
|
-
attribute :fontfamily, :string
|
|
12
|
-
attribute :fontweight, :string
|
|
13
|
-
attribute :fontstyle, :string
|
|
14
|
-
attribute :fontsize, :string
|
|
15
|
-
attribute :color, :string
|
|
16
|
-
attribute :background, :string
|
|
17
|
-
|
|
18
|
-
xml do
|
|
19
|
-
root "mn"
|
|
20
|
-
|
|
21
|
-
map_content to: :value
|
|
22
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
23
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
24
|
-
map_attribute "mathvariant", to: :mathvariant, namespace: nil
|
|
25
|
-
map_attribute "mathsize", to: :mathsize, namespace: nil
|
|
26
|
-
map_attribute "dir", to: :dir, namespace: nil
|
|
27
|
-
map_attribute "fontfamily", to: :fontfamily, namespace: nil
|
|
28
|
-
map_attribute "fontweight", to: :fontweight, namespace: nil
|
|
29
|
-
map_attribute "fontstyle", to: :fontstyle, namespace: nil
|
|
30
|
-
map_attribute "fontsize", to: :fontsize, namespace: nil
|
|
31
|
-
map_attribute "color", to: :color, namespace: nil
|
|
32
|
-
map_attribute "background", to: :background, namespace: nil
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
data/lib/mml/mo.rb
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mo < Lutaml::Model::Serializable
|
|
5
|
-
attribute :value, :string
|
|
6
|
-
attribute :mathcolor, :string
|
|
7
|
-
attribute :mathbackground, :string
|
|
8
|
-
attribute :mathvariant, :string
|
|
9
|
-
attribute :mathsize, :string
|
|
10
|
-
attribute :dir, :string
|
|
11
|
-
attribute :fontfamily, :string
|
|
12
|
-
attribute :fontweight, :string
|
|
13
|
-
attribute :fontstyle, :string
|
|
14
|
-
attribute :fontsize, :string
|
|
15
|
-
attribute :color, :string
|
|
16
|
-
attribute :background, :string
|
|
17
|
-
attribute :form, :string
|
|
18
|
-
attribute :fence, :string
|
|
19
|
-
attribute :separator, :string
|
|
20
|
-
attribute :lspace, :string
|
|
21
|
-
attribute :rspace, :string
|
|
22
|
-
attribute :stretchy, :string
|
|
23
|
-
attribute :symmetric, :string
|
|
24
|
-
attribute :maxsize, :string
|
|
25
|
-
attribute :minsize, :string
|
|
26
|
-
attribute :largeop, :string
|
|
27
|
-
attribute :movablelimits, :string
|
|
28
|
-
attribute :accent, :string
|
|
29
|
-
attribute :linebreak, :string
|
|
30
|
-
attribute :lineleading, :string
|
|
31
|
-
attribute :linebreakstyle, :string
|
|
32
|
-
attribute :linebreakmultchar, :string
|
|
33
|
-
attribute :indentalign, :string
|
|
34
|
-
attribute :indentshift, :string
|
|
35
|
-
attribute :indenttarget, :string
|
|
36
|
-
attribute :indentalignfirst, :string
|
|
37
|
-
attribute :indentshiftfirst, :string
|
|
38
|
-
attribute :indentalignlast, :string
|
|
39
|
-
attribute :indentshiftlast, :string
|
|
40
|
-
|
|
41
|
-
# rubocop:disable Metrics/BlockLength
|
|
42
|
-
xml do
|
|
43
|
-
root "mo"
|
|
44
|
-
|
|
45
|
-
map_content to: :value
|
|
46
|
-
map_attribute "dir", to: :dir, namespace: nil
|
|
47
|
-
map_attribute "form", to: :form, namespace: nil
|
|
48
|
-
map_attribute "fence", to: :fence, namespace: nil
|
|
49
|
-
map_attribute "color", to: :color, namespace: nil
|
|
50
|
-
map_attribute "accent", to: :accent, namespace: nil
|
|
51
|
-
map_attribute "lspace", to: :lspace, namespace: nil
|
|
52
|
-
map_attribute "rspace", to: :rspace, namespace: nil
|
|
53
|
-
map_attribute "maxsize", to: :maxsize, namespace: nil
|
|
54
|
-
map_attribute "minsize", to: :minsize, namespace: nil
|
|
55
|
-
map_attribute "largeop", to: :largeop, namespace: nil
|
|
56
|
-
map_attribute "stretchy", to: :stretchy, namespace: nil
|
|
57
|
-
map_attribute "mathsize", to: :mathsize, namespace: nil
|
|
58
|
-
map_attribute "fontsize", to: :fontsize, namespace: nil
|
|
59
|
-
map_attribute "linebreak", to: :linebreak, namespace: nil
|
|
60
|
-
map_attribute "fontstyle", to: :fontstyle, namespace: nil
|
|
61
|
-
map_attribute "separator", to: :separator, namespace: nil
|
|
62
|
-
map_attribute "symmetric", to: :symmetric, namespace: nil
|
|
63
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
64
|
-
map_attribute "fontfamily", to: :fontfamily, namespace: nil
|
|
65
|
-
map_attribute "fontweight", to: :fontweight, namespace: nil
|
|
66
|
-
map_attribute "background", to: :background, namespace: nil
|
|
67
|
-
map_attribute "mathvariant", to: :mathvariant, namespace: nil
|
|
68
|
-
map_attribute "lineleading", to: :lineleading, namespace: nil
|
|
69
|
-
map_attribute "indentalign", to: :indentalign, namespace: nil
|
|
70
|
-
map_attribute "indentshift", to: :indentshift, namespace: nil
|
|
71
|
-
map_attribute "indenttarget", to: :indenttarget, namespace: nil
|
|
72
|
-
map_attribute "movablelimits", to: :movablelimits, namespace: nil
|
|
73
|
-
map_attribute "linebreakstyle", to: :linebreakstyle, namespace: nil
|
|
74
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
75
|
-
map_attribute "indentalignlast", to: :indentalignlast, namespace: nil
|
|
76
|
-
map_attribute "indentshiftlast", to: :indentshiftlast, namespace: nil
|
|
77
|
-
map_attribute "indentalignfirst", to: :indentalignfirst, namespace: nil
|
|
78
|
-
map_attribute "indentshiftfirst", to: :indentshiftfirst, namespace: nil
|
|
79
|
-
map_attribute "linebreakmultchar", to: :linebreakmultchar, namespace: nil
|
|
80
|
-
end
|
|
81
|
-
# rubocop:enable Metrics/BlockLength
|
|
82
|
-
end
|
|
83
|
-
end
|
data/lib/mml/mover.rb
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mover < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathbackground, :string
|
|
6
|
-
attribute :mathcolor, :string
|
|
7
|
-
attribute :accent, :string
|
|
8
|
-
attribute :align, :string
|
|
9
|
-
|
|
10
|
-
xml do
|
|
11
|
-
root "mover", mixed: true
|
|
12
|
-
|
|
13
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
14
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
15
|
-
map_attribute "accent", to: :accent, namespace: nil
|
|
16
|
-
map_attribute "align", to: :align, namespace: nil
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
data/lib/mml/mpadded.rb
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mpadded < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathbackground, :string
|
|
6
|
-
attribute :mathcolor, :string
|
|
7
|
-
attribute :voffset, :string
|
|
8
|
-
attribute :height, :string
|
|
9
|
-
attribute :lspace, :string
|
|
10
|
-
attribute :depth, :string
|
|
11
|
-
attribute :width, :string
|
|
12
|
-
|
|
13
|
-
xml do
|
|
14
|
-
root "mpadded", mixed: true
|
|
15
|
-
|
|
16
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
17
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
18
|
-
map_attribute "voffset", to: :voffset, namespace: nil
|
|
19
|
-
map_attribute "height", to: :height, namespace: nil
|
|
20
|
-
map_attribute "lspace", to: :lspace, namespace: nil
|
|
21
|
-
map_attribute "depth", to: :depth, namespace: nil
|
|
22
|
-
map_attribute "width", to: :width, namespace: nil
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
data/lib/mml/mphantom.rb
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mphantom < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
|
|
8
|
-
xml do
|
|
9
|
-
root "mphantom", mixed: true
|
|
10
|
-
|
|
11
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
12
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
data/lib/mml/mprescripts.rb
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mprescripts < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
|
|
8
|
-
xml do
|
|
9
|
-
root "mprescripts"
|
|
10
|
-
|
|
11
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
12
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
data/lib/mml/mroot.rb
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mroot < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
|
|
8
|
-
xml do
|
|
9
|
-
root "mroot", mixed: true
|
|
10
|
-
|
|
11
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
12
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|