metanorma-bipm 0.0.1

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