sts 0.3.3 → 0.3.4

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 (87) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop-https---raw-githubusercontent-com-riboseinc-oss-guides-master-ci-rubocop-yml +1 -0
  3. data/.rubocop_todo.yml +27 -12
  4. data/Gemfile +6 -12
  5. data/lib/sts/niso_sts/adoption.rb +2 -2
  6. data/lib/sts/niso_sts/app.rb +3 -3
  7. data/lib/sts/niso_sts/custom_meta.rb +3 -3
  8. data/lib/sts/niso_sts/def_item.rb +1 -1
  9. data/lib/sts/niso_sts/def_list.rb +3 -3
  10. data/lib/sts/niso_sts/display_formula.rb +1 -1
  11. data/lib/sts/niso_sts/document_identification.rb +5 -5
  12. data/lib/sts/niso_sts/ext_link.rb +3 -3
  13. data/lib/sts/niso_sts/figure.rb +2 -2
  14. data/lib/sts/niso_sts/fn.rb +1 -1
  15. data/lib/sts/niso_sts/graphic.rb +1 -1
  16. data/lib/sts/niso_sts/label.rb +1 -1
  17. data/lib/sts/niso_sts/list.rb +2 -2
  18. data/lib/sts/niso_sts/meta_date.rb +2 -2
  19. data/lib/sts/niso_sts/meta_note.rb +3 -3
  20. data/lib/sts/niso_sts/metadata_iso.rb +9 -8
  21. data/lib/sts/niso_sts/metadata_std.rb +13 -11
  22. data/lib/sts/niso_sts/mixed_citation.rb +4 -4
  23. data/lib/sts/niso_sts/non_normative_example.rb +1 -1
  24. data/lib/sts/niso_sts/non_normative_note.rb +2 -2
  25. data/lib/sts/niso_sts/object_id.rb +2 -2
  26. data/lib/sts/niso_sts/page_count.rb +1 -1
  27. data/lib/sts/niso_sts/paragraph.rb +5 -5
  28. data/lib/sts/niso_sts/permissions.rb +3 -3
  29. data/lib/sts/niso_sts/reference.rb +2 -2
  30. data/lib/sts/niso_sts/reference_list.rb +4 -4
  31. data/lib/sts/niso_sts/reference_standard.rb +4 -4
  32. data/lib/sts/niso_sts/section.rb +3 -3
  33. data/lib/sts/niso_sts/section_array.rb +1 -1
  34. data/lib/sts/niso_sts/standard.rb +5 -5
  35. data/lib/sts/niso_sts/standard_identification.rb +10 -8
  36. data/lib/sts/niso_sts/standard_ref.rb +2 -2
  37. data/lib/sts/niso_sts/std_cross_reference.rb +1 -1
  38. data/lib/sts/niso_sts/std_id.rb +4 -4
  39. data/lib/sts/niso_sts/term_section.rb +2 -2
  40. data/lib/sts/niso_sts/title.rb +1 -1
  41. data/lib/sts/niso_sts/title_wrap.rb +4 -4
  42. data/lib/sts/tbx_iso_tml/bold.rb +1 -1
  43. data/lib/sts/tbx_iso_tml/caption.rb +1 -1
  44. data/lib/sts/tbx_iso_tml/col.rb +5 -5
  45. data/lib/sts/tbx_iso_tml/definition.rb +2 -2
  46. data/lib/sts/tbx_iso_tml/entailed_term.rb +4 -4
  47. data/lib/sts/tbx_iso_tml/example.rb +2 -2
  48. data/lib/sts/tbx_iso_tml/external_graphic.rb +1 -1
  49. data/lib/sts/tbx_iso_tml/external_source.rb +2 -2
  50. data/lib/sts/tbx_iso_tml/fn.rb +2 -2
  51. data/lib/sts/tbx_iso_tml/geographical_usage.rb +1 -1
  52. data/lib/sts/tbx_iso_tml/grammatical_gender.rb +1 -1
  53. data/lib/sts/tbx_iso_tml/grammatical_number.rb +1 -1
  54. data/lib/sts/tbx_iso_tml/italic.rb +2 -2
  55. data/lib/sts/tbx_iso_tml/lang_set.rb +3 -3
  56. data/lib/sts/tbx_iso_tml/math.rb +7 -7
  57. data/lib/sts/tbx_iso_tml/mfenced.rb +9 -8
  58. data/lib/sts/tbx_iso_tml/mfrac.rb +4 -4
  59. data/lib/sts/tbx_iso_tml/mi.rb +1 -1
  60. data/lib/sts/tbx_iso_tml/mrow.rb +5 -5
  61. data/lib/sts/tbx_iso_tml/mspace.rb +1 -1
  62. data/lib/sts/tbx_iso_tml/mstyle.rb +4 -4
  63. data/lib/sts/tbx_iso_tml/msub.rb +4 -4
  64. data/lib/sts/tbx_iso_tml/msup.rb +2 -2
  65. data/lib/sts/tbx_iso_tml/munderover.rb +2 -2
  66. data/lib/sts/tbx_iso_tml/named_content.rb +2 -2
  67. data/lib/sts/tbx_iso_tml/normative_authorization.rb +1 -1
  68. data/lib/sts/tbx_iso_tml/note.rb +2 -2
  69. data/lib/sts/tbx_iso_tml/part_of_speech.rb +1 -1
  70. data/lib/sts/tbx_iso_tml/see.rb +2 -2
  71. data/lib/sts/tbx_iso_tml/semantics.rb +3 -3
  72. data/lib/sts/tbx_iso_tml/source.rb +1 -1
  73. data/lib/sts/tbx_iso_tml/sup.rb +1 -1
  74. data/lib/sts/tbx_iso_tml/table.rb +4 -4
  75. data/lib/sts/tbx_iso_tml/table_wrap.rb +4 -4
  76. data/lib/sts/tbx_iso_tml/tbody.rb +4 -4
  77. data/lib/sts/tbx_iso_tml/td.rb +11 -11
  78. data/lib/sts/tbx_iso_tml/term.rb +5 -5
  79. data/lib/sts/tbx_iso_tml/term_entry.rb +1 -1
  80. data/lib/sts/tbx_iso_tml/term_information_group.rb +3 -3
  81. data/lib/sts/tbx_iso_tml/term_type.rb +1 -1
  82. data/lib/sts/tbx_iso_tml/th.rb +11 -11
  83. data/lib/sts/tbx_iso_tml/thead.rb +4 -4
  84. data/lib/sts/tbx_iso_tml/xref.rb +3 -3
  85. data/lib/sts/version.rb +1 -1
  86. data/sts.gemspec +1 -1
  87. metadata +9 -9
