metanorma-mpfd 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3aa5a9f0ef4bfd60f3ed379ab93658d135595d46f683ccf902cf500dc872259d
4
- data.tar.gz: acc27115044a5e3f1503e81bf004144538123dde339c35340a19acb1a37c6efb
3
+ metadata.gz: 8d0c6a177d211cf93a3afb043b49c426aff129e82bb51d103ed573cc897dbae6
4
+ data.tar.gz: 8b2178b95740ea87c3e86c2a082be995804495d5a55c0f0f1913e5fb5fc459d1
5
5
  SHA512:
6
- metadata.gz: 5cf869caa9bc42e2ba1369d100bf737316ea04b34994b39ea00d00024b1ad9c340c903e82fdbc1ecb20af1754fc6f0c60de9b043d28bc5ee0a047a322159cb2f
7
- data.tar.gz: 47516f68c9b7c8b079af57a1bee5cc161fb21e8563f430679fe7a8cbacd5d463c91b67af075d820f44df54da32df6719eea825cfabd742da777d551ff1fd8b06
6
+ metadata.gz: 974265d0f9fea53379eab72e57400530d0ee773d29be3552587640c8f11a52238a1b460a89b369fe095a7802b20d02eef29bed29e504fafc099555b823af3090
7
+ data.tar.gz: d05ad1cf3074248bc06d5588610f41e8fd92cf661db12a666c0d86c4de4b0ef9c6de6b313d55b9f2a255c330c92fc93955400febb93d628bb78bf5a325c9857f
@@ -1,6 +1,6 @@
1
1
  require "asciidoctor"
2
2
  require "asciidoctor/mpfd"
3
- require "asciidoctor/iso/converter"
3
+ require "asciidoctor/standoc/converter"
4
4
  require "isodoc/mpfd/html_convert"
5
5
  require "isodoc/mpfd/word_convert"
6
6
  require_relative "section"
@@ -11,7 +11,7 @@ module Asciidoctor
11
11
  # A {Converter} implementation that generates MPFD output, and a document
12
12
  # schema encapsulation of the document for validation
13
13
  #
14
- class Converter < ISO::Converter
14
+ class Converter < Standoc::Converter
15
15
 
16
16
  register_for "mpfd"
17
17
 
@@ -153,38 +153,11 @@ module Asciidoctor
153
153
  end
154
154
 
155
155
  def html_converter(node)
156
- IsoDoc::Mpfd::HtmlConvert.new(
157
- script: node.attr("script"),
158
- bodyfont: node.attr("body-font"),
159
- headerfont: node.attr("header-font"),
160
- monospacefont: node.attr("monospace-font"),
161
- titlefont: node.attr("title-font"),
162
- i18nyaml: node.attr("i18nyaml"),
163
- scope: node.attr("scope"),
164
- htmlstylesheet: node.attr("htmlstylesheet"),
165
- htmlcoverpage: node.attr("htmlcoverpage"),
166
- htmlintropage: node.attr("htmlintropage"),
167
- scripts: node.attr("scripts"),
168
- )
156
+ IsoDoc::Mpfd::HtmlConvert.new(html_extract_attributes(node))
169
157
  end
170
158
 
171
159
  def word_converter(node)
172
- IsoDoc::Mpfd::WordConvert.new(
173
- script: node.attr("script"),
174
- bodyfont: node.attr("body-font"),
175
- headerfont: node.attr("header-font"),
176
- monospacefont: node.attr("monospace-font"),
177
- titlefont: node.attr("title-font"),
178
- i18nyaml: node.attr("i18nyaml"),
179
- scope: node.attr("scope"),
180
- wordstylesheet: node.attr("wordstylesheet"),
181
- standardstylesheet: node.attr("standardstylesheet"),
182
- header: node.attr("header"),
183
- wordcoverpage: node.attr("wordcoverpage"),
184
- wordintropage: node.attr("wordintropage"),
185
- ulstyle: node.attr("ulstyle"),
186
- olstyle: node.attr("olstyle"),
187
- )
160
+ IsoDoc::Mpfd::WordConvert.new(doc_extract_attributes(node))
188
161
  end
189
162
 
190
163
  def inline_quoted(node)
@@ -1,6 +1,6 @@
1
1
  require "asciidoctor"
2
2
  require "asciidoctor/mpfd"
3
- require "asciidoctor/iso/converter"
3
+ require "asciidoctor/standoc/converter"
4
4
  require "isodoc/mpfd/html_convert"
5
5
  require "isodoc/mpfd/word_convert"
6
6
 
@@ -10,7 +10,7 @@ module Asciidoctor
10
10
  # A {Converter} implementation that generates MPFD output, and a document
11
11
  # schema encapsulation of the document for validation
12
12
  #
13
- class Converter < ISO::Converter
13
+ class Converter < Standoc::Converter
14
14
 
15
15
  def sections_cleanup(x)
16
16
  super
@@ -25,7 +25,7 @@ module Asciidoctor
25
25
  end
26
26
 
27
27
  def section(node)
28
- a = { id: Asciidoctor::ISO::Utils::anchor_or_uuid(node) }
28
+ a = { id: Asciidoctor::Standoc::Utils::anchor_or_uuid(node) }
29
29
  noko do |xml|
30
30
  case sectiontype(node)
31
31
  when "introduction" then
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module Mpfd
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.add_dependency "asciidoctor", "~> 1.5.7"
29
29
  spec.add_dependency "htmlentities", "~> 4.3.4"
30
30
  spec.add_dependency "nokogiri"
31
- spec.add_dependency "asciidoctor-iso", "~> 0.10.1"
31
+ spec.add_dependency "metanorma-standoc", "~> 1.0.0"
32
32
  spec.add_dependency "isodoc", "~> 0.8.8"
33
33
  spec.add_dependency "twitter_cldr"
34
34
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-mpfd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-13 00:00:00.000000000 Z
11
+ date: 2018-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -53,19 +53,19 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: asciidoctor-iso
56
+ name: metanorma-standoc
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.10.1
61
+ version: 1.0.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.10.1
68
+ version: 1.0.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: isodoc
71
71
  requirement: !ruby/object:Gem::Requirement