sts 0.5.6 → 0.6.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/rake.yml +3 -0
- data/.github/workflows/release.yml +11 -5
- data/.rubocop.yml +24 -9
- data/.rubocop_todo.yml +92 -4
- data/TODO.sts-refactor/00-overview.md +24 -4
- data/TODO.sts-refactor/03-namespace-coupling.md +108 -147
- data/lib/sts/iso_sts/alt_text.rb +23 -0
- data/lib/sts/iso_sts/app.rb +1 -1
- data/lib/sts/iso_sts/array.rb +1 -1
- data/lib/sts/iso_sts/disp_formula.rb +1 -1
- data/lib/sts/iso_sts/doc_number.rb +16 -0
- data/lib/sts/iso_sts/doc_type.rb +16 -0
- data/lib/sts/iso_sts/document_identification.rb +4 -4
- data/lib/sts/iso_sts/fpage.rb +23 -0
- data/lib/sts/iso_sts/graphic.rb +2 -2
- data/lib/sts/iso_sts/ics.rb +16 -0
- data/lib/sts/iso_sts/is_proof.rb +13 -0
- data/lib/sts/iso_sts/iso_meta.rb +3 -3
- data/lib/sts/iso_sts/issue.rb +23 -0
- data/lib/sts/iso_sts/long_desc.rb +23 -0
- data/lib/sts/iso_sts/lpage.rb +21 -0
- data/lib/sts/iso_sts/mixed_citation.rb +7 -7
- data/lib/sts/iso_sts/nat_meta.rb +3 -3
- data/lib/sts/iso_sts/originator.rb +16 -0
- data/lib/sts/iso_sts/page_range.rb +21 -0
- data/lib/sts/iso_sts/part_number.rb +16 -0
- data/lib/sts/iso_sts/proj_id.rb +16 -0
- data/lib/sts/iso_sts/pub_date.rb +17 -0
- data/lib/sts/iso_sts/pub_id.rb +19 -0
- data/lib/sts/iso_sts/reg_meta.rb +5 -5
- data/lib/sts/iso_sts/release_version.rb +16 -0
- data/lib/sts/{tbx_iso_tml/mi.rb → iso_sts/release_version_id.rb} +5 -7
- data/lib/sts/iso_sts/sdo.rb +16 -0
- data/lib/sts/iso_sts/secretariat.rb +3 -4
- data/lib/sts/iso_sts/standard.rb +1 -0
- data/lib/sts/iso_sts/standard_identification.rb +8 -8
- data/lib/sts/iso_sts/std_ref.rb +7 -7
- data/lib/sts/iso_sts/styled_content.rb +0 -2
- data/lib/sts/iso_sts/suppl_number.rb +16 -0
- data/lib/sts/iso_sts/suppl_type.rb +16 -0
- data/lib/sts/iso_sts/suppl_version.rb +16 -0
- data/lib/sts/iso_sts/table_wrap_foot.rb +1 -1
- data/lib/sts/iso_sts/tex_math.rb +23 -0
- data/lib/sts/iso_sts/urn.rb +16 -0
- data/lib/sts/iso_sts/version.rb +16 -0
- data/lib/sts/iso_sts/volume.rb +23 -0
- data/lib/sts/iso_sts/wi_number.rb +19 -0
- data/lib/sts/iso_sts/year.rb +21 -0
- data/lib/sts/iso_sts.rb +27 -0
- data/lib/sts/niso_sts/display_formula.rb +1 -3
- data/lib/sts/niso_sts/inline_formula.rb +1 -3
- data/lib/sts/niso_sts/standard.rb +1 -0
- data/lib/sts/tbx_iso_tml/definition.rb +1 -1
- data/lib/sts/tbx_iso_tml/note.rb +1 -1
- data/lib/sts/tbx_iso_tml/td.rb +1 -1
- data/lib/sts/tbx_iso_tml/term.rb +1 -1
- data/lib/sts/tbx_iso_tml/th.rb +1 -1
- data/lib/sts/tbx_iso_tml.rb +0 -12
- data/lib/sts/version.rb +1 -1
- data/lib/sts.rb +1 -1
- data/sts.gemspec +2 -2
- metadata +32 -18
- data/lib/sts/mathml.rb +0 -21
- data/lib/sts/tbx_iso_tml/math.rb +0 -49
- data/lib/sts/tbx_iso_tml/mfenced.rb +0 -40
- data/lib/sts/tbx_iso_tml/mfrac.rb +0 -30
- data/lib/sts/tbx_iso_tml/mrow.rb +0 -41
- data/lib/sts/tbx_iso_tml/mspace.rb +0 -18
- data/lib/sts/tbx_iso_tml/mstyle.rb +0 -29
- data/lib/sts/tbx_iso_tml/msub.rb +0 -31
- data/lib/sts/tbx_iso_tml/msup.rb +0 -25
- data/lib/sts/tbx_iso_tml/munder.rb +0 -19
- data/lib/sts/tbx_iso_tml/munderover.rb +0 -23
- data/lib/sts/tbx_iso_tml/semantics.rb +0 -27
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module IsoSts
|
|
5
|
+
class Year < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :content_type, :string
|
|
8
|
+
attribute :specific_use, :string
|
|
9
|
+
attribute :xml_lang, :string
|
|
10
|
+
|
|
11
|
+
xml do
|
|
12
|
+
element "year"
|
|
13
|
+
|
|
14
|
+
map_content to: :content
|
|
15
|
+
map_attribute "content-type", to: :content_type
|
|
16
|
+
map_attribute "specific-use", to: :specific_use
|
|
17
|
+
map_attribute "xml:lang", to: :xml_lang
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
data/lib/sts/iso_sts.rb
CHANGED
|
@@ -38,6 +38,33 @@ module Sts
|
|
|
38
38
|
autoload :MetaDate, "#{__dir__}/iso_sts/meta_date"
|
|
39
39
|
autoload :ContentLanguage, "#{__dir__}/iso_sts/content_language"
|
|
40
40
|
autoload :StandardRef, "#{__dir__}/iso_sts/standard_ref"
|
|
41
|
+
autoload :WiNumber, "#{__dir__}/iso_sts/wi_number"
|
|
42
|
+
autoload :Originator, "#{__dir__}/iso_sts/originator"
|
|
43
|
+
autoload :DocType, "#{__dir__}/iso_sts/doc_type"
|
|
44
|
+
autoload :DocNumber, "#{__dir__}/iso_sts/doc_number"
|
|
45
|
+
autoload :PartNumber, "#{__dir__}/iso_sts/part_number"
|
|
46
|
+
autoload :Version, "#{__dir__}/iso_sts/version"
|
|
47
|
+
autoload :SupplType, "#{__dir__}/iso_sts/suppl_type"
|
|
48
|
+
autoload :SupplNumber, "#{__dir__}/iso_sts/suppl_number"
|
|
49
|
+
autoload :SupplVersion, "#{__dir__}/iso_sts/suppl_version"
|
|
50
|
+
autoload :Urn, "#{__dir__}/iso_sts/urn"
|
|
51
|
+
autoload :Sdo, "#{__dir__}/iso_sts/sdo"
|
|
52
|
+
autoload :ProjId, "#{__dir__}/iso_sts/proj_id"
|
|
53
|
+
autoload :ReleaseVersion, "#{__dir__}/iso_sts/release_version"
|
|
54
|
+
autoload :Ics, "#{__dir__}/iso_sts/ics"
|
|
55
|
+
autoload :Year, "#{__dir__}/iso_sts/year"
|
|
56
|
+
autoload :PubDate, "#{__dir__}/iso_sts/pub_date"
|
|
57
|
+
autoload :ReleaseVersionId, "#{__dir__}/iso_sts/release_version_id"
|
|
58
|
+
autoload :IsProof, "#{__dir__}/iso_sts/is_proof"
|
|
59
|
+
autoload :AltText, "#{__dir__}/iso_sts/alt_text"
|
|
60
|
+
autoload :LongDesc, "#{__dir__}/iso_sts/long_desc"
|
|
61
|
+
autoload :TexMath, "#{__dir__}/iso_sts/tex_math"
|
|
62
|
+
autoload :PubId, "#{__dir__}/iso_sts/pub_id"
|
|
63
|
+
autoload :Volume, "#{__dir__}/iso_sts/volume"
|
|
64
|
+
autoload :Issue, "#{__dir__}/iso_sts/issue"
|
|
65
|
+
autoload :Fpage, "#{__dir__}/iso_sts/fpage"
|
|
66
|
+
autoload :Lpage, "#{__dir__}/iso_sts/lpage"
|
|
67
|
+
autoload :PageRange, "#{__dir__}/iso_sts/page_range"
|
|
41
68
|
|
|
42
69
|
# Section elements
|
|
43
70
|
autoload :Sec, "#{__dir__}/iso_sts/sec"
|
|
@@ -20,7 +20,7 @@ module Sts
|
|
|
20
20
|
attribute :named_content, ::Sts::NisoSts::NamedContent, collection: true
|
|
21
21
|
attribute :styled_content, ::Sts::NisoSts::StyledContent, collection: true
|
|
22
22
|
attribute :label, ::Sts::NisoSts::Label
|
|
23
|
-
attribute :math, ::
|
|
23
|
+
attribute :math, ::Mml::V3::Math
|
|
24
24
|
attribute :inline_formula, ::Sts::NisoSts::InlineFormula, collection: true
|
|
25
25
|
attribute :tex_math, ::Sts::NisoSts::TexMath
|
|
26
26
|
attribute :graphic, ::Sts::NisoSts::Graphic, collection: true
|
|
@@ -32,7 +32,6 @@ module Sts
|
|
|
32
32
|
|
|
33
33
|
xml do
|
|
34
34
|
element "disp-formula"
|
|
35
|
-
mixed_content
|
|
36
35
|
|
|
37
36
|
map_attribute "id", to: :id
|
|
38
37
|
map_attribute "content-type", to: :content_type
|
|
@@ -40,7 +39,6 @@ module Sts
|
|
|
40
39
|
map_attribute "specific-use", to: :specific_use
|
|
41
40
|
map_attribute "xml:lang", to: :xml_lang
|
|
42
41
|
|
|
43
|
-
map_content to: :content
|
|
44
42
|
map_element "bold", to: :bold
|
|
45
43
|
map_element "italic", to: :italic
|
|
46
44
|
map_element "sub", to: :sub
|
|
@@ -16,7 +16,7 @@ module Sts
|
|
|
16
16
|
attribute :private_char, ::Sts::NisoSts::PrivateChar, collection: true
|
|
17
17
|
attribute :named_content, ::Sts::NisoSts::NamedContent, collection: true
|
|
18
18
|
attribute :styled_content, ::Sts::NisoSts::StyledContent, collection: true
|
|
19
|
-
attribute :math, ::
|
|
19
|
+
attribute :math, ::Mml::V3::Math
|
|
20
20
|
attribute :inline_formula, ::Sts::NisoSts::InlineFormula, collection: true
|
|
21
21
|
attribute :alternatives, ::Sts::NisoSts::Alternatives
|
|
22
22
|
attribute :preformat, ::Sts::NisoSts::Preformat
|
|
@@ -25,14 +25,12 @@ module Sts
|
|
|
25
25
|
|
|
26
26
|
xml do
|
|
27
27
|
element "inline-formula"
|
|
28
|
-
mixed_content
|
|
29
28
|
|
|
30
29
|
map_attribute "content-type", to: :content_type
|
|
31
30
|
map_attribute "id", to: :id
|
|
32
31
|
map_attribute "specific-use", to: :specific_use
|
|
33
32
|
map_attribute "xml:lang", to: :xml_lang
|
|
34
33
|
|
|
35
|
-
map_content to: :content
|
|
36
34
|
map_element "bold", to: :bold
|
|
37
35
|
map_element "italic", to: :italic
|
|
38
36
|
map_element "sub", to: :sub
|
|
@@ -8,7 +8,7 @@ module Sts
|
|
|
8
8
|
attribute :note, ::Sts::TbxIsoTml::Note
|
|
9
9
|
attribute :value, :string, collection: true
|
|
10
10
|
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
11
|
-
attribute :math, ::
|
|
11
|
+
attribute :math, ::Mml::V3::Math
|
|
12
12
|
attribute :sub, ::Sts::NisoSts::Sub, collection: true
|
|
13
13
|
attribute :list, ::Sts::NisoSts::List, collection: true
|
|
14
14
|
attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
|
data/lib/sts/tbx_iso_tml/note.rb
CHANGED
|
@@ -7,7 +7,7 @@ module Sts
|
|
|
7
7
|
attribute :value, :string, collection: true
|
|
8
8
|
attribute :table_wrap, ::Sts::TbxIsoTml::TableWrap
|
|
9
9
|
attribute :entailed_term, ::Sts::TbxIsoTml::EntailedTerm, collection: true
|
|
10
|
-
attribute :math, ::
|
|
10
|
+
attribute :math, ::Mml::V3::Math, collection: true
|
|
11
11
|
attribute :xref, ::Sts::TbxIsoTml::Xref, collection: true
|
|
12
12
|
attribute :list, ::Sts::NisoSts::List, collection: true
|
|
13
13
|
attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
|
data/lib/sts/tbx_iso_tml/td.rb
CHANGED
|
@@ -100,7 +100,7 @@ module Sts
|
|
|
100
100
|
attribute :sup, ::Sts::NisoSts::Sup, collection: true
|
|
101
101
|
|
|
102
102
|
# break.class
|
|
103
|
-
attribute :break, ::Sts::TbxIsoTml::TableBreak
|
|
103
|
+
attribute :break, ::Sts::TbxIsoTml::TableBreak, collection: true
|
|
104
104
|
|
|
105
105
|
# citation.class (std)
|
|
106
106
|
attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
|
data/lib/sts/tbx_iso_tml/term.rb
CHANGED
|
@@ -10,7 +10,7 @@ module Sts
|
|
|
10
10
|
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
11
11
|
attribute :sub, ::Sts::NisoSts::Sub, collection: true
|
|
12
12
|
attribute :sup, ::Sts::NisoSts::Sup, collection: true
|
|
13
|
-
attribute :math, ::
|
|
13
|
+
attribute :math, ::Mml::V3::Math, collection: true
|
|
14
14
|
attribute :xref, ::Sts::TbxIsoTml::Xref, collection: true
|
|
15
15
|
attribute :inline_formula, ::Sts::NisoSts::InlineFormula, collection: true
|
|
16
16
|
attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
|
data/lib/sts/tbx_iso_tml/th.rb
CHANGED
|
@@ -101,7 +101,7 @@ module Sts
|
|
|
101
101
|
attribute :sup, ::Sts::NisoSts::Sup, collection: true
|
|
102
102
|
|
|
103
103
|
# break.class
|
|
104
|
-
attribute :break, ::Sts::TbxIsoTml::TableBreak
|
|
104
|
+
attribute :break, ::Sts::TbxIsoTml::TableBreak, collection: true
|
|
105
105
|
|
|
106
106
|
# citation.class (std)
|
|
107
107
|
attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
|
data/lib/sts/tbx_iso_tml.rb
CHANGED
|
@@ -18,24 +18,12 @@ module Sts
|
|
|
18
18
|
autoload :GrammaticalNumber, "#{__dir__}/tbx_iso_tml/grammatical_number"
|
|
19
19
|
autoload :Italic, "#{__dir__}/tbx_iso_tml/italic"
|
|
20
20
|
autoload :LangSet, "#{__dir__}/tbx_iso_tml/lang_set"
|
|
21
|
-
autoload :Math, "#{__dir__}/tbx_iso_tml/math"
|
|
22
|
-
autoload :Mfenced, "#{__dir__}/tbx_iso_tml/mfenced"
|
|
23
|
-
autoload :Mfrac, "#{__dir__}/tbx_iso_tml/mfrac"
|
|
24
|
-
autoload :Mi, "#{__dir__}/tbx_iso_tml/mi"
|
|
25
|
-
autoload :Mrow, "#{__dir__}/tbx_iso_tml/mrow"
|
|
26
|
-
autoload :Mspace, "#{__dir__}/tbx_iso_tml/mspace"
|
|
27
|
-
autoload :Mstyle, "#{__dir__}/tbx_iso_tml/mstyle"
|
|
28
|
-
autoload :Msub, "#{__dir__}/tbx_iso_tml/msub"
|
|
29
|
-
autoload :Msup, "#{__dir__}/tbx_iso_tml/msup"
|
|
30
|
-
autoload :Munder, "#{__dir__}/tbx_iso_tml/munder"
|
|
31
|
-
autoload :Munderover, "#{__dir__}/tbx_iso_tml/munderover"
|
|
32
21
|
autoload :NormativeAuthorization,
|
|
33
22
|
"#{__dir__}/tbx_iso_tml/normative_authorization"
|
|
34
23
|
autoload :Note, "#{__dir__}/tbx_iso_tml/note"
|
|
35
24
|
autoload :PartOfSpeech, "#{__dir__}/tbx_iso_tml/part_of_speech"
|
|
36
25
|
autoload :Pronunciation, "#{__dir__}/tbx_iso_tml/pronunciation"
|
|
37
26
|
autoload :See, "#{__dir__}/tbx_iso_tml/see"
|
|
38
|
-
autoload :Semantics, "#{__dir__}/tbx_iso_tml/semantics"
|
|
39
27
|
autoload :Source, "#{__dir__}/tbx_iso_tml/source"
|
|
40
28
|
autoload :SubjectField, "#{__dir__}/tbx_iso_tml/subject_field"
|
|
41
29
|
autoload :Sup, "#{__dir__}/tbx_iso_tml/sup"
|
data/lib/sts/version.rb
CHANGED
data/lib/sts.rb
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require "lutaml/model"
|
|
4
|
+
require "mml"
|
|
4
5
|
|
|
5
6
|
module Sts
|
|
6
7
|
autoload :IsoSts, "#{__dir__}/sts/iso_sts"
|
|
7
|
-
autoload :Mathml, "#{__dir__}/sts/mathml"
|
|
8
8
|
autoload :Namespaces, "#{__dir__}/sts/namespaces"
|
|
9
9
|
autoload :NisoSts, "#{__dir__}/sts/niso_sts"
|
|
10
10
|
autoload :Profiles, "#{__dir__}/sts/profiles"
|
data/sts.gemspec
CHANGED
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
|
15
15
|
spec.summary = "Library to work with NISO STS and ISOSTS."
|
|
16
16
|
spec.homepage = "https://github.com/metanorma/sts-ruby"
|
|
17
17
|
spec.license = "BSD-2-Clause"
|
|
18
|
-
spec.required_ruby_version = Gem::Requirement.new(">=
|
|
18
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 3.3.0")
|
|
19
19
|
|
|
20
20
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
21
21
|
spec.metadata["source_code_uri"] = spec.homepage
|
|
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
|
31
31
|
|
|
32
32
|
spec.add_dependency "bigdecimal"
|
|
33
33
|
spec.add_dependency "lutaml-model", "~> 0.8.0"
|
|
34
|
-
spec.add_dependency "mml", "~> 2.
|
|
34
|
+
spec.add_dependency "mml", "~> 2.4.0"
|
|
35
35
|
|
|
36
36
|
# spec.add_dependency "thor"
|
|
37
37
|
spec.metadata["rubygems_mfa_required"] = "true"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sts
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-07-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bigdecimal
|
|
@@ -44,14 +44,14 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 2.
|
|
47
|
+
version: 2.4.0
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 2.
|
|
54
|
+
version: 2.4.0
|
|
55
55
|
description:
|
|
56
56
|
email:
|
|
57
57
|
- open.source@ribose.com
|
|
@@ -108,6 +108,7 @@ files:
|
|
|
108
108
|
- TODO.sts-refactor/11-duplicate-models.md
|
|
109
109
|
- lib/sts.rb
|
|
110
110
|
- lib/sts/iso_sts.rb
|
|
111
|
+
- lib/sts/iso_sts/alt_text.rb
|
|
111
112
|
- lib/sts/iso_sts/annex_type.rb
|
|
112
113
|
- lib/sts/iso_sts/app.rb
|
|
113
114
|
- lib/sts/iso_sts/app_group.rb
|
|
@@ -128,22 +129,30 @@ files:
|
|
|
128
129
|
- lib/sts/iso_sts/def_item.rb
|
|
129
130
|
- lib/sts/iso_sts/def_list.rb
|
|
130
131
|
- lib/sts/iso_sts/disp_formula.rb
|
|
132
|
+
- lib/sts/iso_sts/doc_number.rb
|
|
131
133
|
- lib/sts/iso_sts/doc_ref.rb
|
|
134
|
+
- lib/sts/iso_sts/doc_type.rb
|
|
132
135
|
- lib/sts/iso_sts/document_identification.rb
|
|
133
136
|
- lib/sts/iso_sts/edition.rb
|
|
134
137
|
- lib/sts/iso_sts/ext_link.rb
|
|
135
138
|
- lib/sts/iso_sts/fig.rb
|
|
136
139
|
- lib/sts/iso_sts/fn.rb
|
|
137
140
|
- lib/sts/iso_sts/fn_group.rb
|
|
141
|
+
- lib/sts/iso_sts/fpage.rb
|
|
138
142
|
- lib/sts/iso_sts/front.rb
|
|
139
143
|
- lib/sts/iso_sts/graphic.rb
|
|
144
|
+
- lib/sts/iso_sts/ics.rb
|
|
140
145
|
- lib/sts/iso_sts/inline_formula.rb
|
|
146
|
+
- lib/sts/iso_sts/is_proof.rb
|
|
141
147
|
- lib/sts/iso_sts/iso_meta.rb
|
|
148
|
+
- lib/sts/iso_sts/issue.rb
|
|
142
149
|
- lib/sts/iso_sts/italic.rb
|
|
143
150
|
- lib/sts/iso_sts/label.rb
|
|
144
151
|
- lib/sts/iso_sts/language.rb
|
|
145
152
|
- lib/sts/iso_sts/list.rb
|
|
146
153
|
- lib/sts/iso_sts/list_item.rb
|
|
154
|
+
- lib/sts/iso_sts/long_desc.rb
|
|
155
|
+
- lib/sts/iso_sts/lpage.rb
|
|
147
156
|
- lib/sts/iso_sts/mathml2.rb
|
|
148
157
|
- lib/sts/iso_sts/mathml2/math.rb
|
|
149
158
|
- lib/sts/iso_sts/meta_date.rb
|
|
@@ -153,15 +162,24 @@ files:
|
|
|
153
162
|
- lib/sts/iso_sts/nat_meta.rb
|
|
154
163
|
- lib/sts/iso_sts/non_normative_example.rb
|
|
155
164
|
- lib/sts/iso_sts/non_normative_note.rb
|
|
165
|
+
- lib/sts/iso_sts/originator.rb
|
|
156
166
|
- lib/sts/iso_sts/page_count.rb
|
|
167
|
+
- lib/sts/iso_sts/page_range.rb
|
|
157
168
|
- lib/sts/iso_sts/paragraph.rb
|
|
169
|
+
- lib/sts/iso_sts/part_number.rb
|
|
158
170
|
- lib/sts/iso_sts/permissions.rb
|
|
159
171
|
- lib/sts/iso_sts/preformat.rb
|
|
172
|
+
- lib/sts/iso_sts/proj_id.rb
|
|
173
|
+
- lib/sts/iso_sts/pub_date.rb
|
|
174
|
+
- lib/sts/iso_sts/pub_id.rb
|
|
160
175
|
- lib/sts/iso_sts/ref.rb
|
|
161
176
|
- lib/sts/iso_sts/ref_list.rb
|
|
162
177
|
- lib/sts/iso_sts/reg_meta.rb
|
|
163
178
|
- lib/sts/iso_sts/release_date.rb
|
|
179
|
+
- lib/sts/iso_sts/release_version.rb
|
|
180
|
+
- lib/sts/iso_sts/release_version_id.rb
|
|
164
181
|
- lib/sts/iso_sts/sc.rb
|
|
182
|
+
- lib/sts/iso_sts/sdo.rb
|
|
165
183
|
- lib/sts/iso_sts/sec.rb
|
|
166
184
|
- lib/sts/iso_sts/secretariat.rb
|
|
167
185
|
- lib/sts/iso_sts/standard.rb
|
|
@@ -174,6 +192,9 @@ files:
|
|
|
174
192
|
- lib/sts/iso_sts/styled_content.rb
|
|
175
193
|
- lib/sts/iso_sts/sub.rb
|
|
176
194
|
- lib/sts/iso_sts/sup.rb
|
|
195
|
+
- lib/sts/iso_sts/suppl_number.rb
|
|
196
|
+
- lib/sts/iso_sts/suppl_type.rb
|
|
197
|
+
- lib/sts/iso_sts/suppl_version.rb
|
|
177
198
|
- lib/sts/iso_sts/table.rb
|
|
178
199
|
- lib/sts/iso_sts/table_wrap.rb
|
|
179
200
|
- lib/sts/iso_sts/table_wrap_foot.rb
|
|
@@ -181,6 +202,7 @@ files:
|
|
|
181
202
|
- lib/sts/iso_sts/td.rb
|
|
182
203
|
- lib/sts/iso_sts/term.rb
|
|
183
204
|
- lib/sts/iso_sts/term_sec.rb
|
|
205
|
+
- lib/sts/iso_sts/tex_math.rb
|
|
184
206
|
- lib/sts/iso_sts/tfoot.rb
|
|
185
207
|
- lib/sts/iso_sts/th.rb
|
|
186
208
|
- lib/sts/iso_sts/thead.rb
|
|
@@ -193,8 +215,12 @@ files:
|
|
|
193
215
|
- lib/sts/iso_sts/tr.rb
|
|
194
216
|
- lib/sts/iso_sts/underline.rb
|
|
195
217
|
- lib/sts/iso_sts/uri.rb
|
|
218
|
+
- lib/sts/iso_sts/urn.rb
|
|
219
|
+
- lib/sts/iso_sts/version.rb
|
|
220
|
+
- lib/sts/iso_sts/volume.rb
|
|
221
|
+
- lib/sts/iso_sts/wi_number.rb
|
|
196
222
|
- lib/sts/iso_sts/xref.rb
|
|
197
|
-
- lib/sts/
|
|
223
|
+
- lib/sts/iso_sts/year.rb
|
|
198
224
|
- lib/sts/namespaces.rb
|
|
199
225
|
- lib/sts/niso_sts.rb
|
|
200
226
|
- lib/sts/niso_sts/abstract.rb
|
|
@@ -542,23 +568,11 @@ files:
|
|
|
542
568
|
- lib/sts/tbx_iso_tml/grammatical_number.rb
|
|
543
569
|
- lib/sts/tbx_iso_tml/italic.rb
|
|
544
570
|
- lib/sts/tbx_iso_tml/lang_set.rb
|
|
545
|
-
- lib/sts/tbx_iso_tml/math.rb
|
|
546
|
-
- lib/sts/tbx_iso_tml/mfenced.rb
|
|
547
|
-
- lib/sts/tbx_iso_tml/mfrac.rb
|
|
548
|
-
- lib/sts/tbx_iso_tml/mi.rb
|
|
549
|
-
- lib/sts/tbx_iso_tml/mrow.rb
|
|
550
|
-
- lib/sts/tbx_iso_tml/mspace.rb
|
|
551
|
-
- lib/sts/tbx_iso_tml/mstyle.rb
|
|
552
|
-
- lib/sts/tbx_iso_tml/msub.rb
|
|
553
|
-
- lib/sts/tbx_iso_tml/msup.rb
|
|
554
|
-
- lib/sts/tbx_iso_tml/munder.rb
|
|
555
|
-
- lib/sts/tbx_iso_tml/munderover.rb
|
|
556
571
|
- lib/sts/tbx_iso_tml/normative_authorization.rb
|
|
557
572
|
- lib/sts/tbx_iso_tml/note.rb
|
|
558
573
|
- lib/sts/tbx_iso_tml/part_of_speech.rb
|
|
559
574
|
- lib/sts/tbx_iso_tml/pronunciation.rb
|
|
560
575
|
- lib/sts/tbx_iso_tml/see.rb
|
|
561
|
-
- lib/sts/tbx_iso_tml/semantics.rb
|
|
562
576
|
- lib/sts/tbx_iso_tml/source.rb
|
|
563
577
|
- lib/sts/tbx_iso_tml/subject_field.rb
|
|
564
578
|
- lib/sts/tbx_iso_tml/sup.rb
|
|
@@ -1431,7 +1445,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
1431
1445
|
requirements:
|
|
1432
1446
|
- - ">="
|
|
1433
1447
|
- !ruby/object:Gem::Version
|
|
1434
|
-
version:
|
|
1448
|
+
version: 3.3.0
|
|
1435
1449
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1436
1450
|
requirements:
|
|
1437
1451
|
- - ">="
|
data/lib/sts/mathml.rb
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require "mml"
|
|
4
|
-
|
|
5
|
-
module Sts
|
|
6
|
-
module Mathml
|
|
7
|
-
# Wrapper around Mml::V3::Math for use within Sts document models.
|
|
8
|
-
#
|
|
9
|
-
# Mml::V3::Math is the actual serializable model. This class provides
|
|
10
|
-
# a typed namespace at Sts::Mathml and forwards the small subset of
|
|
11
|
-
# Mml::V3::Math interface used by Sts elements.
|
|
12
|
-
#
|
|
13
|
-
# All Mml element types (mi, mo, mn, mrow, etc.) are used directly
|
|
14
|
-
# from Mml::V3 — only the root <math> wrapper lives here.
|
|
15
|
-
class Math
|
|
16
|
-
# Type alias for callers that prefer the Sts namespace path.
|
|
17
|
-
# Maps directly to Mml::V3::Math with identical serialization.
|
|
18
|
-
Root = Mml::V3::Math
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
data/lib/sts/tbx_iso_tml/math.rb
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sts
|
|
4
|
-
module TbxIsoTml
|
|
5
|
-
class Math < Lutaml::Model::Serializable
|
|
6
|
-
attribute :id, :string
|
|
7
|
-
attribute :content, :string, collection: true
|
|
8
|
-
attribute :display, :string
|
|
9
|
-
attribute :mrow, ::Sts::TbxIsoTml::Mrow
|
|
10
|
-
attribute :msub, ::Sts::TbxIsoTml::Msub, collection: true
|
|
11
|
-
attribute :msup, ::Sts::TbxIsoTml::Msup
|
|
12
|
-
attribute :mn, :string, collection: true
|
|
13
|
-
attribute :mo, :string, collection: true
|
|
14
|
-
attribute :mi, :string
|
|
15
|
-
attribute :mtext, :string
|
|
16
|
-
attribute :semantics, ::Sts::TbxIsoTml::Semantics
|
|
17
|
-
attribute :mstyle, ::Sts::TbxIsoTml::Mstyle, collection: true
|
|
18
|
-
attribute :mfenced, ::Sts::TbxIsoTml::Mfenced, collection: true
|
|
19
|
-
attribute :mspace, ::Sts::TbxIsoTml::Mspace, collection: true
|
|
20
|
-
attribute :mfrac, ::Sts::TbxIsoTml::Mfrac, collection: true
|
|
21
|
-
attribute :munderover, ::Sts::TbxIsoTml::Munderover, collection: true
|
|
22
|
-
|
|
23
|
-
xml do
|
|
24
|
-
element "math"
|
|
25
|
-
mixed_content
|
|
26
|
-
namespace ::Sts::Namespaces::MathmlNamespace
|
|
27
|
-
|
|
28
|
-
map_attribute "id", to: :id
|
|
29
|
-
|
|
30
|
-
map_element "mrow", to: :mrow # , render_nil: true
|
|
31
|
-
map_element "msub", to: :msub # , render_nil: true
|
|
32
|
-
map_element "msup", to: :msup # , render_nil: true
|
|
33
|
-
map_element "semantics", to: :semantics
|
|
34
|
-
map_element "mn", to: :mn
|
|
35
|
-
map_element "mi", to: :mi
|
|
36
|
-
map_element "mtext", to: :mtext
|
|
37
|
-
map_element "mo", to: :mo # , render_nil: true
|
|
38
|
-
map_element "mstyle", to: :mstyle
|
|
39
|
-
map_element "mspace", to: :mspace
|
|
40
|
-
map_element "mfrac", to: :mfrac
|
|
41
|
-
map_element "mfenced", to: :mfenced
|
|
42
|
-
map_element "munderover", to: :munderover
|
|
43
|
-
|
|
44
|
-
map_content to: :content
|
|
45
|
-
map_attribute "display", to: :display
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
end
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sts
|
|
4
|
-
module TbxIsoTml
|
|
5
|
-
class Mfenced < Lutaml::Model::Serializable
|
|
6
|
-
attribute :id, :string
|
|
7
|
-
attribute :separators, :string
|
|
8
|
-
attribute :open, :string
|
|
9
|
-
attribute :close, :string
|
|
10
|
-
attribute :mo, :string, collection: true
|
|
11
|
-
attribute :mn, :string, collection: true
|
|
12
|
-
attribute :mi, :string
|
|
13
|
-
attribute :mtext, :string
|
|
14
|
-
attribute :mspace, ::Sts::TbxIsoTml::Mspace, collection: true
|
|
15
|
-
attribute :msub, ::Sts::TbxIsoTml::Msub, collection: true
|
|
16
|
-
attribute :mstyle, ::Sts::TbxIsoTml::Mstyle, collection: true
|
|
17
|
-
attribute :mfrac, ::Sts::TbxIsoTml::Mfrac, collection: true
|
|
18
|
-
|
|
19
|
-
xml do
|
|
20
|
-
element "mfenced"
|
|
21
|
-
map_attribute "id", to: :id
|
|
22
|
-
mixed_content
|
|
23
|
-
namespace ::Sts::Namespaces::MathmlNamespace
|
|
24
|
-
|
|
25
|
-
map_attribute "separators", to: :separators,
|
|
26
|
-
value_map: { to: { empty: :empty } }
|
|
27
|
-
map_attribute "open", to: :open
|
|
28
|
-
map_attribute "close", to: :close
|
|
29
|
-
|
|
30
|
-
map_element "mo", to: :mo
|
|
31
|
-
map_element "mn", to: :mn
|
|
32
|
-
map_element "mi", to: :mi
|
|
33
|
-
map_element "mspace", to: :mspace
|
|
34
|
-
map_element "msub", to: :msub
|
|
35
|
-
map_element "mstyle", to: :mstyle
|
|
36
|
-
map_element "mfrac", to: :mfrac
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sts
|
|
4
|
-
module TbxIsoTml
|
|
5
|
-
class Mfrac < Lutaml::Model::Serializable
|
|
6
|
-
attribute :id, :string
|
|
7
|
-
attribute :mrow, ::Sts::TbxIsoTml::Mrow, collection: true
|
|
8
|
-
attribute :mstyle, ::Sts::TbxIsoTml::Mstyle, collection: true
|
|
9
|
-
attribute :bevelled, :string
|
|
10
|
-
attribute :linethickness, :string
|
|
11
|
-
attribute :mn, :string, collection: true
|
|
12
|
-
attribute :mtext, :string, collection: true
|
|
13
|
-
|
|
14
|
-
xml do
|
|
15
|
-
element "mfrac"
|
|
16
|
-
map_attribute "id", to: :id
|
|
17
|
-
mixed_content
|
|
18
|
-
namespace ::Sts::Namespaces::MathmlNamespace
|
|
19
|
-
|
|
20
|
-
map_attribute "bevelled", to: :bevelled
|
|
21
|
-
map_attribute "linethickness", to: :linethickness
|
|
22
|
-
|
|
23
|
-
map_element "mrow", to: :mrow
|
|
24
|
-
map_element "mn", to: :mn
|
|
25
|
-
map_element "mtext", to: :mtext
|
|
26
|
-
map_element "mstyle", to: :mstyle
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
data/lib/sts/tbx_iso_tml/mrow.rb
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sts
|
|
4
|
-
module TbxIsoTml
|
|
5
|
-
class Mrow < Lutaml::Model::Serializable
|
|
6
|
-
attribute :id, :string
|
|
7
|
-
attribute :content, :string, collection: true
|
|
8
|
-
attribute :mo, :string, collection: true
|
|
9
|
-
attribute :mi, :string, collection: true
|
|
10
|
-
attribute :mn, :string, collection: true
|
|
11
|
-
attribute :mtext, :string, collection: true
|
|
12
|
-
attribute :mrow, ::Sts::TbxIsoTml::Mrow
|
|
13
|
-
attribute :mfrac, ::Sts::TbxIsoTml::Mfrac, collection: true
|
|
14
|
-
attribute :mstyle, ::Sts::TbxIsoTml::Mstyle, collection: true
|
|
15
|
-
attribute :msub, ::Sts::TbxIsoTml::Msub, collection: true
|
|
16
|
-
attribute :msup, ::Sts::TbxIsoTml::Msup
|
|
17
|
-
attribute :mfenced, ::Sts::TbxIsoTml::Mfenced, collection: true
|
|
18
|
-
attribute :mspace, ::Sts::TbxIsoTml::Mspace, collection: true
|
|
19
|
-
|
|
20
|
-
xml do
|
|
21
|
-
element "mrow"
|
|
22
|
-
map_attribute "id", to: :id
|
|
23
|
-
mixed_content
|
|
24
|
-
namespace ::Sts::Namespaces::MathmlNamespace
|
|
25
|
-
|
|
26
|
-
map_element "mo", to: :mo
|
|
27
|
-
map_element "mi", to: :mi
|
|
28
|
-
map_element "mn", to: :mn
|
|
29
|
-
map_element "mtext", to: :mtext
|
|
30
|
-
map_element "mrow", to: :mrow
|
|
31
|
-
map_element "mfrac", to: :mfrac
|
|
32
|
-
map_element "mstyle", to: :mstyle
|
|
33
|
-
map_element "msub", to: :msub
|
|
34
|
-
map_element "msup", to: :msup
|
|
35
|
-
map_element "mspace", to: :mspace
|
|
36
|
-
map_element "mfenced", to: :mfenced
|
|
37
|
-
map_content to: :content
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sts
|
|
4
|
-
module TbxIsoTml
|
|
5
|
-
class Mspace < Lutaml::Model::Serializable
|
|
6
|
-
attribute :id, :string
|
|
7
|
-
attribute :width, :string
|
|
8
|
-
|
|
9
|
-
xml do
|
|
10
|
-
element "mspace"
|
|
11
|
-
namespace ::Sts::Namespaces::MathmlNamespace
|
|
12
|
-
|
|
13
|
-
map_attribute "id", to: :id
|
|
14
|
-
map_attribute "width", to: :width
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sts
|
|
4
|
-
module TbxIsoTml
|
|
5
|
-
class Mstyle < Lutaml::Model::Serializable
|
|
6
|
-
attribute :id, :string
|
|
7
|
-
attribute :mathvariant, :string
|
|
8
|
-
attribute :mstyle, ::Sts::TbxIsoTml::Mstyle
|
|
9
|
-
attribute :mspace, ::Sts::TbxIsoTml::Mspace, collection: true
|
|
10
|
-
attribute :mi, :string, collection: true
|
|
11
|
-
attribute :mn, :string, collection: true
|
|
12
|
-
attribute :mo, :string, collection: true
|
|
13
|
-
|
|
14
|
-
xml do
|
|
15
|
-
element "mstyle"
|
|
16
|
-
map_attribute "id", to: :id
|
|
17
|
-
mixed_content
|
|
18
|
-
namespace ::Sts::Namespaces::MathmlNamespace
|
|
19
|
-
|
|
20
|
-
map_attribute "mathvariant", to: :mathvariant
|
|
21
|
-
map_element "mi", to: :mi
|
|
22
|
-
map_element "mn", to: :mn
|
|
23
|
-
map_element "mo", to: :mo
|
|
24
|
-
map_element "mstyle", to: :mstyle
|
|
25
|
-
map_element "mspace", to: :mspace
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
data/lib/sts/tbx_iso_tml/msub.rb
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sts
|
|
4
|
-
module TbxIsoTml
|
|
5
|
-
class Msub < Lutaml::Model::Serializable
|
|
6
|
-
attribute :id, :string
|
|
7
|
-
attribute :mstyle, ::Sts::TbxIsoTml::Mstyle, collection: true
|
|
8
|
-
attribute :mrow, ::Sts::TbxIsoTml::Mrow
|
|
9
|
-
attribute :mspace, ::Sts::TbxIsoTml::Mspace
|
|
10
|
-
attribute :mo, :string, collection: true
|
|
11
|
-
attribute :mi, :string, collection: true
|
|
12
|
-
attribute :mn, :string, collection: true
|
|
13
|
-
attribute :mtext, :string, collection: true
|
|
14
|
-
|
|
15
|
-
xml do
|
|
16
|
-
element "msub"
|
|
17
|
-
map_attribute "id", to: :id
|
|
18
|
-
mixed_content
|
|
19
|
-
namespace ::Sts::Namespaces::MathmlNamespace
|
|
20
|
-
|
|
21
|
-
map_element "mstyle", to: :mstyle
|
|
22
|
-
map_element "mo", to: :mo
|
|
23
|
-
map_element "mi", to: :mi
|
|
24
|
-
map_element "mn", to: :mn
|
|
25
|
-
map_element "mrow", to: :mrow
|
|
26
|
-
map_element "mtext", to: :mtext
|
|
27
|
-
map_element "mspace", to: :mspace
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|