metanorma-itu 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ module IsoDoc
23
23
 
24
24
  def make_body2(body, docxml)
25
25
  body.div **{ class: "WordSection2" } do |div2|
26
- info docxml, div2
26
+ info docxml, div2
27
27
  boilerplate docxml, div2
28
28
  preface_block docxml, div2
29
29
  abstract docxml, div2
@@ -46,14 +46,14 @@ module IsoDoc
46
46
  kw = @meta.get[:keywords]
47
47
  kw.nil? || kw.empty? and return
48
48
  out.div **attr_code(class: "Keyword") do |div|
49
- clause_name(nil, "Keywords", div, class: "IntroTitle")
49
+ clause_name(nil, "Keywords", div, class: "IntroTitle")
50
50
  div.p kw.join(", ") + "."
51
51
  end
52
52
  end
53
53
 
54
54
  def formula_parse1(node, out)
55
55
  out.div **attr_code(class: "formula") do |div|
56
- div.p **attr_code(class: "formula") do |p|
56
+ div.p **attr_code(class: "formula") do |_p|
57
57
  insert_tab(div, 1)
58
58
  parse(node.at(ns("./stem")), div)
59
59
  if lbl = node&.at(ns("./name"))&.text
@@ -74,29 +74,34 @@ module IsoDoc
74
74
  end
75
75
 
76
76
  def default_fonts(options)
77
- { bodyfont: (options[:script] == "Hans" ? '"Source Han Sans",serif' :
78
- '"Times New Roman",serif'),
79
- headerfont: (options[:script] == "Hans" ? '"Source Han Sans",sans-serif' :
80
- '"Times New Roman",serif'),
81
- monospacefont: '"Courier New",monospace',
82
- normalfontsize: "12.0pt",
83
- footnotefontsize: "11.0pt",
84
- smallerfontsize: "11.0pt",
85
- monospacefontsize: "10.0pt",
86
- }
77
+ { bodyfont: (if options[:script] == "Hans"
78
+ '"Source Han Sans",serif'
79
+ else
80
+ '"Times New Roman",serif'
81
+ end),
82
+ headerfont: (if options[:script] == "Hans"
83
+ '"Source Han Sans",sans-serif'
84
+ else
85
+ '"Times New Roman",serif'
86
+ end),
87
+ monospacefont: '"Courier New",monospace',
88
+ normalfontsize: "12.0pt",
89
+ footnotefontsize: "11.0pt",
90
+ smallerfontsize: "11.0pt",
91
+ monospacefontsize: "10.0pt" }
87
92
  end
88
93
 
89
- def default_file_locations(options)
94
+ def default_file_locations(_options)
90
95
  { wordstylesheet: html_doc_path("wordstyle.scss"),
91
96
  standardstylesheet: html_doc_path("itu.scss"),
92
97
  header: html_doc_path("header.html"),
93
98
  wordcoverpage: html_doc_path("word_itu_titlepage.html"),
94
99
  wordintropage: html_doc_path("word_itu_intro.html"),
95
100
  ulstyle: "l3",
96
- olstyle: "l2", }
101
+ olstyle: "l2" }
97
102
  end
98
103
 
99
- def make_tr_attr(td, row, totalrows, header)
104
+ def make_tr_attr(tcell, row, totalrows, header)
100
105
  super.merge(valign: "top")
101
106
  end
102
107
 
@@ -105,7 +110,7 @@ module IsoDoc
105
110
  end
106
111
 
107
112
  def link_parse(node, out)
108
- out.a **attr_code(href: node["target"], title: node["alt"],
113
+ out.a **attr_code(href: node["target"], title: node["alt"],
109
114
  class: "url") do |l|
110
115
  if node.text.empty?
111
116
  l << node["target"].sub(/^mailto:/, "")
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "2.0.4".freeze
3
+ VERSION = "2.0.5".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.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: 2022-02-21 00:00:00.000000000 Z
11
+ date: 2022-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities