metanorma-ogc 0.0.4 → 0.0.5

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: 51962d5ce3484e09e78005d6c5dd1cb09e26494022f6b613817e6b443b2894c8
4
- data.tar.gz: eb789d6e500b4d7fbd79553bc2e903dbf87699af5e86c8be579a2834dd440a21
3
+ metadata.gz: 18c2e2b68390a84fba7753454f984a996799ae9ea3e891fbba07dbd438e8ce0f
4
+ data.tar.gz: 4fe3ad3bbd6bf5ae7a5d167a8545db551eacb365810938cd1a9cf734809d95d1
5
5
  SHA512:
6
- metadata.gz: fc0f027c30f0b8c1e5df245db5f682b00f1c5778b9f85673dde2804f2843727a08efcceb64aa5544b2aec91d8689b5250896c17b9c5b643c39602c4669e8086f
7
- data.tar.gz: 39f6aafd21c67b0a82a347dbf92bdd4978f517217d2e607f72082f02f8d3941cb8e69788bbc43d7a9a86fdf39d365f7fc6a2f0db7817063c9b8199a002fcbf22
6
+ metadata.gz: a26c5a35ccfb0f5da5da9f43bb8adfe2109f9f6fcd6fc8fff218ee40a0a09cc1f3b769b3d2d89909f9e8b67913f2f674a97759416bf168cf225079614fa2eefd
7
+ data.tar.gz: fa851cf8acab3e484e6b06a1a39c2fe7989db0189977cd3e5fb62c793b0ffbb56fe31005a2c6ebbc71b5eeb15865a65a36cb8ff8595b64edc680f8c802e93eb2
@@ -27,7 +27,7 @@ module Asciidoctor
27
27
  result << noko { |ixml| front node, ixml }
28
28
  result << noko { |ixml| middle node, ixml }
29
29
  result << "</ogc-standard>"
30
- result = textcleanup(result.flatten * "\n")
30
+ result = textcleanup(result)
31
31
  ret1 = cleanup(Nokogiri::XML(result))
32
32
  validate(ret1)
33
33
  ret1.root.add_namespace(nil, Metanorma::Ogc::DOCUMENT_NAMESPACE)
@@ -122,7 +122,7 @@ module Asciidoctor
122
122
  names = seqcheck(names, SEQ[1][:msg], SEQ[1][:val]) || return
123
123
  names = seqcheck(names, SEQ[2][:msg], SEQ[2][:val]) || return
124
124
  n = names.shift
125
- if n == { tag: "definitions", title: nil }
125
+ if !n.nil? && n[:tag] == "definitions"
126
126
  n = names.shift
127
127
  end
128
128
  unless n
@@ -493,6 +493,9 @@
493
493
  <attribute name="id">
494
494
  <data type="ID"/>
495
495
  </attribute>
496
+ <optional>
497
+ <attribute name="lang"/>
498
+ </optional>
496
499
  <optional>
497
500
  <ref name="tname"/>
498
501
  </optional>
@@ -17,52 +17,59 @@
17
17
  <div class="wrapper-top">
18
18
 
19
19
  <div class="coverpage-doc-identity">
20
+
21
+ <div class="coverpage-title">
22
+ <span class="title-first">{{ doctitle }}</span>
23
+ <!--<span class="title-second">{{ docsubtitle }}</span>-->
24
+ </div>
25
+ </div>
26
+
27
+ <div class="coverpage-logo">
28
+ <span>Open Geospatial Consortium {{ docyear }}</span>
29
+ </div>
30
+
31
+ <div class="coverpage-tc-name">
32
+ <span>{{ tc | capitalize }}</span>
33
+ </div>
34
+
35
+ <div class="authors">
36
+ {% if editors %}
37
+ {% for editor in editors %}
38
+ <span>{{ editor }} <span class="roletag">Editor</span></span>
39
+ {% endfor %}
40
+ {% endif %}
41
+ </div>
42
+
20
43
  <div class="coverpage-metadata">
21
- <span>Submission Date: {{ receiveddate }}</span>
22
- <span>Approval Date: {{ issueddate }}</span>
23
- <span>Publication Date: {{ publisheddate }}</span>
24
- <span>External identifier of this OGC® document: <span class="docnumber">{{ externalid }}</span></span>
25
- <span>Internal identifier of this OGC® document: <span class="docnumber">{{ docnumber }}</span></span>
44
+ <span class="label">Submission Date: </span> <span class="value">{{ receiveddate }}</span>
45
+ <span class="label">Approval Date: </span> <span class="value">{{ issueddate }}</span>
46
+ <span class="label">Publication Date: </span> <span class="value">{{ publisheddate }}</span>
47
+ <span class="label">External identifier of this OGC® document: <span class="docnumber value">{{ externalid }}</span></span>
48
+ <span class="label">Internal identifier of this OGC® document: <span class="docnumber value">{{ docnumber }}</span></span>
26
49
  {% if url or html %}
27
- <span>URL for this OGC® document: <a href="{{ url or html }}">{{ url or html }}</a></span>
50
+ <span class="label">URL for this OGC® document:</span> <span class="value"><a href="{{ url or html }}">{{ url or html }}</a></span>
28
51
  {% endif %}
29
52
  {% if previousuri %}
30
- <span>Previous URI: <a href="{{ previousuri }}">{{previousuri}}</a></span>
31
- {% endif %}
32
- {% if editors %}
33
- <span>Editor: {{ editors | join: ", " }}</span>
53
+ <span class="label">Previous URI: </span> <span class="value"><a href="{{ previousuri }}">{{previousuri}}</a></span>
34
54
  {% endif %}
35
55
  </div>
36
56
 
37
57
  {% if xml or pdf or doc %}
38
58
  <div class="coverpage-alt-formats">
39
- <span>Additional Formats: </span>
59
+ <span class="label">Additional Formats: </span>
40
60
  {% if xml %}
41
- <span><a href="{{ xml }}"><i class="far fa-file-code"></i>XML</a></span>
61
+ <span class="value"><a href="{{ xml }}"><i class="far fa-file-code"></i>XML</a></span>
42
62
  {% endif %}
43
63
  {% if pdf %}
44
- <span><a href="{{ pdf }}"><i class="far fa-file-pdf"></i>PDF</a></span>
64
+ <span class="value"><a href="{{ pdf }}"><i class="far fa-file-pdf"></i>PDF</a></span>
45
65
  {% endif %}
46
66
  {% if doc %}
47
- <span><a href="{{ doc }}"><i class="far fa-file-word"></i>DOC</a></span>
67
+ <span class="value"><a href="{{ doc }}"><i class="far fa-file-word"></i>DOC</a></span>
48
68
  {% endif %}
49
69
  </span>
50
70
  </div>
51
71
  {% endif %}
52
72
 
53
- <div class="coverpage-title">
54
- <span class="title-first">{{ doctitle }}</span>
55
- <!--<span class="title-second">{{ docsubtitle }}</span>-->
56
- </div>
57
- </div>
58
-
59
- <div class="coverpage-logo">
60
- <span>Open Geospatial Consortium {{ docyear }}</span>
61
- </div>
62
-
63
- <div class="coverpage-tc-name">
64
- <span>{{ tc | capitalize }}</span>
65
- </div>
66
73
  </div>
67
74
 
68
75
  <div class="wrapper-top-bottom"></div>
@@ -74,6 +81,7 @@
74
81
 
75
82
  <div class="coverpage-stage-block" >
76
83
  <p><span class="coverpage-maturity" id="{{ status | replace: ' ', '-' | downcase }}">{{ status }}</span></p>
84
+ </div>
77
85
  </div>
78
86
 
79
87
  {% if doctype == "Standard" or doctype == "Standard With Suite" %}
@@ -167,6 +175,6 @@
167
175
  <div class="rule"></div>
168
176
  </div>
169
177
  </div>
170
-
178
+ </div>
171
179
 
172
180
  </header>
@@ -137,11 +137,11 @@ table {
137
137
  margin-left: auto;
138
138
  margin-right: auto;
139
139
  max-width: 100%;
140
- color: #1d1d1d;
140
+ color: #00335b;
141
141
  font-weight: 300;
142
- font-size: 15px;
143
- line-height: 1.4em;
144
- background-color: #ffffff;
142
+ font-size: 16px;
143
+ line-height: 1.5;
144
+ background-color: #f6f8fa;
145
145
  }
146
146
 
147
147
  main {margin: 0 3em 0 6em;}
@@ -167,7 +167,7 @@ table {
167
167
  overflow: auto;
168
168
  padding: 0 0 0 45px;
169
169
  margin-right: 30px;
170
- background-color:#f6f6f6;
170
+ background-color:#f1f8ff;
171
171
  }
172
172
 
173
173
  #toggle {
@@ -229,10 +229,11 @@ table {
229
229
 
230
230
  #toc li {
231
231
  padding: 5px 10px;
232
+ font-size: 14px;
232
233
  }
233
234
 
234
235
  #toc a {
235
- color: #2e81c2;
236
+ color: #00335b;
236
237
  text-decoration: none;
237
238
  display: block;
238
239
  }
@@ -256,7 +257,7 @@ table {
256
257
  #toc .toc-active, #toc li:hover {
257
258
  background: #00335b;
258
259
  box-shadow: inset -5px 0px 10px -5px #00335b!important;
259
-
260
+ font-weight: 600;
260
261
  }
261
262
 
262
263
  #toc li:hover a {
@@ -266,7 +267,7 @@ table {
266
267
  }
267
268
 
268
269
  #toc li a {
269
- text-transform: uppercase;
270
+ text-transform: nonce;
270
271
  }
271
272
 
272
273
  /*
@@ -305,7 +306,6 @@ table {
305
306
  }
306
307
 
307
308
  p.document-type, p.document-stage {
308
- color: white;
309
309
  text-transform: uppercase;
310
310
  font-size: 0.9em;
311
311
  font-weight: 400;
@@ -313,15 +313,18 @@ p.document-type, p.document-stage {
313
313
  margin:0;
314
314
  margin-left: 6px;
315
315
  writing-mode:tb-rl;
316
+ -webkit-transform: rotate(180deg);
317
+ -moz-transform: rotate(180deg);
318
+ -o-transform: rotate(180deg);
316
319
  transform:rotate(180deg);
317
- white-space:nowrap;
318
- display:block;
320
+ white-space:nowrap;
321
+ display:block;
319
322
  bottom:0;
320
323
  }
321
324
 
322
325
  p.document-type {
323
326
  font-weight: 400;
324
- height: 210px;
327
+ height: 150;
325
328
  }
326
329
 
327
330
  #governance-band p.document-type {
@@ -334,39 +337,40 @@ p.document-stage {
334
337
  height:160px;
335
338
  }
336
339
 
337
- $doctype-colors-list:(
338
- standard: #0AC442,
339
- standard-with-suite: #540D6E,
340
- abstract-specification: #D183C9,
341
- community-standard: #65AFFF,
342
- profile: #3A405A,
343
- best-practice: #F26430,
344
- engineering-report: #C84630,
345
- discussion-paper: #BFAE48,
346
- reference-model: #BD9391,
347
- user-guide: #303633,
348
- policy: #8BE8CB,
349
- guide: #7EA2AA,
350
- amendment: #888DA7,
351
- technical-corrigendum: #9C7A97,
352
- administrative: #C4F1BE
353
- );
340
+ #standard-band p {
341
+ height: 135px; }
342
+
343
+ #proposal-band p {
344
+ height: 150px; }
345
+
346
+ #standard-band, #published-band {
347
+ color: rgb(123, 168, 18);
348
+ background-color: rgb(216, 236, 168); }
349
+
350
+ #standard, #published {
351
+ color: #9ABD48; }
352
+
353
+ #governance, #policy-and-procedures {
354
+ border-bottom: solid 3px #750697; }
355
+
356
+ #governance-band, #policy-and-procedures-band {
357
+ background-color: #750697; }
358
+
354
359
 
355
- @each $key,$val in $doctype-colors-list{
356
- ##{$key}-band {
357
- background-color: #{$val};
358
- }
359
- ##{$key} {
360
- border-bottom: solid 3px #{$val};
361
- }
362
- }
363
360
 
364
361
  $docstage-colors-list:(
365
- rfc: #39A0ED,
366
- candidate: #2D7393,
367
- published: #069E2D,
368
- deprecated: #004E64,
369
- retired: #2E382E,
362
+ rfc: #48a0e7,
363
+ candidate: #fd06fd,
364
+ published: #9abd48,
365
+ deprecated: #7e0d13,
366
+ retired: #7e0d13,
367
+ working-draft: #f780ec,
368
+ proposal: #f780ec,
369
+ committee-draft: #fd06fd,
370
+ draft-standard: #fd06fd,
371
+ standard: #9abd48,
372
+ obsolete: #7e0d13,
373
+ guide: #48a0e7,
370
374
  );
371
375
 
372
376
  @each $key,$val in $docstage-colors-list{
@@ -378,16 +382,15 @@ $docstage-colors-list:(
378
382
  }
379
383
  }
380
384
 
381
- .coverpage-maturity {
382
- font-family: $bodyfont;
385
+ .coverpage-maturity, .coverpage-stage {
386
+ font-family: $headerfont;
383
387
  font-weight: 400;
384
- font-size: 1em;
388
+ font-size: 1.3em;
385
389
  margin: 0 0 2em 0;
386
390
  text-transform: uppercase;
387
391
  }
388
392
 
389
393
 
390
-
391
394
  /*
392
395
  3. TYPOGRAPHY
393
396
  */
@@ -399,13 +402,13 @@ $docstage-colors-list:(
399
402
  h1,h2,h3,h4,h5,h6 {
400
403
  font-family: $headerfont;
401
404
  color: #00335b;
402
- font-weight: 300;
405
+ font-weight: 400;
403
406
  margin-top: 1.6em;
404
407
  margin-bottom: 0.3em;
405
408
  }
406
409
 
407
410
  h1 {
408
- font-size: 1.6em;
411
+ font-size: 1.8em;
409
412
  text-transform: uppercase;
410
413
  margin-top: 2em;
411
414
  }
@@ -416,37 +419,44 @@ $docstage-colors-list:(
416
419
 
417
420
  h2 {
418
421
  margin-top: 1.3em;
419
- font-size: 1.3em;
420
- font-weight: 400;
422
+ font-size: 1.7em;
423
+ font-weight: 300;
421
424
  }
422
425
 
423
426
  h3 {
424
- margin-top: 1.1em;
425
- font-size: 1.1em;
427
+ margin-top: 1.3em;
428
+ font-size: 1.5em;
426
429
  font-weight: 100;
427
430
  }
428
431
 
432
+ h4 {
433
+ font-size: 1.4em;
434
+ }
435
+
429
436
  .TermNum, .Terms, .AltTerms {
430
437
  color: #00335b;
431
- font-weight: 100;
438
+ font-weight: 300;
439
+ font-family: $headerfont;
432
440
  }
433
441
 
434
442
  h2.TermNum {
435
443
  margin-bottom: 0;
436
444
  }
437
445
 
446
+ /*
438
447
  p.Terms {
439
448
  font-size: 1.1em;
440
449
  line-height: 1.5em;
441
450
  margin: 0;
442
451
  }
452
+ */
443
453
 
444
454
  p.AltTerms {
445
455
  /*
446
456
  font-style: italic;
447
457
  */
448
- font-size: 1.1em;
449
- margin: 0;
458
+ font-size: 24px;
459
+ margin-top: 1em;
450
460
  }
451
461
 
452
462
  /*
@@ -495,8 +505,9 @@ $docstage-colors-list:(
495
505
 
496
506
  ul > li:before {
497
507
  content: "\2014";
498
- display: inline-block; width: 1em;
499
- margin-left: -1.2em;
508
+ display: inline-block;
509
+ width: 1em;
510
+ margin-left: -1em;
500
511
  }
501
512
 
502
513
  ul > li p:first-child {
@@ -544,7 +555,8 @@ p.Biblio, p.NormRef {
544
555
  .figure, .Sourcecode {
545
556
  font-family: $monospacefont;
546
557
  font-variant-ligatures: none;
547
- background-color: #f6f6f6;
558
+ background-color: #e1eef1;
559
+ color: #424242;
548
560
  font-size: 0.8em;
549
561
  line-height: 1.6em;
550
562
  padding: 1.5em;
@@ -563,8 +575,8 @@ p.Biblio, p.NormRef {
563
575
  */
564
576
 
565
577
  .Note {
566
- background-color: #fff495;
567
- color: #47430c;
578
+ background-color: #fff8bb;
579
+ color: #7d760b;
568
580
  padding: 1.2em;
569
581
  margin: 1em 0 1em 0;
570
582
 
@@ -573,16 +585,30 @@ p.Biblio, p.NormRef {
573
585
  }
574
586
  }
575
587
 
576
- .Admonition {
577
- background-color: #ffcccc;
578
- color: #47430c;
579
- padding: 1.2em;
580
- margin: 1em 0 1em 0;
588
+ .Admonition {
589
+ padding: 1em 1.2em 1.2em 1.2em;
590
+ margin: 1em 0 1em 0;
591
+ background-color: #fcad88;
592
+ border-top: 10px solid #eb5a06;
593
+ color:#290404;
594
+ }
581
595
 
582
- p {
596
+ .Admonition.Important {
597
+ background-color: #f58cff;
598
+ color: #5d1364;
599
+ border-top: 10px solid #9503a8;
600
+ }
601
+
602
+ .Admonition.Warning {
603
+ background-color: #ff989d;
604
+ color: #270204;
605
+ border-top: 10px solid #e4010c;
606
+ }
607
+
608
+
609
+ .Admonition p, .Admonition.Important p, .Admonition.Warning p {
583
610
  margin: 0;
584
611
  }
585
- }
586
612
 
587
613
 
588
614
  /*
@@ -591,6 +617,7 @@ p.Biblio, p.NormRef {
591
617
 
592
618
  .example {
593
619
  background-color: #e1eef1;
620
+ color: #424242;
594
621
  padding: 1.2em;
595
622
  margin: 2em 0 1em 0;
596
623
  padding-left: 2em;
@@ -603,11 +630,34 @@ p.Biblio, p.NormRef {
603
630
  margin-left:-1.5em;
604
631
  }
605
632
 
606
- .recommend {
607
- background-color: #ccffcc;
608
- padding: 1.2em;
609
- margin: 2em 0 1em 0;
610
- }
633
+ .example .Sourcecode {
634
+ background: none;
635
+ }
636
+
637
+ .recommend, .recommend .example_label {
638
+ background-color: #f8ffbd;
639
+ }
640
+
641
+ .recommend .example_label {
642
+ font-weight: bold;
643
+ }
644
+
645
+ .permission, .permission .example_label {
646
+ background-color: #cdfdbe;
647
+ }
648
+
649
+ .permission .example_label {
650
+ font-weight: bold;
651
+ }
652
+
653
+ .require, .require .example_label {
654
+ background-color: #d3e6ff;
655
+ }
656
+
657
+ .require .example_label {
658
+ font-weight: bold;
659
+ }
660
+
611
661
 
612
662
 
613
663
  /*
@@ -617,6 +667,7 @@ p.Biblio, p.NormRef {
617
667
  table {
618
668
  border-collapse: collapse;
619
669
  width: 100%;
670
+ color: #010d16;
620
671
  font-weight: 300;
621
672
  margin: 1em 0 2em 0;
622
673
  margin-left: auto;
@@ -625,10 +676,17 @@ table {
625
676
  }
626
677
 
627
678
  table, th, td {
628
- border: 1px solid black;
679
+ border: none!important;
629
680
  font-size: 0.95em;
630
681
  }
631
682
 
683
+ tr:nth-child(even) {background: #f1f8ff}
684
+ tr:nth-child(odd) {background: #cfe6fd}
685
+
686
+ thead tr th {
687
+ background-color: #5d99d6;
688
+ }
689
+
632
690
  td, th {
633
691
  padding: 1em;
634
692
  }
@@ -662,7 +720,7 @@ a.footnote-number {
662
720
  */
663
721
 
664
722
  .Quote {
665
- background-color: #f6f6f6;
723
+ background-color: #e1eef1;
666
724
  font-style: italic;
667
725
  width: 80%;
668
726
  padding: 1.5em;
@@ -756,9 +814,10 @@ h2 p {
756
814
  }
757
815
 
758
816
  .wrapper-top {
759
- background: linear-gradient(135deg, #00335b, #00335b, #93c0d6);
817
+ background: rgb(0,51,91);
818
+ background: linear-gradient(130deg, rgba(0,51,91,1) 45%, rgba(241,248,255,1) 100%);
760
819
  color: #ffffff;
761
- padding: 2em 0;
820
+ padding: 5em 0;
762
821
  width: 100%;
763
822
  }
764
823
 
@@ -770,43 +829,72 @@ h2 p {
770
829
  position: absolute;
771
830
  }
772
831
 
832
+ .coverpage-metadata {
833
+ margin-top: 35px;
834
+ padding-top: 15px;
835
+ margin-right: 25px;
836
+ border-top: solid 1px white;
837
+ }
838
+
773
839
  .coverpage-metadata,
774
840
  .coverpage-alt-formats {
775
- line-height: 1.5em;
776
- padding: 0 1em 1em 1em;
777
- text-align: right;
841
+ font-size: 12px;
842
+ font-family: $headerfont;
843
+ margin-left: 1em;
844
+ text-align: left;
778
845
  }
779
846
 
780
- .coverpage-metadata > span {
847
+ .coverpage-metadata span,
848
+ .coverpage-alt-formats span {
781
849
  display: block;
782
- text-align: right;
850
+ text-align: left;
783
851
  }
784
852
 
785
- .coverpage-alt-formats > span {
786
- display: inline-block;
787
- text-align: right;
853
+ .coverpage-metadata .value,
854
+ .coverpage-alt-formats .value {
855
+ font-size: 15px;
856
+ margin-bottom: 15px;
857
+ }
858
+ .coverpage-metadata .label,
859
+ .coverpage-alt-formats .label {
860
+ font-size: 12px;
861
+ padding:0;
862
+ }
863
+ .coverpage-alt-formats span {
864
+ display: inline;
865
+ text-align: left;
788
866
  }
789
867
 
790
- .coverpage-metadata a,
791
- .coverpage-alt-formats a,
792
- .coverpage-metadata a:visited,
793
- .coverpage-alt-formats a:visited {
794
- color: #fff;
868
+ .coverpage-metadata span a,
869
+ .coverpage-alt-formats span a {
870
+ color: white;
871
+ }
872
+ .coverpage-alt-formats span a {
873
+ padding-right: 5px;
874
+ }
875
+ .coverpage-metadata span a:hover,
876
+ .coverpage-alt-formats span a:hover {
795
877
  text-decoration: underline;
878
+ background: none;
879
+ box-shadow: none !important;
880
+ font-weight: 400;
796
881
  }
797
882
 
798
-
799
883
  .coverpage-title {
800
884
  padding-bottom: 0.5em;
801
885
  font-family: $headerfont;
802
- font-size: 2.3em;
803
- line-height: 1.5em;
804
886
  font-weight: 100;
805
887
  padding-left: 1em;
806
888
  padding-right: 1em;
807
889
  text-transform: uppercase;
808
890
  }
809
891
 
892
+ .coverpage-title span {
893
+ font-family: $headerfont;
894
+ font-size: 1.8em;
895
+ line-height: 1;
896
+ }
897
+
810
898
  .WordSection11 {
811
899
  padding: 0 2em 0 3em;
812
900
  }
@@ -818,12 +906,10 @@ h2 p {
818
906
  padding: 0 3em 0 6em;
819
907
  }
820
908
 
821
-
822
909
  .zzSTDTitle1, .MsoCommentText {
823
910
  display: none;
824
911
  }
825
912
 
826
-
827
913
  .coverpage {
828
914
  text-align: center;
829
915
  padding-left: 1.5em;
@@ -833,6 +919,7 @@ h2 p {
833
919
  font-family: $bodyfont;
834
920
  text-transform: none;
835
921
  font-weight: 300;
922
+ margin-left: 1em;
836
923
  }
837
924
 
838
925
  .coverpage-tc-name {
@@ -846,6 +933,7 @@ h2 p {
846
933
  */
847
934
 
848
935
  .coverpage-doc-identity {
936
+ font-size: 2em;
849
937
  line-height: 2em;
850
938
  }
851
939
 
@@ -854,13 +942,32 @@ h2 p {
854
942
  }
855
943
 
856
944
  .coverpage-stage-block {
857
- font-family: $bodyfont;
945
+ font-family: $headerfont;
858
946
  font-weight: 600;
859
947
  font-size: 1.25em;
860
948
  margin: 2em 0em 2em 0em;
861
949
  text-transform: uppercase;
862
950
  }
863
951
 
952
+ .authors {
953
+ margin-top: 2em;
954
+ }
955
+
956
+ .authors span{
957
+ display: block;
958
+ line-height: 2;
959
+ }
960
+
961
+ .authors span.roletag {
962
+ display: inline-block;
963
+ font-size: 12px;
964
+ color: #00335b;
965
+ background-color: white;
966
+ padding: 2px 5px;
967
+ margin-left: 7px;
968
+ border-radius: 5px;
969
+ }
970
+
864
971
  /*
865
972
  4.3 Draft Warning
866
973
  */
@@ -918,7 +1025,7 @@ To top button
918
1025
  font-size: 12px;
919
1026
  border: none;
920
1027
  outline: none;
921
- background-color: #1f8ca0;
1028
+ background-color: #00335b;
922
1029
  opacity: 0.15;
923
1030
  color: white;
924
1031
  cursor: pointer;
@@ -141,7 +141,7 @@ page;mso-element-left:39.9pt;mso-element-top:693.25pt;mso-height-rule:exactly'>
141
141
  lang=EN-GB style='font-size:10.0pt;mso-color-alt:windowtext;font-weight:normal'>Document
142
142
  type:&nbsp;&nbsp;&nbsp;<span style='mso-tab-count:1'>         </span><span
143
143
  class=SpellE>OGC</span><sup>®</sup> </span><span lang=EN-GB
144
- style='font-size:10.0pt;font-weight:normal'>{{ doctype }}}</span><span lang=EN-GB style='font-size:10.0pt;
144
+ style='font-size:10.0pt;font-weight:normal'>{{ doctype }}</span><span lang=EN-GB style='font-size:10.0pt;
145
145
  mso-color-alt:windowtext;font-weight:normal'><o:p></o:p></span></p>
146
146
 
147
147
  {% if docsubstatus %}
@@ -1074,6 +1074,107 @@ p.Tablebody, li.Tablebody, div.Tablebody
1074
1074
  margin-left:162.0pt;
1075
1075
  text-indent:-18.0pt;}
1076
1076
 
1077
+ p.ListContLevel1, li.ListContLevel1, div.ListContLevel1
1078
+ {mso-style-priority:34;
1079
+ margin-top:0cm;
1080
+ margin-left:18.0pt;
1081
+ margin-right:0cm;
1082
+ margin-bottom:12.0pt;
1083
+ mso-pagination:widow-orphan;
1084
+ font-size:11.0pt;
1085
+ font-family:$bodyfont;
1086
+ mso-ansi-language:EN-AU;
1087
+ mso-fareast-language:EN-US;}
1088
+ p.ListContLevel2, li.ListContLevel2, div.ListContLevel2
1089
+ {mso-style-priority:34;
1090
+ margin-top:0cm;
1091
+ margin-left:36.0pt;
1092
+ margin-right:0cm;
1093
+ margin-bottom:12.0pt;
1094
+ mso-pagination:widow-orphan;
1095
+ font-size:11.0pt;
1096
+ font-family:$bodyfont;
1097
+ mso-ansi-language:EN-AU;
1098
+ mso-fareast-language:EN-US;}
1099
+ p.ListContLevel3, li.ListContLevel3, div.ListContLevel3
1100
+ {mso-style-priority:34;
1101
+ margin-top:0cm;
1102
+ margin-left:54.0pt;
1103
+ margin-right:0cm;
1104
+ margin-bottom:12.0pt;
1105
+ mso-pagination:widow-orphan;
1106
+ font-size:11.0pt;
1107
+ font-family:$bodyfont;
1108
+ mso-ansi-language:EN-AU;
1109
+ mso-fareast-language:EN-US;}
1110
+ p.ListContLevel4, li.ListContLevel4, div.ListContLevel4
1111
+ {mso-style-priority:34;
1112
+ margin-top:0cm;
1113
+ margin-left:72.0pt;
1114
+ margin-right:0cm;
1115
+ margin-bottom:12.0pt;
1116
+ mso-pagination:widow-orphan;
1117
+ font-size:11.0pt;
1118
+ font-family:$bodyfont;
1119
+ mso-ansi-language:EN-AU;
1120
+ mso-fareast-language:EN-US;}
1121
+ p.ListContLevel5, li.ListContLevel5, div.ListContLevel5
1122
+ {mso-style-priority:34;
1123
+ margin-top:0cm;
1124
+ margin-left:90.0pt;
1125
+ margin-right:0cm;
1126
+ margin-bottom:12.0pt;
1127
+ mso-pagination:widow-orphan;
1128
+ font-size:11.0pt;
1129
+ font-family:$bodyfont;
1130
+ mso-ansi-language:EN-AU;
1131
+ mso-fareast-language:EN-US;}
1132
+ p.ListContLevel6, li.ListContLevel6, div.ListContLevel6
1133
+ {mso-style-priority:34;
1134
+ margin-top:0cm;
1135
+ margin-left:108.0pt;
1136
+ margin-right:0cm;
1137
+ margin-bottom:12.0pt;
1138
+ mso-pagination:widow-orphan;
1139
+ font-size:11.0pt;
1140
+ font-family:$bodyfont;
1141
+ mso-ansi-language:EN-AU;
1142
+ mso-fareast-language:EN-US;}
1143
+ p.ListContLevel7, li.ListContLevel7, div.ListContLevel7
1144
+ {mso-style-priority:34;
1145
+ margin-top:0cm;
1146
+ margin-left:126.0pt;
1147
+ margin-right:0cm;
1148
+ margin-bottom:12.0pt;
1149
+ mso-pagination:widow-orphan;
1150
+ font-size:11.0pt;
1151
+ font-family:$bodyfont;
1152
+ mso-ansi-language:EN-AU;
1153
+ mso-fareast-language:EN-US;}
1154
+ p.ListContLevel8, li.ListContLevel8, div.ListContLevel8
1155
+ {mso-style-priority:34;
1156
+ margin-top:0cm;
1157
+ margin-left:144.0pt;
1158
+ margin-right:0cm;
1159
+ margin-bottom:12.0pt;
1160
+ mso-pagination:widow-orphan;
1161
+ font-size:11.0pt;
1162
+ font-family:$bodyfont;
1163
+ mso-ansi-language:EN-AU;
1164
+ mso-fareast-language:EN-US;}
1165
+ p.ListContLevel9, li.ListContLevel9, div.ListContLevel9
1166
+ {mso-style-priority:34;
1167
+ margin-top:0cm;
1168
+ margin-left:162.0pt;
1169
+ margin-right:0cm;
1170
+ margin-bottom:12.0pt;
1171
+ mso-pagination:widow-orphan;
1172
+ font-size:11.0pt;
1173
+ font-family:$bodyfont;
1174
+ mso-ansi-language:EN-AU;
1175
+ mso-fareast-language:EN-US;}
1176
+
1177
+
1077
1178
  table.MsoNormalTable
1078
1179
  {mso-style-name:"Table Normal";
1079
1180
  mso-tstyle-rowband-size:0;
@@ -19,7 +19,7 @@ module IsoDoc
19
19
  def default_fonts(options)
20
20
  {
21
21
  bodyfont: (options[:script] == "Hans" ? '"SimSun",serif' : '"Overpass",sans-serif'),
22
- headerfont: (options[:script] == "Hans" ? '"SimHei",sans-serif' : '"Overpass",sans-serif'),
22
+ headerfont: (options[:script] == "Hans" ? '"SimHei",sans-serif' : '"Teko",sans-serif'),
23
23
  monospacefont: '"Space Mono",monospace'
24
24
  }
25
25
  end
@@ -46,7 +46,8 @@ module IsoDoc
46
46
  <script type="text/javascript" src="https://cdn.rawgit.com/jgallen23/toc/0.3.2/dist/toc.min.js"></script>
47
47
 
48
48
  <!--Google fonts-->
49
- <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i|Space+Mono:400,700" rel="stylesheet">
49
+ <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i|Space+Mono:400,700" rel="stylesheet" />
50
+ <link href="https://fonts.googleapis.com/css?family=Teko:300,400,500" rel="stylesheet">
50
51
  <link href="https://fonts.googleapis.com/css?family=Overpass:300,300i,600,900" rel="stylesheet">
51
52
  <!--Font awesome import for the link icon-->
52
53
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/solid.css" integrity="sha384-rdyFrfAIC05c5ph7BKz3l5NG5yEottvO/DQ0dCrwD8gzeQDjYBHNr1ucUpQuljos" crossorigin="anonymous">
@@ -55,6 +56,15 @@ module IsoDoc
55
56
  HEAD
56
57
  end
57
58
 
59
+ def admonition_class(node)
60
+ case node["type"]
61
+ when "important" then "Admonition.Important"
62
+ when "warning" then "Admonition.Warning"
63
+ else
64
+ "Admonition"
65
+ end
66
+ end
67
+
58
68
  def make_body(xml, docxml)
59
69
  body_attr = { lang: "EN-US", link: "blue", vlink: "#954F72", "xml:lang": "EN-US", class: "container" }
60
70
  xml.body **body_attr do |body|
@@ -205,16 +215,7 @@ module IsoDoc
205
215
  def example_parse(node, out)
206
216
  name = node.at(ns("./name"))
207
217
  sourcecode_name_parse(node, out, name) if name
208
- out.table **example_table_attr(node) do |t|
209
- t.tr do |tr|
210
- tr.td **EXAMPLE_TBL_ATTR do |td|
211
- td << example_label(node)
212
- end
213
- tr.td **{ valign: "top", class: "example" } do |td|
214
- node.children.each { |n| parse(n, td) unless n.name == "name" }
215
- end
216
- end
217
- end
218
+ super
218
219
  end
219
220
 
220
221
  def error_parse(node, out)
@@ -17,7 +17,7 @@ module IsoDoc
17
17
  def default_fonts(options)
18
18
  {
19
19
  bodyfont: (options[:script] == "Hans" ? '"SimSun",serif' : '"Overpass",sans-serif'),
20
- headerfont: (options[:script] == "Hans" ? '"SimHei",sans-serif' : '"Overpass",sans-serif'),
20
+ headerfont: (options[:script] == "Hans" ? '"SimHei",sans-serif' : '"Teko",sans-serif'),
21
21
  monospacefont: '"Space Mono",monospace'
22
22
  }
23
23
  end
@@ -44,8 +44,9 @@ module IsoDoc
44
44
  <script type="text/javascript" src="https://cdn.rawgit.com/jgallen23/toc/0.3.2/dist/toc.min.js"></script>
45
45
 
46
46
  <!--Google fonts-->
47
- <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i|Space+Mono:400,700" rel="stylesheet">
48
- <link href="https://fonts.googleapis.com/css?family=Overpass:300,300i,600,900" rel="stylesheet">
47
+ <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i|Space+Mono:400,700" rel="stylesheet" />
48
+ <link href="https://fonts.googleapis.com/css?family=Overpass:300,300i,600,900" rel="stylesheet" />
49
+ <link href="https://fonts.googleapis.com/css?family=Teko:300,400,500" rel="stylesheet">
49
50
  <!--Font awesome import for the link icon-->
50
51
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/solid.css" integrity="sha384-rdyFrfAIC05c5ph7BKz3l5NG5yEottvO/DQ0dCrwD8gzeQDjYBHNr1ucUpQuljos" crossorigin="anonymous">
51
52
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/fontawesome.css" integrity="sha384-u5J7JghGz0qUrmEsWzBQkfvc8nK3fUT7DCaQzNQ+q4oEXhGSx+P2OqjWsfIRB8QT" crossorigin="anonymous">
@@ -53,6 +54,15 @@ module IsoDoc
53
54
  HEAD
54
55
  end
55
56
 
57
+ def admonition_class(node)
58
+ case node["type"]
59
+ when "important" then "Admonition.Important"
60
+ when "warning" then "Admonition.Warning"
61
+ else
62
+ "Admonition"
63
+ end
64
+ end
65
+
56
66
  def make_body(xml, docxml)
57
67
  body_attr = { lang: "EN-US", link: "blue", vlink: "#954F72", "xml:lang": "EN-US", class: "container" }
58
68
  xml.body **body_attr do |body|
@@ -71,8 +81,8 @@ module IsoDoc
71
81
  t << "#{get_anchors[annex['id']][:label]} "
72
82
  t.br
73
83
  t.b do |b|
74
- name&.children&.each { |c2| parse(c2, b) }
75
- end
84
+ name&.children&.each { |c2| parse(c2, b) }
85
+ end
76
86
  end
77
87
  end
78
88
 
@@ -150,7 +160,7 @@ module IsoDoc
150
160
 
151
161
  def submitters(docxml, out)
152
162
  f = docxml.at(ns("//submitters")) || return
153
- out.div **{ class: "Section3" } do |div|
163
+ out.div **{ class: "Section3" } do |div|
154
164
  clause_name(get_anchors[f['id']][:label], "Submitters", div, class: "IntroTitle")
155
165
  f.elements.each { |e| parse(e, div) unless e.name == "title" }
156
166
  end
@@ -181,7 +191,7 @@ module IsoDoc
181
191
  end
182
192
  end
183
193
 
184
- def abstract(isoxml, out)
194
+ def abstract(isoxml, out)
185
195
  f = isoxml.at(ns("//preface/abstract")) || return
186
196
  @prefacenum += 1
187
197
  page_break(out)
@@ -204,16 +214,7 @@ module IsoDoc
204
214
  def example_parse(node, out)
205
215
  name = node.at(ns("./name"))
206
216
  sourcecode_name_parse(node, out, name) if name
207
- out.table **example_table_attr(node) do |t|
208
- t.tr do |tr|
209
- tr.td **EXAMPLE_TBL_ATTR do |td|
210
- td << example_label(node)
211
- end
212
- tr.td **{ valign: "top", class: "example" } do |td|
213
- node.children.each { |n| parse(n, td) unless n.name == "name" }
214
- end
215
- end
216
- end
217
+ super
217
218
  end
218
219
 
219
220
  def error_parse(node, out)
@@ -239,7 +240,7 @@ module IsoDoc
239
240
  end
240
241
  end
241
242
 
242
- def requirement_anchor_names(docxml)
243
+ def requirement_anchor_names(docxml)
243
244
  docxml.xpath(ns("//requirement")).each_with_index do |x, i|
244
245
  @anchors[x["id"]] = anchor_struct(i+1, nil, "Requirement", "requirement")
245
246
  end
@@ -302,7 +303,7 @@ module IsoDoc
302
303
  end
303
304
  end
304
305
 
305
- def requirement_label(node)
306
+ def requirement_label(node)
306
307
  n = get_anchors[node["id"]]
307
308
  return "Requirement" if n.nil? || n[:label].empty?
308
309
  l10n("#{"Requirement"} #{n[:label]}")
@@ -335,11 +336,11 @@ module IsoDoc
335
336
  @prefacenum += 1 if d.at(ns("//keyword"))
336
337
  preface_names(d.at(ns("//foreword")))
337
338
  #preface_names(d.at(ns("//introduction")))
338
- @prefacenum += 1 if d.at(ns(SUBMITTINGORGS))
339
+ @prefacenum += 1 if d.at(ns(SUBMITTINGORGS))
339
340
  preface_names(d.at(ns("//submitters")))
340
341
  sequential_asset_names(d.xpath(ns("//preface/abstract | //foreword | //introduction | //submitters")))
341
342
  n = section_names(d.at(ns("//clause[title = 'Scope']")), 0, 1)
342
- n = section_names(d.at(ns("//clause[title = 'Conformance']")), n, 1)
343
+ n = section_names(d.at(ns("//clause[title = 'Conformance']")), n, 1)
343
344
  n = section_names(d.at(ns(
344
345
  "//references[title = 'Normative References' or title = 'Normative references']")), n, 1)
345
346
  n = section_names(d.at(ns("//sections/terms | "\
@@ -195,16 +195,7 @@ module IsoDoc
195
195
  def example_parse(node, out)
196
196
  name = node.at(ns("./name"))
197
197
  sourcecode_name_parse(node, out, name) if name
198
- out.table **example_table_attr(node) do |t|
199
- t.tr do |tr|
200
- tr.td **EXAMPLE_TBL_ATTR do |td|
201
- td << example_label(node)
202
- end
203
- tr.td **{ valign: "top", class: "example" } do |td|
204
- node.children.each { |n| parse(n, td) unless n.name == "name" }
205
- end
206
- end
207
- end
198
+ super
208
199
  end
209
200
 
210
201
  def error_parse(node, out)
@@ -217,7 +208,7 @@ module IsoDoc
217
208
  end
218
209
  end
219
210
 
220
- def anchor_names(docxml)
211
+ def anchor_names(docxml)
221
212
  super
222
213
  recommendation_anchor_names(docxml)
223
214
  requirement_anchor_names(docxml)
@@ -263,7 +254,7 @@ module IsoDoc
263
254
  out.table **recommend_table_attr(node) do |t|
264
255
  t.tr do |tr|
265
256
  tr.td **REQ_TBL_ATTR do |td|
266
- td << recommendation_label(node)
257
+ recommendation_label(node, td)
267
258
  end
268
259
  tr.td **{ valign: "top", class: "recommend" } do |td|
269
260
  recommend_name_parse(node, td)
@@ -273,17 +264,20 @@ module IsoDoc
273
264
  end
274
265
  end
275
266
 
276
- def recommendation_label(node)
267
+ def recommendation_label(node, out)
277
268
  n = get_anchors[node["id"]]
278
- return "Recommendation" if n.nil? || n[:label].empty?
279
- l10n("#{"Recommendation"} #{n[:label]}")
269
+ label = (n.nil? || n[:label].empty?) ?
270
+ "Recommendation" : l10n("#{"Recommendation"} #{n[:label]}")
271
+ out.p **{class: "RecommendationLabel" } do |p|
272
+ p << label
273
+ end
280
274
  end
281
275
 
282
276
  def requirement_parse(node, out)
283
277
  out.table **recommend_table_attr(node) do |t|
284
278
  t.tr do |tr|
285
279
  tr.td **REQ_TBL_ATTR do |td|
286
- td << requirement_label(node)
280
+ requirement_label(node, td)
287
281
  end
288
282
  tr.td **{ valign: "top", class: "recommend" } do |td|
289
283
  recommend_name_parse(node, td)
@@ -293,17 +287,20 @@ module IsoDoc
293
287
  end
294
288
  end
295
289
 
296
- def requirement_label(node)
290
+ def requirement_label(node)
297
291
  n = get_anchors[node["id"]]
298
- return "Requirement" if n.nil? || n[:label].empty?
299
- l10n("#{"Requirement"} #{n[:label]}")
292
+ label = (n.nil? || n[:label].empty?) ?
293
+ "Requirement" : l10n("#{"Requirement"} #{n[:label]}")
294
+ out.p **{class: "RecommendationLabel" } do |p|
295
+ p << label
296
+ end
300
297
  end
301
298
 
302
299
  def permission_parse(node, out)
303
300
  out.table **recommend_table_attr(node) do |t|
304
301
  t.tr do |tr|
305
302
  tr.td **REQ_TBL_ATTR do |td|
306
- td << permission_label(node)
303
+ permission_label(node, td)
307
304
  end
308
305
  tr.td **{ valign: "top", class: "recommend" } do |td|
309
306
  recommend_name_parse(node, td)
@@ -315,14 +312,17 @@ module IsoDoc
315
312
 
316
313
  def permission_label(node)
317
314
  n = get_anchors[node["id"]]
318
- return "Permission" if n.nil? || n[:label].empty?
319
- l10n("#{"Permission"} #{n[:label]}")
315
+ label = (n.nil? || n[:label].empty?) ?
316
+ "Permission" : l10n("#{"Permission"} #{n[:label]}")
317
+ out.p **{class: "RecommendationLabel" } do |p|
318
+ p << label
319
+ end
320
320
  end
321
321
 
322
322
  def initial_anchor_names(d)
323
323
  @prefacenum = 0
324
324
  preface_names(d.at(ns("//preface/abstract")))
325
- @prefacenum += 1 if d.at(ns("//keyword"))
325
+ @prefacenum += 1 if d.at(ns("//keyword"))
326
326
  preface_names(d.at(ns("//foreword")))
327
327
  #preface_names(d.at(ns("//introduction")))
328
328
  @prefacenum += 1 if d.at(ns(SUBMITTINGORGS))
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ogc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-21 00:00:00.000000000 Z
11
+ date: 2019-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor