sts 0.5.2 → 0.5.3

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 (197) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +3 -0
  3. data/.rubocop.yml +3 -0
  4. data/.rubocop_todo.yml +17 -3
  5. data/CLAUDE.md +72 -0
  6. data/Gemfile +1 -1
  7. data/lib/sts/content_groups/helpers.rb +27 -0
  8. data/lib/sts/enum_values.rb +17 -0
  9. data/lib/sts/iso_sts/app.rb +26 -1
  10. data/lib/sts/iso_sts/app_group.rb +1 -0
  11. data/lib/sts/iso_sts/array.rb +1 -0
  12. data/lib/sts/iso_sts/back.rb +1 -0
  13. data/lib/sts/iso_sts/body.rb +4 -0
  14. data/lib/sts/iso_sts/bold.rb +23 -11
  15. data/lib/sts/iso_sts/caption.rb +1 -0
  16. data/lib/sts/iso_sts/content_groups/highlight_elements.rb +285 -0
  17. data/lib/sts/iso_sts/def.rb +1 -0
  18. data/lib/sts/iso_sts/def_item.rb +1 -0
  19. data/lib/sts/iso_sts/def_list.rb +1 -0
  20. data/lib/sts/iso_sts/disp_formula.rb +5 -1
  21. data/lib/sts/iso_sts/document_identification.rb +1 -0
  22. data/lib/sts/iso_sts/fig.rb +1 -0
  23. data/lib/sts/iso_sts/fn.rb +1 -0
  24. data/lib/sts/iso_sts/fn_group.rb +1 -0
  25. data/lib/sts/iso_sts/front.rb +3 -0
  26. data/lib/sts/iso_sts/graphic.rb +5 -0
  27. data/lib/sts/iso_sts/inline_formula.rb +1 -1
  28. data/lib/sts/iso_sts/iso_meta.rb +2 -1
  29. data/lib/sts/iso_sts/italic.rb +23 -11
  30. data/lib/sts/iso_sts/list.rb +1 -0
  31. data/lib/sts/iso_sts/list_item.rb +7 -4
  32. data/lib/sts/iso_sts/mathml2/math.rb +20 -18
  33. data/lib/sts/iso_sts/mixed_citation.rb +34 -10
  34. data/lib/sts/iso_sts/nat_meta.rb +1 -0
  35. data/lib/sts/iso_sts/non_normative_example.rb +5 -0
  36. data/lib/sts/iso_sts/non_normative_note.rb +1 -0
  37. data/lib/sts/iso_sts/paragraph.rb +32 -20
  38. data/lib/sts/iso_sts/permissions.rb +1 -0
  39. data/lib/sts/iso_sts/preformat.rb +8 -5
  40. data/lib/sts/iso_sts/ref.rb +1 -0
  41. data/lib/sts/iso_sts/ref_list.rb +1 -0
  42. data/lib/sts/iso_sts/reg_meta.rb +1 -0
  43. data/lib/sts/iso_sts/sec.rb +10 -0
  44. data/lib/sts/iso_sts/standard.rb +6 -0
  45. data/lib/sts/iso_sts/standard_cross_reference.rb +1 -0
  46. data/lib/sts/iso_sts/standard_identification.rb +1 -0
  47. data/lib/sts/iso_sts/std.rb +4 -4
  48. data/lib/sts/iso_sts/styled_content.rb +17 -15
  49. data/lib/sts/iso_sts/table.rb +1 -0
  50. data/lib/sts/iso_sts/table_wrap.rb +1 -0
  51. data/lib/sts/iso_sts/table_wrap_foot.rb +1 -0
  52. data/lib/sts/iso_sts/td.rb +32 -14
  53. data/lib/sts/iso_sts/term.rb +1 -1
  54. data/lib/sts/iso_sts/term_sec.rb +1 -0
  55. data/lib/sts/iso_sts/th.rb +32 -14
  56. data/lib/sts/iso_sts/title.rb +15 -7
  57. data/lib/sts/iso_sts/title_wrap.rb +1 -0
  58. data/lib/sts/iso_sts/tr.rb +1 -0
  59. data/lib/sts/iso_sts.rb +2 -0
  60. data/lib/sts/{niso_sts/mathml.rb → mathml.rb} +1 -3
  61. data/lib/sts/namespaces.rb +1 -0
  62. data/lib/sts/niso_sts/abstract.rb +1 -0
  63. data/lib/sts/niso_sts/ack.rb +1 -1
  64. data/lib/sts/niso_sts/address.rb +1 -0
  65. data/lib/sts/niso_sts/adoption.rb +1 -1
  66. data/lib/sts/niso_sts/adoption_front.rb +1 -0
  67. data/lib/sts/niso_sts/alternatives.rb +1 -4
  68. data/lib/sts/niso_sts/annotation.rb +1 -3
  69. data/lib/sts/niso_sts/app.rb +14 -1
  70. data/lib/sts/niso_sts/app_group.rb +5 -0
  71. data/lib/sts/niso_sts/author_comment.rb +1 -3
  72. data/lib/sts/niso_sts/author_notes.rb +1 -1
  73. data/lib/sts/niso_sts/award_group.rb +1 -0
  74. data/lib/sts/niso_sts/back.rb +5 -4
  75. data/lib/sts/niso_sts/bio.rb +1 -3
  76. data/lib/sts/niso_sts/body.rb +36 -0
  77. data/lib/sts/niso_sts/boxed_text.rb +5 -1
  78. data/lib/sts/niso_sts/break.rb +11 -0
  79. data/lib/sts/niso_sts/caption.rb +7 -1
  80. data/lib/sts/niso_sts/chem_struct_wrap.rb +1 -0
  81. data/lib/sts/niso_sts/citation_alternatives.rb +1 -0
  82. data/lib/sts/niso_sts/collab.rb +8 -0
  83. data/lib/sts/niso_sts/conference.rb +1 -0
  84. data/lib/sts/niso_sts/content_groups/body_elements.rb +50 -0
  85. data/lib/sts/niso_sts/content_groups/citation_elements.rb +74 -0
  86. data/lib/sts/niso_sts/content_groups/emphasized_text.rb +67 -0
  87. data/lib/sts/niso_sts/content_groups/highlight_elements.rb +51 -0
  88. data/lib/sts/niso_sts/content_groups/inside_cell.rb +116 -0
  89. data/lib/sts/niso_sts/content_groups/p_elements.rb +41 -0
  90. data/lib/sts/niso_sts/content_groups/para_level.rb +67 -0
  91. data/lib/sts/niso_sts/content_groups/styled_content_elements.rb +93 -0
  92. data/lib/sts/niso_sts/content_groups/table_group_attributes.rb +62 -0
  93. data/lib/sts/niso_sts/content_groups.rb +8 -0
  94. data/lib/sts/niso_sts/contrib.rb +1 -0
  95. data/lib/sts/niso_sts/contrib_group.rb +1 -0
  96. data/lib/sts/niso_sts/counts.rb +1 -0
  97. data/lib/sts/niso_sts/custom_meta.rb +1 -0
  98. data/lib/sts/niso_sts/date.rb +1 -0
  99. data/lib/sts/niso_sts/def_item.rb +9 -0
  100. data/lib/sts/niso_sts/def_list.rb +6 -1
  101. data/lib/sts/niso_sts/disp_formula_group.rb +3 -4
  102. data/lib/sts/niso_sts/disp_quote.rb +1 -1
  103. data/lib/sts/niso_sts/display_formula.rb +12 -0
  104. data/lib/sts/niso_sts/document_identification.rb +1 -0
  105. data/lib/sts/niso_sts/editing_instruction.rb +1 -3
  106. data/lib/sts/niso_sts/element_citation.rb +1 -1
  107. data/lib/sts/niso_sts/ext_link.rb +16 -2
  108. data/lib/sts/niso_sts/fig_group.rb +1 -0
  109. data/lib/sts/niso_sts/figure.rb +14 -1
  110. data/lib/sts/niso_sts/floats_group.rb +1 -4
  111. data/lib/sts/niso_sts/fn.rb +2 -1
  112. data/lib/sts/niso_sts/front.rb +1 -0
  113. data/lib/sts/niso_sts/funding_group.rb +1 -0
  114. data/lib/sts/niso_sts/glossary.rb +1 -1
  115. data/lib/sts/niso_sts/graphic.rb +2 -0
  116. data/lib/sts/niso_sts/ics.rb +2 -0
  117. data/lib/sts/niso_sts/index_term.rb +1 -0
  118. data/lib/sts/niso_sts/inline_formula.rb +11 -0
  119. data/lib/sts/niso_sts/institution_wrap.rb +1 -0
  120. data/lib/sts/niso_sts/kwd_group.rb +1 -0
  121. data/lib/sts/niso_sts/label.rb +3 -2
  122. data/lib/sts/niso_sts/list.rb +7 -2
  123. data/lib/sts/niso_sts/list_item.rb +7 -2
  124. data/lib/sts/niso_sts/media.rb +1 -0
  125. data/lib/sts/niso_sts/meta_note.rb +1 -1
  126. data/lib/sts/niso_sts/metadata_iso.rb +1 -1
  127. data/lib/sts/niso_sts/metadata_std.rb +16 -6
  128. data/lib/sts/niso_sts/milestone_end.rb +1 -3
  129. data/lib/sts/niso_sts/milestone_start.rb +1 -3
  130. data/lib/sts/niso_sts/mixed_citation.rb +22 -0
  131. data/lib/sts/niso_sts/monospace.rb +9 -0
  132. data/lib/sts/niso_sts/name.rb +1 -0
  133. data/lib/sts/niso_sts/nat_meta.rb +1 -0
  134. data/lib/sts/niso_sts/nested_kwd.rb +1 -0
  135. data/lib/sts/niso_sts/nlm_citation.rb +1 -1
  136. data/lib/sts/niso_sts/non_normative_example.rb +15 -2
  137. data/lib/sts/niso_sts/non_normative_note.rb +12 -2
  138. data/lib/sts/niso_sts/normative_example.rb +1 -1
  139. data/lib/sts/niso_sts/normative_note.rb +1 -1
  140. data/lib/sts/niso_sts/note.rb +1 -1
  141. data/lib/sts/niso_sts/notes.rb +1 -1
  142. data/lib/sts/niso_sts/notes_group.rb +1 -0
  143. data/lib/sts/niso_sts/open_access.rb +1 -4
  144. data/lib/sts/niso_sts/paragraph.rb +37 -7
  145. data/lib/sts/niso_sts/permissions.rb +1 -0
  146. data/lib/sts/niso_sts/preformat.rb +15 -0
  147. data/lib/sts/niso_sts/private_char.rb +1 -3
  148. data/lib/sts/niso_sts/pub_date.rb +2 -0
  149. data/lib/sts/niso_sts/publisher.rb +1 -0
  150. data/lib/sts/niso_sts/reference.rb +1 -0
  151. data/lib/sts/niso_sts/reference_list.rb +6 -1
  152. data/lib/sts/niso_sts/reference_standard.rb +2 -0
  153. data/lib/sts/niso_sts/reg_meta.rb +1 -0
  154. data/lib/sts/niso_sts/release_date.rb +9 -6
  155. data/lib/sts/niso_sts/ruby.rb +1 -0
  156. data/lib/sts/niso_sts/section.rb +39 -4
  157. data/lib/sts/niso_sts/speech.rb +1 -1
  158. data/lib/sts/niso_sts/standard.rb +3 -0
  159. data/lib/sts/niso_sts/standard_identification.rb +1 -1
  160. data/lib/sts/niso_sts/statement.rb +1 -1
  161. data/lib/sts/niso_sts/std_doc_meta.rb +1 -0
  162. data/lib/sts/niso_sts/std_org.rb +1 -0
  163. data/lib/sts/niso_sts/styled_content.rb +37 -0
  164. data/lib/sts/niso_sts/sub.rb +11 -0
  165. data/lib/sts/niso_sts/subj_group.rb +1 -0
  166. data/lib/sts/niso_sts/sup.rb +13 -0
  167. data/lib/sts/niso_sts/supplementary_material.rb +1 -0
  168. data/lib/sts/niso_sts/term_display.rb +1 -0
  169. data/lib/sts/niso_sts/term_section.rb +3 -3
  170. data/lib/sts/niso_sts/title.rb +20 -0
  171. data/lib/sts/niso_sts/trans_abstract.rb +1 -0
  172. data/lib/sts/niso_sts/underline.rb +5 -0
  173. data/lib/sts/niso_sts/uri.rb +2 -0
  174. data/lib/sts/niso_sts/verse_group.rb +1 -1
  175. data/lib/sts/niso_sts/volume_issue_group.rb +1 -4
  176. data/lib/sts/tbx_iso_tml/bold.rb +28 -1
  177. data/lib/sts/tbx_iso_tml/col.rb +10 -0
  178. data/lib/sts/tbx_iso_tml/definition.rb +16 -2
  179. data/lib/sts/tbx_iso_tml/example.rb +9 -1
  180. data/lib/sts/tbx_iso_tml/fn.rb +3 -2
  181. data/lib/sts/tbx_iso_tml/italic.rb +25 -1
  182. data/lib/sts/tbx_iso_tml/msup.rb +2 -1
  183. data/lib/sts/tbx_iso_tml/note.rb +11 -7
  184. data/lib/sts/tbx_iso_tml/source.rb +4 -0
  185. data/lib/sts/tbx_iso_tml/table.rb +1 -0
  186. data/lib/sts/tbx_iso_tml/table_wrap.rb +3 -0
  187. data/lib/sts/tbx_iso_tml/table_wrap_foot.rb +1 -0
  188. data/lib/sts/tbx_iso_tml/tbody.rb +9 -1
  189. data/lib/sts/tbx_iso_tml/td.rb +22 -8
  190. data/lib/sts/tbx_iso_tml/term.rb +9 -5
  191. data/lib/sts/tbx_iso_tml/tfoot.rb +5 -1
  192. data/lib/sts/tbx_iso_tml/th.rb +27 -6
  193. data/lib/sts/tbx_iso_tml/thead.rb +9 -1
  194. data/lib/sts/tbx_iso_tml/tr.rb +16 -0
  195. data/lib/sts/version.rb +1 -1
  196. data/lib/sts.rb +10 -0
  197. metadata +19 -3
