metanorma-csd 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07a1c4c2346d23b888d601689d2bf5dbb4d5e9360f7244f04f3a0acc54dfe2ba
|
4
|
+
data.tar.gz: 810674351bc67f23e2634fa7b292967d30494dcad39d460429d6e9647bea2a7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd36d9482a4b31b8ef69d2649c1587b3d557d4f937462229bb33760f677f6dbbc1a72d3bcc41417a6b7121f00f6e2547cf1ddea5f2d2fdab674972d308105e41
|
7
|
+
data.tar.gz: dbf8ec8f9fceacbb37d6034d582810815fc76f8545d71c9174e4f4bb5b9a0c2b7d9d4b0d5c6ac9edc4f99dde654616414b8a77bd5c637ec177a87db0f8202ccd
|
@@ -37,16 +37,24 @@
|
|
37
37
|
<span>TC {{ tc }}</span>
|
38
38
|
</div>
|
39
39
|
|
40
|
-
{%
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
40
|
+
{% capture tags %}
|
41
|
+
{% for tag in contributors %}
|
42
|
+
{{ tag[0] }}
|
43
|
+
{% endfor %}
|
44
|
+
{% endcapture %}
|
45
|
+
{% assign sortedtags = tags | split:' ' | sort %}
|
46
|
+
|
47
|
+
{% for tag in sortedtags %}
|
48
|
+
<div class="coverpage-tc-name"><span>
|
49
|
+
{% if contributors[tag].size > 1 %}
|
50
|
+
{{ tag | capitalize }}s:
|
51
|
+
{% else %}
|
52
|
+
{{ tag | capitalize }}:
|
53
|
+
{% endif %}
|
54
|
+
{{ contributors[tag] | join: ", " }}
|
55
|
+
</span></div>
|
56
|
+
{% endfor %}
|
57
|
+
|
50
58
|
</div>
|
51
59
|
|
52
60
|
<div class="title-section1">
|
@@ -76,6 +76,12 @@ time, mark, audio, video {
|
|
76
76
|
|
77
77
|
code, pre, tt, kbd, samp {
|
78
78
|
font-family: $monospacefont;
|
79
|
+
font-variant-ligatures: none;
|
80
|
+
}
|
81
|
+
|
82
|
+
code *, pre *, tt *, kbd *, samp * {
|
83
|
+
font-family: $monospacefont !important;
|
84
|
+
font-variant-ligatures: none;
|
79
85
|
}
|
80
86
|
|
81
87
|
h1, h2, h3, h4, h5, h6, .h2Annex {
|
@@ -561,6 +567,7 @@ p.Biblio, p.NormRef {
|
|
561
567
|
|
562
568
|
.figure, .Sourcecode {
|
563
569
|
font-family: $monospacefont;
|
570
|
+
font-variant-ligatures: none;
|
564
571
|
background-color: #f7f7f7;
|
565
572
|
font-size: 0.8em;
|
566
573
|
line-height: 1.6em;
|
@@ -698,6 +705,7 @@ a.footnote-number {
|
|
698
705
|
|
699
706
|
.contact-info p, .contact-info a {
|
700
707
|
font-family: $monospacefont;
|
708
|
+
font-variant-ligatures: none;
|
701
709
|
font-weight: 400;
|
702
710
|
}
|
703
711
|
|
@@ -882,6 +890,7 @@ To top button
|
|
882
890
|
|
883
891
|
#myBtn {
|
884
892
|
font-family: $monospacefont;
|
893
|
+
font-variant-ligatures: none;
|
885
894
|
display: none;
|
886
895
|
position: fixed;
|
887
896
|
bottom: 20px;
|
@@ -10,16 +10,23 @@ style='mso-no-proof:yes'>{{ tc | join: "/" }}</span></p>
|
|
10
10
|
style='mso-bidi-font-weight:normal'><span lang="EN-GB" style='font-size:24.0pt'>{{ doctitle }}</span>
|
11
11
|
</b><br/><span lang="EN-GB" style='font-size:16.0pt'>{{ docsubtitle }}</span></p>
|
12
12
|
|
13
|
-
{%
|
13
|
+
{% capture tags %}
|
14
|
+
{% for tag in contributors %}
|
15
|
+
{{ tag[0] }}
|
16
|
+
{% endfor %}
|
17
|
+
{% endcapture %}
|
18
|
+
{% assign sortedtags = tags | split:' ' | sort %}
|
19
|
+
|
20
|
+
{% for tag in sortedtags %}
|
14
21
|
<p class="MsoNormal" align="center" style='text-align:center'>
|
15
|
-
|
22
|
+
{% if contributors[tag].size > 1 %}
|
23
|
+
{{ tag | capitalize }}s:
|
24
|
+
{% else %}
|
25
|
+
{{ tag | capitalize }}:
|
26
|
+
{% endif %}
|
27
|
+
{{ contributors[tag] | join: ", " }}
|
16
28
|
</p>
|
17
|
-
{%
|
18
|
-
{% if authors %}
|
19
|
-
<p class="MsoNormal" align="center" style='text-align:center'>
|
20
|
-
<span>Authors: {{ authors | join: ", " }}</span>
|
21
|
-
</p>
|
22
|
-
{% endif %}
|
29
|
+
{% endfor %}
|
23
30
|
|
24
31
|
<p class="MsoNormal" style='margin-top:100.0pt'><span lang="EN-GB"><o:p> </o:p></span></p>
|
25
32
|
|
data/lib/isodoc/csd/metadata.rb
CHANGED
@@ -10,6 +10,7 @@ module IsoDoc
|
|
10
10
|
def initialize(lang, script, labels)
|
11
11
|
super
|
12
12
|
set(:status, "XXX")
|
13
|
+
set(:tc, "XXXX")
|
13
14
|
end
|
14
15
|
|
15
16
|
def title(isoxml, _out)
|
@@ -22,13 +23,21 @@ module IsoDoc
|
|
22
23
|
end
|
23
24
|
|
24
25
|
def author(isoxml, _out)
|
25
|
-
set(:tc, "XXXX")
|
26
26
|
tc = isoxml.at(ns("//bibdata/editorialgroup/technical-committee"))
|
27
27
|
set(:tc, tc.text) if tc
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
28
|
+
set(:contributors, personal_authors(isoxml))
|
29
|
+
end
|
30
|
+
|
31
|
+
def personal_authors(isoxml)
|
32
|
+
persons = {}
|
33
|
+
roles = isoxml.xpath(ns("//bibdata/contributor/role/@type")).
|
34
|
+
inject([]) { |m, t| m << t.value }
|
35
|
+
roles.uniq.sort.each do |r|
|
36
|
+
names = isoxml.xpath(ns("//bibdata/contributor[role/@type = '#{r}']"\
|
37
|
+
"/person/name"))
|
38
|
+
persons[r] = extract_person_names(names) unless names.empty?
|
39
|
+
end
|
40
|
+
persons
|
32
41
|
end
|
33
42
|
|
34
43
|
def extract_person_names(authors)
|
@@ -37,9 +46,7 @@ module IsoDoc
|
|
37
46
|
if a.at(ns("./completename"))
|
38
47
|
ret << a.at(ns("./completename")).text
|
39
48
|
else
|
40
|
-
fn = []
|
41
|
-
forenames = a.xpath(ns("./forename"))
|
42
|
-
forenames.each { |f| fn << f.text }
|
49
|
+
fn = a.xpath(ns("./forename")).inject([]) { |m, f| m << f.text }
|
43
50
|
surname = a&.at(ns("./surname"))&.text
|
44
51
|
ret << fn.join(" ") + " " + surname
|
45
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-csd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|