metanorma-ogc 1.0.4 → 1.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: 868dc6938ff146d001b5510963acea058cefe084d7a0b9d68e9d78916a6f122c
4
- data.tar.gz: 4fce9933efebce96fb0b6c034c2297aeba957c1e7ad490f396f0f12dd04d415b
3
+ metadata.gz: a75c31de8888444e5fd9973771e9a9c24ac1541eae103f8a55f02605d4837f91
4
+ data.tar.gz: abf157ea956927268720b5582cfa0fb6d8986b45c1041bafc783dcf28d9c6b84
5
5
  SHA512:
6
- metadata.gz: 3d15e4958895e014be50a293e945fc2abb0b21548803621663fde417235de6e4719c221689338e4e7de806dbfd7d94f5a08d32dc4dd8834343e8610638a297dc
7
- data.tar.gz: 1f9566897b6ae34a99077f0ce09d5c8b36ab73ecb2e47ddb21aa3cdc75cd606e851243741641419f5ae9b3878798f45b59f20191ac015b0662750d33c8cc5b00
6
+ metadata.gz: 539fc9469c898441e23cf956da90c9f5c443ed6db504b3250e2ee9b5341addf00b2ba884aaacecd621852b4b66ddfd02598f4b7ce40f7111a85c77d0da054c9a
7
+ data.tar.gz: 3bb45e8622ff63c69fd3f1024b8d4c75411750bd7f25eac53d777c21caaea10852d9776861d6387dbe76442b093b503d503ff9c76e90c7c8d36cfb46a3425254
@@ -26,13 +26,6 @@ jobs:
26
26
  run: |
27
27
  sudo gem install bundler --force
28
28
  bundle install --jobs 4 --retry 3
29
- - name: Use Node
30
- uses: actions/setup-node@v1
31
- with:
32
- node-version: '8'
33
- - name: Install Puppeteer
34
- run: |
35
- npm install -g puppeteer
36
29
  - name: Run specs
37
30
  run: |
38
31
  bundle exec rake
@@ -26,18 +26,11 @@ jobs:
26
26
  run: |
27
27
  gem install bundler
28
28
  bundle install --jobs 4 --retry 3
29
- - name: Use Node
30
- uses: actions/setup-node@v1
31
- with:
32
- node-version: '8'
33
- - name: Install Puppeteer
34
- run: |
35
- npm install -g puppeteer
36
29
  - name: Run specs
37
30
  run: |
38
31
  bundle exec rake
39
32
  - name: Trigger dependent repositories
40
- if: github.ref == 'refs/heads/master'
33
+ if: github.ref == 'refs/heads/master' && matrix.ruby == '2.6'
41
34
  env:
42
35
  GH_USERNAME: ${{ secrets.PAT_USERNAME }}
43
36
  GH_ACCESS_TOKEN: ${{ secrets.PAT_TOKEN }}
@@ -46,5 +39,5 @@ jobs:
46
39
  [[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
47
40
  for repo in $DEPENDENT_REPOS
48
41
  do
49
- sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY
42
+ sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY "{ \"ref\": \"${GITHUB_REF}\" }"
50
43
  done
@@ -27,15 +27,7 @@ jobs:
27
27
  run: |
28
28
  gem install bundler
29
29
  bundle config --local path vendor/bundle
30
- bundle update
31
30
  bundle install --jobs 4 --retry 3
32
- - name: Use Node
33
- uses: actions/setup-node@v1
34
- with:
35
- node-version: '8'
36
- - name: Install Puppeteer
37
- run: |
38
- npm install -g puppeteer
39
31
  - name: Run specs
40
32
  run: |
41
33
  bundle exec rake
@@ -49,11 +49,17 @@
49
49
  </define>
50
50
  <define name="stage">
51
51
  <element name="stage">
52
+ <optional>
53
+ <attribute name="abbreviation"/>
54
+ </optional>
52
55
  <text/>
53
56
  </element>
54
57
  </define>
55
58
  <define name="substage">
56
59
  <element name="substage">
60
+ <optional>
61
+ <attribute name="abbreviation"/>
62
+ </optional>
57
63
  <text/>
58
64
  </element>
59
65
  </define>
@@ -452,9 +458,14 @@
452
458
  <attribute name="bibitemid">
453
459
  <data type="IDREF"/>
454
460
  </attribute>
455
- <zeroOrMore>
456
- <ref name="locality"/>
457
- </zeroOrMore>
461
+ <choice>
462
+ <zeroOrMore>
463
+ <ref name="locality"/>
464
+ </zeroOrMore>
465
+ <zeroOrMore>
466
+ <ref name="localityStack"/>
467
+ </zeroOrMore>
468
+ </choice>
458
469
  <optional>
459
470
  <ref name="date"/>
460
471
  </optional>
@@ -469,6 +480,25 @@
469
480
  <ref name="BibItemLocality"/>
470
481
  </element>
471
482
  </define>
483
+ <define name="localityStack">
484
+ <element name="localityStack">
485
+ <zeroOrMore>
486
+ <ref name="locality"/>
487
+ </zeroOrMore>
488
+ </element>
489
+ </define>
490
+ <define name="sourceLocality">
491
+ <element name="sourceLocality">
492
+ <ref name="BibItemLocality"/>
493
+ </element>
494
+ </define>
495
+ <define name="sourceLocalityStack">
496
+ <element name="sourceLocalityStack">
497
+ <zeroOrMore>
498
+ <ref name="sourceLocality"/>
499
+ </zeroOrMore>
500
+ </element>
501
+ </define>
472
502
  <define name="BibItemLocality">
473
503
  <attribute name="type">
474
504
  <ref name="LocalityType"/>
@@ -737,6 +767,8 @@
737
767
  <value>unchanged</value>
738
768
  <value>circulated</value>
739
769
  <value>adapted</value>
770
+ <value>vote-started</value>
771
+ <value>vote-ended</value>
740
772
  </choice>
741
773
  </define>
742
774
  <define name="bdate">
@@ -989,38 +1021,63 @@
989
1021
  </define>
990
1022
  <define name="DocRelationType">
991
1023
  <choice>
992
- <value>obsoletes</value>
993
- <value>obsoletedBy</value>
994
- <value>supersedes</value>
995
- <value>supersededBy</value>
996
- <value>updates</value>
997
- <value>updatedBy</value>
998
- <value>complements</value>
999
- <value>derivedFrom</value>
1000
- <value>translatedFrom</value>
1001
- <value>hasTranslation</value>
1002
- <value>adoptedFrom</value>
1003
- <value>equivalent</value>
1004
- <value>identical</value>
1005
- <value>nonequivalent</value>
1006
- <value>includedIn</value>
1007
1024
  <value>includes</value>
1008
- <value>instance</value>
1009
- <value>instanceOf</value>
1010
- <value>partOf</value>
1025
+ <value>includedIn</value>
1011
1026
  <value>hasPart</value>
1012
- <value>hasDraft</value>
1013
- <value>draftOf</value>
1027
+ <value>partOf</value>
1014
1028
  <value>merges</value>
1029
+ <value>mergedInto</value>
1015
1030
  <value>splits</value>
1016
- <value>amends</value>
1017
- <value>amendedBy</value>
1018
- <value>corrects</value>
1019
- <value>correctedBy</value>
1020
- <value>revises</value>
1021
- <value>revisedBy</value>
1031
+ <value>splitInto</value>
1032
+ <value>instance</value>
1033
+ <value>hasInstance</value>
1034
+ <value>exemplarOf</value>
1035
+ <value>hasExemplar</value>
1036
+ <value>manifestationOf</value>
1037
+ <value>hasManifestation</value>
1038
+ <value>reproductionOf</value>
1039
+ <value>hasReproduction</value>
1040
+ <value>reprintOf</value>
1041
+ <value>hasReprint</value>
1042
+ <value>expressionOf</value>
1043
+ <value>hasExpression</value>
1044
+ <value>translatedFrom</value>
1045
+ <value>hasTranslation</value>
1046
+ <value>arrangementOf</value>
1047
+ <value>hasArrangement</value>
1048
+ <value>abridgementOf</value>
1049
+ <value>hasAbridgement</value>
1050
+ <value>annotationOf</value>
1051
+ <value>hasAnnotation</value>
1052
+ <value>draftOf</value>
1053
+ <value>hasDraft</value>
1054
+ <value>editionOf</value>
1055
+ <value>hasEdition</value>
1056
+ <value>updates</value>
1057
+ <value>updatedBy</value>
1058
+ <value>derivedFrom</value>
1059
+ <value>derives</value>
1022
1060
  <value>describes</value>
1023
1061
  <value>describedBy</value>
1062
+ <value>catalogues</value>
1063
+ <value>cataloguedBy</value>
1064
+ <value>hasSuccessor</value>
1065
+ <value>successorOf</value>
1066
+ <value>adaptedFrom</value>
1067
+ <value>hasAdaptation</value>
1068
+ <value>adoptedFrom</value>
1069
+ <value>adoptedAs</value>
1070
+ <value>reviewOf</value>
1071
+ <value>hasReview</value>
1072
+ <value>commentaryOf</value>
1073
+ <value>hasCommentary</value>
1074
+ <value>related</value>
1075
+ <value>complements</value>
1076
+ <value>complementOf</value>
1077
+ <value>obsoletes</value>
1078
+ <value>obsoletedBy</value>
1079
+ <value>cited</value>
1080
+ <value>isCitedIn</value>
1024
1081
  </choice>
1025
1082
  </define>
1026
1083
  <define name="docrelation">
@@ -1028,12 +1085,30 @@
1028
1085
  <attribute name="type">
1029
1086
  <ref name="DocRelationType"/>
1030
1087
  </attribute>
1088
+ <optional>
1089
+ <element name="description">
1090
+ <ref name="FormattedString"/>
1091
+ </element>
1092
+ </optional>
1031
1093
  <element name="bibitem">
1032
1094
  <ref name="BibliographicItem"/>
1033
1095
  </element>
1034
- <zeroOrMore>
1035
- <ref name="locality"/>
1036
- </zeroOrMore>
1096
+ <choice>
1097
+ <zeroOrMore>
1098
+ <ref name="locality"/>
1099
+ </zeroOrMore>
1100
+ <zeroOrMore>
1101
+ <ref name="localityStack"/>
1102
+ </zeroOrMore>
1103
+ </choice>
1104
+ <choice>
1105
+ <zeroOrMore>
1106
+ <ref name="sourceLocality"/>
1107
+ </zeroOrMore>
1108
+ <zeroOrMore>
1109
+ <ref name="sourceLocalityStack"/>
1110
+ </zeroOrMore>
1111
+ </choice>
1037
1112
  </element>
1038
1113
  </define>
1039
1114
  <define name="version">
@@ -33,7 +33,8 @@ module Asciidoctor
33
33
  reference-model release-notes standard user-guide white-paper
34
34
  test-suite}.include? d
35
35
  @warned_doctype or
36
- @log.add("Document Attributes", nil, "'#{d}' is not a legal document type: reverting to 'standard'")
36
+ @log.add("Document Attributes", nil,
37
+ "'#{d}' is not a legal document type: reverting to 'standard'")
37
38
  @warned_doctype = true
38
39
  d = "standard"
39
40
  end
@@ -60,7 +61,7 @@ module Asciidoctor
60
61
  File.open(filename, "w") { |f| f.write(ret) }
61
62
  html_converter(node).convert filename unless node.attr("nodoc")
62
63
  word_converter(node).convert filename unless node.attr("nodoc")
63
- pdf_converter(node).convert filename unless node.attr("nodoc")
64
+ pdf_converter(node)&.convert filename unless node.attr("nodoc")
64
65
  end
65
66
  @log.write(@localdir + @filename + ".err") unless @novalid
66
67
  @files_to_delete.each { |f| FileUtils.rm f }
@@ -129,6 +130,7 @@ module Asciidoctor
129
130
  end
130
131
 
131
132
  def pdf_converter(node)
133
+ return nil if node.attr("no-pdf")
132
134
  IsoDoc::Ogc::PdfConvert.new(html_extract_attributes(node))
133
135
  end
134
136
 
@@ -303,8 +303,23 @@
303
303
  <ref name="paragraph"/>
304
304
  </element>
305
305
  </define>
306
+ <define name="TextElement" combine="choice">
307
+ <ref name="concept"/>
308
+ </define>
306
309
  </include>
307
310
  <!-- end overrides -->
311
+ <define name="concept">
312
+ <element name="concept">
313
+ <optional>
314
+ <attribute name="term"/>
315
+ </optional>
316
+ <choice>
317
+ <ref name="eref"/>
318
+ <ref name="xref"/>
319
+ <ref name="termref"/>
320
+ </choice>
321
+ </element>
322
+ </define>
308
323
  <define name="BasicBlock" combine="choice">
309
324
  <choice>
310
325
  <ref name="requirement"/>
@@ -911,7 +926,10 @@
911
926
  </define>
912
927
  <define name="origin">
913
928
  <element name="origin">
914
- <ref name="erefType"/>
929
+ <choice>
930
+ <ref name="erefType"/>
931
+ <ref name="termref"/>
932
+ </choice>
915
933
  </element>
916
934
  </define>
917
935
  <define name="modification">
@@ -919,6 +937,15 @@
919
937
  <ref name="paragraph"/>
920
938
  </element>
921
939
  </define>
940
+ <define name="termref">
941
+ <element name="termref">
942
+ <attribute name="base"/>
943
+ <attribute name="target"/>
944
+ <optional>
945
+ <text/>
946
+ </optional>
947
+ </element>
948
+ </define>
922
949
  <define name="structuredidentifier">
923
950
  <element name="structuredidentifier">
924
951
  <optional>
@@ -75,10 +75,6 @@
75
75
  <value>profile</value>
76
76
  <value>profile-with-extension</value>
77
77
  <value>general</value>
78
- <value>encoding</value>
79
- <value>extension</value>
80
- <value>profile</value>
81
- <value>profile-with-extension</value>
82
78
  </choice>
83
79
  </element>
84
80
  </define>
@@ -95,7 +95,8 @@
95
95
 
96
96
  <div class="docstage-box">
97
97
  <table>
98
- <tr><th>Document type:</th><th>OGC {{doctype}}</th></tr>
98
+ <tr><td>Document number:</td><td>{{docnumber}}</td></tr>
99
+ <tr><td>Document type:</td><td>OGC {{doctype}}</td></tr>
99
100
  <tr><td align="right">Document subtype:</td><td align="right">{{docsubtype}}</td></tr>
100
101
  <tr><td align="right">Document stage:</td><td align="right">{{stage}}</td></tr>
101
102
  <tr><td align="right">Document language:</td><td align="right">{{doclanguage}}</td></tr>
@@ -1,24 +1,8 @@
1
1
  <script>
2
- //TOC generation
3
- $('#toc').toc({
4
- 'selectors': toclevel(), //elements to use as headings
5
- 'container': 'main', //element to find all selectors in
6
- 'smoothScrolling': true, //enable or disable smooth scrolling on click
7
- 'prefix': 'toc', //prefix for anchor tags and class names
8
- 'onHighlight': function(el) {}, //called when a new section is highlighted
9
- 'highlightOnScroll': true, //add class to heading that is currently in focus
10
- 'highlightOffset': 100, //offset to trigger the next headline
11
- 'anchorName': function(i, heading, prefix) { //custom function for anchor name
12
- return prefix+i;
13
- },
14
- 'headerText': function(i, heading, $heading) { //custom function building the header-item text
15
- return $heading.text();
16
- },
17
- 'itemClass': function(i, heading, $heading, prefix) { // custom function for item class
18
- return $heading[0].tagName.toLowerCase();
19
- }
20
- });
21
-
2
+ $("#toc").on('click', 'li', function(e) {
3
+ $(this).parent().find('li.toc-active').removeClass('toc-active');
4
+ $(this).addClass('toc-active');
5
+ });
22
6
  </script>
23
7
 
24
8
  <script>
@@ -36,7 +36,7 @@ style='mso-no-proof:yes;font-size:10.0pt'>Editor: {{ editors | join: ", " }}</sp
36
36
  {% endif %}
37
37
 
38
38
  <p class="MsoNormal" align="center" style='text-align:center;line-height:18.0pt;margin-bottom:0.0pt'><b
39
- style='mso-bidi-font-weight:normal'><span lang="EN-GB" style='font-size:24.0pt'>OGC {{ doctitle }}</span>
39
+ style='mso-bidi-font-weight:normal'><span lang="EN-GB" style='font-size:24.0pt'>{{ doctitle }}</span>
40
40
  </b></p>
41
41
 
42
42
  <p class="MsoNormal" style='margin-top:100.0pt'><span lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
@@ -55,6 +55,17 @@ page;mso-element-left:39.9pt;mso-element-top:693.25pt;mso-height-rule:exactly'>
55
55
  <tr>
56
56
  <td valign=top align=left style='padding-top:7.1pt;padding-right:7.1pt;
57
57
  padding-bottom:7.1pt;padding-left:7.1pt'>
58
+ <p class=zzCover align=left style='margin-bottom:0cm;margin-bottom:.0001pt;
59
+ text-align:left;mso-hyphenate:none;tab-stops:99.0pt;mso-element:frame;
60
+ mso-element-frame-hspace:7.1pt;mso-element-frame-vspace:7.1pt;mso-element-wrap:
61
+ auto;mso-element-anchor-vertical:page;mso-element-anchor-horizontal:page;
62
+ mso-element-left:39.9pt;mso-element-top:693.25pt;mso-height-rule:exactly'><span
63
+ lang=EN-GB style='font-size:10.0pt;mso-color-alt:windowtext;font-weight:normal'>Document
64
+ number:&nbsp;&nbsp;&nbsp;<span style='mso-tab-count:1'>         </span><span
65
+ class=SpellE><span lang=EN-GB
66
+ style='font-size:10.0pt;font-weight:normal'>{{ docnumber }}</span><span lang=EN-GB style='font-size:10.0pt;
67
+ mso-color-alt:windowtext;font-weight:normal'><o:p></o:p></span></p>
68
+
58
69
  <p class=zzCover align=left style='margin-bottom:0cm;margin-bottom:.0001pt;
59
70
  text-align:left;mso-hyphenate:none;tab-stops:99.0pt;mso-element:frame;
60
71
  mso-element-frame-hspace:7.1pt;mso-element-frame-vspace:7.1pt;mso-element-wrap:
@@ -66,7 +77,6 @@ page;mso-element-left:39.9pt;mso-element-top:693.25pt;mso-height-rule:exactly'>
66
77
  style='font-size:10.0pt;font-weight:normal'>{{ doctype }}</span><span lang=EN-GB style='font-size:10.0pt;
67
78
  mso-color-alt:windowtext;font-weight:normal'><o:p></o:p></span></p>
68
79
 
69
- {% if docsubstatus %}
70
80
  <p class=zzCover align=left style='margin-bottom:0cm;margin-bottom:.0001pt;
71
81
  text-align:left;mso-hyphenate:none;tab-stops:99.0pt;mso-element:frame;
72
82
  mso-element-frame-hspace:7.1pt;mso-element-frame-vspace:7.1pt;mso-element-wrap:
@@ -74,7 +84,6 @@ page;mso-element-left:39.9pt;mso-element-top:693.25pt;mso-height-rule:exactly'>
74
84
  mso-element-left:39.9pt;mso-element-top:693.25pt;mso-height-rule:exactly'><span
75
85
  lang=EN-GB style='font-size:10.0pt;mso-color-alt:windowtext;font-weight:normal'>Document
76
86
  subtype:&nbsp;&nbsp;&nbsp;<span style='mso-tab-count:1'>    </span>{{ docsubstatus }}<o:p></o:p></span></p>
77
- {% endif %}
78
87
 
79
88
  <p class=zzCover align=left style='margin-bottom:0cm;margin-bottom:.0001pt;
80
89
  text-align:left;mso-hyphenate:none;tab-stops:99.0pt;mso-element:frame;
@@ -89,7 +98,7 @@ page;mso-element-left:39.9pt;mso-element-top:693.25pt;mso-height-rule:exactly'>
89
98
  auto;mso-element-anchor-vertical:page;mso-element-anchor-horizontal:page;
90
99
  mso-element-left:39.9pt;mso-element-top:693.25pt;mso-height-rule:exactly'><span
91
100
  lang=EN-GB style='font-size:10.0pt;mso-color-alt:windowtext;font-weight:normal'>Document
92
- language:&nbsp;<span style='mso-tab-count:1'>    </span>{{ language }}</span><span
101
+ language:&nbsp;<span style='mso-tab-count:1'>    </span>{{ doclanguage }}</span><span
93
102
  lang=EN-GB style='font-size:8.0pt;mso-bidi-font-size:10.0pt;mso-color-alt:
94
103
  windowtext'><o:p></o:p></span></p>
95
104
  </td>