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 +4 -4
- data/lib/isodoc/ribose/base_convert.rb +4 -5
- data/lib/isodoc/ribose/html/html_rsd_intro.html +0 -1
- data/lib/isodoc/ribose/html/word_rsd_intro.html +0 -3
- data/lib/isodoc/ribose/html_convert.rb +2 -8
- data/lib/isodoc/ribose/presentation_xml_convert.rb +14 -1
- data/lib/isodoc/ribose/ribose.standard.xsl +815 -276
- data/lib/isodoc/ribose/word_convert.rb +0 -15
- data/lib/metanorma/ribose/converter.rb +1 -1
- data/lib/metanorma/ribose/isodoc.rng +16 -7
- data/lib/metanorma/ribose/{rsd.rng → ribose.rng} +3 -8
- data/lib/metanorma/ribose/version.rb +1 -1
- data/metanorma.yml +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5310dfaa7747f6ac6d3756261e5d9f776e930b5b324a0800782bbe370ccc3297
|
4
|
+
data.tar.gz: e7079c1ad9ae4c0077d244ab013853b5109f374fdee3447a1896a11e0cb38fb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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:
|
9
|
-
clause_name(
|
10
|
-
|
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
|
@@ -14,15 +14,9 @@ module IsoDoc
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def make_body3(body, docxml)
|
17
|
-
body.div
|
17
|
+
body.div class: "main-section" do |div3|
|
18
18
|
boilerplate docxml, div3
|
19
|
-
|
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
|