metanorma-ieee 0.0.3 → 0.0.4
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/lib/isodoc/ieee/html/html_ieee_titlepage.html +2 -10
- data/lib/isodoc/ieee/html/ieee.css +0 -3
- 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 +3809 -3146
- data/lib/isodoc/ieee/ieee.standard.xsl +3809 -3146
- data/lib/isodoc/ieee/metadata.rb +2 -17
- data/lib/isodoc/ieee/presentation_ref.rb +2 -2
- 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/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/ieee.rng +12 -4
- data/lib/metanorma/ieee/isodoc.rng +6 -1
- data/lib/metanorma/ieee/reqt.rng +1 -1
- data/lib/metanorma/ieee/version.rb +1 -1
- data/metanorma-itu.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62bafd0727fc5b10d3a146196f4317b9d158802d918c7c3a7e407d689348bac9
|
4
|
+
data.tar.gz: ffd4fbc73ea2b2af25abf3b4b21863e07e79706fc2f2bf8403a75b804e8eb7cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52bc01c58e681f92ed46c3241db36244fbb805d6ec81678e90ad07b5ad9b7c89c1a528fbfbe411af74a9b7d58c01f032b2bdebaaaa7996dc313fe052ba73e7f0
|
7
|
+
data.tar.gz: 6fb175826c51f3b48ceb6a7b330560f166d358a24412109b09b77f04f84a66bcdc2e75bff43d2d277767257cd619e33265218dd399c47eee842b85799b274ab0
|
@@ -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
|
|
@@ -2936,7 +2936,6 @@ div.WordSection8 {
|
|
2936
2936
|
mso-footer-margin: 36.0pt;
|
2937
2937
|
mso-line-numbers-count-by: 1;
|
2938
2938
|
mso-page-numbers: roman-lower;
|
2939
|
-
mso-columns: 3 even 36.0pt;
|
2940
2939
|
mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h1;
|
2941
2940
|
mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") ef1;
|
2942
2941
|
mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
@@ -2950,7 +2949,6 @@ div.WordSection8 {
|
|
2950
2949
|
mso-footer-margin: 36.0pt;
|
2951
2950
|
mso-line-numbers-count-by: 1;
|
2952
2951
|
mso-page-numbers: roman-lower;
|
2953
|
-
mso-columns: 3 even 36.0pt;
|
2954
2952
|
mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h1l;
|
2955
2953
|
mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") ef1l;
|
2956
2954
|
mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f3l;
|
@@ -2964,7 +2962,6 @@ div.WordSection8 {
|
|
2964
2962
|
mso-footer-margin: 36.0pt;
|
2965
2963
|
mso-line-numbers-count-by: 1;
|
2966
2964
|
mso-page-numbers: roman-lower;
|
2967
|
-
mso-columns: 3 even 36.0pt;
|
2968
2965
|
mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h1;
|
2969
2966
|
mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") ef1;
|
2970
2967
|
mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
@@ -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
|