sts 0.6.10 → 0.6.12

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 (138) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +5 -3
  3. data/.github/workflows/release.yml +6 -10
  4. data/Gemfile +1 -0
  5. data/README.adoc +42 -0
  6. data/TODO.sts-refactor/00-overview.md +11 -19
  7. data/TODO.sts-refactor/03-namespace-coupling.md +40 -39
  8. data/TODO.sts-refactor/08-isoiec-profile.md +4 -4
  9. data/TODO.sts-refactor/10-test-coverage.md +2 -1
  10. data/lib/sts/iso_sts/addr_line.rb +77 -0
  11. data/lib/sts/iso_sts/address.rb +40 -0
  12. data/lib/sts/iso_sts/aff.rb +87 -0
  13. data/lib/sts/iso_sts/aff_alternatives.rb +18 -0
  14. data/lib/sts/iso_sts/alternatives.rb +45 -0
  15. data/lib/sts/iso_sts/anonymous.rb +19 -0
  16. data/lib/sts/iso_sts/article_title.rb +92 -0
  17. data/lib/sts/iso_sts/attrib.rb +30 -1
  18. data/lib/sts/iso_sts/author_comment.rb +32 -0
  19. data/lib/sts/iso_sts/award_id.rb +69 -0
  20. data/lib/sts/iso_sts/back.rb +0 -2
  21. data/lib/sts/iso_sts/bio.rb +111 -0
  22. data/lib/sts/iso_sts/body.rb +0 -2
  23. data/lib/sts/iso_sts/boxed_text.rb +51 -13
  24. data/lib/sts/iso_sts/chapter_title.rb +56 -0
  25. data/lib/sts/iso_sts/chem_struct.rb +102 -0
  26. data/lib/sts/iso_sts/chem_struct_wrap.rb +60 -0
  27. data/lib/sts/iso_sts/collab.rb +118 -0
  28. data/lib/sts/iso_sts/comment.rb +94 -0
  29. data/lib/sts/iso_sts/conf_date.rb +24 -0
  30. data/lib/sts/iso_sts/conf_loc.rb +24 -0
  31. data/lib/sts/iso_sts/conf_name.rb +24 -0
  32. data/lib/sts/iso_sts/conf_sponsor.rb +24 -0
  33. data/lib/sts/iso_sts/content_language.rb +0 -4
  34. data/lib/sts/iso_sts/contrib.rb +74 -0
  35. data/lib/sts/iso_sts/contrib_group.rb +45 -0
  36. data/lib/sts/iso_sts/custom_meta.rb +0 -1
  37. data/lib/sts/iso_sts/custom_meta_group.rb +2 -0
  38. data/lib/sts/iso_sts/date.rb +28 -0
  39. data/lib/sts/iso_sts/date_in_citation.rb +32 -0
  40. data/lib/sts/iso_sts/degrees.rb +24 -0
  41. data/lib/sts/iso_sts/disp_formula_group.rb +43 -0
  42. data/lib/sts/iso_sts/disp_quote.rb +50 -12
  43. data/lib/sts/iso_sts/element_citation.rb +203 -0
  44. data/lib/sts/iso_sts/elocation_id.rb +24 -0
  45. data/lib/sts/iso_sts/fig_group.rb +50 -0
  46. data/lib/sts/iso_sts/funding_source.rb +85 -0
  47. data/lib/sts/iso_sts/given_names.rb +20 -0
  48. data/lib/sts/iso_sts/glossary.rb +91 -0
  49. data/lib/sts/iso_sts/glyph_data.rb +32 -0
  50. data/lib/sts/iso_sts/glyph_ref.rb +17 -0
  51. data/lib/sts/iso_sts/gov.rb +52 -0
  52. data/lib/sts/iso_sts/graphic.rb +0 -2
  53. data/lib/sts/iso_sts/inline_supplementary_material.rb +78 -0
  54. data/lib/sts/iso_sts/isbn.rb +22 -0
  55. data/lib/sts/iso_sts/issn.rb +22 -0
  56. data/lib/sts/iso_sts/issue_id.rb +26 -0
  57. data/lib/sts/iso_sts/issue_part.rb +24 -0
  58. data/lib/sts/iso_sts/issue_title.rb +24 -0
  59. data/lib/sts/iso_sts/journal_id.rb +24 -0
  60. data/lib/sts/iso_sts/language.rb +0 -4
  61. data/lib/sts/iso_sts/license.rb +2 -1
  62. data/lib/sts/iso_sts/license_p.rb +90 -29
  63. data/lib/sts/iso_sts/media.rb +64 -0
  64. data/lib/sts/iso_sts/meta_name.rb +3 -0
  65. data/lib/sts/iso_sts/meta_value.rb +53 -6
  66. data/lib/sts/iso_sts/mixed_citation.rb +9 -9
  67. data/lib/sts/iso_sts/monospace.rb +2 -0
  68. data/lib/sts/iso_sts/name.rb +32 -0
  69. data/lib/sts/iso_sts/name_alternatives.rb +20 -0
  70. data/lib/sts/iso_sts/on_behalf_of.rb +50 -0
  71. data/lib/sts/iso_sts/open_access.rb +28 -0
  72. data/lib/sts/iso_sts/overline.rb +99 -0
  73. data/lib/sts/iso_sts/part_title.rb +56 -0
  74. data/lib/sts/iso_sts/patent.rb +26 -0
  75. data/lib/sts/iso_sts/person_group.rb +44 -0
  76. data/lib/sts/iso_sts/prefix.rb +24 -0
  77. data/lib/sts/iso_sts/price.rb +46 -0
  78. data/lib/sts/iso_sts/private_char.rb +28 -0
  79. data/lib/sts/iso_sts/ref.rb +8 -5
  80. data/lib/sts/iso_sts/related_article.rb +191 -0
  81. data/lib/sts/iso_sts/related_object.rb +182 -0
  82. data/lib/sts/iso_sts/role.rb +52 -0
  83. data/lib/sts/iso_sts/roman.rb +99 -0
  84. data/lib/sts/iso_sts/sans_serif.rb +99 -0
  85. data/lib/sts/iso_sts/sc.rb +2 -0
  86. data/lib/sts/iso_sts/series.rb +52 -0
  87. data/lib/sts/iso_sts/size.rb +24 -0
  88. data/lib/sts/iso_sts/source.rb +58 -0
  89. data/lib/sts/iso_sts/speaker.rb +42 -0
  90. data/lib/sts/iso_sts/speech.rb +34 -0
  91. data/lib/sts/iso_sts/standard_ref.rb +2 -0
  92. data/lib/sts/iso_sts/statement.rb +40 -0
  93. data/lib/sts/iso_sts/strike.rb +2 -0
  94. data/lib/sts/iso_sts/string_name.rb +36 -0
  95. data/lib/sts/iso_sts/subtitle.rb +96 -0
  96. data/lib/sts/iso_sts/suffix.rb +24 -0
  97. data/lib/sts/iso_sts/supplement.rb +73 -0
  98. data/lib/sts/iso_sts/supplementary_material.rb +108 -0
  99. data/lib/sts/iso_sts/surname.rb +20 -0
  100. data/lib/sts/iso_sts/table_wrap_group.rb +44 -0
  101. data/lib/sts/iso_sts/target.rb +52 -0
  102. data/lib/sts/iso_sts/term_display.rb +81 -0
  103. data/lib/sts/iso_sts/term_head.rb +27 -13
  104. data/lib/sts/iso_sts/term_sec.rb +1 -1
  105. data/lib/sts/iso_sts/textual_form.rb +56 -0
  106. data/lib/sts/iso_sts/trans_source.rb +58 -0
  107. data/lib/sts/iso_sts/trans_title.rb +96 -0
  108. data/lib/sts/iso_sts/underline.rb +2 -0
  109. data/lib/sts/iso_sts/uri.rb +2 -0
  110. data/lib/sts/iso_sts/verse_group.rb +38 -0
  111. data/lib/sts/iso_sts/verse_line.rb +69 -0
  112. data/lib/sts/iso_sts/volume_id.rb +26 -0
  113. data/lib/sts/iso_sts/volume_series.rb +24 -0
  114. data/lib/sts/iso_sts.rb +94 -9
  115. data/lib/sts/niso_sts/element_citation.rb +1 -2
  116. data/lib/sts/niso_sts/metadata_iso.rb +2 -1
  117. data/lib/sts/niso_sts/mixed_citation.rb +1 -2
  118. data/lib/sts/niso_sts/nat_meta.rb +4 -2
  119. data/lib/sts/niso_sts/nlm_citation.rb +1 -2
  120. data/lib/sts/niso_sts/preformat.rb +16 -0
  121. data/lib/sts/niso_sts/reg_meta.rb +4 -2
  122. data/lib/sts/niso_sts/section.rb +1 -2
  123. data/lib/sts/niso_sts/sup.rb +14 -0
  124. data/lib/sts/niso_sts/term.rb +15 -2
  125. data/lib/sts/niso_sts/title.rb +2 -0
  126. data/lib/sts/profiles/iso_iec/constraints.rb +14 -11
  127. data/lib/sts/profiles/iso_iec/id_scheme.rb +64 -0
  128. data/lib/sts/profiles/iso_iec/validator.rb +25 -0
  129. data/lib/sts/profiles/iso_iec.rb +1 -0
  130. data/lib/sts/profiles.rb +26 -0
  131. data/lib/sts/tbx_iso_tml/bold.rb +6 -0
  132. data/lib/sts/tbx_iso_tml/definition.rb +4 -0
  133. data/lib/sts/tbx_iso_tml/example.rb +14 -0
  134. data/lib/sts/tbx_iso_tml/italic.rb +6 -0
  135. data/lib/sts/tbx_iso_tml/note.rb +10 -0
  136. data/lib/sts/version.rb +1 -1
  137. data/lib/sts.rb +4 -0
  138. metadata +83 -2
