metanorma-unece 0.0.7 → 0.0.8

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: f6871322b366b2ef44c6b2466eda47f244bde463d49a73932bab6a30dcefbc7a
4
- data.tar.gz: 6b022cad4b1f019ca11d043282f797de91ee00badb2f6909669dd3915500d46a
3
+ metadata.gz: 310b51a54be216010c47f06e0c602d8a3fca3ea59c10ebc5308fa134252ebbea
4
+ data.tar.gz: 93a9deb63d422937ba7050b9cb1dca1b1ff698c8ab09c82ff20500b2074a58b8
5
5
  SHA512:
6
- metadata.gz: c7fa7fbc4bd216ba99801c6f5fadb24910cbed2d1b514e562321c90326e008a8ad7b5ad4374b8950c50858e6351c3025b4739335887da0736ade42a81fe654cc
7
- data.tar.gz: 9dd1376f632679ef180c30ead155cfaaa4830b6e8819fcf9f385e3c1b8fcd59a8e615693388a458afa8ddc70002b71007d9f04cd7ecb1eb663b3eddc53f6eae4
6
+ metadata.gz: 7c79df69d9bd44c93b46a600069eb6de08f9aec061277cbfc889071c85cb5645d679dda5ec786dc157f6f3d21c6f7252531a40fa255b73afafe04214077ed930
7
+ data.tar.gz: 57476c0fa779c278c75b1abc050d86afe71f999f56a53ca68b673739cba5e42edf387f3fe82acfee3dc5c4c4c02dd557a0156f836d323d0008d990ba09a48e41
data/.travis.yml CHANGED
@@ -7,7 +7,7 @@ rvm:
7
7
  - 2.3
8
8
  - ruby-head
9
9
  before_install:
10
- - gem install bundler -v 1.16.1
10
+ - gem install bundler -v 2.0.1
11
11
  - unset _JAVA_OPTIONS
12
12
  - wget "http://downloads.sourceforge.net/project/plantuml/plantuml.jar?r=&ts=1424308684&use_mirror=jaist" -O plantuml.jar
13
13
  - sudo mkdir -p /opt/plantuml
data/README.adoc CHANGED
@@ -224,7 +224,7 @@ ISO-639-1 codes are used for languages, and they are comma-delimited.
224
224
  `:item-footnote:`:: Footnoted reference to item, if item is on the preliminary list or the provisional agenda.
225
225
 
226
226
  [[model_additions]]
227
- == Asciidoctor features specific to CSAND
227
+ == Asciidoctor features specific to UNECE
228
228
 
229
229
  The https://github.com/riboseinc/metanorma-standoc[metanorma-standoc]
230
230
  gem documents the customisations of Asciidoctor markup common to all metanorma gems.
@@ -488,6 +488,9 @@
488
488
  <optional>
489
489
  <ref name="edition"/>
490
490
  </optional>
491
+ <optional>
492
+ <ref name="version"/>
493
+ </optional>
491
494
  <zeroOrMore>
492
495
  <ref name="biblionote"/>
493
496
  </zeroOrMore>
@@ -866,6 +869,34 @@
866
869
  </zeroOrMore>
867
870
  </element>
868
871
  </define>
872
+ <define name="version">
873
+ <element name="version">
874
+ <optional>
875
+ <ref name="vedition"/>
876
+ </optional>
877
+ <optional>
878
+ <ref name="revision-date"/>
879
+ </optional>
880
+ <zeroOrMore>
881
+ <ref name="draft"/>
882
+ </zeroOrMore>
883
+ </element>
884
+ </define>
885
+ <define name="vedition">
886
+ <element name="edition">
887
+ <data type="int"/>
888
+ </element>
889
+ </define>
890
+ <define name="revision-date">
891
+ <element name="revision-date">
892
+ <data type="date"/>
893
+ </element>
894
+ </define>
895
+ <define name="draft">
896
+ <element name="draft">
897
+ <text/>
898
+ </element>
899
+ </define>
869
900
  <!--
