sts 0.6.11 → 0.6.13

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 (137) 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/app.rb +6 -0
  116. data/lib/sts/niso_sts/element_citation.rb +1 -2
  117. data/lib/sts/niso_sts/mixed_citation.rb +1 -2
  118. data/lib/sts/niso_sts/nlm_citation.rb +1 -2
  119. data/lib/sts/niso_sts/preformat.rb +16 -0
  120. data/lib/sts/niso_sts/section.rb +1 -2
  121. data/lib/sts/niso_sts/sup.rb +14 -0
  122. data/lib/sts/niso_sts/term.rb +15 -2
  123. data/lib/sts/niso_sts/title.rb +2 -0
  124. data/lib/sts/profiles/iso_iec/constraints.rb +14 -11
  125. data/lib/sts/profiles/iso_iec/id_scheme.rb +64 -0
  126. data/lib/sts/profiles/iso_iec/validator.rb +25 -0
  127. data/lib/sts/profiles/iso_iec.rb +1 -0
  128. data/lib/sts/profiles.rb +26 -0
  129. data/lib/sts/tbx_iso_tml/bold.rb +6 -0
  130. data/lib/sts/tbx_iso_tml/definition.rb +4 -0
  131. data/lib/sts/tbx_iso_tml/example.rb +14 -0
  132. data/lib/sts/tbx_iso_tml/italic.rb +6 -0
  133. data/lib/sts/tbx_iso_tml/lang_set.rb +3 -1
  134. data/lib/sts/tbx_iso_tml/note.rb +10 -0
  135. data/lib/sts/version.rb +1 -1
  136. data/lib/sts.rb +4 -0
  137. metadata +83 -2
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Series < 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 :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 :sub, ::Sts::IsoSts::Sub, collection: true
22
+ attribute :sup, ::Sts::IsoSts::Sup, collection: true
23
+ attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
24
+ attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
25
+
26
+ xml do
27
+ element "series"
28
+ mixed_content
29
+
30
+ map_attribute "id", to: :id
31
+ map_attribute "content-type", to: :content_type
32
+ map_attribute "specific-use", to: :specific_use
33
+ map_attribute "xml:lang", to: :xml_lang
34
+ map_content to: :content
35
+ map_element "bold", to: :bold
36
+ map_element "italic", to: :italic
37
+ map_element "monospace", to: :monospace
38
+ map_element "num", to: :num
39
+ map_element "overline", to: :overline
40
+ map_element "roman", to: :roman
41
+ map_element "sans-serif", to: :sans_serif
42
+ map_element "sc", to: :sc
43
+ map_element "strike", to: :strike
44
+ map_element "underline", to: :underline
45
+ map_element "sub", to: :sub
46
+ map_element "sup", to: :sup
47
+ map_element "named-content", to: :named_content
48
+ map_element "styled-content", to: :styled_content
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Size < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :units, :string
8
+ attribute :specific_use, :string
9
+ attribute :xml_lang, :string
10
+ attribute :content, :string, collection: true
11
+
12
+ xml do
13
+ element "size"
14
+ mixed_content
15
+
16
+ map_attribute "id", to: :id
17
+ map_attribute "units", to: :units
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,58 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Source < 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 :bold, ::Sts::IsoSts::Bold, collection: true
15
+ attribute :italic, ::Sts::IsoSts::Italic, collection: true
16
+ attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
17
+ attribute :num, ::Sts::IsoSts::Num, collection: true
18
+ attribute :overline, ::Sts::IsoSts::Overline, collection: true
19
+ attribute :roman, ::Sts::IsoSts::Roman, collection: true
20
+ attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
21
+ attribute :sc, ::Sts::IsoSts::Sc, collection: true
22
+ attribute :strike, ::Sts::IsoSts::Strike, collection: true
23
+ attribute :underline, ::Sts::IsoSts::Underline, collection: true
24
+ attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
25
+ attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
26
+ attribute :sub, ::Sts::IsoSts::Sub, collection: true
27
+ attribute :sup, ::Sts::IsoSts::Sup, collection: true
28
+
29
+ xml do
30
+ element "source"
31
+ mixed_content
32
+
33
+ map_attribute "id", to: :id
34
+ map_attribute "content-type", to: :content_type
35
+ map_attribute "specific-use", to: :specific_use
36
+ map_attribute "xml:lang", to: :xml_lang
37
+ map_content to: :content
38
+ map_element "email", to: :email
39
+ map_element "ext-link", to: :ext_link
40
+ map_element "uri", to: :uri
41
+ map_element "bold", to: :bold
42
+ map_element "italic", to: :italic
43
+ map_element "monospace", to: :monospace
44
+ map_element "num", to: :num
45
+ map_element "overline", to: :overline
46
+ map_element "roman", to: :roman
47
+ map_element "sans-serif", to: :sans_serif
48
+ map_element "sc", to: :sc
49
+ map_element "strike", to: :strike
50
+ map_element "underline", to: :underline
51
+ map_element "named-content", to: :named_content
52
+ map_element "styled-content", to: :styled_content
53
+ map_element "sub", to: :sub
54
+ map_element "sup", to: :sup
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Speaker < 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 :degrees, ::Sts::IsoSts::Degrees, collection: true
12
+ attribute :given_names, ::Sts::IsoSts::GivenNames, collection: true
13
+ attribute :prefix, ::Sts::IsoSts::Prefix, collection: true
14
+ attribute :surname, ::Sts::IsoSts::Surname, collection: true
15
+ attribute :suffix, ::Sts::IsoSts::Suffix, collection: true
16
+ attribute :fn, ::Sts::IsoSts::Fn, collection: true
17
+ attribute :target, ::Sts::IsoSts::Target, collection: true
18
+ attribute :entailed_term, ::Sts::TbxIsoTml::EntailedTerm, collection: true
19
+ attribute :xref, ::Sts::IsoSts::Xref, collection: true
20
+
21
+ xml do
22
+ element "speaker"
23
+ mixed_content
24
+
25
+ map_attribute "id", to: :id
26
+ map_attribute "content-type", to: :content_type
27
+ map_attribute "specific-use", to: :specific_use
28
+ map_attribute "xml:lang", to: :xml_lang
29
+ map_content to: :content
30
+ map_element "degrees", to: :degrees
31
+ map_element "given-names", to: :given_names
32
+ map_element "prefix", to: :prefix
33
+ map_element "surname", to: :surname
34
+ map_element "suffix", to: :suffix
35
+ map_element "fn", to: :fn
36
+ map_element "target", to: :target
37
+ map_element "entailedTerm", to: :entailed_term
38
+ map_element "xref", to: :xref
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Speech < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :content_type, :string
8
+ attribute :specific_use, :string
9
+ attribute :xml_lang, :string
10
+ attribute :originator, :string
11
+ attribute :speaker, ::Sts::IsoSts::Speaker
12
+ attribute :paragraph, ::Sts::IsoSts::Paragraph, collection: true
13
+ attribute :non_normative_note, ::Sts::IsoSts::NonNormativeNote,
14
+ collection: true
15
+ attribute :non_normative_example, ::Sts::IsoSts::NonNormativeExample,
16
+ collection: true
17
+
18
+ xml do
19
+ element "speech"
20
+ ordered
21
+
22
+ map_attribute "id", to: :id
23
+ map_attribute "content-type", to: :content_type
24
+ map_attribute "specific-use", to: :specific_use
25
+ map_attribute "xml:lang", to: :xml_lang
26
+ map_attribute "originator", to: :originator
27
+ map_element "speaker", to: :speaker
28
+ map_element "p", to: :paragraph
29
+ map_element "non-normative-note", to: :non_normative_note
30
+ map_element "non-normative-example", to: :non_normative_example
31
+ end
32
+ end
33
+ end
34
+ end
@@ -3,11 +3,13 @@
3
3
  module Sts
4
4
  module IsoSts
5
5
  class StandardRef < Lutaml::Model::Serializable
6
+ attribute :id, :string
6
7
  attribute :type, :string
7
8
  attribute :value, :string
8
9
 
9
10
  xml do
10
11
  element "std-ref"
12
+ map_attribute "id", to: :id
11
13
  map_attribute "type", to: :type
12
14
  map_content to: :value
13
15
  end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Statement < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :content_type, :string
8
+ attribute :specific_use, :string
9
+ attribute :xml_lang, :string
10
+ attribute :originator, :string
11
+ attribute :label, ::Sts::IsoSts::Label
12
+ attribute :title, ::Sts::IsoSts::Title
13
+ attribute :paragraph, ::Sts::IsoSts::Paragraph, collection: true
14
+ attribute :non_normative_note, ::Sts::IsoSts::NonNormativeNote,
15
+ collection: true
16
+ attribute :non_normative_example, ::Sts::IsoSts::NonNormativeExample,
17
+ collection: true
18
+ attribute :attrib, ::Sts::IsoSts::Attrib, collection: true
19
+ attribute :permissions, ::Sts::IsoSts::Permissions, collection: true
20
+
21
+ xml do
22
+ element "statement"
23
+ ordered
24
+
25
+ map_attribute "id", to: :id
26
+ map_attribute "content-type", to: :content_type
27
+ map_attribute "specific-use", to: :specific_use
28
+ map_attribute "xml:lang", to: :xml_lang
29
+ map_attribute "originator", to: :originator
30
+ map_element "label", to: :label
31
+ map_element "title", to: :title
32
+ map_element "p", to: :paragraph
33
+ map_element "non-normative-note", to: :non_normative_note
34
+ map_element "non-normative-example", to: :non_normative_example
35
+ map_element "attrib", to: :attrib
36
+ map_element "permissions", to: :permissions
37
+ end
38
+ end
39
+ end
40
+ end
@@ -3,6 +3,7 @@
3
3
  module Sts
