From f0a5af77208d0e551976fe7e15ee9945cc9df4f4 Mon Sep 17 00:00:00 2001 From: benadha Date: Fri, 16 Jul 2021 04:39:41 +0700 Subject: [PATCH] Added to bold markup --- README.md | 40 ++++++++++++++++++++++++---------------- epy.py | 4 ++-- setup.py | 2 +- 3 files changed, 27 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 9bf93f3..0575d05 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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: @@ -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. @@ -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: @@ -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) diff --git a/epy.py b/epy.py index 0afc1e2..ecbc3f9 100755 --- a/epy.py +++ b/epy.py @@ -14,7 +14,7 @@ """ -__version__ = "2021.7.8" +__version__ = "2021.7.16" __license__ = "GPL-3.0" __author__ = "Benawi Adha" __email__ = "benawiadha@gmail.com" @@ -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={""}): diff --git a/setup.py b/setup.py index 450318a..ab38914 100644 --- a/setup.py +++ b/setup.py @@ -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",