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