metanorma-itu 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0489aa1cffb34cb6ebfb21de325891a04205ea4690754edae3fe07fd1755cf5
4
- data.tar.gz: 24d44d4a94aa2c8177423bc550fac67a34c4e4d8f7b1a72b1ba763069fd6951f
3
+ metadata.gz: 8151c41aa026fbac639e0f2052d2e59155c16ed1ca49e8099e48695f0f8a0332
4
+ data.tar.gz: 939c333032f4cff5a577a782c25c6085e8e8e9ba6fc970b16ea52f2b8e0208db
5
5
  SHA512:
6
- metadata.gz: 8ea891ce2d529367e837c03c4cc5937318ba4a8c9584f0ac855614bfd26280136dbc1d484a9acdf2ddec3f885426338e11841901f07e01b8c3be1a7e6106321d
7
- data.tar.gz: 696556b96e3bc38fd964f95335c664788269bc3eac40444d095ef73678afe4ba1a0b2385abadd12c1f025986932710b35d726dcc8439fb271d89772dacae0277
6
+ metadata.gz: 6f68049f6b7141477a521376e601a4927c84f961f7d65765e8b64ccce0ff3827a8396e264478c964306c7ea90c5aafe90a6de9b37b76cd7b5ea961c2179fbe3c
7
+ data.tar.gz: eca803ecfef447d44492454f7dcae494c64aa25729e4129e9d3633801c3cbdce80b879f4886068dad95e3e02772c8a37fe8cc60006a15bc7cd3cc23e0c9504c7
@@ -87,7 +87,7 @@
87
87
  </element>
88
88
  </define>
89
89
  <define name="reqinherit">
90
- <element name="subject">
90
+ <element name="inherit">
91
91
  <text/>
92
92
  </element>
93
93
  </define>
@@ -116,21 +116,17 @@ module IsoDoc
116
116
  bibitem
117
117
  end
118
118
 
119
- def noniso_bibitem_entry(list, b, ordinal, biblio)
120
- return if implicit_reference(b)
119
+ def nonstd_bibitem(list, b, ordinal, biblio)
121
120
  list.p **attr_code(iso_bibitem_entry_attrs(b, biblio)) do |ref|
122
- ref << "[#{iso_bibitem_ref_code(b)}]"
121
+ ref << "[#{bibitem_ref_code(b)}]"
123
122
  date_note_process(b, ref)
124
123
  insert_tab(ref, 1)
125
124
  reference_format(b, ref)
126
125
  end
127
126
  end
128
127
 
129
- def biblio_list(f, div, bibliography)
130
- bibitems = split_bibitems(f)
131
- bibitems.each_with_index do |b, i|
132
- noniso_bibitem_entry(div, b, (i + 1), bibliography)
133
- end
128
+ def std_bibitem_entry(list, b, ordinal, biblio)
129
+ nonstd_bibitem(list, b, ordinal, biblio)
134
130
  end
135
131
 
136
132
  def terms_defs_title(node)
@@ -20,10 +20,6 @@ module IsoDoc
20
20
  super
21
21
  end
22
22
 
23
- def html_toc(docxml)
24
- docxml
25
- end
26
-
27
23
  def default_fonts(options)
28
24
  {
29
25
  bodyfont: (options[:script] == "Hans" ? '"SimSun",serif' : '"Open Sans",sans-serif'),
data/lib/metanorma/itu.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require "metanorma/itu/version"
1
2
  require "metanorma/itu/processor"
2
3
 
3
4
  module Metanorma
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "0.1.4"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -27,8 +27,8 @@ Gem::Specification.new do |spec|
27
27
  spec.add_dependency "asciidoctor", "~> 1.5.7"
28
28
  spec.add_dependency "htmlentities", "~> 4.3.4"
29
29
  spec.add_dependency "ruby-jing"
30
- spec.add_dependency "metanorma-standoc", "~> 1.2.0"
31
- spec.add_dependency "isodoc", "~> 0.10.0"
30
+ spec.add_dependency "metanorma-standoc", "~> 1.3.0"
31
+ spec.add_dependency "isodoc", "~> 1.0.0"
32
32
 
33
33
  spec.add_development_dependency "bundler", "~> 2.0.1"
34
34
  spec.add_development_dependency "byebug", "~> 9.1"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-05 00:00:00.000000000 Z
11
+ date: 2019-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2.0
61
+ version: 1.3.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.2.0
68
+ version: 1.3.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: isodoc
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.10.0
75
+ version: 1.0.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.10.0
82
+ version: 1.0.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement