mml 2.3.1 → 2.3.3
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/.rubocop_todo.yml +59 -7
- data/lib/mml/base/common_attributes.rb +44 -0
- data/lib/mml/base/content/annotation.rb +0 -2
- data/lib/mml/base/content/share.rb +0 -2
- data/lib/mml/base/math.rb +10 -4
- data/lib/mml/base/mfrac.rb +0 -2
- data/lib/mml/base/mglyph.rb +0 -2
- data/lib/mml/base/mi.rb +4 -6
- data/lib/mml/base/mlabeledtr.rb +2 -2
- data/lib/mml/base/mn.rb +0 -2
- data/lib/mml/base/mo.rb +3 -1
- data/lib/mml/base/ms.rb +2 -2
- data/lib/mml/base/mspace.rb +0 -2
- data/lib/mml/base/mstyle.rb +2 -2
- data/lib/mml/base/universal_presentation_attributes.rb +4 -0
- data/lib/mml/base.rb +1 -0
- data/lib/mml/common_elements.rb +2 -0
- data/lib/mml/v2/annotation.rb +4 -0
- data/lib/mml/v2/annotation_xml.rb +4 -0
- data/lib/mml/v2/arith.rb +88 -0
- data/lib/mml/v2/ci.rb +4 -0
- data/lib/mml/v2/cn.rb +4 -0
- data/lib/mml/v2/constants.rb +60 -0
- data/lib/mml/v2/csymbol.rb +4 -0
- data/lib/mml/v2/functions.rb +20 -0
- data/lib/mml/v2/logic.rb +28 -0
- data/lib/mml/v2/mfraction.rb +4 -0
- data/lib/mml/v2/mi.rb +4 -0
- data/lib/mml/v2/mn.rb +4 -0
- data/lib/mml/v2/ms.rb +4 -0
- data/lib/mml/v2/relations.rb +36 -0
- data/lib/mml/v2/statistics.rb +24 -0
- data/lib/mml/v2/vector_calculus.rb +16 -0
- data/lib/mml/v3/arith.rb +88 -0
- data/lib/mml/v3/cbytes.rb +4 -0
- data/lib/mml/v3/ci.rb +4 -0
- data/lib/mml/v3/cn.rb +4 -0
- data/lib/mml/v3/constants.rb +60 -0
- data/lib/mml/v3/cs.rb +4 -0
- data/lib/mml/v3/csymbol.rb +4 -0
- data/lib/mml/v3/elementary_functions.rb +108 -0
- data/lib/mml/v3/functions.rb +20 -0
- data/lib/mml/v3/linear_algebra.rb +24 -0
- data/lib/mml/v3/logic.rb +28 -0
- data/lib/mml/v3/maligngroup.rb +4 -0
- data/lib/mml/v3/malignmark.rb +4 -0
- data/lib/mml/v3/mglyph.rb +4 -0
- data/lib/mml/v3/mi.rb +4 -0
- data/lib/mml/v3/mlabeledtr.rb +4 -0
- data/lib/mml/v3/mn.rb +4 -0
- data/lib/mml/v3/mo.rb +4 -0
- data/lib/mml/v3/mprescripts.rb +4 -0
- data/lib/mml/v3/msline.rb +4 -0
- data/lib/mml/v3/mspace.rb +4 -0
- data/lib/mml/v3/mtable.rb +4 -0
- data/lib/mml/v3/mtext.rb +4 -0
- data/lib/mml/v3/mtr.rb +4 -0
- data/lib/mml/v3/none.rb +4 -0
- data/lib/mml/v3/relations.rb +36 -0
- data/lib/mml/v3/sets.rb +44 -0
- data/lib/mml/v3/statistics.rb +24 -0
- data/lib/mml/v3/vector_calculus.rb +16 -0
- data/lib/mml/v4/a.rb +4 -2
- data/lib/mml/v4/arith.rb +66 -0
- data/lib/mml/v4/calculus.rb +15 -0
- data/lib/mml/v4/cbytes.rb +3 -0
- data/lib/mml/v4/ci.rb +3 -0
- data/lib/mml/v4/cn.rb +3 -0
- data/lib/mml/v4/constants.rb +45 -0
- data/lib/mml/v4/cs.rb +3 -0
- data/lib/mml/v4/csymbol.rb +3 -0
- data/lib/mml/v4/elementary_functions.rb +81 -0
- data/lib/mml/v4/factorof.rb +3 -0
- data/lib/mml/v4/functions.rb +15 -0
- data/lib/mml/v4/limit.rb +3 -0
- data/lib/mml/v4/linear_algebra.rb +27 -0
- data/lib/mml/v4/logic.rb +21 -0
- data/lib/mml/v4/maligngroup.rb +3 -0
- data/lib/mml/v4/malignmark.rb +3 -0
- data/lib/mml/v4/mglyph.rb +3 -0
- data/lib/mml/v4/mi.rb +4 -0
- data/lib/mml/v4/mlabeledtr.rb +3 -0
- data/lib/mml/v4/mn.rb +4 -0
- data/lib/mml/v4/mo.rb +3 -0
- data/lib/mml/v4/mprescripts.rb +3 -0
- data/lib/mml/v4/msline.rb +3 -0
- data/lib/mml/v4/mspace.rb +3 -0
- data/lib/mml/v4/mtable.rb +3 -0
- data/lib/mml/v4/mtext.rb +3 -0
- data/lib/mml/v4/mtr.rb +3 -0
- data/lib/mml/v4/none.rb +3 -0
- data/lib/mml/v4/relations.rb +24 -0
- data/lib/mml/v4/sets.rb +39 -0
- data/lib/mml/v4/statistics.rb +21 -0
- data/lib/mml/v4/tendsto.rb +3 -0
- data/lib/mml/v4/vector_calculus.rb +12 -0
- data/lib/mml/version.rb +1 -1
- data/schemas/README.adoc +10 -8
- data/schemas/mathml4/mathml4-content.rnc +382 -0
- data/schemas/mathml4/mathml4-core.rnc +361 -0
- data/schemas/mathml4/mathml4-presentation.rnc +358 -0
- data/schemas/mathml4/mathml4-strict-content.rnc +86 -0
- data/schemas/mathml4/mathml4.rnc +21 -0
- data/schemas/mathml4/mathml4.rnc.1 +21 -0
- data/schemas/mathml4/mathml4.rng +37 -0
- metadata +10 -11
- data/schemas/mathml2/CVS/Entries +0 -4
- data/schemas/mathml2/CVS/Repository +0 -1
- data/schemas/mathml2/CVS/Root +0 -1
- data/schemas/mathml2/common/CVS/Entries +0 -4
- data/schemas/mathml2/common/CVS/Repository +0 -1
- data/schemas/mathml2/common/CVS/Root +0 -1
- data/schemas/mathml2/presentation/CVS/Entries +0 -12
- data/schemas/mathml2/presentation/CVS/Repository +0 -1
- data/schemas/mathml2/presentation/CVS/Root +0 -1
|
@@ -18,31 +18,55 @@ module Mml
|
|
|
18
18
|
Configuration.register_model(Matrixrow, id: :matrixrow)
|
|
19
19
|
|
|
20
20
|
class Determinant < Lutaml::Model::Serializable
|
|
21
|
+
def self.lutaml_default_register
|
|
22
|
+
:mml_v3
|
|
23
|
+
end
|
|
24
|
+
|
|
21
25
|
include Base::Content::Determinant
|
|
22
26
|
end
|
|
23
27
|
Configuration.register_model(Determinant, id: :determinant)
|
|
24
28
|
|
|
25
29
|
class Transpose < Lutaml::Model::Serializable
|
|
30
|
+
def self.lutaml_default_register
|
|
31
|
+
:mml_v3
|
|
32
|
+
end
|
|
33
|
+
|
|
26
34
|
include Base::Content::Transpose
|
|
27
35
|
end
|
|
28
36
|
Configuration.register_model(Transpose, id: :transpose)
|
|
29
37
|
|
|
30
38
|
class Selector < Lutaml::Model::Serializable
|
|
39
|
+
def self.lutaml_default_register
|
|
40
|
+
:mml_v3
|
|
41
|
+
end
|
|
42
|
+
|
|
31
43
|
include Base::Content::Selector
|
|
32
44
|
end
|
|
33
45
|
Configuration.register_model(Selector, id: :selector)
|
|
34
46
|
|
|
35
47
|
class Vectorproduct < Lutaml::Model::Serializable
|
|
48
|
+
def self.lutaml_default_register
|
|
49
|
+
:mml_v3
|
|
50
|
+
end
|
|
51
|
+
|
|
36
52
|
include Base::Content::Vectorproduct
|
|
37
53
|
end
|
|
38
54
|
Configuration.register_model(Vectorproduct, id: :vectorproduct)
|
|
39
55
|
|
|
40
56
|
class Scalarproduct < Lutaml::Model::Serializable
|
|
57
|
+
def self.lutaml_default_register
|
|
58
|
+
:mml_v3
|
|
59
|
+
end
|
|
60
|
+
|
|
41
61
|
include Base::Content::Scalarproduct
|
|
42
62
|
end
|
|
43
63
|
Configuration.register_model(Scalarproduct, id: :scalarproduct)
|
|
44
64
|
|
|
45
65
|
class Outerproduct < Lutaml::Model::Serializable
|
|
66
|
+
def self.lutaml_default_register
|
|
67
|
+
:mml_v3
|
|
68
|
+
end
|
|
69
|
+
|
|
46
70
|
include Base::Content::Outerproduct
|
|
47
71
|
end
|
|
48
72
|
Configuration.register_model(Outerproduct, id: :outerproduct)
|
data/lib/mml/v3/logic.rb
CHANGED
|
@@ -3,36 +3,64 @@
|
|
|
3
3
|
module Mml
|
|
4
4
|
module V3
|
|
5
5
|
class And < Lutaml::Model::Serializable
|
|
6
|
+
def self.lutaml_default_register
|
|
7
|
+
:mml_v3
|
|
8
|
+
end
|
|
9
|
+
|
|
6
10
|
include Base::Content::And
|
|
7
11
|
end
|
|
8
12
|
Configuration.register_model(And, id: :and)
|
|
9
13
|
|
|
10
14
|
class Or < Lutaml::Model::Serializable
|
|
15
|
+
def self.lutaml_default_register
|
|
16
|
+
:mml_v3
|
|
17
|
+
end
|
|
18
|
+
|
|
11
19
|
include Base::Content::Or
|
|
12
20
|
end
|
|
13
21
|
Configuration.register_model(Or, id: :or)
|
|
14
22
|
|
|
15
23
|
class Xor < Lutaml::Model::Serializable
|
|
24
|
+
def self.lutaml_default_register
|
|
25
|
+
:mml_v3
|
|
26
|
+
end
|
|
27
|
+
|
|
16
28
|
include Base::Content::Xor
|
|
17
29
|
end
|
|
18
30
|
Configuration.register_model(Xor, id: :xor)
|
|
19
31
|
|
|
20
32
|
class Not < Lutaml::Model::Serializable
|
|
33
|
+
def self.lutaml_default_register
|
|
34
|
+
:mml_v3
|
|
35
|
+
end
|
|
36
|
+
|
|
21
37
|
include Base::Content::Not
|
|
22
38
|
end
|
|
23
39
|
Configuration.register_model(Not, id: :not)
|
|
24
40
|
|
|
25
41
|
class Exists < Lutaml::Model::Serializable
|
|
42
|
+
def self.lutaml_default_register
|
|
43
|
+
:mml_v3
|
|
44
|
+
end
|
|
45
|
+
|
|
26
46
|
include Base::Content::Exists
|
|
27
47
|
end
|
|
28
48
|
Configuration.register_model(Exists, id: :exists)
|
|
29
49
|
|
|
30
50
|
class Forall < Lutaml::Model::Serializable
|
|
51
|
+
def self.lutaml_default_register
|
|
52
|
+
:mml_v3
|
|
53
|
+
end
|
|
54
|
+
|
|
31
55
|
include Base::Content::Forall
|
|
32
56
|
end
|
|
33
57
|
Configuration.register_model(Forall, id: :forall)
|
|
34
58
|
|
|
35
59
|
class Implies < Lutaml::Model::Serializable
|
|
60
|
+
def self.lutaml_default_register
|
|
61
|
+
:mml_v3
|
|
62
|
+
end
|
|
63
|
+
|
|
36
64
|
include Base::Content::Implies
|
|
37
65
|
end
|
|
38
66
|
Configuration.register_model(Implies, id: :implies)
|
data/lib/mml/v3/maligngroup.rb
CHANGED
data/lib/mml/v3/malignmark.rb
CHANGED
data/lib/mml/v3/mglyph.rb
CHANGED
data/lib/mml/v3/mi.rb
CHANGED
data/lib/mml/v3/mlabeledtr.rb
CHANGED
data/lib/mml/v3/mn.rb
CHANGED
data/lib/mml/v3/mo.rb
CHANGED
data/lib/mml/v3/mprescripts.rb
CHANGED
data/lib/mml/v3/msline.rb
CHANGED
data/lib/mml/v3/mspace.rb
CHANGED
data/lib/mml/v3/mtable.rb
CHANGED
data/lib/mml/v3/mtext.rb
CHANGED
data/lib/mml/v3/mtr.rb
CHANGED
data/lib/mml/v3/none.rb
CHANGED
data/lib/mml/v3/relations.rb
CHANGED
|
@@ -3,46 +3,82 @@
|
|
|
3
3
|
module Mml
|
|
4
4
|
module V3
|
|
5
5
|
class Eq < Lutaml::Model::Serializable
|
|
6
|
+
def self.lutaml_default_register
|
|
7
|
+
:mml_v3
|
|
8
|
+
end
|
|
9
|
+
|
|
6
10
|
include Base::Content::Eq
|
|
7
11
|
end
|
|
8
12
|
Configuration.register_model(Eq, id: :eq)
|
|
9
13
|
|
|
10
14
|
class Neq < Lutaml::Model::Serializable
|
|
15
|
+
def self.lutaml_default_register
|
|
16
|
+
:mml_v3
|
|
17
|
+
end
|
|
18
|
+
|
|
11
19
|
include Base::Content::Neq
|
|
12
20
|
end
|
|
13
21
|
Configuration.register_model(Neq, id: :neq)
|
|
14
22
|
|
|
15
23
|
class Leq < Lutaml::Model::Serializable
|
|
24
|
+
def self.lutaml_default_register
|
|
25
|
+
:mml_v3
|
|
26
|
+
end
|
|
27
|
+
|
|
16
28
|
include Base::Content::Leq
|
|
17
29
|
end
|
|
18
30
|
Configuration.register_model(Leq, id: :leq)
|
|
19
31
|
|
|
20
32
|
class Lt < Lutaml::Model::Serializable
|
|
33
|
+
def self.lutaml_default_register
|
|
34
|
+
:mml_v3
|
|
35
|
+
end
|
|
36
|
+
|
|
21
37
|
include Base::Content::Lt
|
|
22
38
|
end
|
|
23
39
|
Configuration.register_model(Lt, id: :lt)
|
|
24
40
|
|
|
25
41
|
class Geq < Lutaml::Model::Serializable
|
|
42
|
+
def self.lutaml_default_register
|
|
43
|
+
:mml_v3
|
|
44
|
+
end
|
|
45
|
+
|
|
26
46
|
include Base::Content::Geq
|
|
27
47
|
end
|
|
28
48
|
Configuration.register_model(Geq, id: :geq)
|
|
29
49
|
|
|
30
50
|
class Gt < Lutaml::Model::Serializable
|
|
51
|
+
def self.lutaml_default_register
|
|
52
|
+
:mml_v3
|
|
53
|
+
end
|
|
54
|
+
|
|
31
55
|
include Base::Content::Gt
|
|
32
56
|
end
|
|
33
57
|
Configuration.register_model(Gt, id: :gt)
|
|
34
58
|
|
|
35
59
|
class Equivalent < Lutaml::Model::Serializable
|
|
60
|
+
def self.lutaml_default_register
|
|
61
|
+
:mml_v3
|
|
62
|
+
end
|
|
63
|
+
|
|
36
64
|
include Base::Content::Equivalent
|
|
37
65
|
end
|
|
38
66
|
Configuration.register_model(Equivalent, id: :equivalent)
|
|
39
67
|
|
|
40
68
|
class Approx < Lutaml::Model::Serializable
|
|
69
|
+
def self.lutaml_default_register
|
|
70
|
+
:mml_v3
|
|
71
|
+
end
|
|
72
|
+
|
|
41
73
|
include Base::Content::Approx
|
|
42
74
|
end
|
|
43
75
|
Configuration.register_model(Approx, id: :approx)
|
|
44
76
|
|
|
45
77
|
class Factorof < Lutaml::Model::Serializable
|
|
78
|
+
def self.lutaml_default_register
|
|
79
|
+
:mml_v3
|
|
80
|
+
end
|
|
81
|
+
|
|
46
82
|
include Base::Content::Factorof
|
|
47
83
|
end
|
|
48
84
|
Configuration.register_model(Factorof, id: :factorof)
|
data/lib/mml/v3/sets.rb
CHANGED
|
@@ -13,56 +13,100 @@ module Mml
|
|
|
13
13
|
Configuration.register_model(Mlist, id: :list)
|
|
14
14
|
|
|
15
15
|
class Union < Lutaml::Model::Serializable
|
|
16
|
+
def self.lutaml_default_register
|
|
17
|
+
:mml_v3
|
|
18
|
+
end
|
|
19
|
+
|
|
16
20
|
include Base::Content::Union
|
|
17
21
|
end
|
|
18
22
|
Configuration.register_model(Union, id: :union)
|
|
19
23
|
|
|
20
24
|
class Intersect < Lutaml::Model::Serializable
|
|
25
|
+
def self.lutaml_default_register
|
|
26
|
+
:mml_v3
|
|
27
|
+
end
|
|
28
|
+
|
|
21
29
|
include Base::Content::Intersect
|
|
22
30
|
end
|
|
23
31
|
Configuration.register_model(Intersect, id: :intersect)
|
|
24
32
|
|
|
25
33
|
class In < Lutaml::Model::Serializable
|
|
34
|
+
def self.lutaml_default_register
|
|
35
|
+
:mml_v3
|
|
36
|
+
end
|
|
37
|
+
|
|
26
38
|
include Base::Content::In
|
|
27
39
|
end
|
|
28
40
|
Configuration.register_model(In, id: :in)
|
|
29
41
|
|
|
30
42
|
class Notin < Lutaml::Model::Serializable
|
|
43
|
+
def self.lutaml_default_register
|
|
44
|
+
:mml_v3
|
|
45
|
+
end
|
|
46
|
+
|
|
31
47
|
include Base::Content::Notin
|
|
32
48
|
end
|
|
33
49
|
Configuration.register_model(Notin, id: :notin)
|
|
34
50
|
|
|
35
51
|
class Subset < Lutaml::Model::Serializable
|
|
52
|
+
def self.lutaml_default_register
|
|
53
|
+
:mml_v3
|
|
54
|
+
end
|
|
55
|
+
|
|
36
56
|
include Base::Content::Subset
|
|
37
57
|
end
|
|
38
58
|
Configuration.register_model(Subset, id: :subset)
|
|
39
59
|
|
|
40
60
|
class Prsubset < Lutaml::Model::Serializable
|
|
61
|
+
def self.lutaml_default_register
|
|
62
|
+
:mml_v3
|
|
63
|
+
end
|
|
64
|
+
|
|
41
65
|
include Base::Content::Prsubset
|
|
42
66
|
end
|
|
43
67
|
Configuration.register_model(Prsubset, id: :prsubset)
|
|
44
68
|
|
|
45
69
|
class Notsubset < Lutaml::Model::Serializable
|
|
70
|
+
def self.lutaml_default_register
|
|
71
|
+
:mml_v3
|
|
72
|
+
end
|
|
73
|
+
|
|
46
74
|
include Base::Content::Notsubset
|
|
47
75
|
end
|
|
48
76
|
Configuration.register_model(Notsubset, id: :notsubset)
|
|
49
77
|
|
|
50
78
|
class Notprsubset < Lutaml::Model::Serializable
|
|
79
|
+
def self.lutaml_default_register
|
|
80
|
+
:mml_v3
|
|
81
|
+
end
|
|
82
|
+
|
|
51
83
|
include Base::Content::Notprsubset
|
|
52
84
|
end
|
|
53
85
|
Configuration.register_model(Notprsubset, id: :notprsubset)
|
|
54
86
|
|
|
55
87
|
class Setdiff < Lutaml::Model::Serializable
|
|
88
|
+
def self.lutaml_default_register
|
|
89
|
+
:mml_v3
|
|
90
|
+
end
|
|
91
|
+
|
|
56
92
|
include Base::Content::Setdiff
|
|
57
93
|
end
|
|
58
94
|
Configuration.register_model(Setdiff, id: :setdiff)
|
|
59
95
|
|
|
60
96
|
class Card < Lutaml::Model::Serializable
|
|
97
|
+
def self.lutaml_default_register
|
|
98
|
+
:mml_v3
|
|
99
|
+
end
|
|
100
|
+
|
|
61
101
|
include Base::Content::Card
|
|
62
102
|
end
|
|
63
103
|
Configuration.register_model(Card, id: :card)
|
|
64
104
|
|
|
65
105
|
class Cartesianproduct < Lutaml::Model::Serializable
|
|
106
|
+
def self.lutaml_default_register
|
|
107
|
+
:mml_v3
|
|
108
|
+
end
|
|
109
|
+
|
|
66
110
|
include Base::Content::Cartesianproduct
|
|
67
111
|
end
|
|
68
112
|
Configuration.register_model(Cartesianproduct, id: :cartesianproduct)
|
data/lib/mml/v3/statistics.rb
CHANGED
|
@@ -3,31 +3,55 @@
|
|
|
3
3
|
module Mml
|
|
4
4
|
module V3
|
|
5
5
|
class Mean < Lutaml::Model::Serializable
|
|
6
|
+
def self.lutaml_default_register
|
|
7
|
+
:mml_v3
|
|
8
|
+
end
|
|
9
|
+
|
|
6
10
|
include Base::Content::Mean
|
|
7
11
|
end
|
|
8
12
|
Configuration.register_model(Mean, id: :mean)
|
|
9
13
|
|
|
10
14
|
class Sdev < Lutaml::Model::Serializable
|
|
15
|
+
def self.lutaml_default_register
|
|
16
|
+
:mml_v3
|
|
17
|
+
end
|
|
18
|
+
|
|
11
19
|
include Base::Content::Sdev
|
|
12
20
|
end
|
|
13
21
|
Configuration.register_model(Sdev, id: :sdev)
|
|
14
22
|
|
|
15
23
|
class Variance < Lutaml::Model::Serializable
|
|
24
|
+
def self.lutaml_default_register
|
|
25
|
+
:mml_v3
|
|
26
|
+
end
|
|
27
|
+
|
|
16
28
|
include Base::Content::Variance
|
|
17
29
|
end
|
|
18
30
|
Configuration.register_model(Variance, id: :variance)
|
|
19
31
|
|
|
20
32
|
class Median < Lutaml::Model::Serializable
|
|
33
|
+
def self.lutaml_default_register
|
|
34
|
+
:mml_v3
|
|
35
|
+
end
|
|
36
|
+
|
|
21
37
|
include Base::Content::Median
|
|
22
38
|
end
|
|
23
39
|
Configuration.register_model(Median, id: :median)
|
|
24
40
|
|
|
25
41
|
class Mode < Lutaml::Model::Serializable
|
|
42
|
+
def self.lutaml_default_register
|
|
43
|
+
:mml_v3
|
|
44
|
+
end
|
|
45
|
+
|
|
26
46
|
include Base::Content::Mode
|
|
27
47
|
end
|
|
28
48
|
Configuration.register_model(Mode, id: :mode)
|
|
29
49
|
|
|
30
50
|
class Moment < Lutaml::Model::Serializable
|
|
51
|
+
def self.lutaml_default_register
|
|
52
|
+
:mml_v3
|
|
53
|
+
end
|
|
54
|
+
|
|
31
55
|
include Base::Content::Moment
|
|
32
56
|
end
|
|
33
57
|
Configuration.register_model(Moment, id: :moment)
|
|
@@ -3,21 +3,37 @@
|
|
|
3
3
|
module Mml
|
|
4
4
|
module V3
|
|
5
5
|
class Divergence < Lutaml::Model::Serializable
|
|
6
|
+
def self.lutaml_default_register
|
|
7
|
+
:mml_v3
|
|
8
|
+
end
|
|
9
|
+
|
|
6
10
|
include Base::Content::Divergence
|
|
7
11
|
end
|
|
8
12
|
Configuration.register_model(Divergence, id: :divergence)
|
|
9
13
|
|
|
10
14
|
class Grad < Lutaml::Model::Serializable
|
|
15
|
+
def self.lutaml_default_register
|
|
16
|
+
:mml_v3
|
|
17
|
+
end
|
|
18
|
+
|
|
11
19
|
include Base::Content::Grad
|
|
12
20
|
end
|
|
13
21
|
Configuration.register_model(Grad, id: :grad)
|
|
14
22
|
|
|
15
23
|
class Curl < Lutaml::Model::Serializable
|
|
24
|
+
def self.lutaml_default_register
|
|
25
|
+
:mml_v3
|
|
26
|
+
end
|
|
27
|
+
|
|
16
28
|
include Base::Content::Curl
|
|
17
29
|
end
|
|
18
30
|
Configuration.register_model(Curl, id: :curl)
|
|
19
31
|
|
|
20
32
|
class Laplacian < Lutaml::Model::Serializable
|
|
33
|
+
def self.lutaml_default_register
|
|
34
|
+
:mml_v3
|
|
35
|
+
end
|
|
36
|
+
|
|
21
37
|
include Base::Content::Laplacian
|
|
22
38
|
end
|
|
23
39
|
Configuration.register_model(Laplacian, id: :laplacian)
|
data/lib/mml/v4/a.rb
CHANGED
|
@@ -5,16 +5,18 @@ module Mml
|
|
|
5
5
|
class A < CommonElements
|
|
6
6
|
include Base::V4Attributes
|
|
7
7
|
|
|
8
|
-
attribute :href, :string
|
|
9
8
|
attribute :hreflang, :string
|
|
9
|
+
attribute :width, :string
|
|
10
|
+
attribute :height, :string
|
|
10
11
|
|
|
11
12
|
xml do
|
|
12
13
|
namespace Namespace
|
|
13
14
|
element "a"
|
|
14
15
|
mixed_content
|
|
15
16
|
|
|
16
|
-
map_attribute "href", to: :href
|
|
17
17
|
map_attribute "hreflang", to: :hreflang
|
|
18
|
+
map_attribute "width", to: :width
|
|
19
|
+
map_attribute "height", to: :height
|
|
18
20
|
end
|
|
19
21
|
end
|
|
20
22
|
end
|