Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 1.6 KB

README.md

File metadata and controls

56 lines (45 loc) · 1.6 KB

Assistant

For the time being assistant is only a translator assist in my daily reading course. It exercise google translate as it core side to traslate selected text, ask for better translation and if it's not already in the "phrase book" prompt for append in the database.

Installation

  1. Create "AccountInfo.sh" (Google Login Cookies) by running

    createLogin.sh <email> <password>
    

    inside Scripts folder. As an example ./createLogin.sh '[email protected]' 'lolo_as_password'

  2. Compile Qt project

  3. Create a shortcut for Script/Translate.sh.

    if you like to map it to your mouse button first create xbind configuration file by xbindkeys --defaults > ~/.xbindkeysrc then coustomize following lines and add it to your configuration file

    "/home/lolo/PathToAssistant/Scripts/Translate.sh"
      b:8
    "/home/lolo/PathToAssistant/Scripts/DirectTranslate.sh"
      Control + b:8
    

    To inform xbind your changes run

    killall xbindkeys;xbindkeys

  4. Add GSetting schema

    sudo cp Resources/org.binaee.assistant.gschema.xml /usr/share/glib-2.0/schemas/;sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
    
  5. Enjoy

Dependecies

All dependencies on Arch Linux can installed by running

sudo pacman -S qt5-base qt5-declarative qt5-quickcontrols dconf-editor sed

Acknowledgments

Assistant used following library and tools, I just want to mention that this conquer can't achieved without their affords.

  • Google Translate API
  • sed
  • wget
  • awk
  • qt
  • xrandr
  • D-Bus
  • GSetting
  • Inkscape
  • pdfunite
  • webupd8