reverse_asciidoctor 0.1.0 → 0.2.0
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/README.adoc +12 -6
- data/bin/{w2m → w2a} +0 -0
- data/lib/reverse_asciidoctor/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14f4831267dd9a4738994bd00b46eb45b4142441
|
|
4
|
+
data.tar.gz: ff0f1af49f22bbf573f02b0d3df20d725ab95df3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f9b24155a4091c855f8035353c1a192d339f2563e75fcfc93f52858462efc850a7ddeed813bbbc70c57524ae722ed19cba44401c808ac9c72fa8a776f968b84
|
|
7
|
+
data.tar.gz: '087d8216c45fffc860af770aff3ad1f81a473ba7c8e5b92bfbf9db9b60b59fb6f9bae6fe58b6a14756e7514232594363b9da168cb835e10ab5b836f048342183'
|
data/README.adoc
CHANGED
|
@@ -49,10 +49,12 @@ It supports the following html tags supported by reverse_markdown:
|
|
|
49
49
|
* `strong`, `b`
|
|
50
50
|
* `table`, `td`, `th`, `tr`
|
|
51
51
|
|
|
52
|
-
NOTE
|
|
52
|
+
[NOTE]
|
|
53
|
+
====
|
|
53
54
|
* reverse_asciidoctor does *not* support `del` or `strike`, because Asciidoctor out of the box does not
|
|
54
55
|
* As with reverse_markdown, `pre` is only treated as sourcecode if it is contained in a `div@class = highlight-` element, or has a `@brush` attribute naming the language (Confluence).
|
|
55
56
|
* The gem does not support `p@align`, because Asciidoctor doesn't
|
|
57
|
+
====
|
|
56
58
|
|
|
57
59
|
In addition, it supports:
|
|
58
60
|
|
|
@@ -126,19 +128,22 @@ $ bin/reverse_asciidoctor file.html > file.adoc
|
|
|
126
128
|
$ cat file.html | bin/reverse_asciidoctor > file.adoc
|
|
127
129
|
----
|
|
128
130
|
|
|
129
|
-
In addition, the `bin/w2m` script
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
In addition, the `bin/w2a` script (adapted from the `bin/w2m` script in
|
|
132
|
+
https://github.com/benbalter/word-to-markdown[Ben Balter's word-to-markdown])
|
|
133
|
+
extracts HTML from Word docx documents, and converts it to Asciidoc.
|
|
132
134
|
|
|
133
135
|
[source,console]
|
|
134
136
|
----
|
|
135
|
-
$ bundle exec bin/
|
|
137
|
+
$ bundle exec bin/w2a document.docx > document.adoc
|
|
136
138
|
----
|
|
137
139
|
|
|
138
140
|
The script presumes that LibreOffice has already been installed: it uses LibreOffice's
|
|
139
141
|
export to XHTML. LibreOffice's export of XHTML is superior to the native Microsoft Word export
|
|
140
142
|
to HTML: it exports lists (which Word keeps as paragraphs), and it exports OOMML into MathML.
|
|
141
|
-
On the other hand, the LibreOffice export relies on
|
|
143
|
+
On the other hand, the LibreOffice export relies on default styling being used in the
|
|
144
|
+
document, and it may not cope with ordered lists or headings with customised appearance.
|
|
145
|
+
For best results, reset the styles in the document you're converting to those in
|
|
146
|
+
the default Normal.dot template.
|
|
142
147
|
|
|
143
148
|
=== Configuration
|
|
144
149
|
|
|
@@ -184,3 +189,4 @@ end
|
|
|
184
189
|
* https://github.com/benbalter/word-to-markdown[word-to-markdown] - Convert word docs into markdown while using reverse_markdown, by Ben Balter
|
|
185
190
|
* https://github.com/asciidocfx/HtmlToAsciidoc[HtmlToAsciidoc] - Javascript regexp-based converter of HTML to Asciidoctor
|
|
186
191
|
* https://asciidoctor.org/docs/user-manual/[The Asciidoctor User Manual]
|
|
192
|
+
|
data/bin/{w2m → w2a}
RENAMED
|
File without changes
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: reverse_asciidoctor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
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-
|
|
11
|
+
date: 2018-04-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|
|
@@ -114,7 +114,7 @@ email:
|
|
|
114
114
|
- open.source@ribose.com
|
|
115
115
|
executables:
|
|
116
116
|
- reverse_asciidoctor
|
|
117
|
-
-
|
|
117
|
+
- w2a
|
|
118
118
|
extensions: []
|
|
119
119
|
extra_rdoc_files: []
|
|
120
120
|
files:
|
|
@@ -123,7 +123,7 @@ files:
|
|
|
123
123
|
- README.adoc
|
|
124
124
|
- Rakefile
|
|
125
125
|
- bin/reverse_asciidoctor
|
|
126
|
-
- bin/
|
|
126
|
+
- bin/w2a
|
|
127
127
|
- lib/reverse_asciidoctor.rb
|
|
128
128
|
- lib/reverse_asciidoctor/cleaner.rb
|
|
129
129
|
- lib/reverse_asciidoctor/config.rb
|
|
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
229
229
|
version: '0'
|
|
230
230
|
requirements: []
|
|
231
231
|
rubyforge_project:
|
|
232
|
-
rubygems_version: 2.6.
|
|
232
|
+
rubygems_version: 2.6.14
|
|
233
233
|
signing_key:
|
|
234
234
|
specification_version: 4
|
|
235
235
|
summary: Convert html code into asciidoctor.
|