metanorma-ogc 2.3.1 → 2.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/ogc/base_convert.rb +11 -11
- data/lib/isodoc/ogc/html/htmlstyle.css +34 -5
- data/lib/isodoc/ogc/html/htmlstyle.scss +3 -3
- data/lib/isodoc/ogc/html_convert.rb +15 -6
- data/lib/isodoc/ogc/metadata.rb +3 -1
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +512 -461
- data/lib/isodoc/ogc/ogc.best-practice.xsl +512 -461
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +512 -461
- data/lib/isodoc/ogc/ogc.community-practice.xsl +512 -461
- data/lib/isodoc/ogc/ogc.community-standard.xsl +512 -461
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +512 -461
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +512 -461
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +512 -461
- data/lib/isodoc/ogc/ogc.other.xsl +512 -461
- data/lib/isodoc/ogc/ogc.policy.xsl +512 -461
- data/lib/isodoc/ogc/ogc.reference-model.xsl +512 -461
- data/lib/isodoc/ogc/ogc.release-notes.xsl +512 -461
- data/lib/isodoc/ogc/ogc.standard.xsl +512 -461
- data/lib/isodoc/ogc/ogc.test-suite.xsl +512 -461
- data/lib/isodoc/ogc/ogc.user-guide.xsl +512 -461
- data/lib/isodoc/ogc/ogc.white-paper.xsl +70 -26
- data/lib/metanorma/ogc/biblio.rng +1 -1
- data/lib/metanorma/ogc/cleanup.rb +3 -5
- data/lib/metanorma/ogc/isodoc.rng +1 -1
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fc9c0bc51e804a7f6f333abdc8f18509fda087d9ad9978d1d3f09873745b4c0
|
4
|
+
data.tar.gz: 75e291d2155ff6fc9b81342b8a817485f3ae283c77c407f9dd066f9d1bf4cf2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d12c68acab1037cf2b67970d99d2c21ff0b9a67afcf1080518c4e5913ddba67df0e842ab545ca48fe0d9d03ace9ae512d7efcf8994400344fbefa43214aee385
|
7
|
+
data.tar.gz: 3d99691f22c7c95a52f00232a79eebe9e94c4be5a3938508427309d8413ab26fdc0e3d9ec40cf85b8e309481730139c62b37e25676fd56024b5e0489a58cea2d
|
@@ -14,7 +14,7 @@ module IsoDoc
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def hi_parse(node, out)
|
17
|
-
out.span
|
17
|
+
out.span class: "hi" do |e|
|
18
18
|
node.children.each { |n| parse(n, e) }
|
19
19
|
end
|
20
20
|
end
|
@@ -41,7 +41,7 @@ module IsoDoc
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def term_cleanup_merge_admitted(term)
|
44
|
-
term.xpath("./following-sibling::p[@class = 'AltTerms' or "\
|
44
|
+
term.xpath("./following-sibling::p[@class = 'AltTerms' or " \
|
45
45
|
"@class = 'DeprecatedTerms']").each do |a|
|
46
46
|
term << " "
|
47
47
|
term << a.children
|
@@ -50,20 +50,20 @@ module IsoDoc
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def deprecated_term_parse(node, out)
|
53
|
-
out.p
|
53
|
+
out.p class: "DeprecatedTerms" do |p|
|
54
54
|
node.children.each { |c| parse(c, p) }
|
55
55
|
p << " "
|
56
|
-
p.span
|
56
|
+
p.span class: "AdmittedLabel" do |s|
|
57
57
|
s << l10n(@i18n.deprecated)
|
58
58
|
end
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
62
|
def admitted_term_parse(node, out)
|
63
|
-
out.p
|
63
|
+
out.p class: "AltTerms" do |p|
|
64
64
|
node.children.each { |c| parse(c, p) }
|
65
65
|
p << " "
|
66
|
-
p.span
|
66
|
+
p.span class: "AdmittedLabel" do |s|
|
67
67
|
s << l10n(@i18n.admitted)
|
68
68
|
end
|
69
69
|
end
|
@@ -78,13 +78,13 @@ module IsoDoc
|
|
78
78
|
def example_label(node, div, name); end
|
79
79
|
|
80
80
|
def example_name_parse(_node, div, name)
|
81
|
-
div.p
|
81
|
+
div.p class: "SourceTitle", style: "text-align:center;" do |p|
|
82
82
|
name&.children&.each { |n| parse(n, p) }
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
86
|
def middle_clause(_docxml)
|
87
|
-
"//clause[parent::sections][not(@type = 'scope' or "\
|
87
|
+
"//clause[parent::sections][not(@type = 'scope' or " \
|
88
88
|
"@type = 'conformance')][not(descendant::terms)]"
|
89
89
|
end
|
90
90
|
|
@@ -111,15 +111,15 @@ module IsoDoc
|
|
111
111
|
ret = super
|
112
112
|
%w(recommendation requirement permission).include?(node["class"]) and
|
113
113
|
ret = ret.merge(class: node["type"], style:
|
114
|
-
"border-collapse:collapse;border-spacing:0;"\
|
114
|
+
"border-collapse:collapse;border-spacing:0;" \
|
115
115
|
"#{keep_style(node)}")
|
116
116
|
ret
|
117
117
|
end
|
118
118
|
|
119
119
|
def make_tr_attr(cell, row, totalrows, header, bordered)
|
120
120
|
ret = super
|
121
|
-
if cell.at("./ancestor::xmlns:table[@class = 'recommendation'] | "\
|
122
|
-
"./ancestor::xmlns:table[@class = 'requirement'] | "\
|
121
|
+
if cell.at("./ancestor::xmlns:table[@class = 'recommendation'] | " \
|
122
|
+
"./ancestor::xmlns:table[@class = 'requirement'] | " \
|
123
123
|
"./ancestor::xmlns:table[@class = 'permission']")
|
124
124
|
ret[:style] = "vertical-align:top;"
|
125
125
|
ret[:class] = "recommend"
|
@@ -124,6 +124,35 @@ a.FootnoteRef + a.FootnoteRef:before {
|
|
124
124
|
color: red;
|
125
125
|
text-decoration: line-through; }
|
126
126
|
|
127
|
+
/* code highlighting with line numbers */
|
128
|
+
table.rouge-line-table td.rouge-gutter {
|
129
|
+
-moz-user-select: none;
|
130
|
+
-ms-user-select: none;
|
131
|
+
-webkit-user-select: none;
|
132
|
+
user-select: none;
|
133
|
+
padding-right: 1em; }
|
134
|
+
|
135
|
+
table.rouge-line-table td.rouge-code {
|
136
|
+
-moz-user-select: all;
|
137
|
+
-ms-user-select: all;
|
138
|
+
-webkit-user-select: all;
|
139
|
+
user-select: all; }
|
140
|
+
|
141
|
+
table.rouge-line-table,
|
142
|
+
table.rouge-line-table th,
|
143
|
+
table.rouge-line-table td {
|
144
|
+
width: auto;
|
145
|
+
border: none;
|
146
|
+
margin: 0;
|
147
|
+
padding: 0;
|
148
|
+
font-size: 100%; }
|
149
|
+
|
150
|
+
table.rouge-line-table pre {
|
151
|
+
margin: 0;
|
152
|
+
padding: 0;
|
153
|
+
overflow-x: visible;
|
154
|
+
font-size: 100%; }
|
155
|
+
|
127
156
|
#standard-band {
|
128
157
|
background-color: #3D9970; }
|
129
158
|
|
@@ -607,7 +636,7 @@ dl {
|
|
607
636
|
|
608
637
|
@media screen and (min-width: 768px) {
|
609
638
|
nav {
|
610
|
-
|
639
|
+
margin-right: 30px; } }
|
611
640
|
|
612
641
|
@media screen and (min-width: 768px) {
|
613
642
|
#toggle {
|
@@ -848,7 +877,7 @@ table {
|
|
848
877
|
table th, table td {
|
849
878
|
padding: 1em; }
|
850
879
|
table td.header {
|
851
|
-
font-
|
880
|
+
font-weight: 400; }
|
852
881
|
table thead tr th {
|
853
882
|
background-color: #5d99d6; }
|
854
883
|
table td, table th {
|
@@ -875,7 +904,7 @@ table.modspec {
|
|
875
904
|
table.modspec th, table.modspec td {
|
876
905
|
padding: 1em; }
|
877
906
|
table.modspec td.header {
|
878
|
-
font-
|
907
|
+
font-weight: 400; }
|
879
908
|
table.modspec tr:nth-child(even) {
|
880
909
|
background: #ffffff; }
|
881
910
|
table.modspec tr:nth-child(odd) {
|
@@ -954,7 +983,7 @@ p.Biblio, p.NormRef {
|
|
954
983
|
text-align: center;
|
955
984
|
text-align: left; }
|
956
985
|
|
957
|
-
pre {
|
986
|
+
pre, .sourcecode {
|
958
987
|
font-family: {{monospacefont}};
|
959
988
|
font-variant-ligatures: none;
|
960
989
|
background-color: #f7f7f7;
|
@@ -988,7 +1017,7 @@ pre {
|
|
988
1017
|
.Admonition p, .Admonition.Important p, .Admonition.Warning p {
|
989
1018
|
margin: 0; }
|
990
1019
|
|
991
|
-
.figure, pre, .pseudocode {
|
1020
|
+
.figure, pre, .pseudocode, .sourcecode {
|
992
1021
|
background-color: #e1eef1;
|
993
1022
|
color: #424242;
|
994
1023
|
font-size: {{monospacefontsize}}; }
|
@@ -97,7 +97,7 @@ nav {
|
|
97
97
|
@include sidebarNav(#f1f8ff, 323px, 45px);
|
98
98
|
|
99
99
|
@media screen and (min-width: $bigscreenBreakpoint) {
|
100
|
-
|
100
|
+
margin-right: 30px;
|
101
101
|
}
|
102
102
|
}
|
103
103
|
|
@@ -411,7 +411,7 @@ p.Biblio, p.NormRef {
|
|
411
411
|
|
412
412
|
@include listBlock();
|
413
413
|
|
414
|
-
pre {
|
414
|
+
pre, .sourcecode {
|
415
415
|
@include sourceBlock(#f7f7f7);
|
416
416
|
|
417
417
|
font-family: $monospacefont;
|
@@ -444,7 +444,7 @@ pre {
|
|
444
444
|
}
|
445
445
|
}
|
446
446
|
|
447
|
-
.figure, pre, .pseudocode {
|
447
|
+
.figure, pre, .pseudocode, .sourcecode {
|
448
448
|
background-color: #e1eef1;
|
449
449
|
color: #424242;
|
450
450
|
font-size: $monospacefontsize;
|
@@ -36,9 +36,9 @@ module IsoDoc
|
|
36
36
|
|
37
37
|
def googlefonts
|
38
38
|
<<~HEAD.freeze
|
39
|
-
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i|Space+Mono:400,700" rel="stylesheet"
|
40
|
-
<link href="https://fonts.googleapis.com/css?family=Overpass:300,300i,600,900" rel="stylesheet"
|
41
|
-
<link href="https://fonts.googleapis.com/css?family=Teko:300,400,500" rel="stylesheet"
|
39
|
+
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i|Space+Mono:400,700" rel="stylesheet"/>
|
40
|
+
<link href="https://fonts.googleapis.com/css?family=Overpass:300,300i,600,900" rel="stylesheet"/>
|
41
|
+
<link href="https://fonts.googleapis.com/css?family=Teko:300,400,500" rel="stylesheet"/>
|
42
42
|
HEAD
|
43
43
|
end
|
44
44
|
|
@@ -46,8 +46,7 @@ module IsoDoc
|
|
46
46
|
case node["type"]
|
47
47
|
when "important" then "Admonition.Important"
|
48
48
|
when "warning" then "Admonition.Warning"
|
49
|
-
else
|
50
|
-
"Admonition"
|
49
|
+
else "Admonition"
|
51
50
|
end
|
52
51
|
end
|
53
52
|
|
@@ -62,7 +61,7 @@ module IsoDoc
|
|
62
61
|
end
|
63
62
|
|
64
63
|
def make_body3(body, docxml)
|
65
|
-
body.div
|
64
|
+
body.div class: "main-section" do |div3|
|
66
65
|
@prefacenum = 0
|
67
66
|
boilerplate docxml, div3
|
68
67
|
preface_block docxml, div3
|
@@ -87,6 +86,16 @@ module IsoDoc
|
|
87
86
|
super
|
88
87
|
end
|
89
88
|
|
89
|
+
def html_head
|
90
|
+
ret = super
|
91
|
+
k = @meta.get[:keywords].join(", ")
|
92
|
+
k.empty? or ret += "<meta name='keywords' content='#{k}'/>"
|
93
|
+
k = @meta.get[:abstract]
|
94
|
+
(k.nil? || k.empty?) or
|
95
|
+
ret += "<meta name='description' content='#{k}'/>"
|
96
|
+
ret
|
97
|
+
end
|
98
|
+
|
90
99
|
include BaseConvert
|
91
100
|
include Init
|
92
101
|
end
|
data/lib/isodoc/ogc/metadata.rb
CHANGED
@@ -47,8 +47,10 @@ module IsoDoc
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def title(isoxml, _out)
|
50
|
-
main = isoxml
|
50
|
+
main = isoxml.at(ns("//bibdata/title[@language='en']"))&.text
|
51
51
|
set(:doctitle, main)
|
52
|
+
main = isoxml.at(ns("//bibdata/abstract"))&.text&.strip&.gsub(/\s+/, " ")
|
53
|
+
set(:abstract, main)
|
52
54
|
end
|
53
55
|
|
54
56
|
def subtitle(_isoxml, _out)
|