metanorma-csd 1.0.12 → 1.0.13

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: 11d60940512345545644ab6c55d0f71310ca12257b86ab7c9d1ca550d92bd414
4
- data.tar.gz: 8808b89e1b47ac413aad8ceacc91929d32cad01dafeaddf179f69a846db0039b
3
+ metadata.gz: 07a1c4c2346d23b888d601689d2bf5dbb4d5e9360f7244f04f3a0acc54dfe2ba
4
+ data.tar.gz: 810674351bc67f23e2634fa7b292967d30494dcad39d460429d6e9647bea2a7e
5
5
  SHA512:
6
- metadata.gz: 833eb87552db7ffe68cf48e96e7e6b2469c874efc091e1e311b009ee0cc7afeb988e640b377aef15cb0a4218dc2359eb45366ef8abcde26ac819aa940fbc3ee0
7
- data.tar.gz: 941ac1ba05c88f284445263acb33b7eb6f499ad6916b7cd35388742d835989a2cffc61a5d0babaf4d42163e02d3542b199cdd12d97fe7c6d420bf0a9294cd207
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
- {% if editors.size > 0 %}
41
- <div class="coverpage-tc-name">
42
- <span>Editors: {{ editors | join: ", " }}</span>
43
- </div>
44
- {% endif %}
45
- {% if authors.size > 0 %}
46
- <div class="coverpage-tc-name">
47
- <span>Authors: {{ authors | join: ", " }}</span>
48
- </div>
49
- {% endif %}
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
- {% if editors %}
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
- <span>Editors: {{ editors | join: ", " }}</span>
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
- {% endif %}
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>&nbsp;</o:p></span></p>
25
32
 
@@ -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
- authors = isoxml.xpath(ns("//bibdata/contributor[role/@type = 'author']/person/name"))
29
- set(:authors, extract_person_names(authors))
30
- editors = isoxml.xpath(ns("//bibdata/contributor[role/@type = 'editor']/person/name"))
31
- set(:editors, extract_person_names(editors))
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
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Csd
3
- VERSION = "1.0.12"
3
+ VERSION = "1.0.13"
4
4
  end
5
5
  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.12
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 00:00:00.000000000 Z
11
+ date: 2018-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc