sts 0.6.6 → 0.6.7

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.
@@ -0,0 +1,96 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class LicenseP < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :specific_use, :string
8
+ attribute :xml_lang, :string
9
+ attribute :content_type, :string
10
+ attribute :content, :string, collection: true
11
+ attribute :email, ::Sts::IsoSts::Email, collection: true
12
+ attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
13
+ attribute :uri, ::Sts::IsoSts::Uri, collection: true
14
+ attribute :mixed_citation, ::Sts::IsoSts::MixedCitation, collection: true
15
+ attribute :std, ::Sts::IsoSts::Std, collection: true
16
+ attribute :bold, ::Sts::IsoSts::Bold, collection: true
17
+ attribute :italic, ::Sts::IsoSts::Italic, collection: true
18
+ attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
19
+ attribute :num, ::Sts::IsoSts::Num, collection: true
20
+ attribute :sc, ::Sts::IsoSts::Sc, collection: true
21
+ attribute :strike, ::Sts::IsoSts::Strike, collection: true
22
+ attribute :underline, ::Sts::IsoSts::Underline, collection: true
23
+ attribute :inline_graphic, ::Sts::IsoSts::InlineGraphic, collection: true
24
+ attribute :inline_formula, ::Sts::IsoSts::InlineFormula, collection: true
25
+ attribute :abbrev, ::Sts::IsoSts::Abbrev, collection: true
26
+ attribute :milestone_end, ::Sts::IsoSts::MilestoneEnd, collection: true
27
+ attribute :milestone_start, ::Sts::IsoSts::MilestoneStart,
28
+ collection: true
29
+ attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
30
+ attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
31
+ attribute :list, ::Sts::IsoSts::List, collection: true
32
+ attribute :def_list, ::Sts::IsoSts::DefList, collection: true
33
+ attribute :non_normative_note, ::Sts::IsoSts::NonNormativeNote,
34
+ collection: true
35
+ attribute :non_normative_example, ::Sts::IsoSts::NonNormativeExample,
36
+ collection: true
37
+ attribute :preformat, ::Sts::IsoSts::Preformat, collection: true
38
+ attribute :fig, ::Sts::IsoSts::Fig, collection: true
39
+ attribute :graphic, ::Sts::IsoSts::Graphic, collection: true
40
+ attribute :disp_formula, ::Sts::IsoSts::DispFormula, collection: true
41
+ attribute :disp_quote, ::Sts::IsoSts::DispQuote, collection: true
42
+ attribute :boxed_text, ::Sts::IsoSts::BoxedText, collection: true
43
+ attribute :fn, ::Sts::IsoSts::Fn, collection: true
44
+ attribute :xref, ::Sts::IsoSts::Xref, collection: true
45
+ attribute :std_ref, ::Sts::IsoSts::StdRef, collection: true
46
+ attribute :sub, ::Sts::IsoSts::Sub, collection: true
47
+ attribute :sup, ::Sts::IsoSts::Sup, collection: true
48
+
49
+ xml do # rubocop:disable Metrics/BlockLength
50
+ element "license-p"
51
+ mixed_content
52
+
53
+ map_attribute "id", to: :id
54
+ map_attribute "specific-use", to: :specific_use
55
+ map_attribute "xml:lang", to: :xml_lang
56
+ map_attribute "content-type", to: :content_type
57
+
58
+ map_content to: :content
59
+ map_element "email", to: :email
60
+ map_element "ext-link", to: :ext_link
61
+ map_element "uri", to: :uri
62
+ map_element "mixed-citation", to: :mixed_citation
63
+ map_element "std", to: :std
64
+ map_element "bold", to: :bold
65
+ map_element "italic", to: :italic
66
+ map_element "monospace", to: :monospace
67
+ map_element "num", to: :num
68
+ map_element "sc", to: :sc
69
+ map_element "strike", to: :strike
70
+ map_element "underline", to: :underline
71
+ map_element "inline-graphic", to: :inline_graphic
72
+ map_element "inline-formula", to: :inline_formula
73
+ map_element "abbrev", to: :abbrev
74
+ map_element "milestone-end", to: :milestone_end
75
+ map_element "milestone-start", to: :milestone_start
76
+ map_element "named-content", to: :named_content
77
+ map_element "styled-content", to: :styled_content
78
+ map_element "list", to: :list
79
+ map_element "def-list", to: :def_list
80
+ map_element "non-normative-note", to: :non_normative_note
81
+ map_element "non-normative-example", to: :non_normative_example
82
+ map_element "preformat", to: :preformat
83
+ map_element "fig", to: :fig
84
+ map_element "graphic", to: :graphic
85
+ map_element "disp-formula", to: :disp_formula
86
+ map_element "disp-quote", to: :disp_quote
87
+ map_element "boxed-text", to: :boxed_text
88
+ map_element "fn", to: :fn
89
+ map_element "xref", to: :xref
90
+ map_element "std-ref", to: :std_ref
91
+ map_element "sub", to: :sub
92
+ map_element "sup", to: :sup
93
+ end
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class MetaName < Lutaml::Model::Serializable
6
+ attribute :content, :string
7
+
8
+ xml do
9
+ element "meta-name"
10
+ map_content to: :content
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class MetaValue < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :specific_use, :string
8
+ attribute :xml_lang, :string
9
+ attribute :content, :string, collection: true
10
+ attribute :bold, ::Sts::IsoSts::Bold, collection: true
11
+ attribute :italic, ::Sts::IsoSts::Italic, collection: true
12
+ attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
13
+ attribute :num, ::Sts::IsoSts::Num, collection: true
14
+ attribute :sc, ::Sts::IsoSts::Sc, collection: true
15
+ attribute :strike, ::Sts::IsoSts::Strike, collection: true
16
+ attribute :underline, ::Sts::IsoSts::Underline, collection: true
17
+ attribute :sub, ::Sts::IsoSts::Sub, collection: true
18
+ attribute :sup, ::Sts::IsoSts::Sup, collection: true
19
+
20
+ xml do
21
+ element "meta-value"
22
+ mixed_content
23
+
24
+ map_attribute "id", to: :id
25
+ map_attribute "specific-use", to: :specific_use
26
+ map_attribute "xml:lang", to: :xml_lang
27
+
28
+ map_content to: :content
29
+ map_element "bold", to: :bold
30
+ map_element "italic", to: :italic
31
+ map_element "monospace", to: :monospace
32
+ map_element "num", to: :num
33
+ map_element "sc", to: :sc
34
+ map_element "strike", to: :strike
35
+ map_element "underline", to: :underline
36
+ map_element "sub", to: :sub
37
+ map_element "sup", to: :sup
38
+ end
39
+ end
40
+ end
41
+ end
@@ -20,7 +20,7 @@ module Sts
20
20
  attribute :permissions, ::Sts::IsoSts::Permissions, collection: true
