isodoc 1.1.0 → 1.1.3.pre.alpha3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/macos.yml +6 -12
- data/.github/workflows/ubuntu.yml +18 -20
- data/.github/workflows/windows.yml +6 -12
- data/Rakefile +3 -1
- data/isodoc.gemspec +1 -1
- data/lib/isodoc/base_style/all.css +207 -0
- data/lib/isodoc/base_style/blocks.css +0 -0
- data/lib/isodoc/base_style/coverpage.css +0 -0
- data/lib/isodoc/base_style/defaults.css +0 -0
- data/lib/isodoc/base_style/metanorma_word.css +34 -0
- data/lib/isodoc/base_style/metanorma_word.scss +0 -1
- data/lib/isodoc/base_style/nav.css +0 -0
- data/lib/isodoc/base_style/reset.css +105 -0
- data/lib/isodoc/base_style/reset.scss +3 -3
- data/lib/isodoc/base_style/typography.css +0 -0
- data/lib/isodoc/convert.rb +106 -53
- data/lib/isodoc/function/references.rb +28 -17
- data/lib/isodoc/function/to_word_html.rb +2 -2
- data/lib/isodoc/function/utils.rb +57 -51
- data/lib/isodoc/gem_tasks.rb +133 -0
- data/lib/isodoc/metadata.rb +69 -63
- data/lib/isodoc/sassc_importer.rb +11 -0
- data/lib/isodoc/version.rb +1 -1
- data/lib/isodoc/xref/xref_sect_gen.rb +3 -7
- data/spec/assets/{html.css → html.scss} +0 -0
- data/spec/isodoc/footnotes_spec.rb +2 -2
- data/spec/isodoc/postproc_spec.rb +1319 -1345
- data/spec/isodoc/ref_spec.rb +1 -1
- data/spec/isodoc/section_spec.rb +52 -0
- metadata +28 -18
data/spec/isodoc/ref_spec.rb
CHANGED
@@ -231,7 +231,7 @@ RSpec.describe IsoDoc do
|
|
231
231
|
<i>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</i>
|
232
232
|
</p>
|
233
233
|
<p id='ref12' class='Biblio'>
|
234
|
-
|
234
|
+
Citn  IETF RFC 20, CitationWorks. 2019.
|
235
235
|
<i>How to cite a reference</i>
|
236
236
|
.
|
237
237
|
</p>
|
data/spec/isodoc/section_spec.rb
CHANGED
@@ -1109,5 +1109,57 @@ OUTPUT
|
|
1109
1109
|
OUTPUT
|
1110
1110
|
end
|
1111
1111
|
|
1112
|
+
it "processes clauses containing normative references" do
|
1113
|
+
expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1114
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
1115
|
+
<bibliography>
|
1116
|
+
<clause id="D" obligation="informative">
|
1117
|
+
<title>Bibliography</title>
|
1118
|
+
<references id="E" obligation="informative" normative="false">
|
1119
|
+
<title>Bibliography Subsection 1</title>
|
1120
|
+
</references>
|
1121
|
+
<references id="F" obligation="informative" normative="false">
|
1122
|
+
<title>Bibliography Subsection 2</title>
|
1123
|
+
</references>
|
1124
|
+
</clause>
|
1125
|
+
<clause id="A" obligation="informative"><title>First References</title>
|
1126
|
+
<references id="B" obligation="informative" normative="true">
|
1127
|
+
<title>Normative References 1</title>
|
1128
|
+
</references>
|
1129
|
+
<references id="C" obligation="informative" normative="false">
|
1130
|
+
<title>Normative References 2</title>
|
1131
|
+
</references>
|
1132
|
+
</clause>
|
1133
|
+
|
1134
|
+
</bibliography>
|
1135
|
+
INPUT
|
1136
|
+
#{HTML_HDR}
|
1137
|
+
<p class='zzSTDTitle1'/>
|
1138
|
+
<div>
|
1139
|
+
<h1>1.  Normative references</h1>
|
1140
|
+
<div>
|
1141
|
+
<h2>1.1.  Normative References 1</h2>
|
1142
|
+
</div>
|
1143
|
+
<div>
|
1144
|
+
<h2>1.2.  Normative References 2</h2>
|
1145
|
+
</div>
|
1146
|
+
</div>
|
1147
|
+
<br/>
|
1148
|
+
<div>
|
1149
|
+
<h1 class='Section3'>Bibliography</h1>
|
1150
|
+
<div>
|
1151
|
+
<h2 class='Section3'>Bibliography Subsection 1</h2>
|
1152
|
+
</div>
|
1153
|
+
<div>
|
1154
|
+
<h2 class='Section3'>Bibliography Subsection 2</h2>
|
1155
|
+
</div>
|
1156
|
+
</div>
|
1157
|
+
</div>
|
1158
|
+
</body>
|
1159
|
+
</html>
|
1160
|
+
|
1161
|
+
OUTPUT
|
1162
|
+
end
|
1163
|
+
|
1112
1164
|
|
1113
1165
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isodoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3.pre.alpha3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciimath
|
@@ -123,61 +123,61 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: metanorma
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 1.1.0
|
132
132
|
type: :runtime
|
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:
|
138
|
+
version: 1.1.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: rake
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: '12.0'
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: '12.0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: byebug
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
160
|
-
type: :
|
159
|
+
version: '9.1'
|
160
|
+
type: :development
|
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: '
|
166
|
+
version: '9.1'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: sassc
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
173
|
+
version: 2.4.0
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
180
|
+
version: 2.4.0
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: equivalent-xml
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -306,14 +306,22 @@ files:
|
|
306
306
|
- lib/isodoc-yaml/i18n-fr.yaml
|
307
307
|
- lib/isodoc-yaml/i18n-zh-Hans.yaml
|
308
308
|
- lib/isodoc.rb
|
309
|
+
- lib/isodoc/base_style/all.css
|
309
310
|
- lib/isodoc/base_style/all.scss
|
310
311
|
- lib/isodoc/base_style/bands.scss
|
312
|
+
- lib/isodoc/base_style/blocks.css
|
311
313
|
- lib/isodoc/base_style/blocks.scss
|
314
|
+
- lib/isodoc/base_style/coverpage.css
|
312
315
|
- lib/isodoc/base_style/coverpage.scss
|
316
|
+
- lib/isodoc/base_style/defaults.css
|
313
317
|
- lib/isodoc/base_style/defaults.scss
|
318
|
+
- lib/isodoc/base_style/metanorma_word.css
|
314
319
|
- lib/isodoc/base_style/metanorma_word.scss
|
320
|
+
- lib/isodoc/base_style/nav.css
|
315
321
|
- lib/isodoc/base_style/nav.scss
|
322
|
+
- lib/isodoc/base_style/reset.css
|
316
323
|
- lib/isodoc/base_style/reset.scss
|
324
|
+
- lib/isodoc/base_style/typography.css
|
317
325
|
- lib/isodoc/base_style/typography.scss
|
318
326
|
- lib/isodoc/class_utils.rb
|
319
327
|
- lib/isodoc/common.rb
|
@@ -333,6 +341,7 @@ files:
|
|
333
341
|
- lib/isodoc/function/terms.rb
|
334
342
|
- lib/isodoc/function/to_word_html.rb
|
335
343
|
- lib/isodoc/function/utils.rb
|
344
|
+
- lib/isodoc/gem_tasks.rb
|
336
345
|
- lib/isodoc/headlesshtml_convert.rb
|
337
346
|
- lib/isodoc/html_convert.rb
|
338
347
|
- lib/isodoc/html_function.rb
|
@@ -344,6 +353,7 @@ files:
|
|
344
353
|
- lib/isodoc/metadata_date.rb
|
345
354
|
- lib/isodoc/pdf_convert.rb
|
346
355
|
- lib/isodoc/presentation_xml_convert.rb
|
356
|
+
- lib/isodoc/sassc_importer.rb
|
347
357
|
- lib/isodoc/version.rb
|
348
358
|
- lib/isodoc/word_convert.rb
|
349
359
|
- lib/isodoc/word_function.rb
|
@@ -362,7 +372,7 @@ files:
|
|
362
372
|
- lib/isodoc/xref/xref_sect_gen.rb
|
363
373
|
- lib/isodoc/xslfo_convert.rb
|
364
374
|
- spec/assets/header.html
|
365
|
-
- spec/assets/html.
|
375
|
+
- spec/assets/html.scss
|
366
376
|
- spec/assets/htmlcover.html
|
367
377
|
- spec/assets/htmlintro.html
|
368
378
|
- spec/assets/i18n.yaml
|
@@ -407,9 +417,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
407
417
|
version: 2.4.0
|
408
418
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
409
419
|
requirements:
|
410
|
-
- - "
|
420
|
+
- - ">"
|
411
421
|
- !ruby/object:Gem::Version
|
412
|
-
version:
|
422
|
+
version: 1.3.1
|
413
423
|
requirements: []
|
414
424
|
rubygems_version: 3.0.3
|
415
425
|
signing_key:
|