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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e0b9ec9e6024728b8821c8130834a294bc0e526701969087be08434534179868
|
|
4
|
+
data.tar.gz: c93a0ea135689be29e86e3723d1c977de1ca9d3f8588f4d5101a83f597e652bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 578be875522b8b3a1a0f4f9624c6586044af103cbe5720ccef2f3752996498b1e94e6470838b5b1b53479dad4bb47d863d5a3e5b19a83e4d9f243c9f43f20352
|
|
7
|
+
data.tar.gz: 5248d6fb8452f8dd7a70520e8566d0666b79b23251214003ee78ea4a1726a45aface0601243d6a9ed421641882c4b4d014116892b9c89f1f4a2980180d572fc6
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,25 +1,54 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2026-04-
|
|
3
|
+
# on 2026-04-15 01:25:48 UTC using RuboCop version 1.86.0.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
|
-
# Offense count:
|
|
9
|
+
# Offense count: 1
|
|
10
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
11
|
+
# Configuration parameters: EnforcedStyleAlignWith.
|
|
12
|
+
# SupportedStylesAlignWith: either, start_of_block, start_of_line
|
|
13
|
+
Layout/BlockAlignment:
|
|
14
|
+
Exclude:
|
|
15
|
+
- 'spec/lutaml_default_register_spec.rb'
|
|
16
|
+
|
|
17
|
+
# Offense count: 1
|
|
18
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
19
|
+
Layout/BlockEndNewline:
|
|
20
|
+
Exclude:
|
|
21
|
+
- 'spec/lutaml_default_register_spec.rb'
|
|
22
|
+
|
|
23
|
+
# Offense count: 2
|
|
24
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
25
|
+
# Configuration parameters: Width, EnforcedStyleAlignWith, AllowedPatterns.
|
|
26
|
+
# SupportedStylesAlignWith: start_of_line, relative_to_receiver
|
|
27
|
+
Layout/IndentationWidth:
|
|
28
|
+
Exclude:
|
|
29
|
+
- 'spec/lutaml_default_register_spec.rb'
|
|
30
|
+
|
|
31
|
+
# Offense count: 137
|
|
10
32
|
# This cop supports safe autocorrection (--autocorrect).
|
|
11
33
|
# Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
|
|
12
34
|
# URISchemes: http, https
|
|
13
35
|
Layout/LineLength:
|
|
14
36
|
Enabled: false
|
|
15
37
|
|
|
38
|
+
# Offense count: 2
|
|
39
|
+
# Configuration parameters: AllowedPatterns.
|
|
40
|
+
# AllowedPatterns: (?-mix:(exactly|at_least|at_most)\(\d+\)\.times)
|
|
41
|
+
Lint/UnreachableLoop:
|
|
42
|
+
Exclude:
|
|
43
|
+
- 'spec/mml/v4_spec.rb'
|
|
44
|
+
|
|
16
45
|
# Offense count: 1
|
|
17
46
|
# This cop supports safe autocorrection (--autocorrect).
|
|
18
47
|
Lint/UselessAssignment:
|
|
19
48
|
Exclude:
|
|
20
49
|
- 'lib/mml/context_configuration.rb'
|
|
21
50
|
|
|
22
|
-
# Offense count:
|
|
51
|
+
# Offense count: 25
|
|
23
52
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
|
24
53
|
Metrics/AbcSize:
|
|
25
54
|
Enabled: false
|
|
@@ -30,22 +59,34 @@ Metrics/AbcSize:
|
|
|
30
59
|
Metrics/BlockLength:
|
|
31
60
|
Max: 167
|
|
32
61
|
|
|
33
|
-
# Offense count:
|
|
62
|
+
# Offense count: 1
|
|
63
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
64
|
+
Metrics/CyclomaticComplexity:
|
|
65
|
+
Exclude:
|
|
66
|
+
- 'spec/mml/v4_spec.rb'
|
|
67
|
+
|
|
68
|
+
# Offense count: 56
|
|
34
69
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
35
70
|
Metrics/MethodLength:
|
|
36
71
|
Max: 170
|
|
37
72
|
|
|
73
|
+
# Offense count: 1
|
|
74
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
75
|
+
Metrics/PerceivedComplexity:
|
|
76
|
+
Exclude:
|
|
77
|
+
- 'spec/mml/v4_spec.rb'
|
|
78
|
+
|
|
38
79
|
# Offense count: 1
|
|
39
80
|
Naming/ConstantName:
|
|
40
81
|
Exclude:
|
|
41
82
|
- 'lib/mml/v2/namespace.rb'
|
|
42
83
|
|
|
43
|
-
# Offense count:
|
|
84
|
+
# Offense count: 37
|
|
44
85
|
# Configuration parameters: CountAsOne.
|
|
45
86
|
RSpec/ExampleLength:
|
|
46
|
-
Max:
|
|
87
|
+
Max: 13
|
|
47
88
|
|
|
48
|
-
# Offense count:
|
|
89
|
+
# Offense count: 19
|
|
49
90
|
RSpec/MultipleExpectations:
|
|
50
91
|
Max: 3
|
|
51
92
|
|
|
@@ -61,3 +102,14 @@ RSpec/SpecFilePathFormat:
|
|
|
61
102
|
RSpec/UnspecifiedException:
|
|
62
103
|
Exclude:
|
|
63
104
|
- 'spec/mml/v3_spec.rb'
|
|
105
|
+
|
|
106
|
+
# Offense count: 1
|
|
107
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
108
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
|
109
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
|
110
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
|
111
|
+
# FunctionalMethods: let, let!, subject, watch
|
|
112
|
+
# AllowedMethods: lambda, proc, it
|
|
113
|
+
Style/BlockDelimiters:
|
|
114
|
+
Exclude:
|
|
115
|
+
- 'spec/lutaml_default_register_spec.rb'
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Mml
|
|
4
|
+
module Base
|
|
5
|
+
# Common attributes allowed on all MathML elements per W3C MathML Core spec.
|
|
6
|
+
# See: https://w3c.github.io/mathml-core/#global-attributes
|
|
7
|
+
module CommonAttributes
|
|
8
|
+
def self.included(klass)
|
|
9
|
+
klass.class_eval do
|
|
10
|
+
attribute :id, :string
|
|
11
|
+
attribute :xref, :string
|
|
12
|
+
attribute :class_attr, :string
|
|
13
|
+
attribute :style_attr, :string
|
|
14
|
+
attribute :href, :string
|
|
15
|
+
attribute :autofocus, :string
|
|
16
|
+
attribute :nonce, :string
|
|
17
|
+
attribute :tabindex, :string
|
|
18
|
+
attribute :aria_label, :string
|
|
19
|
+
attribute :aria_describedby, :string
|
|
20
|
+
attribute :aria_description, :string
|
|
21
|
+
attribute :aria_details, :string
|
|
22
|
+
attribute :data_other, :string
|
|
23
|
+
|
|
24
|
+
xml do
|
|
25
|
+
namespace Mml::Namespace
|
|
26
|
+
map_attribute "id", to: :id
|
|
27
|
+
map_attribute "xref", to: :xref
|
|
28
|
+
map_attribute "class", to: :class_attr
|
|
29
|
+
map_attribute "style", to: :style_attr
|
|
30
|
+
map_attribute "href", to: :href
|
|
31
|
+
map_attribute "autofocus", to: :autofocus
|
|
32
|
+
map_attribute "nonce", to: :nonce
|
|
33
|
+
map_attribute "tabindex", to: :tabindex
|
|
34
|
+
map_attribute "aria-label", to: :aria_label
|
|
35
|
+
map_attribute "aria-describedby", to: :aria_describedby
|
|
36
|
+
map_attribute "aria-description", to: :aria_description
|
|
37
|
+
map_attribute "aria-details", to: :aria_details
|
|
38
|
+
map_attribute "data-other", to: :data_other
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -10,7 +10,6 @@ module Mml
|
|
|
10
10
|
klass.class_eval do
|
|
11
11
|
attribute :definition_url, :string
|
|
12
12
|
attribute :encoding_value, :string
|
|
13
|
-
attribute :href, :string
|
|
14
13
|
attribute :value, :string
|
|
15
14
|
|
|
16
15
|
xml do
|
|
@@ -18,7 +17,6 @@ module Mml
|
|
|
18
17
|
element "annotation"
|
|
19
18
|
|
|
20
19
|
map_content to: :value
|
|
21
|
-
map_attribute "href", to: :href
|
|
22
20
|
map_attribute "definitionURL", to: :definition_url
|
|
23
21
|
map_attribute "encoding", to: :encoding_value
|
|
24
22
|
end
|
|
@@ -7,13 +7,11 @@ module Mml
|
|
|
7
7
|
module Share
|
|
8
8
|
def self.included(klass)
|
|
9
9
|
klass.class_eval do
|
|
10
|
-
attribute :href, :string
|
|
11
10
|
attribute :src, :string
|
|
12
11
|
|
|
13
12
|
xml do
|
|
14
13
|
namespace Mml::Namespace
|
|
15
14
|
element "share"
|
|
16
|
-
map_attribute "href", to: :href
|
|
17
15
|
map_attribute "src", to: :src
|
|
18
16
|
end
|
|
19
17
|
end
|
data/lib/mml/base/math.rb
CHANGED
|
@@ -8,12 +8,13 @@ module Mml
|
|
|
8
8
|
def self.included(klass)
|
|
9
9
|
klass.class_eval do
|
|
10
10
|
attribute :display, :string
|
|
11
|
+
attribute :alttext, :string
|
|
12
|
+
attribute :decimalpoint, :string
|
|
11
13
|
attribute :macros, :string
|
|
12
|
-
attribute :href, :string
|
|
13
14
|
attribute :lang, :string
|
|
14
15
|
attribute :bevelled, :string
|
|
15
|
-
attribute :mathsize, :string
|
|
16
16
|
attribute :mathcolor, :string
|
|
17
|
+
attribute :mathvariant, :string
|
|
17
18
|
attribute :rowalign, :string
|
|
18
19
|
attribute :columnalign, :string
|
|
19
20
|
attribute :rowspacing, :string
|
|
@@ -29,6 +30,8 @@ module Mml
|
|
|
29
30
|
attribute :indentalignlast, :string
|
|
30
31
|
attribute :indentshiftlast, :string
|
|
31
32
|
attribute :linebreakmultchar, :string
|
|
33
|
+
attribute :linebreakstyle, :string
|
|
34
|
+
attribute :indenttarget, :string
|
|
32
35
|
|
|
33
36
|
xml do
|
|
34
37
|
namespace Mml::Namespace
|
|
@@ -36,12 +39,13 @@ module Mml
|
|
|
36
39
|
mixed_content
|
|
37
40
|
|
|
38
41
|
map_attribute :display, to: :display
|
|
42
|
+
map_attribute "alttext", to: :alttext
|
|
43
|
+
map_attribute "decimalpoint", to: :decimalpoint
|
|
39
44
|
map_attribute :macros, to: :macros
|
|
40
|
-
map_attribute "href", to: :href
|
|
41
45
|
map_attribute "xml:lang", to: :lang
|
|
42
46
|
map_attribute "bevelled", to: :bevelled
|
|
43
|
-
map_attribute "mathsize", to: :mathsize
|
|
44
47
|
map_attribute "mathcolor", to: :mathcolor
|
|
48
|
+
map_attribute "mathvariant", to: :mathvariant
|
|
45
49
|
map_attribute "rowalign", to: :rowalign
|
|
46
50
|
map_attribute "columnalign", to: :columnalign
|
|
47
51
|
map_attribute "rowspacing", to: :rowspacing
|
|
@@ -56,6 +60,8 @@ module Mml
|
|
|
56
60
|
map_attribute "indentalignlast", to: :indentalignlast
|
|
57
61
|
map_attribute "indentshiftlast", to: :indentshiftlast
|
|
58
62
|
map_attribute "linebreakmultchar", to: :linebreakmultchar
|
|
63
|
+
map_attribute "linebreakstyle", to: :linebreakstyle
|
|
64
|
+
map_attribute "indenttarget", to: :indenttarget
|
|
59
65
|
end
|
|
60
66
|
end
|
|
61
67
|
end
|
data/lib/mml/base/mfrac.rb
CHANGED
|
@@ -13,7 +13,6 @@ module Mml
|
|
|
13
13
|
attribute :numalign, :string
|
|
14
14
|
attribute :denomalign, :string
|
|
15
15
|
attribute :bevelled, :string
|
|
16
|
-
attribute :href, :string
|
|
17
16
|
|
|
18
17
|
xml do
|
|
19
18
|
namespace Mml::Namespace
|
|
@@ -26,7 +25,6 @@ module Mml
|
|
|
26
25
|
map_attribute "numalign", to: :numalign
|
|
27
26
|
map_attribute "denomalign", to: :denomalign
|
|
28
27
|
map_attribute "bevelled", to: :bevelled
|
|
29
|
-
map_attribute "href", to: :href
|
|
30
28
|
end
|
|
31
29
|
end
|
|
32
30
|
end
|
data/lib/mml/base/mglyph.rb
CHANGED
|
@@ -17,7 +17,6 @@ module Mml
|
|
|
17
17
|
attribute :mathbackground, :string
|
|
18
18
|
attribute :fontfamily, :string
|
|
19
19
|
|
|
20
|
-
attribute :mathsize, :string
|
|
21
20
|
attribute :mathcolor, :string
|
|
22
21
|
|
|
23
22
|
xml do
|
|
@@ -34,7 +33,6 @@ module Mml
|
|
|
34
33
|
map_attribute "mathbackground", to: :mathbackground
|
|
35
34
|
map_attribute "fontfamily", to: :fontfamily
|
|
36
35
|
|
|
37
|
-
map_attribute "mathsize", to: :mathsize
|
|
38
36
|
map_attribute "mathcolor", to: :mathcolor
|
|
39
37
|
end
|
|
40
38
|
end
|
data/lib/mml/base/mi.rb
CHANGED
|
@@ -8,11 +8,10 @@ module Mml
|
|
|
8
8
|
def self.included(klass)
|
|
9
9
|
klass.class_eval do
|
|
10
10
|
attribute :value, :string
|
|
11
|
-
attribute :mathsize, :string
|
|
12
11
|
attribute :mathcolor, :string
|
|
13
|
-
attribute :mathvariant, :string
|
|
14
12
|
attribute :mathbackground, :string
|
|
15
|
-
attribute :
|
|
13
|
+
attribute :mathsize, :string
|
|
14
|
+
attribute :mathvariant, :string
|
|
16
15
|
attribute :mglyph_value, :mglyph, collection: true
|
|
17
16
|
attribute :lang, :string
|
|
18
17
|
|
|
@@ -22,11 +21,10 @@ module Mml
|
|
|
22
21
|
mixed_content
|
|
23
22
|
|
|
24
23
|
map_content to: :value
|
|
25
|
-
map_attribute "mathsize", to: :mathsize
|
|
26
24
|
map_attribute "mathcolor", to: :mathcolor
|
|
27
|
-
map_attribute "mathvariant", to: :mathvariant
|
|
28
25
|
map_attribute "mathbackground", to: :mathbackground
|
|
29
|
-
map_attribute "
|
|
26
|
+
map_attribute "mathsize", to: :mathsize
|
|
27
|
+
map_attribute "mathvariant", to: :mathvariant
|
|
30
28
|
map_attribute "xml:lang", to: :lang
|
|
31
29
|
map_element "mglyph", to: :mglyph_value
|
|
32
30
|
end
|
data/lib/mml/base/mlabeledtr.rb
CHANGED
|
@@ -7,11 +7,12 @@ module Mml
|
|
|
7
7
|
# Use fully qualified names (e.g., Mml::Namespace).
|
|
8
8
|
def self.included(klass)
|
|
9
9
|
klass.class_eval do
|
|
10
|
+
include CommonAttributes
|
|
11
|
+
|
|
10
12
|
attribute :mathbackground, :string
|
|
11
13
|
attribute :columnalign, :string
|
|
12
14
|
attribute :mathcolor, :string
|
|
13
15
|
attribute :rowalign, :string
|
|
14
|
-
attribute :id, :string
|
|
15
16
|
attribute :mtd_value, :mtd, collection: true
|
|
16
17
|
|
|
17
18
|
xml do
|
|
@@ -23,7 +24,6 @@ module Mml
|
|
|
23
24
|
map_attribute "columnalign", to: :columnalign
|
|
24
25
|
map_attribute "mathcolor", to: :mathcolor
|
|
25
26
|
map_attribute "rowalign", to: :rowalign
|
|
26
|
-
map_attribute "id", to: :id
|
|
27
27
|
map_element "mtd", to: :mtd_value
|
|
28
28
|
end
|
|
29
29
|
end
|
data/lib/mml/base/mn.rb
CHANGED
|
@@ -12,7 +12,6 @@ module Mml
|
|
|
12
12
|
attribute :mathbackground, :string
|
|
13
13
|
attribute :mathvariant, :string
|
|
14
14
|
attribute :mathsize, :string
|
|
15
|
-
attribute :href, :string
|
|
16
15
|
attribute :mglyph_value, :mglyph, collection: true
|
|
17
16
|
|
|
18
17
|
xml do
|
|
@@ -25,7 +24,6 @@ module Mml
|
|
|
25
24
|
map_attribute "mathbackground", to: :mathbackground
|
|
26
25
|
map_attribute "mathvariant", to: :mathvariant
|
|
27
26
|
map_attribute "mathsize", to: :mathsize
|
|
28
|
-
map_attribute "href", to: :href
|
|
29
27
|
map_element "mglyph", to: :mglyph_value
|
|
30
28
|
end
|
|
31
29
|
end
|
data/lib/mml/base/mo.rb
CHANGED
|
@@ -19,6 +19,7 @@ module Mml
|
|
|
19
19
|
attribute :symmetric, :string
|
|
20
20
|
attribute :maxsize, :string
|
|
21
21
|
attribute :minsize, :string
|
|
22
|
+
attribute :fence, :string
|
|
22
23
|
attribute :largeop, :string
|
|
23
24
|
attribute :movablelimits, :string
|
|
24
25
|
attribute :accent, :string
|
|
@@ -46,13 +47,14 @@ module Mml
|
|
|
46
47
|
map_attribute "rspace", to: :rspace
|
|
47
48
|
map_attribute "maxsize", to: :maxsize
|
|
48
49
|
map_attribute "minsize", to: :minsize
|
|
50
|
+
map_attribute "fence", to: :fence
|
|
49
51
|
map_attribute "largeop", to: :largeop
|
|
50
52
|
map_attribute "stretchy", to: :stretchy
|
|
51
|
-
map_attribute "mathsize", to: :mathsize
|
|
52
53
|
map_attribute "linebreak", to: :linebreak
|
|
53
54
|
map_attribute "symmetric", to: :symmetric
|
|
54
55
|
map_attribute "mathcolor", to: :mathcolor
|
|
55
56
|
map_attribute "mathvariant", to: :mathvariant
|
|
57
|
+
map_attribute "mathsize", to: :mathsize
|
|
56
58
|
map_attribute "lineleading", to: :lineleading
|
|
57
59
|
map_attribute "indentalign", to: :indentalign
|
|
58
60
|
map_attribute "indentshift", to: :indentshift
|
data/lib/mml/base/ms.rb
CHANGED
|
@@ -8,9 +8,9 @@ module Mml
|
|
|
8
8
|
def self.included(klass)
|
|
9
9
|
klass.class_eval do
|
|
10
10
|
attribute :mathbackground, :string
|
|
11
|
-
attribute :mathvariant, :string
|
|
12
11
|
attribute :mathcolor, :string
|
|
13
12
|
attribute :mathsize, :string
|
|
13
|
+
attribute :mathvariant, :string
|
|
14
14
|
attribute :lquote, :string
|
|
15
15
|
attribute :rquote, :string
|
|
16
16
|
attribute :value, :string
|
|
@@ -22,9 +22,9 @@ module Mml
|
|
|
22
22
|
|
|
23
23
|
map_content to: :value
|
|
24
24
|
map_attribute "mathbackground", to: :mathbackground
|
|
25
|
-
map_attribute "mathvariant", to: :mathvariant
|
|
26
25
|
map_attribute "mathcolor", to: :mathcolor
|
|
27
26
|
map_attribute "mathsize", to: :mathsize
|
|
27
|
+
map_attribute "mathvariant", to: :mathvariant
|
|
28
28
|
map_attribute "lquote", to: :lquote, render_empty: true
|
|
29
29
|
map_attribute "rquote", to: :rquote, render_empty: true
|
|
30
30
|
end
|
data/lib/mml/base/mspace.rb
CHANGED
|
@@ -10,7 +10,6 @@ module Mml
|
|
|
10
10
|
attribute :mathcolor, :string
|
|
11
11
|
attribute :mathbackground, :string
|
|
12
12
|
attribute :mathvariant, :string
|
|
13
|
-
attribute :mathsize, :string
|
|
14
13
|
attribute :dir, :string
|
|
15
14
|
attribute :width, :string
|
|
16
15
|
attribute :height, :string
|
|
@@ -31,7 +30,6 @@ module Mml
|
|
|
31
30
|
map_attribute "mathcolor", to: :mathcolor
|
|
32
31
|
map_attribute "mathbackground", to: :mathbackground
|
|
33
32
|
map_attribute "mathvariant", to: :mathvariant
|
|
34
|
-
map_attribute "mathsize", to: :mathsize
|
|
35
33
|
map_attribute "dir", to: :dir
|
|
36
34
|
map_attribute "width", to: :width
|
|
37
35
|
map_attribute "height", to: :height
|
data/lib/mml/base/mstyle.rb
CHANGED
|
@@ -55,7 +55,6 @@ module Mml
|
|
|
55
55
|
attribute :longdivstyle, :string
|
|
56
56
|
attribute :lquote, :string
|
|
57
57
|
attribute :lspace, :string
|
|
58
|
-
attribute :mathsize, :string
|
|
59
58
|
attribute :mathvariant, :string
|
|
60
59
|
attribute :maxsize, :string
|
|
61
60
|
attribute :minsize, :string
|
|
@@ -81,6 +80,7 @@ module Mml
|
|
|
81
80
|
attribute :superscriptshift, :string
|
|
82
81
|
attribute :symmetric, :string
|
|
83
82
|
attribute :valign, :string
|
|
83
|
+
attribute :voffset, :string
|
|
84
84
|
attribute :width, :string
|
|
85
85
|
attribute :veryverythinmathspace, :string
|
|
86
86
|
attribute :verythinmathspace, :string
|
|
@@ -142,7 +142,6 @@ module Mml
|
|
|
142
142
|
map_attribute "longdivstyle", to: :longdivstyle
|
|
143
143
|
map_attribute "lquote", to: :lquote
|
|
144
144
|
map_attribute "lspace", to: :lspace
|
|
145
|
-
map_attribute "mathsize", to: :mathsize
|
|
146
145
|
map_attribute "mathvariant", to: :mathvariant
|
|
147
146
|
map_attribute "maxsize", to: :maxsize
|
|
148
147
|
map_attribute "minsize", to: :minsize
|
|
@@ -168,6 +167,7 @@ module Mml
|
|
|
168
167
|
map_attribute "superscriptshift", to: :superscriptshift
|
|
169
168
|
map_attribute "symmetric", to: :symmetric
|
|
170
169
|
map_attribute "valign", to: :valign
|
|
170
|
+
map_attribute "voffset", to: :voffset
|
|
171
171
|
map_attribute "width", to: :width
|
|
172
172
|
map_attribute "veryverythinmathspace", to: :veryverythinmathspace
|
|
173
173
|
map_attribute "verythinmathspace", to: :verythinmathspace
|
|
@@ -7,10 +7,13 @@ module Mml
|
|
|
7
7
|
module UniversalPresentationAttributes
|
|
8
8
|
def self.included(klass)
|
|
9
9
|
klass.class_eval do
|
|
10
|
+
include CommonAttributes
|
|
11
|
+
|
|
10
12
|
attribute :displaystyle, :string
|
|
11
13
|
attribute :scriptlevel, :string
|
|
12
14
|
attribute :mathcolor, :string
|
|
13
15
|
attribute :mathbackground, :string
|
|
16
|
+
attribute :mathsize, :string
|
|
14
17
|
|
|
15
18
|
xml do
|
|
16
19
|
namespace Mml::Namespace
|
|
@@ -18,6 +21,7 @@ module Mml
|
|
|
18
21
|
map_attribute "scriptlevel", to: :scriptlevel
|
|
19
22
|
map_attribute "mathcolor", to: :mathcolor
|
|
20
23
|
map_attribute "mathbackground", to: :mathbackground
|
|
24
|
+
map_attribute "mathsize", to: :mathsize
|
|
21
25
|
end
|
|
22
26
|
end
|
|
23
27
|
end
|
data/lib/mml/base.rb
CHANGED
|
@@ -43,6 +43,7 @@ module Mml
|
|
|
43
43
|
autoload :Munderover, "#{__dir__}/base/munderover"
|
|
44
44
|
autoload :None, "#{__dir__}/base/none"
|
|
45
45
|
autoload :Semantics, "#{__dir__}/base/semantics"
|
|
46
|
+
autoload :CommonAttributes, "#{__dir__}/base/common_attributes"
|
|
46
47
|
autoload :UniversalPresentationAttributes,
|
|
47
48
|
"#{__dir__}/base/universal_presentation_attributes"
|
|
48
49
|
autoload :V3Common, "#{__dir__}/base/v3_common"
|
data/lib/mml/common_elements.rb
CHANGED
|
@@ -4,6 +4,8 @@ require "lutaml/model"
|
|
|
4
4
|
|
|
5
5
|
module Mml
|
|
6
6
|
class CommonElements < Lutaml::Model::Serializable
|
|
7
|
+
include Base::CommonAttributes
|
|
8
|
+
|
|
7
9
|
# Presentation elements
|
|
8
10
|
attribute :mmultiscripts_value, :mmultiscripts, collection: true
|
|
9
11
|
attribute :maligngroup_value, :maligngroup, collection: true
|
data/lib/mml/v2/annotation.rb
CHANGED