metanorma-bipm 2.4.8 → 2.4.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/bipm/bipm.brochure.xsl +611 -173
- data/lib/isodoc/bipm/bipm.guide.xsl +611 -173
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +611 -173
- data/lib/isodoc/bipm/bipm.rapport.xsl +611 -173
- data/lib/isodoc/bipm/html/htmlstyle.css +1 -1
- data/lib/isodoc/bipm/html/htmlstyle.scss +1 -1
- data/lib/isodoc/bipm/jcgm.standard.xsl +1684 -1183
- data/lib/isodoc/bipm/presentation_xml_convert.rb +20 -9
- data/lib/metanorma/bipm/version.rb +1 -1
- data/metanorma-bipm.gemspec +2 -2
- data/metanorma.yml +0 -1
- metadata +5 -6
- data/lib/isodoc/bipm/html/scripts.html +0 -70
@@ -79,17 +79,28 @@ module IsoDoc
|
|
79
79
|
fraction_group_digits: 3 }
|
80
80
|
end
|
81
81
|
|
82
|
-
def
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
82
|
+
def localize_maths(node, locale)
|
83
|
+
super
|
84
|
+
node.xpath(".//m:mn", MATHML).each do |x|
|
85
|
+
x.children = x.text
|
86
|
+
.sub(/^(\d)#{@cldr[:g]}(\d) (?= \d\d$ | \d\d#{@cldr[:d]} )/x,
|
87
|
+
"\\1\\2")
|
88
|
+
.sub(/(?<= ^\d\d | #{@cldr[:d]}\d\d ) (\d)#{@cldr[:f]}(\d) $/x,
|
89
|
+
"\\1\\2")
|
90
|
+
end
|
88
91
|
end
|
89
92
|
|
90
|
-
def mathml1(
|
91
|
-
|
92
|
-
|
93
|
+
def mathml1(node, locale)
|
94
|
+
unless @cldr
|
95
|
+
r = @numfmt.twitter_cldr_reader(locale: locale)
|
96
|
+
.transform_values { |v| @c.decode(v) }
|
97
|
+
@cldr = {
|
98
|
+
g: Regexp.quote(r[:group]),
|
99
|
+
f: Regexp.quote(r[:fraction_group]),
|
100
|
+
d: Regexp.quote(r[:decimal]),
|
101
|
+
}
|
102
|
+
end
|
103
|
+
super
|
93
104
|
end
|
94
105
|
|
95
106
|
def bibdata_i18n(bibdata)
|
data/metanorma-bipm.gemspec
CHANGED
@@ -25,10 +25,10 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.bindir = "exe"
|
26
26
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
27
|
spec.require_paths = ["lib"]
|
28
|
-
spec.required_ruby_version = Gem::Requirement.new(">=
|
28
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 3.1.0")
|
29
29
|
|
30
30
|
spec.add_dependency "metanorma-generic", "~> 2.6.2"
|
31
|
-
spec.add_dependency "metanorma-iso", "~> 2.
|
31
|
+
spec.add_dependency "metanorma-iso", "~> 2.8.0"
|
32
32
|
|
33
33
|
spec.add_development_dependency "debug"
|
34
34
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
data/metanorma.yml
CHANGED
@@ -18,7 +18,6 @@ validate_rng_file: lib/metanorma/bipm/bipm.rng
|
|
18
18
|
htmlcoverpage: lib/isodoc/bipm/html/html_bipm_titlepage.html
|
19
19
|
htmlintropage: lib/isodoc/bipm/html/html_bipm_intro.html
|
20
20
|
htmlstylesheet: lib/isodoc/bipm/html/htmlstyle.scss
|
21
|
-
scripts: lib/isodoc/bipm/html/scripts.html
|
22
21
|
boilerplate:
|
23
22
|
en: lib/metanorma/bipm/boilerplate-en.xml
|
24
23
|
fr: lib/metanorma/bipm/boilerplate-fr.xml
|
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: 2.4.
|
4
|
+
version: 2.4.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 2.8.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: 2.8.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: debug
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -235,7 +235,6 @@ files:
|
|
235
235
|
- lib/isodoc/bipm/html/htmlstyle.css
|
236
236
|
- lib/isodoc/bipm/html/htmlstyle.scss
|
237
237
|
- lib/isodoc/bipm/html/logo.png
|
238
|
-
- lib/isodoc/bipm/html/scripts.html
|
239
238
|
- lib/isodoc/bipm/html/si-aspect/A_e.png
|
240
239
|
- lib/isodoc/bipm/html/si-aspect/A_e_deltanu.png
|
241
240
|
- lib/isodoc/bipm/html/si-aspect/K_k.png
|
@@ -295,7 +294,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
295
294
|
requirements:
|
296
295
|
- - ">="
|
297
296
|
- !ruby/object:Gem::Version
|
298
|
-
version:
|
297
|
+
version: 3.1.0
|
299
298
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
300
299
|
requirements:
|
301
300
|
- - ">="
|
@@ -1,70 +0,0 @@
|
|
1
|
-
<script>
|
2
|
-
$("#toc").on('click', 'li', function(e) {
|
3
|
-
$(this).parent().find('li.toc-active').removeClass('toc-active');
|
4
|
-
$(this).addClass('toc-active');
|
5
|
-
});
|
6
|
-
</script>
|
7
|
-
|
8
|
-
<script>
|
9
|
-
//TOC toggle animation
|
10
|
-
$('#toggle').on('click', function(){
|
11
|
-
if( $('nav').is(':visible') ) {
|
12
|
-
$('nav').animate({ 'left': '-353px' }, 'slow', function(){
|
13
|
-
$('nav').hide();
|
14
|
-
});
|
15
|
-
$('.container').animate({ 'padding-left': '31px' }, 'slow');
|
16
|
-
}
|
17
|
-
else {
|
18
|
-
$('nav').show();
|
19
|
-
$('nav').animate({ 'left': '0px' }, 'slow');
|
20
|
-
}
|
21
|
-
});
|
22
|
-
</script>
|
23
|
-
|
24
|
-
<script>
|
25
|
-
// Scroll to top button
|
26
|
-
window.onscroll = function() {scrollFunction()};
|
27
|
-
|
28
|
-
function scrollFunction() {
|
29
|
-
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
|
30
|
-
document.getElementById("myBtn").style.display = "block";
|
31
|
-
} else {
|
32
|
-
document.getElementById("myBtn").style.display = "none";
|
33
|
-
}
|
34
|
-
}
|
35
|
-
|
36
|
-
// When the user clicks on the button, scroll to the top of the document
|
37
|
-
function topFunction() {
|
38
|
-
document.body.scrollTop = 0;
|
39
|
-
document.documentElement.scrollTop = 0;
|
40
|
-
}
|
41
|
-
</script>
|
42
|
-
|
43
|
-
<script>
|
44
|
-
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
|
45
|
-
//
|
46
|
-
// AnchorJS - v4.2.2 - 2020-04-20
|
47
|
-
// https://www.bryanbraun.com/anchorjs/
|
48
|
-
// Copyright (c) 2020 Bryan Braun; Licensed MIT
|
49
|
-
//
|
50
|
-
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
|
51
|
-
!function(A,e){"use strict";"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():(A.AnchorJS=e(),A.anchors=new A.AnchorJS)}(this,function(){"use strict";return function(A){function f(A){A.icon=A.hasOwnProperty("icon")?A.icon:"",A.visible=A.hasOwnProperty("visible")?A.visible:"hover",A.placement=A.hasOwnProperty("placement")?A.placement:"right",A.ariaLabel=A.hasOwnProperty("ariaLabel")?A.ariaLabel:"Anchor",A.class=A.hasOwnProperty("class")?A.class:"",A.base=A.hasOwnProperty("base")?A.base:"",A.truncate=A.hasOwnProperty("truncate")?Math.floor(A.truncate):64,A.titleText=A.hasOwnProperty("titleText")?A.titleText:""}function p(A){var e;if("string"==typeof A||A instanceof String)e=[].slice.call(document.querySelectorAll(A));else{if(!(Array.isArray(A)||A instanceof NodeList))throw new Error("The selector provided to AnchorJS was invalid.");e=[].slice.call(A)}return e}this.options=A||{},this.elements=[],f(this.options),this.isTouchDevice=function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)},this.add=function(A){var e,t,i,n,o,s,a,r,c,h,l,u,d=[];if(f(this.options),"touch"===(l=this.options.visible)&&(l=this.isTouchDevice()?"always":"hover"),0===(e=p(A=A||"h2, h3, h4, h5, h6")).length)return this;for(!function(){if(null!==document.head.querySelector("style.anchorjs"))return;var A,e=document.createElement("style");e.className="anchorjs",e.appendChild(document.createTextNode("")),void 0===(A=document.head.querySelector('[rel="stylesheet"],style'))?document.head.appendChild(e):document.head.insertBefore(e,A);e.sheet.insertRule(".anchorjs-link{opacity:0;text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}",e.sheet.cssRules.length),e.sheet.insertRule(":hover>.anchorjs-link,.anchorjs-link:focus{opacity:1}",e.sheet.cssRules.length),e.sheet.insertRule("[data-anchorjs-icon]::after{content:attr(data-anchorjs-icon)}",e.sheet.cssRules.length),e.sheet.insertRule('@font-face{font-family:anchorjs-icons;src:url(data:n/a;base64,AAEAAAALAIAAAwAwT1MvMg8yG2cAAAE4AAAAYGNtYXDp3gC3AAABpAAAAExnYXNwAAAAEAAAA9wAAAAIZ2x5ZlQCcfwAAAH4AAABCGhlYWQHFvHyAAAAvAAAADZoaGVhBnACFwAAAPQAAAAkaG10eASAADEAAAGYAAAADGxvY2EACACEAAAB8AAAAAhtYXhwAAYA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAP) format("truetype")}',e.sheet.cssRules.length)}(),t=document.querySelectorAll("[id]"),i=[].map.call(t,function(A){return A.id}),o=0;o<e.length;o++)if(this.hasAnchorJSLink(e[o]))d.push(o);else{if(e[o].hasAttribute("id"))n=e[o].getAttribute("id");else if(e[o].hasAttribute("data-anchor-id"))n=e[o].getAttribute("data-anchor-id");else{for(c=r=this.urlify(e[o].textContent),a=0;void 0!==s&&(c=r+"-"+a),a+=1,-1!==(s=i.indexOf(c)););s=void 0,i.push(c),e[o].setAttribute("id",c),n=c}(h=document.createElement("a")).className="anchorjs-link "+this.options.class,h.setAttribute("aria-label",this.options.ariaLabel),h.setAttribute("data-anchorjs-icon",this.options.icon),this.options.titleText&&(h.title=this.options.titleText),u=document.querySelector("base")?window.location.pathname+window.location.search:"",u=this.options.base||u,h.href=u+"#"+n,"always"===l&&(h.style.opacity="1"),""===this.options.icon&&(h.style.font="1em/1 anchorjs-icons","left"===this.options.placement&&(h.style.lineHeight="inherit")),"left"===this.options.placement?(h.style.position="absolute",h.style.marginLeft="-1em",h.style.paddingRight="0.5em",e[o].insertBefore(h,e[o].firstChild)):(h.style.paddingLeft="0.375em",e[o].appendChild(h))}for(o=0;o<d.length;o++)e.splice(d[o]-o,1);return this.elements=this.elements.concat(e),this},this.remove=function(A){for(var e,t,i=p(A),n=0;n<i.length;n++)(t=i[n].querySelector(".anchorjs-link"))&&(-1!==(e=this.elements.indexOf(i[n]))&&this.elements.splice(e,1),i[n].removeChild(t));return this},this.removeAll=function(){this.remove(this.elements)},this.urlify=function(A){return this.options.truncate||f(this.options),A.trim().replace(/\'/gi,"").replace(/[& +$,:;=?@"#{}|^~[`%!'<>\]\.\/\(\)\*\\\n\t\b\v]/g,"-").replace(/-{2,}/g,"-").substring(0,this.options.truncate).replace(/^-+|-+$/gm,"").toLowerCase()},this.hasAnchorJSLink=function(A){var e=A.firstChild&&-1<(" "+A.firstChild.className+" ").indexOf(" anchorjs-link "),t=A.lastChild&&-1<(" "+A.lastChild.className+" ").indexOf(" anchorjs-link ");return e||t||!1}}});
|
52
|
-
// @license-end
|
53
|
-
</script>
|
54
|
-
<script>
|
55
|
-
/*
|
56
|
-
$(document).ready(function() {
|
57
|
-
$('[id^=toc]').each(function ()
|
58
|
-
{
|
59
|
-
var currentToc = $(this);
|
60
|
-
var url = window.location.href;
|
61
|
-
currentToc.wrap("<a href='" + url + "#" + currentToc.attr("id") + "' </a>");
|
62
|
-
});
|
63
|
-
});
|
64
|
-
*/
|
65
|
-
anchors.options = {
|
66
|
-
placement: 'left'
|
67
|
-
};
|
68
|
-
anchors.add('h1, h2, h3, h4');
|
69
|
-
</script>
|
70
|
-
|