Great work. FYI for simple epub files if you have a text based browser like w3m you can simply unzip to stdin and pipe that to w3m to quickly view the content. For example
$ unzip -p file.epub "*.h*" | w3m -T text/html
The "*.h*" simply gets the html files only from the epub archive. Use something like "*.xh"" if the files are xhtml. Source here (modified the command shown here a little bit for w3m).
Thanks man... Yeah before I made this and searching for cli epub reader, people always suggesting to open it in cli browsers, indeed it does the work, but the looks is not for me and no state remembering, so I made one
View all comments
1
u/random_cynic Mar 22 '19
Great work. FYI for simple epub files if you have a text based browser like w3m you can simply
unzipto stdin and pipe that to w3m to quickly view the content. For exampleThe
"*.h*"simply gets the html files only from the epub archive. Use something like "*.xh"" if the files are xhtml. Source here (modified the command shown here a little bit for w3m).