Skip to content

Latest commit

 

History

History
74 lines (61 loc) · 2.65 KB

README.md

File metadata and controls

74 lines (61 loc) · 2.65 KB

logo

Google Translate

Google Translate is a translation app using Google translate api.

Screenshot

Google Translate English Google Translate English

Background

When I read papers, I used Google Translate to translate the words and sentences that I could not understand. But every time I had to use shortcuts Ctrl+C, Ctrl+V. Moreover when copying sentences from a PDF, it will bring a additional enter and a strange symbol sometimes. It is very annoying. Then I wondered why I could't develop a app to use the Google Translate API to translate them directly. I viewed the Google Translate project on GitHub and found an interesting repo.

Feature

  1. Enter the translation manually. Enter the English you want to translate in the 'original' input field, then click the translate button, or use the shortcut Ctrl+Enter
  2. paper model. To use the paper mode, you need to check the real-time translation. My real-time translation here is to monitor the clipboard, then translate the copied text into Chinese, and automatically replace the additional enter and multiple spaces with a space in the paper mode, and remove one special symbol
  3. window top. Checking this box will cause the window to remain at the top of all applications.

replace rules

until today (19/05/18)

� -> 
� -> fi
� -> ffi
� -> ff
� -> fl
� -> ft
� -> ft
� -> tt
� -> th

Preview

  1. regular mode
regular mode
  1. paper mode
paper mode
  1. non paper mode
non paper mode

Installation

>> git clone https://github.com/LewisTian/GoogleTranslateApp.git
>> cd GoogleTranslateApp
>> pip install -r requirement.txt
>> python main.py

Package

>> git clone https://github.com/pyinstaller/pyinstaller.git
>> cd pyinstaller
>> python setup.py install
>> pyinstaller -F -w main.py -p mwin.py -p res_rc.py -i google.ico

Download

click me to download

References

License

GNU General Public License v3.0 License