metanorma-bipm 1.2.1 → 1.2.5
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/converter.rb +1 -1
- data/lib/asciidoctor/bipm/isodoc.rng +61 -18
- data/lib/isodoc/bipm/base_convert.rb +4 -13
- data/lib/isodoc/bipm/bipm.brochure.xsl +478 -106
- data/lib/isodoc/bipm/bipm.guide.xsl +478 -106
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +478 -106
- data/lib/isodoc/bipm/bipm.rapport.xsl +478 -106
- data/lib/isodoc/bipm/html/htmlstyle.css +24 -13
- data/lib/isodoc/bipm/html/htmlstyle.scss +15 -12
- data/lib/isodoc/bipm/html/scripts.html +0 -1
- data/lib/isodoc/bipm/jcgm.standard.xsl +395 -151
- data/lib/isodoc/bipm/presentation_xml_convert.rb +8 -2
- data/lib/metanorma/bipm/version.rb +1 -1
- data/metanorma-bipm.gemspec +1 -1
- metadata +8 -8
@@ -71,11 +71,11 @@ module IsoDoc
|
|
71
71
|
unless name = node.at(ns("./#{elem}[not(@type = 'quoted')]"))
|
72
72
|
return if node.at(ns("./#{elem}[@type = 'quoted']"))
|
73
73
|
|
74
|
-
node.children.empty? and node.add_child("<#{elem}></#{elem}>") or
|
74
|
+
(node.children.empty? and node.add_child("<#{elem}></#{elem}>")) or
|
75
75
|
node.children.first.previous = "<#{elem}></#{elem}>"
|
76
76
|
name = node.children.first
|
77
77
|
end
|
78
|
-
if name.children.empty? then name.add_child(number)
|
78
|
+
if name.children.empty? then name.add_child(cleanup_entities(number))
|
79
79
|
else (name.children.first.previous = "#{number}#{delim}")
|
80
80
|
end
|
81
81
|
end
|
@@ -250,6 +250,12 @@ module IsoDoc
|
|
250
250
|
end
|
251
251
|
end
|
252
252
|
|
253
|
+
def termsource1(elem)
|
254
|
+
while elem&.next_element&.name == "termsource"
|
255
|
+
elem << "; #{elem.next_element.remove.children.to_xml}"
|
256
|
+
end
|
257
|
+
elem.children = l10n("[#{@i18n.source} #{elem.children.to_xml.strip}]")
|
258
|
+
end
|
253
259
|
include Init
|
254
260
|
end
|
255
261
|
end
|
data/metanorma-bipm.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_dependency "metanorma-generic", "~> 1.11.0"
|
30
30
|
spec.add_dependency "metanorma-iso", "~> 1.10.0"
|
31
31
|
|
32
|
-
spec.add_development_dependency "
|
32
|
+
spec.add_development_dependency "debug"
|
33
33
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
34
34
|
spec.add_development_dependency "guard", "~> 2.14"
|
35
35
|
spec.add_development_dependency "guard-rspec", "~> 4.7"
|
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.2.
|
4
|
+
version: 1.2.5
|
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-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -39,19 +39,19 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.10.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: debug
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: equivalent-xml
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -271,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
271
|
- !ruby/object:Gem::Version
|
272
272
|
version: '0'
|
273
273
|
requirements: []
|
274
|
-
rubygems_version: 3.2.
|
274
|
+
rubygems_version: 3.2.32
|
275
275
|
signing_key:
|
276
276
|
specification_version: 4
|
277
277
|
summary: metanorma-bipm lets you write BIPM standards in Metanorma.
|