All Projects → mdom → termpub

mdom / termpub

Licence: AGPL-3.0 license
Epubreader for the terminal

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to termpub

kthoom
Comic Book Reader in the Browser
Stars: ✭ 97 (+288%)
Mutual labels:  epub, epub-reader
Folioreaderkit
📚 A Swift ePub reader and parser framework for iOS.
Stars: ✭ 2,382 (+9428%)
Mutual labels:  epub, epub-reader
cpub
commandline epub reader using python/curses
Stars: ✭ 29 (+16%)
Mutual labels:  curses, epub-reader
epub-viewer
android epub viewer
Stars: ✭ 32 (+28%)
Mutual labels:  epub, epub-reader
nuber
terminal epub reader with inline images
Stars: ✭ 73 (+192%)
Mutual labels:  epub, curses
onesync-reader-app
Cross-platform ebook reader built using Xamarin.Forms
Stars: ✭ 33 (+32%)
Mutual labels:  epub, epub-reader
Folioreader Android
A Java ePub reader and parser framework for Android.
Stars: ✭ 2,025 (+8000%)
Mutual labels:  epub, epub-reader
iRead
iRead is an EPUB reader for iOS written in Swift
Stars: ✭ 83 (+232%)
Mutual labels:  epub, epub-reader
jorkens
epub reader based on epub.js for foreign language learners
Stars: ✭ 35 (+40%)
Mutual labels:  epub, epub-reader
R2D2BC
https://d-i-t-a.github.io/R2D2BC/
Stars: ✭ 27 (+8%)
Mutual labels:  epub, epub-reader
readium-css
🌈 A set of reference stylesheets for EPUB Reading Systems, starting with Readium Mobile
Stars: ✭ 78 (+212%)
Mutual labels:  epub, epub-reader
EveReader
Epub Reader, focused on annotation.
Stars: ✭ 68 (+172%)
Mutual labels:  epub, epub-reader
GameOfLife
Conway's Game of Life
Stars: ✭ 18 (-28%)
Mutual labels:  curses
rePocketable
Tool to fetch articles from (getPocket|the web) and turn them into epub
Stars: ✭ 49 (+96%)
Mutual labels:  epub
AbsTK
The Abstract Toolkit – a widget toolkit for GUI and text-mode applications.
Stars: ✭ 67 (+168%)
Mutual labels:  curses
EbookReader
The EbookReader Android App. Support file format like epub, pdf, txt, html, mobi, azw, azw3, html, doc, docx,cbz, cbr. Support tts.
Stars: ✭ 37 (+48%)
Mutual labels:  epub
books
电子书(计算机类,经济学,数学), 格式,pdf、mobi、epub
Stars: ✭ 804 (+3116%)
Mutual labels:  epub
ngp
Ncurses code parsing tool
Stars: ✭ 52 (+108%)
Mutual labels:  curses
go-toolkit
Official repo for all things written in Go related to the Readium Architecture
Stars: ✭ 21 (-16%)
Mutual labels:  epub
acsm-calibre-plugin
Calibre plugin for ACSM->EPUB and ACSM->PDF conversion.
Stars: ✭ 118 (+372%)
Mutual labels:  epub

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:

  • display current page according to epub3 page list
  • skiping front matter
  • jumping to table of contents
  • displaying images with an external viewer
  • following interal and external urls
  • saving and restoring your last reading position

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

  • --hyphenate

    Use pyphen to hyphenate the text. Defaults to false.

  • --language LANGUAGE_TAG

    Set the language used for hyphenation. Defaults to the books language or 'en_US' if not specified.

  • --width WIDTH

    Set screen width. Defaults to 80.

  • --dump

    Print rendered book to stdout

KEY BINDINGS

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

  • h

    Display help screen.

  • ]

    Go to the next chapter.

  • [

    Go to the previous chapter.

  • {

    Go to the first chapter.

  • }

    Go to the last chapter.

  • t

    Open a pager with the table of content.

  • m

    Followed by any lowercase letter, marks the current position with that letter.

  • '

    Followed by any lowercase letter, returns to the position which was previously marked with that letter. Followed by another single quote, returns to the position at which the last "large" movement command was executed.

  • |

    Set width to N.

  • %

    Go to a line N percent into the chapter.

  • g

    Go to line N of the chapter, default to line 1 (beginning of chapter).

  • G

    Go to line N of the chapter, default to the end of the chapter.

  • o

    Open link N. termpub calls xdg-open with the url as first argument if the link references an external ressource.

  • C-l

    Redraw scren.

  • C-g

    Cancel numeric prefix num argument.

  • DOWN, j, RETURN

    Scroll one line down.

  • UP, k

    Scroll one line up.

  • ESC-), RIGHT

    Scroll horizontally right N characters, default half the screen width. If a number N is specified, it becomes the default for future RIGHT and LEFT commands.

  • ESC-(, LEFT

    Scroll horizontally left N characters, default half the screen width. If a number N is specified, it becomes the default for future RIGHT and LEFT commands.

  • PAGE_DOWN, SPACE

    Scroll forward one window.

  • PAGE_UP, BACKSPACE

    Scroll backward one window.

  • HOME

    Go to the beginning of the current chapter.

  • END

    Go to the ned of the current chapter.

  • q

    Exits termpub.

  • /

    Search forward for lines containing the pattern.

  • ?

    Search backward for lines containing the pattern.

  • n

    Repeat previous search.

  • N

    Repeat previous search, but in the reverse direction.

  • ESC-u

    Undo search highlighting. If highlighting is already off because of a previous ESC-u command, turn highlighting back on.

  • !

    Asks for an external Unix command and executes it in a subshell.

  • \

    Show chapter source.

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 <[email protected]>

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/>.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].