metanorma-ribose 2.2.7 → 2.2.9

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: 7165b810d75c75ae9265cd7536229c31effbf384eca0d8df7bc3886b3104068d
4
- data.tar.gz: 596450c4cbf2a31dd4294950e86a6762d20f59a26a8a289d8a84ee2b703ccf1a
3
+ metadata.gz: 5310dfaa7747f6ac6d3756261e5d9f776e930b5b324a0800782bbe370ccc3297
4
+ data.tar.gz: e7079c1ad9ae4c0077d244ab013853b5109f374fdee3447a1896a11e0cb38fb3
5
5
  SHA512:
6
- metadata.gz: 467db5e091b769e9e0fe6b285e03dd2cdb504420dd2f2f7d5f70bd456131035339d54617bb4e692986af9f56067e3e5c51d40c38523db0c4b79abebd8478d331
7
- data.tar.gz: 8dcd95606761269f05d2f4cf7eea3a531374fa389b52e55904b682824a56f4be6b7d4861858d1155dace7d16d6791bb76b19ce729e324077e4c64988c0171361
6
+ metadata.gz: d659ef6831f2a1508d8e02f7b6bc84a035c88d0ed153cf0a2bb45a97e914d708bfb810e9fc76196ef9dbed479264ec8f9cb1f6ef39b2a6f9fcd4150a9d0d53d6
7
+ data.tar.gz: 0015f2d55595a86cf9b500a12d51af1a6b2fe186b38c1662167d2daf7cfaa444dc1edb746643e6ac7173e7f3727857d3a6555d83e788a1d4de5cfbfdc4babbe1
@@ -1,13 +1,12 @@
1
1
  module IsoDoc
2
2
  module Ribose
3
3
  module BaseConvert
4
- def executivesummary(docxml, out)
5
- f = docxml.at(ns("//executivesummary")) || return
4
+ def executivesummary(clause, out)
6
5
  title_attr = { class: "IntroTitle" }
7
6
  page_break(out)
8
- out.div class: "Section3", id: f["id"] do |div|
9
- clause_name(f, f&.at(ns("./title")), div, title_attr)
10
- f.elements.each do |e|
7
+ out.div class: "Section3", id: clause["id"] do |div|
8
+ clause_name(clause, clause&.at(ns("./title")), div, title_attr)
9
+ clause.elements.each do |e|
11
10
  parse(e, div) unless e.name == "title"
12
11
  end
13
12
  end
@@ -1,5 +1,4 @@
1
1
  <nav>
2
- <h1 id="content">Contents</h1>
3
2
  <div id="toc"></div>
4
3
 
5
4
  </nav>
@@ -1,6 +1,3 @@
1
- <p class="zzContents" style='margin-top:0cm'><span lang="EN-GB">Contents</span></p>
2
-
3
- WORDTOC
4
1
 
5
2
  <div class="zzCopyright">
6
3
  <div id="boilerplate-copyright-destination" style='color:windowtext'/>
@@ -14,15 +14,9 @@ module IsoDoc
14
14
  end
15
15
 
16
16
  def make_body3(body, docxml)
17
- body.div **{ class: "main-section" } do |div3|
17
+ body.div class: "main-section" do |div3|
18
18
  boilerplate docxml, div3
19
- preface_block docxml, div3
20
- abstract docxml, div3
21
- foreword docxml, div3
22
- executivesummary docxml, div3
23
- introduction docxml, div3
24
- preface docxml, div3
25
- acknowledgements docxml, div3
19
+ front docxml, div3
26
20
  middle docxml, div3
27
21
  footnotes div3
28
22
  comments div3
@@ -13,11 +13,24 @@ module IsoDoc
13
13
  def termsource1(elem)
14
14
  mod = elem.at(ns("./modification")) and
15
15
  termsource_modification(mod)
16
- elem.children = l10n("<strong>#{@i18n.source}:</strong> "\
16
+ elem.children = l10n("<strong>#{@i18n.source}:</strong> " \
17
17
  "#{to_xml(elem.children).strip}")
18
18
  elem&.next_element&.name == "termsource" and elem.next = "; "
19
19
  end
20
20
 
21
+ def preface_rearrange(doc)
22
+ preface_move(doc.at(ns("//preface/abstract")),
23
+ %w(foreword executivesummary introduction clause acknowledgements), doc)
24
+ preface_move(doc.at(ns("//preface/foreword")),
25
+ %w(executivesummary introduction clause acknowledgements), doc)
26
+ preface_move(doc.at(ns("//preface/executivesummary")),
27
+ %w(introduction clause acknowledgements), doc)
28
+ preface_move(doc.at(ns("//preface/introduction")),
29
+ %w(clause acknowledgements), doc)
30
+ preface_move(doc.at(ns("//preface/acknowledgements")),
31
+ %w(), doc)
32
+ end
33
+
21
34
  include Init
22
35
  end
23
36
  end