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.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop_todo.yml +59 -7
  3. data/lib/mml/base/common_attributes.rb +44 -0
  4. data/lib/mml/base/content/annotation.rb +0 -2
  5. data/lib/mml/base/content/share.rb +0 -2
  6. data/lib/mml/base/math.rb +10 -4
  7. data/lib/mml/base/mfrac.rb +0 -2
  8. data/lib/mml/base/mglyph.rb +0 -2
  9. data/lib/mml/base/mi.rb +4 -6
  10. data/lib/mml/base/mlabeledtr.rb +2 -2
  11. data/lib/mml/base/mn.rb +0 -2
  12. data/lib/mml/base/mo.rb +3 -1
  13. data/lib/mml/base/ms.rb +2 -2
  14. data/lib/mml/base/mspace.rb +0 -2
  15. data/lib/mml/base/mstyle.rb +2 -2
  16. data/lib/mml/base/universal_presentation_attributes.rb +4 -0
  17. data/lib/mml/base.rb +1 -0
  18. data/lib/mml/common_elements.rb +2 -0
  19. data/lib/mml/v2/annotation.rb +4 -0
  20. data/lib/mml/v2/annotation_xml.rb +4 -0
  21. data/lib/mml/v2/arith.rb +88 -0
  22. data/lib/mml/v2/ci.rb +4 -0
  23. data/lib/mml/v2/cn.rb +4 -0
  24. data/lib/mml/v2/constants.rb +60 -0
  25. data/lib/mml/v2/csymbol.rb +4 -0
  26. data/lib/mml/v2/functions.rb +20 -0
  27. data/lib/mml/v2/logic.rb +28 -0
  28. data/lib/mml/v2/mfraction.rb +4 -0
  29. data/lib/mml/v2/mi.rb +4 -0
  30. data/lib/mml/v2/mn.rb +4 -0
  31. data/lib/mml/v2/ms.rb +4 -0
  32. data/lib/mml/v2/relations.rb +36 -0
  33. data/lib/mml/v2/statistics.rb +24 -0
  34. data/lib/mml/v2/vector_calculus.rb +16 -0
  35. data/lib/mml/v3/arith.rb +88 -0
  36. data/lib/mml/v3/cbytes.rb +4 -0
  37. data/lib/mml/v3/ci.rb +4 -0
  38. data/lib/mml/v3/cn.rb +4 -0
  39. data/lib/mml/v3/constants.rb +60 -0
  40. data/lib/mml/v3/cs.rb +4 -0
  41. data/lib/mml/v3/csymbol.rb +4 -0
  42. data/lib/mml/v3/elementary_functions.rb +108 -0
  43. data/lib/mml/v3/functions.rb +20 -0
  44. data/lib/mml/v3/linear_algebra.rb +24 -0
  45. data/lib/mml/v3/logic.rb +28 -0
  46. data/lib/mml/v3/maligngroup.rb +4 -0
  47. data/lib/mml/v3/malignmark.rb +4 -0
  48. data/lib/mml/v3/mglyph.rb +4 -0
  49. data/lib/mml/v3/mi.rb +4 -0
  50. data/lib/mml/v3/mlabeledtr.rb +4 -0
  51. data/lib/mml/v3/mn.rb +4 -0
  52. data/lib/mml/v3/mo.rb +4 -0
  53. data/lib/mml/v3/mprescripts.rb +4 -0
  54. data/lib/mml/v3/msline.rb +4 -0
  55. data/lib/mml/v3/mspace.rb +4 -0
  56. data/lib/mml/v3/mtable.rb +4 -0
  57. data/lib/mml/v3/mtext.rb +4 -0
  58. data/lib/mml/v3/mtr.rb +4 -0
  59. data/lib/mml/v3/none.rb +4 -0
  60. data/lib/mml/v3/relations.rb +36 -0
  61. data/lib/mml/v3/sets.rb +44 -0
  62. data/lib/mml/v3/statistics.rb +24 -0
  63. data/lib/mml/v3/vector_calculus.rb +16 -0
  64. data/lib/mml/v4/a.rb +4 -2
  65. data/lib/mml/v4/arith.rb +66 -0
  66. data/lib/mml/v4/calculus.rb +15 -0
  67. data/lib/mml/v4/cbytes.rb +3 -0
  68. data/lib/mml/v4/ci.rb +3 -0
  69. data/lib/mml/v4/cn.rb +3 -0
  70. data/lib/mml/v4/constants.rb +45 -0
  71. data/lib/mml/v4/cs.rb +3 -0
  72. data/lib/mml/v4/csymbol.rb +3 -0
  73. data/lib/mml/v4/elementary_functions.rb +81 -0
  74. data/lib/mml/v4/factorof.rb +3 -0
  75. data/lib/mml/v4/functions.rb +15 -0
  76. data/lib/mml/v4/limit.rb +3 -0
  77. data/lib/mml/v4/linear_algebra.rb +27 -0
  78. data/lib/mml/v4/logic.rb +21 -0
  79. data/lib/mml/v4/maligngroup.rb +3 -0
  80. data/lib/mml/v4/malignmark.rb +3 -0
  81. data/lib/mml/v4/mglyph.rb +3 -0
  82. data/lib/mml/v4/mi.rb +4 -0
  83. data/lib/mml/v4/mlabeledtr.rb +3 -0
  84. data/lib/mml/v4/mn.rb +4 -0
  85. data/lib/mml/v4/mo.rb +3 -0
  86. data/lib/mml/v4/mprescripts.rb +3 -0
  87. data/lib/mml/v4/msline.rb +3 -0
  88. data/lib/mml/v4/mspace.rb +3 -0
  89. data/lib/mml/v4/mtable.rb +3 -0
  90. data/lib/mml/v4/mtext.rb +3 -0
  91. data/lib/mml/v4/mtr.rb +3 -0
  92. data/lib/mml/v4/none.rb +3 -0
  93. data/lib/mml/v4/relations.rb +24 -0
  94. data/lib/mml/v4/sets.rb +39 -0
  95. data/lib/mml/v4/statistics.rb +21 -0
  96. data/lib/mml/v4/tendsto.rb +3 -0
  97. data/lib/mml/v4/vector_calculus.rb +12 -0
  98. data/lib/mml/version.rb +1 -1
  99. data/schemas/README.adoc +10 -8
  100. data/schemas/mathml4/mathml4-content.rnc +382 -0
  101. data/schemas/mathml4/mathml4-core.rnc +361 -0
  102. data/schemas/mathml4/mathml4-presentation.rnc +358 -0
  103. data/schemas/mathml4/mathml4-strict-content.rnc +86 -0
  104. data/schemas/mathml4/mathml4.rnc +21 -0
  105. data/schemas/mathml4/mathml4.rnc.1 +21 -0
  106. data/schemas/mathml4/mathml4.rng +37 -0
  107. metadata +10 -11
  108. data/schemas/mathml2/CVS/Entries +0 -4
  109. data/schemas/mathml2/CVS/Repository +0 -1
  110. data/schemas/mathml2/CVS/Root +0 -1
  111. data/schemas/mathml2/common/CVS/Entries +0 -4
  112. data/schemas/mathml2/common/CVS/Repository +0 -1
  113. data/schemas/mathml2/common/CVS/Root +0 -1
  114. data/schemas/mathml2/presentation/CVS/Entries +0 -12
  115. data/schemas/mathml2/presentation/CVS/Repository +0 -1
  116. data/schemas/mathml2/presentation/CVS/Root +0 -1
