Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions lib/sts/niso_sts/preformat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ class Preformat < Lutaml::Model::Serializable
attribute :underline, ::Sts::NisoSts::Underline, collection: true
attribute :styled_content, ::Sts::NisoSts::StyledContent, collection: true
attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
attribute :xref, ::Sts::TbxIsoTml::Xref, collection: true
attribute :sub, ::Sts::NisoSts::Sub, collection: true
attribute :sup, ::Sts::NisoSts::Sup, collection: true
attribute :sc, ::Sts::NisoSts::Sc, collection: true
attribute :monospace, ::Sts::NisoSts::Monospace, collection: true
attribute :ext_link, ::Sts::NisoSts::ExtLink, collection: true
attribute :inline_formula, ::Sts::NisoSts::InlineFormula, collection: true
attribute :break, ::Sts::NisoSts::Break, collection: true

xml do
element "preformat"
Expand All @@ -34,6 +42,14 @@ class Preformat < Lutaml::Model::Serializable
map_element "underline", to: :underline
map_element "styled-content", to: :styled_content
map_element "std", to: :std
map_element "xref", to: :xref
map_element "sub", to: :sub
map_element "sup", to: :sup
map_element "sc", to: :sc
map_element "monospace", to: :monospace
map_element "ext-link", to: :ext_link
map_element "inline-formula", to: :inline_formula
map_element "break", to: :break
end
end
end
Expand Down
14 changes: 14 additions & 0 deletions lib/sts/niso_sts/sup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ class Sup < Lutaml::Model::Serializable
attribute :monospace, ::Sts::NisoSts::Monospace, collection: true
attribute :styled_content, ::Sts::NisoSts::StyledContent, collection: true
attribute :xref, ::Sts::TbxIsoTml::Xref, collection: true
attribute :sub, ::Sts::NisoSts::Sub, collection: true
attribute :sup, ::Sts::NisoSts::Sup, collection: true
attribute :sc, ::Sts::NisoSts::Sc, collection: true
attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
attribute :ext_link, ::Sts::NisoSts::ExtLink, collection: true
attribute :inline_formula, ::Sts::NisoSts::InlineFormula, collection: true
attribute :break, ::Sts::NisoSts::Break, collection: true

xml do
element "sup"
Expand All @@ -26,6 +33,13 @@ class Sup < Lutaml::Model::Serializable
map_element "monospace", to: :monospace
map_element "styled-content", to: :styled_content
map_element "xref", to: :xref
map_element "sub", to: :sub
map_element "sup", to: :sup
map_element "sc", to: :sc
map_element "std", to: :std
map_element "ext-link", to: :ext_link
map_element "inline-formula", to: :inline_formula
map_element "break", to: :break
end
end
end
Expand Down
14 changes: 14 additions & 0 deletions lib/sts/niso_sts/term.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ class Term < Lutaml::Model::Serializable
attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
attribute :ext_link, ::Sts::NisoSts::ExtLink
attribute :entailed_term, ::Sts::TbxIsoTml::EntailedTerm
attribute :sub, ::Sts::NisoSts::Sub, collection: true
attribute :sup, ::Sts::NisoSts::Sup, collection: true
attribute :sc, ::Sts::NisoSts::Sc, collection: true
attribute :monospace, ::Sts::NisoSts::Monospace, collection: true
attribute :underline, ::Sts::NisoSts::Underline, collection: true
attribute :styled_content, ::Sts::NisoSts::StyledContent, collection: true
attribute :break, ::Sts::NisoSts::Break, collection: true
attribute :specific_use, :string,
values: ["abbreviation", "acronym", "equation", "formula", "fullForm", "symbol", "variant"]
attribute :term_status, :string,
Expand Down Expand Up @@ -63,6 +70,13 @@ class Term < Lutaml::Model::Serializable
map_element "uri", to: :uri
map_element "std", to: :std
map_element "xref", to: :xref
map_element "sub", to: :sub
map_element "sup", to: :sup
map_element "sc", to: :sc
map_element "monospace", to: :monospace
map_element "underline", to: :underline
map_element "styled-content", to: :styled_content
map_element "break", to: :break
end
end
end
Expand Down
2 changes: 2 additions & 0 deletions lib/sts/niso_sts/title.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Title < Lutaml::Model::Serializable
attribute :styled_content, Sts::NisoSts::StyledContent, collection: true
attribute :monospace, Sts::NisoSts::Monospace, collection: true
attribute :sc, Sts::NisoSts::Sc, collection: true
attribute :ext_link, Sts::NisoSts::ExtLink, collection: true

