Home

Awesome

NAME

termpub - Epubreader for the terminal

SYNOPSIS

termpub [OPTIONS] file

DESCRIPTION

termpub aims to be a full featured epub reader for the terminal. It supports amongst other things the following features:

Many text movement commands are compatible with less(1).

The text can be hyphenated if pyphen are installed.

This project was rewritten from perl to python. Your reading state is no longer saved in the epub document, but in a local sqlite file. You can find the last version of the perl code under the git branch perl.

OPTIONS

KEY BINDINGS

Some commands may be preceded by a decimal number, called N in the descriptions below.

CONFIGURATION FILE

When termpub is invoked, it will attempt to read a configuration file at $XDG_CONFIG_HOME/termpub/termpubrc. The following example shows some defaults:

set hyphenation off
set language en_US
set widht 80
set status_left {title}
set status_right "{chapter_counter} {percent}"
map [ prev_chapter
map ] next_chapter
map CTRL-L redraw

INSTALLATION

The project can be installed with setup.py and depends on no external libraries. Only python 3.6 or later is needed.

python setup.py install [--user]

On Arch Linux, there is a termpub package in the AUR.

BUGS AND LIMITATIONS

As mentioned, this is a fresh rewrite, so there are probably a lot of bugs hidden. Sorry for any inconvenience!

COPYRIGHT AND LICENSE

Copyright 2020 Mario Domgoergen <mario@domgoergen.com>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.