@@ -4,35 +4,82 @@ module Sts
4
4
  module IsoSts
5
5
  class MetaValue < Lutaml::Model::Serializable
6
6
  attribute :id, :string
7
- attribute :specific_use, :string
8
- attribute :xml_lang, :string
9
7
  attribute :content, :string, collection: true
8
+ attribute :email, ::Sts::IsoSts::Email, collection: true
9
+ attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
10
+ attribute :uri, ::Sts::IsoSts::Uri, collection: true
11
+ attribute :inline_supplementary_material, ::Sts::IsoSts::InlineSupplementaryMaterial,
12
+ collection: true
13
+ attribute :related_article, ::Sts::IsoSts::RelatedArticle,
14
+ collection: true
15
+ attribute :related_object, ::Sts::IsoSts::RelatedObject, collection: true
10
16
  attribute :bold, ::Sts::IsoSts::Bold, collection: true
11
17
  attribute :italic, ::Sts::IsoSts::Italic, collection: true
12
18
  attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
13
19
  attribute :num, ::Sts::IsoSts::Num, collection: true
20
+ attribute :overline, ::Sts::IsoSts::Overline, collection: true
21
+ attribute :roman, ::Sts::IsoSts::Roman, collection: true
22
+ attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
14
23
  attribute :sc, ::Sts::IsoSts::Sc, collection: true
15
24
  attribute :strike, ::Sts::IsoSts::Strike, collection: true
16
25
  attribute :underline, ::Sts::IsoSts::Underline, collection: true
26
+ attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
27
+ attribute :inline_graphic, ::Sts::IsoSts::InlineGraphic, collection: true
28
+ attribute :private_char, ::Sts::IsoSts::PrivateChar, collection: true
29
+ attribute :chem_struct, ::Sts::IsoSts::ChemStruct, collection: true
30
+ attribute :inline_formula, ::Sts::IsoSts::InlineFormula, collection: true
31
+ attribute :math, ::Mml::V2::Math, collection: true
32
+ attribute :abbrev, ::Sts::IsoSts::Abbrev, collection: true
33
+ attribute :milestone_end, ::Sts::IsoSts::MilestoneEnd, collection: true
34
+ attribute :milestone_start, ::Sts::IsoSts::MilestoneStart,
35
+ collection: true
36
+ attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
37
+ attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
38
+ attribute :fn, ::Sts::IsoSts::Fn, collection: true
39
+ attribute :target, ::Sts::IsoSts::Target, collection: true
40
+ attribute :entailed_term, ::Sts::TbxIsoTml::EntailedTerm, collection: true
41
+ attribute :xref, ::Sts::IsoSts::Xref, collection: true
17
42
  attribute :sub, ::Sts::IsoSts::Sub, collection: true
18
43
  attribute :sup, ::Sts::IsoSts::Sup, collection: true
19
44
 
20
- xml do
45
+ xml do # rubocop:disable Metrics/BlockLength
21
46
  element "meta-value"
22
47
  mixed_content
23
48
 
24
49
  map_attribute "id", to: :id
25
- map_attribute "specific-use", to: :specific_use
26
- map_attribute "xml:lang", to: :xml_lang
27
-
28
50
  map_content to: :content
51
+ map_element "email", to: :email
52
+ map_element "ext-link", to: :ext_link
53
+ map_element "uri", to: :uri
54
+ map_element "inline-supplementary-material",
55
+ to: :inline_supplementary_material
56
+ map_element "related-article", to: :related_article
57
+ map_element "related-object", to: :related_object
29
58
  map_element "bold", to: :bold
30
59
  map_element "italic", to: :italic
31
60
  map_element "monospace", to: :monospace
32
61
  map_element "num", to: :num
62
+ map_element "overline", to: :overline
63
+ map_element "roman", to: :roman
64
+ map_element "sans-serif", to: :sans_serif
33
65
  map_element "sc", to: :sc
34
66
  map_element "strike", to: :strike
35
67
  map_element "underline", to: :underline
68
+ map_element "alternatives", to: :alternatives
69
+ map_element "inline-graphic", to: :inline_graphic
70
+ map_element "private-char", to: :private_char
71
+ map_element "chem-struct", to: :chem_struct
72
+ map_element "inline-formula", to: :inline_formula
73
+ map_element "math", to: :math
74
+ map_element "abbrev", to: :abbrev
75
+ map_element "milestone-end", to: :milestone_end
76
+ map_element "milestone-start", to: :milestone_start
77
+ map_element "named-content", to: :named_content
78
+ map_element "styled-content", to: :styled_content
79
+ map_element "fn", to: :fn
80
+ map_element "target", to: :target
81
+ map_element "entailedTerm", to: :entailed_term
82
+ map_element "xref", to: :xref
36
83
  map_element "sub", to: :sub
37
84
  map_element "sup", to: :sup
38
85
  end
@@ -28,16 +28,16 @@ module Sts
28
28
  attribute :fn, ::Sts::IsoSts::Fn, collection: true
29
29
  attribute :xref, ::Sts::TbxIsoTml::Xref, collection: true
30
30
  attribute :break, ::Sts::IsoSts::Break, collection: true
31
- attribute :person_group, ::Sts::NisoSts::PersonGroup, collection: true
32
- attribute :collab, ::Sts::NisoSts::Collab, collection: true
31
+ attribute :person_group, ::Sts::IsoSts::PersonGroup, collection: true
32
+ attribute :collab, ::Sts::IsoSts::Collab, collection: true
33
33
  attribute :year, ::Sts::IsoSts::Year, collection: true
34
- attribute :source, ::Sts::NisoSts::Source
35
- attribute :article_title, ::Sts::NisoSts::ArticleTitle
36
- attribute :volume, ::Sts::IsoSts::Volume
37
- attribute :issue, ::Sts::IsoSts::Issue
38
- attribute :fpage, ::Sts::IsoSts::Fpage
39
- attribute :lpage, ::Sts::IsoSts::Lpage
40
- attribute :page_range, ::Sts::IsoSts::PageRange
34
+ attribute :source, ::Sts::IsoSts::Source, collection: true
35
+ attribute :article_title, ::Sts::IsoSts::ArticleTitle, collection: true
36
+ attribute :volume, ::Sts::IsoSts::Volume, collection: true
37
+ attribute :issue, ::Sts::IsoSts::Issue, collection: true
38
+ attribute :fpage, ::Sts::IsoSts::Fpage, collection: true
39
+ attribute :lpage, ::Sts::IsoSts::Lpage, collection: true
40
+ attribute :page_range, ::Sts::IsoSts::PageRange, collection: true
41
41
  attribute :publisher, ::Sts::IsoSts::Publisher
42
42
  attribute :pub_id, ::Sts::IsoSts::PubId, collection: true
43
43
 
@@ -3,6 +3,7 @@
3
3
  module Sts
4
4
  module IsoSts
5
5
  class Monospace < Lutaml::Model::Serializable
6
+ attribute :id, :string
6
7
  attribute :specific_use, :string
7
8
  attribute :content, :string, collection: true
8
9
  attribute :bold, ::Sts::IsoSts::Bold, collection: true
@@ -14,6 +15,7 @@ module Sts
14
15
  element "monospace"
15
16
  mixed_content
16
17
 
18
+ map_attribute "id", to: :id
17
19
  map_attribute "specific-use", to: :specific_use
