clipper
Clipper is a simple TUI-based Python app to extract text from clipboard and translate it, originally made for paper-reading purpose.
Baidu Translate API is used in the project.
Installation & Usage
This project is managed by Poetry.
To install, run the following commands after cloning the repository:
poetry lock
poetry install
cp config.example.json config.json
After installing dependencies, set your own APPID and APPKEY in config.json
.
Then, you can run the app by:
poetry run clipper
There are three buttons with different purposes:
Load
: load text from clipboard, removing all line breaksCopy
: copy the processed text byLoad
to the clipboardTranslate
: translate the loaded text using the selected translation service
The rest two are just the (partial) combination of them.