metanorma-bipm 0.0.2 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +62 -0
  3. data/README.adoc +7 -114
  4. data/lib/asciidoctor/bipm/basicdoc.rng +50 -3
  5. data/lib/asciidoctor/bipm/bipm.rng +193 -23
  6. data/lib/asciidoctor/bipm/boilerplate-en.xml +2 -3
  7. data/lib/asciidoctor/bipm/boilerplate-fr.xml +3 -4
  8. data/lib/asciidoctor/bipm/converter.rb +130 -18
  9. data/lib/asciidoctor/bipm/isodoc.rng +36 -43
  10. data/lib/isodoc/bipm/base_convert.rb +60 -0
  11. data/lib/isodoc/bipm/bipm.brochure.xsl +2548 -760
  12. data/lib/isodoc/bipm/bipm.guide.xsl +7738 -0
  13. data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +7738 -0
  14. data/lib/isodoc/bipm/bipm.rapport.xsl +7738 -0
  15. data/lib/isodoc/bipm/html/html_bipm_titlepage.html +35 -4
  16. data/lib/isodoc/bipm/html/htmlstyle.css +56 -62
  17. data/lib/isodoc/bipm/html/htmlstyle.scss +53 -77
  18. data/lib/isodoc/bipm/html/si-aspect/A_e.png +0 -0
  19. data/lib/isodoc/bipm/html/si-aspect/A_e_deltanu.png +0 -0
  20. data/lib/isodoc/bipm/html/si-aspect/K_k.png +0 -0
  21. data/lib/isodoc/bipm/html/si-aspect/K_k_deltanu_h.png +0 -0
  22. data/lib/isodoc/bipm/html/si-aspect/cd_Kcd.png +0 -0
  23. data/lib/isodoc/bipm/html/si-aspect/cd_Kcd_h_deltanu.png +0 -0
  24. data/lib/isodoc/bipm/html/si-aspect/full.png +0 -0
  25. data/lib/isodoc/bipm/html/si-aspect/kg_h.png +0 -0
  26. data/lib/isodoc/bipm/html/si-aspect/kg_h_c_deltanu.png +0 -0
  27. data/lib/isodoc/bipm/html/si-aspect/m_c.png +0 -0
  28. data/lib/isodoc/bipm/html/si-aspect/m_c_deltanu.png +0 -0
  29. data/lib/isodoc/bipm/html/si-aspect/mol_NA.png +0 -0
  30. data/lib/isodoc/bipm/html/si-aspect/s_deltanu.png +0 -0
  31. data/lib/isodoc/bipm/html_convert.rb +32 -0
  32. data/lib/isodoc/bipm/i18n-en.yaml +9 -0
  33. data/lib/isodoc/bipm/i18n-fr.yaml +22 -4
  34. data/lib/isodoc/bipm/index.rb +136 -0
  35. data/lib/isodoc/bipm/metadata.rb +34 -10
  36. data/lib/isodoc/bipm/pdf_convert.rb +13 -2
  37. data/lib/isodoc/bipm/presentation_xml_convert.rb +103 -7
  38. data/lib/isodoc/bipm/xref.rb +138 -3
  39. data/lib/metanorma/bipm.rb +7 -0
  40. data/lib/metanorma/bipm/processor.rb +11 -0
  41. data/lib/metanorma/bipm/version.rb +1 -1
  42. data/metanorma-bipm.gemspec +1 -2
  43. data/metanorma.yml +42 -1
  44. metadata +22 -21
  45. data/.github/workflows/macos.yml +0 -38
  46. data/.github/workflows/ubuntu.yml +0 -56
  47. data/.github/workflows/windows.yml +0 -40
@@ -4,6 +4,13 @@ require "metanorma/bipm/processor"
4
4
 
5
5
  module Metanorma
6
6
  module BIPM
7
+ def self.fonts_used
8
+ {
9
+ html: ["Times New Roman", "STIX", "Courier New"],
10
+ pdf: ["Arial", "Times New Roman", "Work Sans", "STIX"]
11
+ }
12
+ end
13
+
7
14
  class Configuration < Metanorma::Generic::Configuration
8
15
  def initialize(*args)
9
16
  super
@@ -14,6 +14,17 @@ module Metanorma
14
14
  ).tap { |hs| hs.delete(:doc) }
15
15
  end
16
16
 
17
+ def fonts_manifest
18
+ {
19
+ "Arial" => nil,
20
+ "Times New Roman" => nil,
21
+ "Work Sans" => nil,
22
+ "STIX Two Math" => nil,
23
+ "Source Han Sans" => nil,
24
+ "TeX Gyre Chorus" => nil,
25
+ }
26
+ end
27
+
17
28
  def version
18
29
  "Metanorma::BIPM #{Metanorma::BIPM::VERSION}"
19
30
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module BIPM
3
- VERSION = "0.0.2"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -26,8 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.require_paths = ["lib"]
27
27
  spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
28
28
 
29
- spec.add_dependency "metanorma-generic", "~> 1.7.0"
30
- spec.add_dependency "isodoc", "~> 1.2.0"
29
+ spec.add_dependency "metanorma-generic", "~> 1.8.1"
31
30
 
32
31
  spec.add_development_dependency "byebug", "~> 9.1"
33
32
  spec.add_development_dependency "sassc", "2.4.0"
@@ -1,8 +1,14 @@
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'
8
+ html_bodyfont: Times New Roman
9
+ html_headerfont: Times New Roman
10
+ html_normalfontsize: "15px"
11
+ html_footnotefontsize: "0.9em"
6
12
  logo_path: lib/isodoc/bipm/html/logo.png
7
13
  i18nyaml:
8
14
  en: lib/isodoc/bipm/i18n-en.yaml
@@ -39,23 +45,57 @@ doctypes:
39
45
  default_doctype: brochure
40
46
  committees:
41
47
  - CGPM
48
+ - General Conference on Weights and Measures
49
+ - Conférence générale des poids et mesures
42
50
  - CIPM
51
+ - International Committee for Weights and Measures
52
+ - Comité international des poids et mesures
43
53
  - BIPM
54
+ - International Bureau of Weights and Measures
55
+ - Bureau International des Poids et Mesures
44
56
  - CCAUV
57
+ - Consultative Committee for Acoustics, Ultrasound and Vibration
58
+ - Comité consultatif de l'acoustique, des ultrasons et des vibrations
45
59
  - CCEM
60
+ - Consultative Committee for Electricity and Magnetism
61
+ - Comité consultatif d'électricité et magnétisme
46
62
  - CCL
63
+ - Consultative Committee for Length
64
+ - Comité consultatif des longueurs
47
65
  - CCM
66
+ - Consultative Committee for Mass and Related Quantities
67
+ - Comité consultatif pour la masse et les grandeurs apparentées
48
68
  - CCPR
69
+ - Consultative Committee for Photometry and Radiometry
70
+ - Comité consultatif de photométrie et radiométrie
49
71
  - CCQM
72
+ - "Consultative Committee for Amount of Substance: Metrology in Chemistry and Biology"
73
+ - "Comité consultatif pour la quantité de matière : métrologie en chimie et biologie"
50
74
  - CCRI
75
+ - Consultative Committee for Ionizing Radiation
76
+ - Comité consultatif des rayonnements ionisants
51
77
  - CCT
78
+ - Consultative Committee for Thermometry
79
+ - Comité consultatif de thermométrie
52
80
  - CCTF
81
+ - Consultative Committee for Time and Frequency
82
+ - Comité consultatif du temps et des fréquences
53
83
  - CCU
84
+ - Consultative Committee for Units
85
+ - Comité consultatif des unités
54
86
  - CCL-CCT
87
+ - Frequency Standards Working Group
55
88
  - JCGM
89
+ - Joint Committee for Guides in Metrology
90
+ - Comité commun pour les guides en métrologie
56
91
  - JCRB
92
+ - Joint Committee of the Regional Metrology Organizations and the BIPM
93
+ - Comité mixte des organisations régionales de métrologie et du BIPM
57
94
  - JCTLM
