metanorma-itu 0.2.0 → 0.2.1

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: 8151c41aa026fbac639e0f2052d2e59155c16ed1ca49e8099e48695f0f8a0332
4
- data.tar.gz: 939c333032f4cff5a577a782c25c6085e8e8e9ba6fc970b16ea52f2b8e0208db
3
+ metadata.gz: 2f1f4494b2e3c3800273743df8c2d957778a979fceb65989a0740620d18dd10a
4
+ data.tar.gz: de712f335235094155c877fe0e540520d86c7916c6fcd5de54c19014e0b0cf1b
5
5
  SHA512:
6
- metadata.gz: 6f68049f6b7141477a521376e601a4927c84f961f7d65765e8b64ccce0ff3827a8396e264478c964306c7ea90c5aafe90a6de9b37b76cd7b5ea961c2179fbe3c
7
- data.tar.gz: eca803ecfef447d44492454f7dcae494c64aa25729e4129e9d3633801c3cbdce80b879f4886068dad95e3e02772c8a37fe8cc60006a15bc7cd3cc23e0c9504c7
6
+ metadata.gz: de4b5864578ad725b3cc91e10c3fec6003a4499d73fa816bdc7e449b12ab35bbaea6b01b22cdec654da89c91323db415d3efbb2e64c4999c0482a169c62be3ea
7
+ data.tar.gz: 67a014877039d0f3efab684417aa545bde6031bab12bfbb373afdc5f467171627ee67ac76b9f007d31b68fcc5b5d4fb1055f027b84441ba739e3a6a3d35cf75e
@@ -149,6 +149,23 @@ module Asciidoctor
149
149
  super
150
150
  end
151
151
 
152
+ NORM_REF = "//bibliography/references[title = 'References']".freeze
153
+
154
+ def boilerplate_cleanup(xmldoc)
155
+ f = xmldoc.at(self.class::NORM_REF) and
156
+ norm_ref_preface(f)
157
+ end
158
+
159
+ def load_yaml(lang, script)
160
+ y = if @i18nyaml then YAML.load_file(@i18nyaml)
161
+ elsif lang == "en"
162
+ YAML.load_file(File.join(File.dirname(__FILE__), "i18n-en.yaml"))
163
+ else
164
+ YAML.load_file(File.join(File.dirname(__FILE__), "i18n-en.yaml"))
165
+ end
166
+ super.merge(y)
167
+ end
168
+
152
169
  def html_converter(node)
153
170
  IsoDoc::ITU::HtmlConvert.new(html_extract_attributes(node))
154
171
  end
@@ -95,19 +95,11 @@ module IsoDoc
95
95
  out.div do |div|
96
96
  num = num + 1
97
97
  clause_name(num, @normref_lbl, div, nil)
98
- norm_ref_preface(f, div)
99
98
  biblio_list(f, div, false)
100
99
  end
101
100
  num
102
101
  end
103
102
 
104
- def norm_ref_preface(f, div)
105
- div.p "The following ITU-T Recommendations and other references contain provisions which, through reference in this text, constitute provisions of this Recommendation. At the time of publication, the editions indicated were valid. All Recommendations and other references are subject to revision; users of this Recommendation are therefore encouraged to investigate the possibility of applying the most recent edition of the Recommendations and other references listed below. A list of the currently valid ITU-T Recommendations is regularly published. The reference to a document within this Recommendation does not give it, as a stand-alone document, the status of a Recommendation."
106
- end
107
-
108
- def term_defs_boilerplate(div, source, term, preface)
109
- end
110
-
111
103
  def split_bibitems(f)
112
104
  bibitem = []
113
105
  f.xpath(ns("./bibitem")).each do |x|
@@ -689,7 +689,7 @@ td.example p.MsoListParagraph {
689
689
  font-size: 10.0pt;
690
690
  }
691
691
 
692
- td.example p.MsoListParagraph {
692
+ div.example p.MsoListParagraph {
693
693
  font-size: 10.0pt;
694
694
  }
695
695
 
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
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.2.0
4
+ version: 0.2.1
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-20 00:00:00.000000000 Z
11
+ date: 2019-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor