diff --git a/epy.changes b/epy.changes index 4719c2d..301c29f 100644 --- a/epy.changes +++ b/epy.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Fri Dec 17 10:13:56 UTC 2021 - Matej Cepl + +- Add tts_lang.patch to allow setting language of TTS + (gh#wustho/epy#43). + +------------------------------------------------------------------- +Sat Nov 27 10:19:32 UTC 2021 - mcepl@cepl.eu + +- Update to version 2021.10.23+git.1636702550.2ab1584: + * Fixed reset to beginning of row when resizing term and Seamless==True + * Implement SeamlessBetweenChapters Squashed commit of the following: + * Minor annotation & prevent next page animation on edge of book + * Removed Board class + * Added TextStructure dataclass + * Give styling to images + * Better image opening scheme + * Refactor parser.get_lines(width) to get_lines(textwidth) + * Fixed image cursor on double spread and progress pctg in double spread + * Refactor variables + ------------------------------------------------------------------- Wed Jul 28 23:20:26 UTC 2021 - Emily Roberts diff --git a/epy.spec b/epy.spec index adca717..2ac9691 100644 --- a/epy.spec +++ b/epy.spec @@ -24,6 +24,9 @@ License: GPL-3.0-only URL: https://github.com/wustho/epy # Source: https://files.pythonhosted.org/packages/source/e/epy-reader/epy-reader-%%{version}.tar.gz#/epy-%%{version}.tar.gz Source: epy-%{version}.tar.gz +# PATCH-FIX-UPSTREAM tts_lang.patch gh#wustho/epy#43 mcepl@suse.com +# Allow setting language of TTS engine. +Patch0: tts_lang.patch BuildRequires: fdupes BuildRequires: python3-mobi BuildRequires: python3-setuptools diff --git a/tts_lang.patch b/tts_lang.patch new file mode 100644 index 0000000..7029434 --- /dev/null +++ b/tts_lang.patch @@ -0,0 +1,21 @@ +diff --git a/epy.py b/epy.py +index 11eca60..d4ea184 100755 +--- a/epy.py ++++ b/epy.py +@@ -195,6 +195,7 @@ class Settings: + MouseSupport: bool = False + StartWithDoubleSpread: bool = False + TTSSpeed: int = 1 ++ TTSLang: str = "en-US" + # -1 is default terminal fg/bg colors + DarkColorFG: int = 252 + DarkColorBG: int = 235 +@@ -2336,7 +2337,7 @@ class Reader: + try: + _, path = tempfile.mkstemp(suffix=".wav") + subprocess.call( +- ["pico2wave", "-w", path, text], ++ ["pico2wave", f"--lang={self.setting.TTSLang}", "-w", path, text], + stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL, + )