33 lines
588 B
Markdown
33 lines
588 B
Markdown
|
# g2e
|
||
|
|
||
|
an opinionated gempub to epub converter written in awk.
|
||
|
|
||
|
# usage
|
||
|
|
||
|
an example (uncompressed) gpub file is provided.
|
||
|
|
||
|
you can generate the corresponding epub file using:
|
||
|
|
||
|
```
|
||
|
make example
|
||
|
```
|
||
|
|
||
|
and then compress it with:
|
||
|
|
||
|
```
|
||
|
make epub
|
||
|
```
|
||
|
|
||
|
in order to convert another gpub, you can remix the following command, where `example-gpub/` would be the directory for your uncompressed gpub
|
||
|
|
||
|
```
|
||
|
awk -f g2e.awk example-gpub/
|
||
|
```
|
||
|
|
||
|
for the moment this only generates the epub metadata and table of contents files.
|
||
|
|
||
|
# TODO
|
||
|
|
||
|
* convert .gmi files to .xhtml
|
||
|
* handle non-gmi files in the manifest
|