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 +4 -4
- data/lib/isodoc/ribose/base_convert.rb +6 -2
- data/lib/isodoc/ribose/presentation_xml_convert.rb +16 -8
- data/lib/isodoc/ribose/ribose.standard.xsl +615 -193
- data/lib/isodoc/ribose/xref.rb +34 -3
- data/lib/metanorma/ribose/isodoc.rng +1 -1
- data/lib/metanorma/ribose/version.rb +1 -1
- data/metanorma-ribose.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2ce34357fcbe779b956860fb3d3da2ebca0f0a709520854f213f7bfd156f771
|
4
|
+
data.tar.gz: dc2499f9ac4065e5587d87cdbd23213de19be6520bcf256eaf1b389225f156dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
27
|
+
preface_move(doc.xpath(ns("//preface/abstract")),
|
25
28
|
%w(foreword executivesummary introduction clause acknowledgements), doc)
|
26
|
-
preface_move(doc.
|
29
|
+
preface_move(doc.xpath(ns("//preface/foreword")),
|
27
30
|
%w(executivesummary introduction clause acknowledgements), doc)
|
28
|
-
preface_move(doc.
|
31
|
+
preface_move(doc.xpath(ns("//preface/executivesummary")),
|
29
32
|
%w(introduction clause acknowledgements), doc)
|
30
|
-
preface_move(doc.
|
33
|
+
preface_move(doc.xpath(ns("//preface/introduction")),
|
31
34
|
%w(clause acknowledgements), doc)
|
32
|
-
preface_move(doc.
|
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
|