95
+ - Joint Committee for Traceability in Laboratory Medicine
96
+ - Comité commun pour la traçabilité en médecine de laboratoire
58
97
  - INetQI
98
+ - International Network on Quality Infrastructure
59
99
  metadata_extensions:
60
100
  comment-period:
61
101
  comment-period-from:
@@ -63,6 +103,7 @@ metadata_extensions:
63
103
  comment-period-to:
64
104
  _output: to
65
105
  si-aspect:
106
+ meeting-note:
66
107
  structuredidentifier:
67
108
  docnumber:
68
109
  partnumber:
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.2
4
+ version: 1.0.1
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-10-11 00:00:00.000000000 Z
11
+ date: 2020-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic
@@ -16,28 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.7.0
19
+ version: 1.8.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.7.0
27
- - !ruby/object:Gem::Dependency
28
- name: isodoc
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 1.2.0
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 1.2.0
26
+ version: 1.8.1
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: byebug
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -188,9 +174,7 @@ executables: []
188
174
  extensions: []
189
175
  extra_rdoc_files: []
190
176
  files:
191
- - ".github/workflows/macos.yml"
192
- - ".github/workflows/ubuntu.yml"
193
- - ".github/workflows/windows.yml"
177
+ - ".github/workflows/rake.yml"
194
178
  - CODE_OF_CONDUCT.md
195
179
  - Gemfile
196
180
  - LICENSE
@@ -211,16 +195,33 @@ files:
211
195
  - lib/isodoc/bipm.rb
212
196
  - lib/isodoc/bipm/base_convert.rb
213
197
  - lib/isodoc/bipm/bipm.brochure.xsl
198
+ - lib/isodoc/bipm/bipm.guide.xsl
199
+ - lib/isodoc/bipm/bipm.mise-en-pratique.xsl
200
+ - lib/isodoc/bipm/bipm.rapport.xsl
214
201
  - lib/isodoc/bipm/html/html_bipm_intro.html
215
202
  - lib/isodoc/bipm/html/html_bipm_titlepage.html
216
203
  - lib/isodoc/bipm/html/htmlstyle.css
217
204
  - lib/isodoc/bipm/html/htmlstyle.scss
218
205
  - lib/isodoc/bipm/html/logo.png
219
206
  - lib/isodoc/bipm/html/scripts.html
207
+ - lib/isodoc/bipm/html/si-aspect/A_e.png
208
+ - lib/isodoc/bipm/html/si-aspect/A_e_deltanu.png
209
+ - lib/isodoc/bipm/html/si-aspect/K_k.png
210
+ - lib/isodoc/bipm/html/si-aspect/K_k_deltanu_h.png
211
+ - lib/isodoc/bipm/html/si-aspect/cd_Kcd.png
212
+ - lib/isodoc/bipm/html/si-aspect/cd_Kcd_h_deltanu.png
213
+ - lib/isodoc/bipm/html/si-aspect/full.png
214
+ - lib/isodoc/bipm/html/si-aspect/kg_h.png
215
+ - lib/isodoc/bipm/html/si-aspect/kg_h_c_deltanu.png
216
+ - lib/isodoc/bipm/html/si-aspect/m_c.png
217
+ - lib/isodoc/bipm/html/si-aspect/m_c_deltanu.png
218
+ - lib/isodoc/bipm/html/si-aspect/mol_NA.png
219
+ - lib/isodoc/bipm/html/si-aspect/s_deltanu.png
220
220
  - lib/isodoc/bipm/html_convert.rb
221
221
  - lib/isodoc/bipm/i18n-en.yaml
222
222
  - lib/isodoc/bipm/i18n-fr.yaml
223
223
  - lib/isodoc/bipm/i18n.rb
224
+ - lib/isodoc/bipm/index.rb
224
225
  - lib/isodoc/bipm/init.rb
225
226
  - lib/isodoc/bipm/metadata.rb
226
227
  - lib/isodoc/bipm/pdf_convert.rb
