metanorma-m3d 1.0.13 → 1.1.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: c7ee7b8bd216cc4c6f77728f19a511c95dc3468f311a501bb42ebb0efc5767bd
4
- data.tar.gz: c7d5198cf8b51f8a84b8db1b9490278842a2863057b11a0526712c6b045c2097
3
+ metadata.gz: 16057f9779c4a42b7f6b67094d063a83449169a10c8bbb295436a87472fba519
4
+ data.tar.gz: 7fcfdd7fd5357af21872b723bd2bb48e75e52fdc0137183aee93b6c7cd309d13
5
5
  SHA512:
6
- metadata.gz: '01893848b7cf6a612d0161b51b843aaa0631af27a41edfbb5f3a3a0b858ea91a100b646ef27d038c826476410a4e53f8fb5772b8c5bd5d2610de716b4b82b284'
7
- data.tar.gz: 9ec043bad9a26f7b8d2d2af8eb0ed26442ab10f5f999775c3ed4c17f38d87e28ccd6eb6cdbed8066340f0167293cf8a1626795c77e719b4bc93b01e4000470e5
6
+ metadata.gz: b1f06460f0cbcfcca0fade6cdbbf35262009422fbc47b28081eac3a5bb6a2b6094d08acb04cd8739fee49e51afd443b554bf49370d820a5d1c8273f5a965a5d6
7
+ data.tar.gz: 76b46badb1b37b6121a753f29f56053db179fa80419821991572fd4180f8d44a5811865523cee261deea0efc48360751176e9c4ad2f035cc0a3e886075897672
@@ -286,18 +286,23 @@
286
286
  </define>
287
287
  <define name="address">
288
288
  <element name="address">
289
- <oneOrMore>
289
+ <choice>
290
290
  <!-- iso191606 TODO -->
291
- <ref name="street"/>
292
- </oneOrMore>
293
- <ref name="city"/>
294
- <optional>
295
- <ref name="state"/>
296
- </optional>
297
- <ref name="country"/>
298
- <optional>
299
- <ref name="postcode"/>
300
- </optional>
291
+ <group>
292
+ <oneOrMore>
293
+ <ref name="street"/>
294
+ </oneOrMore>
295
+ <ref name="city"/>
296
+ <optional>
297
+ <ref name="state"/>
298
+ </optional>
299
+ <ref name="country"/>
300
+ <optional>
301
+ <ref name="postcode"/>
302
+ </optional>
303
+ </group>
304
+ <ref name="formattedAddress"/>
305
+ </choice>
301
306
  </element>
302
307
  </define>
303
308
  <define name="street">
@@ -325,6 +330,11 @@
325
330
  <text/>
326
331
  </element>
327
332
  </define>
333
+ <define name="formattedAddress">
334
+ <element name="formattedAddress">
335
+ <text/>
336
+ </element>
337
+ </define>
328
338
  <define name="person-identifier">
329
339
  <element name="identifier">
330
340
  <attribute name="type">
@@ -911,6 +911,9 @@
911
911
  </choice>
912
912
  </attribute>
913
913
  </optional>
914
+ <optional>
915
+ <attribute name="alt"/>
916
+ </optional>
914
917
  </element>
915
918
  </define>
916
919
  <define name="stem">
@@ -629,15 +629,20 @@ p.Biblio, p.NormRef {
629
629
  background-color: #F5F6F6;
630
630
  border-left: solid 5px #69C5DC;
631
631
  color: rgb(91, 94, 95);
632
- padding: 1.2em 1.2em 1.2em 2.2em;
632
+ padding: 1.2em;
633
633
  margin: 2em 0 2em -1em;
634
+ padding-left: 2em;
635
+ }
636
+
637
+ .example p {
638
+ margin: 0;
634
639
  }
635
640
 
636
641
  .example .example-title {
637
642
  font-weight: 700;
638
643
  text-transform: uppercase;
639
- text-align: center;
640
644
  margin-top:0;
645
+ margin-left:-1.5em;
641
646
  }
642
647
 
643
648
  /*
@@ -635,13 +635,16 @@ aside {
635
635
  font-size:10.0pt;
636
636
  }
637
637
 
638
- div.example {
639
- margin-left:70.9pt;
640
- text-indent:-70.9pt;
638
+ .example-title {
639
+ font-weight: bold;
640
+ margin-left: -36.0pt;
641
641
  }
642
- p.example, li.example, div.example, td.example
643
- { margin:0in;
644
- margin-bottom:.0001pt;
642
+
643
+ p.example, li.example, div.example, td.example {
644
+ margin-top: 0cm;
645
+ margin-right: 36.0pt;
646
+ margin-bottom: 0cm;
647
+ margin-left: 36.0pt;
645
648
  mso-pagination:none;
646
649
  font-size:10.0pt;
647
650
  font-family:$bodyfont;}
@@ -18,7 +18,11 @@ module IsoDoc
18
18
  def initialize(options)
19
19
  @libdir = File.dirname(__FILE__)
20
20
  super
21
+ end
22
+
23
+ def convert1(docxml, filename, dir)
21
24
  add_image(%w(logo.jpg m3-logo.png))
25
+ super
22
26
  end
23
27
 
24
28
  def default_fonts(options)
@@ -18,7 +18,11 @@ module IsoDoc
18
18
  def initialize(options)
19
19
  @libdir = File.dirname(__FILE__)
20
20
  super
21
+ end
22
+
23
+ def convert1(docxml, filename, dir)
21
24
  add_image(%w(logo.jpg m3-logo.png))
25
+ super
22
26
  end
23
27
 
24
28
  def default_fonts(options)
@@ -11,7 +11,11 @@ module IsoDoc
11
11
  def initialize(options)
12
12
  @libdir = File.dirname(__FILE__)
13
13
  super
14
+ end
15
+
16
+ def convert1(docxml, filename, dir)
14
17
  FileUtils.cp html_doc_path("logo.jpg"), "logo.jpg"
18
+ super
15
19
  end
16
20
 
17
21
  def default_fonts(options)
@@ -40,8 +40,8 @@ module IsoDoc
40
40
  end
41
41
  end
42
42
 
43
- def unpublished(status)
44
- %w(published withdrawn).include? status.downcase
43
+ def unpublished(status)
44
+ !%w(published withdrawn).include? status.downcase
45
45
  end
46
46
 
47
47
  def version(isoxml, _out)
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module M3d
3
- VERSION = "1.0.13"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -38,7 +38,7 @@ Gem::Specification.new do |spec|
38
38
  spec.add_dependency "thread_safe"
39
39
  spec.add_dependency "uuidtools"
40
40
 
41
- spec.add_dependency "metanorma-standoc", "~> 1.0.0"
41
+ spec.add_dependency "metanorma-standoc", "~> 1.1.0"
42
42
  spec.add_dependency "isodoc", "~> 0.9.0"
43
43
 
44
44
  spec.add_development_dependency "bundler", "~> 2.0.1"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-m3d
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.1.0
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-01-11 00:00:00.000000000 Z
11
+ date: 2019-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 1.0.0
159
+ version: 1.1.0
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 1.0.0
166
+ version: 1.1.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: isodoc
169
169
  requirement: !ruby/object:Gem::Requirement