4
4
  module IsoSts
5
5
  class Strike < 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 "strike"
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,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class StringName < 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 :content, :string, collection: true
12
+ attribute :degrees, ::Sts::IsoSts::Degrees, collection: true
13
+ attribute :given_names, ::Sts::IsoSts::GivenNames, collection: true
14
+ attribute :prefix, ::Sts::IsoSts::Prefix, collection: true
15
+ attribute :surname, ::Sts::IsoSts::Surname, collection: true
16
+ attribute :suffix, ::Sts::IsoSts::Suffix, collection: true
17
+
18
+ xml do
19
+ element "string-name"
20
+ mixed_content
21
+
22
+ map_attribute "id", to: :id
23
+ map_attribute "content-type", to: :content_type
24
+ map_attribute "name-style", to: :name_style
25
+ map_attribute "specific-use", to: :specific_use
26
+ map_attribute "xml:lang", to: :xml_lang
27
+ map_content to: :content
28
+ map_element "degrees", to: :degrees
29
+ map_element "given-names", to: :given_names
30
+ map_element "prefix", to: :prefix
31
+ map_element "surname", to: :surname
32
+ map_element "suffix", to: :suffix
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,96 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Subtitle < 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 :inline_supplementary_material, ::Sts::IsoSts::InlineSupplementaryMaterial,
15
+ collection: true
16
+ attribute :related_article, ::Sts::IsoSts::RelatedArticle,
17
+ collection: true
18
+ attribute :related_object, ::Sts::IsoSts::RelatedObject, collection: true
19
+ attribute :bold, ::Sts::IsoSts::Bold, collection: true
20
+ attribute :italic, ::Sts::IsoSts::Italic, collection: true
21
+ attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
22
+ attribute :num, ::Sts::IsoSts::Num, collection: true
23
+ attribute :overline, ::Sts::IsoSts::Overline, collection: true
24
+ attribute :roman, ::Sts::IsoSts::Roman, collection: true
25
+ attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
26
+ attribute :sc, ::Sts::IsoSts::Sc, collection: true
27
+ attribute :strike, ::Sts::IsoSts::Strike, collection: true
28
+ attribute :underline, ::Sts::IsoSts::Underline, collection: true
29
+ attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
30
+ attribute :inline_graphic, ::Sts::IsoSts::InlineGraphic, collection: true
31
+ attribute :private_char, ::Sts::IsoSts::PrivateChar, collection: true
32
+ attribute :chem_struct, ::Sts::IsoSts::ChemStruct, collection: true
33
+ attribute :inline_formula, ::Sts::IsoSts::InlineFormula, collection: true
34
+ attribute :math, ::Mml::V2::Math, collection: true
35
+ attribute :abbrev, ::Sts::IsoSts::Abbrev, collection: true
36
+ attribute :milestone_end, ::Sts::IsoSts::MilestoneEnd, collection: true
37
+ attribute :milestone_start, ::Sts::IsoSts::MilestoneStart,
38
+ collection: true
39
+ attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
40
+ attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
41
+ attribute :fn, ::Sts::IsoSts::Fn, collection: true
42
+ attribute :target, ::Sts::IsoSts::Target, collection: true
43
+ attribute :entailed_term, ::Sts::TbxIsoTml::EntailedTerm, collection: true
44
+ attribute :xref, ::Sts::IsoSts::Xref, collection: true
45
+ attribute :sub, ::Sts::IsoSts::Sub, collection: true
46
+ attribute :sup, ::Sts::IsoSts::Sup, collection: true
47
+ attribute :break, ::Sts::IsoSts::Break, collection: true
48
+
49
+ xml do # rubocop:disable Metrics/BlockLength
50
+ element "subtitle"
51
+ mixed_content
52
+
53
+ map_attribute "id", to: :id
54
+ map_attribute "content-type", to: :content_type
55
+ map_attribute "specific-use", to: :specific_use
56
+ map_attribute "xml:lang", to: :xml_lang
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 "bold", to: :bold
66
+ map_element "italic", to: :italic
67
+ map_element "monospace", to: :monospace
68
+ map_element "num", to: :num
69
+ map_element "overline", to: :overline
70
+ map_element "roman", to: :roman
71
+ map_element "sans-serif", to: :sans_serif
72
+ map_element "sc", to: :sc
73
+ map_element "strike", to: :strike
74
+ map_element "underline", to: :underline
75
+ map_element "alternatives", to: :alternatives
76
+ map_element "inline-graphic", to: :inline_graphic
77
+ map_element "private-char", to: :private_char
78
+ map_element "chem-struct", to: :chem_struct
79
+ map_element "inline-formula", to: :inline_formula
80
+ map_element "math", to: :math
81
+ map_element "abbrev", to: :abbrev
82
+ map_element "milestone-end", to: :milestone_end
83
+ map_element "milestone-start", to: :milestone_start
84
+ map_element "named-content", to: :named_content
85
+ map_element "styled-content", to: :styled_content
86
+ map_element "fn", to: :fn
87
+ map_element "target", to: :target
88
+ map_element "entailedTerm", to: :entailed_term
89
+ map_element "xref", to: :xref
90
+ map_element "sub", to: :sub
91
+ map_element "sup", to: :sup
92
+ map_element "break", to: :break
93
+ end
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Suffix < 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 "suffix"
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,73 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Supplement < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :supplement_type, :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
+ attribute :contrib_group, ::Sts::IsoSts::ContribGroup, collection: true
35
+ attribute :title, ::Sts::IsoSts::Title, collection: true
36
+
37
+ xml do # rubocop:disable Metrics/BlockLength
38
+ element "supplement"
39
+ mixed_content
40
+
41
+ map_attribute "id", to: :id
42
+ map_attribute "supplement-type", to: :supplement_type
43
+ map_attribute "specific-use", to: :specific_use
44
+ map_attribute "xml:lang", to: :xml_lang
45
+ map_content to: :content
46
+ map_element "bold", to: :bold
47
+ map_element "italic", to: :italic
48
+ map_element "monospace", to: :monospace
49
+ map_element "num", to: :num
50
+ map_element "overline", to: :overline
51
+ map_element "roman", to: :roman
52
+ map_element "sans-serif", to: :sans_serif
53
+ map_element "sc", to: :sc
54
+ map_element "strike", to: :strike
55
+ map_element "underline", to: :underline
56
+ map_element "alternatives", to: :alternatives
57
+ map_element "inline-graphic", to: :inline_graphic
58
+ map_element "private-char", to: :private_char
59
+ map_element "chem-struct", to: :chem_struct
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 "sub", to: :sub
67
+ map_element "sup", to: :sup
68
+ map_element "contrib-group", to: :contrib_group
69
+ map_element "title", to: :title
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,108 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class SupplementaryMaterial < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :position, :string
8
+ attribute :orientation, :string
9
+ attribute :specific_use, :string
10
+ attribute :xml_lang, :string
11
+ attribute :content_type, :string
12
+ attribute :mimetype, :string
13
+ attribute :mime_subtype, :string
14
+ attribute :xlink_type, :string
15
+ attribute :xlink_href, :string
16
+ attribute :xlink_role, :string
17
+ attribute :xlink_title, :string
18
+ attribute :xlink_show, :string
19
+ attribute :xlink_actuate, :string
20
+ attribute :originator, :string
21
+ attribute :sts_object_id, ::Sts::IsoSts::ObjectId, collection: true
22
+ attribute :label, ::Sts::IsoSts::Label
23
+ attribute :caption, ::Sts::IsoSts::Caption
24
+ attribute :alt_text, ::Sts::IsoSts::AltText, collection: true
25
+ attribute :long_desc, ::Sts::IsoSts::LongDesc, collection: true
26
+ attribute :email, ::Sts::IsoSts::Email, collection: true
27
+ attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
28
+ attribute :uri, ::Sts::IsoSts::Uri, collection: true
29
+ attribute :disp_formula, ::Sts::IsoSts::DispFormula, collection: true
30
+ attribute :disp_formula_group, ::Sts::IsoSts::DispFormulaGroup,
31
+ collection: true
32
+ attribute :chem_struct_wrap, ::Sts::IsoSts::ChemStructWrap,
33
+ collection: true
34
+ attribute :fn_group, ::Sts::IsoSts::FnGroup, collection: true
35
+ attribute :fn, ::Sts::IsoSts::Fn, collection: true
36
+ attribute :disp_quote, ::Sts::IsoSts::DispQuote, collection: true
37
+ attribute :speech, ::Sts::IsoSts::Speech, collection: true
38
+ attribute :statement, ::Sts::IsoSts::Statement, collection: true
39
+ attribute :verse_group, ::Sts::IsoSts::VerseGroup, collection: true
40
+ attribute :table_wrap, ::Sts::IsoSts::TableWrap, collection: true
41
+ attribute :paragraph, ::Sts::IsoSts::Paragraph, collection: true
42
+ attribute :non_normative_note, ::Sts::IsoSts::NonNormativeNote,
43
+ collection: true
44
+ attribute :non_normative_example, ::Sts::IsoSts::NonNormativeExample,
45
+ collection: true
46
+ attribute :def_list, ::Sts::IsoSts::DefList, collection: true
47
+ attribute :list, ::Sts::IsoSts::List, collection: true
48
+ attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
49
+ attribute :array, ::Sts::IsoSts::Array, collection: true
50
+ attribute :graphic, ::Sts::IsoSts::Graphic, collection: true
51
+ attribute :media, ::Sts::IsoSts::Media, collection: true
52
+ attribute :preformat, ::Sts::IsoSts::Preformat, collection: true
53
+ attribute :attrib, ::Sts::IsoSts::Attrib, collection: true
54
+ attribute :permissions, ::Sts::IsoSts::Permissions, collection: true
55
+
56
+ xml do # rubocop:disable Metrics/BlockLength
57
+ element "supplementary-material"
58
+ ordered
59
+
60
+ map_attribute "id", to: :id
61
+ map_attribute "position", to: :position
62
+ map_attribute "orientation", to: :orientation
63
+ map_attribute "specific-use", to: :specific_use
64
+ map_attribute "xml:lang", to: :xml_lang
65
+ map_attribute "content-type", to: :content_type
66
+ map_attribute "mimetype", to: :mimetype
67
+ map_attribute "mime-subtype", to: :mime_subtype
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_attribute "originator", to: :originator
75
+ map_element "object-id", to: :sts_object_id
76
+ map_element "label", to: :label
77
+ map_element "caption", to: :caption
78
+ map_element "alt-text", to: :alt_text
79
+ map_element "long-desc", to: :long_desc
80
+ map_element "email", to: :email
81
+ map_element "ext-link", to: :ext_link
82
+ map_element "uri", to: :uri
83
+ map_element "disp-formula", to: :disp_formula
84
+ map_element "disp-formula-group", to: :disp_formula_group
85
+ map_element "chem-struct-wrap", to: :chem_struct_wrap
86
+ map_element "fn-group", to: :fn_group
87
+ map_element "fn", to: :fn
88
+ map_element "disp-quote", to: :disp_quote
89
+ map_element "speech", to: :speech
90
+ map_element "statement", to: :statement
91
+ map_element "verse-group", to: :verse_group
92
+ map_element "table-wrap", to: :table_wrap
93
+ map_element "p", to: :paragraph
94
+ map_element "non-normative-note", to: :non_normative_note
95
+ map_element "non-normative-example", to: :non_normative_example
96
+ map_element "def-list", to: :def_list
97
+ map_element "list", to: :list
98
+ map_element "alternatives", to: :alternatives
99
+ map_element "array", to: :array
100
+ map_element "graphic", to: :graphic
101
+ map_element "media", to: :media
102
+ map_element "preformat", to: :preformat
103
+ map_element "attrib", to: :attrib
104
+ map_element "permissions", to: :permissions
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Surname < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :initials, :string
8
+ attribute :content, :string, collection: true
9
+
10
+ xml do
11
+ element "surname"
12
+ mixed_content
13
+
14
+ map_attribute "id", to: :id
15
+ map_attribute "initials", to: :initials
16
+ map_content to: :content
17
+ end
18
+ end
19
+ end
20
+ end