sts 0.6.11 → 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 (135) 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/mixed_citation.rb +1 -2
  117. data/lib/sts/niso_sts/nlm_citation.rb +1 -2
  118. data/lib/sts/niso_sts/preformat.rb +16 -0
  119. data/lib/sts/niso_sts/section.rb +1 -2
  120. data/lib/sts/niso_sts/sup.rb +14 -0
  121. data/lib/sts/niso_sts/term.rb +15 -2
  122. data/lib/sts/niso_sts/title.rb +2 -0
  123. data/lib/sts/profiles/iso_iec/constraints.rb +14 -11
  124. data/lib/sts/profiles/iso_iec/id_scheme.rb +64 -0
  125. data/lib/sts/profiles/iso_iec/validator.rb +25 -0
  126. data/lib/sts/profiles/iso_iec.rb +1 -0
  127. data/lib/sts/profiles.rb +26 -0
  128. data/lib/sts/tbx_iso_tml/bold.rb +6 -0
  129. data/lib/sts/tbx_iso_tml/definition.rb +4 -0
  130. data/lib/sts/tbx_iso_tml/example.rb +14 -0
  131. data/lib/sts/tbx_iso_tml/italic.rb +6 -0
  132. data/lib/sts/tbx_iso_tml/note.rb +10 -0
  133. data/lib/sts/version.rb +1 -1
  134. data/lib/sts.rb +4 -0
  135. metadata +83 -2
@@ -0,0 +1,92 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class ArticleTitle < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :xml_lang, :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 :bold, ::Sts::IsoSts::Bold, collection: true
18
+ attribute :italic, ::Sts::IsoSts::Italic, collection: true
19
+ attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
20
+ attribute :num, ::Sts::IsoSts::Num, collection: true
21
+ attribute :overline, ::Sts::IsoSts::Overline, collection: true
22
+ attribute :roman, ::Sts::IsoSts::Roman, collection: true
23
+ attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
24
+ attribute :sc, ::Sts::IsoSts::Sc, collection: true
25
+ attribute :strike, ::Sts::IsoSts::Strike, collection: true
26
+ attribute :underline, ::Sts::IsoSts::Underline, collection: true
27
+ attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
28
+ attribute :inline_graphic, ::Sts::IsoSts::InlineGraphic, collection: true
29
+ attribute :private_char, ::Sts::IsoSts::PrivateChar, collection: true
30
+ attribute :chem_struct, ::Sts::IsoSts::ChemStruct, collection: true
31
+ attribute :inline_formula, ::Sts::IsoSts::InlineFormula, collection: true
32
+ attribute :math, ::Mml::V2::Math, collection: true
33
+ attribute :abbrev, ::Sts::IsoSts::Abbrev, collection: true
34
+ attribute :milestone_end, ::Sts::IsoSts::MilestoneEnd, collection: true
35
+ attribute :milestone_start, ::Sts::IsoSts::MilestoneStart,
36
+ collection: true
37
+ attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
38
+ attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
39
+ attribute :fn, ::Sts::IsoSts::Fn, collection: true
40
+ attribute :target, ::Sts::IsoSts::Target, collection: true
41
+ attribute :entailed_term, ::Sts::TbxIsoTml::EntailedTerm, collection: true
42
+ attribute :xref, ::Sts::IsoSts::Xref, collection: true
43
+ attribute :sub, ::Sts::IsoSts::Sub, collection: true
44
+ attribute :sup, ::Sts::IsoSts::Sup, collection: true
45
+ attribute :break, ::Sts::IsoSts::Break, collection: true
46
+
47
+ xml do # rubocop:disable Metrics/BlockLength
48
+ element "article-title"
49
+ mixed_content
50
+
51
+ map_attribute "id", to: :id
52
+ map_attribute "xml:lang", to: :xml_lang
53
+ map_content to: :content
54
+ map_element "email", to: :email
55
+ map_element "ext-link", to: :ext_link
56
+ map_element "uri", to: :uri
57
+ map_element "inline-supplementary-material",
58
+ to: :inline_supplementary_material
59
+ map_element "related-article", to: :related_article
60
+ map_element "related-object", to: :related_object
61
+ map_element "bold", to: :bold
62
+ map_element "italic", to: :italic
63
+ map_element "monospace", to: :monospace
64
+ map_element "num", to: :num
65
+ map_element "overline", to: :overline
66
+ map_element "roman", to: :roman
67
+ map_element "sans-serif", to: :sans_serif
68
+ map_element "sc", to: :sc
69
+ map_element "strike", to: :strike
70
+ map_element "underline", to: :underline
71
+ map_element "alternatives", to: :alternatives
72
+ map_element "inline-graphic", to: :inline_graphic
73
+ map_element "private-char", to: :private_char
74
+ map_element "chem-struct", to: :chem_struct
75
+ map_element "inline-formula", to: :inline_formula
76
+ map_element "math", to: :math
77
+ map_element "abbrev", to: :abbrev
78
+ map_element "milestone-end", to: :milestone_end
79
+ map_element "milestone-start", to: :milestone_start
80
+ map_element "named-content", to: :named_content
81
+ map_element "styled-content", to: :styled_content
82
+ map_element "fn", to: :fn
83
+ map_element "target", to: :target
84
+ map_element "entailedTerm", to: :entailed_term
85
+ map_element "xref", to: :xref
86
+ map_element "sub", to: :sub
87
+ map_element "sup", to: :sup
88
+ map_element "break", to: :break
89
+ end
90
+ end
91
+ end
92
+ end
@@ -10,17 +10,31 @@ module Sts
10
10
  attribute :email, ::Sts::IsoSts::Email, collection: true
