metanorma-iso 1.0.11 → 1.0.12

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: 291654144418257ce85f6e706e00aef3bf5b3f94c756d1dab58a4ab367778324
4
- data.tar.gz: 55b5b74fab210b29de23d0fbbaec7c686186cfdc4fe69bb30a5e9eff820dbe31
3
+ metadata.gz: 7b2fd50423287814aff0d576d39555ea55d61e81aae37b935f93b7b524d49f41
4
+ data.tar.gz: cc19dd56225507e4327df1dfd6adfb0b1976269207751b18aca8c4d87704a1e7
5
5
  SHA512:
6
- metadata.gz: 458f173ae5efb03bcde539daea3939f493d7e3cef5f0bd1bc9d8ddb6f9812172341c45666d8c55a203a5095f55eec3e55b10536d746632cd12256fda08e80e7e
7
- data.tar.gz: bd7dcbc1efa5949bbc42bb0933ff913128e2a101862846e076f8adf9ba50371924e028505fee8e15384deba48e03f484850cce6e83575ddbc314f07f3dc61a83
6
+ metadata.gz: d754116f5aa51090288365d923f0c157ff68aab9453758e76f0566f18fb5f9a778e92687284920d528e1cca7081bb132a1d16d3acf8aa344c0c561706efeebdc
7
+ data.tar.gz: 906ab5fd28c1a66af873e89cdac4486335681400a405335f110380a9840b0a3f5304b52f2204f17c12833b46df9554667c24067a00dbf03664719372d1faf8c7
data/README.adoc CHANGED
@@ -169,11 +169,11 @@ The following document attributes are specific to ISO:
169
169
 
170
170
  `:title-intro-en:`:: The introductory component of the English title of the
171
171
  document. This and the other `:title-*` document attributes are used instead
172
- of the metanorma-standoc `:title:` attribute.
172
+ of the metanorma-standoc `:title:` attribute and the default Asciidoctor title
173
+ (the first line of the document header, prefixed with `=`).
173
174
 
174
175
  `:title-main-en:`:: The main component of the English title of the document
175
- (mandatory). (The first line of the AsciiDoc document, which contains the title
176
- introduced with `=`, is ignored)
176
+ (mandatory).
177
177
 
178
178
  `:title-part-en:`:: The English title of the document part
179
179
 
data/docs/guidance.adoc CHANGED
@@ -404,6 +404,8 @@ Ordered lists in both HTML and Word have their labels pre-configured, to align w
404
404
 
405
405
  TIP: The stylesheets for ISO render unordered lists with em-dashes instead of bullets, as preferred by ISO. Ordered lists in Word are rendered with their labels bracketed. (_a)_, _1)_, etc.)
406
406
 
407
+ TIP: Asciidoctor and HTML support multiple paragraphs within a single list item (through https://asciidoctor.org/docs/user-manual/#list-continuation[list continuation]); in HTML output, all the paragraphs within a list item will be aligned. In Word, each list entry must be a single paragraph; if the Asciidoctor contains more than one paragraph for a list item, the subsequent paragraphs will not be preceded by a bullet in Word, but they will also not be indented under the first paragraph of the list item.
408
+
407
409
  === Footnotes
408
410
 
409
411
  Asciidoctor supports only single-paragraph footnotes through its footnote macro (which can only contain a single line of text); this reflects a stylistic bias against digressive text by the Asciidoc creator, and will not change. It can be worked around by introducing line breaks into the macro (see https://github.com/asciidoctor/asciidoctor.org/issues/599, http://discuss.asciidoctor.org/footnotes-with-paragraph-breaks-td4130.html).
@@ -384,6 +384,7 @@
384
384
  <ref name="sourcecode"/>
385
385
  <ref name="example"/>
386
386
  <ref name="review"/>
387
+ <ref name="pre"/>
387
388
  </choice>
388
389
  </define>
389
390
  <define name="paragraph">
@@ -540,6 +541,20 @@
540
541
  </zeroOrMore>
541
542
  </element>
542
543
  </define>
544
+ <define name="pre">
545
+ <element name="pre">
546
+ <attribute name="id">
547
+ <data type="ID"/>
548
+ </attribute>
549
+ <optional>
550
+ <ref name="tname"/>
551
+ </optional>
552
+ <text/>
553
+ <zeroOrMore>
554
+ <ref name="note"/>
555
+ </zeroOrMore>
556
+ </element>
557
+ </define>
543
558
  <define name="table">
544
559
  <element name="table">
545
560
  <attribute name="id">
@@ -710,6 +725,7 @@
710
725
  </optional>
711
726
  <choice>
712
727
  <ref name="image"/>
728
+ <ref name="pre"/>
713
729
  <zeroOrMore>
714
730
  <ref name="figure"/>
715
731
  </zeroOrMore>
@@ -735,6 +751,7 @@
735
751
  <ref name="sub"/>
736
752
  <ref name="sup"/>
737
753
  <ref name="tt"/>
754
+ <ref name="keyword"/>
738
755
  <ref name="strike"/>
739
756
  <ref name="smallcap"/>
740
757
  <ref name="xref"/>
@@ -765,6 +782,11 @@
765
782
  <text/>
766
783
  </element>
767
784
  </define>
785
+ <define name="keyword">
786
+ <element name="keyword">
787
+ <text/>
788
+ </element>
789
+ </define>
768
790
  <define name="sub">
769
791
  <element name="sub">
770
792
  <text/>
@@ -76,6 +76,12 @@ time, mark, audio, video {
76
76
 
77
77
  code, pre, tt, kbd, samp {
78
78
  font-family: $monospacefont;
79
+ font-variant-ligatures: none;
80
+ }
81
+
82
+ code *, pre *, tt *, kbd *, samp * {
83
+ font-family: $monospacefont !important;
84
+ font-variant-ligatures: none;
79
85
  }
80
86
 
81
87
  h1, h2, h3, h4, h5, h6, .h2Annex {
@@ -612,6 +618,7 @@ margin-left: 2em;
612
618
 
613
619
  .Sourcecode {
614
620
  font-family: $monospacefont;
621
+ font-variant-ligatures: none;
615
622
  }
616
623
 
617
624
  .figure, .Sourcecode {
@@ -75,6 +75,12 @@ time, mark, audio, video {
75
75
 
76
76
  code, pre, tt, kbd, samp {
77
77
  font-family: $monospacefont;
78
+ font-variant-ligatures: none;
79
+ }
80
+
81
+ code *, pre *, tt *, kbd *, samp * {
82
+ font-family: $monospacefont !important;
83
+ font-variant-ligatures: none;
78
84
  }
79
85
 
80
86
  dl {
@@ -597,6 +603,7 @@ margin-left: 2em;
597
603
 
598
604
  .Sourcecode {
599
605
  font-family: $monospacefont;
606
+ font-variant-ligatures: none;
600
607
  }
601
608
 
602
609
  .figure, .Sourcecode {
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ISO
3
- VERSION = "1.0.11".freeze
3
+ VERSION = "1.0.12".freeze
4
4
  end
5
5
  end
@@ -42,7 +42,7 @@ Gem::Specification.new do |spec|
42
42
  spec.add_development_dependency "guard-rspec", "~> 4.7"
43
43
  spec.add_development_dependency "rake", "~> 12.0"
44
44
  spec.add_development_dependency "rspec", "~> 3.6"
45
- spec.add_development_dependency "rubocop", "~> 0.50"
45
+ spec.add_development_dependency "rubocop", "= 0.54.0"
46
46
  spec.add_development_dependency "simplecov", "~> 0.15"
47
47
  spec.add_development_dependency "timecop", "~> 0.9"
48
48
  spec.add_development_dependency "metanorma", "~> 0.3.0"
@@ -106,6 +106,11 @@ RSpec.describe Asciidoctor::ISO do
106
106
  <project-number part="1">ISO 1000</project-number>
107
107
  </docidentifier>
108
108
  <docnumber>1000</docnumber>
109
+ <edition>2</edition>
110
+ <version>
111
+ <revision-date>2000-01-01</revision-date>
112
+ <draft>0.3.4</draft>
113
+ </version>
109
114
  <contributor>
110
115
  <role type="author"/>
111
116
  <organization>
@@ -154,11 +159,7 @@ RSpec.describe Asciidoctor::ISO do
154
159
  <ics>
155
160
  <code>3</code>
156
161
  </ics>
157
- </bibdata><version>
158
- <edition>2</edition>
159
- <revision-date>2000-01-01</revision-date>
160
- <draft>0.3.4</draft>
161
- </version>
162
+ </bibdata>
162
163
  <sections/>
163
164
  </iso-standard>
164
165
  OUTPUT
@@ -72,7 +72,7 @@ RSpec.describe Asciidoctor::ISO do
72
72
  end
73
73
 
74
74
  it "processes review blocks if document is in draft mode" do
75
- expect(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true))).to be_equivalent_to <<~"OUTPUT"
75
+ expect(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)).sub(/^.+<sections>/m, "")).to be_equivalent_to <<~"OUTPUT"
76
76
  = Document title
77
77
  Author
78
78
  :docfile: test.adoc
@@ -92,11 +92,7 @@ RSpec.describe Asciidoctor::ISO do
92
92
  For further information on the Foreword, see *ISO/IEC Directives, Part 2, 2016, Clause 12.*
93
93
  ****
94
94
  INPUT
95
- #{BLANK_HDR}
96
- <version>
97
- <draft>1.2</draft>
98
- </version>
99
- <sections><p id="foreword">Foreword</p>
95
+ <p id="foreword">Foreword</p>
100
96
  <review reviewer="ISO" id="_" date="20170101T00:00:00Z" from="foreword" to="foreword"><p id="_">A Foreword shall appear in each document. The generic text is shown here. It does not contain requirements, recommendations or permissions.</p>
101
97
  <p id="_">For further information on the Foreword, see <strong>ISO/IEC Directives, Part 2, 2016, Clause 12.</strong></p></review></sections>
102
98
  </iso-standard>
@@ -145,7 +141,7 @@ RSpec.describe Asciidoctor::ISO do
145
141
  OUTPUT
146
142
  end
147
143
 
148
- it "does nothing in particular with literals" do
144
+ it "processes literals" do
149
145
  expect(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true))).to be_equivalent_to <<~"OUTPUT"
150
146
  #{ASCIIDOC_BLANK_HDR}
151
147
  ....
@@ -153,11 +149,12 @@ RSpec.describe Asciidoctor::ISO do
153
149
  ....
154
150
  INPUT
155
151
  #{BLANK_HDR}
156
- <sections>
157
- <p id="_">LITERAL</p>
158
- </sections>
159
- </iso-standard>
160
-
152
+ <sections>
153
+ <figure id="_">
154
+ <pre id="_">LITERAL</pre>
155
+ </figure>
156
+ </sections>
157
+ </iso-standard>
161
158
  OUTPUT
162
159
  end
163
160
 
@@ -657,7 +657,7 @@ r = 1 %</stem>
657
657
  <title>Normative References</title>
658
658
  <bibitem id="iso123" type="standard">
659
659
  <title format="text/plain">Standard</title>
660
- <docidentifier>ISO 123:--</docidentifier>
660
+ <docidentifier>ISO 123:—</docidentifier>
661
661
  <date type="published">
662
662
  <on>--</on>
663
663
  </date>
@@ -24,8 +24,8 @@ RSpec.describe Asciidoctor::ISO do
24
24
  <em>emphasis</em>
25
25
  <strong>strong</strong>
26
26
  <tt>monospace</tt>
27
- "double quote"
28
- 'single quote'
27
+ double quote
28
+ single quote
29
29
  super<sup>script</sup>
30
30
  sub<sub>script</sub>
31
31
  <stem type="AsciiMath">a_90</stem>
@@ -295,7 +295,7 @@ RSpec.describe Asciidoctor::ISO do
295
295
  <title>Normative References</title>
296
296
  <bibitem id="iso123" type="standard">
297
297
  <title format="text/plain">Standard</title>
298
- <docidentifier>ISO 123:--</docidentifier>
298
+ <docidentifier>ISO 123:—</docidentifier>
299
299
  <date type="published">
300
300
  <on>--</on>
301
301
  </date>
data/spec/assets/iso.doc CHANGED
@@ -1,7 +1,7 @@
1
1
  MIME-Version: 1.0
2
- Content-Type: multipart/related; boundary="----=_NextPart_0262872e.6d12.4917"
2
+ Content-Type: multipart/related; boundary="----=_NextPart_c199ad4e.a0ae.4a75"
3
3
 
4
- ------=_NextPart_0262872e.6d12.4917
4
+ ------=_NextPart_c199ad4e.a0ae.4a75
5
5
  Content-Location: file:///C:/Doc/iso.htm
6
6
  Content-Type: text/html; charset="utf-8"
7
7
 
@@ -834,11 +834,11 @@ Switzerland<p class="MsoNormal"></p></span></p>
834
834
  <p class="MsoToc1"><span lang="EN-GB" xml:lang="EN-GB"><span style="mso-element:field-begin"></span><span style="mso-spacerun:yes">&#xA0;</span>TOC
835
835
  \o "1-2" \h \z \u <span style="mso-element:field-separator"></span></span>
836
836
  <span class="MsoHyperlink"><span lang="EN-GB" style="mso-no-proof:yes" xml:lang="EN-GB">
837
- <a href="#_Toc987694138">Foreword<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
837
+ <a href="#_Toc355783382">Foreword<span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
838
838
  <span style="mso-tab-count:1 dotted">. </span>
839
839
  </span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">
840
840
  <span style="mso-element:field-begin"></span></span>
841
- <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc987694138 \h </span>
841
+ <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"> PAGEREF _Toc355783382 \h </span>
842
842
  <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-separator"></span></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB">1</span>
843
843
  <span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"></span><span lang="EN-GB" class="MsoTocTextSpan" xml:lang="EN-GB"><span style="mso-element:field-end"></span></span></a></span></span></p>
844
844
 
@@ -871,7 +871,7 @@ Switzerland<p class="MsoNormal"></p></span></p>
871
871
  </html>
872
872
 
873
873
 
874
- ------=_NextPart_0262872e.6d12.4917
874
+ ------=_NextPart_c199ad4e.a0ae.4a75
875
875
  Content-Location: file:///C:/Doc/iso_files/filelist.xml
876
876
  Content-Transfer-Encoding: base64
877
877
  Content-Type: application/xml
@@ -881,7 +881,7 @@ ICAgICAgIDxvOk1haW5GaWxlIEhSZWY9Ii4uL3NwZWMvYXNzZXRzL2lzby5odG0iLz4gIDxvOkZp
881
881
  bGUgSFJlZj0iZmlsZWxpc3QueG1sIi8+CiAgPG86RmlsZSBIUmVmPSJoZWFkZXIuaHRtbCIvPgo8
882
882
  L3htbD4K
883
883
 
884
- ------=_NextPart_0262872e.6d12.4917
884
+ ------=_NextPart_c199ad4e.a0ae.4a75
885
885
  Content-Location: file:///C:/Doc/iso_files/header.html
886
886
  Content-Transfer-Encoding: base64
887
887
  Content-Type: text/html charset="utf-8"
@@ -1074,4 +1074,4 @@ cD4NCg0KPHAgY2xhc3M9TXNvRm9vdGVyPjxzcGFuIGxhbmc9RU4tQVUgc3R5bGU9J2ZvbnQtc2l6
1074
1074
  ZToxMC4wcHQ7Jz7CqQ0KJm5ic3A7Jm5ic3A74oCTIEFsbCByaWdodHMgcmVzZXJ2ZWQ8bzpwPjwv
1075
1075
  bzpwPjwvc3Bhbj48L3A+DQoNCjwvZGl2Pg0KDQoNCg0KPC9ib2R5Pg0KDQo8L2h0bWw+DQo=
1076
1076
 
1077
- ------=_NextPart_0262872e.6d12.4917--
1077
+ ------=_NextPart_c199ad4e.a0ae.4a75--
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-27 00:00:00.000000000 Z
11
+ date: 2018-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -182,16 +182,16 @@ dependencies:
182
182
  name: rubocop
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - "~>"
185
+ - - '='
186
186
  - !ruby/object:Gem::Version
187
- version: '0.50'
187
+ version: 0.54.0
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - "~>"
192
+ - - '='
193
193
  - !ruby/object:Gem::Version
194
- version: '0.50'
194
+ version: 0.54.0
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: simplecov
197
197
  requirement: !ruby/object:Gem::Requirement