metanorma-mpfa 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/asciidoctor/mpfa/basicdoc.rng +31 -1
- data/lib/asciidoctor/mpfa/converter.rb +5 -0
- data/lib/asciidoctor/mpfa/isodoc.rng +108 -8
- data/lib/isodoc/mpfa/html/rsd.css +16 -4
- data/lib/isodoc/mpfa/html/rsd.scss +18 -4
- data/lib/isodoc/mpfa/mpfd.circular.xsl +3776 -0
- data/lib/isodoc/mpfa/mpfd.compliance-standards-for-mpf-trustees.xsl +3776 -0
- data/lib/isodoc/mpfa/mpfd.guidelines.xsl +3776 -0
- data/lib/isodoc/mpfa/mpfd.standards.xsl +3776 -0
- data/lib/isodoc/mpfa/mpfd.supervision-of-mpf-intermediaries.xsl +3776 -0
- data/lib/isodoc/mpfa/pdf_convert.rb +23 -0
- data/lib/metanorma-mpfa.rb +1 -0
- data/lib/metanorma/mpfa/processor.rb +4 -1
- data/lib/metanorma/mpfa/version.rb +1 -1
- metadata +8 -2
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
require_relative "base_convert"
|
|
2
|
+
require "isodoc"
|
|
3
|
+
|
|
4
|
+
module IsoDoc
|
|
5
|
+
module MPFA
|
|
6
|
+
# A {Converter} implementation that generates PDF HTML output, and a
|
|
7
|
+
# document schema encapsulation of the document for validation
|
|
8
|
+
class PdfConvert < IsoDoc::XslfoPdfConvert
|
|
9
|
+
def initialize(options)
|
|
10
|
+
@libdir = File.dirname(__FILE__)
|
|
11
|
+
super
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def pdf_stylesheet(docxml)
|
|
15
|
+
doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text
|
|
16
|
+
doctype = "standards" unless %w(circular guidelines
|
|
17
|
+
compliance-standards-for-mpf-trustees
|
|
18
|
+
supervision-of-mpf-intermediaries).include? doctype
|
|
19
|
+
"mpfd.#{doctype}.xsl"
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
data/lib/metanorma-mpfa.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
require "asciidoctor" unless defined? Asciidoctor::Converter
|
|
2
2
|
require_relative "asciidoctor/mpfa/converter"
|
|
3
3
|
require_relative "isodoc/mpfa/html_convert"
|
|
4
|
+
require_relative "isodoc/mpfa/pdf_convert"
|
|
4
5
|
require_relative "isodoc/mpfa/word_convert"
|
|
5
6
|
require_relative "isodoc/mpfa/presentation_xml_convert"
|
|
6
7
|
require_relative "metanorma/mpfa/version"
|
|
@@ -20,7 +20,8 @@ module Metanorma
|
|
|
20
20
|
def output_formats
|
|
21
21
|
super.merge(
|
|
22
22
|
html: "html",
|
|
23
|
-
doc: "doc"
|
|
23
|
+
doc: "doc",
|
|
24
|
+
pdf: "pdf"
|
|
24
25
|
)
|
|
25
26
|
end
|
|
26
27
|
|
|
@@ -34,6 +35,8 @@ module Metanorma
|
|
|
34
35
|
IsoDoc::MPFA::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname)
|
|
35
36
|
when :doc
|
|
36
37
|
IsoDoc::MPFA::WordConvert.new(options).convert(inname, isodoc_node, nil, outname)
|
|
38
|
+
when :pdf
|
|
39
|
+
IsoDoc::MPFA::PdfConvert.new(options).convert(inname, isodoc_node, nil, outname)
|
|
37
40
|
when :presentation
|
|
38
41
|
IsoDoc::MPFA::PresentationXMLConvert.new(options).convert(inname, isodoc_node, nil, outname)
|
|
39
42
|
else
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-mpfa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-09-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: htmlentities
|
|
@@ -265,6 +265,12 @@ files:
|
|
|
265
265
|
- lib/isodoc/mpfa/i18n.rb
|
|
266
266
|
- lib/isodoc/mpfa/init.rb
|
|
267
267
|
- lib/isodoc/mpfa/metadata.rb
|
|
268
|
+
- lib/isodoc/mpfa/mpfd.circular.xsl
|
|
269
|
+
- lib/isodoc/mpfa/mpfd.compliance-standards-for-mpf-trustees.xsl
|
|
270
|
+
- lib/isodoc/mpfa/mpfd.guidelines.xsl
|
|
271
|
+
- lib/isodoc/mpfa/mpfd.standards.xsl
|
|
272
|
+
- lib/isodoc/mpfa/mpfd.supervision-of-mpf-intermediaries.xsl
|
|
273
|
+
- lib/isodoc/mpfa/pdf_convert.rb
|
|
268
274
|
- lib/isodoc/mpfa/presentation_xml_convert.rb
|
|
269
275
|
- lib/isodoc/mpfa/word_convert.rb
|
|
270
276
|
- lib/isodoc/mpfa/xref.rb
|