data/lib/mml/v4/logic.rb CHANGED
@@ -3,30 +3,51 @@
3
3
  module Mml
4
4
  module V4
5
5
  class And < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
6
9
  include Base::Content::And
7
10
  end
8
11
 
9
12
  class Or < Lutaml::Model::Serializable
13
+ def self.lutaml_default_register
14
+ :mml_v4
15
+ end
10
16
  include Base::Content::Or
11
17
  end
12
18
 
13
19
  class Xor < Lutaml::Model::Serializable
20
+ def self.lutaml_default_register
21
+ :mml_v4
22
+ end
14
23
  include Base::Content::Xor
15
24
  end
16
25
 
17
26
  class Not < Lutaml::Model::Serializable
27
+ def self.lutaml_default_register
28
+ :mml_v4
29
+ end
18
30
  include Base::Content::Not
19
31
  end
20
32
 
21
33
  class Implies < Lutaml::Model::Serializable
34
+ def self.lutaml_default_register
35
+ :mml_v4
36
+ end
22
37
  include Base::Content::Implies
23
38
  end
24
39
 
25
40
  class Forall < Lutaml::Model::Serializable
41
+ def self.lutaml_default_register
42
+ :mml_v4
43
+ end
26
44
  include Base::Content::Forall
27
45
  end
