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.
- checksums.yaml +4 -4
- data/lib/isodoc/itu/html/wordstyle.css +20 -0
- data/lib/isodoc/itu/html/wordstyle.scss +19 -0
- data/lib/isodoc/itu/itu.implementers-guide.xsl +325 -134
- data/lib/isodoc/itu/itu.in-force.xsl +325 -134
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +325 -134
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +325 -134
- data/lib/isodoc/itu/itu.recommendation.xsl +325 -134
- data/lib/isodoc/itu/itu.resolution.xsl +325 -134
- data/lib/isodoc/itu/itu.service-publication.xsl +325 -134
- data/lib/isodoc/itu/itu.technical-paper.xsl +325 -134
- data/lib/isodoc/itu/itu.technical-report.xsl +325 -134
- data/lib/isodoc/itu/word_convert.rb +22 -17
- data/lib/metanorma/itu/version.rb +1 -1
- metadata +2 -2
@@ -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,
|
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 |
|
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"
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
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(
|
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(
|
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:/, "")
|
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
|
+
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-
|
11
|
+
date: 2022-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|