metanorma-itu 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -2
- data/lib/asciidoctor/itu/converter.rb +18 -12
- data/lib/asciidoctor/itu/isodoc.rng +174 -0
- data/lib/isodoc/itu/html/header.html +8 -8
- data/lib/isodoc/itu/i18n-ar.yaml +87 -0
- data/lib/isodoc/itu/i18n-de.yaml +88 -0
- data/lib/isodoc/itu/i18n-en.yaml +1 -0
- data/lib/isodoc/itu/i18n-es.yaml +88 -0
- data/lib/isodoc/itu/i18n-fr.yaml +88 -0
- data/lib/isodoc/itu/i18n-ru.yaml +88 -0
- data/lib/isodoc/itu/i18n-zh-Hans.yaml +1 -0
- data/lib/isodoc/itu/i18n.rb +13 -6
- data/lib/isodoc/itu/itu.implementers-guide.xsl +65 -0
- data/lib/isodoc/itu/itu.in-force.xsl +65 -0
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +65 -0
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +65 -0
- data/lib/isodoc/itu/itu.recommendation.xsl +65 -0
- data/lib/isodoc/itu/itu.resolution.xsl +65 -0
- data/lib/isodoc/itu/itu.technical-paper.xsl +65 -0
- data/lib/isodoc/itu/itu.technical-report.xsl +65 -0
- data/lib/isodoc/itu/metadata.rb +3 -3
- data/lib/metanorma/itu/version.rb +1 -1
- metadata +7 -2
data/lib/isodoc/itu/metadata.rb
CHANGED
@@ -74,7 +74,7 @@ module IsoDoc
|
|
74
74
|
def person_attributes(authors)
|
75
75
|
%i(affiliations addresses emails faxes phones).each { |i| set(i, []) }
|
76
76
|
authors.each do |a|
|
77
|
-
append(:affiliations,
|
77
|
+
append(:affiliations,
|
78
78
|
a&.at(ns("./affiliation/organization/name"))&.text)
|
79
79
|
append(:addresses, a&.at(ns("./affiliation/organization/address/"\
|
80
80
|
"formattedAddress"))&.text)
|
@@ -131,7 +131,7 @@ module IsoDoc
|
|
131
131
|
def doctype(isoxml, _out)
|
132
132
|
d = isoxml&.at(ns("//bibdata/ext/doctype"))&.text
|
133
133
|
set(:doctype_original, d)
|
134
|
-
set(:doctype_abbreviated, @labels
|
134
|
+
set(:doctype_abbreviated, @labels.dig("doctype_abbrev", d))
|
135
135
|
if d == "recommendation-annex"
|
136
136
|
set(:doctype, "Recommendation")
|
137
137
|
set(:doctype_display, "Recommendation")
|
@@ -197,7 +197,7 @@ module IsoDoc
|
|
197
197
|
set(:meeting_date, resolution ? ddMMMMYYYY(o, nil) : ddMMMYYYY(o))
|
198
198
|
elsif f = isoxml&.at(ns("//bibdata/ext/meeting-date/from"))&.text
|
199
199
|
t = isoxml&.at(ns("//bibdata/ext/meeting-date/to"))&.text
|
200
|
-
set(:meeting_date, resolution ? ddMMMMYYYY(f, t) :
|
200
|
+
set(:meeting_date, resolution ? ddMMMMYYYY(f, t) : "#{ddMMMYYYY(f)}/#{ddMMMYYYY(t)}")
|
201
201
|
end
|
202
202
|
end
|
203
203
|
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: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -318,7 +318,12 @@ files:
|
|
318
318
|
- lib/isodoc/itu/html/wordstyle.css
|
319
319
|
- lib/isodoc/itu/html/wordstyle.scss
|
320
320
|
- lib/isodoc/itu/html_convert.rb
|
321
|
+
- lib/isodoc/itu/i18n-ar.yaml
|
322
|
+
- lib/isodoc/itu/i18n-de.yaml
|
321
323
|
- lib/isodoc/itu/i18n-en.yaml
|
324
|
+
- lib/isodoc/itu/i18n-es.yaml
|
325
|
+
- lib/isodoc/itu/i18n-fr.yaml
|
326
|
+
- lib/isodoc/itu/i18n-ru.yaml
|
322
327
|
- lib/isodoc/itu/i18n-zh-Hans.yaml
|
323
328
|
- lib/isodoc/itu/i18n.rb
|
324
329
|
- lib/isodoc/itu/init.rb
|