28
46
 
29
47
  class Exists < Lutaml::Model::Serializable
48
+ def self.lutaml_default_register
49
+ :mml_v4
50
+ end
30
51
  include Base::Content::Exists
31
52
  end
32
53
  end
@@ -3,6 +3,9 @@
3
3
  module Mml
4
4
  module V4
5
5
  class Maligngroup < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
6
9
  include Base::Maligngroup
7
10
  include Base::V4Attributes
8
11
 
@@ -3,6 +3,9 @@
3
3
  module Mml
4
4
  module V4
5
5
  class Malignmark < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
6
9
  include Base::Malignmark
7
10
  include Base::V4Attributes
8
11
 
data/lib/mml/v4/mglyph.rb CHANGED
@@ -3,6 +3,9 @@
3
3
  module Mml
4
4
  module V4
5
5
  class Mglyph < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
6
9
  include Base::Mglyph
7
10
  include Base::V4Attributes
8
11
 
data/lib/mml/v4/mi.rb CHANGED
@@ -3,6 +3,10 @@
3
3
  module Mml
4
4
  module V4
5
5
  class Mi < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
9
+
6
10
  include Base::Mi
7
11
  include Base::V3Common
8
12
  include Base::V4Attributes
@@ -5,6 +5,9 @@ module Mml
5
5
  # @deprecated V4 spec removes <mlabeledtr> from the default schema.
6
6
  # It is valid only in the mathml4-legacy schema for legacy content.
7
7
  class Mlabeledtr < Lutaml::Model::Serializable
8
+ def self.lutaml_default_register
9
+ :mml_v4
10
+ end
8
11
  include Base::Mlabeledtr
9
12
  include Base::V4Attributes
10
13
 
data/lib/mml/v4/mn.rb CHANGED
@@ -3,6 +3,10 @@
3
3
  module Mml
4
4
  module V4
5
5
  class Mn < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
9
+
6
10
  include Base::Mn
7
11
  include Base::V3Common
8
12
  include Base::V4Attributes
data/lib/mml/v4/mo.rb CHANGED
@@ -3,6 +3,9 @@
3
3
  module Mml
4
4
  module V4
5
5
  class Mo < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
6
9
  include Base::Mo
7
10
  include Base::V3Common
8
11
  include Base::V4Attributes
@@ -3,6 +3,9 @@
3
3
  module Mml
4
4
  module V4
5
5
  class Mprescripts < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
6
9
  include Base::Mprescripts
7
10
  include Base::V4Attributes
8
11
 
data/lib/mml/v4/msline.rb CHANGED
@@ -3,6 +3,9 @@
3
3
  module Mml
4
4
  module V4
5
5
  class Msline < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
6
9
  include Base::Msline
7
10
  include Base::V4Attributes
8
11
 
data/lib/mml/v4/mspace.rb CHANGED
@@ -3,6 +3,9 @@
3
3
  module Mml
4
4
  module V4
5
5
  class Mspace < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
6
9
  include Base::Mspace
7
10
  include Base::V4Attributes
8
11
 
data/lib/mml/v4/mtable.rb CHANGED
@@ -3,6 +3,9 @@
3
3
  module Mml
4
4
  module V4
5
5
  class Mtable < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
6
9
  include Base::Mtable
7
10
  include Base::V4Attributes
8
11
 
data/lib/mml/v4/mtext.rb CHANGED
@@ -3,6 +3,9 @@
3
3
  module Mml
4
4
  module V4
5
5
  class Mtext < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
6
9
  include Base::Mtext
7
10
  include Base::V3Common
8
11
  include Base::V4Attributes
data/lib/mml/v4/mtr.rb CHANGED
@@ -3,6 +3,9 @@
3
3
  module Mml
4
4
  module V4
5
5
  class Mtr < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
6
9
  include Base::Mtr
7
10
  include Base::V4Attributes
8
11
 
data/lib/mml/v4/none.rb CHANGED
@@ -5,6 +5,9 @@ module Mml
5
5
  # @deprecated V4 spec marks <none> as deprecated.
6
6
  # Use an empty <mrow> instead for MathML Core compatibility.
7
7
  class None < Lutaml::Model::Serializable
8
+ def self.lutaml_default_register
9
+ :mml_v4
10
+ end
8
11
  include Base::None
9
12
  include Base::V4Attributes
10
13
 
@@ -3,34 +3,58 @@
3
3
  module Mml
4
4
  module V4
5
5
  class Eq < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
6
9
  include Base::Content::Eq
7
10
  end
8
11
 
9
12
  class Neq < Lutaml::Model::Serializable
13
+ def self.lutaml_default_register
14
+ :mml_v4
15
+ end
10
16
  include Base::Content::Neq
11
17
  end
12
18
 
13
19
  class Lt < Lutaml::Model::Serializable
20
+ def self.lutaml_default_register
21
+ :mml_v4
22
+ end
14
23
  include Base::Content::Lt
15
24
  end
16
25
 
17
26
  class Gt < Lutaml::Model::Serializable
27
+ def self.lutaml_default_register
28
+ :mml_v4
29
+ end
18
30
  include Base::Content::Gt
19
31
  end
20
32
 
21
33
  class Leq < Lutaml::Model::Serializable
34
+ def self.lutaml_default_register
35
+ :mml_v4
36
+ end
22
37
  include Base::Content::Leq
23
38
  end
24
39
 
25
40
  class Geq < Lutaml::Model::Serializable
41
+ def self.lutaml_default_register
42
+ :mml_v4
43
+ end
26
44
  include Base::Content::Geq
27
45
  end
28
46
 
29
47
  class Equivalent < Lutaml::Model::Serializable
48
+ def self.lutaml_default_register
49
+ :mml_v4
50
+ end
30
51
  include Base::Content::Equivalent
31
52
  end
32
53
 
33
54
  class Approx < Lutaml::Model::Serializable
55
+ def self.lutaml_default_register
56
+ :mml_v4
57
+ end
34
58
  include Base::Content::Approx
35
59
  end
36
60
  end
data/lib/mml/v4/sets.rb CHANGED
@@ -3,54 +3,93 @@
3
3
  module Mml
4
4
  module V4
5
5
  class Set < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
6
9
  include Base::Content::Set
7
10
  end
8
11
 
9
12
  class List < Lutaml::Model::Serializable
13
+ def self.lutaml_default_register
14
+ :mml_v4
15
+ end
10
16
  include Base::Content::List
11
17
  end
12
18
 
13
19
  class Union < Lutaml::Model::Serializable
20
+ def self.lutaml_default_register
21
+ :mml_v4
22
+ end
14
23
  include Base::Content::Union
15
24
  end
16
25
 
17
26
  class Intersect < Lutaml::Model::Serializable
27
+ def self.lutaml_default_register
28
+ :mml_v4
29
+ end
18
30
  include Base::Content::Intersect
19
31
  end
20
32
 
21
33
  class In < Lutaml::Model::Serializable
34
+ def self.lutaml_default_register
35
+ :mml_v4
36
+ end
22
37
  include Base::Content::In
23
38
  end
24
39
 
25
40
  class Notin < Lutaml::Model::Serializable
41
+ def self.lutaml_default_register
42
+ :mml_v4
43
+ end
26
44
  include Base::Content::Notin
27
45
  end
28
46
 
29
47
  class Notsubset < Lutaml::Model::Serializable
48
+ def self.lutaml_default_register
49
+ :mml_v4
50
+ end
30
51
  include Base::Content::Notsubset
31
52
  end
32
53
 
33
54
  class Notprsubset < Lutaml::Model::Serializable
55
+ def self.lutaml_default_register
56
+ :mml_v4
57
+ end
34
58
  include Base::Content::Notprsubset
35
59
  end
36
60
 
37
61
  class Subset < Lutaml::Model::Serializable
62
+ def self.lutaml_default_register
63
+ :mml_v4
64
+ end
38
65
  include Base::Content::Subset
39
66
  end
40
67
 
41
68
  class Prsubset < Lutaml::Model::Serializable
69
+ def self.lutaml_default_register
70
+ :mml_v4
71
+ end
42
72
  include Base::Content::Prsubset
43
73
  end
44
74
 
45
75
  class Setdiff < Lutaml::Model::Serializable
76
+ def self.lutaml_default_register
77
+ :mml_v4
78
+ end
46
79
  include Base::Content::Setdiff
47
80
  end
48
81
 
49
82
  class Card < Lutaml::Model::Serializable
83
+ def self.lutaml_default_register
84
+ :mml_v4
85
+ end
50
86
  include Base::Content::Card
51
87
  end
52
88
 
53
89
  class Cartesianproduct < Lutaml::Model::Serializable
90
+ def self.lutaml_default_register
91
+ :mml_v4
92
+ end
54
93
  include Base::Content::Cartesianproduct
