# 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 as an epub 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 * handle non-gmi files in the manifest * handle links to images # references * [EPUB - Wikipedia](https://en.wikipedia.org/wiki/EPUB#Implementation) * [Gempub](https://codeberg.org/oppenlab/gempub) # license > THIS IS CHAOTIC SOFTWARE BEWARE