Skip to content

A translator for Linux, running at the background which wakes up with the translation of the last selected text on command.

License

Notifications You must be signed in to change notification settings

yasirtug/ni-translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️This project is not being maintained. See Crow Translate⚠️

ni-translate

Build Steps:

1. Install dependencies:

  • Install qmake and base Qt5 development files:

    sudo apt-get install qt5-default

  • Install XInput2 extension:

    sudo apt-get install libxi-dev

2. Build project:

  • Create a folder for build files and cd into it.

  • Run this command from your folder:

    qmake <project_files_folder>/ni-translate.pro -spec linux-g++

  • This should have extracted Makefile in your build folder.

  • Run make there.

3. Install:

  • To install, run this from the build folder:

    <project_files_folder>/INSTALL.sh

    This will create a desktop file in ~/.config/autostart, copy executable file into ~/.local/bin and run the program for the first time.

Default hotkey should be Caps Lock. You can change it from the settings menu.

OCR

There is also an experimantal OCR feature implemented using Tesseract.

  • To enable it, you should install libtesseract and build the project with ocr config:

    sudo apt-get install libtesseract-dev
    sudo apt-get install tesseract-ocr-eng
    qmake <project_files_folder>/ni-translate.pro -spec linux-g++ -config ocr

  • It may be necessary to force rebuild after config change:

    make clean
    make

Language files you installed will be available to select in the settings menu.

sudo apt-get install tesseract-ocr-jpn

About

A translator for Linux, running at the background which wakes up with the translation of the last selected text on command.

Topics

Resources

License

Stars

Watchers

Forks