You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-48Lines changed: 30 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,28 +2,31 @@
2
2
3
3
**wiki2book** is a tool to create good-looking eBooks from one or more Wikipedia articles.
4
4
5
-
The goal is to create eBooks (EPUB files) as beautiful as real books from a couple of Wikipedia articles.
6
-
Therefore, wiki2book is specifically implemented to create such books by implementing awareness for Wikipedia- and website-specific features (more on that below).
5
+
The goal is to create eBooks (EPUB files) as beautiful as real books from a given list of Wikipedia articles.
6
+
To achieve this, wiki2book contains specific treatments of Wikipedia- and website-specific content of the articles and therefore provides different results than general converters (more on this below).
7
7
This should make reading Wikipedia articles even more fun and may create a whole new readership for this awesome and imperceptibly large database of knowledge.
8
8
9
+
eBook of the German article about astronomy on a Tolino eBook-reader:
9
10
<palign="center">
10
-
<imgsrc="photo.JPG"alt="eBook of the German article about astronomy on a Tolino eBook-reader."/>
11
+
<imgsrc="photo.JPG"/>
11
12
</p>
12
13
13
-
### Why not simply using pandoc?
14
+
### Why not simply use pandoc?
14
15
15
16
Good question.
16
17
17
-
[Pandoc](https://pandoc.org/epub.html) and others like [wb2pdf](https://mediawiki2latex.wmflabs.org/) or [percollate](https://github.com/danburzo/percollate) as well) are great and yes, they can convert mediawiki to EPUB.
18
-
In fact, wiki2book relies on pandoc to turn HTML into EPUB because pandoc is well known and it's a simple program call.
18
+
[Pandoc](https://pandoc.org/epub.html) and other converters, like [wb2pdf](https://mediawiki2latex.wmflabs.org/) or [percollate](https://github.com/danburzo/percollate), are great and yes, they can convert mediawiki to EPUB.
19
+
In fact, wiki2book relies by default on pandoc to turn HTML into EPUB because pandoc does this quite well.
19
20
20
-
However, there are always things missing in these tools, for example rendering math, downloading images, evaluating templates or a proper handling of tables.
21
-
They also don't do any eBook-specific assumptions, e.g. ignoring ebook-unsuitable styles or not evaluating Wikipedia-oriented templates.
21
+
However, when converting mediawiki to EPUB, there are always things missing when using these tools.
22
+
For example, the correct rendering math code, downloading and embedding images, evaluating templates or a proper handling of tables.
22
23
23
-
Most existing tools are furthermore rather general purpose, which is not beneficial for the very specific task of converting Wikipedia articles to beautiful offline eBooks.
24
+
They are also rather general purpose and don't do any eBook-specific assumptions, e.g. ignoring ebook-unsuitable styles or Wikipedia-oriented templates.
24
25
25
26
Another feature missing in all of these tools: You cannot turn multiple articles into a ready-to-read eBook.
26
-
But wiki2book has exactly this functionality called "projects" as described below.
27
+
This also includes adding a title mage, table-of-content, custom styles, etc.
28
+
29
+
Wiki2book is a tool adressing all these issues and nice features to generate beautiful looking eBooks.
27
30
28
31
# Installation
29
32
@@ -34,20 +37,25 @@ But wiki2book has exactly this functionality called "projects" as described belo
34
37
# Usage
35
38
36
39
Currently only a CLI (_command line interface_) version of wiki2book exists, so nothing with a GUI.
37
-
Wiki2book need a configuration file (s. the [configs](./configs) folder), currently only a German config file exists.
40
+
Wiki2book uses configuration files, project files and CLI arguments to be configured.
41
+
Use the `--help` flag or the [documentation](./doc/configuration.md) for further information.
38
42
39
43
## Preliminaries
40
44
41
-
You need the following tools and fonts:
45
+
You need the following tools and fonts when using the default configuration and styles:
46
+
47
+
* ImageMagick (to have the `convert` command)
48
+
* Pandoc (when using the `pandoc` output driver). See notes on pandoc versions 2 and 3 below.
49
+
* DejaVu fonts in `/usr/share/fonts/TTF/DejaVuSans*.ttf` (is used by the default style in this repo but can be replaced to any other font).
50
+
51
+
When enabling the conversion of SVGs to PNGs or when using the math converter "internal", then wiki2book uses the tool `rsvg-convert` by default.
42
52
43
-
1. ImageMagick (to have the `convert` command)
44
-
2.*Optional:*
45
-
* Pandoc (when using the `pandoc` output driver). See notes on pandoc versions 2 and 3 below.
46
-
* DejaVu fonts in `/usr/share/fonts/TTF/DejaVuSans*.ttf` (is used by the default style in this repo but can be replaced to any other font).
53
+
The usage of external tools can be configured, e.g. to use explicit paths to executables or to use a custom script.
54
+
See [doc/configuration](./doc/configuration.md#configure-external-tool-calls) for further details.
47
55
48
56
## CLI
49
57
50
-
The CLI contains three sub-commands that generate an EPUB file from different sources (s. below for examples and details on each sub-command):
58
+
The CLI contains three sub-commands that generate an EPUB file from different sources:
0 commit comments