@@ -1,38 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: macos
4
-
5
- on:
6
- push:
7
- branches: [ master ]
8
- pull_request:
9
- paths-ignore:
10
- - .github/workflows/ubuntu.yml
11
- - .github/workflows/windows.yml
12
-
13
- jobs:
14
- test-macos:
15
- name: Test on Ruby ${{ matrix.ruby }} macOS
16
- runs-on: macos-latest
17
- continue-on-error: ${{ matrix.experimental }}
18
- strategy:
19
- fail-fast: false
20
- matrix:
21
- ruby: [ '2.6', '2.5', '2.4' ]
22
- experimental: [false]
23
- include:
24
- - ruby: '2.7'
25
- experimental: true
26
- steps:
27
- - uses: actions/checkout@master
28
- - name: Use Ruby
29
- uses: actions/setup-ruby@v1
30
- with:
31
- ruby-version: ${{ matrix.ruby }}
32
- - name: Update gems
33
- run: |
34
- sudo gem install bundler --force
35
- bundle install --jobs 4 --retry 3
36
- - name: Run specs
37
- run: |
38
- bundle exec rake
@@ -1,56 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: ubuntu
4
-
5
- on:
6
- push:
7
- branches: [ master ]
8
- tags:
9
- - '*'
10
- pull_request:
11
- paths-ignore:
12
- - .github/workflows/macos.yml
13
- - .github/workflows/windows.yml
14
-
15
- jobs:
16
- test-linux:
17
- name: Test on Ruby ${{ matrix.ruby }} Ubuntu
18
- runs-on: ubuntu-latest
19
- continue-on-error: ${{ matrix.experimental }}
20
- strategy:
21
- fail-fast: false
22
- matrix:
23
- ruby: [ '2.6', '2.5', '2.4' ]
24
- experimental: [false]
25
- include:
26
- - ruby: '2.7'
27
- experimental: true
28
- steps:
29
- - uses: actions/checkout@master
30
- - name: Use Ruby
31
- uses: actions/setup-ruby@v1
32
- with:
33
- ruby-version: ${{ matrix.ruby }}
34
- - name: Update gems
35
- run: |
36
- gem install bundler
37
- bundle install --jobs 4 --retry 3
38
- - name: Run specs
39
- run: |
40
- bundle exec rake
41
- - name: Trigger repositories
42
- if: matrix.ruby == '2.6'
43
- env:
44
- GH_USERNAME: metanorma-ci
45
- GH_ACCESS_TOKEN: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
46
- run: |
47
- curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
48
- [[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
49
- CLIENT_PAYLOAD=$(cat <<EOF
50
- "{ "ref": "${GITHUB_REF}", "repo": "${GITHUB_REPOSITORY}" }"
51
- EOF
52
- )
53
- for repo in $REPOS
54
- do
55
- sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY "$CLIENT_PAYLOAD"
56
- done
@@ -1,40 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: windows
4
-
5
- on:
6
- push:
7
- branches: [ master ]
8
- pull_request:
9
- paths-ignore:
10
- - .github/workflows/macos.yml
11
- - .github/workflows/ubuntu.yml
12
-
13
- jobs:
14
- test-windows:
15
- name: Test on Ruby ${{ matrix.ruby }} Windows
16
- runs-on: windows-latest
17
- continue-on-error: ${{ matrix.experimental }}
18
- strategy:
19
- fail-fast: false
20
- matrix:
21
- ruby: [ '2.6', '2.5', '2.4' ]
22
- experimental: [false]
23
- include:
24
- - ruby: '2.7'
25
- experimental: true
26
- steps:
27
- - uses: actions/checkout@master
28
- - name: Use Ruby
29
- uses: actions/setup-ruby@v1
30
- with:
31
- ruby-version: ${{ matrix.ruby }}
32
- - name: Update gems
33
- shell: pwsh
34
- run: |
35
- gem install bundler
36
- bundle config --local path vendor/bundle
37
- bundle install --jobs 4 --retry 3
38
- - name: Run specs
39
- run: |
40
- bundle exec rake