metanorma-ieee 0.0.3 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6977149e490025d36902d366eaa5b7e4be29e631310089d7284a0c720cf97e1f
4
- data.tar.gz: 54547196925d0c2a1105e006c5f9d44af24620934e86878ee2b4a42bab849840
3
+ metadata.gz: 8c9939939b89c93f5ce6e9a8eaa89d0359d094f9591004e36a4b5831980689e5
4
+ data.tar.gz: 276b9b33e783fcc888e618751d51bcd44f9537194c3f591ce705d7f2a54a39f4
5
5
  SHA512:
6
- metadata.gz: 0174ce5cfcd8e09c41cd04f0226df41d7fe6572923eb0d447ea03e5eab60a47e231427447fd53fa32c839539b0a46bbbfba0e9e49da8aef4440e1b9b7252fd3d
7
- data.tar.gz: bf031bcefafd8c806124623a0471de4f67f43dad2ade47a5e281375c955507ba797a1d9f2966b90ef7518f26ae6e3a7ac7552ac1af66605c98715e76981eebb1
6
+ metadata.gz: 4484ea31dd9daef10321ce9902a445aefa305c5fb6ea1421ec65297509e3403abfd76c77d87659ed6f4a7b1eee19ab3dad77c44355f771c2989b5b5484a2596f
7
+ data.tar.gz: 7253db3fdf6b18ce1e7f622e96a024fdedbfce3a0ce5ce22735b53647d93300e83ddf508a7eb056ae5520c8483c874045d1881fac9203acbd50c58c0f65ec48f
@@ -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
- rake:
11
- uses: metanorma/metanorma-build-scripts/.github/workflows/generic-rake.yml@main
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
@@ -0,0 +1,5 @@
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
3
+ ruby:
4
+ enabled: true
5
+ config_file: .rubocop.yml
@@ -8,16 +8,8 @@
8
8
  {% if corr %}
9
9
  <div class="doctitle-part">Corrigenda {{ corr }}</div>
10
10
  {% endif %}
11
- {%if updates or merges %}
12
- <div class="doctitle-part">(Revision of {{ updates | join: ", " }}<br/>Incorporating {{ merges | join: ", " }})</div>
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