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.
- checksums.yaml +4 -4
- data/.rubocop-https---raw-githubusercontent-com-riboseinc-oss-guides-master-ci-rubocop-yml +1 -0
- data/.rubocop_todo.yml +27 -12
- data/Gemfile +6 -12
- data/lib/sts/niso_sts/adoption.rb +2 -2
- data/lib/sts/niso_sts/app.rb +3 -3
- data/lib/sts/niso_sts/custom_meta.rb +3 -3
- data/lib/sts/niso_sts/def_item.rb +1 -1
- data/lib/sts/niso_sts/def_list.rb +3 -3
- data/lib/sts/niso_sts/display_formula.rb +1 -1
- data/lib/sts/niso_sts/document_identification.rb +5 -5
- data/lib/sts/niso_sts/ext_link.rb +3 -3
- data/lib/sts/niso_sts/figure.rb +2 -2
- data/lib/sts/niso_sts/fn.rb +1 -1
- data/lib/sts/niso_sts/graphic.rb +1 -1
- data/lib/sts/niso_sts/label.rb +1 -1
- data/lib/sts/niso_sts/list.rb +2 -2
- data/lib/sts/niso_sts/meta_date.rb +2 -2
- data/lib/sts/niso_sts/meta_note.rb +3 -3
- data/lib/sts/niso_sts/metadata_iso.rb +9 -8
- data/lib/sts/niso_sts/metadata_std.rb +13 -11
- data/lib/sts/niso_sts/mixed_citation.rb +4 -4
- data/lib/sts/niso_sts/non_normative_example.rb +1 -1
- data/lib/sts/niso_sts/non_normative_note.rb +2 -2
- data/lib/sts/niso_sts/object_id.rb +2 -2
- data/lib/sts/niso_sts/page_count.rb +1 -1
- data/lib/sts/niso_sts/paragraph.rb +5 -5
- data/lib/sts/niso_sts/permissions.rb +3 -3
- data/lib/sts/niso_sts/reference.rb +2 -2
- data/lib/sts/niso_sts/reference_list.rb +4 -4
- data/lib/sts/niso_sts/reference_standard.rb +4 -4
- data/lib/sts/niso_sts/section.rb +3 -3
- data/lib/sts/niso_sts/section_array.rb +1 -1
- data/lib/sts/niso_sts/standard.rb +5 -5
- data/lib/sts/niso_sts/standard_identification.rb +10 -8
- data/lib/sts/niso_sts/standard_ref.rb +2 -2
- data/lib/sts/niso_sts/std_cross_reference.rb +1 -1
- data/lib/sts/niso_sts/std_id.rb +4 -4
- data/lib/sts/niso_sts/term_section.rb +2 -2
- data/lib/sts/niso_sts/title.rb +1 -1
- data/lib/sts/niso_sts/title_wrap.rb +4 -4
- data/lib/sts/tbx_iso_tml/bold.rb +1 -1
- data/lib/sts/tbx_iso_tml/caption.rb +1 -1
- data/lib/sts/tbx_iso_tml/col.rb +5 -5
- data/lib/sts/tbx_iso_tml/definition.rb +2 -2
- data/lib/sts/tbx_iso_tml/entailed_term.rb +4 -4
- data/lib/sts/tbx_iso_tml/example.rb +2 -2
- data/lib/sts/tbx_iso_tml/external_graphic.rb +1 -1
- data/lib/sts/tbx_iso_tml/external_source.rb +2 -2
- data/lib/sts/tbx_iso_tml/fn.rb +2 -2
- data/lib/sts/tbx_iso_tml/geographical_usage.rb +1 -1
- data/lib/sts/tbx_iso_tml/grammatical_gender.rb +1 -1
- data/lib/sts/tbx_iso_tml/grammatical_number.rb +1 -1
- data/lib/sts/tbx_iso_tml/italic.rb +2 -2
- data/lib/sts/tbx_iso_tml/lang_set.rb +3 -3
- data/lib/sts/tbx_iso_tml/math.rb +7 -7
- data/lib/sts/tbx_iso_tml/mfenced.rb +9 -8
- data/lib/sts/tbx_iso_tml/mfrac.rb +4 -4
- data/lib/sts/tbx_iso_tml/mi.rb +1 -1
- data/lib/sts/tbx_iso_tml/mrow.rb +5 -5
- data/lib/sts/tbx_iso_tml/mspace.rb +1 -1
- data/lib/sts/tbx_iso_tml/mstyle.rb +4 -4
- data/lib/sts/tbx_iso_tml/msub.rb +4 -4
- data/lib/sts/tbx_iso_tml/msup.rb +2 -2
- data/lib/sts/tbx_iso_tml/munderover.rb +2 -2
- data/lib/sts/tbx_iso_tml/named_content.rb +2 -2
- data/lib/sts/tbx_iso_tml/normative_authorization.rb +1 -1
- data/lib/sts/tbx_iso_tml/note.rb +2 -2
- data/lib/sts/tbx_iso_tml/part_of_speech.rb +1 -1
- data/lib/sts/tbx_iso_tml/see.rb +2 -2
- data/lib/sts/tbx_iso_tml/semantics.rb +3 -3
- data/lib/sts/tbx_iso_tml/source.rb +1 -1
- data/lib/sts/tbx_iso_tml/sup.rb +1 -1
- data/lib/sts/tbx_iso_tml/table.rb +4 -4
- data/lib/sts/tbx_iso_tml/table_wrap.rb +4 -4
- data/lib/sts/tbx_iso_tml/tbody.rb +4 -4
- data/lib/sts/tbx_iso_tml/td.rb +11 -11
- data/lib/sts/tbx_iso_tml/term.rb +5 -5
- data/lib/sts/tbx_iso_tml/term_entry.rb +1 -1
- data/lib/sts/tbx_iso_tml/term_information_group.rb +3 -3
- data/lib/sts/tbx_iso_tml/term_type.rb +1 -1
- data/lib/sts/tbx_iso_tml/th.rb +11 -11
- data/lib/sts/tbx_iso_tml/thead.rb +4 -4
- data/lib/sts/tbx_iso_tml/xref.rb +3 -3
- data/lib/sts/version.rb +1 -1
- data/sts.gemspec +1 -1
- metadata +9 -9
data/lib/sts/niso_sts/title.rb
CHANGED
@@ -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,
|
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,
|
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,
|
33
|
-
attribute :main,
|
32
|
+
attribute :intro, :string
|
33
|
+
attribute :main, :string
|
34
34
|
attribute :full, TitleFull
|
35
35
|
attribute :compl, TitleCompl
|
36
|
-
attribute :lang,
|
36
|
+
attribute :lang, :string
|
37
37
|
|
38
38
|
xml do
|
39
39
|
root "title-wrap", mixed: true
|
data/lib/sts/tbx_iso_tml/bold.rb
CHANGED
data/lib/sts/tbx_iso_tml/col.rb
CHANGED
@@ -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,
|
9
|
-
attribute :char,
|
10
|
-
attribute :charoff,
|
11
|
-
attribute :span,
|
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,
|
15
|
+
attribute :value, :string
|
16
16
|
attribute :italic, Italic
|
17
17
|
attribute :math, Sts::TbxIsoTml::Math
|
18
|
-
attribute :sub,
|
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,
|
9
|
-
attribute :xtarget,
|
10
|
-
attribute :lang,
|
11
|
-
attribute :value,
|
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,
|
12
|
-
attribute :value,
|
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,8 +5,8 @@ require "lutaml/model"
|
|
5
5
|
module Sts
|
6
6
|
module TbxIsoTml
|
7
7
|
class ExternalSource < Lutaml::Model::Serializable
|
8
|
-
attribute :target,
|
9
|
-
attribute :value,
|
8
|
+
attribute :target, :string
|
9
|
+
attribute :value, :string
|
10
10
|
|
11
11
|
xml do
|
12
12
|
root "xSource"
|
data/lib/sts/tbx_iso_tml/fn.rb
CHANGED
@@ -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,
|
9
|
-
attribute :label,
|
8
|
+
attribute :id, :string
|
9
|
+
attribute :label, :string
|
10
10
|
attribute :p, Sts::NisoSts::Paragraph
|
11
11
|
|
12
12
|
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,
|
9
|
-
attribute :sub,
|
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,
|
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,
|
29
|
-
attribute :subject_field,
|
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
|
data/lib/sts/tbx_iso_tml/math.rb
CHANGED
@@ -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,
|
21
|
-
attribute :content,
|
22
|
-
attribute :display,
|
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,
|
27
|
-
attribute :mo,
|
28
|
-
attribute :mi,
|
29
|
-
attribute :mtext,
|
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,
|
14
|
-
attribute :open,
|
15
|
-
attribute :close,
|
16
|
-
attribute :mo,
|
17
|
-
attribute :mn,
|
18
|
-
attribute :mi,
|
19
|
-
attribute :mtext,
|
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,
|
15
|
-
attribute :linethickness,
|
16
|
-
attribute :mn,
|
17
|
-
attribute :mtext,
|
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
|
data/lib/sts/tbx_iso_tml/mi.rb
CHANGED
data/lib/sts/tbx_iso_tml/mrow.rb
CHANGED
@@ -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,
|
15
|
-
attribute :mo,
|
16
|
-
attribute :mi,
|
17
|
-
attribute :mn,
|
18
|
-
attribute :mtext,
|
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
|
@@ -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,
|
9
|
+
attribute :mathvariant, :string
|
10
10
|
attribute :mstyle, Mstyle
|
11
11
|
attribute :mspace, Mspace, collection: true
|
12
|
-
attribute :mi,
|
13
|
-
attribute :mn,
|
14
|
-
attribute :mo,
|
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
|
data/lib/sts/tbx_iso_tml/msub.rb
CHANGED
@@ -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,
|
16
|
-
attribute :mi,
|
17
|
-
attribute :mn,
|
18
|
-
attribute :mtext,
|
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
|
data/lib/sts/tbx_iso_tml/msup.rb
CHANGED
@@ -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,
|
14
|
-
attribute :mn,
|
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,
|
11
|
-
attribute :mi,
|
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,
|
9
|
-
attribute :content,
|
8
|
+
attribute :content_type, :string
|
9
|
+
attribute :content, :string
|
10
10
|
|
11
11
|
xml do
|
12
12
|
root "named-content"
|
data/lib/sts/tbx_iso_tml/note.rb
CHANGED
@@ -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,
|
18
|
-
attribute :value,
|
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
|
data/lib/sts/tbx_iso_tml/see.rb
CHANGED
@@ -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,
|
9
|
-
attribute :value,
|
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,
|
13
|
-
attribute :mtext,
|
12
|
+
attribute :mo, :string
|
13
|
+
attribute :mtext, :string
|
14
14
|
attribute :munder, Sts::TbxIsoTml::Munder
|
15
|
-
attribute :content,
|
15
|
+
attribute :content, :string
|
16
16
|
|
17
17
|
xml do
|
18
18
|
root "semantics", mixed: true
|
data/lib/sts/tbx_iso_tml/sup.rb
CHANGED
@@ -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,
|
16
|
-
attribute :rules,
|
17
|
-
attribute :frame,
|
18
|
-
attribute :width,
|
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,
|
12
|
-
attribute :orientation,
|
13
|
-
attribute :position,
|
14
|
-
attribute :label,
|
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,
|
12
|
-
attribute :charoff,
|
13
|
-
attribute :valign,
|
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
|
|
data/lib/sts/tbx_iso_tml/td.rb
CHANGED
@@ -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,
|
19
|
-
attribute :align,
|
20
|
-
attribute :scope,
|
21
|
-
attribute :style,
|
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,
|
25
|
-
attribute :char,
|
26
|
-
attribute :charoff,
|
27
|
-
attribute :colspan,
|
28
|
-
attribute :rowspan,
|
29
|
-
attribute :valign,
|
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
|
data/lib/sts/tbx_iso_tml/term.rb
CHANGED
@@ -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,
|
16
|
-
attribute :script,
|
17
|
-
attribute :value,
|
15
|
+
attribute :id, :string
|
16
|
+
attribute :script, :string
|
17
|
+
attribute :value, :string
|
18
18
|
attribute :italic, Sts::TbxIsoTml::Italic
|
19
|
-
attribute :bold,
|
20
|
-
attribute :sub,
|
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,
|
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,
|
19
|
-
attribute :usage_note,
|
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,
|
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,
|
8
|
+
attribute :value, :string,
|
9
9
|
values: %w[acronym abbreviation equation formula fullForm symbol variant]
|
10
10
|
|
11
11
|
xml do
|