metanorma-bipm 2.6.9 → 2.7.0
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/lib/isodoc/bipm/base_convert.rb +26 -27
- data/lib/isodoc/bipm/bipm.brochure.xsl +10486 -10832
- data/lib/isodoc/bipm/bipm.guide.xsl +10486 -10832
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +10486 -10832
- data/lib/isodoc/bipm/bipm.rapport.xsl +10486 -10832
- data/lib/isodoc/bipm/html/htmlstyle.css +7 -1
- data/lib/isodoc/bipm/html_convert.rb +1 -10
- data/lib/isodoc/bipm/i18n-en.yaml +12 -2
- data/lib/isodoc/bipm/i18n-fr.yaml +12 -2
- data/lib/isodoc/bipm/jcgm.standard.xsl +10226 -10595
- data/lib/isodoc/bipm/metadata.rb +8 -4
- data/lib/isodoc/bipm/presentation_biblio.rb +44 -4
- data/lib/isodoc/bipm/presentation_xml_convert.rb +24 -8
- data/lib/isodoc/bipm/xref.rb +1 -0
- data/lib/metanorma/bipm/cleanup.rb +8 -21
- data/lib/metanorma/bipm/converter.rb +0 -4
- data/lib/metanorma/bipm/isodoc.rng +69 -7
- data/lib/metanorma/bipm/version.rb +1 -1
- data/metanorma-bipm.gemspec +2 -3
- metadata +6 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 243bb92d777033b554b303bab0f2a4671dd0368197c62f25c5bf728c1ee81860
|
4
|
+
data.tar.gz: 22da95ca5d0f70f8f0089306269793f5c9730a60d3cbc3e89f362fef7c1312f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae953bd7af98c52ff5c3666a58aa90c0903db302f656babc0adbb2005ea693ef6260f38c4a75ba2370761abef7b9f7672b4d963c82b5b199301ac1c4652bbf4c
|
7
|
+
data.tar.gz: 524d813e92cc86aa321acbfcd657b3c2e78760f176c350c31b816a434cbe702ca6b00aa863528bd62d9370003d7fc64a8f10bae0c175e060653f7d4efd9c40ab
|
@@ -9,15 +9,38 @@ module IsoDoc
|
|
9
9
|
Metanorma::Bipm.configuration
|
10
10
|
end
|
11
11
|
|
12
|
-
#TOP_ELEMENTS = IsoDoc::Function::ToWordHtml::TOP_ELEMENTS +
|
13
|
-
#" | //doccontrol[@displayorder]".freeze
|
14
|
-
|
15
12
|
def convert1(docxml, filename, dir)
|
16
13
|
@jcgm = docxml&.at(ns("//bibdata/ext/editorialgroup/committee/" \
|
17
14
|
"@acronym"))&.value == "JCGM"
|
18
15
|
super
|
19
16
|
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
|
20
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
|
+
|
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
|
21
44
|
def middle_clause(_docxml)
|
22
45
|
if @jcgm
|
23
46
|
"//clause[parent::sections][not(@type = 'scope')]" \
|
@@ -31,30 +54,6 @@ module IsoDoc
|
|
31
54
|
@jcgm ? docxml : super
|
32
55
|
end
|
33
56
|
|
34
|
-
# KILL
|
35
|
-
def error_parsex(node, out)
|
36
|
-
case node.name
|
37
|
-
when "blacksquare" then blacksquare_parse(node, out)
|
38
|
-
else super
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
#KILL
|
43
|
-
def blacksquare_parse(_node, out)
|
44
|
-
out << "■"
|
45
|
-
end
|
46
|
-
|
47
|
-
#def sections_names
|
48
|
-
#super + %w[doccontrol]
|
49
|
-
#end
|
50
|
-
|
51
|
-
#def top_element_render(elem, out)
|
52
|
-
#case elem.name
|
53
|
-
#when "doccontrol" then doccontrol elem, out
|
54
|
-
#else super
|
55
|
-
#end
|
56
|
-
#end
|
57
|
-
|
58
57
|
def table_footnote?(node)
|
59
58
|
super && !node.ancestors.map(&:name).include?("quote")
|
60
59
|
end
|