# 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/ ``` # notes the converter works with gempub archives that have a flat file structure: all the `.gmi` files, including `index.gmi`, have to be in the same directory. see the provided `example-gpub/`. you can insert raw html using the corresponding `.gmo` syntax: the contents of a line that starts with `+` will be inserted as is. # 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