870
901
  Anycontents = mixed {
871
902
  https://github.com/relaxng/jing-trang/issues/211
@@ -39,9 +39,6 @@
39
39
  <define name="standard-document">
40
40
  <element name="standard-document">
41
41
  <ref name="bibdata"/>
42
- <optional>
43
- <ref name="version"/>
44
- </optional>
45
42
  <optional>
46
43
  <ref name="preface"/>
47
44
  </optional>
@@ -59,34 +56,6 @@
59
56
  <ref name="BibData"/>
60
57
  </element>
61
58
  </define>
62
- <define name="version">
63
- <element name="version">
64
- <optional>
65
- <ref name="vedition"/>
66
- </optional>
67
- <optional>
68
- <ref name="revision-date"/>
69
- </optional>
70
- <zeroOrMore>
71
- <ref name="draft"/>
72
- </zeroOrMore>
73
- </element>
74
- </define>
75
- <define name="vedition">
76
- <element name="edition">
77
- <data type="int"/>
78
- </element>
79
- </define>
80
- <define name="revision-date">
81
- <element name="revision-date">
82
- <data type="date"/>
83
- </element>
84
- </define>
85
- <define name="draft">
86
- <element name="draft">
87
- <text/>
88
- </element>
89
- </define>
90
59
  <define name="preface">
91
60
  <element name="preface">
92
61
  <oneOrMore>
@@ -1068,6 +1037,9 @@
1068
1037
  <optional>
1069
1038
  <ref name="edition"/>
1070
1039
  </optional>
1040
+ <optional>
1041
+ <ref name="version"/>
1042
+ </optional>
1071
1043
  <zeroOrMore>
1072
1044
  <ref name="biblionote"/>
1073
1045
  </zeroOrMore>
@@ -96,6 +96,9 @@
96
96
  <optional>
97
97
  <ref name="edition"/>
98
98
  </optional>
99
+ <optional>
100
+ <ref name="version"/>
101
+ </optional>
99
102
  <zeroOrMore>
100
103
  <ref name="biblionote"/>
101
104
  </zeroOrMore>
@@ -178,6 +181,9 @@
178
181
  <optional>
179
182
  <ref name="edition"/>
180
183
  </optional>
184
+ <optional>
185
+ <ref name="version"/>
186
+ </optional>
181
187
  <zeroOrMore>
182
188
  <ref name="biblionote"/>
183
189
  </zeroOrMore>
@@ -762,9 +768,6 @@
762
768
  <define name="iso-standard">
763
769
  <element name="iso-standard">
764
770
  <ref name="bibdata"/>
765
- <optional>
766
- <ref name="version"/>
767
- </optional>
768
771
  <zeroOrMore>
769
772
  <ref name="termdocsource"/>
770
773
  </zeroOrMore>
@@ -193,6 +193,9 @@
193
193
  <optional>
194
194
  <ref name="edition"/>
195
195
  </optional>
196
+ <optional>
197
+ <ref name="version"/>
198
+ </optional>
196
199
  <zeroOrMore>
197
200
  <ref name="biblionote"/>
198
201
  </zeroOrMore>
@@ -335,9 +338,6 @@
335
338
  <define name="unece-standard">
336
339
  <element name="unece-standard">
337
340
  <ref name="bibdata"/>
338
- <optional>
339
- <ref name="version"/>
340
- </optional>
341
341
  <ref name="preface"/>
342
342
  <oneOrMore>
343
343
  <ref name="sections"/>
@@ -241,7 +241,7 @@ main {
241
241
  }
242
242
 
243
243
  @media screen {
244
- img {
244
+ div.figure > img {
245
245
  width: 100%;
246
246
  height: auto;
247
247
  }
@@ -593,11 +593,11 @@ ul, ol {
593
593
  margin-left: 1.2em;
594
594
  }
595
595
 
596
- ul li p:first-child {
596
+ ul > li p:first-child {
597
597
  display: inline;
598
598
  }
599
599
 
600
- ul li:first-child {
600
+ ul > li:first-child {
601
601
  margin-top: 1em;
602
602
  }
603
603
 
@@ -614,7 +614,7 @@ ul li:first-child {
614
614
  display: none;
615
615
  }
616
616
 
617
- main ul li {
617
+ main ul > li {
618
618
  list-style-type: disc;
619
619
  list-style-position: outside;
620
620
  margin-bottom: 0.5em;
@@ -683,6 +683,18 @@ div.Admonition {
683
683
  }
684
684
  }
685
685
 
686
+ .Admonition {
687
+ background-color: #ffcccc;
688
+ color: #47430c;
689
+ padding: 1.2em;
690
+ margin: 1em 0 1em 0;
691
+
692
+ p {
693
+ margin: 0;
694
+ }
695
+ }
696
+
697
+
686
698
  /*
687
699
  3.8 Examples
688
700
  */
@@ -1120,6 +1132,17 @@ a.anchorjs-link:hover {
1120
1132
  padding: 0 5px 0 5px;
1121
1133
  }
1122
1134
 
1135
+ .Admonition {
1136
+ background-color: #ffcccc;
1137
+ color: #47430c;
1138
+ padding: 5px;
1139
+ margin: 2em 0 1em 0; }
1140
+
1141
+ .Admonition p {
1142
+ padding: 0 5px 0 5px;
1143
+ }
1144
+
1145
+
1123
1146
  nav {
1124
1147
  line-height: 1;
1125
1148
  }
@@ -557,8 +557,6 @@ table.MsoISOTable
557
557
  mso-border-insideh:.75pt solid windowtext;
558
558
  mso-border-insidev:.75pt solid windowtext;
559
559
  margin-bottom:12pt;
560
- mso-table-anchor-vertical:paragraph;
561
- mso-table-bspace:12.0pt;
562
560
  font-size:10.0pt;
563
561
  font-family:$bodyfont;}
564
562
  table.MsoISOTable tr
@@ -586,8 +584,6 @@ table.MsoTableGrid
586
584
  mso-para-margin-bottom:.0001pt;
587
585
  mso-pagination:widow-orphan;
588
586
  margin-bottom:12pt;
589
- mso-table-anchor-vertical:paragraph;
590
- mso-table-bspace:12.0pt;
591
587
  font-size:10.0pt;
592
588
  font-family:$bodyfont;}
593
589
  td { page-break-inside:avoid; }
@@ -645,10 +641,6 @@ p.example, li.example, div.example, td.example
645
641
  font-size:10.0pt;
646
642
  font-family:$bodyfont;}
647
643
 
648
- table.example {
649
- margin-bottom:12pt;
650
- }
651
-
652
644
  td.example p.MsoListParagraph {
653
645
  font-size: 10.0pt;
654
646
  }
@@ -1069,8 +1069,6 @@ table.MsoNormalTable
1069
1069
  mso-para-margin:0cm;
1070
1070
  mso-para-margin-bottom:.0001pt;
1071
1071
  mso-pagination:widow-orphan;
1072
- mso-table-anchor-vertical:paragraph;
1073
- mso-table-bspace:12.0pt;
1074
1072
  font-size:10.0pt;
1075
1073
  font-family:$bodyfont;}
1076
1074
  br.section
@@ -83,7 +83,7 @@ module IsoDoc
83
83
  end
84
84
 
85
85
  def unpublished(status)
86
- %w(published withdrawn).include? status.downcase
86
+ !%w(published withdrawn).include? status.downcase
87
87
  end
88
88
 
89
89
  def version(isoxml, _out)
@@ -150,7 +150,7 @@ module IsoDoc
150
150
  foreword.parent = preface_container if foreword && preface_container
151
151
  intro.parent = preface_container if intro && preface_container
152
152
  if preface_container && (foreword || intro)
153
- preface_container.at("./div/br").remove # remove initial page break
153
+ preface_container.at("./div/p[br]").remove # remove initial page break
154
154
  end
155
155
  if abstractbox && !intro && !foreword && !@toc
156
156
  sect2 = docxml.at("//div[@class='WordSection2']")
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Unece
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
33
33
  spec.add_dependency "metanorma-standoc", "~> 1.0.0"
34
34
  spec.add_dependency "isodoc", "~> 0.9.0"
35
35
 
36
- spec.add_development_dependency "bundler", "~> 1.15"
36
+ spec.add_development_dependency "bundler", "~> 2.0.1"
37
37
  spec.add_development_dependency "byebug", "~> 9.1"
38
38
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
39
39
  spec.add_development_dependency "guard", "~> 2.14"
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.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-19 00:00:00.000000000 Z
11
+ date: 2019-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '1.15'
131
+ version: 2.0.1
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '1.15'
138
+ version: 2.0.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: byebug
141
141
  requirement: !ruby/object:Gem::Requirement