Quick hack for reading epub files in terminal. I was considering making something fancier to have possibility to hop chapters back and forth, but couldn't be bothered yet. Let's see if I feel like doing it later, but for now I will just keep the book open in one tab in screen. Anything else than plain text will probably look awful. Using some text mode browser would be the other alternative as epub is just a zip file of bunch of html files.

FILELIST=`zipinfo -1 "${1}" | grep "\.html" |sort`
TEXT=""
for FILE in $FILELIST
do
    TEXT="${TEXT} `unzip -caa "${1}" "${FILE}" | html2text -width 70`"
done
echo "${TEXT}" |less

The output can be futher formatted by giving instructions to html2text. I have in my ~/.html2textrc the following:

P.vspace.before = 1
P.indent.left = 2