美文网首页
Linux Screen Text Translator

Linux Screen Text Translator

作者: yingshaoxo | 来源:发表于2019-03-03 03:51 被阅读0次
    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

    https://gist.github.com/yingshaoxo/3a3fa44bcbe59e764d828817b0f3d2fa

    相关文章

      网友评论

          本文标题:Linux Screen Text Translator

          本文链接:https://www.haomeiwen.com/subject/hqwuuqtx.html