metanorma-bipm 0.0.5 → 1.0.0
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/boilerplate-en.xml +1 -1
- data/lib/asciidoctor/bipm/boilerplate-fr.xml +1 -1
- data/lib/asciidoctor/bipm/converter.rb +12 -0
- data/lib/asciidoctor/bipm/isodoc.rng +15 -0
- data/lib/isodoc/bipm/bipm.brochure.xsl +217 -139
- data/lib/isodoc/bipm/bipm.guide.xsl +217 -139
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +217 -139
- data/lib/isodoc/bipm/bipm.rapport.xsl +217 -139
- data/lib/isodoc/bipm/pdf_convert.rb +9 -1
- data/lib/isodoc/bipm/presentation_xml_convert.rb +4 -0
- data/lib/metanorma/bipm/version.rb +1 -1
- data/metanorma.yml +3 -1
- metadata +2 -2
@@ -10,6 +10,10 @@ module IsoDoc
|
|
10
10
|
super
|
11
11
|
end
|
12
12
|
|
13
|
+
def configuration
|
14
|
+
Metanorma::BIPM.configuration
|
15
|
+
end
|
16
|
+
|
13
17
|
def pdf_stylesheet(docxml)
|
14
18
|
doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text
|
15
19
|
doctype = "brochure" unless %w(guide mise-en-pratique rapport).
|
@@ -18,7 +22,11 @@ module IsoDoc
|
|
18
22
|
end
|
19
23
|
|
20
24
|
def pdf_options(docxml)
|
21
|
-
if docxml.root.name == "metanorma-collection"
|
25
|
+
if docxml.root.name == "metanorma-collection" &&
|
26
|
+
docxml.at("//m:bipm-standard/m:bibdata/m:language[@current = 'true'][. = 'fr']",
|
27
|
+
"m" => configuration.document_namespace) &&
|
28
|
+
docxml.at("//m:bipm-standard/m:bibdata/m:language[@current = 'true'][. = 'en']",
|
29
|
+
"m" => configuration.document_namespace)
|
22
30
|
"--split-by-language"
|
23
31
|
else
|
24
32
|
super
|
data/metanorma.yml
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
metanorma_name: bipm
|
2
2
|
organization_name_short: BIPM
|
3
|
-
organization_name_long:
|
3
|
+
organization_name_long:
|
4
|
+
fr: Bureau international des poids et mesures
|
5
|
+
en: Bureau International des Poids et Mesures
|
4
6
|
document_namespace: https://www.metanorma.org/ns/bipm
|
5
7
|
xml_root_tag: 'bipm-standard'
|
6
8
|
html_bodyfont: Times New Roman
|
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: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|