sts 0.6.14 → 0.6.15
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/.github/workflows/release.yml +7 -0
- data/lib/sts/iso_sts/bold.rb +3 -0
- data/lib/sts/iso_sts/copyright_statement.rb +6 -0
- data/lib/sts/iso_sts/italic.rb +3 -0
- data/lib/sts/iso_sts/label.rb +5 -1
- data/lib/sts/iso_sts/mixed_citation.rb +3 -0
- data/lib/sts/iso_sts/monospace.rb +6 -0
- data/lib/sts/iso_sts/named_content.rb +30 -0
- data/lib/sts/iso_sts/paragraph.rb +5 -0
- data/lib/sts/iso_sts/preformat.rb +6 -0
- data/lib/sts/iso_sts/sc.rb +6 -0
- data/lib/sts/iso_sts/strike.rb +6 -0
- data/lib/sts/iso_sts/styled_content.rb +3 -0
- data/lib/sts/iso_sts/sub.rb +6 -0
- data/lib/sts/iso_sts/sup.rb +6 -0
- data/lib/sts/iso_sts/td.rb +6 -0
- data/lib/sts/iso_sts/term.rb +5 -1
- data/lib/sts/iso_sts/th.rb +6 -0
- data/lib/sts/iso_sts/title.rb +6 -0
- data/lib/sts/iso_sts/title_compl.rb +6 -0
- data/lib/sts/iso_sts/title_full.rb +6 -0
- data/lib/sts/iso_sts/title_intro.rb +6 -0
- data/lib/sts/iso_sts/title_main.rb +6 -0
- data/lib/sts/iso_sts/underline.rb +6 -0
- data/lib/sts/niso_sts/addr_line.rb +6 -0
- data/lib/sts/niso_sts/aff.rb +6 -0
- data/lib/sts/niso_sts/alt_title.rb +6 -0
- data/lib/sts/niso_sts/article_title.rb +6 -0
- data/lib/sts/niso_sts/attrib.rb +6 -0
- data/lib/sts/niso_sts/award_id.rb +6 -0
- data/lib/sts/niso_sts/chapter_title.rb +6 -0
- data/lib/sts/niso_sts/chem_struct.rb +6 -0
- data/lib/sts/niso_sts/code.rb +3 -0
- data/lib/sts/niso_sts/collab.rb +6 -0
- data/lib/sts/niso_sts/comment.rb +6 -0
- data/lib/sts/niso_sts/compound_kwd_part.rb +6 -0
- data/lib/sts/niso_sts/conf_theme.rb +6 -0
- data/lib/sts/niso_sts/copyright_statement.rb +6 -0
- data/lib/sts/niso_sts/corresp.rb +6 -0
- data/lib/sts/niso_sts/def_head.rb +6 -0
- data/lib/sts/niso_sts/ext_link.rb +6 -0
- data/lib/sts/niso_sts/funding_source.rb +6 -0
- data/lib/sts/niso_sts/funding_statement.rb +6 -0
- data/lib/sts/niso_sts/gov.rb +6 -0
- data/lib/sts/niso_sts/inline_supplementary_material.rb +6 -0
- data/lib/sts/niso_sts/intro.rb +6 -0
- data/lib/sts/niso_sts/kwd.rb +6 -0
- data/lib/sts/niso_sts/label.rb +6 -0
- data/lib/sts/niso_sts/license_p.rb +6 -0
- data/lib/sts/niso_sts/main.rb +6 -0
- data/lib/sts/niso_sts/mixed_citation.rb +6 -0
- data/lib/sts/niso_sts/monospace.rb +6 -0
- data/lib/sts/niso_sts/named_content.rb +18 -0
- data/lib/sts/niso_sts/on_behalf_of.rb +6 -0
- data/lib/sts/niso_sts/overline.rb +6 -0
- data/lib/sts/niso_sts/paragraph.rb +5 -0
- data/lib/sts/niso_sts/preformat.rb +6 -0
- data/lib/sts/niso_sts/product.rb +6 -0
- data/lib/sts/niso_sts/reference_standard.rb +6 -0
- data/lib/sts/niso_sts/related_article.rb +6 -0
- data/lib/sts/niso_sts/related_object.rb +6 -0
- data/lib/sts/niso_sts/roman.rb +6 -0
- data/lib/sts/niso_sts/sans_serif.rb +6 -0
- data/lib/sts/niso_sts/sc.rb +6 -0
- data/lib/sts/niso_sts/see.rb +6 -0
- data/lib/sts/niso_sts/see_also.rb +6 -0
- data/lib/sts/niso_sts/see_also_entry.rb +6 -0
- data/lib/sts/niso_sts/see_entry.rb +6 -0
- data/lib/sts/niso_sts/series.rb +6 -0
- data/lib/sts/niso_sts/series_text.rb +6 -0
- data/lib/sts/niso_sts/series_title.rb +6 -0
- data/lib/sts/niso_sts/sig.rb +6 -0
- data/lib/sts/niso_sts/speaker.rb +6 -0
- data/lib/sts/niso_sts/strike.rb +6 -0
- data/lib/sts/niso_sts/string_conf.rb +6 -0
- data/lib/sts/niso_sts/sub.rb +6 -0
- data/lib/sts/niso_sts/subject.rb +6 -0
- data/lib/sts/niso_sts/subtitle.rb +6 -0
- data/lib/sts/niso_sts/sup.rb +6 -0
- data/lib/sts/niso_sts/supplement.rb +6 -0
- data/lib/sts/niso_sts/target.rb +3 -0
- data/lib/sts/niso_sts/term.rb +3 -0
- data/lib/sts/niso_sts/term_head.rb +6 -0
- data/lib/sts/niso_sts/textual_form.rb +6 -0
- data/lib/sts/niso_sts/title.rb +6 -0
- data/lib/sts/niso_sts/title_full.rb +6 -0
- data/lib/sts/niso_sts/trans_source.rb +6 -0
- data/lib/sts/niso_sts/trans_title.rb +6 -0
- data/lib/sts/niso_sts/underline.rb +6 -0
- data/lib/sts/niso_sts/verse_line.rb +6 -0
- data/lib/sts/version.rb +1 -1
- metadata +2 -2
data/lib/sts/niso_sts/sc.rb
CHANGED
|
@@ -7,6 +7,10 @@ module Sts
|
|
|
7
7
|
attribute :specific_use, :string
|
|
8
8
|
attribute :toggle, :string
|
|
9
9
|
attribute :content, :string, collection: true
|
|
10
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
11
|
+
collection: true
|
|
12
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
13
|
+
collection: true
|
|
10
14
|
xml do
|
|
11
15
|
element "sc"
|
|
12
16
|
mixed_content
|
|
@@ -15,6 +19,8 @@ module Sts
|
|
|
15
19
|
map_attribute "specific-use", to: :specific_use
|
|
16
20
|
map_attribute "toggle", to: :toggle
|
|
17
21
|
map_content to: :content
|
|
22
|
+
map_element "named-content", to: :named_content
|
|
23
|
+
map_element "target", to: :target
|
|
18
24
|
end
|
|
19
25
|
end
|
|
20
26
|
end
|
data/lib/sts/niso_sts/see.rb
CHANGED
|
@@ -9,6 +9,10 @@ module Sts
|
|
|
9
9
|
attribute :rid, :string
|
|
10
10
|
attribute :specific_use, :string
|
|
11
11
|
attribute :xml_lang, :string
|
|
12
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
13
|
+
collection: true
|
|
14
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
15
|
+
collection: true
|
|
12
16
|
|
|
13
17
|
xml do
|
|
14
18
|
element "see"
|
|
@@ -20,6 +24,8 @@ module Sts
|
|
|
20
24
|
map_attribute "rid", to: :rid
|
|
21
25
|
map_attribute "specific-use", to: :specific_use
|
|
22
26
|
map_attribute "xml:lang", to: :xml_lang
|
|
27
|
+
map_element "named-content", to: :named_content
|
|
28
|
+
map_element "target", to: :target
|
|
23
29
|
end
|
|
24
30
|
end
|
|
25
31
|
end
|
|
@@ -9,6 +9,10 @@ module Sts
|
|
|
9
9
|
attribute :rid, :string
|
|
10
10
|
attribute :specific_use, :string
|
|
11
11
|
attribute :xml_lang, :string
|
|
12
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
13
|
+
collection: true
|
|
14
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
15
|
+
collection: true
|
|
12
16
|
|
|
13
17
|
xml do
|
|
14
18
|
element "see-also"
|
|
@@ -20,6 +24,8 @@ module Sts
|
|
|
20
24
|
map_attribute "rid", to: :rid
|
|
21
25
|
map_attribute "specific-use", to: :specific_use
|
|
22
26
|
map_attribute "xml:lang", to: :xml_lang
|
|
27
|
+
map_element "named-content", to: :named_content
|
|
28
|
+
map_element "target", to: :target
|
|
23
29
|
end
|
|
24
30
|
end
|
|
25
31
|
end
|
|
@@ -9,6 +9,10 @@ module Sts
|
|
|
9
9
|
attribute :specific_use, :string
|
|
10
10
|
attribute :xml_lang, :string
|
|
11
11
|
attribute :content, :string, collection: true
|
|
12
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
13
|
+
collection: true
|
|
14
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
15
|
+
collection: true
|
|
12
16
|
|
|
13
17
|
xml do
|
|
14
18
|
element "see-also-entry"
|
|
@@ -20,6 +24,8 @@ module Sts
|
|
|
20
24
|
map_attribute "specific-use", to: :specific_use
|
|
21
25
|
map_attribute "xml:lang", to: :xml_lang
|
|
22
26
|
map_content to: :content
|
|
27
|
+
map_element "named-content", to: :named_content
|
|
28
|
+
map_element "target", to: :target
|
|
23
29
|
end
|
|
24
30
|
end
|
|
25
31
|
end
|
|
@@ -9,6 +9,10 @@ module Sts
|
|
|
9
9
|
attribute :specific_use, :string
|
|
10
10
|
attribute :xml_lang, :string
|
|
11
11
|
attribute :content, :string, collection: true
|
|
12
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
13
|
+
collection: true
|
|
14
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
15
|
+
collection: true
|
|
12
16
|
|
|
13
17
|
xml do
|
|
14
18
|
element "see-entry"
|
|
@@ -20,6 +24,8 @@ module Sts
|
|
|
20
24
|
map_attribute "specific-use", to: :specific_use
|
|
21
25
|
map_attribute "xml:lang", to: :xml_lang
|
|
22
26
|
map_content to: :content
|
|
27
|
+
map_element "named-content", to: :named_content
|
|
28
|
+
map_element "target", to: :target
|
|
23
29
|
end
|
|
24
30
|
end
|
|
25
31
|
end
|
data/lib/sts/niso_sts/series.rb
CHANGED
|
@@ -8,6 +8,10 @@ module Sts
|
|
|
8
8
|
attribute :specific_use, :string
|
|
9
9
|
attribute :xml_lang, :string
|
|
10
10
|
attribute :content, :string, collection: true
|
|
11
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
12
|
+
collection: true
|
|
13
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
14
|
+
collection: true
|
|
11
15
|
xml do
|
|
12
16
|
element "series"
|
|
13
17
|
map_attribute "id", to: :id
|
|
@@ -17,6 +21,8 @@ module Sts
|
|
|
17
21
|
map_attribute "specific-use", to: :specific_use
|
|
18
22
|
map_attribute "xml:lang", to: :xml_lang
|
|
19
23
|
map_content to: :content
|
|
24
|
+
map_element "named-content", to: :named_content
|
|
25
|
+
map_element "target", to: :target
|
|
20
26
|
end
|
|
21
27
|
end
|
|
22
28
|
end
|
|
@@ -8,6 +8,10 @@ module Sts
|
|
|
8
8
|
attribute :specific_use, :string
|
|
9
9
|
attribute :xml_lang, :string
|
|
10
10
|
attribute :content, :string, collection: true
|
|
11
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
12
|
+
collection: true
|
|
13
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
14
|
+
collection: true
|
|
11
15
|
xml do
|
|
12
16
|
element "series-text"
|
|
13
17
|
map_attribute "id", to: :id
|
|
@@ -17,6 +21,8 @@ module Sts
|
|
|
17
21
|
map_attribute "specific-use", to: :specific_use
|
|
18
22
|
map_attribute "xml:lang", to: :xml_lang
|
|
19
23
|
map_content to: :content
|
|
24
|
+
map_element "named-content", to: :named_content
|
|
25
|
+
map_element "target", to: :target
|
|
20
26
|
end
|
|
21
27
|
end
|
|
22
28
|
end
|
|
@@ -8,6 +8,10 @@ module Sts
|
|
|
8
8
|
attribute :specific_use, :string
|
|
9
9
|
attribute :xml_lang, :string
|
|
10
10
|
attribute :content, :string, collection: true
|
|
11
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
12
|
+
collection: true
|
|
13
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
14
|
+
collection: true
|
|
11
15
|
xml do
|
|
12
16
|
element "series-title"
|
|
13
17
|
map_attribute "id", to: :id
|
|
@@ -17,6 +21,8 @@ module Sts
|
|
|
17
21
|
map_attribute "specific-use", to: :specific_use
|
|
18
22
|
map_attribute "xml:lang", to: :xml_lang
|
|
19
23
|
map_content to: :content
|
|
24
|
+
map_element "named-content", to: :named_content
|
|
25
|
+
map_element "target", to: :target
|
|
20
26
|
end
|
|
21
27
|
end
|
|
22
28
|
end
|
data/lib/sts/niso_sts/sig.rb
CHANGED
|
@@ -6,6 +6,10 @@ module Sts
|
|
|
6
6
|
attribute :id, :string
|
|
7
7
|
attribute :graphic, ::Sts::NisoSts::Graphic
|
|
8
8
|
attribute :content, :string, collection: true
|
|
9
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
10
|
+
collection: true
|
|
11
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
12
|
+
collection: true
|
|
9
13
|
xml do
|
|
10
14
|
element "sig"
|
|
11
15
|
map_attribute "id", to: :id
|
|
@@ -13,6 +17,8 @@ module Sts
|
|
|
13
17
|
|
|
14
18
|
map_element "graphic", to: :graphic
|
|
15
19
|
map_content to: :content
|
|
20
|
+
map_element "named-content", to: :named_content
|
|
21
|
+
map_element "target", to: :target
|
|
16
22
|
end
|
|
17
23
|
end
|
|
18
24
|
end
|
data/lib/sts/niso_sts/speaker.rb
CHANGED
|
@@ -5,12 +5,18 @@ module Sts
|
|
|
5
5
|
class Speaker < Lutaml::Model::Serializable
|
|
6
6
|
attribute :id, :string
|
|
7
7
|
attribute :content, :string, collection: true
|
|
8
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
9
|
+
collection: true
|
|
10
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
11
|
+
collection: true
|
|
8
12
|
xml do
|
|
9
13
|
element "speaker"
|
|
10
14
|
map_attribute "id", to: :id
|
|
11
15
|
mixed_content
|
|
12
16
|
|
|
13
17
|
map_content to: :content
|
|
18
|
+
map_element "named-content", to: :named_content
|
|
19
|
+
map_element "target", to: :target
|
|
14
20
|
end
|
|
15
21
|
end
|
|
16
22
|
end
|
data/lib/sts/niso_sts/strike.rb
CHANGED
|
@@ -7,6 +7,10 @@ module Sts
|
|
|
7
7
|
attribute :specific_use, :string
|
|
8
8
|
attribute :toggle, :string
|
|
9
9
|
attribute :content, :string, collection: true
|
|
10
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
11
|
+
collection: true
|
|
12
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
13
|
+
collection: true
|
|
10
14
|
xml do
|
|
11
15
|
element "strike"
|
|
12
16
|
mixed_content
|
|
@@ -15,6 +19,8 @@ module Sts
|
|
|
15
19
|
map_attribute "specific-use", to: :specific_use
|
|
16
20
|
map_attribute "toggle", to: :toggle
|
|
17
21
|
map_content to: :content
|
|
22
|
+
map_element "named-content", to: :named_content
|
|
23
|
+
map_element "target", to: :target
|
|
18
24
|
end
|
|
19
25
|
end
|
|
20
26
|
end
|
|
@@ -5,12 +5,18 @@ module Sts
|
|
|
5
5
|
class StringConf < Lutaml::Model::Serializable
|
|
6
6
|
attribute :id, :string
|
|
7
7
|
attribute :content, :string, collection: true
|
|
8
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
9
|
+
collection: true
|
|
10
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
11
|
+
collection: true
|
|
8
12
|
xml do
|
|
9
13
|
element "string-conf"
|
|
10
14
|
map_attribute "id", to: :id
|
|
11
15
|
mixed_content
|
|
12
16
|
|
|
13
17
|
map_content to: :content
|
|
18
|
+
map_element "named-content", to: :named_content
|
|
19
|
+
map_element "target", to: :target
|
|
14
20
|
end
|
|
15
21
|
end
|
|
16
22
|
end
|
data/lib/sts/niso_sts/sub.rb
CHANGED
|
@@ -11,6 +11,10 @@ module Sts
|
|
|
11
11
|
attribute :underline, ::Sts::NisoSts::Underline, collection: true
|
|
12
12
|
attribute :monospace, ::Sts::NisoSts::Monospace, collection: true
|
|
13
13
|
attribute :styled_content, ::Sts::NisoSts::StyledContent, collection: true
|
|
14
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
15
|
+
collection: true
|
|
16
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
17
|
+
collection: true
|
|
14
18
|
|
|
15
19
|
xml do
|
|
16
20
|
element "sub"
|
|
@@ -24,6 +28,8 @@ module Sts
|
|
|
24
28
|
map_element "underline", to: :underline
|
|
25
29
|
map_element "monospace", to: :monospace
|
|
26
30
|
map_element "styled-content", to: :styled_content
|
|
31
|
+
map_element "named-content", to: :named_content
|
|
32
|
+
map_element "target", to: :target
|
|
27
33
|
end
|
|
28
34
|
end
|
|
29
35
|
end
|
data/lib/sts/niso_sts/subject.rb
CHANGED
|
@@ -8,6 +8,10 @@ module Sts
|
|
|
8
8
|
attribute :xml_lang, :string
|
|
9
9
|
attribute :specific_use, :string
|
|
10
10
|
attribute :content, :string, collection: true
|
|
11
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
12
|
+
collection: true
|
|
13
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
14
|
+
collection: true
|
|
11
15
|
xml do
|
|
12
16
|
element "subject"
|
|
13
17
|
mixed_content
|
|
@@ -17,6 +21,8 @@ module Sts
|
|
|
17
21
|
map_attribute "xml:lang", to: :xml_lang
|
|
18
22
|
map_attribute "specific-use", to: :specific_use
|
|
19
23
|
map_content to: :content
|
|
24
|
+
map_element "named-content", to: :named_content
|
|
25
|
+
map_element "target", to: :target
|
|
20
26
|
end
|
|
21
27
|
end
|
|
22
28
|
end
|
|
@@ -5,12 +5,18 @@ module Sts
|
|
|
5
5
|
class Subtitle < Lutaml::Model::Serializable
|
|
6
6
|
attribute :id, :string
|
|
7
7
|
attribute :content, :string, collection: true
|
|
8
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
9
|
+
collection: true
|
|
10
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
11
|
+
collection: true
|
|
8
12
|
xml do
|
|
9
13
|
element "subtitle"
|
|
10
14
|
map_attribute "id", to: :id
|
|
11
15
|
mixed_content
|
|
12
16
|
|
|
13
17
|
map_content to: :content
|
|
18
|
+
map_element "named-content", to: :named_content
|
|
19
|
+
map_element "target", to: :target
|
|
14
20
|
end
|
|
15
21
|
end
|
|
16
22
|
end
|
data/lib/sts/niso_sts/sup.rb
CHANGED
|
@@ -19,6 +19,10 @@ module Sts
|
|
|
19
19
|
attribute :ext_link, ::Sts::NisoSts::ExtLink, collection: true
|
|
20
20
|
attribute :inline_formula, ::Sts::NisoSts::InlineFormula, collection: true
|
|
21
21
|
attribute :break, ::Sts::NisoSts::Break, collection: true
|
|
22
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
23
|
+
collection: true
|
|
24
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
25
|
+
collection: true
|
|
22
26
|
|
|
23
27
|
xml do
|
|
24
28
|
element "sup"
|
|
@@ -40,6 +44,8 @@ module Sts
|
|
|
40
44
|
map_element "ext-link", to: :ext_link
|
|
41
45
|
map_element "inline-formula", to: :inline_formula
|
|
42
46
|
map_element "break", to: :break
|
|
47
|
+
map_element "named-content", to: :named_content
|
|
48
|
+
map_element "target", to: :target
|
|
43
49
|
end
|
|
44
50
|
end
|
|
45
51
|
end
|
|
@@ -8,6 +8,10 @@ module Sts
|
|
|
8
8
|
attribute :suppl_version, :string
|
|
9
9
|
attribute :xml_lang, :string
|
|
10
10
|
attribute :content, :string, collection: true
|
|
11
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
12
|
+
collection: true
|
|
13
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
14
|
+
collection: true
|
|
11
15
|
xml do
|
|
12
16
|
element "supplement"
|
|
13
17
|
mixed_content
|
|
@@ -17,6 +21,8 @@ module Sts
|
|
|
17
21
|
map_attribute "suppl-version", to: :suppl_version
|
|
18
22
|
map_attribute "xml:lang", to: :xml_lang
|
|
19
23
|
map_content to: :content
|
|
24
|
+
map_element "named-content", to: :named_content
|
|
25
|
+
map_element "target", to: :target
|
|
20
26
|
end
|
|
21
27
|
end
|
|
22
28
|
end
|
data/lib/sts/niso_sts/target.rb
CHANGED
|
@@ -8,6 +8,8 @@ module Sts
|
|
|
8
8
|
attribute :specific_use, :string
|
|
9
9
|
attribute :xml_lang, :string
|
|
10
10
|
attribute :content, :string, collection: true
|
|
11
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
12
|
+
collection: true
|
|
11
13
|
xml do
|
|
12
14
|
element "target"
|
|
13
15
|
mixed_content
|
|
@@ -17,6 +19,7 @@ module Sts
|
|
|
17
19
|
map_attribute "specific-use", to: :specific_use
|
|
18
20
|
map_attribute "xml:lang", to: :xml_lang
|
|
19
21
|
map_content to: :content
|
|
22
|
+
map_element "named-content", to: :named_content
|
|
20
23
|
end
|
|
21
24
|
end
|
|
22
25
|
end
|
data/lib/sts/niso_sts/term.rb
CHANGED
|
@@ -39,6 +39,8 @@ module Sts
|
|
|
39
39
|
attribute :vocab_term_identifier, :string
|
|
40
40
|
# attribute :lang, :string
|
|
41
41
|
attribute :named_content, ::Sts::NisoSts::NamedContent, collection: true
|
|
42
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
43
|
+
collection: true
|
|
42
44
|
|
|
43
45
|
xml do
|
|
44
46
|
element "term"
|
|
@@ -77,6 +79,7 @@ module Sts
|
|
|
77
79
|
map_element "underline", to: :underline
|
|
78
80
|
map_element "styled-content", to: :styled_content
|
|
79
81
|
map_element "break", to: :break
|
|
82
|
+
map_element "target", to: :target
|
|
80
83
|
end
|
|
81
84
|
end
|
|
82
85
|
end
|
|
@@ -5,12 +5,18 @@ module Sts
|
|
|
5
5
|
class TermHead < Lutaml::Model::Serializable
|
|
6
6
|
attribute :id, :string
|
|
7
7
|
attribute :content, :string, collection: true
|
|
8
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
9
|
+
collection: true
|
|
10
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
11
|
+
collection: true
|
|
8
12
|
xml do
|
|
9
13
|
element "term-head"
|
|
10
14
|
map_attribute "id", to: :id
|
|
11
15
|
mixed_content
|
|
12
16
|
|
|
13
17
|
map_content to: :content
|
|
18
|
+
map_element "named-content", to: :named_content
|
|
19
|
+
map_element "target", to: :target
|
|
14
20
|
end
|
|
15
21
|
end
|
|
16
22
|
end
|
|
@@ -5,12 +5,18 @@ module Sts
|
|
|
5
5
|
class TextualForm < Lutaml::Model::Serializable
|
|
6
6
|
attribute :id, :string
|
|
7
7
|
attribute :content, :string, collection: true
|
|
8
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
9
|
+
collection: true
|
|
10
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
11
|
+
collection: true
|
|
8
12
|
xml do
|
|
9
13
|
element "textual-form"
|
|
10
14
|
map_attribute "id", to: :id
|
|
11
15
|
mixed_content
|
|
12
16
|
|
|
13
17
|
map_content to: :content
|
|
18
|
+
map_element "named-content", to: :named_content
|
|
19
|
+
map_element "target", to: :target
|
|
14
20
|
end
|
|
15
21
|
end
|
|
16
22
|
end
|
data/lib/sts/niso_sts/title.rb
CHANGED
|
@@ -19,6 +19,10 @@ module Sts
|
|
|
19
19
|
attribute :monospace, Sts::NisoSts::Monospace, collection: true
|
|
20
20
|
attribute :sc, Sts::NisoSts::Sc, collection: true
|
|
21
21
|
attribute :ext_link, Sts::NisoSts::ExtLink, collection: true
|
|
22
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
23
|
+
collection: true
|
|
24
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
25
|
+
collection: true
|
|
22
26
|
|
|
23
27
|
xml do
|
|
24
28
|
element "title"
|
|
@@ -40,6 +44,8 @@ module Sts
|
|
|
40
44
|
map_element "monospace", to: :monospace
|
|
41
45
|
map_element "sc", to: :sc
|
|
42
46
|
map_element "ext-link", to: :ext_link
|
|
47
|
+
map_element "named-content", to: :named_content
|
|
48
|
+
map_element "target", to: :target
|
|
43
49
|
end
|
|
44
50
|
end
|
|
45
51
|
end
|
|
@@ -5,6 +5,10 @@ module Sts
|
|
|
5
5
|
class TitleFull < Lutaml::Model::Serializable
|
|
6
6
|
attribute :content, :string, collection: true
|
|
7
7
|
attribute :std, ::Sts::NisoSts::ReferenceStandard
|
|
8
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
9
|
+
collection: true
|
|
10
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
11
|
+
collection: true
|
|
8
12
|
|
|
9
13
|
xml do
|
|
10
14
|
element "full"
|
|
@@ -12,6 +16,8 @@ module Sts
|
|
|
12
16
|
|
|
13
17
|
map_content to: :content
|
|
14
18
|
map_element "std", to: :std
|
|
19
|
+
map_element "named-content", to: :named_content
|
|
20
|
+
map_element "target", to: :target
|
|
15
21
|
end
|
|
16
22
|
end
|
|
17
23
|
end
|
|
@@ -7,6 +7,10 @@ module Sts
|
|
|
7
7
|
attribute :content, :string, collection: true
|
|
8
8
|
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
9
9
|
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
10
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
11
|
+
collection: true
|
|
12
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
13
|
+
collection: true
|
|
10
14
|
|
|
11
15
|
xml do
|
|
12
16
|
element "trans-source"
|
|
@@ -16,6 +20,8 @@ module Sts
|
|
|
16
20
|
map_content to: :content
|
|
17
21
|
map_element "bold", to: :bold
|
|
18
22
|
map_element "italic", to: :italic
|
|
23
|
+
map_element "named-content", to: :named_content
|
|
24
|
+
map_element "target", to: :target
|
|
19
25
|
end
|
|
20
26
|
end
|
|
21
27
|
end
|
|
@@ -7,6 +7,10 @@ module Sts
|
|
|
7
7
|
attribute :content, :string, collection: true
|
|
8
8
|
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
9
9
|
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
10
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
11
|
+
collection: true
|
|
12
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
13
|
+
collection: true
|
|
10
14
|
|
|
11
15
|
xml do
|
|
12
16
|
element "trans-title"
|
|
@@ -16,6 +20,8 @@ module Sts
|
|
|
16
20
|
map_content to: :content
|
|
17
21
|
map_element "bold", to: :bold
|
|
18
22
|
map_element "italic", to: :italic
|
|
23
|
+
map_element "named-content", to: :named_content
|
|
24
|
+
map_element "target", to: :target
|
|
19
25
|
end
|
|
20
26
|
end
|
|
21
27
|
end
|
|
@@ -9,6 +9,10 @@ module Sts
|
|
|
9
9
|
attribute :content, :string, collection: true
|
|
10
10
|
attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
|
|
11
11
|
attribute :underline, ::Sts::NisoSts::Underline, collection: true
|
|
12
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
13
|
+
collection: true
|
|
14
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
15
|
+
collection: true
|
|
12
16
|
|
|
13
17
|
xml do
|
|
14
18
|
element "underline"
|
|
@@ -20,6 +24,8 @@ module Sts
|
|
|
20
24
|
map_content to: :content
|
|
21
25
|
map_element "std", to: :std
|
|
22
26
|
map_element "underline", to: :underline
|
|
27
|
+
map_element "named-content", to: :named_content
|
|
28
|
+
map_element "target", to: :target
|
|
23
29
|
end
|
|
24
30
|
end
|
|
25
31
|
end
|
|
@@ -5,12 +5,18 @@ module Sts
|
|
|
5
5
|
class VerseLine < Lutaml::Model::Serializable
|
|
6
6
|
attribute :id, :string
|
|
7
7
|
attribute :content, :string, collection: true
|
|
8
|
+
attribute :named_content, ::Sts::NisoSts::NamedContent,
|
|
9
|
+
collection: true
|
|
10
|
+
attribute :target, ::Sts::NisoSts::Target,
|
|
11
|
+
collection: true
|
|
8
12
|
xml do
|
|
9
13
|
element "verse-line"
|
|
10
14
|
map_attribute "id", to: :id
|
|
11
15
|
mixed_content
|
|
12
16
|
|
|
13
17
|
map_content to: :content
|
|
18
|
+
map_element "named-content", to: :named_content
|
|
19
|
+
map_element "target", to: :target
|
|
14
20
|
end
|
|
15
21
|
end
|
|
16
22
|
end
|
data/lib/sts/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sts
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bigdecimal
|