Skip to content

Instantly share code, notes, and snippets.

@yingshaoxo
Created March 2, 2019 19:53
Show Gist options
  • Save yingshaoxo/3a3fa44bcbe59e764d828817b0f3d2fa to your computer and use it in GitHub Desktop.
Save yingshaoxo/3a3fa44bcbe59e764d828817b0f3d2fa to your computer and use it in GitHub Desktop.
Linux Screen Text Translator
  1. Install GoldenDict
sudo apt-get install goldendict
  1. Install translate-shell https://github.com/soimort/translate-shell#option-1-direct-download

  2. add Google Source as Program

    • open GoldenDict, chose Edit, then click Dictionaries, Programs, Add
    • add following
trans -e google -s en -t zh -show-original y -show-original-phonetics n -show-translation y -no-ansi -show-translation-phonetics n -show-prompt-message n -show-languages n -show-original-dictionary n -show-dictionary n -show-alternatives n "%GDWORD%"
  1. Enable Scan Popup Click Edit, Preferences, Scan Popup

you may want to show popup only when you press shift key

  1. Enjoy it! Force quit and restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment