metanorma-mpfd 0.1.5 → 0.1.6

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: 87602011623efb1127c8dd1a19a6812c491aed3148d8d561232ce494e45ccfe3
4
- data.tar.gz: cf0f26d14b14814641f32bc3f8cd4bf886691317f6714fd07a557278e4f70df1
3
+ metadata.gz: 82ce3121d334698058ea64ecc8c801094cce208416eec09a035dfe746e712fbd
4
+ data.tar.gz: 4017449fd0e9bfb7ae5bf5fbe06408f3df2ea74a17206decceb41bcd136a1b7e
5
5
  SHA512:
6
- metadata.gz: e54bf36db25e2533a9009ee95e189bdeb387192b95192e588a04163e708d1415a7b0a1f16b5bcd0cec8330b1826c19ea2f89d5560e36e447bbfc0acd93e606d4
7
- data.tar.gz: e5441f308639b8def4cbd504747bb4faa1cb63529852b70ca88930b8a5ebc2cdcfbdd0cf5d51ba2e3be6d922a82a382f7eecfd6ccebf2adf434472c46fcd3f4e
6
+ metadata.gz: 19b994ae93a81148560e5511c03de72959a473ab75ca7f5446eaaba08518724eab04bd4fa9e5a5a4149cbac52c4f0d68dc88d20b05c98c58a7075276955e8765
7
+ data.tar.gz: d7faa7284301c61473a0a67de83e680261f1215f3085c55caf9654c359aedd8d54ba62784b456fa5ce5600673fe88fcf208bae969bac4c88d390aff8bcc64e1d
data/README.adoc CHANGED
@@ -1,7 +1,7 @@
1
1
  = Metanorma-MPFD: Metanorma processor for MPFA documents
2
2
 
3
3
  image:https://img.shields.io/gem/v/metanorma-mpfd.svg["Gem Version", link="https://rubygems.org/gems/metanorma-mpfd"]
4
- image:https://img.shields.io/travis/riboseinc/metanorma-mpfd/master.svg["Build Status", link="https://travis-ci.org/riboseinc/metanorma-mpfd"]
4
+ image:https://img.shields.io/travis/riboseinc/metanorma-mpfd/master.svg["Build Status", link="https://travis-ci.com/riboseinc/metanorma-mpfd"]
5
5
  image:https://codeclimate.com/github/riboseinc/metanorma-mpfd/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/riboseinc/metanorma-mpfd"]
6
6
 
7
7
  WARNING: This gem is still under development. Moreover, unlike other Metanorma gems,
