%global _empty_manifest_terminate_build 0 Name: python-ssmtool Version: 0.6.4 Release: 1 Summary: A simple, effective sentence mining tool. License: GNU General Public License v3 (GPLv3) URL: https://github.com/FreeLanguageTools/ssmtool Source0: https://mirrors.aliyun.com/pypi/web/packages/59/6e/2e24dd7e5fbef6c32940fa9892175814fe9306f3829f5b830875828fe254/ssmtool-0.6.4.tar.gz BuildArch: noarch Requires: python3-lxml Requires: python3-PyQt5 Requires: python3-requests Requires: python3-beautifulsoup4 Requires: python3-simplemma Requires: python3-pystardict Requires: python3-bidict Requires: python3-flask Requires: python3-flask-sqlalchemy Requires: python3-charset-normalizer Requires: python3-slpp Requires: python3-mobi Requires: python3-sentence-splitter Requires: python3-pymorphy2 Requires: python3-pymorphy2-dicts Requires: python3-pymorphy2-dicts-ru Requires: python3-playsound Requires: python3-ebooklib %description # Simple Sentence Mining ![https://ci.appveyor.com/api/projects/status/32r7s2skrgm9ubva?svg=true](https://ci.appveyor.com/api/projects/status/32r7s2skrgm9ubva?svg=true) ![https://img.shields.io/pypi/v/ssmtool.svg](https://img.shields.io/pypi/v/ssmtool.svg) [![Downloads](https://pepy.tech/badge/ssmtool)](https://pepy.tech/project/ssmtool) [Join our chat on Matrix](https://webchat.kde.org/#/room/#flt:midov.pl) [Join our chat on Telegram](https://t.me/fltchat) Simple Sentence Mining (`ssmtool`) is a program for sentence mining, in which sentences with target vocabulary words are collected and added into a spaced repetition system (SRS) for language learning. ![Demo](https://imgur.com/rUlVWwe.gif) ## Features - Double-click lookups from sentences and even faster lookups from integrated applications - Lemmatization of words on lookup - Online and local dictionaries in multiple formats - Frequency lists and pronunciations - Web reader (epub, fb2, plaintext) allowing one-click lookup - Kindle highlights to Anki sentence cards (KOReader support is planned too) For a detailed list of features and language support data, please consult the [blog post](https://freelanguagetools.org/2021/07/simple-sentence-mining-ssmtool-full-tutorial/) on my blog ## Tutorials [Text tutorial](https://freelanguagetools.org/2021/07/simple-sentence-mining-ssmtool-full-tutorial/) (The text originally on this document has since been moved there.) [Video tutorial (Basic, a bit outdated)](https://www.youtube.com/watch?v=y79_q08Zu8k&pp=sAQA) **USERS**: If you want to install it, go to [Releases](https://github.com/FreeLanguageTools/ssmtool/releases/) and from the latest release, download the appropriate file for your operating system. ## Linux distro packages [![Packaging status](https://repology.org/badge/vertical-allrepos/ssmtool.svg)](https://repology.org/project/ssmtool/versions) ## Development To run from source, simply use `pip3 -r requirements.txt` and then `python3 ssmtool.py`. Alternatively, you can also install a live version to your python package library with `pip3 install .` ## API documentation If you want to leverage ssmtool to build your own plugins, you can refer to the [API Documentation](API.md) ## Feedback You are welcome to report bugs, suggest features/enhancements, or ask for clarifications by opening a GitHub issue. ## Credits The definitions provided by the program by default come from English Wiktionary, without which this program would never have been created. Support for Google Translate without the use of an API key comes from the [py-googletrans project](https://github.com/ssut/py-googletrans) App icon is made from icons by Freepik available on Flaticon. %package -n python3-ssmtool Summary: A simple, effective sentence mining tool. Provides: python-ssmtool BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-ssmtool # Simple Sentence Mining ![https://ci.appveyor.com/api/projects/status/32r7s2skrgm9ubva?svg=true](https://ci.appveyor.com/api/projects/status/32r7s2skrgm9ubva?svg=true) ![https://img.shields.io/pypi/v/ssmtool.svg](https://img.shields.io/pypi/v/ssmtool.svg) [![Downloads](https://pepy.tech/badge/ssmtool)](https://pepy.tech/project/ssmtool) [Join our chat on Matrix](https://webchat.kde.org/#/room/#flt:midov.pl) [Join our chat on Telegram](https://t.me/fltchat) Simple Sentence Mining (`ssmtool`) is a program for sentence mining, in which sentences with target vocabulary words are collected and added into a spaced repetition system (SRS) for language learning. ![Demo](https://imgur.com/rUlVWwe.gif) ## Features - Double-click lookups from sentences and even faster lookups from integrated applications - Lemmatization of words on lookup - Online and local dictionaries in multiple formats - Frequency lists and pronunciations - Web reader (epub, fb2, plaintext) allowing one-click lookup - Kindle highlights to Anki sentence cards (KOReader support is planned too) For a detailed list of features and language support data, please consult the [blog post](https://freelanguagetools.org/2021/07/simple-sentence-mining-ssmtool-full-tutorial/) on my blog ## Tutorials [Text tutorial](https://freelanguagetools.org/2021/07/simple-sentence-mining-ssmtool-full-tutorial/) (The text originally on this document has since been moved there.) [Video tutorial (Basic, a bit outdated)](https://www.youtube.com/watch?v=y79_q08Zu8k&pp=sAQA) **USERS**: If you want to install it, go to [Releases](https://github.com/FreeLanguageTools/ssmtool/releases/) and from the latest release, download the appropriate file for your operating system. ## Linux distro packages [![Packaging status](https://repology.org/badge/vertical-allrepos/ssmtool.svg)](https://repology.org/project/ssmtool/versions) ## Development To run from source, simply use `pip3 -r requirements.txt` and then `python3 ssmtool.py`. Alternatively, you can also install a live version to your python package library with `pip3 install .` ## API documentation If you want to leverage ssmtool to build your own plugins, you can refer to the [API Documentation](API.md) ## Feedback You are welcome to report bugs, suggest features/enhancements, or ask for clarifications by opening a GitHub issue. ## Credits The definitions provided by the program by default come from English Wiktionary, without which this program would never have been created. Support for Google Translate without the use of an API key comes from the [py-googletrans project](https://github.com/ssut/py-googletrans) App icon is made from icons by Freepik available on Flaticon. %package help Summary: Development documents and examples for ssmtool Provides: python3-ssmtool-doc %description help # Simple Sentence Mining ![https://ci.appveyor.com/api/projects/status/32r7s2skrgm9ubva?svg=true](https://ci.appveyor.com/api/projects/status/32r7s2skrgm9ubva?svg=true) ![https://img.shields.io/pypi/v/ssmtool.svg](https://img.shields.io/pypi/v/ssmtool.svg) [![Downloads](https://pepy.tech/badge/ssmtool)](https://pepy.tech/project/ssmtool) [Join our chat on Matrix](https://webchat.kde.org/#/room/#flt:midov.pl) [Join our chat on Telegram](https://t.me/fltchat) Simple Sentence Mining (`ssmtool`) is a program for sentence mining, in which sentences with target vocabulary words are collected and added into a spaced repetition system (SRS) for language learning. ![Demo](https://imgur.com/rUlVWwe.gif) ## Features - Double-click lookups from sentences and even faster lookups from integrated applications - Lemmatization of words on lookup - Online and local dictionaries in multiple formats - Frequency lists and pronunciations - Web reader (epub, fb2, plaintext) allowing one-click lookup - Kindle highlights to Anki sentence cards (KOReader support is planned too) For a detailed list of features and language support data, please consult the [blog post](https://freelanguagetools.org/2021/07/simple-sentence-mining-ssmtool-full-tutorial/) on my blog ## Tutorials [Text tutorial](https://freelanguagetools.org/2021/07/simple-sentence-mining-ssmtool-full-tutorial/) (The text originally on this document has since been moved there.) [Video tutorial (Basic, a bit outdated)](https://www.youtube.com/watch?v=y79_q08Zu8k&pp=sAQA) **USERS**: If you want to install it, go to [Releases](https://github.com/FreeLanguageTools/ssmtool/releases/) and from the latest release, download the appropriate file for your operating system. ## Linux distro packages [![Packaging status](https://repology.org/badge/vertical-allrepos/ssmtool.svg)](https://repology.org/project/ssmtool/versions) ## Development To run from source, simply use `pip3 -r requirements.txt` and then `python3 ssmtool.py`. Alternatively, you can also install a live version to your python package library with `pip3 install .` ## API documentation If you want to leverage ssmtool to build your own plugins, you can refer to the [API Documentation](API.md) ## Feedback You are welcome to report bugs, suggest features/enhancements, or ask for clarifications by opening a GitHub issue. ## Credits The definitions provided by the program by default come from English Wiktionary, without which this program would never have been created. Support for Google Translate without the use of an API key comes from the [py-googletrans project](https://github.com/ssut/py-googletrans) App icon is made from icons by Freepik available on Flaticon. %prep %autosetup -n ssmtool-0.6.4 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-ssmtool -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Jun 20 2023 Python_Bot - 0.6.4-1 - Package Spec generated