@@ -8,7 +8,7 @@ require_relative "inline_formula"
8
8
  module Sts
9
9
  module NisoSts
10
10
  class Title < Lutaml::Model::Serializable
11
- attribute :content, Lutaml::Model::Type::String
11
+ attribute :content, :string
12
12
  attribute :inline_formula, Sts::NisoSts::InlineFormula, collection: true
13
13
 
14
14
  xml do
@@ -8,7 +8,7 @@ require_relative "reference_standard"
8
8
  module Sts
9
9
  module NisoSts
10
10
  class TitleFull < Lutaml::Model::Serializable
11
- attribute :content, Lutaml::Model::Type::String
11
+ attribute :content, :string
12
12
  attribute :std, ReferenceStandard
13
13
 
14
14
  xml do
@@ -29,11 +29,11 @@ module Sts
29
29
  end
30
30
 
31
31
  class TitleWrap < Lutaml::Model::Serializable
32
- attribute :intro, Lutaml::Model::Type::String
33
- attribute :main, Lutaml::Model::Type::String
32
+ attribute :intro, :string
33
+ attribute :main, :string
34
34
  attribute :full, TitleFull
35
35
  attribute :compl, TitleCompl
36
- attribute :lang, Lutaml::Model::Type::String
36
+ attribute :lang, :string
37
37
 
38
38
  xml do
39
39
  root "title-wrap", mixed: true
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Sts
6
6
  module TbxIsoTml
7
7
  class Bold < Lutaml::Model::Serializable
8
- attribute :value, Lutaml::Model::Type::String
8
+ attribute :value, :string
9
9
 
10
10
  xml do
11
11
  root "bold"
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Sts
6
6
  module TbxIsoTml
7
7
  class Caption < Lutaml::Model::Serializable
8
- attribute :p, Lutaml::Model::Type::String
8
+ attribute :p, :string
9
9
 
10
10
  xml do
11
11
  root "caption"
@@ -5,16 +5,16 @@ require "lutaml/model"
5
5
  module Sts
6
6
  module TbxIsoTml
7
7
  class Col < Lutaml::Model::Serializable
8
- attribute :width, Lutaml::Model::Type::String
9
- attribute :char, Lutaml::Model::Type::String
10
- attribute :charoff, Lutaml::Model::Type::String
11
- attribute :span, Lutaml::Model::Type::String
8
+ attribute :width, :string
9
+ attribute :char, :string
10
+ attribute :charoff, :string
11
+ attribute :span, :string
12
12
 
13
13
  xml do
14
14
  root "col"
15
15
 
16
16
  map_attribute "width", to: :width
17
- map_attribute "char", to: :char
17
+ map_attribute "char", to: :char, value_map: { to: { empty: :empty } }
18
18
  map_attribute "charoff", to: :charoff
19
19
  map_attribute "span", to: :span
20
20
  end
@@ -12,10 +12,10 @@ module Sts
12
12
  class Definition < Lutaml::Model::Serializable
13
13
  attribute :entailed_term, EntailedTerm, collection: true
14
14
  attribute :note, Note
15
- attribute :value, Lutaml::Model::Type::String
15
+ attribute :value, :string
16
16
  attribute :italic, Italic
17
17
  attribute :math, Sts::TbxIsoTml::Math
18
- attribute :sub, Lutaml::Model::Type::String
18
+ attribute :sub, :string
19
19
  attribute :list, Sts::NisoSts::List, collection: true
20
20
  attribute :std, Sts::NisoSts::ReferenceStandard, collection: true
21
21
 
@@ -5,10 +5,10 @@ require "lutaml/model"
5
5
  module Sts
6
6
  module TbxIsoTml
7
7
  class EntailedTerm < Lutaml::Model::Serializable
8
- attribute :target, Lutaml::Model::Type::String
9
- attribute :xtarget, Lutaml::Model::Type::String
10
- attribute :lang, Lutaml::Model::Type::String
11
- attribute :value, Lutaml::Model::Type::String
8
+ attribute :target, :string
9
+ attribute :xtarget, :string
10
+ attribute :lang, :string
11
+ attribute :value, :string
12
12
 
13
13
  xml do
14
14
  root "entailedTerm"
@@ -8,8 +8,8 @@ require_relative "../niso_sts/inline_formula"
8
8
  module Sts
9
9
  module TbxIsoTml
10
10
  class Example < Lutaml::Model::Serializable
11
- attribute :id, Lutaml::Model::Type::String
12
- attribute :value, Lutaml::Model::Type::String
11
+ attribute :id, :string
12
+ attribute :value, :string
13
13
  attribute :entailed_term, EntailedTerm, collection: true
14
14
  attribute :inline_formula, Sts::NisoSts::InlineFormula
15
15
 
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Sts
6
6
  module TbxIsoTml
7
7
  class ExternalGraphic < Lutaml::Model::Serializable
8
- attribute :target, Lutaml::Model::Type::String
8
+ attribute :target, :string
9
9
 
10
10
  xml do
11
11
  root "xGraphic"
@@ -5,8 +5,8 @@ require "lutaml/model"
5
5
  module Sts
6
6
  module TbxIsoTml
7
7
  class ExternalSource < Lutaml::Model::Serializable
8
- attribute :target, Lutaml::Model::Type::String
9
- attribute :value, Lutaml::Model::Type::String
8
+ attribute :target, :string
9
+ attribute :value, :string
10
10
 
11
11
  xml do
12
12
  root "xSource"
@@ -5,8 +5,8 @@ require_relative "../niso_sts/paragraph"
5
5
  module Sts
6
6
  module TbxIsoTml
7
7
  class Fn < Lutaml::Model::Serializable
8
- attribute :id, Lutaml::Model::Type::String
9
- attribute :label, Lutaml::Model::Type::String
8
+ attribute :id, :string
9
+ attribute :label, :string
10
10
  attribute :p, Sts::NisoSts::Paragraph
11
11
 
12
12
  xml do
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Sts
6
6
  module TbxIsoTml
7
7
  class GeographicalUsage < Lutaml::Model::Serializable
8
- attribute :value, Lutaml::Model::Type::String
8
+ attribute :value, :string
9
9
 
10
10
  xml do
11
11
  root "geographicalUsage"
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Sts
6
6
  module TbxIsoTml
7
7
  class GrammaticalGender < Lutaml::Model::Serializable
8
- attribute :value, Lutaml::Model::Type::String,
8
+ attribute :value, :string,
9
9
  values: %w[masculine feminine neuter]
10
10
 
11
11
  xml do
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Sts
6
6
  module TbxIsoTml
7
7
  class GrammaticalNumber < Lutaml::Model::Serializable
8
- attribute :value, Lutaml::Model::Type::String,
8
+ attribute :value, :string,
9
9
  values: %w[singular plural]
10
10
 
11
11
  xml do
@@ -5,8 +5,8 @@ require "lutaml/model"
5
5
  module Sts
6
6
  module TbxIsoTml
7
7
  class Italic < Lutaml::Model::Serializable
8
- attribute :value, Lutaml::Model::Type::String
9
- attribute :sub, Lutaml::Model::Type::String
8
+ attribute :value, :string
9
+ attribute :sub, :string
10
10
 
11
11
  xml do
12
12
  root "italic", mixed: true
@@ -17,7 +17,7 @@ module Sts
17
17
  class Caption < Lutaml::Model::Serializable; end
18
18
 
19
19
  class LangSet < Lutaml::Model::Serializable
20
- attribute :lang, Lutaml::Model::Type::String
20
+ attribute :lang, :string
21
21
  attribute :definition, Sts::TbxIsoTml::Definition, collection: true
22
22
  attribute :note, Note, collection: true
23
23
  attribute :example, Example, collection: true
@@ -25,8 +25,8 @@ module Sts
25
25
  attribute :see, See, collection: true
26
26
  attribute :source, Source, collection: true
27
27
  attribute :x_source, ExternalSource, collection: true
28
- attribute :cross_reference, Lutaml::Model::Type::String, collection: true
29
- attribute :subject_field, Lutaml::Model::Type::String
28
+ attribute :cross_reference, :string, collection: true
29
+ attribute :subject_field, :string
30
30
  # attribute :x_graphic, ExternalGraphic, collection: true
31
31
 
32
32
  xml do
@@ -17,16 +17,16 @@ module Sts
17
17
  class Mfenced < Lutaml::Model::Serializable; end
18
18
 
19
19
  class Math < Lutaml::Model::Serializable
20
- attribute :id, Lutaml::Model::Type::String
21
- attribute :content, Lutaml::Model::Type::String
22
- attribute :display, Lutaml::Model::Type::String
20
+ attribute :id, :string
21
+ attribute :content, :string
22
+ attribute :display, :string
23
23
  attribute :mrow, Mrow
24
24
  attribute :msub, Msub, collection: true
25
25
  attribute :msup, Msup
26
- attribute :mn, Lutaml::Model::Type::String, collection: true
27
- attribute :mo, Lutaml::Model::Type::String, collection: true
28
- attribute :mi, Lutaml::Model::Type::String
29
- attribute :mtext, Lutaml::Model::Type::String
26
+ attribute :mn, :string, collection: true
27
+ attribute :mo, :string, collection: true
28
+ attribute :mi, :string
29
+ attribute :mtext, :string
30
30
  attribute :semantics, Semantics
31
31
  attribute :mstyle, Mstyle, collection: true
32
32
  attribute :mfenced, Mfenced, collection: true
@@ -10,13 +10,13 @@ require_relative "mfrac"
10
10
  module Sts
11
11
  module TbxIsoTml
12
12
  class Mfenced < Lutaml::Model::Serializable
