Skip to content

takiyu/gtrans-web-gui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gtrans-Web-GUI

GUI helper for Google Translation Website.

This application translates your copied or selected texts using Google Translation Website.

Dependency

  • Python (3.6>)
  • Qt5 (Python binding)

Supports

  • Linux Python 3.6
  • Windows Python 3.6
  • Windows PowerShell Python 3.6
  • Mac OS Python 3.x

Usage

$ python gtransweb_gui/gtransweb_gui.py [-h] [-s SRC_LANG] [-t TGT_LANG]
                                        [-c {copy,select,findbuf}]
                                        [-b BUF_TIME]

# Example for Linux
$ python gtransweb_gui/gtransweb_gui.py

# Example for Windows
$ python gtransweb_gui/gtransweb_gui.py -c copy -b 0

Arguments

  -h, --help                        Show the help message and exit.
  -s SRC_LANG, --src_lang SRC_LANG  Source language.  [default: auto]
  -t TGT_LANG, --tgt_lang TGT_LANG  Target language.  [default: ja]
  -m MIDDLE_LANG, --middle_lang MIDDLE_LANG
                        Intermediate language (for secondhand translation)
  -c {copy,select,findbuf}, --clip_mode {copy,select,findbuf}
                                    Clipboard mode for translation trigger.
                                    'select' is valid on only Linux.
                                    [default on Linux: select,
                                     Others          : copy]
  -b BUF_TIME, --buf_time BUF_TIME  Buffering time for clipboard.
                                    [default on Linux: 1000 (for select mode),
                                     Others          : 0]
  -d, --double          Secondhand translation.
  -o, --overwrite       Overwrite clipboard with translated text

Keyboard Shortcuts

  • ESC : Hide the window and wait for clipboard action.
  • Enter (+ CTRL) : Start to translate the text in the text box.

Screenshot

TODO

  • Support for Mac OS X. Clipboard behavior is something wrong.
  • Additional GUI, such as language selection, save settings and so on.

Others

This plugin is tested on few environments.

I hope your pull requests!

About

GUI helper for Google Translation Website.

Resources

Stars

Watchers

Forks

Packages

No packages published