@@ -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">
@@ -625,17 +625,22 @@ p.Biblio, p.NormRef {
625
625
  .example {
626
626
  background-color: #e1eef1;
627
627
  margin: 2em 0 1em 0;
628
+ padding-left: 2em;
628
629
  }
629
630
 
630
631
  table.example {
631
632
  padding: 1.2em;
632
633
  }
633
634
 
635
+ .example p {
636
+ margin: 0;
637
+ }
638
+
634
639
  .example .example-title {
635
640
  font-weight: 700;
636
641
  text-transform: uppercase;
637
- text-align: center;
638
642
  margin-top:0;
643
+ margin-left:-1.5em;
639
644
  }
640
645
 
641
646
  /*
@@ -607,13 +607,17 @@ div.coverpage_warning
607
607
  aside {
608
608
  font-size:10.0pt;
609
609
  }
610
- div.example {
611
- margin-left:70.9pt;
612
- text-indent:-70.9pt;
610
+
611
+ .example-title {
612
+ font-weight: bold;
613
+ margin-left: -36.0pt;
613
614
  }
614
- p.example, li.example, div.example, td.example
615
- { margin:0in;
616
- margin-bottom:.0001pt;
615
+
616
+ p.example, li.example, div.example, td.example {
617
+ margin-top: 0cm;
618
+ margin-right: 36.0pt;
619
+ margin-bottom: 0cm;
620
+ margin-left: 36.0pt;
617
621
  mso-pagination:none;
618
622
  font-size:10.0pt;
619
623
  font-family:$bodyfont;}
@@ -622,6 +626,10 @@ td.example p.MsoListParagraph {
622
626
  font-size: 10.0pt;
623
627
  }
624
628
 
629
+ td.example p.MsoListParagraph {
630
+ font-size: 10.0pt;
631
+ }
632
+
625
633
  span.note_label, span.example_label, td.example_label, td.note_label
626
634
  {
627
635
  font-size: 10.0pt;
@@ -12,10 +12,14 @@ module IsoDoc
12
12
  def initialize(options)
13
13
  @libdir = File.dirname(__FILE__)
14
14
  super
15
+ end
16
+
17
+ def convert1(docxml, filename, dir)
15
18
  FileUtils.cp html_doc_path("logo.jpg"), "logo.jpg"
16
19
  FileUtils.cp html_doc_path('mpfa-logo-no-text@4x.png'), "mpfa-logo-no-text@4x.png"
17
20
  @files_to_delete << "logo.jpg"
18
21
  @files_to_delete << "mpfa-logo-no-text@4x.png"
22
+ super
19
23
  end
20
24
 
21
25
  def default_fonts(options)
@@ -107,9 +111,9 @@ module IsoDoc
107
111
  "//preface/clause[descendant::terms]".freeze
108
112
 
109
113
  SECTIONS_XPATH =
110
- "//foreword | //introduction | //preface/terms | //preface/clause | //annex | "\
111
- "//sections/clause | //bibliography/references | "\
112
- "//bibliography/clause".freeze
114
+ "//foreword | //introduction | //preface/terms | //preface/clause | //annex | "\
115
+ "//sections/clause | //bibliography/references | "\
116
+ "//bibliography/clause".freeze
113
117
 
114
118
  def terms_defs(isoxml, out, num)
115
119
  f = isoxml.at(ns(TERM_CLAUSE)) or return num
@@ -10,10 +10,14 @@ module IsoDoc
10
10
  def initialize(options)
11
11
  @libdir = File.dirname(__FILE__)
12
12
  super
13
+ end
14
+
15
+ def convert1(docxml, filename, dir)
13
16
  FileUtils.cp html_doc_path("logo.jpg"), "logo.jpg"
14
17
  FileUtils.cp html_doc_path('mpfa-logo-no-text@4x.png'), "mpfa-logo-no-text@4x.png"
15
18
  @files_to_delete << "logo.jpg"
16
19
  @files_to_delete << "mpfa-logo-no-text@4x.png"
20
+ super
17
21
  end
18
22
 
19
23
  def default_fonts(options)
@@ -10,10 +10,14 @@ module IsoDoc
10
10
  def initialize(options)
11
11
  @libdir = File.dirname(__FILE__)
12
12
  super
13
+ end
14
+
15
+ def convert1(docxml, filename, dir)
13
16
  FileUtils.cp html_doc_path("logo.jpg"), "logo.jpg"
14
17
  FileUtils.cp html_doc_path('mpfa-logo-no-text@4x.png'), "mpfa-logo-no-text@4x.png"
15
18
  @files_to_delete << "logo.jpg"
16
19
  @files_to_delete << "mpfa-logo-no-text@4x.png"
20
+ super
17
21
  end
18
22
 
19
23
  def default_fonts(options)
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Mpfd
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.add_dependency "asciidoctor", "~> 1.5.7"
29
29
  spec.add_dependency "htmlentities", "~> 4.3.4"
30
30
  spec.add_dependency "nokogiri"
31
- spec.add_dependency "metanorma-standoc", "~> 1.0.0"
31
+ spec.add_dependency "metanorma-standoc", "~> 1.1.0"
32
32
  spec.add_dependency "isodoc", "~> 0.9.0"
33
33
  spec.add_dependency "twitter_cldr"
34
34
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-mpfd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
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
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.0.0
61
+ version: 1.1.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.0.0
68
+ version: 1.1.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: isodoc
71
71
  requirement: !ruby/object:Gem::Requirement