21
21
  attribute :std_xref, ::Sts::IsoSts::StandardCrossReference,
22
22
  collection: true
23
- attribute :custom_meta_group, ::Sts::NisoSts::CustomMetaGroup,
23
+ attribute :custom_meta_group, ::Sts::IsoSts::CustomMetaGroup,
24
24
  collection: true
25
25
  attribute :meta_date, ::Sts::IsoSts::MetaDate, collection: true
26
26
  attribute :pub_date, ::Sts::IsoSts::PubDate
@@ -9,7 +9,7 @@ module Sts
9
9
  attribute :copyright_year, ::Sts::IsoSts::CopyrightYear, collection: true
10
10
  attribute :copyright_holder, ::Sts::IsoSts::CopyrightHolder,
11
11
  collection: true
12
- attribute :license, ::Sts::NisoSts::License, collection: true
12
+ attribute :license, ::Sts::IsoSts::License, collection: true
13
13
 
14
14
  xml do
15
15
  element "permissions"
@@ -20,7 +20,7 @@ module Sts
20
20
  attribute :permissions, ::Sts::IsoSts::Permissions, collection: true
21
21
  attribute :std_xref, ::Sts::IsoSts::StandardCrossReference,
22
22
  collection: true
23
- attribute :custom_meta_group, ::Sts::NisoSts::CustomMetaGroup,
23
+ attribute :custom_meta_group, ::Sts::IsoSts::CustomMetaGroup,
24
24
  collection: true
25
25
  attribute :meta_date, ::Sts::IsoSts::MetaDate, collection: true
26
26
  attribute :pub_date, ::Sts::IsoSts::PubDate
@@ -0,0 +1,74 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class TermHead < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :content_type, :string
8
+ attribute :specific_use, :string
9
+ attribute :xml_lang, :string
10
+ attribute :content, :string, collection: true
11
+ attribute :email, ::Sts::IsoSts::Email, collection: true
12
+ attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
13
+ attribute :uri, ::Sts::IsoSts::Uri, collection: true
14
+ attribute :mixed_citation, ::Sts::IsoSts::MixedCitation, collection: true
15
+ attribute :std, ::Sts::IsoSts::Std, collection: true
16
+ attribute :bold, ::Sts::IsoSts::Bold, collection: true
17
+ attribute :italic, ::Sts::IsoSts::Italic, collection: true
18
+ attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
19
+ attribute :num, ::Sts::IsoSts::Num, collection: true
20
+ attribute :sc, ::Sts::IsoSts::Sc, collection: true
21
+ attribute :strike, ::Sts::IsoSts::Strike, collection: true
22
+ attribute :underline, ::Sts::IsoSts::Underline, collection: true
23
+ attribute :inline_graphic, ::Sts::IsoSts::InlineGraphic, collection: true
24
+ attribute :inline_formula, ::Sts::IsoSts::InlineFormula, collection: true
25
+ attribute :abbrev, ::Sts::IsoSts::Abbrev, collection: true
26
+ attribute :milestone_end, ::Sts::IsoSts::MilestoneEnd, collection: true
27
+ attribute :milestone_start, ::Sts::IsoSts::MilestoneStart,
28
+ collection: true
29
+ attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
30
+ attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
31
+ attribute :fn, ::Sts::IsoSts::Fn, collection: true
32
+ attribute :xref, ::Sts::IsoSts::Xref, collection: true
33
+ attribute :std_ref, ::Sts::IsoSts::StdRef, collection: true
34
+ attribute :sub, ::Sts::IsoSts::Sub, collection: true
35
+ attribute :sup, ::Sts::IsoSts::Sup, collection: true
36
+
37
+ xml do # rubocop:disable Metrics/BlockLength
38
+ element "term-head"
39
+ mixed_content
40
+
41
+ map_attribute "id", to: :id
42
+ map_attribute "content-type", to: :content_type
43
+ map_attribute "specific-use", to: :specific_use
44
+ map_attribute "xml:lang", to: :xml_lang
45
+
46
+ map_content to: :content
47
+ map_element "email", to: :email
48
+ map_element "ext-link", to: :ext_link
49
+ map_element "uri", to: :uri
50
+ map_element "mixed-citation", to: :mixed_citation
51
+ map_element "std", to: :std
52
+ map_element "bold", to: :bold
53
+ map_element "italic", to: :italic
54
+ map_element "monospace", to: :monospace
55
+ map_element "num", to: :num
56
+ map_element "sc", to: :sc
57
+ map_element "strike", to: :strike
58
+ map_element "underline", to: :underline
59
+ map_element "inline-graphic", to: :inline_graphic
60
+ map_element "inline-formula", to: :inline_formula
61
+ map_element "abbrev", to: :abbrev
62
+ map_element "milestone-end", to: :milestone_end
63
+ map_element "milestone-start", to: :milestone_start
64
+ map_element "named-content", to: :named_content
65
+ map_element "styled-content", to: :styled_content
66
+ map_element "fn", to: :fn
67
+ map_element "xref", to: :xref
68
+ map_element "std-ref", to: :std_ref
69
+ map_element "sub", to: :sub
70
+ map_element "sup", to: :sup
71
+ end
72
+ end
73
+ end
74
+ end
data/lib/sts/iso_sts.rb CHANGED
@@ -103,11 +103,17 @@ module Sts
103
103
  autoload :Annotation, "#{__dir__}/iso_sts/annotation"
104
104
  autoload :Attrib, "#{__dir__}/iso_sts/attrib"
105
105
  autoload :Country, "#{__dir__}/iso_sts/country"
106
+ autoload :CustomMeta, "#{__dir__}/iso_sts/custom_meta"
107
+ autoload :CustomMetaGroup, "#{__dir__}/iso_sts/custom_meta_group"
106
108
  autoload :Day, "#{__dir__}/iso_sts/day"
107
109
  autoload :Etal, "#{__dir__}/iso_sts/etal"
108
110
  autoload :Fax, "#{__dir__}/iso_sts/fax"
109
111
  autoload :InlineGraphic, "#{__dir__}/iso_sts/inline_graphic"
110
112
  autoload :Institution, "#{__dir__}/iso_sts/institution"
113
+ autoload :License, "#{__dir__}/iso_sts/license"
114
+ autoload :LicenseP, "#{__dir__}/iso_sts/license_p"
115
+ autoload :MetaName, "#{__dir__}/iso_sts/meta_name"
116
+ autoload :MetaValue, "#{__dir__}/iso_sts/meta_value"
111
117
  autoload :MilestoneEnd, "#{__dir__}/iso_sts/milestone_end"
112
118
  autoload :MilestoneStart, "#{__dir__}/iso_sts/milestone_start"
113
119
  autoload :Month, "#{__dir__}/iso_sts/month"
@@ -115,6 +121,7 @@ module Sts
115
121
  autoload :ObjectId, "#{__dir__}/iso_sts/object_id"
116
122
  autoload :Phone, "#{__dir__}/iso_sts/phone"
117
123
  autoload :Season, "#{__dir__}/iso_sts/season"
124
+ autoload :TermHead, "#{__dir__}/iso_sts/term_head"
118
125
 
119
126
  # List elements
120
127
  autoload :List, "#{__dir__}/iso_sts/list"
data/lib/sts/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sts
4
- VERSION = "0.6.6"
4
+ VERSION = "0.6.7"
5
5
  end
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.6.6
4
+ version: 0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-07-26 00:00:00.000000000 Z
11
+ date: 2026-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigdecimal
@@ -106,6 +106,18 @@ files:
106
106
  - TODO.finalize/09-lutaml-model-pr.md
107
107
  - TODO.finalize/10-audit-other-duplicates.md
108
108
  - TODO.finalize/11-strengthen-anti-patterns-spec.md
109
+ - TODO.roadmap/00-overview.md
110
+ - TODO.roadmap/01-lutaml-model-namespace-scope-uri-matching.md
111
+ - TODO.roadmap/02-lutaml-model-element-builder-dispatch.md
112
+ - TODO.roadmap/03-issue-40-child-bearing-roots.md
113
+ - TODO.roadmap/04-issue-40-recursive-roots.md
114
+ - TODO.roadmap/05-content-mathml-unification.md
115
+ - TODO.roadmap/06-mathml-namespace-deduplication.md
116
+ - TODO.roadmap/07-tbxisotml-misclassification-audit.md
117
+ - TODO.roadmap/08-register-versioning.md
118
+ - TODO.roadmap/09-test-coverage-gaps.md
119
+ - TODO.roadmap/10-iso-sts-common-attributes-module.md
120
+ - TODO.roadmap/11-docs-and-readme-refresh.md
109
121
  - TODO.sts-refactor/00-overview.md
110
122
  - TODO.sts-refactor/01-mathml-delegation.md
111
123
  - TODO.sts-refactor/02-type-resolution.md
@@ -142,6 +154,8 @@ files:
142
154
  - lib/sts/iso_sts/copyright_statement.rb
143
155
  - lib/sts/iso_sts/copyright_year.rb
144
156
  - lib/sts/iso_sts/country.rb
157
+ - lib/sts/iso_sts/custom_meta.rb
158
+ - lib/sts/iso_sts/custom_meta_group.rb
145
159
  - lib/sts/iso_sts/day.rb
146
160
  - lib/sts/iso_sts/def.rb
147
161
  - lib/sts/iso_sts/def_item.rb
@@ -173,11 +187,15 @@ files:
173
187
  - lib/sts/iso_sts/italic.rb
174
188
  - lib/sts/iso_sts/label.rb
175
189
  - lib/sts/iso_sts/language.rb
190
+ - lib/sts/iso_sts/license.rb
191
+ - lib/sts/iso_sts/license_p.rb
176
192
  - lib/sts/iso_sts/list.rb
177
193
  - lib/sts/iso_sts/list_item.rb
178
194
  - lib/sts/iso_sts/long_desc.rb
179
195
  - lib/sts/iso_sts/lpage.rb
180
196
  - lib/sts/iso_sts/meta_date.rb
197
+ - lib/sts/iso_sts/meta_name.rb
198
+ - lib/sts/iso_sts/meta_value.rb
181
199
  - lib/sts/iso_sts/milestone_end.rb
182
200
  - lib/sts/iso_sts/milestone_start.rb
183
201
  - lib/sts/iso_sts/mixed_citation.rb
@@ -233,6 +251,7 @@ files:
233
251
  - lib/sts/iso_sts/tbody.rb
234
252
  - lib/sts/iso_sts/td.rb
235
253
  - lib/sts/iso_sts/term.rb
254
+ - lib/sts/iso_sts/term_head.rb
236
255
  - lib/sts/iso_sts/term_sec.rb
237
256
  - lib/sts/iso_sts/tex_math.rb
238
257
  - lib/sts/iso_sts/tfoot.rb