metanorma-un 0.5.9 → 0.5.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +3 -0
- data/lib/asciidoctor/un/basicdoc.rng +20 -3
- data/lib/asciidoctor/un/converter.rb +1 -1
- data/lib/asciidoctor/un/isodoc.rng +118 -4
- data/lib/asciidoctor/un/un.rng +6 -0
- data/lib/isodoc/un/base_convert.rb +1 -1
- data/lib/isodoc/un/html/html_unece_intro.html +1 -1
- data/lib/isodoc/un/html/word_unece_intro.html +1 -1
- data/lib/isodoc/un/html_convert.rb +2 -2
- data/lib/isodoc/un/un.plenary-attachment.xsl +419 -189
- data/lib/isodoc/un/un.plenary.xsl +419 -189
- data/lib/isodoc/un/un.recommendation.xsl +424 -194
- data/lib/isodoc/un/word_convert.rb +2 -2
- data/lib/isodoc/un/xref.rb +4 -2
- data/lib/metanorma/un/processor.rb +11 -0
- data/lib/metanorma/un/version.rb +1 -1
- data/metanorma-unece.gemspec +2 -2
- metadata +7 -8
- data/lib/metanorma/un/fonts_manifest.yaml +0 -6
@@ -16,9 +16,9 @@ module IsoDoc
|
|
16
16
|
|
17
17
|
def default_fonts(options)
|
18
18
|
{
|
19
|
-
bodyfont: (options[:script] == "Hans" ? '"
|
19
|
+
bodyfont: (options[:script] == "Hans" ? '"Source Han Sans",serif' :
|
20
20
|
'"Times New Roman",serif'),
|
21
|
-
headerfont: (options[:script] == "Hans" ? '"
|
21
|
+
headerfont: (options[:script] == "Hans" ? '"Source Han Sans",sans-serif' :
|
22
22
|
'"Times New Roman",serif'),
|
23
23
|
monospacefont: '"Courier New",monospace',
|
24
24
|
normalfontsize: "10.5pt",
|
data/lib/isodoc/un/xref.rb
CHANGED
@@ -23,8 +23,10 @@ module IsoDoc
|
|
23
23
|
def clause_names(docxml, sect_num)
|
24
24
|
q = "//clause[parent::sections]"
|
25
25
|
@paranumber = 0
|
26
|
-
|
27
|
-
|
26
|
+
i = 0
|
27
|
+
docxml.xpath(ns(q)).each do |c|
|
28
|
+
section_names(c, i, 1)
|
29
|
+
i += 1
|
28
30
|
end
|
29
31
|
end
|
30
32
|
|
@@ -18,6 +18,17 @@ module Metanorma
|
|
18
18
|
)
|
19
19
|
end
|
20
20
|
|
21
|
+
def fonts_manifest
|
22
|
+
{
|
23
|
+
"Arial" => nil,
|
24
|
+
"Arial Black" => nil,
|
25
|
+
"Courier" => nil,
|
26
|
+
"Times New Roman" => nil,
|
27
|
+
"STIX Two Math" => nil,
|
28
|
+
"Source Han Sans" => nil,
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
21
32
|
def version
|
22
33
|
"Metanorma::UN #{Metanorma::UN::VERSION}"
|
23
34
|
end
|
data/lib/metanorma/un/version.rb
CHANGED
data/metanorma-unece.gemspec
CHANGED
@@ -30,8 +30,8 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency "twitter_cldr"
|
31
31
|
spec.add_dependency "iso-639"
|
32
32
|
|
33
|
-
spec.add_dependency "metanorma-standoc", "~> 1.
|
34
|
-
spec.add_dependency "isodoc", "~> 1.
|
33
|
+
spec.add_dependency "metanorma-standoc", "~> 1.8.0"
|
34
|
+
spec.add_dependency "isodoc", "~> 1.5.0"
|
35
35
|
|
36
36
|
spec.add_development_dependency "byebug", "~> 9.1"
|
37
37
|
spec.add_development_dependency "sassc", "2.4.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-un
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roman-numerals
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
61
|
+
version: 1.8.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.
|
68
|
+
version: 1.8.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: 1.
|
75
|
+
version: 1.5.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: 1.
|
82
|
+
version: 1.5.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: byebug
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -283,7 +283,6 @@ files:
|
|
283
283
|
- lib/metanorma-un.rb
|
284
284
|
- lib/metanorma/un.rb
|
285
285
|
- lib/metanorma/un/UN_emblem_blue.svg
|
286
|
-
- lib/metanorma/un/fonts_manifest.yaml
|
287
286
|
- lib/metanorma/un/input.rb
|
288
287
|
- lib/metanorma/un/processor.rb
|
289
288
|
- lib/metanorma/un/version.rb
|
@@ -307,7 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
307
306
|
- !ruby/object:Gem::Version
|
308
307
|
version: '0'
|
309
308
|
requirements: []
|
310
|
-
rubygems_version: 3.
|
309
|
+
rubygems_version: 3.1.4
|
311
310
|
signing_key:
|
312
311
|
specification_version: 4
|
313
312
|
summary: Metanorma for UN.
|