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 +4 -4
- data/lib/asciidoctor/itu/converter.rb +17 -0
- data/lib/isodoc/itu/base_convert.rb +0 -8
- data/lib/isodoc/itu/html/itu.scss +1 -1
- data/lib/metanorma/itu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f1f4494b2e3c3800273743df8c2d957778a979fceb65989a0740620d18dd10a
|
4
|
+
data.tar.gz: de712f335235094155c877fe0e540520d86c7916c6fcd5de54c19014e0b0cf1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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|
|
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.
|
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-
|
11
|
+
date: 2019-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|