11
11
  attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
12
12
  attribute :uri, ::Sts::IsoSts::Uri, collection: true
13
+ attribute :inline_supplementary_material, ::Sts::IsoSts::InlineSupplementaryMaterial,
14
+ collection: true
15
+ attribute :related_article, ::Sts::IsoSts::RelatedArticle,
16
+ collection: true
17
+ attribute :related_object, ::Sts::IsoSts::RelatedObject, collection: true
18
+ attribute :element_citation, ::Sts::IsoSts::ElementCitation,
19
+ collection: true
13
20
  attribute :mixed_citation, ::Sts::IsoSts::MixedCitation, collection: true
14
21
  attribute :std, ::Sts::IsoSts::Std, collection: true
15
22
  attribute :bold, ::Sts::IsoSts::Bold, collection: true
16
23
  attribute :italic, ::Sts::IsoSts::Italic, collection: true
17
24
  attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
18
25
  attribute :num, ::Sts::IsoSts::Num, collection: true
26
+ attribute :overline, ::Sts::IsoSts::Overline, collection: true
27
+ attribute :roman, ::Sts::IsoSts::Roman, collection: true
28
+ attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
19
29
  attribute :sc, ::Sts::IsoSts::Sc, collection: true
20
30
  attribute :strike, ::Sts::IsoSts::Strike, collection: true
21
31
  attribute :underline, ::Sts::IsoSts::Underline, collection: true
32
+ attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
22
33
  attribute :inline_graphic, ::Sts::IsoSts::InlineGraphic, collection: true
34
+ attribute :private_char, ::Sts::IsoSts::PrivateChar, collection: true
35
+ attribute :chem_struct, ::Sts::IsoSts::ChemStruct, collection: true
23
36
  attribute :inline_formula, ::Sts::IsoSts::InlineFormula, collection: true
37
+ attribute :math, ::Mml::V2::Math, collection: true
24
38
  attribute :abbrev, ::Sts::IsoSts::Abbrev, collection: true
25
39
  attribute :milestone_end, ::Sts::IsoSts::MilestoneEnd, collection: true
26
40
  attribute :milestone_start, ::Sts::IsoSts::MilestoneStart,
@@ -28,6 +42,8 @@ module Sts
28
42
  attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
29
43
  attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
30
44
  attribute :fn, ::Sts::IsoSts::Fn, collection: true
45
+ attribute :target, ::Sts::IsoSts::Target, collection: true
46
+ attribute :entailed_term, ::Sts::TbxIsoTml::EntailedTerm, collection: true
31
47
  attribute :xref, ::Sts::IsoSts::Xref, collection: true
