metanorma-ribose 2.5.5 → 2.5.8

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: 7c3761f452a1896870000f02c8af971bbe606801653ba71a7e5bfdc46474e731
4
- data.tar.gz: 622820aa78a60196670b478f5a2a000c6a2c478ecd2c21ce263b6dd1f87afff8
3
+ metadata.gz: 4610f907d3022077b5cc2a16f0d05228c3e805bc7dc191b5133a681a1bf8d2d3
4
+ data.tar.gz: 63cecb2f77af07422987f3b09591045c243d0207b76f8fdbba752e27fc146c21
5
5
  SHA512:
6
- metadata.gz: ca70973ef801ddb22d29d66e6ab0b85125a38986bb4814c6f5cff1e554752126da9889334e9b1c2fc5c0d5cc73a186fd474e4f503d7ad866c133e9be687457c6
7
- data.tar.gz: b0601319759e71784f409a4bb0bb8f04c08935677d2c6a4ba41ab2db5c2eb38cd71d8a0d3b9234b0f73d78e41501a30d6758c0d7a575b843c5fb2d284cabba61
6
+ metadata.gz: c15a22c66e48ae6ae92525dc682e40c10e7cee5a4a98111e244e5dd3d60dbb7c08c77b95f0d2a1f6b448124f89e8b21a497cc142fcc2b413c6122014d4b08a07
7
+ data.tar.gz: ba2a58f12b20d3b513e128b9cf0f82f0ba65516a283d33b31f4ef6c26254e9ec271040c4dcb074365feff3289fbf4bdb2989054cb5edea01b70871ce9a24e9e6
@@ -5,13 +5,17 @@ module IsoDoc
5
5
  title_attr = { class: "IntroTitle" }
6
6
  page_break(out)
7
7
  out.div class: "Section3", id: clause["id"] do |div|
8
- clause_name(clause, clause&.at(ns("./title")), div, title_attr)
8
+ clause_name(clause, clause&.at(ns("./fmt-title")), div, title_attr)
9
9
  clause.elements.each do |e|
10
- parse(e, div) unless e.name == "title"
10
+ parse(e, div) unless e.name == "fmt-title"
11
11
  end
12
12
  end
13
13
  end
14
14
 
15
+ def sections_names
16
+ super << "executivesummary"
17
+ end
18
+
15
19
  def is_clause?(name)
16
20
  return true if name == "executivesummary"
17
21
 
@@ -5,34 +5,42 @@ require "metanorma-generic"
5
5
  module IsoDoc
6
6
  module Ribose
7
7
  class PresentationXMLConvert < IsoDoc::Generic::PresentationXMLConvert
8
- def annex1(elem)
8
+ # KILL
9
+ def annex1x(elem)
9
10
  lbl = @xrefs.anchor(elem["id"], :label)
10
11
  prefix_name(elem, "<br/><br/>", lbl, "title")
11
12
  end
12
13
 
14
+ def annex_delim(_elem)
15
+ "<br/><br/>"
16
+ end
17
+
13
18
  def middle_title(docxml); end
14
19
 
15
20
  def termsource1(elem)
16
- mod = elem.at(ns("./modification")) and
17
- termsource_modification(mod)
18
21
  elem.children = l10n("<strong>#{@i18n.source}:</strong> " \
19
22
  "#{to_xml(elem.children).strip}")
20
23
  elem&.next_element&.name == "termsource" and elem.next = "; "
21
24
  end
22
25
 
23
26
  def preface_rearrange(doc)
24
- preface_move(doc.at(ns("//preface/abstract")),
27
+ preface_move(doc.xpath(ns("//preface/abstract")),
25
28
  %w(foreword executivesummary introduction clause acknowledgements), doc)
26
- preface_move(doc.at(ns("//preface/foreword")),
29
+ preface_move(doc.xpath(ns("//preface/foreword")),
27
30
  %w(executivesummary introduction clause acknowledgements), doc)
28
- preface_move(doc.at(ns("//preface/executivesummary")),
31
+ preface_move(doc.xpath(ns("//preface/executivesummary")),
29
32
  %w(introduction clause acknowledgements), doc)
30
- preface_move(doc.at(ns("//preface/introduction")),
33
+ preface_move(doc.xpath(ns("//preface/introduction")),
31
34
  %w(clause acknowledgements), doc)
32
- preface_move(doc.at(ns("//preface/acknowledgements")),
35
+ preface_move(doc.xpath(ns("//preface/acknowledgements")),
33
36
  %w(), doc)
34
37
  end
35
38
 
39
+ def clause(docxml)
40
+ super
41
+ docxml.xpath(ns("//executivesummary | //appendix")).each { |x| clause1(x) }
42
+ end
43
+
36
44
  include Init
37
45
  end
38
46
  end