55
94
  end
56
95
  end
@@ -3,30 +3,51 @@
3
3
  module Mml
4
4
  module V4
5
5
  class Mean < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
6
9
  include Base::Content::Mean
7
10
  end
8
11
 
9
12
  class Sdev < Lutaml::Model::Serializable
13
+ def self.lutaml_default_register
14
+ :mml_v4
15
+ end
10
16
  include Base::Content::Sdev
11
17
  end
12
18
 
13
19
  class Variance < Lutaml::Model::Serializable
20
+ def self.lutaml_default_register
21
+ :mml_v4
22
+ end
14
23
  include Base::Content::Variance
15
24
  end
16
25
 
17
26
  class Median < Lutaml::Model::Serializable
27
+ def self.lutaml_default_register
28
+ :mml_v4
29
+ end
18
30
  include Base::Content::Median
19
31
  end
20
32
 
21
33
  class Mode < Lutaml::Model::Serializable
34
+ def self.lutaml_default_register
35
+ :mml_v4
36
+ end
22
37
  include Base::Content::Mode
23
38
  end
24
39
 
25
40
  class Moment < Lutaml::Model::Serializable
41
+ def self.lutaml_default_register
42
+ :mml_v4
43
+ end
26
44
  include Base::Content::Moment
27
45
  end
28
46
 
29
47
  class Momentabout < Lutaml::Model::Serializable
48
+ def self.lutaml_default_register
49
+ :mml_v4
50
+ end
30
51
  include Base::Content::Momentabout
31
52
  end
32
53
  end
@@ -3,6 +3,9 @@
3
3
  module Mml
4
4
  module V4
5
5
  class Tendsto < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
6
9
  include Base::Content::Tendsto
7
10
  end
8
11
  end
@@ -3,18 +3,30 @@
3
3
  module Mml
4
4
  module V4
5
5
  class Divergence < Lutaml::Model::Serializable
6
+ def self.lutaml_default_register
7
+ :mml_v4
8
+ end
6
9
  include Base::Content::Divergence
7
10
  end
8
11
 
9
12
  class Grad < Lutaml::Model::Serializable
13
+ def self.lutaml_default_register
14
+ :mml_v4
15
+ end
10
16
  include Base::Content::Grad
11
17
  end
12
18
 
13
19
  class Curl < Lutaml::Model::Serializable
20
+ def self.lutaml_default_register
21
+ :mml_v4
22
+ end
14
23
  include Base::Content::Curl
15
24
  end
16
25
 
17
26
  class Laplacian < Lutaml::Model::Serializable
27
+ def self.lutaml_default_register
28
+ :mml_v4
29
+ end
18
30
  include Base::Content::Laplacian
19
31
  end
20
32
  end
data/lib/mml/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mml
4
- VERSION = "2.3.1"
4
+ VERSION = "2.3.3"
5
5
  end
data/schemas/README.adoc CHANGED
@@ -1,15 +1,17 @@
1
1
  = W3C MathML schemas
2
2
 
3
- The official MathML schemas are available at
4
- https://www.w3.org/Math/XMLSchema/ .
3
+ The official MathML schemas are available from W3C.
5
4
 
6
- MathML v3:: https://www.w3.org/Math/XMLSchema/mathml3-xsd.zip
5
+ MathML 4:: https://www.w3.org/TR/mathml4/. Link: https://www.w3.org/Math/RelaxNG/mathml4/*.{rnc,rng}
7
6
 
8
- MathML v2:: https://www.w3.org/Math/XMLSchema/mathml2.tgz
7
+ MathML 3:: From https://www.w3.org/Math/XMLSchema/. Link: https://www.w3.org/Math/XMLSchema/mathml3-xsd.zip
8
+
9
+ MathML 2:: From https://www.w3.org/Math/XMLSchema/. Link: https://www.w3.org/Math/XMLSchema/mathml2.tgz
9
10
 
10
11
  == License
11
12
 
12
- Copyright 1998-2003 W3C (MIT, ERCIM, Keio), All Rights Reserved. W3C
13
- liability, trademark, document use and software licensing rules apply. Your
14
- interactions with this site are in accordance with our public and Member privacy
15
- statements.
13
+ Copyright 1998-2024 W3C (MIT, ERCIM, Keio)
14
+
15
+ Use and distribution of this code are permitted under the terms
16
+ W3C Software Notice and License
17
+ http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231