zyf722 / clipper

A simple TUI-based translator for paper reading and other purposes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Screenshot

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 breaks
  • Copy: copy the processed text by Load to the clipboard
  • Translate: translate the loaded text using the selected translation service

The rest two are just the (partial) combination of them.

License

AGPLv3

About

A simple TUI-based translator for paper reading and other purposes.

License:GNU Affero General Public License v3.0


Languages

Language:Python 100.0%