[dev] What is a good EPUB reader for the Linux terminal (C coded, ncurses)?

215 views
Skip to first unread message

patrick295767 patrick295767

unread,
May 26, 2015, 5:34:05 AM5/26/15
to dev mail list
Hello Guys,

Would you know a good EPUB reader for our Linux terminal (in C
language coded, ncurses)?

Thank you,

Greetings,
Pat

haris

unread,
May 26, 2015, 6:19:45 AM5/26/15
to dev mail list
Hi,
I just unpack the epub, use a very simple perl script to append a {next,
previous} page link at the bottom of each page and fire up lynx to read
it. Or w3m for images.

--
A: Because we read from top to bottom, left to right.
Q: Why should I start my reply below the quoted text?

Jason Woofenden

unread,
May 26, 2015, 10:04:22 AM5/26/15
to d...@suckless.org
Here's my notes on this topic:

convert .mobi (and maybe .epub) files to text
apt-get libebook-tools-perl
mkdir foo
ebook unpack foo.mobi foo
w3m -dump foo/SOMETHING.html > foo.txt

or...

open them with fbreader and select everything with the mouse, copy, xclip -o, etc. Helps to s/^/\n/

fbreader is graphical (and horrible) but it doesn't take long to
copy/paste out of it. My goal is usually to get a plain txt file
that I can pipe through espeak.

--
Jason

Dmitrij D. Czarkoff

unread,
May 26, 2015, 1:14:09 PM5/26/15
to dev mail list
patrick295767 patrick295767 said:
> Would you know a good EPUB reader for our Linux terminal (in C
> language coded, ncurses)?

I use ebook-tools (https://sourceforge.net/projects/ebook-tools/).
There is no curses interface, but the flow is pretty much suckless:

$ einfo -pp book.epub | lynx -stdin

I didn't look into their code, but they use cmake, which suggests that
they may do other things wrong as well.

--
Dmitrij D. Czarkoff

patrick295767 patrick295767

unread,
Jul 2, 2015, 1:59:33 AM7/2/15
to dev mail list
I found the solution.... here it is:
C !!

I coded my own epub reader in C.

( :=) :=) It is faster to code it than googling for something that
does not exist)

Best regards,
Pat
Reply all
Reply to author
Forward
0 new messages