metanorma-unece 0.0.8 → 0.0.9

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: 310b51a54be216010c47f06e0c602d8a3fca3ea59c10ebc5308fa134252ebbea
4
- data.tar.gz: 93a9deb63d422937ba7050b9cb1dca1b1ff698c8ab09c82ff20500b2074a58b8
3
+ metadata.gz: 7a005165e76100797baad319a57a783fb71c19e2ca96ccdf12f75e6462ac318c
4
+ data.tar.gz: 8a6eece329076aabbf2535cafae1a47a6e367019c9551ab570c0541d806bb4d8
5
5
  SHA512:
6
- metadata.gz: 7c79df69d9bd44c93b46a600069eb6de08f9aec061277cbfc889071c85cb5645d679dda5ec786dc157f6f3d21c6f7252531a40fa255b73afafe04214077ed930
7
- data.tar.gz: 57476c0fa779c278c75b1abc050d86afe71f999f56a53ca68b673739cba5e42edf387f3fe82acfee3dc5c4c4c02dd557a0156f836d323d0008d990ba09a48e41
6
+ metadata.gz: fe1b54d981364df91efd04afee04446db003063e42101ebb58011aa34e3761a1c6f1175dc59de137403d3f543d1e07779efef1b7751ef7360179a9859b063017
7
+ data.tar.gz: fec5309b45f4be54bc60ad5808406b28ac1151e69fb315cbea9086c235116f9a8c944284cf833fa12d899a57358fd71039c53abe53c67b101b12074dfe32e966
@@ -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">
@@ -703,6 +703,7 @@ div.Admonition {
703
703
  background-color: #e1eef1;
704
704
  padding: 1.2em;
705
705
  margin: 2em 0 1em 0;
706
+ padding-left: 2em;
706
707
  }
707
708
 
708
709
  .example .example-title {
@@ -710,6 +711,7 @@ div.Admonition {
710
711
  text-transform: uppercase;
711
712
  text-align: center;
712
713
  margin-top:0;
714
+ margin-left:-1.5em;
713
715
  }
714
716
 
715
717
  /*
@@ -630,13 +630,17 @@ div.coverpage_warning
630
630
  aside {
631
631
  font-size:10.0pt;
632
632
  }
633
- div.example {
634
- margin-left:70.9pt;
635
- text-indent:-70.9pt;
633
+
634
+ .example-title {
635
+ font-weight: bold;
636
+ margin-left: -36.0pt;
636
637
  }
637
- p.example, li.example, div.example, td.example
638
- { margin:0in;
639
- margin-bottom:.0001pt;
638
+
639
+ p.example, li.example, div.example, td.example {
640
+ margin-top: 0cm;
641
+ margin-right: 36.0pt;
642
+ margin-bottom: 0cm;
643
+ margin-left: 36.0pt;
640
644
  mso-pagination:none;
641
645
  font-size:10.0pt;
642
646
  font-family:$bodyfont;}
@@ -13,8 +13,12 @@ module IsoDoc
13
13
  def initialize(options)
14
14
  @libdir = File.dirname(__FILE__)
15
15
  super
16
+ end
17
+
18
+ def convert1(docxml, filename, dir)
16
19
  FileUtils.cp html_doc_path('logo.jpg'), "logo.jpg"
17
20
  @files_to_delete << "logo.jpg"
21
+ super
18
22
  end
19
23
 
20
24
  def default_fonts(options)
@@ -13,7 +13,11 @@ module IsoDoc
13
13
  @libdir = File.dirname(__FILE__)
14
14
  super
15
15
  @toc = options[:toc]
16
+ end
17
+
18
+ def convert1(docxml, filename, dir)
16
19
  FileUtils.cp html_doc_path('logo.jpg'), "logo.jpg"
20
+ super
17
21
  end
18
22
 
19
23
  def default_fonts(options)
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Unece
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.add_dependency "twitter_cldr"
31
31
  spec.add_dependency "iso-639"
32
32
 
33
- spec.add_dependency "metanorma-standoc", "~> 1.0.0"
33
+ spec.add_dependency "metanorma-standoc", "~> 1.1.0"
34
34
  spec.add_dependency "isodoc", "~> 0.9.0"
35
35
 
36
36
  spec.add_development_dependency "bundler", "~> 2.0.1"
@@ -44,5 +44,5 @@ Gem::Specification.new do |spec|
44
44
  spec.add_development_dependency "simplecov", "~> 0.15"
45
45
  spec.add_development_dependency "timecop", "~> 0.9"
46
46
  spec.add_development_dependency "metanorma", "~> 0.3.1"
47
- spec.add_development_dependency "metanorma-cli", "~> 1.0.0"
47
+ spec.add_development_dependency "metanorma-cli", "~> 1.1.0"
48
48
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-unece
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
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-12 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
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.0.0
103
+ version: 1.1.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.0.0
110
+ version: 1.1.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: isodoc
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -282,14 +282,14 @@ dependencies:
282
282
  requirements:
283
283
  - - "~>"
284
284
  - !ruby/object:Gem::Version
285
- version: 1.0.0
285
+ version: 1.1.0
286
286
  type: :development
287
287
  prerelease: false
288
288
  version_requirements: !ruby/object:Gem::Requirement
289
289
  requirements:
290
290
  - - "~>"
291
291
  - !ruby/object:Gem::Version
292
- version: 1.0.0
292
+ version: 1.1.0
293
293
  description: 'Metanorma for UNECE: United Nations Economic Commission for Europe.
294
294
 
295
295
  '