Skip to content

jekahamster/Translator

Repository files navigation

Translator

Description

This program will help you understand articles, books, and other foreign texts without switching to another tab with a translator, which can cause loss of context and concentration. Simply select the text, press a hotkey, and continue reading. You can also learn new words by adding them to your favorites.

image

How to use?

  1. At the first of all, run the main.py.
  2. You can see window with empty fields. The program is added to the system tray. You can close or hide window.

image

  1. Open your document and select or copy text. After that, press the combination specified in the settings.json (activation_hotkey)

image

  1. For exit, right click on the icon in tray and select Exit

image

  1. Also you can print text on upper text field and press Ctrl+Return (Ctrl+Enter) for translation. For listen text, press on sound icon. For swap languages press on incon with thwo arrows between text fiels. And press to start for add word or sentence to favourite

Settings

Open settings.json

  • activation_hotkey - shortcut for activation - string
  • database - path to the file that stores the saved words - string
  • audio_rate - audio rate - positive number
  • audio_voice - voice type - int number from 0 to 2
  • no_newline - some documents has newline at the end of line, but sentence not finished. Set True for replace all \n\r - boolean