metanorma-ieee 0.0.3 → 0.0.6
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 -2
- data/.github/workflows/release.yml +24 -0
- data/.hound.yml +5 -0
- data/lib/isodoc/ieee/html/html_ieee_titlepage.html +2 -10
- data/lib/isodoc/ieee/html/ieee.scss +0 -3
- data/lib/isodoc/ieee/html_convert.rb +37 -1
- data/lib/isodoc/ieee/ieee.amendment.xsl +3887 -3259
- data/lib/isodoc/ieee/ieee.standard.xsl +3887 -3259
- data/lib/isodoc/ieee/metadata.rb +2 -17
- data/lib/isodoc/ieee/presentation_ref.rb +20 -9
- data/lib/isodoc/ieee/presentation_terms.rb +34 -21
- data/lib/isodoc/ieee/presentation_xml_convert.rb +20 -3
- data/lib/isodoc/ieee/word_authority.rb +14 -0
- data/lib/metanorma/ieee/biblio.rng +8 -5
- data/lib/metanorma/ieee/cleanup.rb +49 -11
- data/lib/metanorma/ieee/cleanup_ref.rb +10 -2
- data/lib/metanorma/ieee/converter.rb +1 -0
- data/lib/metanorma/ieee/front.rb +3 -1
- data/lib/metanorma/ieee/ieee.rng +69 -8
- data/lib/metanorma/ieee/isodoc.rng +6 -1
- data/lib/metanorma/ieee/reqt.rng +1 -1
- data/lib/metanorma/ieee/validate.rb +11 -10
- data/lib/metanorma/ieee/version.rb +1 -1
- data/lib/metanorma-ieee.rb +1 -1
- data/lib/relaton/render/config.yml +1 -1
- data/metanorma-itu.gemspec +1 -1
- metadata +10 -11
- data/lib/isodoc/ieee/html/htmlstyle.css +0 -1028
- data/lib/isodoc/ieee/html/ieee.css +0 -3379
- data/lib/isodoc/ieee/html/wordstyle.css +0 -5307
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c9939939b89c93f5ce6e9a8eaa89d0359d094f9591004e36a4b5831980689e5
|
4
|
+
data.tar.gz: 276b9b33e783fcc888e618751d51bcd44f9537194c3f591ce705d7f2a54a39f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4484ea31dd9daef10321ce9902a445aefa305c5fb6ea1421ec65297509e3403abfd76c77d87659ed6f4a7b1eee19ab3dad77c44355f771c2989b5b5484a2596f
|
7
|
+
data.tar.gz: 7253db3fdf6b18ce1e7f622e96a024fdedbfce3a0ce5ce22735b53647d93300e83ddf508a7eb056ae5520c8483c874045d1881fac9203acbd50c58c0f65ec48f
|
data/.github/workflows/rake.yml
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
1
3
|
name: rake
|
2
4
|
|
3
5
|
on:
|
@@ -7,7 +9,7 @@ on:
|
|
7
9
|
pull_request:
|
8
10
|
|
9
11
|
jobs:
|
10
|
-
|
11
|
-
uses: metanorma/
|
12
|
+
notify:
|
13
|
+
uses: metanorma/ci/.github/workflows/mn-processor-rake.yml@main
|
12
14
|
secrets:
|
13
15
|
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
3
|
+
name: release
|
4
|
+
|
5
|
+
on:
|
6
|
+
workflow_dispatch:
|
7
|
+
inputs:
|
8
|
+
next_version:
|
9
|
+
description: |
|
10
|
+
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
|
11
|
+
required: true
|
12
|
+
default: 'skip'
|
13
|
+
push:
|
14
|
+
tags: [ v* ]
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
release:
|
18
|
+
uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
|
19
|
+
with:
|
20
|
+
next_version: ${{ github.event.inputs.next_version }}
|
21
|
+
secrets:
|
22
|
+
rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
|
23
|
+
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
24
|
+
|
data/.hound.yml
ADDED
@@ -8,16 +8,8 @@
|
|
8
8
|
{% if corr %}
|
9
9
|
<div class="doctitle-part">Corrigenda {{ corr }}</div>
|
10
10
|
{% endif %}
|
11
|
-
{%if
|
12
|
-
<div class="doctitle-part">(
|
13
|
-
{%else%}
|
14
|
-
{%if updates %}
|
15
|
-
<div class="doctitle-part">(Revision of {{ updates | join: ", " }})</div>
|
16
|
-
{%else%}
|
17
|
-
{%if merges %}
|
18
|
-
<div class="doctitle-part">(Incorporating {{ merges | join: ", " }})</div>
|
19
|
-
{%endif%}
|
20
|
-
{%endif%}
|
11
|
+
{%if provenance_doctitle %}
|
12
|
+
<div class="doctitle-part">({{ provenance_doctitle }})</div>
|
21
13
|
{%endif%}
|
22
14
|
</div>
|
23
15
|
|
@@ -2785,7 +2785,6 @@ div.WordSection8
|
|
2785
2785
|
mso-footer-margin:36.0pt;
|
2786
2786
|
mso-line-numbers-count-by:1;
|
2787
2787
|
mso-page-numbers:roman-lower;
|
2788
|
-
mso-columns:3 even 36.0pt;
|
2789
2788
|
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h1;
|
2790
2789
|
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1;
|
2791
2790
|
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
@@ -2798,7 +2797,6 @@ div.WordSection8
|
|
2798
2797
|
mso-footer-margin:36.0pt;
|
2799
2798
|
mso-line-numbers-count-by:1;
|
2800
2799
|
mso-page-numbers:roman-lower;
|
2801
|
-
mso-columns:3 even 36.0pt;
|
2802
2800
|
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h1l;
|
2803
2801
|
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1l;
|
2804
2802
|
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3l;
|
@@ -2811,7 +2809,6 @@ div.WordSection8
|
|
2811
2809
|
mso-footer-margin:36.0pt;
|
2812
2810
|
mso-line-numbers-count-by:1;
|
2813
2811
|
mso-page-numbers:roman-lower;
|
2814
|
-
mso-columns:3 even 36.0pt;
|
2815
2812
|
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h1;
|
2816
2813
|
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef1;
|
2817
2814
|
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
@@ -37,7 +37,7 @@ module IsoDoc
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def html_cleanup(html)
|
40
|
-
para_type_strip(super)
|
40
|
+
para_type_strip(affiliation_table(super))
|
41
41
|
end
|
42
42
|
|
43
43
|
def para_type_strip(html)
|
@@ -45,6 +45,42 @@ module IsoDoc
|
|
45
45
|
html
|
46
46
|
end
|
47
47
|
|
48
|
+
def affiliation_table(html)
|
49
|
+
html.xpath("//p[@type = 'officeorgrepmemberhdr']").each do |p|
|
50
|
+
affiliation_table1(p)
|
51
|
+
end
|
52
|
+
html
|
53
|
+
end
|
54
|
+
|
55
|
+
def affiliation_table1(para)
|
56
|
+
ret = "<table><thead>#{para_to_tr(para)}</thead><tbody>"
|
57
|
+
n = para.next_element
|
58
|
+
while n.name == "p" && n["type"] == "officeorgrepmember"
|
59
|
+
n1 = n.next_element
|
60
|
+
ret += para_to_tr(n.remove)
|
61
|
+
n = n1
|
62
|
+
end
|
63
|
+
ret += "</tbody></table>"
|
64
|
+
para.replace(ret)
|
65
|
+
end
|
66
|
+
|
67
|
+
def para_to_tr(para)
|
68
|
+
ret = para.children.each_with_object([[]]) do |c, m|
|
69
|
+
if c.name == "tab" then m << []
|
70
|
+
else m[-1] << c.to_xml
|
71
|
+
end
|
72
|
+
end.map { |c| "<td>#{c.join}</td>" }
|
73
|
+
"<tr>#{ret.join}</tr>"
|
74
|
+
end
|
75
|
+
|
76
|
+
def clausedelimspace(node, out)
|
77
|
+
if node.at("./ancestor::xmlns:p[@type = 'officeorgrepmemberhdr'"\
|
78
|
+
" or @type = 'officeorgrepmember']")
|
79
|
+
out.tab
|
80
|
+
else super
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
48
84
|
include BaseConvert
|
49
85
|
include Init
|
50
86
|
end
|