32
48
  attribute :std_ref, ::Sts::IsoSts::StdRef, collection: true
33
49
  attribute :sub, ::Sts::IsoSts::Sub, collection: true
@@ -40,28 +56,41 @@ module Sts
40
56
  map_attribute "id", to: :id
41
57
  map_attribute "specific-use", to: :specific_use
42
58
  map_attribute "xml:lang", to: :xml_lang
43
-
44
59
  map_content to: :content
45
60
  map_element "email", to: :email
46
61
  map_element "ext-link", to: :ext_link
47
62
  map_element "uri", to: :uri
63
+ map_element "inline-supplementary-material",
64
+ to: :inline_supplementary_material
65
+ map_element "related-article", to: :related_article
66
+ map_element "related-object", to: :related_object
67
+ map_element "element-citation", to: :element_citation
48
68
  map_element "mixed-citation", to: :mixed_citation
49
69
  map_element "std", to: :std
50
70
  map_element "bold", to: :bold
51
71
  map_element "italic", to: :italic
52
72
  map_element "monospace", to: :monospace
53
73
  map_element "num", to: :num
74
+ map_element "overline", to: :overline
75
+ map_element "roman", to: :roman
76
+ map_element "sans-serif", to: :sans_serif
54
77
  map_element "sc", to: :sc
55
78
  map_element "strike", to: :strike
56
79
  map_element "underline", to: :underline
80
+ map_element "alternatives", to: :alternatives
57
81
  map_element "inline-graphic", to: :inline_graphic
82
+ map_element "private-char", to: :private_char
83
+ map_element "chem-struct", to: :chem_struct
58
84
  map_element "inline-formula", to: :inline_formula
85
+ map_element "math", to: :math
59
86
  map_element "abbrev", to: :abbrev
60
87
  map_element "milestone-end", to: :milestone_end
61
88
  map_element "milestone-start", to: :milestone_start
62
89
  map_element "named-content", to: :named_content
63
90
  map_element "styled-content", to: :styled_content
64
91
  map_element "fn", to: :fn
92
+ map_element "target", to: :target
93
+ map_element "entailedTerm", to: :entailed_term
65
94
  map_element "xref", to: :xref
66
95
  map_element "std-ref", to: :std_ref
67
96
  map_element "sub", to: :sub
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class AuthorComment < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :content_type, :string
8
+ attribute :specific_use, :string
9
+ attribute :xml_lang, :string
10
+ attribute :title, ::Sts::IsoSts::Title
11
+ attribute :paragraph, ::Sts::IsoSts::Paragraph, collection: true
12
+ attribute :non_normative_note, ::Sts::IsoSts::NonNormativeNote,
13
+ collection: true
14
+ attribute :non_normative_example, ::Sts::IsoSts::NonNormativeExample,
15
+ collection: true
16
+
17
+ xml do
18
+ element "author-comment"
19
+ ordered
20
+
21
+ map_attribute "id", to: :id
22
+ map_attribute "content-type", to: :content_type
23
+ map_attribute "specific-use", to: :specific_use
24
+ map_attribute "xml:lang", to: :xml_lang
25
+ map_element "title", to: :title
26
+ map_element "p", to: :paragraph
27
+ map_element "non-normative-note", to: :non_normative_note
28
+ map_element "non-normative-example", to: :non_normative_example
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class AwardId < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :rid, :string
8
+ attribute :specific_use, :string
9
+ attribute :xml_lang, :string
10
+ attribute :content, :string, collection: true
11
+ attribute :bold, ::Sts::IsoSts::Bold, collection: true
12
+ attribute :italic, ::Sts::IsoSts::Italic, collection: true
13
+ attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
14
+ attribute :num, ::Sts::IsoSts::Num, collection: true
15
+ attribute :overline, ::Sts::IsoSts::Overline, collection: true
16
+ attribute :roman, ::Sts::IsoSts::Roman, collection: true
17
+ attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
18
+ attribute :sc, ::Sts::IsoSts::Sc, collection: true
19
+ attribute :strike, ::Sts::IsoSts::Strike, collection: true
20
+ attribute :underline, ::Sts::IsoSts::Underline, collection: true
21
+ attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
22
+ attribute :inline_graphic, ::Sts::IsoSts::InlineGraphic, collection: true
23
+ attribute :private_char, ::Sts::IsoSts::PrivateChar, collection: true
24
+ attribute :chem_struct, ::Sts::IsoSts::ChemStruct, collection: true
25
+ attribute :inline_formula, ::Sts::IsoSts::InlineFormula, collection: true
26
+ attribute :abbrev, ::Sts::IsoSts::Abbrev, collection: true
27
+ attribute :milestone_end, ::Sts::IsoSts::MilestoneEnd, collection: true
28
+ attribute :milestone_start, ::Sts::IsoSts::MilestoneStart,
29
+ collection: true
30
+ attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
31
+ attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
32
+ attribute :sub, ::Sts::IsoSts::Sub, collection: true
33
+ attribute :sup, ::Sts::IsoSts::Sup, collection: true
34
+
35
+ xml do # rubocop:disable Metrics/BlockLength
36
+ element "award-id"
37
+ mixed_content
38
+
39
+ map_attribute "id", to: :id
40
+ map_attribute "rid", to: :rid
41
+ map_attribute "specific-use", to: :specific_use
42
+ map_attribute "xml:lang", to: :xml_lang
43
+ map_content to: :content
44
+ map_element "bold", to: :bold
45
+ map_element "italic", to: :italic
46
+ map_element "monospace", to: :monospace
47
+ map_element "num", to: :num
48
+ map_element "overline", to: :overline
49
+ map_element "roman", to: :roman
50
+ map_element "sans-serif", to: :sans_serif
51
+ map_element "sc", to: :sc
52
+ map_element "strike", to: :strike
53
+ map_element "underline", to: :underline
54
+ map_element "alternatives", to: :alternatives
55
+ map_element "inline-graphic", to: :inline_graphic
56
+ map_element "private-char", to: :private_char
57
+ map_element "chem-struct", to: :chem_struct
58
+ map_element "inline-formula", to: :inline_formula
59
+ map_element "abbrev", to: :abbrev
60
+ map_element "milestone-end", to: :milestone_end
61
+ map_element "milestone-start", to: :milestone_start
62
+ map_element "named-content", to: :named_content
63
+ map_element "styled-content", to: :styled_content
64
+ map_element "sub", to: :sub
65
+ map_element "sup", to: :sup
66
+ end
67
+ end
68
+ end
69
+ end
@@ -4,7 +4,6 @@ module Sts
4
4
  module IsoSts
5
5
  class Back < Lutaml::Model::Serializable
6
6
  attribute :id, :string
7
- attribute :content_type, :string
8
7
  attribute :app_group, ::Sts::IsoSts::AppGroup, collection: true
9
8
  attribute :ref_list, ::Sts::IsoSts::RefList, collection: true
10
9
  attribute :fn_group, ::Sts::IsoSts::FnGroup, collection: true
@@ -15,7 +14,6 @@ module Sts
15
14
  ordered
16
15
 
17
16
  map_attribute "id", to: :id
18
- map_attribute "content-type", to: :content_type
19
17
 
20
18
  map_element "app-group", to: :app_group
21
19
  map_element "ref-list", to: :ref_list
@@ -0,0 +1,111 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Bio < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :rid, :string
8
+ attribute :content_type, :string
9
+ attribute :specific_use, :string
10
+ attribute :xml_lang, :string
11
+ attribute :xlink_type, :string
12
+ attribute :xlink_href, :string
13
+ attribute :xlink_role, :string
14
+ attribute :xlink_title, :string
15
+ attribute :xlink_show, :string
16
+ attribute :xlink_actuate, :string
17
+ attribute :label, ::Sts::IsoSts::Label
18
+ attribute :title, ::Sts::IsoSts::Title
19
+ attribute :address, ::Sts::IsoSts::Address, collection: true
20
+ attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
21
+ attribute :array, ::Sts::IsoSts::Array, collection: true
22
+ attribute :boxed_text, ::Sts::IsoSts::BoxedText, collection: true
23
+ attribute :chem_struct_wrap, ::Sts::IsoSts::ChemStructWrap,
24
+ collection: true
25
+ attribute :fig, ::Sts::IsoSts::Fig, collection: true
26
+ attribute :fig_group, ::Sts::IsoSts::FigGroup, collection: true
27
+ attribute :graphic, ::Sts::IsoSts::Graphic, collection: true
28
+ attribute :media, ::Sts::IsoSts::Media, collection: true
29
+ attribute :non_normative_note, ::Sts::IsoSts::NonNormativeNote,
30
+ collection: true
31
+ attribute :non_normative_example, ::Sts::IsoSts::NonNormativeExample,
32
+ collection: true
33
+ attribute :preformat, ::Sts::IsoSts::Preformat, collection: true
34
+ attribute :supplementary_material, ::Sts::IsoSts::SupplementaryMaterial,
35
+ collection: true
36
+ attribute :table_wrap, ::Sts::IsoSts::TableWrap, collection: true
37
+ attribute :table_wrap_group, ::Sts::IsoSts::TableWrapGroup,
38
+ collection: true
39
+ attribute :disp_formula, ::Sts::IsoSts::DispFormula, collection: true
40
+ attribute :disp_formula_group, ::Sts::IsoSts::DispFormulaGroup,
41
+ collection: true
42
+ attribute :paragraph, ::Sts::IsoSts::Paragraph, collection: true
43
+ attribute :def_list, ::Sts::IsoSts::DefList, collection: true
44
+ attribute :list, ::Sts::IsoSts::List, collection: true
45
+ attribute :math, ::Mml::V2::Math, collection: true
46
+ attribute :related_article, ::Sts::IsoSts::RelatedArticle,
47
+ collection: true
48
+ attribute :related_object, ::Sts::IsoSts::RelatedObject, collection: true
49
+ attribute :disp_quote, ::Sts::IsoSts::DispQuote, collection: true
50
+ attribute :speech, ::Sts::IsoSts::Speech, collection: true
51
+ attribute :statement, ::Sts::IsoSts::Statement, collection: true
52
+ attribute :verse_group, ::Sts::IsoSts::VerseGroup, collection: true
53
+ attribute :sec, ::Sts::IsoSts::Sec, collection: true
54
+ attribute :term_sec, ::Sts::IsoSts::TermSec, collection: true
55
+ attribute :fn_group, ::Sts::IsoSts::FnGroup, collection: true
56
+ attribute :glossary, ::Sts::IsoSts::Glossary, collection: true
57
+ attribute :ref_list, ::Sts::IsoSts::RefList, collection: true
58
+
59
+ xml do # rubocop:disable Metrics/BlockLength
60
+ element "bio"
61
+ ordered
62
+
63
+ map_attribute "id", to: :id
64
+ map_attribute "rid", to: :rid
65
+ map_attribute "content-type", to: :content_type
66
+ map_attribute "specific-use", to: :specific_use
67
+ map_attribute "xml:lang", to: :xml_lang
68
+ map_attribute "xlink:type", to: :xlink_type
69
+ map_attribute "xlink:href", to: :xlink_href
70
+ map_attribute "xlink:role", to: :xlink_role
71
+ map_attribute "xlink:title", to: :xlink_title
72
+ map_attribute "xlink:show", to: :xlink_show
73
+ map_attribute "xlink:actuate", to: :xlink_actuate
74
+ map_element "label", to: :label
75
+ map_element "title", to: :title
76
+ map_element "address", to: :address
77
+ map_element "alternatives", to: :alternatives
78
+ map_element "array", to: :array
79
+ map_element "boxed-text", to: :boxed_text
80
+ map_element "chem-struct-wrap", to: :chem_struct_wrap
81
+ map_element "fig", to: :fig
82
+ map_element "fig-group", to: :fig_group
83
+ map_element "graphic", to: :graphic
84
+ map_element "media", to: :media
85
+ map_element "non-normative-note", to: :non_normative_note
86
+ map_element "non-normative-example", to: :non_normative_example
87
+ map_element "preformat", to: :preformat
88
+ map_element "supplementary-material", to: :supplementary_material
89
+ map_element "table-wrap", to: :table_wrap
90
+ map_element "table-wrap-group", to: :table_wrap_group
91
+ map_element "disp-formula", to: :disp_formula
92
+ map_element "disp-formula-group", to: :disp_formula_group
93
+ map_element "p", to: :paragraph
94
+ map_element "def-list", to: :def_list
95
+ map_element "list", to: :list
96
+ map_element "math", to: :math
97
+ map_element "related-article", to: :related_article
98
+ map_element "related-object", to: :related_object
99
+ map_element "disp-quote", to: :disp_quote
100
+ map_element "speech", to: :speech
101
+ map_element "statement", to: :statement
102
+ map_element "verse-group", to: :verse_group
103
+ map_element "sec", to: :sec
104
+ map_element "term-sec", to: :term_sec
105
+ map_element "fn-group", to: :fn_group
106
+ map_element "glossary", to: :glossary
107
+ map_element "ref-list", to: :ref_list
108
+ end
109
+ end
110
+ end
111
+ end
@@ -4,7 +4,6 @@ module Sts
4
4
  module IsoSts
