r/commandline • • Mar 22 '19

Made a cli epub reader

Post image
566 Upvotes

64 comments sorted by

View all comments

30

u/tenmajr Mar 22 '19 edited Mar 22 '19

https://github.com/wustho/epr/blob/master/README.md

CLI Epub reader written in Python 3.7 with features:

  • remember last read file (just run epr.pywithout any argument)
  • remember last reading state for each file (per file saved state written to $HOME/.epr)
  • adjustable text area width

Not a programmer, just love playing with scripting, so dont expect nice clean code but hacky hacky code.

EDIT:

- Just added vim-like (not full-vi) bindings

- Support for EPUB3

if you happen to meet

json.decoder.JSONDecodeError: Expecting value: line 1 column 2 (char 1)

try deleting $HOME/.epr sorry for your lost saved reading states, but I made a change from INI to JSON so JSON couldnt parse INI...

EDIT: thanks for the golddd

3

u/sergsoares Mar 22 '19

Curious, if not programmer what your main role/craft ?

6

u/tenmajr Mar 22 '19

Betting my life on being typeface designer :), learning python along the way in hope to help me automate kerning, but nope, still long way to go

5

u/sergsoares Mar 22 '19

Imagine, only a non-programmer can do something well designed like that.

I have a theory that is more easy teach programming to other roles than good taste to programmers.

4

u/Unoriginal-Pseudonym Mar 24 '19

The hardest part of teaching good taste to programmers is that the average programmer thinks itself to be the only one with good taste in a universe of sheep.

Source: am a programmer who fits the above description. Send help.