metanorma-ribose 2.5.6 → 2.5.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: '05086b1e6dc3621f076c54173f85ceb4c6c48100bbf2b90526d96bfac99a6e75'
4
- data.tar.gz: 214bf84f77dcc4d3138e6f608cc345f6c29471d675fa34e52c5378514194a3a1
3
+ metadata.gz: c2ce34357fcbe779b956860fb3d3da2ebca0f0a709520854f213f7bfd156f771
4
+ data.tar.gz: dc2499f9ac4065e5587d87cdbd23213de19be6520bcf256eaf1b389225f156dd
5
5
  SHA512:
6
- metadata.gz: a33ab5a0f6242bc8d523b90d7cf5a10dd5cfa71d514fface30926a98d1dc8992af9f053f0d225e9d94235ce1278a4c2d3c21702a1485e45a7b64ad46725bb00f
7
- data.tar.gz: e8d5d0b52010f7fd0fde5fb21bf68494be774e9cb7d9fcd86301441c19b5667e9d73385fef16b9e40d1d8c46552c49d857978fff33292b3edef4bc1d4873a719
6
+ metadata.gz: 2ec6784ba3c09413d4fa57fd359e1a65831a80092d79728c8a1a25eb678e92b118334ae3d0bc72d80da8f9b437a4d6b5ead1e8c915dcb368c9449d66da616256
7
+ data.tar.gz: a22da98d2becdb55928d9fbd7fd12516e4f74cf41c44dfc8971ce49a2262fe37c45a11a2651080ada49604e42222931d51dff3fb819d79317873d1d6e36697e3
@@ -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