5
5
  class Body < Lutaml::Model::Serializable
6
6
  attribute :id, :string
7
- attribute :content_type, :string
8
7
  attribute :specific_use, :string
9
8
  attribute :paragraph, ::Sts::IsoSts::Paragraph, collection: true
10
9
  attribute :sec, ::Sts::IsoSts::Sec, collection: true
@@ -29,7 +28,6 @@ module Sts
29
28
  ordered
30
29
 
31
30
  map_attribute "id", to: :id
32
- map_attribute "content-type", to: :content_type
33
31
  map_attribute "specific-use", to: :specific_use
34
32
 
35
33
  map_element "p", to: :paragraph
@@ -13,22 +13,44 @@ module Sts
13
13
  attribute :sts_object_id, ::Sts::IsoSts::ObjectId, collection: true
14
14
  attribute :label, ::Sts::IsoSts::Label
15
15
  attribute :caption, ::Sts::IsoSts::Caption
16
- attribute :paragraph, ::Sts::IsoSts::Paragraph, collection: true
17
- attribute :list, ::Sts::IsoSts::List, collection: true
18
- attribute :def_list, ::Sts::IsoSts::DefList, collection: true
16
+ attribute :address, ::Sts::IsoSts::Address, collection: true
17
+ attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
18
+ attribute :array, ::Sts::IsoSts::Array, collection: true
19
+ attribute :boxed_text, ::Sts::IsoSts::BoxedText, collection: true
20
+ attribute :chem_struct_wrap, ::Sts::IsoSts::ChemStructWrap,
21
+ collection: true
22
+ attribute :fig, ::Sts::IsoSts::Fig, collection: true
23
+ attribute :fig_group, ::Sts::IsoSts::FigGroup, collection: true
24
+ attribute :graphic, ::Sts::IsoSts::Graphic, collection: true
25
+ attribute :media, ::Sts::IsoSts::Media, collection: true
19
26
  attribute :non_normative_note, ::Sts::IsoSts::NonNormativeNote,
20
27
  collection: true
21
28
  attribute :non_normative_example, ::Sts::IsoSts::NonNormativeExample,
22
29
  collection: true
23
30
  attribute :preformat, ::Sts::IsoSts::Preformat, collection: true
24
- attribute :fig, ::Sts::IsoSts::Fig, collection: true
25
- attribute :graphic, ::Sts::IsoSts::Graphic, collection: true
31
+ attribute :supplementary_material, ::Sts::IsoSts::SupplementaryMaterial,
32
+ collection: true
33
+ attribute :table_wrap, ::Sts::IsoSts::TableWrap, collection: true
34
+ attribute :table_wrap_group, ::Sts::IsoSts::TableWrapGroup,
35
+ collection: true
26
36
  attribute :disp_formula, ::Sts::IsoSts::DispFormula, collection: true