xml do
element "title"
Expand All @@ -38,6 +39,7 @@ class Title < Lutaml::Model::Serializable
map_element "styled-content", to: :styled_content
map_element "monospace", to: :monospace
map_element "sc", to: :sc
map_element "ext-link", to: :ext_link
end
end
end
Expand Down
6 changes: 6 additions & 0 deletions lib/sts/tbx_iso_tml/bold.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ class Bold < Lutaml::Model::Serializable
attribute :fn, ::Sts::NisoSts::Fn, collection: true
attribute :styled_content, ::Sts::NisoSts::StyledContent, collection: true
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
attribute :inline_formula, ::Sts::NisoSts::InlineFormula, collection: true
attribute :break, ::Sts::NisoSts::Break, collection: true

xml do
element "bold"
Expand All @@ -38,6 +41,9 @@ class Bold < Lutaml::Model::Serializable
map_element "fn", to: :fn
map_element "styled-content", to: :styled_content
map_element "bold", to: :bold
map_element "std", to: :std
map_element "inline-formula", to: :inline_formula
map_element "break", to: :break
end
end
end
Expand Down
4 changes: 4 additions & 0 deletions lib/sts/tbx_iso_tml/definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class Definition < Lutaml::Model::Serializable
attribute :monospace, ::Sts::NisoSts::Monospace, collection: true
attribute :ext_link, ::Sts::NisoSts::ExtLink, collection: true
attribute :styled_content, ::Sts::NisoSts::StyledContent, collection: true
attribute :sc, ::Sts::NisoSts::Sc, collection: true
attribute :break, ::Sts::NisoSts::Break, collection: true

xml do
element "definition"
Expand All @@ -41,6 +43,8 @@ class Definition < Lutaml::Model::Serializable
map_element "monospace", to: :monospace
map_element "ext-link", to: :ext_link
map_element "styled-content", to: :styled_content
map_element "sc", to: :sc
map_element "break", to: :break
end
end
end
Expand Down
14 changes: 14 additions & 0 deletions lib/sts/tbx_iso_tml/example.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ class Example < Lutaml::Model::Serializable
attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
attribute :sub, ::Sts::NisoSts::Sub, collection: true
attribute :sup, ::Sts::NisoSts::Sup, collection: true
attribute :monospace, ::Sts::NisoSts::Monospace, collection: true
attribute :sc, ::Sts::NisoSts::Sc, collection: true
attribute :ext_link, ::Sts::NisoSts::ExtLink, collection: true
attribute :styled_content, ::Sts::NisoSts::StyledContent, collection: true
attribute :break, ::Sts::NisoSts::Break, collection: true

xml do
element "example"
Expand All @@ -27,6 +34,13 @@ class Example < Lutaml::Model::Serializable
map_element "std", to: :std
map_element "italic", to: :italic
map_element "bold", to: :bold
map_element "sub", to: :sub
map_element "sup", to: :sup
map_element "monospace", to: :monospace
map_element "sc", to: :sc
map_element "ext-link", to: :ext_link
map_element "styled-content", to: :styled_content
map_element "break", to: :break
end
end
end
Expand Down
6 changes: 6 additions & 0 deletions lib/sts/tbx_iso_tml/italic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ class Italic < Lutaml::Model::Serializable
attribute :fn, ::Sts::NisoSts::Fn, collection: true
attribute :styled_content, ::Sts::NisoSts::StyledContent, collection: true
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
attribute :inline_formula, ::Sts::NisoSts::InlineFormula, collection: true
attribute :break, ::Sts::NisoSts::Break, collection: true

xml do
element "italic"
Expand All @@ -38,6 +41,9 @@ class Italic < Lutaml::Model::Serializable
map_element "fn", to: :fn
map_element "styled-content", to: :styled_content
map_element "italic", to: :italic
map_element "std", to: :std
map_element "inline-formula", to: :inline_formula
map_element "break", to: :break
end
end
end
Expand Down
10 changes: 10 additions & 0 deletions lib/sts/tbx_iso_tml/note.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ class Note < Lutaml::Model::Serializable
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
attribute :inline_formula, ::Sts::NisoSts::InlineFormula, collection: true
attribute :monospace, ::Sts::NisoSts::Monospace, collection: true
attribute :sc, ::Sts::NisoSts::Sc, collection: true
attribute :ext_link, ::Sts::NisoSts::ExtLink, collection: true
attribute :styled_content, ::Sts::NisoSts::StyledContent, collection: true
attribute :break, ::Sts::NisoSts::Break, collection: true

xml do
element "note"
Expand All @@ -35,6 +40,11 @@ class Note < Lutaml::Model::Serializable
map_element "xref", to: :xref
map_element "math", to: :math
map_element "inline-formula", to: :inline_formula
map_element "monospace", to: :monospace
map_element "sc", to: :sc
map_element "ext-link", to: :ext_link
map_element "styled-content", to: :styled_content
map_element "break", to: :break
end
end
end
Expand Down
Loading
Loading