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
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class TableWrapGroup < 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 :originator, :string
13
+ attribute :label, ::Sts::IsoSts::Label
14
+ attribute :caption, ::Sts::IsoSts::Caption
15
+ attribute :alt_text, ::Sts::IsoSts::AltText, collection: true
16
+ attribute :long_desc, ::Sts::IsoSts::LongDesc, collection: true
17
+ attribute :email, ::Sts::IsoSts::Email, collection: true
18
+ attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
19
+ attribute :uri, ::Sts::IsoSts::Uri, collection: true
20
+ attribute :table_wrap, ::Sts::IsoSts::TableWrap, collection: true
21
+
22
+ xml do
23
+ element "table-wrap-group"
24
+ ordered
25
+
26
+ map_attribute "id", to: :id
27
+ map_attribute "position", to: :position
28
+ map_attribute "orientation", to: :orientation
29
+ map_attribute "specific-use", to: :specific_use
30
+ map_attribute "xml:lang", to: :xml_lang
31
+ map_attribute "content-type", to: :content_type
32
+ map_attribute "originator", to: :originator
33
+ map_element "label", to: :label
34
+ map_element "caption", to: :caption
35
+ map_element "alt-text", to: :alt_text
36
+ map_element "long-desc", to: :long_desc
37
+ map_element "email", to: :email
38
+ map_element "ext-link", to: :ext_link
39
+ map_element "uri", to: :uri
40
+ map_element "table-wrap", to: :table_wrap
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Target < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :target_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 :named_content, ::Sts::IsoSts::NamedContent, collection: true
22
+ attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
23
+ attribute :sub, ::Sts::IsoSts::Sub, collection: true
24
+ attribute :sup, ::Sts::IsoSts::Sup, collection: true
25
+
26
+ xml do
27
+ element "target"
28
+ mixed_content
29
+
30
+ map_attribute "id", to: :id
31
+ map_attribute "target-type", to: :target_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 "named-content", to: :named_content
46
+ map_element "styled-content", to: :styled_content
47
+ map_element "sub", to: :sub
48
+ map_element "sup", to: :sup
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,81 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class TermDisplay < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :xml_lang, :string
8
+ attribute :title, ::Sts::IsoSts::Title, collection: true
9
+ attribute :address, ::Sts::IsoSts::Address, collection: true
10
+ attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
11
+ attribute :array, ::Sts::IsoSts::Array, collection: true
12
+ attribute :boxed_text, ::Sts::IsoSts::BoxedText, collection: true
13
+ attribute :chem_struct_wrap, ::Sts::IsoSts::ChemStructWrap,
14
+ collection: true
15
+ attribute :fig, ::Sts::IsoSts::Fig, collection: true
16
+ attribute :fig_group, ::Sts::IsoSts::FigGroup, collection: true
17
+ attribute :graphic, ::Sts::IsoSts::Graphic, collection: true
18
+ attribute :media, ::Sts::IsoSts::Media, collection: true
19
+ attribute :non_normative_note, ::Sts::IsoSts::NonNormativeNote,
20
+ collection: true
21
+ attribute :non_normative_example, ::Sts::IsoSts::NonNormativeExample,
22
+ collection: true
23
+ attribute :preformat, ::Sts::IsoSts::Preformat, collection: true
24
+ attribute :supplementary_material, ::Sts::IsoSts::SupplementaryMaterial,
25
+ collection: true
26
+ attribute :table_wrap, ::Sts::IsoSts::TableWrap, collection: true
27
+ attribute :table_wrap_group, ::Sts::IsoSts::TableWrapGroup,
28
+ collection: true
29
+ attribute :disp_formula, ::Sts::IsoSts::DispFormula, collection: true
30
+ attribute :disp_formula_group, ::Sts::IsoSts::DispFormulaGroup,
31
+ collection: true
32
+ attribute :paragraph, ::Sts::IsoSts::Paragraph, collection: true
33
+ attribute :def_list, ::Sts::IsoSts::DefList, collection: true
34
+ attribute :list, ::Sts::IsoSts::List, collection: true
35
+ attribute :math, ::Mml::V2::Math, collection: true
36
+ attribute :related_article, ::Sts::IsoSts::RelatedArticle,
37
+ collection: true
38
+ attribute :related_object, ::Sts::IsoSts::RelatedObject, collection: true
39
+ attribute :disp_quote, ::Sts::IsoSts::DispQuote, collection: true
40
+ attribute :speech, ::Sts::IsoSts::Speech, collection: true
41
+ attribute :statement, ::Sts::IsoSts::Statement, collection: true
42
+ attribute :verse_group, ::Sts::IsoSts::VerseGroup, collection: true
43
+
44
+ xml do # rubocop:disable Metrics/BlockLength
45
+ element "term-display"
46
+ ordered
47
+
48
+ map_attribute "id", to: :id
49
+ map_attribute "xml:lang", to: :xml_lang
50
+ map_element "title", to: :title
51
+ map_element "address", to: :address
52
+ map_element "alternatives", to: :alternatives
53
+ map_element "array", to: :array
54
+ map_element "boxed-text", to: :boxed_text
55
+ map_element "chem-struct-wrap", to: :chem_struct_wrap
56
+ map_element "fig", to: :fig
57
+ map_element "fig-group", to: :fig_group
58
+ map_element "graphic", to: :graphic
59
+ map_element "media", to: :media
60
+ map_element "non-normative-note", to: :non_normative_note
61
+ map_element "non-normative-example", to: :non_normative_example
62
+ map_element "preformat", to: :preformat
63
+ map_element "supplementary-material", to: :supplementary_material
64
+ map_element "table-wrap", to: :table_wrap
65
+ map_element "table-wrap-group", to: :table_wrap_group
66
+ map_element "disp-formula", to: :disp_formula
67
+ map_element "disp-formula-group", to: :disp_formula_group
68
+ map_element "p", to: :paragraph
69
+ map_element "def-list", to: :def_list
70
+ map_element "list", to: :list
71
+ map_element "math", to: :math
72
+ map_element "related-article", to: :related_article
73
+ map_element "related-object", to: :related_object
74
+ map_element "disp-quote", to: :disp_quote
75
+ map_element "speech", to: :speech
76
+ map_element "statement", to: :statement
77
+ map_element "verse-group", to: :verse_group
78
+ end
79
+ end
80
+ end
81
+ end
@@ -4,24 +4,31 @@ module Sts
4
4
  module IsoSts
