html2doc 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0e19ec87f3a8c458aca8471807d73945ae4acb6b7d873091afdbf216b682029
4
- data.tar.gz: a0332eeef926920f940106bcf0bb8b6bdac2335a2b448b42c5b650b3e3c39679
3
+ metadata.gz: d2a2c43dd161c558af6a773c9a13a66cdab0f1d7761f133ed871944478bcad08
4
+ data.tar.gz: 1d64197bf6009686fa80f4137d28838c6d22bec7cf38352ef0f66e5d73959f0a
5
5
  SHA512:
6
- metadata.gz: ea0805528f2b28e42909eba9dcea6f35b48f8cbe1f43a37d0dc9f60f88102e02470046196795e1d0138ddc998b3758a928807662cce9b3fddeea9aba4be70385
7
- data.tar.gz: 991987e6bce9af2a73b5321cc2f2ae266fa01da1ded5b2a1b4b8637135a8d771aa0f4341ef09ecce577a53b66739dcfc8a64c93b8ce2c4ccc4cfed259974edc7
6
+ metadata.gz: 46c4310554974525fda44159b11d25eec7edad5bd8e5b8f4154142b5cbb91cbefe86325233df66cb01c588f204afb54799ae8ff547b41d8faa8bb0998677f118
7
+ data.tar.gz: d0dcebb5033f6e41fb430912f10d814f47c7e35c32d111e16424b773473c3555e3bba5e782b55dafcffdcfa49869ae139af6014ecb72a6420a6b6f49962bcf68
data/.travis.yml CHANGED
@@ -1,5 +1,16 @@
1
- sudo: false
1
+ dist: trusty
2
2
  language: ruby
3
+ sudo: false
4
+
5
+ before_install:
6
+ - gem install bundler -v 1.16.1
7
+
3
8
  rvm:
4
- - 2.4.3
5
- before_install: gem install bundler -v 1.16.1
9
+ - 2.5
10
+ - 2.4
11
+ - 2.3
12
+ - ruby-head
13
+
14
+ matrix:
15
+ allow_failures:
16
+ - rvm: ruby-head
data/Gemfile.lock ADDED
@@ -0,0 +1,129 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ html2doc (0.8.1)
5
+ asciimath
6
+ htmlentities (~> 4.3.4)
7
+ image_size
8
+ mime-types
9
+ nokogiri
10
+ ruby-xslt
11
+ thread_safe
12
+ uuidtools
13
+
14
+ GEM
15
+ remote: https://rubygems.org/
16
+ specs:
17
+ asciimath (1.0.4)
18
+ ast (2.4.0)
19
+ byebug (9.1.0)
20
+ coderay (1.1.2)
21
+ diff-lcs (1.3)
22
+ docile (1.3.1)
23
+ equivalent-xml (0.6.0)
24
+ nokogiri (>= 1.4.3)
25
+ ffi (1.9.25)
26
+ formatador (0.2.5)
27
+ guard (2.14.2)
28
+ formatador (>= 0.2.4)
29
+ listen (>= 2.7, < 4.0)
30
+ lumberjack (>= 1.0.12, < 2.0)
31
+ nenv (~> 0.1)
32
+ notiffany (~> 0.0)
33
+ pry (>= 0.9.12)
34
+ shellany (~> 0.0)
35
+ thor (>= 0.18.1)
36
+ guard-compat (1.2.1)
37
+ guard-rspec (4.7.3)
38
+ guard (~> 2.1)
39
+ guard-compat (~> 1.1)
40
+ rspec (>= 2.99.0, < 4.0)
41
+ htmlentities (4.3.4)
42
+ image_size (2.0.0)
43
+ jaro_winkler (1.5.1)
44
+ json (2.1.0)
45
+ listen (3.1.5)
46
+ rb-fsevent (~> 0.9, >= 0.9.4)
47
+ rb-inotify (~> 0.9, >= 0.9.7)
48
+ ruby_dep (~> 1.2)
49
+ lumberjack (1.0.13)
50
+ method_source (0.9.0)
51
+ mime-types (3.1)
52
+ mime-types-data (~> 3.2015)
53
+ mime-types-data (3.2016.0521)
54
+ mini_portile2 (2.3.0)
55
+ nenv (0.3.0)
56
+ nokogiri (1.8.4)
57
+ mini_portile2 (~> 2.3.0)
58
+ notiffany (0.1.1)
59
+ nenv (~> 0.1)
60
+ shellany (~> 0.0)
61
+ parallel (1.12.1)
62
+ parser (2.5.1.0)
63
+ ast (~> 2.4.0)
64
+ powerpack (0.1.2)
65
+ pry (0.11.3)
66
+ coderay (~> 1.1.0)
67
+ method_source (~> 0.9.0)
68
+ rainbow (3.0.0)
69
+ rake (12.3.1)
70
+ rb-fsevent (0.10.3)
71
+ rb-inotify (0.9.10)
72
+ ffi (>= 0.5.0, < 2)
73
+ rspec (3.7.0)
74
+ rspec-core (~> 3.7.0)
75
+ rspec-expectations (~> 3.7.0)
76
+ rspec-mocks (~> 3.7.0)
77
+ rspec-core (3.7.1)
78
+ rspec-support (~> 3.7.0)
79
+ rspec-expectations (3.7.0)
80
+ diff-lcs (>= 1.2.0, < 2.0)
81
+ rspec-support (~> 3.7.0)
82
+ rspec-match_fuzzy (0.1.3)
83
+ rspec (>= 3.2)
84
+ rspec-mocks (3.7.0)
85
+ diff-lcs (>= 1.2.0, < 2.0)
86
+ rspec-support (~> 3.7.0)
87
+ rspec-support (3.7.1)
88
+ rubocop (0.58.0)
89
+ jaro_winkler (~> 1.5.1)
90
+ parallel (~> 1.10)
91
+ parser (>= 2.5)
92
+ powerpack (~> 0.1)
93
+ rainbow (>= 2.2.2, < 4.0)
94
+ ruby-progressbar (~> 1.7)
95
+ unicode-display_width (~> 1.0, >= 1.0.1)
96
+ ruby-progressbar (1.9.0)
97
+ ruby-xslt (0.9.10)
98
+ ruby_dep (1.5.0)
99
+ shellany (0.0.1)
100
+ simplecov (0.16.1)
101
+ docile (~> 1.1)
102
+ json (>= 1.8, < 3)
103
+ simplecov-html (~> 0.10.0)
104
+ simplecov-html (0.10.2)
105
+ thor (0.20.0)
106
+ thread_safe (0.3.6)
107
+ timecop (0.9.1)
108
+ unicode-display_width (1.4.0)
109
+ uuidtools (2.1.5)
110
+
111
+ PLATFORMS
112
+ ruby
113
+
114
+ DEPENDENCIES
115
+ bundler (~> 1.15)
116
+ byebug (~> 9.1)
117
+ equivalent-xml (~> 0.6)
118
+ guard (~> 2.14)
119
+ guard-rspec (~> 4.7)
120
+ html2doc!
121
+ rake (~> 12.0)
122
+ rspec
123
+ rspec-match_fuzzy
124
+ rubocop (~> 0.50)
125
+ simplecov (~> 0.15)
126
+ timecop (~> 0.9)
127
+
128
+ BUNDLED WITH
129
+ 1.16.2
data/README.adoc CHANGED
@@ -1,16 +1,21 @@
1
1
  = Html2Doc
2
2
 
3
-
4
3
  image:https://img.shields.io/gem/v/html2doc.svg["Gem Version", link="https://rubygems.org/gems/html2doc"]
5
4
  image:https://img.shields.io/travis/riboseinc/html2doc/master.svg["Build Status", link="https://travis-ci.org/riboseinc/html2doc"]
