Skip to content

Commit

Permalink
Added <strong> to bold markup
Browse files Browse the repository at this point in the history
  • Loading branch information
wustho committed Jul 15, 2021
1 parent b43ef4c commit f0a5af7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 19 deletions.
40 changes: 24 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# `$ epy`

[![Downloads](https://static.pepy.tech/personalized-badge/epy-reader?period=month&units=none&left_color=grey&right_color=brightgreen&left_text=downloads/month)](https://pepy.tech/project/epy-reader)

![screenshot](https://raw.githubusercontent.com/wustho/epy/master/screenshot.png)

CLI Ebook Reader.
Expand All @@ -18,27 +20,33 @@ This is just a fork of my own [epr](https://github.com/wustho/epr) with these ex
- Text-to-Speech (with additional setup, read [below](#text-to-speech))
- [Double Spread](#double-spread)

# Installation
## Installation

## Via PyPI
- Via PyPI

```shell
$ pip3 install epy-reader
```
```shell
$ pip3 install epy-reader
```

## Via Pip+Git
- Via Pip+Git

```shell
$ pip3 install git+https://github.com/wustho/epy
```
```shell
$ pip3 install git+https://github.com/wustho/epy
```

- Via AUR

```shell
$ yay -S epy-git
```

# Reading Tips Using Epy
## Reading Tips Using Epy

When reading using `epy` you might occasionally find triple asteriks `***`.
That means you reach the end of some section in your ebook and the next line (right after those three asteriks, which is in new section) will start at the top of the page.
This might be disorienting, so the best way to get seamless reading experience is by using next-page control (`space`, `l` or `Right`) instead of next-line control (`j` or `Down`).

# Configuration File
## Configuration File

Config file is available in json format which is located at:

Expand All @@ -47,7 +55,7 @@ Config file is available in json format which is located at:

Although, there are not many stuffs to configure.

# Using Mouse
## Using Mouse

Although mouse support is useful when running `epy` on Termux Android, it’s disabled by default
since most people find it intrusive when using `epy` in desktop.
Expand All @@ -63,7 +71,7 @@ But you can enable it by setting `MouseSupport` to `true` in config file.
| `Ctrl` + `Scroll Up` | increase text width |
| `Ctrl` + `Scroll Down` | decrease text width |

# Text-to-Speech
## Text-to-Speech

To get Text-to-Speech (TTS) support, you need to install these external dependencies:

Expand All @@ -83,10 +91,10 @@ $ pacman -S sox

And then make sure `pico2wave` and `play` is in `$PATH`.

# Double Spread
## Double Spread

Double spread is intended to mimic the behaviour of real book, so line scrolling navigation will act as scrolling page and textwidth is not adjustable.

# Tip Jar
## Tip Jar

[PayPal](https://paypal.me/wustho)
[https://paypal.me/wustho](https://paypal.me/wustho)
4 changes: 2 additions & 2 deletions epy.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""


__version__ = "2021.7.8"
__version__ = "2021.7.16"
__license__ = "GPL-3.0"
__author__ = "Benawi Adha"
__email__ = "benawiadha@gmail.com"
Expand Down Expand Up @@ -422,7 +422,7 @@ class HTMLtoLines(HTMLParser):
bull = {"li"}
hide = {"script", "style", "head"}
ital = {"i", "em"}
bold = {"b"}
bold = {"b", "strong"}
# hide = {"script", "style", "head", ", "sub}

def __init__(self, sects={""}):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="epy-reader",
version="2021.7.8",
version="2021.7.16",
description="Terminal/CLI Ebook (epub, fb2, mobi, azw3) Reader",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit f0a5af7

Please sign in to comment.