5
5
  class TermHead < Lutaml::Model::Serializable
6
6
  attribute :id, :string
7
- attribute :content_type, :string
8
- attribute :specific_use, :string
9
- attribute :xml_lang, :string
10
7
  attribute :content, :string, collection: true
11
8
  attribute :email, ::Sts::IsoSts::Email, collection: true
12
9
  attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
13
10
  attribute :uri, ::Sts::IsoSts::Uri, collection: true
14
- attribute :mixed_citation, ::Sts::IsoSts::MixedCitation, collection: true
15
- attribute :std, ::Sts::IsoSts::Std, 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
16
16
  attribute :bold, ::Sts::IsoSts::Bold, collection: true
17
17
  attribute :italic, ::Sts::IsoSts::Italic, collection: true
18
18
  attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
19
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
20
23
  attribute :sc, ::Sts::IsoSts::Sc, collection: true
21
24
  attribute :strike, ::Sts::IsoSts::Strike, collection: true
22
25
  attribute :underline, ::Sts::IsoSts::Underline, collection: true
26
+ attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
23
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
24
30
  attribute :inline_formula, ::Sts::IsoSts::InlineFormula, collection: true
31
+ attribute :math, ::Mml::V2::Math, collection: true
25
32
  attribute :abbrev, ::Sts::IsoSts::Abbrev, collection: true
26
33
  attribute :milestone_end, ::Sts::IsoSts::MilestoneEnd, collection: true
27
34
  attribute :milestone_start, ::Sts::IsoSts::MilestoneStart,
@@ -29,8 +36,9 @@ module Sts
29
36
  attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
30
37
  attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
31
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
32
41
  attribute :xref, ::Sts::IsoSts::Xref, collection: true
33
- attribute :std_ref, ::Sts::IsoSts::StdRef, collection: true
34
42
  attribute :sub, ::Sts::IsoSts::Sub, collection: true
35
43
  attribute :sup, ::Sts::IsoSts::Sup, collection: true
36
44
 
@@ -39,33 +47,39 @@ module Sts
39
47
  mixed_content
40
48
 
41
49
  map_attribute "id", to: :id
42
- map_attribute "content-type", to: :content_type
43
- map_attribute "specific-use", to: :specific_use
44
- map_attribute "xml:lang", to: :xml_lang
45
-
46
50
  map_content to: :content
47
51
  map_element "email", to: :email
48
52
  map_element "ext-link", to: :ext_link
49
53
  map_element "uri", to: :uri
50
- map_element "mixed-citation", to: :mixed_citation
51
- map_element "std", to: :std
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
52
58
  map_element "bold", to: :bold
53
59
  map_element "italic", to: :italic
54
60
  map_element "monospace", to: :monospace
55
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
56
65
  map_element "sc", to: :sc
57
66
  map_element "strike", to: :strike
58
67
  map_element "underline", to: :underline
68
+ map_element "alternatives", to: :alternatives
59
69
  map_element "inline-graphic", to: :inline_graphic
70
+ map_element "private-char", to: :private_char
71
+ map_element "chem-struct", to: :chem_struct
60
72
  map_element "inline-formula", to: :inline_formula
73
+ map_element "math", to: :math
61
74
  map_element "abbrev", to: :abbrev
62
75
  map_element "milestone-end", to: :milestone_end
63
76
  map_element "milestone-start", to: :milestone_start
64
77
  map_element "named-content", to: :named_content
65
78
  map_element "styled-content", to: :styled_content
66
79
  map_element "fn", to: :fn
