metanorma-bipm 1.2.2 → 2.0.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/.github/workflows/rake.yml +4 -32
- data/.gitignore +2 -0
- data/bin/console +1 -1
- data/lib/isodoc/bipm/base_convert.rb +4 -13
- data/lib/isodoc/bipm/bipm.brochure.xsl +653 -253
- data/lib/isodoc/bipm/bipm.guide.xsl +653 -253
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +653 -253
- data/lib/isodoc/bipm/bipm.rapport.xsl +653 -253
- data/lib/isodoc/bipm/html/htmlstyle.css +24 -13
- data/lib/isodoc/bipm/html/htmlstyle.scss +15 -12
- data/lib/isodoc/bipm/html/scripts.html +0 -1
- data/lib/isodoc/bipm/jcgm.standard.xsl +586 -330
- data/lib/isodoc/bipm/presentation_xml_convert.rb +13 -2
- data/lib/{asciidoctor → metanorma}/bipm/basicdoc.rng +0 -0
- data/lib/{asciidoctor → metanorma}/bipm/biblio.rng +0 -0
- data/lib/{asciidoctor → metanorma}/bipm/bipm.rng +2 -0
- data/lib/{asciidoctor → metanorma}/bipm/boilerplate-en.xml +0 -0
- data/lib/{asciidoctor → metanorma}/bipm/boilerplate-fr.xml +0 -0
- data/lib/{asciidoctor → metanorma}/bipm/boilerplate-jcgm-en.xml +0 -0
- data/lib/{asciidoctor → metanorma}/bipm/converter.rb +5 -5
- data/lib/{asciidoctor → metanorma}/bipm/isodoc.rng +90 -18
- data/lib/{asciidoctor → metanorma}/bipm/reqt.rng +0 -0
- data/lib/metanorma/bipm/version.rb +1 -1
- data/lib/metanorma/bipm.rb +1 -0
- data/lib/metanorma-bipm.rb +0 -1
- data/metanorma-bipm.gemspec +3 -3
- data/metanorma.yml +3 -3
- metadata +21 -22
- data/lib/asciidoctor/bipm.rb +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04e8a940bb602417adbbd2d5dafd80355eb30dd5eb68849d1e5f6235266c5ede
|
4
|
+
data.tar.gz: b94d3e7801ecbb2bfb6cd2ce90b617b52808cb5c7a36e54493a122a661b1e1dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92c6b89ab656a9d8d0288e292c151e046af5773ecae72223fc8ef3b4c44ebd9f6be467dee48cd15e6af4c65d7cb3affa973e7dc0512b3a77dd64412a83bdf997
|
7
|
+
data.tar.gz: a747ba21ed7ae9ba2b1d4f2546ef786e48946afcf6820b722668442bf912dd9444b4f958875843ee97c1af222fb8b76b3449415213d8e1c39e768d261683d6cb
|
data/.github/workflows/rake.yml
CHANGED
@@ -9,35 +9,7 @@ on:
|
|
9
9
|
pull_request:
|
10
10
|
|
11
11
|
jobs:
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
strategy:
|
17
|
-
fail-fast: false
|
18
|
-
matrix:
|
19
|
-
ruby: [ '3.0', '2.7', '2.6', '2.5' ]
|
20
|
-
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
21
|
-
experimental: [ false ]
|
22
|
-
steps:
|
23
|
-
- uses: actions/checkout@v2
|
24
|
-
with:
|
25
|
-
submodules: true
|
26
|
-
|
27
|
-
- uses: ruby/setup-ruby@v1
|
28
|
-
with:
|
29
|
-
ruby-version: ${{ matrix.ruby }}
|
30
|
-
bundler-cache: true
|
31
|
-
|
32
|
-
- run: bundle exec rake
|
33
|
-
|
34
|
-
tests-passed:
|
35
|
-
needs: rake
|
36
|
-
runs-on: ubuntu-latest
|
37
|
-
steps:
|
38
|
-
- uses: peter-evans/repository-dispatch@v1
|
39
|
-
with:
|
40
|
-
token: ${{ secrets.METANORMA_CI_PAT_TOKEN || secrets.GITHUB_TOKEN }}
|
41
|
-
repository: ${{ github.repository }}
|
42
|
-
event-type: tests-passed
|
43
|
-
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
|
12
|
+
notify:
|
13
|
+
uses: metanorma/metanorma-build-scripts/.github/workflows/mn-processor-rake.yml@main
|
14
|
+
secrets:
|
15
|
+
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
data/.gitignore
CHANGED
data/bin/console
CHANGED
@@ -8,7 +8,8 @@ module IsoDoc
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def convert1(docxml, filename, dir)
|
11
|
-
@jcgm = docxml&.at(ns("//bibdata/ext/editorialgroup/committee
|
11
|
+
@jcgm = docxml&.at(ns("//bibdata/ext/editorialgroup/committee/"\
|
12
|
+
"@acronym"))&.value == "JCGM"
|
12
13
|
super
|
13
14
|
end
|
14
15
|
|
@@ -45,7 +46,7 @@ module IsoDoc
|
|
45
46
|
identifiers = render_identifier(ids)
|
46
47
|
if biblio then ref_entry_code(ref, ordinal, identifiers, ids)
|
47
48
|
else
|
48
|
-
ref << identifiers[0] || identifiers[1]
|
49
|
+
ref << (identifiers[0] || identifiers[1])
|
49
50
|
ref << " #{identifiers[1]}" if identifiers[0] && identifiers[1]
|
50
51
|
end
|
51
52
|
ref << " " unless biblio && !identifiers[1]
|
@@ -58,7 +59,7 @@ module IsoDoc
|
|
58
59
|
identifiers = render_identifier(bibitem_ref_code(bibitem))
|
59
60
|
if biblio then ref_entry_code(ref, ordinal, identifiers, nil)
|
60
61
|
else
|
61
|
-
ref << identifiers[0] || identifiers[1]
|
62
|
+
ref << (identifiers[0] || identifiers[1])
|
62
63
|
ref << " #{identifiers[1]}" if identifiers[0] && identifiers[1]
|
63
64
|
end
|
64
65
|
date_note_process(bibitem, ref)
|
@@ -71,16 +72,6 @@ module IsoDoc
|
|
71
72
|
@jcgm ? docxml : super
|
72
73
|
end
|
73
74
|
|
74
|
-
def termref_cleanup(docxml)
|
75
|
-
docxml
|
76
|
-
.gsub(/\s*\[MODIFICATION\]\s*\[\/TERMREF\]/,
|
77
|
-
l10n(", #{@i18n.modified} [/TERMREF]"))
|
78
|
-
.gsub(%r{\s*\[/TERMREF\]\s*</p>\s*<p>\s*\[TERMREF\]}, "; ")
|
79
|
-
.gsub(/\[TERMREF\]\s*/, l10n("[#{@i18n.source} "))
|
80
|
-
.gsub(%r{\s*\[/TERMREF\]\s*}, l10n("]"))
|
81
|
-
.gsub(/\s*\[MODIFICATION\]/, l10n(", #{@i18n.modified} — "))
|
82
|
-
end
|
83
|
-
|
84
75
|
def error_parse(node, out)
|
85
76
|
case node.name
|
86
77
|
when "blacksquare" then blacksquare_parse(node, out)
|