metanorma-bipm 2.7.1 → 2.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.adoc +1 -1
- data/lib/isodoc/bipm/base_convert.rb +3 -28
- data/lib/isodoc/bipm/bipm.brochure.xsl +263 -121
- data/lib/isodoc/bipm/bipm.guide.xsl +263 -121
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +263 -121
- data/lib/isodoc/bipm/bipm.rapport.xsl +263 -121
- data/lib/isodoc/bipm/jcgm.standard.xsl +151 -48
- data/lib/isodoc/bipm/metadata.rb +23 -12
- data/lib/isodoc/bipm/presentation_xml_convert.rb +7 -3
- data/lib/isodoc/bipm/xref.rb +3 -2
- data/lib/metanorma/bipm/basicdoc.rng +1 -1
- data/lib/metanorma/bipm/biblio-standoc.rng +0 -49
- data/lib/metanorma/bipm/biblio.rng +11 -1
- data/lib/metanorma/bipm/cleanup.rb +6 -4
- data/lib/metanorma/bipm/converter.rb +2 -2
- data/lib/metanorma/bipm/front.rb +35 -31
- data/lib/metanorma/bipm/isodoc.rng +7 -60
- data/lib/metanorma/bipm/relaton-bipm.rng +0 -45
- data/lib/metanorma/bipm/version.rb +1 -1
- data/metanorma-bipm.gemspec +1 -1
- data/metanorma.yml +3 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f61b39d47d95aa1d5cdc018b7da02b7e388d12dd3610e4dd68479411633eca9
|
4
|
+
data.tar.gz: edf3bbfd2d23ac2bd8053b56e5b7313bb92aad686a8a0f43376f6905a57f57b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0a017712c5401020feed7cc49f9135b92908280a44231b84cff7f13b374f3d092679abac3622623622251ab1f704b6cab8eac710a0b3972e0543565d0cd0dd9
|
7
|
+
data.tar.gz: 36b300fe4b9c5e2f8d3282e2c21fceee949d5fb79ef2570bc55cb880788b5c376c51c9f08f7793d50777225a7b495371ff0d36701ab9a9e0b2b9cee4256b217c
|
data/README.adoc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
image:https://img.shields.io/gem/v/metanorma-bipm.svg["Gem Version", link="https://rubygems.org/gems/metanorma-bipm"]
|
4
4
|
image:https://github.com/metanorma/metanorma-bipm/workflows/rake/badge.svg["Build Status", link="https://github.com/metanorma/metanorma-bipm/actions?workflow=rake"]
|
5
|
-
image:https://codeclimate.com/github/metanorma/metanorma-bipm/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-bipm"]
|
5
|
+
// image:https://codeclimate.com/github/metanorma/metanorma-bipm/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-bipm"]
|
6
6
|
image:https://img.shields.io/github/issues-pr-raw/metanorma/metanorma-bipm.svg["Pull Requests", link="https://github.com/metanorma/metanorma-bipm/pulls"]
|
7
7
|
image:https://img.shields.io/github/commits-since/metanorma/metanorma-bipm/latest.svg["Commits since latest",link="https://github.com/metanorma/metanorma-bipm/releases"]
|
8
8
|
|
@@ -10,37 +10,12 @@ module IsoDoc
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def convert1(docxml, filename, dir)
|
13
|
-
@jcgm = docxml
|
14
|
-
|
13
|
+
@jcgm = docxml.at(ns(<<~XPATH))&.text == "JCGM"
|
14
|
+
//bibdata/contributor[role/description = 'committee']/organization/subdivision[@type = 'Committee']/identifier[not(@type = 'full')]
|
15
|
+
XPATH
|
15
16
|
super
|
16
17
|
end
|
17
|
-
=begin
|
18
|
-
def update_i18n(i18n)
|
19
|
-
#require "debug"; binding.b
|
20
|
-
if %w(2019).include?(@docscheme)
|
21
|
-
%w(level2_ancillary level3_ancillary level2_ancillary_alt
|
22
|
-
level3_ancillary_alt).each do |w|
|
23
|
-
i18n_conditional_set(i18n, w, "#{w}_2019")
|
24
|
-
end
|
25
|
-
end
|
26
|
-
i18n.set("annex", i18n.get["level2_ancillary"])
|
27
|
-
i18n.set("appendix", i18n.get["level3_ancillary"])
|
28
|
-
end
|
29
|
-
|
30
|
-
def convert_i18n_init(docxml)
|
31
|
-
#require "debug"; binding.b
|
32
|
-
@docscheme =
|
33
|
-
docxml.at(ns("//presentation-metadata[name" \
|
34
|
-
"[text() = 'document-scheme']]/value"))&.text || "2021"
|
35
|
-
super
|
36
|
-
update_i18n(@i18n)
|
37
|
-
end
|
38
18
|
|
39
|
-
def i18n_conditional_set(i18n, old, new)
|
40
|
-
i18n.get[new] or return
|
41
|
-
i18n.set(old, i18n.get[new])
|
42
|
-
end
|
43
|
-
=end
|
44
19
|
def middle_clause(_docxml)
|
45
20
|
if @jcgm
|
46
21
|
"//clause[parent::sections][not(@type = 'scope')]" \
|