Skip to content

Commit

Permalink
1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vardecab committed May 10, 2021
1 parent 50aaaf1 commit ae951ef
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# kindle-words

![](https://img.shields.io/badge/platform-Windows%20%7C%20macOS-blue)

> Do something useful with your Kindle notes :) This script extracts individual words from `My Clippings` file hidden on your Kindle e-reader, translates them using Google Translate and exports the pair "original word" → "translation" into a `.txt` file from which you can learn these words or import them into an application such as [Quizlet](https://quizlet.com/).
Script skips sentences, numbers, special characters, etc. — only single words are being translated. Words in desired language are skipped.
Expand Down Expand Up @@ -70,6 +72,7 @@ python script.py

## Release History

- 1.5.1: Fixed Windows 10 notifications bug.
- 1.5: Added language detection to skip translation of words already in desired language.
- 1.4: Added notifications for macOS & Windows.
- 1.3: Added support for macOS.
Expand Down Expand Up @@ -101,7 +104,9 @@ Using [SemVer](http:https://semver.org/).

## License

GNU General Public License v3.0, see [LICENSE.md](https://github.com/vardecab/umbrella/blob/master/LICENSE).
![](https://img.shields.io/github/license/vardecab/kindle-words)
<!--
GNU General Public License v3.0, see [LICENSE.md](https://github.com/vardecab/umbrella/blob/master/LICENSE). -->

## Acknowledgements
### Packages
Expand All @@ -121,4 +126,10 @@ GNU General Public License v3.0, see [LICENSE.md](https://github.com/vardecab/um
- [regex101](https://regex101.com/)
- [regexr](https://regexr.com/)
### Other
- [Flaticon / Freepik](https://www.flaticon.com/)
- [Flaticon / Freepik](https://www.flaticon.com/)

## Contributing

![](https://img.shields.io/github/issues/vardecab/kindle-words)

If you found a bug or want to propose a feature, feel free to visit [the Issues page](https://github.com/vardecab/kindle-words/issues).
5 changes: 3 additions & 2 deletions script.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
# imports
from sys import platform # check platform (Windows/macOS)
if platform == "darwin":
import pync
import pync # macOS notifications
elif platform == 'win32':
import win10toast_click
from win10toast_click import ToastNotifier # Windows 10 notifications
toaster = ToastNotifier() # initialize win10toast

### path to file: https://www.journaldev.com/15642/python-switch-case
if platform == 'win32':
Expand Down

0 comments on commit ae951ef

Please sign in to comment.