37
+ attribute :disp_formula_group, ::Sts::IsoSts::DispFormulaGroup,
38
+ collection: true
39
+ attribute :paragraph, ::Sts::IsoSts::Paragraph, collection: true
40
+ attribute :def_list, ::Sts::IsoSts::DefList, collection: true
41
+ attribute :list, ::Sts::IsoSts::List, collection: true
42
+ attribute :math, ::Mml::V2::Math, collection: true
43
+ attribute :related_article, ::Sts::IsoSts::RelatedArticle,
44
+ collection: true
45
+ attribute :related_object, ::Sts::IsoSts::RelatedObject, collection: true
27
46
  attribute :disp_quote, ::Sts::IsoSts::DispQuote, collection: true
28
- attribute :boxed_text, ::Sts::IsoSts::BoxedText, collection: true
47
+ attribute :speech, ::Sts::IsoSts::Speech, collection: true
48
+ attribute :statement, ::Sts::IsoSts::Statement, collection: true
49
+ attribute :verse_group, ::Sts::IsoSts::VerseGroup, collection: true
29
50
  attribute :sec, ::Sts::IsoSts::Sec, collection: true
30
51
  attribute :term_sec, ::Sts::IsoSts::TermSec, collection: true
31
52
  attribute :fn_group, ::Sts::IsoSts::FnGroup, collection: true
53
+ attribute :glossary, ::Sts::IsoSts::Glossary, collection: true
32
54
  attribute :ref_list, ::Sts::IsoSts::RefList, collection: true
33
55
  attribute :attrib, ::Sts::IsoSts::Attrib, collection: true
34
56
  attribute :permissions, ::Sts::IsoSts::Permissions, collection: true
@@ -44,24 +66,40 @@ module Sts
44
66
  map_attribute "xml:lang", to: :xml_lang
45
67
  map_attribute "content-type", to: :content_type
46
68
  map_attribute "originator", to: :originator
47
-
48
69
  map_element "object-id", to: :sts_object_id
49
70
  map_element "label", to: :label
50
71
  map_element "caption", to: :caption
51
- map_element "p", to: :paragraph
52
- map_element "list", to: :list
53
- map_element "def-list", to: :def_list
72
+ map_element "address", to: :address
73
+ map_element "alternatives", to: :alternatives
74
+ map_element "array", to: :array
75
+ map_element "boxed-text", to: :boxed_text
76
+ map_element "chem-struct-wrap", to: :chem_struct_wrap
77
+ map_element "fig", to: :fig
78
+ map_element "fig-group", to: :fig_group
79
+ map_element "graphic", to: :graphic
80
+ map_element "media", to: :media
54
81
  map_element "non-normative-note", to: :non_normative_note
55
82
  map_element "non-normative-example", to: :non_normative_example
56
83
  map_element "preformat", to: :preformat
57
- map_element "fig", to: :fig
58
- map_element "graphic", to: :graphic
84
+ map_element "supplementary-material", to: :supplementary_material
85
+ map_element "table-wrap", to: :table_wrap
86
+ map_element "table-wrap-group", to: :table_wrap_group
59
87
  map_element "disp-formula", to: :disp_formula
88
+ map_element "disp-formula-group", to: :disp_formula_group
89
+ map_element "p", to: :paragraph
90
+ map_element "def-list", to: :def_list
91
+ map_element "list", to: :list
92
+ map_element "math", to: :math
93
+ map_element "related-article", to: :related_article
94
+ map_element "related-object", to: :related_object
60
95
  map_element "disp-quote", to: :disp_quote
61
- map_element "boxed-text", to: :boxed_text
96
+ map_element "speech", to: :speech
97
+ map_element "statement", to: :statement
98
+ map_element "verse-group", to: :verse_group
62
99
  map_element "sec", to: :sec
63
100
  map_element "term-sec", to: :term_sec
64
101
  map_element "fn-group", to: :fn_group
102
+ map_element "glossary", to: :glossary
65
103
  map_element "ref-list", to: :ref_list
66
104
  map_element "attrib", to: :attrib
67
105
  map_element "permissions", to: :permissions
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class ChapterTitle < 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 "chapter-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