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 +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 +695 -183
- data/lib/isodoc/ribose/xref.rb +34 -3
- data/lib/metanorma/ribose/biblio.rng +13 -1
- data/lib/metanorma/ribose/isodoc.rng +6 -6
- 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: 4610f907d3022077b5cc2a16f0d05228c3e805bc7dc191b5133a681a1bf8d2d3
|
4
|
+
data.tar.gz: 63cecb2f77af07422987f3b09591045c243d0207b76f8fdbba752e27fc146c21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|