metanorma-itu 2.2.8 → 2.2.10

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: 445ba87d63596d4fdf7e4d574f479da16fb1c39d3403219977dc1b4c26b20d55
4
- data.tar.gz: 245242e1ef0b6a2459725af2ee27f3519cbf058ef5e66aa5b65c43d7b8c4148f
3
+ metadata.gz: 1af172c1828172865a7029d57fd81240dff5b4440bf52f932dd7f93de4f5c301
4
+ data.tar.gz: 07d819996e52440f7fc8804b3a055f092102fa708f39f452f6c8d14894901bf6
5
5
  SHA512:
6
- metadata.gz: f6c06789d6ad416c5971c2515f52a3daae2942b7673cb0fdfa53386a46a7b31cfcb2ecce093ec037dd754efbc776d0430a801590bfe3a803cd575c2fae4a0db0
7
- data.tar.gz: dafc2854942bdc297170369b910e7e83d5eb54106ca78d4c01b256dbd3496a880573302a5a16f31d3a612e2421fc304818642da3029b217ca31f55d2150832ed
6
+ metadata.gz: f6a92e2a27586126bc38a19210844fac81e37f7c44474bab78eee01babe53499be3759552870f65adec068dc7d2dcdc596b5404fd65b6e0d76c98cc65bf3b268
7
+ data.tar.gz: e8058feafc43953d36a3c6324eb8cdb348a08c723df5614c076b0c112e1bfe51c87261526f461a189c729d40c6d7e579ec147df3245a444c4d59d27b2f2a4968
@@ -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 %}
@@ -5,16 +5,21 @@ direction:rtl;unicode-bidi:embed'><i><span lang="EN-GB" dir="LTR" style='font-si
5
5
 
6
6
  {% if lang == "zh" %}
7
7
  <p class="MsoNormal" align="center" style='margin-top:0cm;text-align:center'><i><span
8
- lang="EN-GB" style='font-size:10.0pt'>国际电联{{ pubdate_ddMMMyyyy }}第{{ docnumeric }}期</span></i></p>
8
+ lang="{{ lang }}" style='font-size:10.0pt'>国际电联{{ pubdate_ddMMMyyyy }}第{{ docnumeric }}期</span></i></p>
9
9
 
10
10
  <p class="MsoNormal" align="center" style='margin-top:0cm;text-align:center'><i><span
11
- lang="EN-GB" style='font-size:10.0pt'>《操作公报》附件</span></i></p>
11
+ lang="{{ lang }}" style='font-size:10.0pt'>《操作公报》附件</span></i></p>
12
12
  {% else %}
13
- <p class="MsoNormal" align="center" style='margin-top:0cm;text-align:center'><i><span
14
- lang="EN-GB" style='font-size:10.0pt'>{{ annex_to_itu_ob }}</span></i></p>
13
+ <p class="MsoNormal" align="center" style='margin-top:0cm;text-align:center'>{% if lang != "ar" %}<i>{% endif %}<span
14
+ lang="{{ lang }}" style='font-size:10.0pt'>{{ labels["annex_to_itu_ob"] }}</span>{% if lang != "ar" %}</i>{% endif %}</p>
15
15
 
16
+ {% if lang == "ar" %}
17
+ <p class="MsoNormal" align="center" style='margin-top:0cm;text-align:center'><span
18
+ lang="{{ lang }}" style='font-size:10.0pt'>{{ docnumeric }} – {{ pubdate_ddMMMyyyy }} {{ labels["number_abbrev"] }}</span></p>
19
+ {% else %}
16
20
  <p class="MsoNormal" align="center" style='margin-top:0cm;text-align:center'><i><span
17
- lang="EN-GB" style='font-size:10.0pt'>{{ number_abbrev }} {{ docnumeric }} – {{ pubdate_ddMMMyyyy }}</span></i></p>
21
+ lang="{{ lang }}" style='font-size:10.0pt'>{{ labels["number_abbrev"] }} {{ docnumeric }} – {{ pubdate_ddMMMyyyy }}</span></i></p>
22
+ {% endif %}
18
23
  {% endif %}
19
24
  {% if docnumber_td %}<p><span class="doc-identifier">TD number: {{docnumber_td}}</span></p>{%endif%}
20
25
  {% if docnumber_provisional %}<p><span class="doc-identifier">Provisional identifier: {{docnumber_provisional}}</span></p>{%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