13
- attribute :separators, Lutaml::Model::Type::String
14
- attribute :open, Lutaml::Model::Type::String
15
- attribute :close, Lutaml::Model::Type::String
16
- attribute :mo, Lutaml::Model::Type::String, collection: true
17
- attribute :mn, Lutaml::Model::Type::String, collection: true
18
- attribute :mi, Lutaml::Model::Type::String
19
- attribute :mtext, Lutaml::Model::Type::String
13
+ attribute :separators, :string
14
+ attribute :open, :string
15
+ attribute :close, :string
16
+ attribute :mo, :string, collection: true
17
+ attribute :mn, :string, collection: true
18
+ attribute :mi, :string
19
+ attribute :mtext, :string
20
20
  attribute :mspace, Mspace, collection: true
21
21
  attribute :msub, Msub, collection: true
22
22
  attribute :mstyle, Mstyle, collection: true
@@ -26,7 +26,8 @@ module Sts
26
26
  root "mfenced", mixed: true
27
27
  namespace "http://www.w3.org/1998/Math/MathML", "mml"
28
28
 
29
- map_attribute "separators", to: :separators
29
+ map_attribute "separators", to: :separators,
30
+ value_map: { to: { empty: :empty } }
30
31
  map_attribute "open", to: :open
31
32
  map_attribute "close", to: :close
32
33
 
@@ -11,10 +11,10 @@ module Sts
11
11
  class Mfrac < Lutaml::Model::Serializable
12
12
  attribute :mrow, Mrow, collection: true
13
13
  attribute :mstyle, Mstyle, collection: true
14
- attribute :bevelled, Lutaml::Model::Type::String
15
- attribute :linethickness, Lutaml::Model::Type::String
16
- attribute :mn, Lutaml::Model::Type::String, collection: true
17
- attribute :mtext, Lutaml::Model::Type::String, collection: true
14
+ attribute :bevelled, :string
15
+ attribute :linethickness, :string
16
+ attribute :mn, :string, collection: true
17
+ attribute :mtext, :string, collection: true
18
18
 
19
19
  xml do
20
20
  root "mfrac", mixed: true
@@ -6,7 +6,7 @@ require_relative "mstyle"
6
6
  module Sts
7
7
  module TbxIsoTml
8
8
  class Mi < Lutaml::Model::Serializable
9
- attribute :content, Lutaml::Model::Type::String
9
+ attribute :content, :string
10
10
 
11
11
  xml do
12
12
  root "mi"
@@ -11,11 +11,11 @@ require_relative "mfenced"
11
11
  module Sts
12
12
  module TbxIsoTml
13
13
  class Mrow < Lutaml::Model::Serializable
14
- attribute :content, Lutaml::Model::Type::String
15
- attribute :mo, Lutaml::Model::Type::String, collection: true
16
- attribute :mi, Lutaml::Model::Type::String, collection: true
17
- attribute :mn, Lutaml::Model::Type::String, collection: true
18
- attribute :mtext, Lutaml::Model::Type::String, collection: true
14
+ attribute :content, :string
15
+ attribute :mo, :string, collection: true
16
+ attribute :mi, :string, collection: true
17
+ attribute :mn, :string, collection: true
18
+ attribute :mtext, :string, collection: true
19
19
  attribute :mrow, Mrow
20
20
  attribute :mfrac, Mfrac, collection: true
21
21
  attribute :mstyle, Mstyle, collection: true
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Sts
6
6
  module TbxIsoTml
7
7
  class Mspace < Lutaml::Model::Serializable
8
- attribute :width, Lutaml::Model::Type::String
8
+ attribute :width, :string
9
9
 
10
10
  xml do
11
11
  root "mspace"
@@ -6,12 +6,12 @@ require_relative "mspace"
6
6
  module Sts
7
7
  module TbxIsoTml
8
8
  class Mstyle < Lutaml::Model::Serializable
9
- attribute :mathvariant, Lutaml::Model::Type::String
9
+ attribute :mathvariant, :string
10
10
  attribute :mstyle, Mstyle
11
11
  attribute :mspace, Mspace, collection: true
