25 Jul 2019 13:50:22 UTC
- Distribution: App-termpub
- Module version: 1.06
- Source (raw)
- Pod Source (raw)
- Browse (raw)
- How to Contribute
- Issues (3)
- Testers (56 / 0 / 0)
- KwaliteeBus factor: 1
- % Coverage
- License: gpl_3
- Download (22.55KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:
- Mario Domgoergen C<< >>
- Adrian Petrescu
- KEY BINDINGS
- CONFIGURATION FILE
- COPYRIGHT AND LICENSE
App::termpub - Epubreader for the terminal
termpub aims to be a full features epub reader for the terminal. It supports internal and external links, skips the front matter and will display images with an external viewer. Your reading position will be saved and restored.
Many text movement commands are compatible with less(1).
The text will be hyphenated if the hyphenation patterns from hunspells libhyphen are installed.
Hyphenate text. Defaults to true.
- --lang 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.
- h, ?
Display help screen.
Go to the next chapter.
Go to the previous chapter.
Jump to the table of contents.
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.
- [num] |
Set pager width to num.
- [num] %
Go to a line N percent into the chapter.
- [num] g
Go to line num in the chapter, defaults to 1.
- [num] G
Go to line num in the chapter, default to the end of the chapter.
- [num] o
Open link num. termpub calls xdg-open with the url as first argument if the link references an external ressource.
Cancel numeric prefix num argument.
- KEY_DOWN, j, RETURN
Scroll one line down.
- KEY_UP, k
Scroll one line up.
- KEY_NPAGE, SPACE
Scroll forward one window.
- KEY_PPAGE, KEY_BACKSPACE
Scroll backward one window.
Go to the beginning of the current chapter.
Go to the ned of the current chapter.
Go back or forward in the chapter history.
Quit without saving the current reading position.
When termpub is invoked, it will attempt to read a configuration file named .termpubrc in your home directory. If this file does not exist termpub will try to read $XDG_CONFIG_HOME/termpub/termpubrc.
The configuration file consists of a series of commands. Each line may only contain one command. The hash mark is used as a comment character. All text after the comment character to the end of the line is ignored. The file is expected to be utf8 encoded.
The following commands are defined:
- set hyphenation on|true|off|false|0|1
Enables or disabled hyphenation
- set language language_tag
Set the language used for hyphenation.
- set width num
Set screen width to num.
If you have cpanminus installed, you can simply install this program by calling
$ cpanm .
Otherwise you can build a standalone script with
and copy the generated script termpub somewhere in your path. In this case you need to installed the dependencies yourself. Termpub depends on the perl modules Mojolicious, Curses and Archive::Zip. On Debian the following command will install these packages.
$ apt-get install libmojolicious-perl libcurses-perl libarchive-zip-perl
Copyright 2019 Mario Domgoergen
This program is free software: you can redistribute it and/or modify it under the terms of the GNU 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 General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|