80
+ map_element "target", to: :target
81
+ map_element "entailedTerm", to: :entailed_term
67
82
  map_element "xref", to: :xref
68
- map_element "std-ref", to: :std_ref
69
83
  map_element "sub", to: :sub
70
84
  map_element "sup", to: :sup
71
85
  end
@@ -10,7 +10,7 @@ module Sts
10
10
  attribute :originator, :string
11
11
  attribute :label, ::Sts::IsoSts::Label
12
12
  attribute :term_entry, ::Sts::TbxIsoTml::TermEntry
13
- attribute :term_display, ::Sts::NisoSts::TermDisplay, collection: true
13
+ attribute :term_display, ::Sts::IsoSts::TermDisplay, collection: true
14
14
  attribute :paragraph, ::Sts::IsoSts::Paragraph, collection: true
15
15
  attribute :list, ::Sts::IsoSts::List, collection: true
16
16
  attribute :def_list, ::Sts::IsoSts::DefList, collection: true
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class TextualForm < 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 :inline_graphic, ::Sts::IsoSts::InlineGraphic, collection: true
21
+ attribute :private_char, ::Sts::IsoSts::PrivateChar, collection: true
22
+ attribute :math, ::Mml::V2::Math, 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 "textual-form"
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 "bold", to: :bold
37
+ map_element "italic", to: :italic
38
+ map_element "monospace", to: :monospace
39
+ map_element "num", to: :num
40
+ map_element "overline", to: :overline
41
+ map_element "roman", to: :roman
42
+ map_element "sans-serif", to: :sans_serif
43
+ map_element "sc", to: :sc
44
+ map_element "strike", to: :strike
45
+ map_element "underline", to: :underline
46
+ map_element "inline-graphic", to: :inline_graphic
47
+ map_element "private-char", to: :private_char
48
+ map_element "math", to: :math
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,58 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class TransSource < 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 "trans-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,96 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class TransTitle < 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 "trans-title"
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
@@ -3,6 +3,7 @@
3
3
  module Sts
4
4
  module IsoSts
5
5
  class Underline < Lutaml::Model::Serializable
6
+ attribute :id, :string
6
7
  attribute :underline_style, :string
7
8
  attribute :specific_use, :string
8
9
  attribute :content, :string, collection: true
@@ -15,6 +16,7 @@ module Sts
15
16
  element "underline"
16
17
  mixed_content
17
18
 
19
+ map_attribute "id", to: :id
18
20
  map_attribute "underline-style", to: :underline_style
19
21
  map_attribute "specific-use", to: :specific_use
20
22
  map_content to: :content
@@ -3,6 +3,7 @@
3
3
  module Sts
4
4
  module IsoSts
5
5
  class Uri < Lutaml::Model::Serializable
6
+ attribute :id, :string
6
7
  attribute :content_type, :string
7
8
  attribute :specific_use, :string
8
9
  attribute :xml_lang, :string
@@ -18,6 +19,7 @@ module Sts
18
19
  element "uri"
19
20
  mixed_content
20
21
 
22
+ map_attribute "id", to: :id
21
23
  map_attribute "content-type", to: :content_type
22
24
  map_attribute "specific-use", to: :specific_use
23
25
  map_attribute "xml:lang", to: :xml_lang
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class VerseGroup < 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 :subtitle, ::Sts::IsoSts::Subtitle
14
+ attribute :verse_line, ::Sts::IsoSts::VerseLine, collection: true
15
+ attribute :verse_group, ::Sts::IsoSts::VerseGroup, collection: true
16
+ attribute :attrib, ::Sts::IsoSts::Attrib, collection: true
17
+ attribute :permissions, ::Sts::IsoSts::Permissions, collection: true
18
+
19
+ xml do
20
+ element "verse-group"
21
+ ordered
22
+
23
+ map_attribute "id", to: :id
24
+ map_attribute "content-type", to: :content_type
25
+ map_attribute "specific-use", to: :specific_use
26
+ map_attribute "xml:lang", to: :xml_lang
27
+ map_attribute "originator", to: :originator
28
+ map_element "label", to: :label
29
+ map_element "title", to: :title
30
+ map_element "subtitle", to: :subtitle
31
+ map_element "verse-line", to: :verse_line
32
+ map_element "verse-group", to: :verse_group
33
+ map_element "attrib", to: :attrib
34
+ map_element "permissions", to: :permissions
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class VerseLine < 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 :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 "verse-line"
37
+ mixed_content
38
+
39
+ map_attribute "id", to: :id
40
+ map_attribute "content-type", to: :content_type
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
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class VolumeId < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :pub_id_type, :string
8
+ attribute :content_type, :string
9
+ attribute :specific_use, :string
10
+ attribute :xml_lang, :string
11
+ attribute :content, :string, collection: true
12
+
13
+ xml do
14
+ element "volume-id"
15
+ mixed_content
16
+
17
+ map_attribute "id", to: :id
18
+ map_attribute "pub-id-type", to: :pub_id_type
19
+ map_attribute "content-type", to: :content_type
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