Highlight Translator can help you translate the words quickly and accurately.

Overview

📚 Highlight Translator 📚

Highlight Translator can help you translate the words quickly and accurately. By only highlighting, copying, or screenshoting the content you want to translate anywhere on your computer (ex. PDF, PPT, WORD etc.), the translated results will then be automatically displayed before you.

⚠️ The software is only supported in Windows. Mac OS version might be added in the future. ⚠️

Translation resource: Google Translate and Cambridge dictionary

OCR technology: Tesseract

Virtual Desktop Control DLL: Ciantic/VirtualDesktopAccessor Github

Highlight Translate Github

🔻 How To Use 🔻

Step 1. Download the software in the Executable File

Download Zip File

Step 2. Decompress the Zip file and Execute the file

Find the HighlightTranslator.exe in the folder and then double click

📢 Highlight Features

Methods of Getting Source Texts

  • Highlight/Selected
  • Screenshot (keyboard shortcut: Windows + Shift + S )
  • Copy

Automatically Appear Window

The window will be automatically appear when you copy/highlight/screenshot some content and then automatically be hidden after a few seconds if you don't use it.

Automatically Switch to Current Virtual Desktop

You can use it on different virtual desktop without manually switch by yourself, it will automatic switch to current virtual desktop

Automatically Switch between Languages

When the language of input texts is the same as the target language, source language and target language will be automatically switched to each other.

Text to Speak

It can speak the input sentences or the translated results, and also can be automatic.

It will be helpful to learning languages

🎯 Features

🔑 Methods of getting your source texts

  • Highlight/Selected (This method does not support Microsoft Office, but you can copy the words/sentences instead)
  • Screenshot (Only English and Chinese supported currently, but feel free to add new languages by yourself)

    Keyboard Shortcut: Windows + Shift + S

  • Copy

🔑 Automatically Appear Window

The window will be automatically appear when you copy/highlight/screenshot some content and then automatically be hidden after a few seconds if you don't use it.

  • Cancel disappearance

    If you don't want the window to automatically disappear, you can stop it by moving your mouse on the window or just clicking the checkbox on the top

  • Early Disappear

    If you want the window disappear early, you can move your mouse on the window first and then click any where out of the window

🔑 Automatically Switch to Current Virtual Desktop

You can use it on different virtual desktop without manually switch by yourself, it will automatic switch to current virtual desktop.

🔑 Automatically Switch between Languages

If the language of input texts is the same as the target language, source language and target language will be automatically switched to each other.

🔑 Text to Speech

It can speak the input sentences or the translated results, and also can be automatic.

📌 Checkbox "input"

Display InputBox and Translate Button.
You can type the texts in InputBox and then press Enter or click the Translate Button to get the translation result.

📌 Checkbox "top"

If the checkbox is checked, the window will always be kept on top.

📌 Checkbox "select"

When you highlight some content, the translation will be automatically displayed.

📌 Setting Interface

You can set the config on the menu

📌 Change Dictionary

Only Google and Cambridge Dictionary supported for now. For Cambridge Dictionary, only "English to Chinese" supported

📌 Switch Language Button

It can switch between source and target languages

📔 Google Translate API

This API can get the translation result from Google Translate

How to use

import GoogleTranslate as gt
print(gt.get_translate("good", "en","zh-TW"))

Parameters

  1. inputtext: The text that you want to translate
  2. sourcelanguage: The language of the input text language
  3. targetlanguage: The language of the output result language

You can refer to language.txt for all the languages supported.

Return

  1. result: The most common result
  2. allresult: All of the results
  3. detect_language: Detecting the language of the input text
  4. revise: Suggestion when the text is seemingly misspelled

📑 Config.json

You can adjust these parameters in Setting Interface.

{
  "source_language":"Detect language",
  "target_language":"Chinese (Traditional)",
  "appear_time":6,
  "dynamic_adjust_appear_time":1,
  "auto_speak_length_limit":15,
  "font":"Arial",
  "font_size":11,
  "audio_volume":0.95,
  "number_of_terms":5,
  "auto_switch_language":1,
  "auto_change_dictionary":0,
  "restructure_sentences":1,
  "inputbox_color":"#F2D8B3",
  "resultbox_color":"#FDF0C4",
  "copycheck":0.3,
  "doubleclickcheck":0.5,
  "selectcheck":0.3
}
  • source_language: Default source language
  • target_language: Default target language
  • appear_time: The window will be automatically appear when you copy/highlight/screenshot some content and then automatically be hidden after a few seconds.
  • dynamic_adjust_appear_time: The time of Window automatic appearance will be extended according to the length of input text(0 will close this feature, if >0, every three words will extend dynamic_adjust_appear_time seconds)
  • auto_speak_length_limit: When the input length is less than the limit, the automatic speaking function will be triggered
  • font
  • font_size
  • audio_volume: Speaking volume (0~1)
  • auto_switch_language: Enable the source and target languages to be swtiched automatically (0 or 1)
  • number_of_terms: Control the number of displayed translation results (terms) (>0)
  • auto_change_dictionary: When the input is a word, the dictionary will be automaticlly switched to cambridge dictionary (0 or 1)
  • restructure_sentences: It will restructure your input sentences (0 or 1)
  • inputbox_color: The background color of input box
  • resultbox_color: The background color of result box
  • copycheck: Check clipboard frequency (sec)
  • doubleclick: the time between the two clicks that will make them viewed as a "doublecklick" (sec)
  • select: The time of the press to make the press viewed as a "long press" (sec)

How To Install

pip install -r requirements.txt
python Highlight_Translator.py

Requirement

python 3.6

pyinstaller == 4.1
Pillow >= 8.2.0
pynput == 1.6
pyautogui == 0.9
pytesseract == 0.3
pywin32 == 227
requests >= 2.24.0
beautifulsoup4 >= 4.9.3
numpy
pygame
gTTS
Owner
Coolshan
Majoring in Computer Science and Information Engineering
Coolshan
advance python series: Data Classes, OOPs, python

Working With Pydantic - Built-in Data Process ========================== Normal way to process data (reading json file): the normal princiople, it's f

Phung Hưng Binh 1 Nov 08, 2021
Ultimaker Cura 2 Mooraker Upload Plugin

Klipper & Cura - Cura2MoonrakerPlugin Allows you to upload Gcode directly from Cura to your Klipper-based 3D printer (Fluidd, Mainsailos etc.) using t

214 Jan 03, 2023
API Documentation for Python Projects

API Documentation for Python Projects. Example pdoc -o ./html pdoc generates this website: pdoc.dev/docs. Installation pip install pdoc pdoc is compat

mitmproxy 1.4k Jan 07, 2023
Automatically open a pull request for repositories that have no CONTRIBUTING.md file

automatic-contrib-prs Automatically open a pull request for repositories that have no CONTRIBUTING.md file for a targeted set of repositories. What th

GitHub 8 Oct 20, 2022
Use Brainf*ck with python!

Brainfudge Run Brainf*ck code with python! Classes Interpreter(array_len): encapsulate all functions into class __init__(self, array_len: int=30000) -

1 Dec 14, 2021
PySpark Cheat Sheet - learn PySpark and develop apps faster

This cheat sheet will help you learn PySpark and write PySpark apps faster. Everything in here is fully functional PySpark code you can run or adapt to your programs.

Carter Shanklin 168 Jan 01, 2023
graphical orbitational simulation of solar system planets with real values and physics implemented so you get a nice elliptical orbits. you can change timestamp value or scale from source code idc.

solarSystemOrbitalSimulation graphical orbitational simulation of solar system planets with real values and physics implemented so you get a nice elli

Mega 3 Mar 03, 2022
Sphinx Bootstrap Theme

Sphinx Bootstrap Theme This Sphinx theme integrates the Bootstrap CSS / JavaScript framework with various layout options, hierarchical menu navigation

Ryan Roemer 584 Nov 16, 2022
AiiDA plugin for the HyperQueue metascheduler.

aiida-hyperqueue WARNING: This plugin is still in heavy development. Expect bugs to pop up and the API to change. AiiDA plugin for the HyperQueue meta

AiiDA team 3 Jun 19, 2022
Python 3 wrapper for the Vultr API v2.0

Vultr Python Python wrapper for the Vultr API. https://www.vultr.com https://www.vultr.com/api This is currently a WIP and not complete, but has some

CSSNR 6 Apr 28, 2022
Uses diff command to compare expected output with student's submission output

AUTOGRADER for GRADESCOPE using diff with partial grading Description: Uses diff command to compare expected output with student's submission output U

2 Jan 11, 2022
30 days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days

30 days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than100 days, follow your own pace.

Asabeneh 17.7k Jan 07, 2023
A simple USI Shogi Engine written in python using python-shogi.

Revengeshogi My attempt at creating a USI Shogi Engine in python using python-shogi. Current State of Engine Currently only generating random moves us

1 Jan 06, 2022
EasyModerationKit is an open-source framework designed to moderate and filter inappropriate content.

EasyModerationKit is a public transparency statement. It declares any repositories and legalities used in the EasyModeration system. It allows for implementing EasyModeration into an advanced charact

Aarav 1 Jan 16, 2022
Documentation and issues for Pylance - Fast, feature-rich language support for Python

Documentation and issues for Pylance - Fast, feature-rich language support for Python

Microsoft 1.5k Dec 29, 2022
Plotting and analysis tools for ARTIS simulations

Artistools Artistools is collection of plotting, analysis, and file format conversion tools for the ARTIS radiative transfer code. Installation First

ARTIS Monte Carlo Radiative Transfer 8 Nov 07, 2022
SCTYMN is a GitHub repository that includes some simple scripts(currently only python scripts) that can be useful.

Simple Codes That You Might Need SCTYMN is a GitHub repository that includes some simple scripts(currently only python scripts) that can be useful. In

CodeWriter21 2 Jan 21, 2022
Bring RGB to life in Neovim

Bring RGB to life in Neovim Change your RGB devices' color depending on Neovim's mode. Fast and asynchronous plugin to live your vim-life to the fulle

Antoine 40 Oct 27, 2022
Grokking the Object Oriented Design Interview

Grokking the Object Oriented Design Interview

Tusamma Sal Sabil 2.6k Jan 08, 2023
step by step guide for beginners for getting started with open source

Step-by-Step Guide for beginners for getting started with Open-Source Here The Contribution Begins 💻 If you are a beginner then this repository is fo

Arpit Jain 66 Jan 03, 2023