diff options
author | benadha <benawiadha@gmail.com> | 2021-02-02 19:15:09 +0700 |
---|---|---|
committer | benadha <benawiadha@gmail.com> | 2021-02-02 19:19:12 +0700 |
commit | aac7813abc0ceaedbbca37a0b898ae161b6e8c0f (patch) | |
tree | 2e270f107f2a6d4de91d6d5a4575d755d205c64a | |
parent | 853b0ade469033c266c800ed2369bb21c94c59df (diff) | |
download | epy-aac7813abc0ceaedbbca37a0b898ae161b6e8c0f.tar.gz |
TTS in double spread mode
-rw-r--r-- | README.md | 7 | ||||
-rwxr-xr-x | epy.py | 4 |
2 files changed, 8 insertions, 3 deletions
@@ -16,6 +16,7 @@ This is just a fork of my own [epr](https://github.com/wustho/epr) with these ex - External dictionary integration (`sdcv` or `dict`) - Inline formats: **bold** and _italic_ (depend on terminal and font capability. Italic only supported in python>=3.7) - Text-to-Speech (with additional setup, read [below](#text-to-speech)) +- [Double Spread](#double-spread) # Installation @@ -78,4 +79,8 @@ $ yay -S svox-pico-bin $ pacman -S sox ``` -And then make sure `pico2wave` and `play` is in `$PATH`.
\ No newline at end of file +And then make sure `pico2wave` and `play` is in `$PATH`. + +# Double Spread + +Double spread is intended to mimic the behaviour of real book, so line scrolling navigation will act as scrolling page.
\ No newline at end of file @@ -14,7 +14,7 @@ Options: """ -__version__ = "2021.2.2" +__version__ = "2021.2.3" __license__ = "GPL-3.0" __author__ = "Benawi Adha" __email__ = "benawiadha@gmail.com" @@ -1694,7 +1694,7 @@ def reader(ebook, index, width, y, pctg, sect): elif k in K["TTSToggle"] and TTSSUPPORT: # tospeak = "\n".join(src_lines[y:y+rows-1]) tospeak = "" - for i in src_lines[y:y+rows]: + for i in src_lines[y:y+(rows*SPREAD)]: if re.match(r"^\s*$", i) is not None: tospeak += "\n. \n" else: |