an opinionated gempub to epub converter
Go to file
sejo 8de31cbea3 streamlined templates 2021-12-13 20:49:28 -06:00
example-gpub generate toc.ncx from index 2021-12-13 19:34:01 -06:00
templates streamlined templates 2021-12-13 20:49:28 -06:00
Makefile streamlined templates 2021-12-13 20:49:28 -06:00
README.md streamlined templates 2021-12-13 20:49:28 -06:00
g2e.awk streamlined templates 2021-12-13 20:49:28 -06:00

README.md

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