18
20
  map_content to: :content
19
21
  map_element "bold", to: :bold
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Name < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :content_type, :string
8
+ attribute :name_style, :string
9
+ attribute :specific_use, :string
10
+ attribute :xml_lang, :string
11
+ attribute :surname, ::Sts::IsoSts::Surname
12
+ attribute :given_names, ::Sts::IsoSts::GivenNames
13
+ attribute :prefix, ::Sts::IsoSts::Prefix
14
+ attribute :suffix, ::Sts::IsoSts::Suffix
15
+
16
+ xml do
17
+ element "name"
18
+ ordered
19
+
20
+ map_attribute "id", to: :id
21
+ map_attribute "content-type", to: :content_type
22
+ map_attribute "name-style", to: :name_style
23
+ map_attribute "specific-use", to: :specific_use
24
+ map_attribute "xml:lang", to: :xml_lang
25
+ map_element "surname", to: :surname
26
+ map_element "given-names", to: :given_names
27
+ map_element "prefix", to: :prefix
28
+ map_element "suffix", to: :suffix
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class NameAlternatives < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :name, ::Sts::IsoSts::Name, collection: true
8
+ attribute :string_name, ::Sts::IsoSts::StringName, collection: true
9
+
10
+ xml do
11
+ element "name-alternatives"
12
+ ordered
13
+
14
+ map_attribute "id", to: :id
15
+ map_element "name", to: :name
16
+ map_element "string-name", to: :string_name
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class OnBehalfOf < 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 :overline, ::Sts::IsoSts::Overline, collection: true
15
+ attribute :roman, ::Sts::IsoSts::Roman, collection: true
16
+ attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
17
+ attribute :sc, ::Sts::IsoSts::Sc, collection: true
18
+ attribute :strike, ::Sts::IsoSts::Strike, collection: true
19
+ attribute :underline, ::Sts::IsoSts::Underline, collection: true
20
+ attribute :sub, ::Sts::IsoSts::Sub, collection: true
21
+ attribute :sup, ::Sts::IsoSts::Sup, collection: true
22
+ attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
23
+ attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
24
+
25
+ xml do
26
+ element "on-behalf-of"
27
+ mixed_content
28
+
29
+ map_attribute "id", to: :id
30
+ map_attribute "specific-use", to: :specific_use
31
+ map_attribute "xml:lang", to: :xml_lang
32
+ map_content to: :content
33
+ map_element "bold", to: :bold
34
+ map_element "italic", to: :italic
35
+ map_element "monospace", to: :monospace
36
+ map_element "num", to: :num
37
+ map_element "overline", to: :overline
38
+ map_element "roman", to: :roman
39
+ map_element "sans-serif", to: :sans_serif
40
+ map_element "sc", to: :sc
41
+ map_element "strike", to: :strike
42
+ map_element "underline", to: :underline
43
+ map_element "sub", to: :sub
44
+ map_element "sup", to: :sup
45
+ map_element "named-content", to: :named_content
46
+ map_element "styled-content", to: :styled_content
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class OpenAccess < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :specific_use, :string
8
+ attribute :xml_lang, :string
9
+ attribute :paragraph, ::Sts::IsoSts::Paragraph, collection: true
10
+ attribute :non_normative_note, ::Sts::IsoSts::NonNormativeNote,
11
+ collection: true
12
+ attribute :non_normative_example, ::Sts::IsoSts::NonNormativeExample,
13
+ collection: true
14
+
15
+ xml do
16
+ element "open-access"
17
+ ordered
18
+
19
+ map_attribute "id", to: :id
20
+ map_attribute "specific-use", to: :specific_use
21
+ map_attribute "xml:lang", to: :xml_lang
22
+ map_element "p", to: :paragraph
23
+ map_element "non-normative-note", to: :non_normative_note
24
+ map_element "non-normative-example", to: :non_normative_example
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,99 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Overline < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :specific_use, :string
8
+ attribute :content, :string, collection: true
9
+ attribute :email, ::Sts::IsoSts::Email, collection: true
10
+ attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
11
+ attribute :uri, ::Sts::IsoSts::Uri, collection: true
12
+ attribute :inline_supplementary_material, ::Sts::IsoSts::InlineSupplementaryMaterial,
13
+ collection: true
14
+ attribute :related_article, ::Sts::IsoSts::RelatedArticle,
15
+ collection: true
16
+ attribute :related_object, ::Sts::IsoSts::RelatedObject, collection: true
17
+ attribute :element_citation, ::Sts::IsoSts::ElementCitation,
18
+ collection: true
19
+ attribute :mixed_citation, ::Sts::IsoSts::MixedCitation, collection: true
20
+ attribute :std, ::Sts::IsoSts::Std, collection: true
21
+ attribute :bold, ::Sts::IsoSts::Bold, collection: true
22
+ attribute :italic, ::Sts::IsoSts::Italic, collection: true
23
+ attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
24
+ attribute :num, ::Sts::IsoSts::Num, collection: true
25
+ attribute :overline, ::Sts::IsoSts::Overline, collection: true
26
+ attribute :roman, ::Sts::IsoSts::Roman, collection: true
27
+ attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
28
+ attribute :sc, ::Sts::IsoSts::Sc, collection: true
29
+ attribute :strike, ::Sts::IsoSts::Strike, collection: true
30
+ attribute :underline, ::Sts::IsoSts::Underline, collection: true
31
+ attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
32
+ attribute :inline_graphic, ::Sts::IsoSts::InlineGraphic, collection: true
33
+ attribute :private_char, ::Sts::IsoSts::PrivateChar, collection: true
34
+ attribute :chem_struct, ::Sts::IsoSts::ChemStruct, collection: true
35
+ attribute :inline_formula, ::Sts::IsoSts::InlineFormula, collection: true
36
+ attribute :math, ::Mml::V2::Math, collection: true
37
+ attribute :abbrev, ::Sts::IsoSts::Abbrev, collection: true
38
+ attribute :milestone_end, ::Sts::IsoSts::MilestoneEnd, collection: true
39
+ attribute :milestone_start, ::Sts::IsoSts::MilestoneStart,
40
+ collection: true
41
+ attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
42
+ attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
43
+ attribute :fn, ::Sts::IsoSts::Fn, collection: true
44
+ attribute :target, ::Sts::IsoSts::Target, collection: true
45
+ attribute :entailed_term, ::Sts::TbxIsoTml::EntailedTerm, collection: true
46
+ attribute :xref, ::Sts::IsoSts::Xref, collection: true
47
+ attribute :std_ref, ::Sts::IsoSts::StdRef, collection: true
48
+ attribute :sub, ::Sts::IsoSts::Sub, collection: true
49
+ attribute :sup, ::Sts::IsoSts::Sup, collection: true
50
+
51
+ xml do # rubocop:disable Metrics/BlockLength
52
+ element "overline"
53
+ mixed_content
54
+
55
+ map_attribute "id", to: :id
56
+ map_attribute "specific-use", to: :specific_use
57
+ map_content to: :content
58
+ map_element "email", to: :email
59
+ map_element "ext-link", to: :ext_link
60
+ map_element "uri", to: :uri
61
+ map_element "inline-supplementary-material",
62
+ to: :inline_supplementary_material
63
+ map_element "related-article", to: :related_article
64
+ map_element "related-object", to: :related_object
65
+ map_element "element-citation", to: :element_citation
66
+ map_element "mixed-citation", to: :mixed_citation
67
+ map_element "std", to: :std
68
+ map_element "bold", to: :bold
69
+ map_element "italic", to: :italic
70
+ map_element "monospace", to: :monospace
71
+ map_element "num", to: :num
72
+ map_element "overline", to: :overline
73
+ map_element "roman", to: :roman
74
+ map_element "sans-serif", to: :sans_serif
75
+ map_element "sc", to: :sc
76
+ map_element "strike", to: :strike
77
+ map_element "underline", to: :underline
78
+ map_element "alternatives", to: :alternatives
79
+ map_element "inline-graphic", to: :inline_graphic
80
+ map_element "private-char", to: :private_char
81
+ map_element "chem-struct", to: :chem_struct
82
+ map_element "inline-formula", to: :inline_formula
83
+ map_element "math", to: :math
84
+ map_element "abbrev", to: :abbrev
85
+ map_element "milestone-end", to: :milestone_end
86
+ map_element "milestone-start", to: :milestone_start
87
+ map_element "named-content", to: :named_content
88
+ map_element "styled-content", to: :styled_content
89
+ map_element "fn", to: :fn
90
+ map_element "target", to: :target
91
+ map_element "entailedTerm", to: :entailed_term
92
+ map_element "xref", to: :xref
93
+ map_element "std-ref", to: :std_ref
94
+ map_element "sub", to: :sub
95
+ map_element "sup", to: :sup
96
+ end
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class PartTitle < 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 :email, ::Sts::IsoSts::Email, collection: true
11
+ attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
12
+ attribute :uri, ::Sts::IsoSts::Uri, collection: true
13
+ attribute :bold, ::Sts::IsoSts::Bold, collection: true
14
+ attribute :italic, ::Sts::IsoSts::Italic, collection: true
15
+ attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
16
+ attribute :num, ::Sts::IsoSts::Num, collection: true
17
+ attribute :overline, ::Sts::IsoSts::Overline, collection: true
18
+ attribute :roman, ::Sts::IsoSts::Roman, collection: true
19
+ attribute :sans_serif, ::Sts::IsoSts::SansSerif, 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 :named_content, ::Sts::IsoSts::NamedContent, collection: true
24
+ attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
25
+ attribute :sub, ::Sts::IsoSts::Sub, collection: true
26
+ attribute :sup, ::Sts::IsoSts::Sup, collection: true
27
+
28
+ xml do
29
+ element "part-title"
30
+ mixed_content
31
+
32
+ map_attribute "id", to: :id
33
+ map_attribute "specific-use", to: :specific_use
34
+ map_attribute "xml:lang", to: :xml_lang
35
+ map_content to: :content
36
+ map_element "email", to: :email
37
+ map_element "ext-link", to: :ext_link
38
+ map_element "uri", to: :uri
39
+ map_element "bold", to: :bold
40
+ map_element "italic", to: :italic
41
+ map_element "monospace", to: :monospace
42
+ map_element "num", to: :num
43
+ map_element "overline", to: :overline
44
+ map_element "roman", to: :roman
45
+ map_element "sans-serif", to: :sans_serif
46
+ map_element "sc", to: :sc
47
+ map_element "strike", to: :strike
48
+ map_element "underline", to: :underline
49
+ map_element "named-content", to: :named_content
50
+ map_element "styled-content", to: :styled_content
51
+ map_element "sub", to: :sub
52
+ map_element "sup", to: :sup
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Patent < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :content_type, :string
8
+ attribute :country, :string
9
+ attribute :specific_use, :string
10
+ attribute :xml_lang, :string
11
+ attribute :content, :string, collection: true
12
+
13
+ xml do
14
+ element "patent"
15
+ mixed_content
16
+
17
+ map_attribute "id", to: :id
18
+ map_attribute "content-type", to: :content_type
19
+ map_attribute "country", to: :country
20
+ map_attribute "specific-use", to: :specific_use
21
+ map_attribute "xml:lang", to: :xml_lang
22
+ map_content to: :content
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class PersonGroup < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :person_group_type, :string
8
+ attribute :specific_use, :string
9
+ attribute :xml_lang, :string
10
+ attribute :content, :string, collection: true
11
+ attribute :anonymous, ::Sts::IsoSts::Anonymous, collection: true
12
+ attribute :collab, ::Sts::IsoSts::Collab, collection: true
13
+ attribute :name, ::Sts::IsoSts::Name, collection: true
14
+ attribute :name_alternatives, ::Sts::IsoSts::NameAlternatives,
15
+ collection: true
16
+ attribute :aff, ::Sts::IsoSts::Aff, collection: true
17
+ attribute :aff_alternatives, ::Sts::IsoSts::AffAlternatives,
18
+ collection: true
19
+ attribute :etal, ::Sts::IsoSts::Etal, collection: true
20
+ attribute :role, ::Sts::IsoSts::Role, collection: true
21
+ attribute :string_name, ::Sts::IsoSts::StringName, collection: true
22
+
23
+ xml do
24
+ element "person-group"
25
+ mixed_content
26
+
27
+ map_attribute "id", to: :id
28
+ map_attribute "person-group-type", to: :person_group_type
29
+ map_attribute "specific-use", to: :specific_use
30
+ map_attribute "xml:lang", to: :xml_lang
31
+ map_content to: :content
32
+ map_element "anonymous", to: :anonymous
33
+ map_element "collab", to: :collab
34
+ map_element "name", to: :name
35
+ map_element "name-alternatives", to: :name_alternatives
36
+ map_element "aff", to: :aff
37
+ map_element "aff-alternatives", to: :aff_alternatives
38
+ map_element "etal", to: :etal
39
+ map_element "role", to: :role
40
+ map_element "string-name", to: :string_name
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Prefix < 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
+
12
+ xml do
13
+ element "prefix"
14
+ mixed_content
15
+
16
+ map_attribute "id", to: :id
17
+ map_attribute "content-type", to: :content_type
18
+ map_attribute "specific-use", to: :specific_use
19
+ map_attribute "xml:lang", to: :xml_lang
20
+ map_content to: :content
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Price < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :currency, :string
8
+ attribute :content_type, :string
9
+ attribute :specific_use, :string
10
+ attribute :xml_lang, :string
11
+ attribute :content, :string, collection: true
12
+ attribute :bold, ::Sts::IsoSts::Bold, collection: true
13
+ attribute :italic, ::Sts::IsoSts::Italic, collection: true
14
+ attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
15
+ attribute :num, ::Sts::IsoSts::Num, collection: true
16
+ attribute :overline, ::Sts::IsoSts::Overline, collection: true
17
+ attribute :roman, ::Sts::IsoSts::Roman, collection: true
18
+ attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
19
+ attribute :sc, ::Sts::IsoSts::Sc, collection: true
20
+ attribute :strike, ::Sts::IsoSts::Strike, collection: true
21
+ attribute :underline, ::Sts::IsoSts::Underline, collection: true
22
+
23
+ xml do
24
+ element "price"
25
+ mixed_content
26
+
27
+ map_attribute "id", to: :id
28
+ map_attribute "currency", to: :currency
29
+ map_attribute "content-type", to: :content_type
30
+ map_attribute "specific-use", to: :specific_use
31
+ map_attribute "xml:lang", to: :xml_lang
32
+ map_content to: :content
33
+ map_element "bold", to: :bold
34
+ map_element "italic", to: :italic
35
+ map_element "monospace", to: :monospace
36
+ map_element "num", to: :num
37
+ map_element "overline", to: :overline
38
+ map_element "roman", to: :roman
39
+ map_element "sans-serif", to: :sans_serif
40
+ map_element "sc", to: :sc
41
+ map_element "strike", to: :strike
42
+ map_element "underline", to: :underline
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class PrivateChar < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :description, :string
8
+ attribute :name, :string
9
+ attribute :specific_use, :string
10
+ attribute :glyph_data, ::Sts::IsoSts::GlyphData
11
+ attribute :glyph_ref, ::Sts::IsoSts::GlyphRef
12
+ attribute :inline_graphic, ::Sts::IsoSts::InlineGraphic, collection: true
13
+
14
+ xml do
15
+ element "private-char"
16
+ ordered
17
+
18
+ map_attribute "id", to: :id
19
+ map_attribute "description", to: :description
20
+ map_attribute "name", to: :name
21
+ map_attribute "specific-use", to: :specific_use
22
+ map_element "glyph-data", to: :glyph_data
23
+ map_element "glyph-ref", to: :glyph_ref
24
+ map_element "inline-graphic", to: :inline_graphic
25
+ end
26
+ end
27
+ end
28
+ end
@@ -8,11 +8,14 @@ module Sts
8
8
  attribute :specific_use, :string
9
9
  attribute :xml_lang, :string
10
10
  attribute :label, ::Sts::IsoSts::Label
11
- attribute :mixed_citation, ::Sts::IsoSts::MixedCitation
12
- attribute :element_citation, ::Sts::NisoSts::ElementCitation
13
- attribute :std, ::Sts::IsoSts::Std
14
- attribute :non_normative_note, ::Sts::IsoSts::NonNormativeNote
15
- attribute :non_normative_example, ::Sts::IsoSts::NonNormativeExample
11
+ attribute :mixed_citation, ::Sts::IsoSts::MixedCitation, collection: true
12
+ attribute :element_citation, ::Sts::IsoSts::ElementCitation,
13
+ collection: true
14
+ attribute :std, ::Sts::IsoSts::Std, collection: true
15
+ attribute :non_normative_note, ::Sts::IsoSts::NonNormativeNote,
16
+ collection: true
17
+ attribute :non_normative_example, ::Sts::IsoSts::NonNormativeExample,
18
+ collection: true
16
19
 
17
20
  xml do
18
21
  element "ref"