metanorma-gb 1.3.4 → 1.3.5

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: aa05f8bf06951b8946e1afd845994998671639afeee7d8b1d43440cd7018482f
4
- data.tar.gz: 16d11618fee5ea6be6f1fe005a21d12ae139a89fc2b0da08dc42f1cb33267d6d
3
+ metadata.gz: 6eec7b9e19b7b3b8dd7404fb9a7960ed4c3b6af39c297b0bb97347e78a7b5ff0
4
+ data.tar.gz: cca358c241fbd7d574d457e0a1c23c89ce1f22480c412c856b9d8a0870379cab
5
5
  SHA512:
6
- metadata.gz: 1645f269ef3e8467e699e4ea8800e3ae62a5b816ae4dbbe3c157bfe773d6414a2b46f3eaf34afe341a72fc143237279ac1db8793ce3f97f0c828f9f832f818fb
7
- data.tar.gz: 223e4d2f52db3c8389f7ecd062504b123505a93bc169c981227f10ea1f1cc5c24c1993e8e7c95cb198c8fb96f5e6bc11befc7f3dd0e38bd48c7959565e691955
6
+ metadata.gz: 34fed5d0aa192dc60c3d51a2292d4d17b9f6adacc910a60dbb0cff5b56a2afed9e448615480418cea7ef6e827dfb028cf91bb16421c50ff48f7c15504641947c
7
+ data.tar.gz: 717f6439e96d00d6c8914e8c89183bcbebcdf682776ada477e49051aded1a30d9f227adfd992de0992891463fbfa04bedda27f8a6c8720aeb93a52c5280e01a8
@@ -336,7 +336,9 @@
336
336
  </define>
337
337
  <define name="tname">
338
338
  <element name="name">
339
- <text/>
339
+ <oneOrMore>
340
+ <ref name="PureTextElement"/>
341
+ </oneOrMore>
340
342
  </element>
341
343
  </define>
342
344
  <define name="tclass">
@@ -812,6 +814,9 @@
812
814
  <optional>
813
815
  <attribute name="alt"/>
814
816
  </optional>
817
+ <optional>
818
+ <attribute name="title"/>
819
+ </optional>
815
820
  <optional>
816
821
  <attribute name="longdesc">
817
822
  <data type="anyURI"/>
@@ -850,6 +855,9 @@
850
855
  <optional>
851
856
  <attribute name="alt"/>
852
857
  </optional>
858
+ <optional>
859
+ <attribute name="title"/>
860
+ </optional>
853
861
  <optional>
854
862
  <attribute name="longdesc">
855
863
  <data type="anyURI"/>
@@ -875,6 +883,9 @@
875
883
  <optional>
876
884
  <attribute name="alt"/>
877
885
  </optional>
886
+ <optional>
887
+ <attribute name="title"/>
888
+ </optional>
878
889
  <optional>
879
890
  <attribute name="longdesc">
880
891
  <data type="anyURI"/>
@@ -919,6 +919,7 @@
919
919
  <choice>
920
920
  <value>main</value>
921
921
  <value>alt</value>
922
+ <text/>
922
923
  </choice>
923
924
  </define>
924
925
  <define name="seriesorganization">
@@ -252,7 +252,11 @@
252
252
  </zeroOrMore>
253
253
  </group>
254
254
  <oneOrMore>
255
- <ref name="clause-subsection"/>
255
+ <choice>
256
+ <ref name="clause-subsection"/>
257
+ <ref name="terms"/>
258
+ <ref name="definitions"/>
259
+ </choice>
256
260
  </oneOrMore>
257
261
  </choice>
258
262
  </define>
@@ -215,8 +215,14 @@
215
215
  <optional>
216
216
  <ref name="section-title"/>
217
217
  </optional>
218
+ <zeroOrMore>
219
+ <ref name="BasicBlock"/>
220
+ </zeroOrMore>
218
221
  <zeroOrMore>
219
222
  <ref name="bibitem"/>
223
+ <zeroOrMore>
224
+ <ref name="note"/>
225
+ </zeroOrMore>
220
226
  </zeroOrMore>
221
227
  <zeroOrMore>
222
228
  <ref name="references"/>
@@ -244,6 +250,9 @@
244
250
  </choice>
245
251
  </attribute>
246
252
  </optional>
253
+ <zeroOrMore>
254
+ <ref name="BasicBlock"/>
255
+ </zeroOrMore>
247
256
  <ref name="dl"/>
248
257
  </element>
249
258
  </define>
@@ -271,6 +280,9 @@
271
280
  <optional>
272
281
  <ref name="section-title"/>
273
282
  </optional>
283
+ <zeroOrMore>
284
+ <ref name="BasicBlock"/>
285
+ </zeroOrMore>
274
286
  <choice>
275
287
  <oneOrMore>
276
288
  <ref name="term"/>
@@ -101,7 +101,7 @@ module IsoDoc
101
101
  @note = true
102
102
  out.table **attr_code(id: node["id"], class: "Note") do |t|
103
103
  t.tr do |tr|
104
- @libdir = File.dirname(__FILE__)
104
+ @libdir = File.dirname(__FILE__)
105
105
  tr.td **EXAMPLE_TBL_ATTR do |td|
106
106
  td << l10n(note_label(node) + ":")
107
107
  end
@@ -168,9 +168,9 @@ module IsoDoc
168
168
  parts = x.split(%r{(\s*\[MODIFICATION\]|,)}m)
169
169
  parts[1] = l10n(", #{@source_lbl}") if parts.size > 1 && parts[1] == "," &&
170
170
  !/^\s*#{@modified_lbl}/.match(parts[2])
171
- parts.map do |p|
172
- /\s*\[MODIFICATION\]/.match(p) ? l10n(", #{@modified_lbl} &mdash; ") : p
173
- end.join.sub(/\A\s*/m, l10n("[")).sub(/\s*\z/m, l10n("]"))
171
+ parts.map do |p|
172
+ /\s*\[MODIFICATION\]/.match(p) ? l10n(", #{@modified_lbl} &mdash; ") : p
173
+ end.join.sub(/\A\s*/m, l10n("[")).sub(/\s*\z/m, l10n("]"))
174
174
  end
175
175
 
176
176
  def termref_resolve(docxml)
@@ -192,6 +192,10 @@ module IsoDoc
192
192
  end
193
193
  end
194
194
 
195
+ def clausedelimspace(out)
196
+ out << "&#x3000;"
197
+ end
198
+
195
199
  def clause_name(num, title, div, header_class)
196
200
  header_class = {} if header_class.nil?
197
201
  div.h1 **attr_code(header_class) do |h1|
@@ -204,29 +208,17 @@ module IsoDoc
204
208
  div.parent.at(".//h1")
205
209
  end
206
210
 
207
- def clause_parse_title(node, div, c1, out)
208
- if node["inline-header"] == "true"
209
- inline_header_title(out, node, c1)
210
- else
211
- div.send "h#{anchor(node['id'], :level) || '1'}" do |h|
212
- lbl = anchor(node['id'], :label, false)
213
- h << "#{lbl}.&#x3000;" if !@suppressheadingnumbers
214
- c1 and c1.children.each { |c2| parse(c2, h) }
215
- end
211
+ def example_span_label(node, div, name)
212
+ n = get_anchors[node["id"]]
213
+ div.span **{ class: "example_label" } do |p|
214
+ lbl = (n.nil? || n[:label].nil? || n[:label].empty?) ? @example_lbl :
215
+ l10n("#{@example_lbl} #{n[:label]}")
216
+ p << l10n(lbl + ":")
217
+ name and !lbl.nil? and p << "&nbsp;&mdash; "
218
+ name and name.children.each { |n| parse(n, div) }
216
219
  end
217
220
  end
218
221
 
219
- def example_span_label(node, div, name)
220
- n = get_anchors[node["id"]]
221
- div.span **{ class: "example_label" } do |p|
222
- lbl = (n.nil? || n[:label].nil? || n[:label].empty?) ? @example_lbl :
223
- l10n("#{@example_lbl} #{n[:label]}")
224
- p << l10n(lbl + ":")
225
- name and !lbl.nil? and p << "&nbsp;&mdash; "
226
- name and name.children.each { |n| parse(n, div) }
227
- end
228
- end
229
-
230
222
  def example_p_parse(node, div)
231
223
  name = node&.at(ns("./name"))&.remove
232
224
  div.p do |p|
@@ -403,6 +403,8 @@ table.MsoISOTable td
403
403
  {border:solid windowtext 1pt;
404
404
  mso-border-alt:solid windowtext 1pt;
405
405
  padding:0cm 2.85pt 0cm 2.85pt;}
406
+ table.MsoISOTable p
407
+ {font-size:10.0pt; }
406
408
  table.MsoTableGrid
407
409
  {mso-style-name:"Table Grid";
408
410
  mso-tstyle-rowband-size:0;
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Gb
3
- VERSION = "1.3.4"
3
+ VERSION = "1.3.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-gb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-10 00:00:00.000000000 Z
11
+ date: 2019-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-iso