6
5
  image:https://codeclimate.com/github/riboseinc/html2doc/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/riboseinc/html2doc"]
7
6
 
7
+ == Purpose
8
+
8
9
  Gem to convert an HTML document into a Word document (.doc) format. This is intended for automated generation of Microsoft Word documents, given HTML documents, which are much more readily crafted.
9
10
 
11
+ == Origin
12
+
10
13
  This gem originated out of https://github.com/riboseinc/asciidoctor-iso, which creates a Word document from a automatically generated HTML document (created in turn by processing Asciidoc).
11
14
 
12
15
  This work is driven by the Word document generation procedure documented in http://sebsauvage.net/wiki/doku.php?id=word_document_generation. For more on the approach taken, and on alternative approaches, see https://github.com/riboseinc/html2doc/wiki/Why-not-docx%3F
13
16
 
17
+ == Functions
18
+
14
19
  The gem currently does the following:
15
20
 
16
21
  * Convert any AsciiMath and MathML to Word's native mathematical formatting language, OOXML. Word supports copy-pasting MathML into Word and converting it into OOXML; however the conversion is not infallible (we have found problems with `\sum`: Word claims parameters were missing, and inserting dotted squares to indicate as much), and you may need to post-edit the OOXML.
@@ -28,15 +33,17 @@ For a representative generator of HTML that uses this gem in postprocessing, see
28
33
 
29
34
  == Constraints
30
35
 
31
- This generates .doc documents. Future versions may upgrade the output to docx.
36
+ This generates `.doc` documents. Future versions may upgrade the output to `docx`.
32
37
 
33
- There there are two other Microsoft Word vendors in the Ruby ecosystem.
38
+ There there are two other Microsoft Word vendors in the Ruby ecosystem.
34
39
 
35
- * https://github.com/jetruby/puredocx generate Word documents from a ruby struct as a DSL, rather than converting a preexisting html document. That constrains it's coverage to what is explicitly catered for in the DSL.
40
+ * https://github.com/jetruby/puredocx generate Word documents from a ruby struct as a DSL, rather than converting a preexisting html document. That constrains it's coverage to what is explicitly catered for in the DSL.
36
41
  * https://github.com/MuhammetDilmac/Html2Docx is a much simpler wrapper around html: it does not do any of the added functionality described above (image resizing, converting footnotes, AsciiMath and MathML). However it does already generate docx, which involves many more auxiliary files than the .doc format. (Any attempt to generate docx through this gem will likely involve Html2Docx.)
37
42
 
38
43
  == Usage
39
44
 
45
+ === Programmatic
46
+
40
47
  [source,ruby]
41
48
  --
42
49
  require "html2doc"
@@ -54,6 +61,8 @@ liststyles:: a hash of list style labels in Word CSS, which are used to define t
54
61
 
55
62
  Note that the local CSS stylesheet file contains a variable `FILENAME` for the location of footnote/endnote separators and headers/footers, which are provided in the header HTML file. The gem replaces `FILENAME` with the file name that the document will be saved as. If you supply your own stylesheet and also wish to use separators or headers/footers, you will likewise need to replace the document name mentioned in your stylesheet with a `FILENAME` string.
56
63
 
64
+ === Command line
65
+
57
66
  We include a script in this distribution that processes files from the command line, optionally including header and stylesheet:
58
67
 
59
68
  [source,console]
@@ -61,6 +70,29 @@ We include a script in this distribution that processes files from the command l
61
70
  $ bin/html2doc --header header.html --stylesheet stylesheet.css filename.html
62
71
  --
63
72
 
73
+ === Converting document output to "`Native Word`" (`.docx`)
74
+
75
+ The generated Word document is not quite in the most "`native`" format used by Word, `.docx`: it outputs the older `.doc` format. (See https://github.com/riboseinc/html2doc/wiki/Why-not-docx%3F for the reasons why.)
76
+
77
+ Here are the steps to convert our output into native-`docx`.
78
+
79
+ ==== Microsoft Word on macOS
80
+
81
+ . Open the generated Word document (`*.doc`) in Word.
82
+
83
+ . Press "`Save`", it prompts you to save as "`.mht`", but change it to "`.doc`", then "`Save".
84
+
85
+ . It may automatically prompt you, but if not, do "`Save As`", change the file type to "`.docx`".
86
+
87
+ .. Change the "`View`" to "`Print Layout`".
88
+
89
+ .. Right click the Table of Contents, click "`Update Field`" (and either selection of "`Update page numbers only`" / "`Update entire able`").
90
+
91
+ . Press "`Save`" again to save changes.
92
+
93
+ . Now you have a distributable, native-`docx`, Word document.
94
+
95
+
64
96
  == Caveats
65
97
 
66
98
  === HTML
@@ -79,7 +111,7 @@ The bad news is that Word's implementation of CSS is poorly documented -- even i
79
111
 
80
112
  This gem is published with an early draft of the XSLT stylesheet transforming MathML into OOXML, `mml2omml.xsl`, that has published for several years now as part of the https://github.com/TEIC/Stylesheets[TEI stylesheet set]. (We have made some further minor edits to the stylesheet.) The stylesheets have been published under a dual Creative Commons Sharealike/BSD licence.
81
113
 
82
- The good news is that the stylesheet is not identical to the stylesheet `mathml2omml.xsl` that is published with Microsoft Word, so it can and has been redistributed.
114
+ The good news is that the stylesheet is not identical to the stylesheet `mathml2omml.xsl` that is published with Microsoft Word, so it can and has been redistributed.
83
115
 
84
116
  The bad news is that the stylesheet is not identical to the stylesheet `mathml2omml.xsl` that is published with Microsoft Word, so it isn't guaranteed to have identical output. If you want to make sure that your MathML import is identical to what Word currently uses, replace `mml2omml.xsl` with `mathml2omml.xsl`, and edit the gem accordingly for your local installation. On Windows, you will find the stylesheet in the same directory as the `winword.exe` executable. On Mac, right-click on the Word application, and select "Show Package Contents"; you will find the stylesheet under `Contents/Resources`.
85
117
 
data/html2doc.gemspec CHANGED
@@ -17,13 +17,13 @@ Gem::Specification.new do |spec|
17
17
  DESCRIPTION
18
18
 
19
19
  spec.homepage = "https://github.com/riboseinc/html2doc"
20
- spec.license = "MIT"
20
+ spec.licenses = ["CC-BY-SA-3.0", "BSD-2-Clause"]
21
21
 
22
22
  spec.bindir = "bin"
23
23
  spec.require_paths = ["lib"]
24
24
  spec.files = `git ls-files`.split("\n")
25
25
  spec.test_files = `git ls-files -- {spec}/*`.split("\n")
26
- spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
26
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
27
27
 
28
28
  spec.add_dependency "htmlentities", "~> 4.3.4"
29
29
  spec.add_dependency "image_size"
data/lib/html2doc/base.rb CHANGED
@@ -62,7 +62,7 @@ module Html2Doc
62
62
 
63
63
  def self.to_xhtml(xml)
64
64
  xml.gsub!(/<\?xml[^>]*>/, "")
65
- unless /<!DOCTYPE /.match? xml
65
+ unless /<!DOCTYPE /.match xml
66
66
  xml = '<!DOCTYPE html SYSTEM
67
67
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' + xml
68
68
  end
data/lib/html2doc/mime.rb CHANGED
@@ -36,7 +36,7 @@ module Html2Doc
36
36
  def self.mime_type(item)
37
37
  types = MIME::Types.type_for(item)
38
38
  type = types ? types.first.to_s : 'text/plain; charset="utf-8"'
39
- type = type + ' charset="utf-8"' if /^text/.match?(type) && types
39
+ type = type + ' charset="utf-8"' if /^text/.match(type) && types
40
40
  type
41
41
  end
42
42
 
@@ -1,3 +1,3 @@
1
1
  module Html2Doc
2
- VERSION = "0.8.0".freeze
2
+ VERSION = "0.8.1".freeze
3
3
  end
@@ -0,0 +1,186 @@
1
+ <html xmlns:v="urn:schemas-microsoft-com:vml"
2
+ xmlns:o="urn:schemas-microsoft-com:office:office"
3
+ xmlns:w="urn:schemas-microsoft-com:office:word"
4
+ xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
5
+ xmlns:mv="http://macVmlSchemaUri" xmlns="http://www.w3.org/TR/REC-html40">
6
+
7
+ <head>
8
+ <meta name=Title content="">
9
+ <meta name=Keywords content="">
10
+ <meta http-equiv=Content-Type content="text/html; charset=utf-8">
11
+ <meta name=ProgId content=Word.Document>
12
+ <meta name=Generator content="Microsoft Word 15">
13
+ <meta name=Originator content="Microsoft Word 15">
14
+ <link id=Main-File rel=Main-File href="FILENAME.html">
15
+ <!--[if gte mso 9]><xml>
16
+ <o:shapedefaults v:ext="edit" spidmax="2049"/>
17
+ </xml><![endif]-->
18
+ </head>
19
+
20
+ <body lang=EN link=blue vlink="#954F72">
21
+
22
+ <div style='mso-element:footnote-separator' id=fs>
23
+
24
+ <p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
25
+ normal'><span lang=EN-GB><span style='mso-special-character:footnote-separator'><![if !supportFootnotes]>
26
+
27
+ <hr align=left size=1 width="33%">
28
+
29
+ <![endif]></span></span></p>
30
+
31
+ </div>
32
+
33
+ <div style='mso-element:footnote-continuation-separator' id=fcs>
34
+
35
+ <p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
36
+ normal'><span lang=EN-GB><span style='mso-special-character:footnote-continuation-separator'><![if !supportFootnotes]>
37
+
38
+ <hr align=left size=1>
39
+
40
+ <![endif]></span></span></p>
41
+
42
+ </div>
43
+
44
+ <div style='mso-element:endnote-separator' id=es>
45
+
46
+ <p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
47
+ normal'><span lang=EN-GB><span style='mso-special-character:footnote-separator'><![if !supportFootnotes]>
48
+
49
+ <hr align=left size=1 width="33%">
50
+
51
+ <![endif]></span></span></p>
52
+
53
+ </div>
54
+
55
+ <div style='mso-element:endnote-continuation-separator' id=ecs>
56
+
57
+ <p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
58
+ normal'><span lang=EN-GB><span style='mso-special-character:footnote-continuation-separator'><![if !supportFootnotes]>
59
+
60
+ <hr align=left size=1>
61
+
62
+ <![endif]></span></span></p>
63
+
64
+ </div>
65
+
66
+ <div style='mso-element:header' id=eh1>
67
+
68
+ <p class=MsoHeader align=left style='text-align:left;line-height:12.0pt;
69
+ mso-line-height-rule:exactly'><span lang=EN-GB>ISO/IEC&nbsp;CD 17301-1:2016(E)</span></p>
70
+
71
+ <img src='spec/19160-6.png'/>
72
+
73
+ </div>
74
+
75
+ <div style='mso-element:header' id=h1>
76
+
77
+ <p class=MsoHeader style='margin-bottom:18.0pt'><span lang=EN-GB
78
+ style='font-size:10.0pt;mso-bidi-font-size:11.0pt;font-weight:normal'>©
79
+ ISO/IEC&nbsp;2016&nbsp;– All rights reserved</span><span lang=EN-GB
80
+ style='font-weight:normal'><o:p></o:p></span></p>
81
+
82
+ </div>
83
+
84
+ <div style='mso-element:footer' id=ef1>
85
+
86
+ <p class=MsoFooter style='margin-top:12.0pt;line-height:12.0pt;mso-line-height-rule:
87
+ exactly'><!--[if supportFields]><b style='mso-bidi-font-weight:normal'><span
88
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
89
+ style='mso-element:field-begin'></span><span
90
+ style='mso-spacerun:yes'> </span>PAGE<span style='mso-spacerun:yes'>  
91
+ </span>\* MERGEFORMAT <span style='mso-element:field-separator'></span></span></b><![endif]--><b
92
+ style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
93
+ mso-bidi-font-size:11.0pt'><span style='mso-no-proof:yes'>2</span></span></b><!--[if supportFields]><b
94
+ style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
95
+ mso-bidi-font-size:11.0pt'><span style='mso-element:field-end'></span></span></b><![endif]--><span
96
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
97
+ style='mso-tab-count:1'>                                                                                                                                                                           </span>©
98
+ ISO/IEC&nbsp;2016&nbsp;– All rights reserved<o:p></o:p></span></p>
99
+
100
+ </div>
101
+
102
+ <div style='mso-element:header' id=eh2>
103
+
104
+ <p class=MsoHeader align=left style='text-align:left;line-height:12.0pt;
105
+ mso-line-height-rule:exactly'><span lang=EN-GB>ISO/IEC&nbsp;CD 17301-1:2016(E)</span></p>
106
+
107
+ </div>
108
+
109
+ <div style='mso-element:header' id=h2>
110
+
111
+ <p class=MsoHeader align=right style='text-align:right;line-height:12.0pt;
112
+ mso-line-height-rule:exactly'><span lang=EN-GB>ISO/IEC&nbsp;CD 17301-1:2016(E)</span></p>
113
+
114
+ </div>
115
+
116
+ <div style='mso-element:footer' id=ef2>
117
+
118
+ <p class=MsoFooter style='line-height:12.0pt;mso-line-height-rule:exactly'><!--[if supportFields]><span
119
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
120
+ style='mso-element:field-begin'></span><span
121
+ style='mso-spacerun:yes'> </span>PAGE<span style='mso-spacerun:yes'>  
122
+ </span>\* MERGEFORMAT <span style='mso-element:field-separator'></span></span><![endif]--><span
123
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
124
+ style='mso-no-proof:yes'>ii</span></span><!--[if supportFields]><span
125
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
126
+ style='mso-element:field-end'></span></span><![endif]--><span lang=EN-GB
127
+ style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span style='mso-tab-count:
128
+ 1'>                                                                                                                                                                           </span>©
129
+ ISO/IEC&nbsp;2016&nbsp;– All rights reserved<o:p></o:p></span></p>
130
+
131
+ </div>
132
+
133
+ <div style='mso-element:footer' id=f2>
134
+
135
+ <p class=MsoFooter style='line-height:12.0pt'><span lang=EN-GB
136
+ style='font-size:10.0pt;mso-bidi-font-size:11.0pt'>© ISO/IEC&nbsp;2016&nbsp;– All
137
+ rights reserved<span style='mso-tab-count:1'>                                                                                                                                                                          </span></span><!--[if supportFields]><span
138
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
139
+ style='mso-element:field-begin'></span> PAGE<span style='mso-spacerun:yes'>  
140
+ </span>\* MERGEFORMAT <span style='mso-element:field-separator'></span></span><![endif]--><span
141
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
142
+ style='mso-no-proof:yes'>iii</span></span><!--[if supportFields]><span
143
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
144
+ style='mso-element:field-end'></span></span><![endif]--><span lang=EN-GB
145
+ style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><o:p></o:p></span></p>
146
+
147
+ </div>
148
+
149
+ <div style='mso-element:footer' id=ef3>
150
+
151
+ <p class=MsoFooter style='margin-top:12.0pt;line-height:12.0pt;mso-line-height-rule:
152
+ exactly'><!--[if supportFields]><b style='mso-bidi-font-weight:normal'><span
153
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
154
+ style='mso-element:field-begin'></span><span
155
+ style='mso-spacerun:yes'> </span>PAGE<span style='mso-spacerun:yes'>  
156
+ </span>\* MERGEFORMAT <span style='mso-element:field-separator'></span></span></b><![endif]--><b
157
+ style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
158
+ mso-bidi-font-size:11.0pt'><span style='mso-no-proof:yes'>2</span></span></b><!--[if supportFields]><b
159
+ style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
160
+ mso-bidi-font-size:11.0pt'><span style='mso-element:field-end'></span></span></b><![endif]--><span
161
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
162
+ style='mso-tab-count:1'>                                                                                                                                                                           </span>©
163
+ ISO/IEC&nbsp;2016&nbsp;– All rights reserved<o:p></o:p></span></p>
164
+
165
+ </div>
166
+
167
+ <div style='mso-element:footer' id=f3>
168
+
169
+ <p class=MsoFooter style='line-height:12.0pt'><span lang=EN-GB
170
+ style='font-size:10.0pt;mso-bidi-font-size:11.0pt'>© ISO/IEC&nbsp;2016&nbsp;– All
171
+ rights reserved<span style='mso-tab-count:1'>                                                                                                                                                                           </span></span><!--[if supportFields]><b
172
+ style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
173
+ mso-bidi-font-size:11.0pt'><span style='mso-element:field-begin'></span>
174
+ PAGE<span style='mso-spacerun:yes'>   </span>\* MERGEFORMAT <span
175
+ style='mso-element:field-separator'></span></span></b><![endif]--><b
176
+ style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
177
+ mso-bidi-font-size:11.0pt'><span style='mso-no-proof:yes'>3</span></span></b><!--[if supportFields]><b
178
+ style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
179
+ mso-bidi-font-size:11.0pt'><span style='mso-element:field-end'></span></span></b><![endif]--><span
180
+ lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><o:p></o:p></span></p>
181
+
182
+ </div>
183
+
184
+ </body>
185
+
186
+ </html>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html2doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-03 00:00:00.000000000 Z
11
+ date: 2018-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities
@@ -297,6 +297,7 @@ files:
297
297
  - ".travis.yml"
298
298
  - CODE_OF_CONDUCT.md
299
299
  - Gemfile
300
+ - Gemfile.lock
300
301
  - LICENSE
301
302
  - README.adoc
302
303
  - Rakefile
@@ -327,11 +328,13 @@ files:
327
328
  - spec/examples/rice_images/rice_image3_2.png
328
329
  - spec/examples/rice_images/rice_image3_3.png
329
330
  - spec/header.html
331
+ - spec/header_img.html
330
332
  - spec/html2doc_spec.rb
331
333
  - spec/spec_helper.rb
332
334
  homepage: https://github.com/riboseinc/html2doc
333
335
  licenses:
334
- - MIT
336
+ - CC-BY-SA-3.0
337
+ - BSD-2-Clause
335
338
  metadata: {}
336
339
  post_install_message:
337
340
  rdoc_options: []
@@ -341,7 +344,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
341
344
  requirements:
342
345
  - - ">="
343
346
  - !ruby/object:Gem::Version
344
- version: 2.4.0
347
+ version: 2.3.0
345
348
  required_rubygems_version: !ruby/object:Gem::Requirement
346
349
  requirements:
347
350
  - - ">="
@@ -349,7 +352,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
349
352
  version: '0'
350
353
  requirements: []
351
354
  rubyforge_project:
352
- rubygems_version: 2.7.7
355
+ rubygems_version: 2.7.6
353
356
  signing_key:
354
357
  specification_version: 4
355
358
  summary: Convert HTML document to Microsoft Word document