metanorma-itu 2.2.9 → 2.2.11

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: 735608fd24b2767257388a61ff50f39bf4cd7b96fc51c068cccf49e5172cadb9
4
- data.tar.gz: 2b3219c15dd78b22c78c167fd0511ae9a0745311393000399b0aab346cf65a34
3
+ metadata.gz: 34fd70f326f5d59da1151d44bb78211515837f388ac91eff8a9107f0b793ffb0
4
+ data.tar.gz: 1cbb63aa20b86b9d7b23dcde0f85c038cdfd8eead38c91399986332678e72c02
5
5
  SHA512:
6
- metadata.gz: 68028cb6db40348b7523a315f2ebefaffa62000188118e0e4c901f71e835ba185b5a11b9eb35a8b6243aa92f041ca48945dfde8b7f358316ce9d67d95f2beaf7
7
- data.tar.gz: ea549a061785f953f480fafe89511aa3a92825d84ac601dc9868908b36735717da5c42dca6850991e12d6daa06fbe3c188eac31f7d027506275fabb364db70ec
6
+ metadata.gz: a5ffd918a02cc6872d116ba3443a5c4b5a8dff5fa8a86e8fc26dba3149b59415e851ff6ca85a7f6bfc0b784ba429a7694e831f5e896ea883629cac16f2bfdd94
7
+ data.tar.gz: 731035bab592506b06ac5d15e77484a6573da11fa6b337cded4c9b15952be0c917fcf5dd08b614d56bfd7e72934ea282132280b5f51d2176fe5c481bce8f2f9d
@@ -11,20 +11,28 @@ module IsoDoc
11
11
  FRONT_CLAUSE = "//*[parent::preface]" \
12
12
  "[not(local-name() = 'abstract')]".freeze
13
13
 
14
- def preface(isoxml, out)
15
- isoxml.xpath(ns(FRONT_CLAUSE)).each do |c|
16
- next unless is_clause?(c.name)
17
-
18
- title = c&.at(ns("./title"))
19
- out.div **attr_code(clause_attrs(c)) do |s|
20
- clause_name(c, title, s, class: "IntroTitle")
21
- c.elements.reject { |c1| c1.name == "title" }.each do |c1|
22
- parse(c1, s)
23
- end
14
+ def introduction(clause, out)
15
+ title = clause.at(ns("./title"))
16
+ out.div **attr_code(clause_attrs(clause)) do |s|
17
+ clause_name(clause, title, s, class: "IntroTitle")
18
+ clause.elements.reject { |c1| c1.name == "title" }.each do |c1|
19
+ parse(c1, s)
24
20
  end
25
21
  end
26
22
  end
27
23
 
24
+ def foreword(clause, out)
25
+ introduction(clause, out)
26
+ end
27
+
28
+ def acknowledgements(clause, out)
29
+ introduction(clause, out)
30
+ end
31
+
32
+ def preface_normal(clause, out)
33
+ introduction(clause, out)
34
+ end
35
+
28
36
  def clausedelim
29
37
  ""
30
38
  end
@@ -53,7 +61,7 @@ module IsoDoc
53
61
  end
54
62
 
55
63
  def annex_name(annex, name, div)
56
- #preceding_floating_titles(name, div)
64
+ # preceding_floating_titles(name, div)
57
65
  r_a = @meta.get[:doctype_original] == "recommendation-annex"
58
66
  div.h1 class: r_a ? "RecommendationAnnex" : "Annex" do |t|
59
67
  name&.children&.each { |c2| parse(c2, t) }
@@ -5,7 +5,6 @@
5
5
 
6
6
 
7
7
  <nav>
8
- <h1 id="content">{{ labels["table_of_contents"]}}</h1>
9
8
  <div id="toc"></div>
10
9
 
11
10
  </nav>
@@ -166,19 +166,4 @@ style='mso-ansi-language:EN-US'><o:p>&#xa0;</o:p></span></span></p>
166
166
  <div id="boilerplate-license-destination"/>
167
167
  <div id="boilerplate-copyright-destination"/>
168
168
 
169
- {% if doctype != "Resolution" %}
170
- <b style='mso-bidi-font-weight:normal'><span lang="EN-US" style='font-size:12.0pt;
171
- mso-bidi-font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-font-family:
172
- "Times New Roman";mso-ansi-language:EN-US;mso-fareast-language:EN-US;
173
- mso-bidi-language:AR-SA'><br clear="all" style='page-break-before:always'/>
174
- </span></b>
175
-
176
- <p class="MsoNormal" align="center" style='text-align:center'>
177
- <b>{{ labels["table_of_contents"] }}</b></p>
178
- <p class="MsoNormal" style='tab-stops:right 17.0cm'><span style='mso-tab-count:1'/>
179
- <b>{{ labels["page"] }}</b></p>
180
-
181
- WORDTOC
182
-
183
- {% endif %}
184
169
  {% endif %}
@@ -60,9 +60,7 @@ module IsoDoc
60
60
  def make_body3(body, docxml)
61
61
  body.div **{ class: "main-section" } do |div3|
62
62
  boilerplate docxml, div3
63
- preface_block docxml, div3
64
- abstract docxml, div3
65
- preface docxml, div3
63
+ front docxml, div3
66
64
  middle docxml, div3
67
65
  footnotes div3
68
66
  comments div3