metanorma-iso 2.8.8 → 2.9.0

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: e3feba60243e28200db99f1d58d826226b0a6db5777abce47ae4342e75198d4d
4
- data.tar.gz: 89fd5129e4a4eafdd1397e242346daf5ae24b80f62f8d63a4feb65c533878dcf
3
+ metadata.gz: '0941432979465638a050af9a47a277a037c98bcf7ac8fd8dc6f5cdf55fe0f92b'
4
+ data.tar.gz: 628a80940efddab2c8659dae8aa140839f1b7eb2e4c662a9757410e0048c3e23
5
5
  SHA512:
6
- metadata.gz: 75e8297afc70aa9a5ae95ef2bad3178cbb9193f4ba00dee94006a3cf596493500827a14d7e35fea021bd599167412ceede99bb7c5161ce0c5e569e112f9b2ff4
7
- data.tar.gz: '09486f7131b7f2d520aa825b59554010637d6f618f52a8b8434bf0ae924665def9838c708fa89dd77336d3ed3b4bd24930ee663fe4a77a355354227783446ff0'
6
+ metadata.gz: 322cbf882d1fb24c13c8263ce74d2d1d851763df54a2e27dc864657dbce0d47adf08537420aabb89eb3632ed1e476463e583fd9e52117072e0cf88a95fe666e2
7
+ data.tar.gz: 9eaa31b78ccfa61cb66a3352493dfcf38e36584a3ef960f7782dab497f77bccfdd750bddf2fbe96f23ac34907c530eced9ec30cd8a999eba08e5f07e964acf34
@@ -13,11 +13,6 @@ module IsoDoc
13
13
  super
14
14
  end
15
15
 
16
- def implicit_reference(bib)
17
- bib.at(ns("./docidentifier"))&.text == "IEV" and return true
18
- super
19
- end
20
-
21
16
  # terms not defined in standoc
22
17
  def error_parse(node, out)
23
18
  case node.name
@@ -40,7 +35,7 @@ module IsoDoc
40
35
  insert_tab(p, 1)
41
36
  node.first_element_child.children.each { |n| parse(n, p) }
42
37
  end
43
- node.element_children[1..-1].each { |n| parse(n, div) }
38
+ node.element_children[1..].each { |n| parse(n, div) }
44
39
  end
45
40
 
46
41
  def example_parse1(node, div)
@@ -83,42 +78,18 @@ module IsoDoc
83
78
  end
84
79
  end
85
80
 
86
- def admonition_parse(node, out)
87
- type = node["type"]
88
- name = admonition_name(node, type)
89
- out.div id: node["id"], class: admonition_class(node) do |div|
90
- if node.first_element_child.name == "p"
91
- admonition_p_parse(node, div, name)
92
- else
93
- admonition_parse1(node, div, name)
94
- end
95
- end
96
- end
97
-
98
81
  def admonition_class(node)
99
82
  if node["type"] == "editorial" then "zzHelp"
100
83
  else super
101
84
  end
102
85
  end
103
86
 
104
- def admonition_parse1(node, div, name)
105
- div.p do |p|
106
- admonition_name_parse(node, p, name) if name
107
- end
108
- node.children.each { |n| parse(n, div) unless n.name == "name" }
109
- end
110
-
111
- def admonition_p_parse(node, div, name)
112
- div.p do |p|
113
- admonition_name_parse(node, p, name) if name
114
- node.first_element_child.children.each { |n| parse(n, p) }
115
- end
116
- node.element_children[1..-1].each { |n| parse(n, div) }
87
+ def admonition_p_parse(node, div)
88
+ admonition_name_in_first_para(node, div)
117
89
  end
118
90
 
119
- def admonition_name_parse(_node, div, name)
120
- name.children.each { |n| parse(n, div) }
121
- div << " &#x2014; "
91
+ def admonition_name_para_delim(para)
92
+ para << " "
122
93
  end
123
94
 
124
95
  def figure_name_parse(_node, div, name)
@@ -154,12 +125,6 @@ module IsoDoc
154
125
  super.merge(start: node["start"]).compact
155
126
  end
156
127
 
157
- def render_identifier(ident)
158
- ret = super
159
- ret[:sdo] = std_docid_semantic(ret[:sdo])
160
- ret
161
- end
162
-
163
128
  def table_parse(node, out)
164
129
  @in_table = true
165
130
  table_title_parse(node, out)
@@ -183,7 +148,6 @@ module IsoDoc
183
148
  measurement_units(node, out)
184
149
  out.div **figure_attrs(node) do |div|
185
150
  node.children.each do |n|
186
- figure_key(out) if n.name == "dl"
187
151
  n.name == "note" && n["type"] == "units" and next
188
152
  parse(n, div) unless n.name == "name"
189
153
  end
@@ -1,7 +1,9 @@
1
1
  {% if doctype == "Amendment" or doctype == "Technical Corrigendum" %}
2
2
  {% else %}
3
3
 
4
- <div id="boilerplate-copyright-destination"/>
5
-
4
+ <div id="boilerplate-copyright-destination">
5
+ <div id="boilerplate-copyright-default-destination"/>
6
+ <div id="boilerplate-copyright-append-destination"/>
7
+ </div>
6
8
 
7
9
  {% endif %}
@@ -1,8 +1,11 @@
1
+ <div id="boilerplate-copyright-destination">
1
2
  <div style='mso-element:para-border-div;border:solid windowtext 1.0pt;
2
3
  border-bottom-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:
3
4
  solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 0cm 4.0pt;
4
5
  margin-left:5.1pt;margin-right:5.1pt'>
5
- <div id="boilerplate-copyright-destination"/>
6
+ <div id="boilerplate-copyright-default-destination"/>
7
+ </div>
8
+ <div id="boilerplate-copyright-append-destination"/>
6
9
  </div>
7
10
 
8
11
  {% if doctype == "Amendment" or doctype == "Technical Corrigendum" %}