12
- attribute :mi, Lutaml::Model::Type::String, collection: true
13
- attribute :mn, Lutaml::Model::Type::String, collection: true
14
- attribute :mo, Lutaml::Model::Type::String, collection: true
12
+ attribute :mi, :string, collection: true
13
+ attribute :mn, :string, collection: true
14
+ attribute :mo, :string, collection: true
15
15
 
16
16
  xml do
17
17
  root "mstyle", mixed: true
@@ -12,10 +12,10 @@ module Sts
12
12
  attribute :mstyle, Mstyle, collection: true
13
13
  attribute :mrow, Mrow
14
14
  attribute :mspace, Mspace
15
- attribute :mo, Lutaml::Model::Type::String, collection: true
16
- attribute :mi, Lutaml::Model::Type::String, collection: true
17
- attribute :mn, Lutaml::Model::Type::String, collection: true
18
- attribute :mtext, Lutaml::Model::Type::String, collection: true
15
+ attribute :mo, :string, collection: true
16
+ attribute :mi, :string, collection: true
17
+ attribute :mn, :string, collection: true
18
+ attribute :mtext, :string, collection: true
19
19
 
20
20
  xml do
21
21
  root "msub", mixed: true
@@ -10,8 +10,8 @@ module Sts
10
10
  class Msup < Lutaml::Model::Serializable
11
11
  attribute :mstyle, Mstyle
12
12
  attribute :mrow, Mrow
13
- attribute :mi, Lutaml::Model::Type::String
14
- attribute :mn, Lutaml::Model::Type::String, collection: true
13
+ attribute :mi, :string
14
+ attribute :mn, :string, collection: true
15
15
 
16
16
  xml do
17
17
  root "msup"
@@ -7,8 +7,8 @@ require_relative "mrow"
7
7
  module Sts
8
8
  module TbxIsoTml
9
9
  class Munderover < Lutaml::Model::Serializable
10
- attribute :mo, Lutaml::Model::Type::String
11
- attribute :mi, Lutaml::Model::Type::String
10
+ attribute :mo, :string
11
+ attribute :mi, :string
12
12
  attribute :mrow, Mrow, collection: true
13
13
 
14
14
  xml do
@@ -5,8 +5,8 @@ require "lutaml/model"
5
5
  module Sts
6
6
  module TbxIsoTml
7
7
  class NamedContent < Lutaml::Model::Serializable
8
- attribute :content_type, Lutaml::Model::Type::String
9
- attribute :content, Lutaml::Model::Type::String
8
+ attribute :content_type, :string
9
+ attribute :content, :string
10
10
 
11
11
  xml do
12
12
  root "named-content"
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Sts
6
6
  module TbxIsoTml
7
7
  class NormativeAuthorization < Lutaml::Model::Serializable
8
- attribute :value, Lutaml::Model::Type::String,
8
+ attribute :value, :string,
9
9
  values: %w[admittedTerm preferredTerm deprecatedTerm]
10
10
 
11
11
  xml do
@@ -14,8 +14,8 @@ require_relative "../niso_sts/reference_standard"
14
14
  module Sts
15
15
  module TbxIsoTml
16
16
  class Note < Lutaml::Model::Serializable
17
- attribute :id, Lutaml::Model::Type::String
18
- attribute :value, Lutaml::Model::Type::String
17
+ attribute :id, :string
18
+ attribute :value, :string
19
19
  attribute :table_wrap, Sts::TbxIsoTml::TableWrap
20
20
  attribute :entailed_term, EntailedTerm, collection: true
21
21
  attribute :math, Sts::TbxIsoTml::Math, collection: true
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Sts
6
6
  module TbxIsoTml
7
7
  class PartOfSpeech < Lutaml::Model::Serializable
8
- attribute :value, Lutaml::Model::Type::String,
8
+ attribute :value, :string,
9
9
  values: %w[noun verb adj adv]
10
10
 
11
11
  xml do
@@ -5,8 +5,8 @@ require "lutaml/model"
5
5
  module Sts
6
6
  module TbxIsoTml
7
7
  class See < Lutaml::Model::Serializable
8
- attribute :script, Lutaml::Model::Type::String
9
- attribute :value, Lutaml::Model::Type::String
8
+ attribute :script, :string
9
+ attribute :value, :string
10
10
 
11
11
  xml do
12
12
  root "see"
@@ -9,10 +9,10 @@ module Sts
9
9
  module TbxIsoTml
10
10
  class Semantics < Lutaml::Model::Serializable
11
11
  attribute :mrow, Mrow, collection: true
12
- attribute :mo, Lutaml::Model::Type::String
13
- attribute :mtext, Lutaml::Model::Type::String
12
+ attribute :mo, :string
13
+ attribute :mtext, :string
14
14
  attribute :munder, Sts::TbxIsoTml::Munder
15
- attribute :content, Lutaml::Model::Type::String
15
+ attribute :content, :string
16
16
 
17
17
  xml do
18
18
  root "semantics", mixed: true
@@ -6,7 +6,7 @@ require "lutaml/model"
6
6
  module Sts
7
7
  module TbxIsoTml
8
8
  class Source < Lutaml::Model::Serializable
9
- attribute :value, Lutaml::Model::Type::String
9
+ attribute :value, :string
10
10
  attribute :italic, Italic
11
11
 
12
12
  xml do
@@ -8,7 +8,7 @@ module Sts
8
8
  class Xref < Lutaml::Model::Serializable; end
9
9
 
10
10
  class Sup < Lutaml::Model::Serializable
11
- attribute :value, Lutaml::Model::Type::String
11
+ attribute :value, :string
12
12
  attribute :xref, Xref
13
13
 
14
14
  xml do
@@ -12,10 +12,10 @@ module Sts
12
12
  attribute :col, Sts::TbxIsoTml::Col, collection: true
13
13
  attribute :thead, Sts::TbxIsoTml::Thead
14
14
  attribute :tbody, Sts::TbxIsoTml::Tbody
15
- attribute :border, Lutaml::Model::Type::String
16
- attribute :rules, Lutaml::Model::Type::String
17
- attribute :frame, Lutaml::Model::Type::String
18
- attribute :width, Lutaml::Model::Type::String
15
+ attribute :border, :string
16
+ attribute :rules, :string
17
+ attribute :frame, :string
18
+ attribute :width, :string
19
19
 
20
20
  xml do
21
21
  root "table"
@@ -8,10 +8,10 @@ require_relative "table_wrap_foot"
8
8
  module Sts
9
9
  module TbxIsoTml
10
10
  class TableWrap < Lutaml::Model::Serializable
11
- attribute :id, Lutaml::Model::Type::String
12
- attribute :orientation, Lutaml::Model::Type::String
13
- attribute :position, Lutaml::Model::Type::String
14
- attribute :label, Lutaml::Model::Type::String
11
+ attribute :id, :string
12
+ attribute :orientation, :string
13
+ attribute :position, :string
14
+ attribute :label, :string
15
15
  attribute :table, Sts::TbxIsoTml::Table, collection: true
16
16
  attribute :table_wrap_foot, Sts::TbxIsoTml::TableWrapFoot
17
17
 
@@ -8,14 +8,14 @@ module Sts
8
8
  module TbxIsoTml
9
9
  class Tbody < Lutaml::Model::Serializable
10
10
  attribute :tr, Sts::TbxIsoTml::Tr, collection: true
11
- attribute :char, Lutaml::Model::Type::String
12
- attribute :charoff, Lutaml::Model::Type::String
13
- attribute :valign, Lutaml::Model::Type::String
11
+ attribute :char, :string
12
+ attribute :charoff, :string
13
+ attribute :valign, :string
14
14
 
15
15
  xml do
16
16
  root "tbody"
17
17
 
18
- map_attribute "char", to: :char
18
+ map_attribute "char", to: :char, value_map: { to: { empty: :empty } }
19
19
  map_attribute "charoff", to: :charoff
20
20
  map_attribute "valign", to: :valign
21
21
 
@@ -15,18 +15,18 @@ require_relative "../niso_sts/paragraph"
15
15
  module Sts
16
16
  module TbxIsoTml
17
17
  class Td < Lutaml::Model::Serializable
18
- attribute :content, Lutaml::Model::Type::String
19
- attribute :align, Lutaml::Model::Type::String
20
- attribute :scope, Lutaml::Model::Type::String
21
- attribute :style, Lutaml::Model::Type::String
18
+ attribute :content, :string
19
+ attribute :align, :string
20
+ attribute :scope, :string
21
+ attribute :style, :string
22
22
  attribute :bold, Bold
23
23
  attribute :italic, Italic
24
- attribute :content_type, Lutaml::Model::Type::String
25
- attribute :char, Lutaml::Model::Type::String
26
- attribute :charoff, Lutaml::Model::Type::String
27
- attribute :colspan, Lutaml::Model::Type::String
28
- attribute :rowspan, Lutaml::Model::Type::String
29
- attribute :valign, Lutaml::Model::Type::String
24
+ attribute :content_type, :string
25
+ attribute :char, :string
26
+ attribute :charoff, :string
27
+ attribute :colspan, :string
28
+ attribute :rowspan, :string
29
+ attribute :valign, :string
30
30
  attribute :inline_formula, Sts::NisoSts::InlineFormula, collection: true
31
31
  attribute :non_normative_note,
32
32
  Sts::NisoSts::NonNormativeNote,
@@ -47,7 +47,7 @@ module Sts
47
47
  map_attribute "scope", to: :scope
48
48
  map_attribute "style", to: :style
49
49
  map_attribute "content-type", to: :content_type
50
- map_attribute "char", to: :char
50
+ map_attribute "char", to: :char, value_map: { to: { empty: :empty } }
51
51
  map_attribute "charoff", to: :charoff
52
52
  map_attribute "colspan", to: :colspan
53
53
  map_attribute "rowspan", to: :rowspan
@@ -12,12 +12,12 @@ require_relative "../niso_sts/inline_formula"
12
12
  module Sts
13
13
  module TbxIsoTml
14
14
  class Term < Lutaml::Model::Serializable
15
- attribute :id, Lutaml::Model::Type::String
16
- attribute :script, Lutaml::Model::Type::String
17
- attribute :value, Lutaml::Model::Type::String
15
+ attribute :id, :string
16
+ attribute :script, :string
17
+ attribute :value, :string
18
18
  attribute :italic, Sts::TbxIsoTml::Italic
19
- attribute :bold, Lutaml::Model::Type::String
20
- attribute :sub, Lutaml::Model::Type::String
19
+ attribute :bold, :string
20
+ attribute :sub, :string
21
21
  attribute :math, Sts::TbxIsoTml::Math
22
22
  attribute :xref, Sts::TbxIsoTml::Xref
23
23
  attribute :inline_formula, Sts::NisoSts::InlineFormula, collection: true
@@ -8,7 +8,7 @@ require_relative "external_graphic"
8
8
  module Sts
9
9
  module TbxIsoTml
10
10
  class TermEntry < Lutaml::Model::Serializable
11
- attribute :id, Lutaml::Model::Type::String
11
+ attribute :id, :string
12
12
  attribute :lang_set, LangSet, collection: true
13
13
  attribute :x_graphic, ExternalGraphic, collection: true
14
14
 
@@ -15,13 +15,13 @@ module Sts
15
15
  class TermInformationGroup < Lutaml::Model::Serializable
16
16
  attribute :term, Term
17
17
  attribute :pos, PartOfSpeech
18
- attribute :id, Lutaml::Model::Type::String
19
- attribute :usage_note, Lutaml::Model::Type::String
18
+ attribute :id, :string
19
+ attribute :usage_note, :string
20
20
  attribute :normative_authorization, NormativeAuthorization
21
21
  attribute :geographical_usage, GeographicalUsage
22
22
  attribute :grammatical_gender, GrammaticalGender
23
23
  attribute :grammatical_number, GrammaticalNumber
24
- attribute :pronunciation, Lutaml::Model::Type::String
24
+ attribute :pronunciation, :string
25
25
  attribute :term_type, TermType
26
26
 
27
27
  xml do
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Sts
6
6
  module TbxIsoTml
7
7
  class TermType < Lutaml::Model::Serializable
8
- attribute :value, Lutaml::Model::Type::String,
8
+ attribute :value, :string,
9
9
  values: %w[acronym abbreviation equation formula fullForm symbol variant]
10
10
 
11
11
  xml do