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.
@@ -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
@@ -112,6 +112,10 @@ module IsoDoc
112
112
  { group: " ", fraction_group: " ", fraction_group_digits: 3 }
113
113
  end
114
114
 
115
+ def mathml1(f, locale)
116
+ localize_maths(f, locale)
117
+ end
118
+
115
119
  include Init
116
120
  end
117
121
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module BIPM
3
- VERSION = "0.0.5"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -1,6 +1,8 @@
1
1
  metanorma_name: bipm
2
2
  organization_name_short: BIPM
3
- organization_name_long: Bureau International des poids et mesures
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.5
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-30 00:00:00.000000000 Z
11
+ date: 2020-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic