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 +4 -4
- data/lib/asciidoctor/gb/basicdoc.rng +12 -1
- data/lib/asciidoctor/gb/biblio.rng +1 -0
- data/lib/asciidoctor/gb/isodoc.rng +5 -1
- data/lib/asciidoctor/gb/isostandard.rng +12 -0
- data/lib/isodoc/gb/gbbaseconvert.rb +16 -24
- data/lib/isodoc/gb/html/gb.scss +2 -0
- data/lib/metanorma/gb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6eec7b9e19b7b3b8dd7404fb9a7960ed4c3b6af39c297b0bb97347e78a7b5ff0
|
4
|
+
data.tar.gz: cca358c241fbd7d574d457e0a1c23c89ce1f22480c412c856b9d8a0870379cab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
<
|
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"/>
|
@@ -252,7 +252,11 @@
|
|
252
252
|
</zeroOrMore>
|
253
253
|
</group>
|
254
254
|
<oneOrMore>
|
255
|
-
<
|
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
|
-
|
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
|
-
|
172
|
-
|
173
|
-
|
171
|
+
parts.map do |p|
|
172
|
+
/\s*\[MODIFICATION\]/.match(p) ? l10n(", #{@modified_lbl} — ") : 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 << " "
|
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
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
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 << " — "
|
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 << " — "
|
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|
|
data/lib/isodoc/gb/html/gb.scss
CHANGED
@@ -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;
|
data/lib/metanorma/gb/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2019-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-iso
|