metanorma-bipm 1.1.5.1 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/bipm/bipm.rng +1 -1
- data/lib/asciidoctor/bipm/isodoc.rng +52 -11
- data/lib/asciidoctor/bipm/reqt.rng +15 -4
- data/lib/isodoc/bipm/bipm.brochure.xsl +483 -86
- data/lib/isodoc/bipm/bipm.guide.xsl +483 -86
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +483 -86
- data/lib/isodoc/bipm/bipm.rapport.xsl +483 -86
- data/lib/isodoc/bipm/html/htmlstyle.css +7 -1
- data/lib/isodoc/bipm/html/htmlstyle.scss +8 -1
- data/lib/isodoc/bipm/jcgm.standard.xsl +335 -100
- data/lib/isodoc/bipm/presentation_xml_convert.rb +6 -5
- data/lib/metanorma/bipm/processor.rb +9 -1
- data/lib/metanorma/bipm/version.rb +1 -1
- metadata +2 -2
@@ -65,6 +65,7 @@ module IsoDoc
|
|
65
65
|
def clause1(elem)
|
66
66
|
return if elem["unnumbered"] == "true"
|
67
67
|
return if elem.at(("./ancestor::*[@unnumbered = 'true']"))
|
68
|
+
|
68
69
|
super
|
69
70
|
end
|
70
71
|
|
@@ -111,7 +112,7 @@ module IsoDoc
|
|
111
112
|
i = 3
|
112
113
|
while list_draft(xml, i) != ["", ""]
|
113
114
|
ret += "<tr>#{list_draft(xml, i).map { |x| "<td>#{x}</td>" }.join} "\
|
114
|
-
|
115
|
+
"<td/></tr>"
|
115
116
|
i += 1
|
116
117
|
end
|
117
118
|
ret
|
@@ -121,10 +122,9 @@ module IsoDoc
|
|
121
122
|
d = xml.at(ns("//bibdata/relation[@type = 'supersedes'][#{idx}]"\
|
122
123
|
"/bibitem")) or return ["", ""]
|
123
124
|
|
124
|
-
date = d&.at(ns("./date"))&.text
|
125
125
|
draft = d&.at(ns("./version/draft"))&.text and draft = "Draft #{draft}"
|
126
126
|
edn = d&.at(ns("./edition"))&.text and edn = "Version #{edn}"
|
127
|
-
[[draft, edn].join(" "), date]
|
127
|
+
[[draft, edn].join(" "), d&.at(ns("./date"))&.text]
|
128
128
|
end
|
129
129
|
|
130
130
|
def list_authors(xml)
|
@@ -136,7 +136,7 @@ module IsoDoc
|
|
136
136
|
|
137
137
|
COCHAIR = "xmlns:role[contains(text(),'co-chair')]".freeze
|
138
138
|
CHAIR = "[xmlns:role[contains(text(),'chair')]"\
|
139
|
-
|
139
|
+
"[not(contains(text(),'co-chair'))]]".freeze
|
140
140
|
|
141
141
|
def list_cochairs(xml)
|
142
142
|
ret = list_people(xml, "//bibdata/contributor[#{COCHAIR}]/person")
|
@@ -168,11 +168,12 @@ module IsoDoc
|
|
168
168
|
end
|
169
169
|
|
170
170
|
def twitter_cldr_localiser_symbols
|
171
|
-
{ group: "&#
|
171
|
+
{ group: " ", fraction_group: " ",
|
172
172
|
fraction_group_digits: 3 }
|
173
173
|
end
|
174
174
|
|
175
175
|
def mathml1(elem, locale)
|
176
|
+
asciimath_dup(elem)
|
176
177
|
localize_maths(elem, locale)
|
177
178
|
end
|
178
179
|
|
@@ -19,9 +19,17 @@ module Metanorma
|
|
19
19
|
"Arial" => nil,
|
20
20
|
"Times New Roman" => nil,
|
21
21
|
"Work Sans" => nil,
|
22
|
+
"Work Sans Black" => nil,
|
23
|
+
"Work Sans ExtraBold" => nil,
|
24
|
+
"Work Sans ExtraLight" => nil,
|
25
|
+
"Work Sans Light" => nil,
|
26
|
+
"Work Sans Medium" => nil,
|
27
|
+
"Work Sans SemiBold" => nil,
|
28
|
+
"Work Sans Thin" => nil,
|
22
29
|
"STIX Two Math" => nil,
|
23
30
|
"Source Han Sans" => nil,
|
24
|
-
"
|
31
|
+
"Source Han Sans Normal" => nil,
|
32
|
+
"TeXGyreChorus" => nil,
|
25
33
|
}
|
26
34
|
end
|
27
35
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-bipm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.9
|
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-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|