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/mrow.rb
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mrow < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathbackground, :string
|
|
6
|
-
attribute :mathcolor, :string
|
|
7
|
-
attribute :content, :string
|
|
8
|
-
attribute :intent, :string
|
|
9
|
-
attribute :dir, :string
|
|
10
|
-
|
|
11
|
-
xml do
|
|
12
|
-
root "mrow", mixed: true
|
|
13
|
-
|
|
14
|
-
map_content to: :content
|
|
15
|
-
map_attribute "dir", to: :dir, namespace: nil
|
|
16
|
-
map_attribute "intent", to: :intent, namespace: nil
|
|
17
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
18
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
data/lib/mml/ms.rb
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Ms < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathbackground, :string
|
|
6
|
-
attribute :mathvariant, :string
|
|
7
|
-
attribute :fontfamily, :string
|
|
8
|
-
attribute :background, :string
|
|
9
|
-
attribute :fontweight, :string
|
|
10
|
-
attribute :mathcolor, :string
|
|
11
|
-
attribute :fontstyle, :string
|
|
12
|
-
attribute :mathsize, :string
|
|
13
|
-
attribute :fontsize, :string
|
|
14
|
-
attribute :lquote, :string
|
|
15
|
-
attribute :rquote, :string
|
|
16
|
-
attribute :color, :string
|
|
17
|
-
attribute :value, :string
|
|
18
|
-
attribute :dir, :string
|
|
19
|
-
|
|
20
|
-
xml do
|
|
21
|
-
root "ms", mixed: true
|
|
22
|
-
|
|
23
|
-
map_content to: :value
|
|
24
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
25
|
-
map_attribute "mathvariant", to: :mathvariant, namespace: nil
|
|
26
|
-
map_attribute "fontfamily", to: :fontfamily, namespace: nil
|
|
27
|
-
map_attribute "fontweight", to: :fontweight, namespace: nil
|
|
28
|
-
map_attribute "background", to: :background, namespace: nil
|
|
29
|
-
map_attribute "fontstyle", to: :fontstyle, namespace: nil
|
|
30
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
31
|
-
map_attribute "fontsize", to: :fontsize, namespace: nil
|
|
32
|
-
map_attribute "mathsize", to: :mathsize, namespace: nil
|
|
33
|
-
map_attribute "lquote", to: :lquote, namespace: nil
|
|
34
|
-
map_attribute "rquote", to: :rquote, namespace: nil
|
|
35
|
-
map_attribute "color", to: :color, namespace: nil
|
|
36
|
-
map_attribute "dir", to: :dir, namespace: nil
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|
data/lib/mml/mscarries.rb
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mscarries < Lutaml::Model::Serializable
|
|
5
|
-
attribute :scriptsizemultiplier, :integer
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
attribute :mathcolor, :string
|
|
8
|
-
attribute :position, :integer
|
|
9
|
-
attribute :location, :string
|
|
10
|
-
attribute :crossout, :string
|
|
11
|
-
|
|
12
|
-
xml do
|
|
13
|
-
root "mscarries", mixed: true
|
|
14
|
-
|
|
15
|
-
map_attribute "scriptsizemultiplier", to: :scriptsizemultiplier,
|
|
16
|
-
namespace: nil
|
|
17
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
18
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
19
|
-
map_attribute "position", to: :position, namespace: nil
|
|
20
|
-
map_attribute "location", to: :location, namespace: nil
|
|
21
|
-
map_attribute "crossout", to: :crossout, namespace: nil
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
data/lib/mml/mscarry.rb
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mscarry < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
attribute :location, :string
|
|
8
|
-
attribute :crossout, :string
|
|
9
|
-
|
|
10
|
-
xml do
|
|
11
|
-
root "mscarry", mixed: true
|
|
12
|
-
|
|
13
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
14
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
15
|
-
map_attribute "location", to: :location, namespace: nil
|
|
16
|
-
map_attribute "crossout", to: :crossout, namespace: nil
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
data/lib/mml/msgroup.rb
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Msgroup < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
attribute :position, :integer
|
|
8
|
-
attribute :shift, :integer
|
|
9
|
-
attribute :msgroup_text, :string
|
|
10
|
-
|
|
11
|
-
xml do
|
|
12
|
-
root "msgroup", mixed: true
|
|
13
|
-
|
|
14
|
-
map_content to: :msgroup_text
|
|
15
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
16
|
-
map_attribute "mathbackground", to: :mathbackground, 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/msline.rb
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Msline < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
attribute :position, :integer
|
|
8
|
-
attribute :length, :integer
|
|
9
|
-
attribute :leftoverhang, :string
|
|
10
|
-
attribute :rightoverhang, :string
|
|
11
|
-
attribute :mslinethickness, :string
|
|
12
|
-
|
|
13
|
-
xml do
|
|
14
|
-
root "msline"
|
|
15
|
-
|
|
16
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
17
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
18
|
-
map_attribute "position", to: :position, namespace: nil
|
|
19
|
-
map_attribute "length", to: :length, namespace: nil
|
|
20
|
-
map_attribute "leftoverhang", to: :leftoverhang, namespace: nil
|
|
21
|
-
map_attribute "rightoverhang", to: :rightoverhang, namespace: nil
|
|
22
|
-
map_attribute "mslinethickness", to: :mslinethickness, namespace: nil
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
data/lib/mml/mspace.rb
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mspace < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
attribute :mathvariant, :string
|
|
8
|
-
attribute :mathsize, :string
|
|
9
|
-
attribute :dir, :string
|
|
10
|
-
attribute :fontfamily, :string
|
|
11
|
-
attribute :fontweight, :string
|
|
12
|
-
attribute :fontstyle, :string
|
|
13
|
-
attribute :fontsize, :string
|
|
14
|
-
attribute :color, :string
|
|
15
|
-
attribute :background, :string
|
|
16
|
-
attribute :width, :string
|
|
17
|
-
attribute :height, :string
|
|
18
|
-
attribute :depth, :string
|
|
19
|
-
attribute :linebreak, :string
|
|
20
|
-
attribute :indentalign, :string
|
|
21
|
-
attribute :indentshift, :string
|
|
22
|
-
attribute :indenttarget, :string
|
|
23
|
-
attribute :indentalignfirst, :string
|
|
24
|
-
attribute :indentshiftfirst, :string
|
|
25
|
-
attribute :indentalignlast, :string
|
|
26
|
-
attribute :indentshiftlast, :string
|
|
27
|
-
|
|
28
|
-
xml do
|
|
29
|
-
root "mspace"
|
|
30
|
-
|
|
31
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
32
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
33
|
-
map_attribute "mathvariant", to: :mathvariant, namespace: nil
|
|
34
|
-
map_attribute "mathsize", to: :mathsize, namespace: nil
|
|
35
|
-
map_attribute "dir", to: :dir, namespace: nil
|
|
36
|
-
map_attribute "fontfamily", to: :fontfamily, namespace: nil
|
|
37
|
-
map_attribute "fontweight", to: :fontweight, namespace: nil
|
|
38
|
-
map_attribute "fontstyle", to: :fontstyle, namespace: nil
|
|
39
|
-
map_attribute "fontsize", to: :fontsize, namespace: nil
|
|
40
|
-
map_attribute "color", to: :color, namespace: nil
|
|
41
|
-
map_attribute "background", to: :background, namespace: nil
|
|
42
|
-
map_attribute "width", to: :width, namespace: nil
|
|
43
|
-
map_attribute "height", to: :height, namespace: nil
|
|
44
|
-
map_attribute "depth", to: :depth, namespace: nil
|
|
45
|
-
map_attribute "linebreak", to: :linebreak, namespace: nil
|
|
46
|
-
map_attribute "indentalign", to: :indentalign, namespace: nil
|
|
47
|
-
map_attribute "indentshift", to: :indentshift, namespace: nil
|
|
48
|
-
map_attribute "indenttarget", to: :indenttarget, namespace: nil
|
|
49
|
-
map_attribute "indentalignfirst", to: :indentalignfirst, namespace: nil
|
|
50
|
-
map_attribute "indentshiftfirst", to: :indentshiftfirst, namespace: nil
|
|
51
|
-
map_attribute "indentalignlast", to: :indentalignlast, namespace: nil
|
|
52
|
-
map_attribute "indentshiftlast", to: :indentshiftlast, namespace: nil
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
end
|
data/lib/mml/msqrt.rb
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Msqrt < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
|
|
8
|
-
xml do
|
|
9
|
-
root "msqrt", 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/msrow.rb
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Msrow < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
attribute :position, :integer
|
|
8
|
-
|
|
9
|
-
xml do
|
|
10
|
-
root "msrow", mixed: true
|
|
11
|
-
|
|
12
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
13
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
14
|
-
map_attribute "position", to: :position, namespace: nil
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
data/lib/mml/mstack.rb
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mstack < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
attribute :align, :string
|
|
8
|
-
attribute :stackalign, :string
|
|
9
|
-
attribute :charalign, :string
|
|
10
|
-
attribute :charspacing, :string
|
|
11
|
-
|
|
12
|
-
xml do
|
|
13
|
-
root "mstack", mixed: true
|
|
14
|
-
|
|
15
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
16
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
17
|
-
map_attribute "align", to: :align, namespace: nil
|
|
18
|
-
map_attribute "stackalign", to: :stackalign, namespace: nil
|
|
19
|
-
map_attribute "charalign", to: :charalign, namespace: nil
|
|
20
|
-
map_attribute "charspacing", to: :charspacing, namespace: nil
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
data/lib/mml/mstyle.rb
DELETED
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
# rubocop:disable Metrics/ClassLength
|
|
5
|
-
class Mstyle < Lutaml::Model::Serializable
|
|
6
|
-
attribute :mathcolor, :string
|
|
7
|
-
attribute :mathbackground, :string
|
|
8
|
-
attribute :scriptlevel, :integer
|
|
9
|
-
attribute :displaystyle, :string
|
|
10
|
-
attribute :scriptsizemultiplier, :integer
|
|
11
|
-
attribute :scriptminsize, :string
|
|
12
|
-
attribute :infixlinebreakstyle, :string
|
|
13
|
-
attribute :decimalpoint, :string
|
|
14
|
-
attribute :accent, :string
|
|
15
|
-
attribute :accentunder, :string
|
|
16
|
-
attribute :align, :string
|
|
17
|
-
attribute :alignmentscope, :string
|
|
18
|
-
attribute :bevelled, :string
|
|
19
|
-
attribute :charalign, :string
|
|
20
|
-
attribute :charspacing, :string
|
|
21
|
-
attribute :close, :string
|
|
22
|
-
attribute :columnalign, :string
|
|
23
|
-
attribute :columnlines, :string
|
|
24
|
-
attribute :columnspacing, :string
|
|
25
|
-
attribute :columnspan, :integer
|
|
26
|
-
attribute :columnwidth, :string
|
|
27
|
-
attribute :crossout, :string
|
|
28
|
-
attribute :denomalign, :string
|
|
29
|
-
attribute :depth, :string
|
|
30
|
-
attribute :dir, :string
|
|
31
|
-
attribute :edge, :string
|
|
32
|
-
attribute :equalcolumns, :string
|
|
33
|
-
attribute :equalrows, :string
|
|
34
|
-
attribute :fence, :string
|
|
35
|
-
attribute :form, :string
|
|
36
|
-
attribute :frame, :string
|
|
37
|
-
attribute :framespacing, :string
|
|
38
|
-
attribute :groupalign, :string
|
|
39
|
-
attribute :height, :string
|
|
40
|
-
attribute :indentalign, :string
|
|
41
|
-
attribute :indentalignfirst, :string
|
|
42
|
-
attribute :indentalignlast, :string
|
|
43
|
-
attribute :indentshift, :string
|
|
44
|
-
attribute :indentshiftfirst, :string
|
|
45
|
-
attribute :indentshiftlast, :string
|
|
46
|
-
attribute :indenttarget, :string
|
|
47
|
-
attribute :largeop, :string
|
|
48
|
-
attribute :leftoverhang, :string
|
|
49
|
-
attribute :length, :integer
|
|
50
|
-
attribute :linebreak, :string
|
|
51
|
-
attribute :linebreakmultchar, :string
|
|
52
|
-
attribute :linebreakstyle, :string
|
|
53
|
-
attribute :lineleading, :string
|
|
54
|
-
attribute :linethickness, :string
|
|
55
|
-
attribute :location, :string
|
|
56
|
-
attribute :longdivstyle, :string
|
|
57
|
-
attribute :lquote, :string
|
|
58
|
-
attribute :lspace, :string
|
|
59
|
-
attribute :mathsize, :string
|
|
60
|
-
attribute :mathvariant, :string
|
|
61
|
-
attribute :maxsize, :string
|
|
62
|
-
attribute :minlabelspacing, :string
|
|
63
|
-
attribute :minsize, :string
|
|
64
|
-
attribute :movablelimits, :string
|
|
65
|
-
attribute :mslinethickness, :string
|
|
66
|
-
attribute :notation, :string
|
|
67
|
-
attribute :numalign, :string
|
|
68
|
-
attribute :open, :string
|
|
69
|
-
attribute :position, :integer
|
|
70
|
-
attribute :rightoverhang, :string
|
|
71
|
-
attribute :rowalign, :string
|
|
72
|
-
attribute :rowlines, :string
|
|
73
|
-
attribute :rowspacing, :string
|
|
74
|
-
attribute :rowspan, :integer
|
|
75
|
-
attribute :rquote, :string
|
|
76
|
-
attribute :rspace, :string
|
|
77
|
-
attribute :selection, :integer
|
|
78
|
-
attribute :separator, :string
|
|
79
|
-
attribute :separators, :string
|
|
80
|
-
attribute :shift, :integer
|
|
81
|
-
attribute :side, :string
|
|
82
|
-
attribute :stackalign, :string
|
|
83
|
-
attribute :stretchy, :string
|
|
84
|
-
attribute :subscriptshift, :string
|
|
85
|
-
attribute :superscriptshift, :string
|
|
86
|
-
attribute :symmetric, :string
|
|
87
|
-
attribute :valign, :string
|
|
88
|
-
attribute :width, :string
|
|
89
|
-
attribute :fontfamily, :string
|
|
90
|
-
attribute :fontweight, :string
|
|
91
|
-
attribute :fontstyle, :string
|
|
92
|
-
attribute :fontsize, :string
|
|
93
|
-
attribute :color, :string
|
|
94
|
-
attribute :background, :string
|
|
95
|
-
attribute :veryverythinmathspace, :string
|
|
96
|
-
attribute :verythinmathspace, :string
|
|
97
|
-
attribute :thinmathspace, :string
|
|
98
|
-
attribute :mediummathspace, :string
|
|
99
|
-
attribute :thickmathspace, :string
|
|
100
|
-
attribute :verythickmathspace, :string
|
|
101
|
-
attribute :veryverythickmathspace, :string
|
|
102
|
-
|
|
103
|
-
# rubocop:disable Metrics/BlockLength
|
|
104
|
-
xml do
|
|
105
|
-
root "mstyle", mixed: true
|
|
106
|
-
|
|
107
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
108
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
109
|
-
map_attribute "scriptlevel", to: :scriptlevel, namespace: nil
|
|
110
|
-
map_attribute "displaystyle", to: :displaystyle, namespace: nil
|
|
111
|
-
map_attribute "scriptsizemultiplier", to: :scriptsizemultiplier,
|
|
112
|
-
namespace: nil
|
|
113
|
-
map_attribute "scriptminsize", to: :scriptminsize, namespace: nil
|
|
114
|
-
map_attribute "infixlinebreakstyle", to: :infixlinebreakstyle,
|
|
115
|
-
namespace: nil
|
|
116
|
-
map_attribute "decimalpoint", to: :decimalpoint, namespace: nil
|
|
117
|
-
map_attribute "accent", to: :accent, namespace: nil
|
|
118
|
-
map_attribute "accentunder", to: :accentunder, namespace: nil
|
|
119
|
-
map_attribute "align", to: :align, namespace: nil
|
|
120
|
-
map_attribute "alignmentscope", to: :alignmentscope, namespace: nil
|
|
121
|
-
map_attribute "bevelled", to: :bevelled, namespace: nil
|
|
122
|
-
map_attribute "charalign", to: :charalign, namespace: nil
|
|
123
|
-
map_attribute "charspacing", to: :charspacing, namespace: nil
|
|
124
|
-
map_attribute "close", to: :close, namespace: nil
|
|
125
|
-
map_attribute "columnalign", to: :columnalign, namespace: nil
|
|
126
|
-
map_attribute "columnlines", to: :columnlines, namespace: nil
|
|
127
|
-
map_attribute "columnspacing", to: :columnspacing, namespace: nil
|
|
128
|
-
map_attribute "columnspan", to: :columnspan, namespace: nil
|
|
129
|
-
map_attribute "columnwidth", to: :columnwidth, namespace: nil
|
|
130
|
-
map_attribute "crossout", to: :crossout, namespace: nil
|
|
131
|
-
map_attribute "denomalign", to: :denomalign, namespace: nil
|
|
132
|
-
map_attribute "depth", to: :depth, namespace: nil
|
|
133
|
-
map_attribute "dir", to: :dir, namespace: nil
|
|
134
|
-
map_attribute "edge", to: :edge, namespace: nil
|
|
135
|
-
map_attribute "equalcolumns", to: :equalcolumns, namespace: nil
|
|
136
|
-
map_attribute "equalrows", to: :equalrows, namespace: nil
|
|
137
|
-
map_attribute "fence", to: :fence, namespace: nil
|
|
138
|
-
map_attribute "form", to: :form, namespace: nil
|
|
139
|
-
map_attribute "frame", to: :frame, namespace: nil
|
|
140
|
-
map_attribute "framespacing", to: :framespacing, namespace: nil
|
|
141
|
-
map_attribute "groupalign", to: :groupalign, namespace: nil
|
|
142
|
-
map_attribute "height", to: :height, namespace: nil
|
|
143
|
-
map_attribute "indentalign", to: :indentalign, namespace: nil
|
|
144
|
-
map_attribute "indentalignfirst", to: :indentalignfirst, namespace: nil
|
|
145
|
-
map_attribute "indentalignlast", to: :indentalignlast, namespace: nil
|
|
146
|
-
map_attribute "indentshift", to: :indentshift, namespace: nil
|
|
147
|
-
map_attribute "indentshiftfirst", to: :indentshiftfirst, namespace: nil
|
|
148
|
-
map_attribute "indentshiftlast", to: :indentshiftlast, namespace: nil
|
|
149
|
-
map_attribute "indenttarget", to: :indenttarget, namespace: nil
|
|
150
|
-
map_attribute "largeop", to: :largeop, namespace: nil
|
|
151
|
-
map_attribute "leftoverhang", to: :leftoverhang, namespace: nil
|
|
152
|
-
map_attribute "length", to: :length, namespace: nil
|
|
153
|
-
map_attribute "linebreak", to: :linebreak, namespace: nil
|
|
154
|
-
map_attribute "linebreakmultchar", to: :linebreakmultchar, namespace: nil
|
|
155
|
-
map_attribute "linebreakstyle", to: :linebreakstyle, namespace: nil
|
|
156
|
-
map_attribute "lineleading", to: :lineleading, namespace: nil
|
|
157
|
-
map_attribute "linethickness", to: :linethickness, namespace: nil
|
|
158
|
-
map_attribute "location", to: :location, namespace: nil
|
|
159
|
-
map_attribute "longdivstyle", to: :longdivstyle, namespace: nil
|
|
160
|
-
map_attribute "lquote", to: :lquote, namespace: nil
|
|
161
|
-
map_attribute "lspace", to: :lspace, namespace: nil
|
|
162
|
-
map_attribute "mathsize", to: :mathsize, namespace: nil
|
|
163
|
-
map_attribute "mathvariant", to: :mathvariant, namespace: nil
|
|
164
|
-
map_attribute "maxsize", to: :maxsize, namespace: nil
|
|
165
|
-
map_attribute "minlabelspacing", to: :minlabelspacing, namespace: nil
|
|
166
|
-
map_attribute "minsize", to: :minsize, namespace: nil
|
|
167
|
-
map_attribute "movablelimits", to: :movablelimits, namespace: nil
|
|
168
|
-
map_attribute "mslinethickness", to: :mslinethickness, namespace: nil
|
|
169
|
-
map_attribute "notation", to: :notation, namespace: nil
|
|
170
|
-
map_attribute "numalign", to: :numalign, namespace: nil
|
|
171
|
-
map_attribute "open", to: :open, namespace: nil
|
|
172
|
-
map_attribute "position", to: :position, namespace: nil
|
|
173
|
-
map_attribute "rightoverhang", to: :rightoverhang, namespace: nil
|
|
174
|
-
map_attribute "rowalign", to: :rowalign, namespace: nil
|
|
175
|
-
map_attribute "rowlines", to: :rowlines, namespace: nil
|
|
176
|
-
map_attribute "rowspacing", to: :rowspacing, namespace: nil
|
|
177
|
-
map_attribute "rowspan", to: :rowspan, namespace: nil
|
|
178
|
-
map_attribute "rquote", to: :rquote, namespace: nil
|
|
179
|
-
map_attribute "rspace", to: :rspace, namespace: nil
|
|
180
|
-
map_attribute "selection", to: :selection, namespace: nil
|
|
181
|
-
map_attribute "separator", to: :separator, namespace: nil
|
|
182
|
-
map_attribute "separators", to: :separators, namespace: nil
|
|
183
|
-
map_attribute "shift", to: :shift, namespace: nil
|
|
184
|
-
map_attribute "side", to: :side, namespace: nil
|
|
185
|
-
map_attribute "stackalign", to: :stackalign, namespace: nil
|
|
186
|
-
map_attribute "stretchy", to: :stretchy, namespace: nil
|
|
187
|
-
map_attribute "subscriptshift", to: :subscriptshift, namespace: nil
|
|
188
|
-
map_attribute "superscriptshift", to: :superscriptshift, namespace: nil
|
|
189
|
-
map_attribute "symmetric", to: :symmetric, namespace: nil
|
|
190
|
-
map_attribute "valign", to: :valign, namespace: nil
|
|
191
|
-
map_attribute "width", to: :width, namespace: nil
|
|
192
|
-
map_attribute "fontfamily", to: :fontfamily, namespace: nil
|
|
193
|
-
map_attribute "fontweight", to: :fontweight, namespace: nil
|
|
194
|
-
map_attribute "fontstyle", to: :fontstyle, namespace: nil
|
|
195
|
-
map_attribute "fontsize", to: :fontsize, namespace: nil
|
|
196
|
-
map_attribute "color", to: :color, namespace: nil
|
|
197
|
-
map_attribute "background", to: :background, namespace: nil
|
|
198
|
-
map_attribute "veryverythinmathspace", to: :veryverythinmathspace,
|
|
199
|
-
namespace: nil
|
|
200
|
-
map_attribute "verythinmathspace", to: :verythinmathspace, namespace: nil
|
|
201
|
-
map_attribute "thinmathspace", to: :thinmathspace, namespace: nil
|
|
202
|
-
map_attribute "mediummathspace", to: :mediummathspace, namespace: nil
|
|
203
|
-
map_attribute "thickmathspace", to: :thickmathspace, namespace: nil
|
|
204
|
-
map_attribute "verythickmathspace", to: :verythickmathspace,
|
|
205
|
-
namespace: nil
|
|
206
|
-
map_attribute "veryverythickmathspace", to: :veryverythickmathspace,
|
|
207
|
-
namespace: nil
|
|
208
|
-
end
|
|
209
|
-
# rubocop:enable Metrics/BlockLength
|
|
210
|
-
end
|
|
211
|
-
# rubocop:enable Metrics/ClassLength
|
|
212
|
-
end
|
data/lib/mml/msub.rb
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Msub < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathbackground, :string
|
|
6
|
-
attribute :subscriptshift, :string
|
|
7
|
-
attribute :mathcolor, :string
|
|
8
|
-
|
|
9
|
-
xml do
|
|
10
|
-
root "msub", mixed: true
|
|
11
|
-
|
|
12
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
13
|
-
map_attribute "subscriptshift", to: :subscriptshift, namespace: nil
|
|
14
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
data/lib/mml/msubsup.rb
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Msubsup < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
attribute :subscriptshift, :string
|
|
8
|
-
attribute :superscriptshift, :string
|
|
9
|
-
|
|
10
|
-
xml do
|
|
11
|
-
root "msubsup", mixed: true
|
|
12
|
-
|
|
13
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
14
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
15
|
-
map_attribute "subscriptshift", to: :subscriptshift, namespace: nil
|
|
16
|
-
map_attribute "superscriptshift", to: :superscriptshift, namespace: nil
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
data/lib/mml/msup.rb
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Msup < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
attribute :superscriptshift, :string
|
|
8
|
-
|
|
9
|
-
xml do
|
|
10
|
-
root "msup", mixed: true
|
|
11
|
-
|
|
12
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
13
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
14
|
-
map_attribute "superscriptshift", to: :superscriptshift, namespace: nil
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
data/lib/mml/mtable.rb
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
autoload(:Mlabeledtr, "mml/mlabeledtr")
|
|
5
|
-
autoload(:Mtr, "mml/mtr")
|
|
6
|
-
class Mtable < Lutaml::Model::Serializable
|
|
7
|
-
attribute :mathcolor, :string
|
|
8
|
-
attribute :mathbackground, :string
|
|
9
|
-
attribute :align, :string
|
|
10
|
-
attribute :rowalign, :string
|
|
11
|
-
attribute :columnalign, :string
|
|
12
|
-
attribute :groupalign, :string
|
|
13
|
-
attribute :alignmentscope, :string
|
|
14
|
-
attribute :columnwidth, :string
|
|
15
|
-
attribute :width, :string
|
|
16
|
-
attribute :rowspacing, :string
|
|
17
|
-
attribute :columnspacing, :string
|
|
18
|
-
attribute :rowlines, :string
|
|
19
|
-
attribute :columnlines, :string
|
|
20
|
-
attribute :frame, :string
|
|
21
|
-
attribute :framespacing, :string
|
|
22
|
-
attribute :equalrows, :string
|
|
23
|
-
attribute :equalcolumns, :string
|
|
24
|
-
attribute :displaystyle, :string
|
|
25
|
-
attribute :side, :string
|
|
26
|
-
attribute :minlabelspacing, :string
|
|
27
|
-
attribute :mlabeledtr_value, Mlabeledtr, collection: true
|
|
28
|
-
attribute :mtr_value, Mtr, collection: true
|
|
29
|
-
|
|
30
|
-
xml do
|
|
31
|
-
root "mtable", mixed: true
|
|
32
|
-
|
|
33
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
34
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
35
|
-
map_attribute "align", to: :align, namespace: nil
|
|
36
|
-
map_attribute "rowalign", to: :rowalign, namespace: nil
|
|
37
|
-
map_attribute "columnalign", to: :columnalign, namespace: nil
|
|
38
|
-
map_attribute "groupalign", to: :groupalign, namespace: nil
|
|
39
|
-
map_attribute "alignmentscope", to: :alignmentscope, namespace: nil
|
|
40
|
-
map_attribute "columnwidth", to: :columnwidth, namespace: nil
|
|
41
|
-
map_attribute "width", to: :width, namespace: nil
|
|
42
|
-
map_attribute "rowspacing", to: :rowspacing, namespace: nil
|
|
43
|
-
map_attribute "columnspacing", to: :columnspacing, namespace: nil
|
|
44
|
-
map_attribute "rowlines", to: :rowlines, namespace: nil
|
|
45
|
-
map_attribute "columnlines", to: :columnlines, namespace: nil
|
|
46
|
-
map_attribute "frame", to: :frame, namespace: nil
|
|
47
|
-
map_attribute "framespacing", to: :framespacing, namespace: nil
|
|
48
|
-
map_attribute "equalrows", to: :equalrows, namespace: nil
|
|
49
|
-
map_attribute "equalcolumns", to: :equalcolumns, namespace: nil
|
|
50
|
-
map_attribute "displaystyle", to: :displaystyle, namespace: nil
|
|
51
|
-
map_attribute "side", to: :side, namespace: nil
|
|
52
|
-
map_attribute "minlabelspacing", to: :minlabelspacing, namespace: nil
|
|
53
|
-
map_element "mlabeledtr", to: :mlabeledtr_value
|
|
54
|
-
map_element "mtr", to: :mtr_value
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
end
|
data/lib/mml/mtd.rb
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mtd < Lutaml::Model::Serializable
|
|
5
|
-
attribute :mathcolor, :string
|
|
6
|
-
attribute :mathbackground, :string
|
|
7
|
-
attribute :rowalign, :string
|
|
8
|
-
attribute :columnalign, :string
|
|
9
|
-
|
|
10
|
-
xml do
|
|
11
|
-
root "mtd", mixed: true
|
|
12
|
-
|
|
13
|
-
map_attribute "mathcolor", to: :mathcolor, namespace: nil
|
|
14
|
-
map_attribute "mathbackground", to: :mathbackground, namespace: nil
|
|
15
|
-
map_attribute "rowalign", to: :rowalign, namespace: nil
|
|
16
|
-
map_attribute "columnalign", to: :columnalign, namespace: nil
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
data/lib/mml/mtext.rb
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Mml
|
|
4
|
-
class Mtext < 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 "mtext"
|
|
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
|