sts 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +1 -1
- data/.rubocop.yml +12 -0
- data/Gemfile +6 -0
- data/lib/sts/mapper.rb +442 -0
- data/lib/sts/niso_sts/app.rb +49 -0
- data/lib/sts/niso_sts/app_group.rb +19 -0
- data/lib/sts/niso_sts/back.rb +12 -2
- data/lib/sts/niso_sts/body.rb +2 -2
- data/lib/sts/niso_sts/caption.rb +47 -0
- data/lib/sts/niso_sts/custom_meta.rb +23 -0
- data/lib/sts/niso_sts/custom_meta_group.rb +18 -0
- data/lib/sts/niso_sts/def.rb +19 -0
- data/lib/sts/niso_sts/def_item.rb +24 -0
- data/lib/sts/niso_sts/def_list.rb +28 -0
- data/lib/sts/niso_sts/display_formula.rb +27 -0
- data/lib/sts/niso_sts/document_identification.rb +7 -7
- data/lib/sts/niso_sts/ext_link.rb +20 -0
- data/lib/sts/niso_sts/figure.rb +40 -0
- data/lib/sts/niso_sts/fn.rb +24 -0
- data/lib/sts/niso_sts/fn_group.rb +19 -0
- data/lib/sts/niso_sts/front.rb +9 -2
- data/lib/sts/niso_sts/graphic.rb +29 -0
- data/lib/sts/niso_sts/inline_formula.rb +22 -0
- data/lib/sts/niso_sts/list.rb +9 -1
- data/lib/sts/niso_sts/list_item.rb +25 -0
- data/lib/sts/niso_sts/meta_note.rb +24 -0
- data/lib/sts/niso_sts/metadata_iso.rb +2 -2
- data/lib/sts/niso_sts/metadata_std.rb +59 -0
- data/lib/sts/niso_sts/mixed_citation.rb +27 -0
- data/lib/sts/niso_sts/non_normative_example.rb +22 -0
- data/lib/sts/niso_sts/non_normative_note.rb +4 -2
- data/lib/sts/niso_sts/object_id.rb +23 -0
- data/lib/sts/niso_sts/page_count.rb +2 -2
- data/lib/sts/niso_sts/paragraph.rb +36 -2
- data/lib/sts/niso_sts/permissions.rb +20 -0
- data/lib/sts/niso_sts/reference.rb +4 -1
- data/lib/sts/niso_sts/reference_list.rb +6 -1
- data/lib/sts/niso_sts/reference_standard.rb +17 -6
- data/lib/sts/niso_sts/section.rb +43 -9
- data/lib/sts/niso_sts/standard.rb +14 -1
- data/lib/sts/niso_sts/standard_identification.rb +13 -7
- data/lib/sts/niso_sts/standard_ref.rb +2 -2
- data/lib/sts/niso_sts/std_cross_reference.rb +18 -0
- data/lib/sts/niso_sts/std_id.rb +24 -0
- data/lib/sts/niso_sts/std_id_group.rb +19 -0
- data/lib/sts/niso_sts/term_display.rb +2 -2
- data/lib/sts/niso_sts/term_section.rb +10 -3
- data/lib/sts/niso_sts/title.rb +22 -0
- data/lib/sts/niso_sts/title_wrap.rb +6 -2
- data/lib/sts/niso_sts.rb +1 -0
- data/lib/sts/tbx_iso_tml/bold.rb +18 -0
- data/lib/sts/tbx_iso_tml/caption.rb +17 -0
- data/lib/sts/tbx_iso_tml/col.rb +23 -0
- data/lib/sts/tbx_iso_tml/definition.rb +24 -1
- data/lib/sts/tbx_iso_tml/entailed_term.rb +26 -0
- data/lib/sts/tbx_iso_tml/example.rb +16 -1
- data/lib/sts/tbx_iso_tml/external_graphic.rb +2 -2
- data/lib/sts/tbx_iso_tml/external_source.rb +2 -2
- data/lib/sts/tbx_iso_tml/fn.rb +23 -0
- data/lib/sts/tbx_iso_tml/fn_group.rb +19 -0
- data/lib/sts/tbx_iso_tml/geographical_usage.rb +2 -2
- data/lib/sts/tbx_iso_tml/grammatical_gender.rb +2 -2
- data/lib/sts/tbx_iso_tml/grammatical_number.rb +2 -2
- data/lib/sts/tbx_iso_tml/italic.rb +20 -0
- data/lib/sts/tbx_iso_tml/lang_set.rb +11 -7
- data/lib/sts/tbx_iso_tml/math.rb +62 -0
- data/lib/sts/tbx_iso_tml/mfenced.rb +43 -0
- data/lib/sts/tbx_iso_tml/mfrac.rb +33 -0
- data/lib/sts/tbx_iso_tml/mi.rb +19 -0
- data/lib/sts/tbx_iso_tml/mrow.rb +46 -0
- data/lib/sts/tbx_iso_tml/mspace.rb +18 -0
- data/lib/sts/tbx_iso_tml/mstyle.rb +29 -0
- data/lib/sts/tbx_iso_tml/msub.rb +34 -0
- data/lib/sts/tbx_iso_tml/msup.rb +27 -0
- data/lib/sts/tbx_iso_tml/munder.rb +20 -0
- data/lib/sts/tbx_iso_tml/munderover.rb +24 -0
- data/lib/sts/tbx_iso_tml/named_content.rb +20 -0
- data/lib/sts/tbx_iso_tml/normative_authorization.rb +2 -2
- data/lib/sts/tbx_iso_tml/note.rb +31 -2
- data/lib/sts/tbx_iso_tml/part_of_speech.rb +2 -2
- data/lib/sts/tbx_iso_tml/see.rb +2 -2
- data/lib/sts/tbx_iso_tml/semantics.rb +29 -0
- data/lib/sts/tbx_iso_tml/source.rb +6 -1
- data/lib/sts/tbx_iso_tml/sup.rb +24 -0
- data/lib/sts/tbx_iso_tml/table.rb +32 -0
- data/lib/sts/tbx_iso_tml/table_wrap.rb +32 -0
- data/lib/sts/tbx_iso_tml/table_wrap_foot.rb +19 -0
- data/lib/sts/tbx_iso_tml/tbody.rb +26 -0
- data/lib/sts/tbx_iso_tml/td.rb +60 -0
- data/lib/sts/tbx_iso_tml/term.rb +31 -2
- data/lib/sts/tbx_iso_tml/term_entry.rb +2 -3
- data/lib/sts/tbx_iso_tml/term_information_group.rb +5 -2
- data/lib/sts/tbx_iso_tml/term_type.rb +2 -2
- data/lib/sts/tbx_iso_tml/th.rb +50 -0
- data/lib/sts/tbx_iso_tml/thead.rb +26 -0
- data/lib/sts/tbx_iso_tml/tr.rb +22 -0
- data/lib/sts/tbx_iso_tml/xref.rb +26 -0
- data/lib/sts/tbx_iso_tml.rb +8 -0
- data/lib/sts/version.rb +1 -1
- data/lib/sts.rb +1 -0
- data/sts.gemspec +2 -8
- metadata +61 -59
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../mapper"
|
4
|
+
|
5
|
+
require_relative "table"
|
6
|
+
require_relative "table_wrap_foot"
|
7
|
+
|
8
|
+
require_relative "../niso_sts/caption"
|
9
|
+
|
10
|
+
module Sts
|
11
|
+
module TbxIsoTml
|
12
|
+
class TableWrap < Sts::Mapper
|
13
|
+
attribute :id, Shale::Type::String
|
14
|
+
attribute :orientation, Shale::Type::String
|
15
|
+
attribute :label, Shale::Type::String
|
16
|
+
attribute :caption, Sts::NisoSts::Caption
|
17
|
+
attribute :table, Sts::TbxIsoTml::Table, collection: true
|
18
|
+
attribute :table_wrap_foot, Sts::TbxIsoTml::TableWrapFoot
|
19
|
+
|
20
|
+
xml do
|
21
|
+
root "table-wrap"
|
22
|
+
|
23
|
+
map_attribute "id", to: :id
|
24
|
+
map_attribute "orientation", to: :orientation
|
25
|
+
map_element "label", to: :label
|
26
|
+
map_element "caption", to: :caption
|
27
|
+
map_element "table", to: :table
|
28
|
+
map_element "table-wrap-foot", to: :table_wrap_foot
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../mapper"
|
4
|
+
|
5
|
+
require_relative "fn_group"
|
6
|
+
|
7
|
+
module Sts
|
8
|
+
module TbxIsoTml
|
9
|
+
class TableWrapFoot < Sts::Mapper
|
10
|
+
attribute :fn_group, Sts::TbxIsoTml::FnGroup
|
11
|
+
|
12
|
+
xml do
|
13
|
+
root "table-wrap-foot"
|
14
|
+
|
15
|
+
map_element "fn-group", to: :fn_group
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../mapper"
|
4
|
+
|
5
|
+
require_relative "tr"
|
6
|
+
|
7
|
+
module Sts
|
8
|
+
module TbxIsoTml
|
9
|
+
class Tbody < Sts::Mapper
|
10
|
+
attribute :tr, Sts::TbxIsoTml::Tr, collection: true
|
11
|
+
attribute :char, Shale::Type::String
|
12
|
+
attribute :charoff, Shale::Type::String
|
13
|
+
attribute :valign, Shale::Type::String
|
14
|
+
|
15
|
+
xml do
|
16
|
+
root "tbody"
|
17
|
+
|
18
|
+
map_attribute "char", to: :char
|
19
|
+
map_attribute "charoff", to: :charoff
|
20
|
+
map_attribute "valign", to: :valign
|
21
|
+
|
22
|
+
map_element "tr", to: :tr
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../mapper"
|
4
|
+
|
5
|
+
require_relative "italic"
|
6
|
+
require_relative "xref"
|
7
|
+
require_relative "bold"
|
8
|
+
require_relative "../niso_sts/reference_standard"
|
9
|
+
require_relative "../niso_sts/inline_formula"
|
10
|
+
require_relative "../niso_sts/non_normative_note"
|
11
|
+
require_relative "../niso_sts/graphic"
|
12
|
+
require_relative "../niso_sts/def_list"
|
13
|
+
|
14
|
+
module Sts
|
15
|
+
module TbxIsoTml
|
16
|
+
class Td < Sts::Mapper
|
17
|
+
attribute :content, Shale::Type::String
|
18
|
+
attribute :align, Shale::Type::String
|
19
|
+
attribute :bold, Bold
|
20
|
+
attribute :italic, Italic
|
21
|
+
attribute :content_type, Shale::Type::String
|
22
|
+
attribute :char, Shale::Type::String
|
23
|
+
attribute :charoff, Shale::Type::String
|
24
|
+
attribute :colspan, Shale::Type::String
|
25
|
+
attribute :rowspan, Shale::Type::String
|
26
|
+
attribute :valign, Shale::Type::String
|
27
|
+
attribute :inline_formula, Sts::NisoSts::InlineFormula
|
28
|
+
attribute :non_normative_note, Sts::NisoSts::NonNormativeNote
|
29
|
+
attribute :list, Sts::NisoSts::List
|
30
|
+
attribute :xref, Xref
|
31
|
+
attribute :std, Sts::NisoSts::ReferenceStandard
|
32
|
+
attribute :graphic, Sts::NisoSts::Graphic
|
33
|
+
attribute :def_list, Sts::NisoSts::DefList
|
34
|
+
|
35
|
+
xml do
|
36
|
+
root "tr"
|
37
|
+
|
38
|
+
map_content to: :content
|
39
|
+
|
40
|
+
map_attribute "align", to: :align
|
41
|
+
map_attribute "content-type", to: :content_type
|
42
|
+
map_attribute "char", to: :char
|
43
|
+
map_attribute "charoff", to: :charoff
|
44
|
+
map_attribute "colspan", to: :colspan
|
45
|
+
map_attribute "rowspan", to: :rowspan
|
46
|
+
map_attribute "valign", to: :valign
|
47
|
+
|
48
|
+
map_element "italic", to: :italic
|
49
|
+
map_element "bold", to: :bold
|
50
|
+
map_element "xref", to: :xref
|
51
|
+
map_element "std", to: :std
|
52
|
+
map_element "list", to: :list
|
53
|
+
map_element "inline-formula", to: :inline_formula
|
54
|
+
map_element "non-normative-note", to: :non_normative_note
|
55
|
+
map_element "graphic", to: :graphic
|
56
|
+
map_element "def-list", to: :def_list
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
data/lib/sts/tbx_iso_tml/term.rb
CHANGED
@@ -1,18 +1,47 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "../mapper"
|
4
|
+
|
5
|
+
require_relative "italic"
|
6
|
+
require_relative "math"
|
7
|
+
require_relative "named_content"
|
8
|
+
require_relative "xref"
|
9
|
+
|
10
|
+
require_relative "../niso_sts/inline_formula"
|
4
11
|
|
5
12
|
module Sts
|
6
13
|
module TbxIsoTml
|
7
|
-
class Term <
|
14
|
+
class Term < Sts::Mapper
|
8
15
|
attribute :id, Shale::Type::String
|
16
|
+
attribute :script, Shale::Type::String
|
9
17
|
attribute :value, Shale::Type::String
|
18
|
+
attribute :italic, Sts::TbxIsoTml::Italic
|
19
|
+
attribute :bold, Shale::Type::String
|
20
|
+
attribute :sub, Shale::Type::String
|
21
|
+
attribute :math, Sts::TbxIsoTml::Math
|
22
|
+
attribute :xref, Sts::TbxIsoTml::Xref
|
23
|
+
attribute :inline_formula, Sts::NisoSts::InlineFormula
|
24
|
+
attribute :named_content, Sts::TbxIsoTml::NamedContent
|
10
25
|
|
11
26
|
xml do
|
12
27
|
root "term"
|
13
28
|
namespace "urn:iso:std:iso:30042:ed-1", "tbx"
|
14
29
|
|
15
30
|
map_attribute "id", to: :id
|
31
|
+
map_attribute "script", to: :script
|
32
|
+
map_element "inline-formula", to: :inline_formula,
|
33
|
+
namespace: nil,
|
34
|
+
prefix: nil
|
35
|
+
map_element "named-content", to: :named_content,
|
36
|
+
namespace: nil,
|
37
|
+
prefix: nil
|
38
|
+
map_element "italic", to: :italic, namespace: nil, prefix: nil
|
39
|
+
map_element "bold", to: :bold, namespace: nil, prefix: nil
|
40
|
+
map_element "sub", to: :sub, namespace: nil, prefix: nil
|
41
|
+
map_element "xref", to: :xref, namespace: nil, prefix: nil
|
42
|
+
map_element "math", to: :math,
|
43
|
+
namespace: "http://www.w3.org/1998/Math/MathML",
|
44
|
+
prefix: "mml"
|
16
45
|
map_content to: :value
|
17
46
|
end
|
18
47
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "../mapper"
|
4
4
|
|
5
5
|
require_relative "lang_set"
|
6
6
|
require_relative "external_graphic"
|
7
7
|
|
8
8
|
module Sts
|
9
9
|
module TbxIsoTml
|
10
|
-
class TermEntry <
|
10
|
+
class TermEntry < Sts::Mapper
|
11
11
|
attribute :id, Shale::Type::String
|
12
12
|
attribute :lang_set, LangSet, collection: true
|
13
13
|
attribute :x_graphic, ExternalGraphic, collection: true
|
@@ -20,7 +20,6 @@ module Sts
|
|
20
20
|
map_element "langSet", to: :lang_set
|
21
21
|
map_element "xGraphic", to: :x_graphic
|
22
22
|
end
|
23
|
-
|
24
23
|
end
|
25
24
|
end
|
26
25
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "../mapper"
|
4
4
|
|
5
5
|
require_relative "term"
|
6
6
|
require_relative "part_of_speech"
|
@@ -12,9 +12,10 @@ require_relative "term_type"
|
|
12
12
|
|
13
13
|
module Sts
|
14
14
|
module TbxIsoTml
|
15
|
-
class TermInformationGroup <
|
15
|
+
class TermInformationGroup < Sts::Mapper
|
16
16
|
attribute :term, Term
|
17
17
|
attribute :pos, PartOfSpeech
|
18
|
+
attribute :id, Shale::Type::String
|
18
19
|
attribute :usage_note, Shale::Type::String
|
19
20
|
attribute :normative_authorization, NormativeAuthorization
|
20
21
|
attribute :geographical_usage, GeographicalUsage
|
@@ -27,6 +28,8 @@ module Sts
|
|
27
28
|
root "tig"
|
28
29
|
namespace "urn:iso:std:iso:30042:ed-1", "tbx"
|
29
30
|
|
31
|
+
map_attribute "id", to: :id
|
32
|
+
|
30
33
|
map_element "term", to: :term
|
31
34
|
map_element "partOfSpeech", to: :pos
|
32
35
|
map_element "usageNote", to: :usage_note
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../mapper"
|
4
|
+
|
5
|
+
require_relative "italic"
|
6
|
+
require_relative "bold"
|
7
|
+
require_relative "xref"
|
8
|
+
require_relative "../niso_sts/reference_standard"
|
9
|
+
require_relative "../niso_sts/inline_formula"
|
10
|
+
|
11
|
+
module Sts
|
12
|
+
module TbxIsoTml
|
13
|
+
class Th < Sts::Mapper
|
14
|
+
attribute :content, Shale::Type::String
|
15
|
+
attribute :colspan, Shale::Type::String
|
16
|
+
attribute :align, Shale::Type::String
|
17
|
+
attribute :rowspan, Shale::Type::String
|
18
|
+
attribute :break, Shale::Type::String
|
19
|
+
attribute :content_type, Shale::Type::String
|
20
|
+
attribute :char, Shale::Type::String
|
21
|
+
attribute :charoff, Shale::Type::String
|
22
|
+
attribute :valign, Shale::Type::String
|
23
|
+
attribute :italic, Italic
|
24
|
+
attribute :bold, Bold
|
25
|
+
attribute :std, Sts::NisoSts::ReferenceStandard
|
26
|
+
attribute :xref, Xref
|
27
|
+
attribute :inline_formula, Sts::NisoSts::InlineFormula, collection: true
|
28
|
+
|
29
|
+
xml do
|
30
|
+
root "th"
|
31
|
+
|
32
|
+
map_content to: :content
|
33
|
+
map_attribute "colspan", to: :colspan
|
34
|
+
map_attribute "align", to: :align
|
35
|
+
map_attribute "rowspan", to: :rowspan
|
36
|
+
map_attribute "content-type", to: :content_type
|
37
|
+
map_attribute "char", to: :char
|
38
|
+
map_attribute "charoff", to: :charoff
|
39
|
+
map_attribute "valign", to: :valign
|
40
|
+
|
41
|
+
map_element "break", to: :break, render_nil: true
|
42
|
+
map_element "italic", to: :italic
|
43
|
+
map_element "bold", to: :bold
|
44
|
+
map_element "std", to: :std
|
45
|
+
map_element "xref", to: :xref
|
46
|
+
map_element "inline-formula", to: :inline_formula
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../mapper"
|
4
|
+
|
5
|
+
require_relative "tr"
|
6
|
+
|
7
|
+
module Sts
|
8
|
+
module TbxIsoTml
|
9
|
+
class Thead < Sts::Mapper
|
10
|
+
attribute :tr, Sts::TbxIsoTml::Tr, collection: true
|
11
|
+
attribute :char, Shale::Type::String
|
12
|
+
attribute :charoff, Shale::Type::String
|
13
|
+
attribute :valign, Shale::Type::String
|
14
|
+
|
15
|
+
xml do
|
16
|
+
root "tbody"
|
17
|
+
|
18
|
+
map_attribute "char", to: :char
|
19
|
+
map_attribute "charoff", to: :charoff
|
20
|
+
map_attribute "valign", to: :valign
|
21
|
+
|
22
|
+
map_element "tr", to: :tr
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../mapper"
|
4
|
+
|
5
|
+
require_relative "th"
|
6
|
+
require_relative "td"
|
7
|
+
|
8
|
+
module Sts
|
9
|
+
module TbxIsoTml
|
10
|
+
class Tr < Sts::Mapper
|
11
|
+
attribute :th, Sts::TbxIsoTml::Th, collection: true
|
12
|
+
attribute :td, Sts::TbxIsoTml::Td, collection: true
|
13
|
+
|
14
|
+
xml do
|
15
|
+
root "tr"
|
16
|
+
|
17
|
+
map_element "th", to: :th
|
18
|
+
map_element "td", to: :td
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "shale"
|
4
|
+
|
5
|
+
require_relative "../mapper"
|
6
|
+
require_relative "sup"
|
7
|
+
|
8
|
+
module Sts
|
9
|
+
module TbxIsoTml
|
10
|
+
class Xref < Sts::Mapper
|
11
|
+
attribute :ref_type, Shale::Type::String
|
12
|
+
attribute :rid, Shale::Type::String
|
13
|
+
attribute :value, Shale::Type::String
|
14
|
+
attribute :sup, Sup
|
15
|
+
|
16
|
+
xml do
|
17
|
+
root "xref"
|
18
|
+
|
19
|
+
map_attribute "ref-type", to: :ref_type
|
20
|
+
map_attribute "rid", to: :rid
|
21
|
+
map_element "sup", to: :sup
|
22
|
+
map_content to: :value
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/lib/sts/tbx_iso_tml.rb
CHANGED
@@ -5,7 +5,9 @@ module Sts
|
|
5
5
|
end
|
6
6
|
end
|
7
7
|
|
8
|
+
require_relative "tbx_iso_tml/caption"
|
8
9
|
require_relative "tbx_iso_tml/definition"
|
10
|
+
require_relative "tbx_iso_tml/entailed_term"
|
9
11
|
require_relative "tbx_iso_tml/example"
|
10
12
|
require_relative "tbx_iso_tml/external_graphic"
|
11
13
|
require_relative "tbx_iso_tml/external_source"
|
@@ -17,6 +19,12 @@ require_relative "tbx_iso_tml/note"
|
|
17
19
|
require_relative "tbx_iso_tml/part_of_speech"
|
18
20
|
require_relative "tbx_iso_tml/see"
|
19
21
|
require_relative "tbx_iso_tml/source"
|
22
|
+
require_relative "tbx_iso_tml/table_wrap"
|
23
|
+
require_relative "tbx_iso_tml/table_wrap_foot"
|
24
|
+
require_relative "tbx_iso_tml/tbody"
|
25
|
+
require_relative "tbx_iso_tml/tr"
|
26
|
+
require_relative "tbx_iso_tml/th"
|
27
|
+
require_relative "tbx_iso_tml/td"
|
20
28
|
require_relative "tbx_iso_tml/term"
|
21
29
|
require_relative "tbx_iso_tml/term_entry"
|
22
30
|
require_relative "tbx_iso_tml/term_information_group"
|
data/lib/sts/version.rb
CHANGED
data/lib/sts.rb
CHANGED
data/sts.gemspec
CHANGED
@@ -22,8 +22,8 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.metadata["bug_tracker_uri"] = "#{spec.homepage}/issues"
|
23
23
|
|
24
24
|
# Specify which files should be added to the gem when it is released.
|
25
|
-
spec.files
|
26
|
-
|
25
|
+
spec.files = all_files_in_git
|
26
|
+
.reject { |f| f.match(%r{\A(?:test|spec|features|bin|\.)/}) }
|
27
27
|
|
28
28
|
spec.bindir = "exe"
|
29
29
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
@@ -32,10 +32,4 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_dependency "nokogiri"
|
33
33
|
spec.add_dependency "shale"
|
34
34
|
# spec.add_dependency "thor"
|
35
|
-
|
36
|
-
spec.add_development_dependency "pry", "~> 0.14.0"
|
37
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
38
|
-
spec.add_development_dependency "rspec", "~> 3.10"
|
39
|
-
# spec.add_development_dependency "rubocop"
|
40
|
-
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
41
35
|
end
|
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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -38,62 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: pry
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 0.14.0
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 0.14.0
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rake
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '13.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '13.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rspec
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '3.10'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '3.10'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: equivalent-xml
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0.6'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0.6'
|
97
41
|
description:
|
98
42
|
email:
|
99
43
|
- open.source@ribose.com
|
@@ -105,21 +49,45 @@ files:
|
|
105
49
|
- ".github/workflows/release.yml"
|
106
50
|
- ".gitignore"
|
107
51
|
- ".rspec"
|
52
|
+
- ".rubocop.yml"
|
108
53
|
- CODE_OF_CONDUCT.md
|
109
54
|
- Gemfile
|
110
55
|
- README.adoc
|
111
56
|
- Rakefile
|
112
57
|
- lib/sts.rb
|
58
|
+
- lib/sts/mapper.rb
|
113
59
|
- lib/sts/niso_sts.rb
|
60
|
+
- lib/sts/niso_sts/app.rb
|
61
|
+
- lib/sts/niso_sts/app_group.rb
|
114
62
|
- lib/sts/niso_sts/back.rb
|
115
63
|
- lib/sts/niso_sts/body.rb
|
64
|
+
- lib/sts/niso_sts/caption.rb
|
65
|
+
- lib/sts/niso_sts/custom_meta.rb
|
66
|
+
- lib/sts/niso_sts/custom_meta_group.rb
|
67
|
+
- lib/sts/niso_sts/def.rb
|
68
|
+
- lib/sts/niso_sts/def_item.rb
|
69
|
+
- lib/sts/niso_sts/def_list.rb
|
70
|
+
- lib/sts/niso_sts/display_formula.rb
|
116
71
|
- lib/sts/niso_sts/document_identification.rb
|
72
|
+
- lib/sts/niso_sts/ext_link.rb
|
73
|
+
- lib/sts/niso_sts/figure.rb
|
74
|
+
- lib/sts/niso_sts/fn.rb
|
75
|
+
- lib/sts/niso_sts/fn_group.rb
|
117
76
|
- lib/sts/niso_sts/front.rb
|
77
|
+
- lib/sts/niso_sts/graphic.rb
|
78
|
+
- lib/sts/niso_sts/inline_formula.rb
|
118
79
|
- lib/sts/niso_sts/list.rb
|
80
|
+
- lib/sts/niso_sts/list_item.rb
|
81
|
+
- lib/sts/niso_sts/meta_note.rb
|
119
82
|
- lib/sts/niso_sts/metadata_iso.rb
|
83
|
+
- lib/sts/niso_sts/metadata_std.rb
|
84
|
+
- lib/sts/niso_sts/mixed_citation.rb
|
85
|
+
- lib/sts/niso_sts/non_normative_example.rb
|
120
86
|
- lib/sts/niso_sts/non_normative_note.rb
|
87
|
+
- lib/sts/niso_sts/object_id.rb
|
121
88
|
- lib/sts/niso_sts/page_count.rb
|
122
89
|
- lib/sts/niso_sts/paragraph.rb
|
90
|
+
- lib/sts/niso_sts/permissions.rb
|
123
91
|
- lib/sts/niso_sts/reference.rb
|
124
92
|
- lib/sts/niso_sts/reference_list.rb
|
125
93
|
- lib/sts/niso_sts/reference_standard.rb
|
@@ -127,27 +95,61 @@ files:
|
|
127
95
|
- lib/sts/niso_sts/standard.rb
|
128
96
|
- lib/sts/niso_sts/standard_identification.rb
|
129
97
|
- lib/sts/niso_sts/standard_ref.rb
|
98
|
+
- lib/sts/niso_sts/std_cross_reference.rb
|
99
|
+
- lib/sts/niso_sts/std_id.rb
|
100
|
+
- lib/sts/niso_sts/std_id_group.rb
|
130
101
|
- lib/sts/niso_sts/term_display.rb
|
131
102
|
- lib/sts/niso_sts/term_section.rb
|
103
|
+
- lib/sts/niso_sts/title.rb
|
132
104
|
- lib/sts/niso_sts/title_wrap.rb
|
133
105
|
- lib/sts/tbx_iso_tml.rb
|
106
|
+
- lib/sts/tbx_iso_tml/bold.rb
|
107
|
+
- lib/sts/tbx_iso_tml/caption.rb
|
108
|
+
- lib/sts/tbx_iso_tml/col.rb
|
134
109
|
- lib/sts/tbx_iso_tml/definition.rb
|
110
|
+
- lib/sts/tbx_iso_tml/entailed_term.rb
|
135
111
|
- lib/sts/tbx_iso_tml/example.rb
|
136
112
|
- lib/sts/tbx_iso_tml/external_graphic.rb
|
137
113
|
- lib/sts/tbx_iso_tml/external_source.rb
|
114
|
+
- lib/sts/tbx_iso_tml/fn.rb
|
115
|
+
- lib/sts/tbx_iso_tml/fn_group.rb
|
138
116
|
- lib/sts/tbx_iso_tml/geographical_usage.rb
|
139
117
|
- lib/sts/tbx_iso_tml/grammatical_gender.rb
|
140
118
|
- lib/sts/tbx_iso_tml/grammatical_number.rb
|
119
|
+
- lib/sts/tbx_iso_tml/italic.rb
|
141
120
|
- lib/sts/tbx_iso_tml/lang_set.rb
|
121
|
+
- lib/sts/tbx_iso_tml/math.rb
|
122
|
+
- lib/sts/tbx_iso_tml/mfenced.rb
|
123
|
+
- lib/sts/tbx_iso_tml/mfrac.rb
|
124
|
+
- lib/sts/tbx_iso_tml/mi.rb
|
125
|
+
- lib/sts/tbx_iso_tml/mrow.rb
|
126
|
+
- lib/sts/tbx_iso_tml/mspace.rb
|
127
|
+
- lib/sts/tbx_iso_tml/mstyle.rb
|
128
|
+
- lib/sts/tbx_iso_tml/msub.rb
|
129
|
+
- lib/sts/tbx_iso_tml/msup.rb
|
130
|
+
- lib/sts/tbx_iso_tml/munder.rb
|
131
|
+
- lib/sts/tbx_iso_tml/munderover.rb
|
132
|
+
- lib/sts/tbx_iso_tml/named_content.rb
|
142
133
|
- lib/sts/tbx_iso_tml/normative_authorization.rb
|
143
134
|
- lib/sts/tbx_iso_tml/note.rb
|
144
135
|
- lib/sts/tbx_iso_tml/part_of_speech.rb
|
145
136
|
- lib/sts/tbx_iso_tml/see.rb
|
137
|
+
- lib/sts/tbx_iso_tml/semantics.rb
|
146
138
|
- lib/sts/tbx_iso_tml/source.rb
|
139
|
+
- lib/sts/tbx_iso_tml/sup.rb
|
140
|
+
- lib/sts/tbx_iso_tml/table.rb
|
141
|
+
- lib/sts/tbx_iso_tml/table_wrap.rb
|
142
|
+
- lib/sts/tbx_iso_tml/table_wrap_foot.rb
|
143
|
+
- lib/sts/tbx_iso_tml/tbody.rb
|
144
|
+
- lib/sts/tbx_iso_tml/td.rb
|
147
145
|
- lib/sts/tbx_iso_tml/term.rb
|
148
146
|
- lib/sts/tbx_iso_tml/term_entry.rb
|
149
147
|
- lib/sts/tbx_iso_tml/term_information_group.rb
|
150
148
|
- lib/sts/tbx_iso_tml/term_type.rb
|
149
|
+
- lib/sts/tbx_iso_tml/th.rb
|
150
|
+
- lib/sts/tbx_iso_tml/thead.rb
|
151
|
+
- lib/sts/tbx_iso_tml/tr.rb
|
152
|
+
- lib/sts/tbx_iso_tml/xref.rb
|
151
153
|
- lib/sts/version.rb
|
152
154
|
- sig/sts.rbs
|
153
155
|
- sts.gemspec
|
@@ -173,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
175
|
- !ruby/object:Gem::Version
|
174
176
|
version: '0'
|
175
177
|
requirements: []
|
176
|
-
rubygems_version: 3.
|
178
|
+
rubygems_version: 3.4.10
|
177
179
|
signing_key:
|
178
180
|
specification_version: 4
|
179
181
|
summary: Library to work with NISO STS and ISOSTS.
|