metanorma-itu 1.0.12 → 1.0.13

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: 37546876b8125697954fc7ff980c07cf756aae329566249a31c9ea51fa48ec6a
4
- data.tar.gz: 5ce41dcc79d10901912a44bbaa7bdb0ed8da9cd1f1bf7a23d5e8d336fbe0f183
3
+ metadata.gz: 9dd5351d92f3cb7d79552e4953b44f4468db9145c8edc8e7c044b50c7027ef5f
4
+ data.tar.gz: d1eac96d771822fbd30f7b34afe1e62ad75d76d5377c7bc4449bbef3426dec73
5
5
  SHA512:
6
- metadata.gz: dadba1953785697e5f6f49ec05696b86c3ceeaca9c437dcd6804f8270d6ebc37cab2926ec9a961232ed727af30cca7691a1799c8c8389f4245611684b6fd5d41
7
- data.tar.gz: 7b7bd5a5024cbd4b81a4dd52556bd50a0c4583394b97e3b01b159e98338a3c85748e9d238278b9b38a7501b2fff1a64fe7653ead1ff1755f86b11e3625d1b2b8
6
+ metadata.gz: c0781a46a8af37f88eaa80ea091bdde5926da2e9f94a8478b852860cf93a9e2a2c792861e3eb52301ffadbb457b30a6bd9a0281a45048c435eaa588cf141f8d7
7
+ data.tar.gz: 508002933e801a0d77be589fae9146f7570b26cc156e05fba80effe2a07299e67acbe983c8109c48fea7a57da5a55cd7fa649b5cd0eb845c6c140f5cf4c49fe1
@@ -49,11 +49,17 @@
49
49
  </define>
50
50
  <define name="stage">
51
51
  <element name="stage">
52
+ <optional>
53
+ <attribute name="abbreviation"/>
54
+ </optional>
52
55
  <text/>
53
56
  </element>
54
57
  </define>
55
58
  <define name="substage">
56
59
  <element name="substage">
60
+ <optional>
61
+ <attribute name="abbreviation"/>
62
+ </optional>
57
63
  <text/>
58
64
  </element>
59
65
  </define>
@@ -452,9 +458,14 @@
452
458
  <attribute name="bibitemid">
453
459
  <data type="IDREF"/>
454
460
  </attribute>
455
- <zeroOrMore>
456
- <ref name="locality"/>
457
- </zeroOrMore>
461
+ <choice>
462
+ <zeroOrMore>
463
+ <ref name="locality"/>
464
+ </zeroOrMore>
465
+ <zeroOrMore>
466
+ <ref name="localityStack"/>
467
+ </zeroOrMore>
468
+ </choice>
458
469
  <optional>
459
470
  <ref name="date"/>
460
471
  </optional>
@@ -469,6 +480,25 @@
469
480
  <ref name="BibItemLocality"/>
470
481
  </element>
471
482
  </define>
483
+ <define name="localityStack">
484
+ <element name="localityStack">
485
+ <zeroOrMore>
486
+ <ref name="locality"/>
487
+ </zeroOrMore>
488
+ </element>
489
+ </define>
490
+ <define name="sourceLocality">
491
+ <element name="sourceLocality">
492
+ <ref name="BibItemLocality"/>
493
+ </element>
494
+ </define>
495
+ <define name="sourceLocalityStack">
496
+ <element name="sourceLocalityStack">
497
+ <zeroOrMore>
498
+ <ref name="sourceLocality"/>
499
+ </zeroOrMore>
500
+ </element>
501
+ </define>
472
502
  <define name="BibItemLocality">
473
503
  <attribute name="type">
474
504
  <ref name="LocalityType"/>
@@ -1028,12 +1058,30 @@
1028
1058
  <attribute name="type">
1029
1059
  <ref name="DocRelationType"/>
1030
1060
  </attribute>
1061
+ <optional>
1062
+ <element name="description">
1063
+ <ref name="FormattedString"/>
1064
+ </element>
1065
+ </optional>
1031
1066
  <element name="bibitem">
1032
1067
  <ref name="BibliographicItem"/>
1033
1068
  </element>
1034
- <zeroOrMore>
1035
- <ref name="locality"/>
1036
- </zeroOrMore>
1069
+ <choice>
1070
+ <zeroOrMore>
1071
+ <ref name="locality"/>
1072
+ </zeroOrMore>
1073
+ <zeroOrMore>
1074
+ <ref name="localityStack"/>
1075
+ </zeroOrMore>
1076
+ </choice>
1077
+ <choice>
1078
+ <zeroOrMore>
1079
+ <ref name="sourceLocality"/>
1080
+ </zeroOrMore>
1081
+ <zeroOrMore>
1082
+ <ref name="sourceLocalityStack"/>
1083
+ </zeroOrMore>
1084
+ </choice>
1037
1085
  </element>
1038
1086
  </define>
1039
1087
  <define name="version">
@@ -45,7 +45,7 @@ module Asciidoctor
45
45
  def extract_text(node)
46
46
  return "" if node.nil?
47
47
  node1 = Nokogiri::XML.fragment(node.to_s)
48
- node1.xpath("//link | //locality").each(&:remove)
48
+ node1.xpath("//link | //locality | //localityStack").each(&:remove)
49
49
  ret = ""
50
50
  node1.traverse { |x| ret += x.text if x.text? }
51
51
  ret
@@ -120,8 +120,8 @@ module IsoDoc
120
120
 
121
121
  def get_eref_linkend(node)
122
122
  link = "[#{anchor_linkend(node, docid_l10n(node["target"] || node["citeas"]))}]"
123
- link += eref_localities(node.xpath(ns("./locality")), link)
124
- contents = node.children.select { |c| c.name != "locality" }
123
+ link += eref_localities(node.xpath(ns("./locality | ./localityStack")), link)
124
+ contents = node.children.select { |c| !%w{locality localityStack}.include? c.name }
125
125
  return link if contents.nil? || contents.empty?
126
126
  Nokogiri::XML::NodeSet.new(node.document, contents).to_xml
127
127
  end
@@ -161,10 +161,14 @@ pre {
161
161
  }
162
162
 
163
163
  .document-stage-band {
164
- @include docBand($order: 1, $textLength: 160px, $color: black, $fontWeight: 300);
164
+ @include docBand($order: 1, $textLength: 160px, $color: white, $fontWeight: 300);
165
165
  }
166
166
  .document-type-band {
167
- @include docBand($order: 2, $textLength: 210px, $color: black, $offset: 180px);
167
+ @include docBand($order: 2, $offset: 180px);
168
+
169
+ .document-type {
170
+ top: 20px;
171
+ }
168
172
  }
169
173
 
170
174
  .logo-wrapper {
@@ -316,7 +320,7 @@ ul {
316
320
 
317
321
  &:before {
318
322
  content: "\2014";
319
- display: inline-block;
323
+ display: inline-block;
320
324
  width: 1em;
321
325
  margin-left: -1.2em;
322
326
  }
@@ -365,7 +369,7 @@ p.Biblio, p.NormRef {
365
369
  }
366
370
 
367
371
  .example {
368
- @include exampleBlock(#e1eef1, null, 1.2em, 2em);
372
+ @include exampleBlock(#e1eef1, null, 1.2em, 2em);
369
373
 
370
374
  .example-title {
371
375
  margin-top: 0;
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "1.0.12"
3
+ VERSION = "1.0.13"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-03 00:00:00.000000000 Z
11
+ date: 2020-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities