g2e/README.md

42 lines
813 B
Markdown
Raw Normal View History

2021-12-14 02:49:28 +00:00
# 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
```
2021-12-14 02:56:05 +00:00
and then compress it as an epub with:
2021-12-14 02:49:28 +00:00
```
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
* handle non-gmi files in the manifest
2021-12-14 19:14:07 +00:00
* handle links to images
2021-12-14 02:56:05 +00:00
2021-12-14 03:00:52 +00:00
# references
* [EPUB - Wikipedia](https://en.wikipedia.org/wiki/EPUB#Implementation)
2021-12-14 19:15:50 +00:00
* [Gempub](https://codeberg.org/oppenlab/gempub)
2021-12-14 03:00:52 +00:00
2021-12-14 02:56:05 +00:00
# license
> THIS IS CHAOTIC SOFTWARE BEWARE <//xj-ix.luxe/wiki/chaotic-software/>