@@ -7,6 +7,11 @@ module Sts
7
7
  attribute :specific_use, :string
8
8
  attribute :toggle, :string
9
9
  attribute :content, :string, collection: true
10
+ attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
11
+ attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
12
+ attribute :underline, ::Sts::NisoSts::Underline, collection: true
13
+ attribute :styled_content, ::Sts::NisoSts::StyledContent, collection: true
14
+
10
15
  xml do
11
16
  element "monospace"
12
17
  mixed_content
@@ -15,6 +20,10 @@ module Sts
15
20
  map_attribute "specific-use", to: :specific_use
16
21
  map_attribute "toggle", to: :toggle
17
22
  map_content to: :content
23
+ map_element "bold", to: :bold
24
+ map_element "italic", to: :italic
25
+ map_element "underline", to: :underline
26
+ map_element "styled-content", to: :styled_content
18
27
  end
19
28
  end
20
29
  end
@@ -12,6 +12,7 @@ module Sts
12
12
 
13
13
  xml do
14
14
  element "name"
15
+ ordered
15
16
 
16
17
  map_attribute "name-style", to: :name_style
17
18
  map_attribute "content-type", to: :content_type
@@ -22,6 +22,7 @@ module Sts
22
22
 
23
23
  xml do
24
24
  element "nat-meta"
25
+ ordered
25
26
 
26
27
  map_element "title-wrap", to: :title_wrap
27
28
  map_element "std-ident", to: :std_ident
@@ -9,6 +9,7 @@ module Sts
9
9
 
10
10
  xml do
11
11
  element "nested-kwd"
12
+ ordered
12
13
 
13
14
  map_element "kwd", to: :kwd
14
15
  map_element "kwd-group", to: :kwd_group
@@ -50,7 +50,7 @@ module Sts
50
50
 
51
51
  xml do
52
52
  element "nlm-citation"
53
- mixed_content
53
+ ordered
54
54
 
55
55
  map_attribute "citation-type", to: :citation_type
56
56
  map_attribute "id", to: :id
@@ -4,16 +4,29 @@ module Sts
4
4
  module NisoSts
5
5
  class NonNormativeExample < Lutaml::Model::Serializable
6
6
  attribute :id, :string
7
- attribute :p, ::Sts::NisoSts::Paragraph
7
+ attribute :p, ::Sts::NisoSts::Paragraph, collection: true
8
8
  attribute :label, ::Sts::NisoSts::Label
9
+ attribute :list, ::Sts::NisoSts::List, collection: true
10
+ attribute :preformat, ::Sts::NisoSts::Preformat, collection: true
11
+ attribute :boxed_text, ::Sts::NisoSts::BoxedText, collection: true
12
+ attribute :graphic, ::Sts::NisoSts::Graphic, collection: true
13
+ attribute :table_wrap, ::Sts::TbxIsoTml::TableWrap, collection: true
14
+ attribute :non_normative_example, ::Sts::NisoSts::NonNormativeExample,
15
+ collection: true
9
16
 
10
17
  xml do
11
18
  element "non-normative-example"
12
- mixed_content
19
+ ordered
13
20
 
14
21
  map_attribute "id", to: :id
15
22
  map_element "p", to: :p
16
23
  map_element "label", to: :label
24
+ map_element "list", to: :list
25
+ map_element "preformat", to: :preformat
26
+ map_element "boxed-text", to: :boxed_text
27
+ map_element "graphic", to: :graphic
28
+ map_element "table-wrap", to: :table_wrap
29
+ map_element "non-normative-example", to: :non_normative_example
17
30
  end
18
31
  end
19
32
  end
@@ -5,18 +5,28 @@ module Sts
5
5
  class NonNormativeNote < Lutaml::Model::Serializable
6
6
  attribute :id, :string
7
7
  attribute :content_type, :string
8
- attribute :p, ::Sts::NisoSts::Paragraph
8
+ attribute :p, ::Sts::NisoSts::Paragraph, collection: true
9
9
  attribute :label, ::Sts::NisoSts::Label
10
+ attribute :list, ::Sts::NisoSts::List, collection: true
11
+ attribute :preformat, ::Sts::NisoSts::Preformat, collection: true
12
+ attribute :boxed_text, ::Sts::NisoSts::BoxedText, collection: true
13
+ attribute :graphic, ::Sts::NisoSts::Graphic, collection: true
14
+ attribute :array, ::Sts::NisoSts::SectionArray, collection: true
10
15
 
11
16
  xml do
12
17
  element "non-normative-note"
13
- mixed_content
18
+ ordered
14
19
 
15
20
  map_attribute "content-type", to: :content_type
16
21
  map_attribute "id", to: :id
17
22
 
18
23
  map_element "p", to: :p
19
24
  map_element "label", to: :label
25
+ map_element "list", to: :list
26
+ map_element "preformat", to: :preformat
27
+ map_element "boxed-text", to: :boxed_text
28
+ map_element "graphic", to: :graphic
29
+ map_element "array", to: :array
20
30
  end
21
31
  end
22
32
  end
@@ -12,7 +12,7 @@ module Sts
12
12
 
13
13
  xml do
14
14
  element "normative-example"
15
- mixed_content
15
+ ordered
16
16
 
17
17
  map_attribute "id", to: :id
18
18
  map_attribute "xml:lang", to: :xml_lang
@@ -13,7 +13,7 @@ module Sts
13
13
 
14
14
  xml do
15
15
  element "normative-note"
16
- mixed_content
16
+ ordered
17
17
 
18
18
  map_attribute "id", to: :id
19
19
  map_attribute "content-type", to: :content_type
@@ -13,7 +13,7 @@ module Sts
13
13
 
14
14
  xml do
15
15
  element "note"
16
- mixed_content
16
+ ordered
17
17
 
18
18
  map_attribute "id", to: :id
19
19
  map_attribute "content-type", to: :content_type
@@ -14,7 +14,7 @@ module Sts
14
14
 
15
15
  xml do
16
16
  element "notes"
17
- mixed_content
17
+ ordered
18
18
 
19
19
  map_attribute "id", to: :id
20
20
  map_attribute "notes-type", to: :notes_type
@@ -12,6 +12,7 @@ module Sts
12
12
 
13
13
  xml do
14
14
  element "notes-group"
15
+ ordered
15
16
 
16
17
  map_attribute "id", to: :id
17
18
  map_attribute "content-type", to: :content_type
@@ -3,12 +3,9 @@
3
3
  module Sts
4
4
  module NisoSts
5
5
  class OpenAccess < Lutaml::Model::Serializable
6
- attribute :content, :string, collection: true
7
6
  xml do
8
7
  element "open-access"
9
- mixed_content
10
-
11
- map_content to: :content
8
+ ordered
12
9
  end
13
10
  end
14
11
  end
@@ -4,29 +4,48 @@ module Sts
4
4
  module NisoSts
5
5
  class Paragraph < Lutaml::Model::Serializable
6
6
  attribute :id, :string
7
+ attribute :style_type, :string
8
+ attribute :specific_use, :string
7
9
  attribute :text, :string, collection: true
8
10
  attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
9
11
  attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
10
- attribute :uri, :string
11
- attribute :list, ::Sts::NisoSts::List
12
- attribute :def_list, ::Sts::NisoSts::DefList
13
- attribute :non_normative_note, ::Sts::NisoSts::NonNormativeNote
14
- attribute :non_normative_example, ::Sts::NisoSts::NonNormativeExample
12
+ attribute :uri, ::Sts::NisoSts::Uri, collection: true
13
+ attribute :styled_content, ::Sts::NisoSts::StyledContent, collection: true
14
+ attribute :list, ::Sts::NisoSts::List, collection: true
15
+ attribute :def_list, ::Sts::NisoSts::DefList, collection: true
16
+ attribute :non_normative_note, ::Sts::NisoSts::NonNormativeNote,
17
+ collection: true
18
+ attribute :non_normative_example, ::Sts::NisoSts::NonNormativeExample,
19
+ collection: true
15
20
  attribute :inline_formula, ::Sts::NisoSts::InlineFormula, collection: true
16
21
  attribute :disp_formula, ::Sts::NisoSts::DisplayFormula, collection: true
17
22
  attribute :xref, ::Sts::TbxIsoTml::Xref, collection: true
18
23
  attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
19
- attribute :ext_link, ::Sts::NisoSts::ExtLink
20
- attribute :entailed_term, ::Sts::TbxIsoTml::EntailedTerm
24
+ attribute :ext_link, ::Sts::NisoSts::ExtLink, collection: true
25
+ attribute :entailed_term, ::Sts::TbxIsoTml::EntailedTerm, collection: true
26
+ attribute :sub, ::Sts::NisoSts::Sub, collection: true
27
+ attribute :sup, ::Sts::NisoSts::Sup, collection: true
28
+ attribute :sc, ::Sts::NisoSts::Sc, collection: true
29
+ attribute :monospace, ::Sts::NisoSts::Monospace, collection: true
30
+ attribute :underline, ::Sts::NisoSts::Underline, collection: true
31
+ attribute :break, ::Sts::NisoSts::Break, collection: true
32
+ attribute :fn, ::Sts::NisoSts::Fn, collection: true
33
+ attribute :graphic, ::Sts::NisoSts::Graphic, collection: true
34
+ attribute :preformat, ::Sts::NisoSts::Preformat, collection: true
35
+ attribute :array, ::Sts::NisoSts::SectionArray, collection: true
36
+ attribute :overline, ::Sts::NisoSts::Overline, collection: true
21
37
 
22
38
  xml do
23
39
  element "p"
24
40
  mixed_content
25
41
 
26
42
  map_attribute "id", to: :id
43
+ map_attribute "style-type", to: :style_type
44
+ map_attribute "specific-use", to: :specific_use
27
45
  map_content to: :text
28
46
  map_element "bold", to: :bold
29
47
  map_element "italic", to: :italic
48
+ map_element "styled-content", to: :styled_content
30
49
  map_element "list", to: :list
31
50
  map_element "def-list", to: :def_list
32
51
  map_element "non-normative-note", to: :non_normative_note
@@ -38,6 +57,17 @@ module Sts
38
57
  map_element "uri", to: :uri
39
58
  map_element "std", to: :std
40
59
  map_element "xref", to: :xref
60
+ map_element "sub", to: :sub
61
+ map_element "sup", to: :sup
62
+ map_element "sc", to: :sc
63
+ map_element "monospace", to: :monospace
64
+ map_element "underline", to: :underline
65
+ map_element "break", to: :break
66
+ map_element "fn", to: :fn
67
+ map_element "graphic", to: :graphic
68
+ map_element "preformat", to: :preformat
69
+ map_element "array", to: :array
70
+ map_element "overline", to: :overline
41
71
  end
42
72
  end
43
73
  end
@@ -9,6 +9,7 @@ module Sts
9
9
 
10
10
  xml do
11
11
  element "permissions"
12
+ ordered
12
13
  map_element "copyright-statement", to: :copyright_statement
13
14
  map_element "copyright-year", to: :copyright_year
14
15
  map_element "copyright-holder", to: :copyright_holder
@@ -8,7 +8,15 @@ module Sts
8
8
  attribute :preformat_type, :string
9
9
  attribute :xml_space, :string
10
10
  attribute :language, :string
11
+ attribute :orientation, :string
12
+ attribute :position, :string
11
13
  attribute :content, :string, collection: true
14
+ attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
15
+ attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
16
+ attribute :underline, ::Sts::NisoSts::Underline, collection: true
17
+ attribute :styled_content, ::Sts::NisoSts::StyledContent, collection: true
18
+ attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
19
+
12
20
  xml do
13
21
  element "preformat"
14
22
  mixed_content
@@ -18,7 +26,14 @@ module Sts
18
26
  map_attribute "preformat-type", to: :preformat_type
19
27
  map_attribute "xml:space", to: :xml_space
20
28
  map_attribute "language", to: :language
29
+ map_attribute "orientation", to: :orientation
30
+ map_attribute "position", to: :position
21
31
  map_content to: :content
32
+ map_element "bold", to: :bold
33
+ map_element "italic", to: :italic
34
+ map_element "underline", to: :underline
35
+ map_element "styled-content", to: :styled_content
36
+ map_element "std", to: :std
22
37
  end
23
38
  end
24
39
  end
@@ -6,15 +6,13 @@ module Sts
6
6
  attribute :description, :string
7
7
  attribute :name, :string
8
8
  attribute :specific_use, :string
9
- attribute :content, :string, collection: true
10
9
  xml do
11
10
  element "private-char"
12
- mixed_content
11
+ ordered
13
12
 
14
13
  map_attribute "description", to: :description
15
14
  map_attribute "name", to: :name
16
15
  map_attribute "specific-use", to: :specific_use
17
- map_content to: :content
18
16
  end
19
17
  end
20
18
  end
@@ -8,6 +8,7 @@ module Sts
8
8
  attribute :year, :string
9
9
  attribute :era, :string
10
10
  attribute :season, :string
11
+ attribute :content, :string
11
12
  attribute :date_type, :string
12
13
  attribute :iso_8601_date, :string
13
14
  attribute :publication_format, :string
@@ -16,6 +17,7 @@ module Sts
16
17
  element "pub-date"
17
18
 
18
19
  map_attribute "date-type", to: :date_type
20
+ map_content to: :content
19
21
  map_attribute "iso-8601-date", to: :iso_8601_date
20
22
  map_attribute "publication-format", to: :publication_format
21
23
  map_element "day", to: :day
@@ -8,6 +8,7 @@ module Sts
8
8
 
9
9
  xml do
10
10
  element "publisher"
11
+ ordered
11
12
 
12
13
  map_element "publisher-name", to: :publisher_name
13
14
  map_element "publisher-loc", to: :publisher_loc
@@ -14,6 +14,7 @@ module Sts
14
14
 
15
15
  xml do
16
16
  element "ref"
17
+ ordered
17
18
  map_attribute "content-type", to: :content_type
18
19
  map_attribute "id", to: :id
19
20
  map_element "label", to: :label
@@ -6,12 +6,15 @@ module Sts
6
6
  attribute :content_type, :string
7
7
  attribute :id, :string
8
8
  attribute :specific_use, :string
9
- attribute :title, :string
9
+ attribute :title, ::Sts::NisoSts::Title
10
10
  attribute :label, ::Sts::NisoSts::Label
11
11
  attribute :ref, ::Sts::NisoSts::Reference, collection: true
12
+ attribute :ref_list, ::Sts::NisoSts::ReferenceList, collection: true
13
+ attribute :paragraph, ::Sts::NisoSts::Paragraph, collection: true
12
14
 
13
15
  xml do
14
16
  element "ref-list"
17
+ ordered
15
18
 
16
19
  map_attribute "content-type", to: :content_type
17
20
  map_attribute "id", to: :id
@@ -19,6 +22,8 @@ module Sts
19
22
  map_element "title", to: :title
20
23
  map_element "label", to: :label
21
24
  map_element "ref", to: :ref
25
+ map_element "ref-list", to: :ref_list
26
+ map_element "p", to: :paragraph
22
27
  end
23
28
  end
24
29
  end
@@ -13,6 +13,7 @@ module Sts
13
13
  attribute :fn, ::Sts::NisoSts::Fn, collection: true
14
14
  attribute :std_id_group, ::Sts::NisoSts::StdIdGroup, collection: true
15
15
  attribute :xref, ::Sts::TbxIsoTml::Xref, collection: true
16
+ attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
16
17
 
17
18
  xml do
18
19
  element "std"
@@ -26,6 +27,7 @@ module Sts
26
27
  map_element "title", to: :title
27
28
  map_element "std-id-group", to: :std_id_group
28
29
  map_element "xref", to: :xref
30
+ map_element "bold", to: :bold
29
31
 
30
32
  map_content to: :content
31
33
  end
@@ -22,6 +22,7 @@ module Sts
22
22
 
23
23
  xml do
24
24
  element "reg-meta"
25
+ ordered
25
26
 
26
27
  map_element "title-wrap", to: :title_wrap
27
28
  map_element "std-ident", to: :std_ident
@@ -3,16 +3,19 @@
3
3
  module Sts
4
4
  module NisoSts
5
5
  class ReleaseDate < Lutaml::Model::Serializable
6
- attribute :day, :string
7
- attribute :month, :string
8
- attribute :year, :string
6
+ attribute :content, :string, collection: true
7
+ attribute :date_type, :string
8
+ attribute :iso_8601_date, :string
9
+ attribute :std_type, :string
9
10
 
10
11
  xml do
11
12
  element "release-date"
13
+ mixed_content
12
14
 
13
- map_element "day", to: :day
14
- map_element "month", to: :month
15
- map_element "year", to: :year
15
+ map_content to: :content
16
+ map_attribute "date-type", to: :date_type
17
+ map_attribute "iso-8601-date", to: :iso_8601_date
18
+ map_attribute "std-type", to: :std_type
16
19
  end
17
20
  end
18
21
  end
@@ -11,6 +11,7 @@ module Sts
11
11
 
12
12
  xml do
13
13
  element "ruby"
14
+ ordered
14
15
 
15
16
  map_attribute "content-type", to: :content_type
16
17
  map_attribute "id", to: :id
@@ -8,7 +8,7 @@ module Sts
8
8
  attribute :label, ::Sts::NisoSts::Label
9
9
  attribute :title, ::Sts::NisoSts::Title
10
10
  attribute :type, :string
11
- attribute :array, ::Sts::NisoSts::SectionArray
11
+ attribute :array, ::Sts::NisoSts::SectionArray, collection: true
12
12
  attribute :paragraphs, ::Sts::NisoSts::Paragraph, collection: true
13
13
  attribute :list, ::Sts::NisoSts::List, collection: true
14
14
  attribute :term_sec, ::Sts::NisoSts::TermSection, collection: true
@@ -18,14 +18,33 @@ module Sts
18
18
  attribute :non_normative_example, ::Sts::NisoSts::NonNormativeExample,
19
19
  collection: true
20
20
  attribute :sec, ::Sts::NisoSts::Section, collection: true
21
- attribute :figures, ::Sts::NisoSts::Figure, collection: true
22
21
  attribute :fig, ::Sts::NisoSts::Figure, collection: true
22
+ attribute :fig_group, ::Sts::NisoSts::FigGroup, collection: true
23
23
 
24
24
  attribute :table_wrap, ::Sts::TbxIsoTml::TableWrap, collection: true
25
+ attribute :boxed_text, ::Sts::NisoSts::BoxedText, collection: true
26
+ attribute :preformat, ::Sts::NisoSts::Preformat, collection: true
27
+ attribute :disp_formula, ::Sts::NisoSts::DisplayFormula, collection: true
28
+ attribute :disp_formula_group, ::Sts::NisoSts::DispFormulaGroup,
29
+ collection: true
30
+ attribute :styled_content, ::Sts::NisoSts::StyledContent, collection: true
31
+ attribute :editing_instruction, ::Sts::NisoSts::EditingInstruction,
32
+ collection: true
33
+ attribute :def_list, ::Sts::NisoSts::DefList, collection: true
34
+ attribute :graphic, ::Sts::NisoSts::Graphic, collection: true
35
+ attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
36
+ attribute :fn_group, ::Sts::NisoSts::FnGroup, collection: true
37
+ attribute :xref, ::Sts::TbxIsoTml::Xref, collection: true
38
+ attribute :ext_link, ::Sts::NisoSts::ExtLink, collection: true
39
+ attribute :inline_formula, ::Sts::NisoSts::InlineFormula, collection: true
40
+ attribute :disp_quote, ::Sts::NisoSts::DispQuote, collection: true
41
+ attribute :chem_struct_wrap, ::Sts::NisoSts::ChemStructWrap,
42
+ collection: true
43
+ attribute :fn, ::Sts::NisoSts::Fn, collection: true
25
44
 
26
45
  xml do
27
46
  element "sec"
28
- mixed_content
47
+ ordered
29
48
 
30
49
  map_attribute "id", to: :id
31
50
  map_attribute "sec-type", to: :type
@@ -37,11 +56,27 @@ module Sts
37
56
  map_element "sec", to: :sec
38
57
  map_element "term-sec", to: :term_sec
39
58
  map_element "list", to: :list
40
- map_element "figure", to: :figures
41
59
  map_element "fig", to: :fig
60
+ map_element "fig-group", to: :fig_group
42
61
  map_element "ref-list", to: :ref_list
43
62
  map_element "array", to: :array
44
63
  map_element "table-wrap", to: :table_wrap
64
+ map_element "boxed-text", to: :boxed_text
65
+ map_element "preformat", to: :preformat
66
+ map_element "disp-formula", to: :disp_formula
67
+ map_element "disp-formula-group", to: :disp_formula_group
68
+ map_element "styled-content", to: :styled_content
69
+ map_element "editing-instruction", to: :editing_instruction
70
+ map_element "def-list", to: :def_list
71
+ map_element "graphic", to: :graphic
72
+ map_element "std", to: :std
73
+ map_element "fn-group", to: :fn_group
74
+ map_element "xref", to: :xref
75
+ map_element "ext-link", to: :ext_link
76
+ map_element "inline-formula", to: :inline_formula
77
+ map_element "disp-quote", to: :disp_quote
78
+ map_element "chem-struct-wrap", to: :chem_struct_wrap
79
+ map_element "fn", to: :fn
45
80
  map_element "non-normative-note", to: :non_normative_note
46
81
  map_element "non-normative-example", to: :non_normative_example
47
82
  end
@@ -11,7 +11,7 @@ module Sts
11
11
 
12
12
  xml do
13
13
  element "speech"
14
- mixed_content
14
+ ordered
15
15
 
16
16
  map_attribute "id", to: :id
17
17
  map_attribute "content-type", to: :content_type
@@ -8,12 +8,14 @@ module Sts
8
8
  attribute :back, ::Sts::NisoSts::Back
9
9
  attribute :id, :string
10
10
  attribute :lang, Lutaml::Xml::W3c::XmlLangType
11
+ attribute :dtd_version, :string
11
12
  attribute :mml, :string
12
13
  attribute :tbx, :string
13
14
  attribute :xlink, :string
14
15
 
15
16
  xml do
16
17
  element "standard"
18
+ ordered
17
19
  namespace_scope [
18
20
  ::Sts::Namespaces::MathmlNamespace,
19
21
  ::Sts::Namespaces::TbxNamespace,
@@ -22,6 +24,7 @@ module Sts
22
24
 
23
25
  map_attribute "id", to: :id
24
26
  map_attribute "lang", to: :lang
27
+ map_attribute "dtd-version", to: :dtd_version
25
28
  map_element "front", to: :front
26
29
  map_element "body", to: :body
27
30
  map_element "back", to: :back
@@ -13,7 +13,7 @@ module Sts
13
13
 
14
14
  xml do
15
15
  element "std-ident"
16
- mixed_content
16
+ ordered
17
17
 
18
18
  map_element "originator", to: :originator
19
19
  map_element "doc-type", to: :doc_type
@@ -13,7 +13,7 @@ module Sts
13
13
 
14
14
  xml do
15
15
  element "statement"
16
- mixed_content
16
+ ordered
17
17
 
18
18
  map_attribute "id", to: :id
19
19
  map_attribute "content-type", to: :content_type
@@ -21,6 +21,7 @@ module Sts
21
21
 
22
22
  xml do
23
23
  element "std-doc-meta"
24
+ ordered
24
25
 
25
26
  map_attribute "id", to: :id
26
27
 
@@ -12,6 +12,7 @@ module Sts
12
12
 
13
13
  xml do
14
14
  element "std-org"
15
+ ordered
15
16
 
16
17
  map_attribute "id", to: :id
17
18
  map_attribute "std-org-type", to: :std_org_type
@@ -9,6 +9,25 @@ module Sts
9
9
  attribute :specific_use, :string
10
10
  attribute :lang, :string
11
11
  attribute :content, :string, collection: true
12
+ attribute :uri, ::Sts::NisoSts::Uri, collection: true
13
+ attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
14
+ attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
15
+ attribute :sub, ::Sts::NisoSts::Sub, collection: true
16
+ attribute :sup, ::Sts::NisoSts::Sup, collection: true
17
+ attribute :sc, ::Sts::NisoSts::Sc, collection: true
18
+ attribute :monospace, ::Sts::NisoSts::Monospace, collection: true
19
+ attribute :xref, ::Sts::TbxIsoTml::Xref, collection: true
20
+ attribute :ext_link, ::Sts::NisoSts::ExtLink, collection: true
21
+ attribute :inline_formula, ::Sts::NisoSts::InlineFormula, collection: true
22
+ attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
23
+ attribute :break, ::Sts::NisoSts::Break, collection: true
24
+ attribute :fn, ::Sts::NisoSts::Fn, collection: true
25
+ attribute :named_content, ::Sts::NisoSts::NamedContent, collection: true
26
+ attribute :target, ::Sts::NisoSts::Target, collection: true
27
+ attribute :graphic, ::Sts::NisoSts::Graphic, collection: true
28
+ attribute :styled_content, ::Sts::NisoSts::StyledContent, collection: true
29
+ attribute :underline, ::Sts::NisoSts::Underline, collection: true
30
+
12
31
  xml do
13
32
  element "styled-content"
14
33
  mixed_content
@@ -19,6 +38,24 @@ module Sts
19
38
  map_attribute "specific-use", to: :specific_use
20
39
  map_attribute "lang", to: :lang
21
40
  map_content to: :content
41
+ map_element "uri", to: :uri
42
+ map_element "bold", to: :bold
43
+ map_element "italic", to: :italic
44
+ map_element "sub", to: :sub
45
+ map_element "sup", to: :sup
46
+ map_element "sc", to: :sc
47
+ map_element "monospace", to: :monospace
48
+ map_element "xref", to: :xref
49
+ map_element "ext-link", to: :ext_link
50
+ map_element "inline-formula", to: :inline_formula
51
+ map_element "std", to: :std
52
+ map_element "break", to: :break
53
+ map_element "fn", to: :fn
54
+ map_element "named-content", to: :named_content
55
+ map_element "target", to: :target
56
+ map_element "graphic", to: :graphic
57
+ map_element "styled-content", to: :styled_content
58
+ map_element "underline", to: :underline
22
59
  end
23
60
  end
24
61
  end