metanorma-ribose 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/macos.yml +42 -0
  3. data/.github/workflows/ubuntu.yml +42 -0
  4. data/.github/workflows/windows.yml +44 -0
  5. data/.gitignore +1 -0
  6. data/.hound.yml +3 -0
  7. data/.rubocop.yml +10 -0
  8. data/CODE_OF_CONDUCT.md +74 -0
  9. data/Gemfile +11 -0
  10. data/LICENSE +25 -0
  11. data/README.adoc +70 -0
  12. data/Rakefile +6 -0
  13. data/bin/console +14 -0
  14. data/bin/rspec +18 -0
  15. data/bin/setup +8 -0
  16. data/lib/asciidoctor/ribose.rb +4 -0
  17. data/lib/asciidoctor/ribose/basicdoc.rng +1059 -0
  18. data/lib/asciidoctor/ribose/biblio.rng +1237 -0
  19. data/lib/asciidoctor/ribose/boilerplate.xml +47 -0
  20. data/lib/asciidoctor/ribose/converter.rb +76 -0
  21. data/lib/asciidoctor/ribose/isodoc.rng +1504 -0
  22. data/lib/asciidoctor/ribose/reqt.rng +194 -0
  23. data/lib/asciidoctor/ribose/rsd.rng +79 -0
  24. data/lib/isodoc/ribose/base_convert.rb +36 -0
  25. data/lib/isodoc/ribose/html/header.html +242 -0
  26. data/lib/isodoc/ribose/html/html_rsd_intro.html +8 -0
  27. data/lib/isodoc/ribose/html/html_rsd_titlepage.html +90 -0
  28. data/lib/isodoc/ribose/html/htmlstyle.scss +751 -0
  29. data/lib/isodoc/ribose/html/logo.png +0 -0
  30. data/lib/isodoc/ribose/html/logo.svg +1 -0
  31. data/lib/isodoc/ribose/html/rsd.scss +760 -0
  32. data/lib/isodoc/ribose/html/scripts.html +71 -0
  33. data/lib/isodoc/ribose/html/word_rsd_intro.html +8 -0
  34. data/lib/isodoc/ribose/html/word_rsd_titlepage.html +119 -0
  35. data/lib/isodoc/ribose/html/wordstyle.scss +1170 -0
  36. data/lib/isodoc/ribose/html_convert.rb +34 -0
  37. data/lib/isodoc/ribose/metadata.rb +18 -0
  38. data/lib/isodoc/ribose/pdf_convert.rb +20 -0
  39. data/lib/isodoc/ribose/presentation_xml_convert.rb +11 -0
  40. data/lib/isodoc/ribose/rsd.standard.xsl +7076 -0
  41. data/lib/isodoc/ribose/word_convert.rb +31 -0
  42. data/lib/isodoc/ribose/xref.rb +31 -0
  43. data/lib/metanorma-ribose.rb +14 -0
  44. data/lib/metanorma/ribose.rb +32 -0
  45. data/lib/metanorma/ribose/processor.rb +42 -0
  46. data/lib/metanorma/ribose/version.rb +5 -0
  47. data/metanorma-ribose.gemspec +46 -0
  48. data/metanorma.yml +36 -0
  49. metadata +277 -0
@@ -0,0 +1,8 @@
1
+ <nav>
2
+ <h1 id="content">Contents</h1>
3
+ <div id="toc"></div>
4
+
5
+ </nav>
6
+
7
+
8
+ <div class="rule toc"></div>
@@ -0,0 +1,90 @@
1
+ <div class="document-stage-band" id="{{ stage | downcase | replace: ' ', '-' }}-band">
2
+ <p class="document-stage">{{ stage }}</p>
3
+ </div>
4
+
5
+ <div class="document-type-band" id="{{ doctype | downcase | replace: ' ', '-' }}-band">
6
+ <p class="document-type">Ribose {{ doctype }}</p>
7
+ </div>
8
+
9
+
10
+
11
+ <div id='toggle'> <span>&#x2022;</span> </div>
12
+
13
+ <header>
14
+
15
+ <div class="coverpage">
16
+ <div class="wrapper-top">
17
+
18
+ <div class="coverpage-doc-identity">
19
+ <div class="doc-number">
20
+ <span class="docnumber">{{ docnumber }}</span>
21
+ <span class="docyear">{{ draftinfo }}</span>
22
+ </div>
23
+
24
+ <div class="coverpage-title">
25
+ <span class="title-first">{{ doctitle }}</span>
26
+ <!--<span class="title-second">{{ docsubtitle }}</span>-->
27
+ </div>
28
+ </div>
29
+
30
+ <div class="coverpage-logo">
31
+ <span>Ribose Group Inc. {{ docyear }}</span>
32
+ </div>
33
+
34
+ <div class="coverpage-tc-name">
35
+ <span>{{ tc }}</span>
36
+ </div>
37
+ </div>
38
+
39
+ <div class="wrapper-top-bottom"></div>
40
+
41
+ <div class="WordSection11">
42
+ <div class="coverpage-stage-block" >
43
+ <span class="coverpage-stage" id="{{ doctype | replace: ' ', '-' | downcase }}">Ribose {{ doctype }}</span>
44
+ </div>
45
+
46
+ <div class="coverpage-stage-block" >
47
+ <p><span class="coverpage-maturity" id="{{ stage | replace: ' ', '-' | downcase }}">
48
+ {%- if unpublished -%}
49
+ {{- stage -}}
50
+ {%- else -%}
51
+ {%- if publisheddate and publisheddate != "XXXX" -%}
52
+ Published {{ publisheddate -}}
53
+ {%- endif -%}
54
+ {%- endif -%}</span></p>
55
+ {% if security %}
56
+ <p><span class="coverpage-maturity">Classification: {{ security }}</span></p>
57
+ {% endif %}
58
+ </div>
59
+
60
+ {% if doctype == "Policy And Procedures" or doctype == "Proposal" %}
61
+ <div class="coverpage-stage-block" >{{ revdate }}</div>
62
+ {% endif %}
63
+
64
+ {% if unpublished %}
65
+ <div class="coverpage-warning">
66
+ <div id="boilerplate-license-destination"/>
67
+ </div>
68
+ {% endif %}
69
+
70
+ <div class="info-section">
71
+ <div class="copyright">
72
+ <div class="year">
73
+ <div id="boilerplate-copyright-destination"/>
74
+ </div>
75
+
76
+ <div class="message">
77
+ <div id="boilerplate-legal-destination"/>
78
+ </div>
79
+
80
+ <div class="contact-info">
81
+ <div id="boilerplate-feedback-destination"/>
82
+ </div>
83
+ </div>
84
+
85
+ <div class="rule"></div>
86
+ </div>
87
+ </div>
88
+
89
+
90
+ </header>
@@ -0,0 +1,751 @@
1
+ /*
2
+ 0 CSS RESET
3
+ */
4
+
5
+ /* http://meyerweb.com/eric/tools/css/reset/
6
+ v2.0 | 20110126
7
+ License: none (public domain)
8
+ */
9
+
10
+ @import 'base_style/all';
11
+
12
+ body {
13
+ @include bodyStyle1(15px, 1.4em, #1d1d1d, #ffffff, 300);
14
+ // @include sidebarNavContainer(323px);
15
+ }
16
+
17
+ main {
18
+ margin: 0 3em 0 6em;
19
+ }
20
+
21
+ #toc {
22
+ @include toc(#485094, #1661AD, #485094);
23
+ @include sidebarToc();
24
+
25
+ .toc-active a {
26
+ color: white;
27
+ }
28
+
29
+ li a {
30
+ text-transform: uppercase;
31
+ }
32
+
33
+ ul {
34
+ a:hover {
35
+ box-shadow: none;
36
+ color: white;
37
+ }
38
+ }
39
+ }
40
+
41
+ nav {
42
+ @include sidebarNav(#f7f7f7, 323px, 45px);
43
+ }
44
+
45
+ #toggle {
46
+ @include sidebarNavToggle(white, #1661AD)
47
+ }
48
+
49
+ #myBtn {
50
+ @include toTopBtn(white, #1f8ca0);
51
+ text-transform: uppercase;
52
+
53
+ a.anchorjs-link {
54
+ @include anchorLink(#485094)
55
+ }
56
+ }
57
+
58
+ /*
59
+ 2. Responsive navigation layout
60
+ */
61
+
62
+ @media screen and (min-width: 768px) {
63
+ .container {
64
+ padding-left: 360px;
65
+ }
66
+
67
+ .rule.toc {
68
+ display: none;
69
+ }
70
+
71
+ h1.toc-contents {
72
+ margin-top: 1em;
73
+ }
74
+
75
+ ul#toc-list {
76
+ padding: 0;
77
+ margin: 0;
78
+ }
79
+ }
80
+
81
+ div.figure {
82
+ @include figureBlock();
83
+ }
84
+
85
+ /*
86
+ Document types + stages
87
+ */
88
+
89
+ .document-type-band {
90
+ @include docBand($order: 2, $offset: 180px);
91
+
92
+ .document-type {
93
+ top: 20px;
94
+ }
95
+ }
96
+
97
+ .document-stage-band {
98
+ @include docBand($order: 1, $textLength: 160px, $fontWeight: 300);
99
+ }
100
+
101
+ #governance-band p.document-type {
102
+ height: 230px !important;
103
+ }
104
+
105
+ p.document-stage {
106
+ font-weight: 300;
107
+ height: 160px;
108
+ }
109
+
110
+ #standard-band p {
111
+ height: 270px;
112
+ }
113
+
114
+ #proposal-band p {
115
+ height: 150px;
116
+ }
117
+
118
+ #standard-band,
119
+ #published-band {
120
+ background-color: #9ABD48;
121
+ }
122
+
123
+ #standard,
124
+ #published {
125
+ border-bottom: solid 3px #9ABD48;
126
+ }
127
+
128
+ #governance,
129
+ #policy-and-procedures {
130
+ border-bottom: solid 3px #750697;
131
+ }
132
+
133
+ #governance-band,
134
+ #policy-and-procedures-band {
135
+ background-color: #750697;
136
+ }
137
+
138
+ #guide {
139
+ border-bottom: solid 3px #48a0e7;
140
+ }
141
+
142
+ #guide-band {
143
+ background-color: #48a0e7;
144
+ }
145
+
146
+ .coverpage-maturity {
147
+ @include coverpageStageBlock();
148
+ }
149
+
150
+ #working-draft,
151
+ #proposal {
152
+ border-bottom: solid 3px #F7803C;
153
+ }
154
+
155
+ #working-draft-band,
156
+ #proposal-band {
157
+ background-color: #F7803C;
158
+ }
159
+
160
+ #committee-draft {
161
+ border-bottom: solid 3px #fd06fd;
162
+ }
163
+
164
+ #committee-draft-band {
165
+ background-color: #fd06fd;
166
+ }
167
+
168
+ #draft-standard {
169
+ border-bottom: solid 3px #fdf906;
170
+ }
171
+
172
+ #draft-standard-band {
173
+ background-color: #fdf906;
174
+ }
175
+
176
+ #standard {
177
+ border-bottom: solid 3px #9ABD48;
178
+ }
179
+
180
+ #standard-band {
181
+ background-color: #9ABD48;
182
+ }
183
+
184
+ #obsolete {
185
+ border-bottom: solid 3px #7e0d13;
186
+ }
187
+
188
+ #obsolete-band {
189
+ background-color: #7e0d13;
190
+ }
191
+
192
+ /*
193
+ 3. TYPOGRAPHY
194
+ */
195
+
196
+ /*
197
+ 3.1 Titles
198
+ */
199
+
200
+ h1,
201
+ h2,
202
+ h3,
203
+ h4,
204
+ h5,
205
+ h6 {
206
+ font-family: $headerfont;
207
+ color: #1661AD;
208
+ font-weight: 300;
209
+ margin-top: 1.6em;
210
+ margin-bottom: 0.3em;
211
+ }
212
+
213
+ h1 {
214
+ font-size: 1.6em;
215
+ text-transform: uppercase;
216
+ margin-top: 2em;
217
+ }
218
+
219
+ h1#content {
220
+ margin-top: 2em;
221
+ }
222
+
223
+ h2 {
224
+ margin-top: 1.3em;
225
+ font-size: 1.3em;
226
+ font-weight: 400;
227
+ }
228
+
229
+ h3 {
230
+ margin-top: 1.1em;
231
+ font-size: 1.1em;
232
+ font-weight: 100;
233
+ }
234
+
235
+ .TermNum,
236
+ .Terms,
237
+ .AltTerms {
238
+ color: #1661AD;
239
+ font-weight: 100;
240
+ }
241
+
242
+ h2.TermNum {
243
+ margin-bottom: 0;
244
+ }
245
+
246
+ p.Terms {
247
+ font-size: 1.1em;
248
+ line-height: 1.5em;
249
+ margin: 0;
250
+ }
251
+
252
+ p.AltTerms {
253
+ /*
254
+ font-style: italic;
255
+ */
256
+ font-size: 1.1em;
257
+ margin: 0;
258
+ }
259
+
260
+ .contact-info a:hover {
261
+ color: #485094;
262
+ text-decoration: underline;
263
+ background: none;
264
+ box-shadow: 0 0 0 0;
265
+ }
266
+
267
+ /*
268
+ 3.2 Links
269
+ */
270
+ @include elementStyles(#485094, #1661AD, white);
271
+
272
+ /*
273
+ 3.3 Lists
274
+ */
275
+
276
+ ul,
277
+ ol {
278
+ margin-left: 1.2em;
279
+ }
280
+
281
+ ul li {
282
+ list-style: none;
283
+ }
284
+
285
+ ul>li:before {
286
+ content: "\2014";
287
+ display: inline-block;
288
+ width: 1em;
289
+ margin-left: -1.2em;
290
+ }
291
+
292
+ ul>li p:first-child {
293
+ display: inline;
294
+ }
295
+
296
+ ul>li:first-child {
297
+ margin-top: 1em;
298
+ }
299
+
300
+ #toc-list ul {
301
+ margin-bottom: 0.25em;
302
+ }
303
+
304
+ #toc-list li {
305
+ list-style-type: none;
306
+ }
307
+
308
+ #toc li:before {
309
+ content: " ";
310
+ display: none;
311
+ }
312
+
313
+ /*
314
+ 3.4 Rules
315
+ */
316
+
317
+ .rule {
318
+ @include rule(1px, #0e1a85)
319
+ }
320
+
321
+ /*
322
+ 3.5 Bibliograhy
323
+ */
324
+
325
+ p.Biblio,
326
+ p.NormRef {
327
+ margin-top: 1em;
328
+ margin-left: 2em;
329
+ }
330
+
331
+ /*
332
+ 3.6 Source Code + figures
333
+ */
334
+
335
+ .figure,
336
+ pre,
337
+ .pseudocode {
338
+ @include pseudocodeBlock(#f7f7f7);
339
+ }
340
+
341
+ pre {
342
+ @include monospaceBlockStyle()
343
+ }
344
+
345
+ @include admonitionBlock();
346
+ @include recommendationBlock();
347
+
348
+ .FigureTitle,
349
+ .SourceTitle {
350
+ @include blockTitle()
351
+ }
352
+
353
+ /*
354
+ 3.7 Notes
355
+ */
356
+
357
+ .Note {
358
+ background-color: #fff495;
359
+ color: #47430c;
360
+ padding: 1.2em;
361
+ margin: 1em 0 1em 0;
362
+
363
+ p {
364
+ margin: 0;
365
+ }
366
+ }
367
+
368
+ .Admonition {
369
+ background-color: #ffcccc;
370
+ color: #47430c;
371
+ padding: 1.2em;
372
+ margin: 1em 0 1em 0;
373
+
374
+ p {
375
+ margin: 0;
376
+ }
377
+ }
378
+
379
+ /*
380
+ 3.8 Examples
381
+ */
382
+
383
+ .example {
384
+ @include exampleBlock(#e1eef1, #424242, 1.2em);
385
+
386
+ .example-title {
387
+ margin-top: 0;
388
+ }
389
+
390
+ pre,
391
+ .pseudocode {
392
+ background: none;
393
+ }
394
+ }
395
+
396
+ /*
397
+ 3.9 Tables
398
+ */
399
+
400
+ table {
401
+ @include table(1px solid black);
402
+ }
403
+
404
+ p.TableTitle {
405
+ text-align: center;
406
+ margin-top: 2.5em;
407
+ font-weight: 400;
408
+ }
409
+
410
+ /*
411
+ 3.10 Footnotes
412
+ */
413
+
414
+ a.footnote-number {
415
+ vertical-align: super;
416
+ font-size: 0.8em;
417
+ }
418
+
419
+ .footnote {
420
+ font-size: 0.9em;
421
+ }
422
+
423
+ /*
424
+ 3.11 Blockquotes
425
+ */
426
+
427
+ .Quote {
428
+ @include blockquoteBlock(#f7f7f7);
429
+ }
430
+
431
+ /*
432
+ 3.12 Formulas
433
+ */
434
+
435
+ .formula {
436
+ @include formulaBlock(#f7f7f7)
437
+ }
438
+
439
+ /*
440
+ 3.13 Contact Info
441
+ */
442
+
443
+ .contact-info {
444
+ padding: 2em;
445
+ margin-top: 5em;
446
+ width: 250px;
447
+
448
+ text-align: left;
449
+ border: #1661AD solid 2px;
450
+ color: #1661AD !important;
451
+ border-radius: 25px;
452
+
453
+ }
454
+
455
+ .contact-info a,
456
+ .contact-info a:hover {
457
+ color: #1661AD;
458
+ }
459
+
460
+ .contact-info p,
461
+ .contact-info a {
462
+ @include monospaceBlockStyle();
463
+ font-weight: 400;
464
+ }
465
+
466
+ .contact-info .name {
467
+ font-weight: 700;
468
+ font-size: 1.2em;
469
+ margin-bottom: 0;
470
+ }
471
+
472
+ .contact-info .address {
473
+ font-size: 1em;
474
+ line-height: 1.3em;
475
+ margin-top: 0;
476
+ }
477
+
478
+ /*
479
+ Keywords
480
+ */
481
+
482
+ span.keyword {
483
+ font-weight: 600;
484
+ }
485
+
486
+ /*
487
+ Paragraphs
488
+ */
489
+
490
+ p {
491
+ margin-top: 1em;
492
+ margin-bottom: 1em;
493
+ }
494
+
495
+ h2 p {
496
+ display: inline;
497
+ }
498
+
499
+
500
+ /*
501
+ 4.0 Page header
502
+ */
503
+
504
+ /*
505
+ 4.1 Top Logo
506
+ */
507
+
508
+ .icon-svg {
509
+ width: 100%;
510
+ color: #5ecf86;
511
+ }
512
+
513
+ .wrapper-top {
514
+ background: linear-gradient(200deg, #0f365e, #1661AD);
515
+ color: #ffffff;
516
+ padding: 2em 0;
517
+ width: 100%;
518
+ }
519
+
520
+ .wrapper-top-bottom {
521
+ width: 0;
522
+ height: 0;
523
+ border-top: 100px solid #1661AD;
524
+ border-right: 100px solid transparent;
525
+ position: absolute;
526
+ }
527
+
528
+ .doc-number {
529
+ font-size: 0.5em;
530
+ font-family: $bodyfont;
531
+ }
532
+
533
+ .coverpage-title {
534
+ padding-bottom: 0.5em;
535
+ font-family: $headerfont;
536
+ font-size: 1.2em;
537
+ line-height: 1.5em;
538
+ font-weight: 100;
539
+ padding-left: 1em;
540
+ padding-right: 1em;
541
+ text-transform: uppercase;
542
+ }
543
+
544
+ .WordSection11 {
545
+ padding: 0 2em 0 3em;
546
+ }
547
+
548
+ .info-section {
549
+ padding: 0 2em 0 5em;
550
+ }
551
+
552
+ .prefatory-section {
553
+ padding: 0 3em 0 6em;
554
+ }
555
+
556
+
557
+ .zzSTDTitle1,
558
+ .MsoCommentText {
559
+ display: none;
560
+ }
561
+
562
+
563
+ .coverpage {
564
+ text-align: center;
565
+ padding-left: 1.5em;
566
+ }
567
+
568
+ .coverpage-logo span,
569
+ .coverpage-tc-name span {
570
+ font-family: $bodyfont;
571
+ text-transform: none;
572
+ font-weight: 300;
573
+ }
574
+
575
+ .coverpage-tc-name {
576
+ font-size: 1.2em;
577
+ line-height: 1.2em;
578
+ margin: 0.25em 0;
579
+ }
580
+
581
+ /*
582
+ 4.2 Document Identity
583
+ */
584
+
585
+ .coverpage-doc-identity {
586
+ font-size: 2em;
587
+ line-height: 2em;
588
+ }
589
+
590
+ .coverpage-title .title-second {
591
+ display: none;
592
+ }
593
+
594
+ .coverpage-stage-block {
595
+ font-family: $bodyfont;
596
+ font-weight: 600;
597
+ font-size: 1.25em;
598
+ margin: 2em 0em 2em 0em;
599
+ text-transform: uppercase;
600
+ }
601
+
602
+ /*
603
+ 4.3 Draft Warning
604
+ */
605
+
606
+ .coverpage-warning {
607
+ border: #f36f36 solid 2px;
608
+ color: #f36f36 !important;
609
+ margin: 1em 2em;
610
+ color: #485094;
611
+ padding: 2em 1em 1em 1em;
612
+ border-radius: 25px;
613
+ }
614
+
615
+ .coverpage-warning .title {
616
+ font-family: $headerfont;
617
+ font-weight: 300;
618
+ text-transform: uppercase;
619
+ font-size: 1.2em;
620
+ }
621
+
622
+
623
+ /*
624
+ 4.4 Copyright
625
+ */
626
+
627
+ .boilerplate-copyright {
628
+ padding: 1em;
629
+ font-size: 0.9em;
630
+ text-align: left;
631
+ }
632
+
633
+
634
+ /* .copyright .name, .copyright .address {color: #485094;} */
635
+
636
+
637
+
638
+ /*
639
+ 5.0 Other styles
640
+ */
641
+
642
+
643
+
644
+ /*
645
+ To top button
646
+ */
647
+
648
+ @page {
649
+ margin: 2cm 1cm;
650
+ }
651
+
652
+ @media print {
653
+
654
+
655
+ .document-info,
656
+ nav,
657
+ .copyright {
658
+ page-break-before: always;
659
+ }
660
+
661
+ nav {
662
+ page-break-after: always;
663
+ }
664
+
665
+ h1,
666
+ h2,
667
+ h3,
668
+ h4 {
669
+ page-break-after: avoid;
670
+ margin-top: 1.2em;
671
+ }
672
+
673
+ .note,
674
+ .figure,
675
+ pre,
676
+ .pseudocode,
677
+ table {
678
+ page-break-inside: avoid;
679
+ }
680
+
681
+ .info-section {
682
+ display: none;
683
+ }
684
+
685
+ .coverpage {
686
+ height: 23cm;
687
+ }
688
+
689
+ .wrapper-top {
690
+ top: 0;
691
+ padding-top: 4cm;
692
+ padding-bottom: 4cm;
693
+ }
694
+
695
+ .wrapper-top-bottom {
696
+ margin-top: -5px;
697
+ }
698
+
699
+ button#myBtn {
700
+ background-color: white;
701
+ }
702
+
703
+ .container {
704
+ padding-left: 0;
705
+ }
706
+
707
+ h1.content {
708
+ margin-top: 2em;
709
+ line-height: 2.5em;
710
+ }
711
+
712
+ h1 {
713
+ font-size: 1.5em;
714
+ line-height: 1.5;
715
+ }
716
+
717
+ h2 {
718
+ font-size: 1.2em
719
+ }
720
+
721
+ h3 {
722
+ font-size: 1em;
723
+ }
724
+
725
+ .Note {
726
+ background-color: #fff495;
727
+ color: #47430c;
728
+ padding: 5px;
729
+ margin: 2em 0 1em 0;
730
+ }
731
+
732
+ .Note p {
733
+ padding: 0 5px 0 5px;
734
+ }
735
+
736
+ .Admonition {
737
+ background-color: #ffcccc;
738
+ color: #47430c;
739
+ padding: 5px;
740
+ margin: 2em 0 1em 0;
741
+ }
742
+
743
+ .Admonition p {
744
+ padding: 0 5px 0 5px;
745
+ }
746
+
747
+ .wrapper-top-bottom {
748
+ display: none;
749
+ }
750
+
751
+ }