README added
translation support added
This commit is contained in:
parent
b91ab8b3f7
commit
475b9b380c
38
README.md
Normal file
38
README.md
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
Screen Translator
|
||||||
|
=================
|
||||||
|
|
||||||
|
Introduction
|
||||||
|
------------
|
||||||
|
This software allows you to translate any text on screen.
|
||||||
|
Basically it is a combination of screen capture, OCR and translation tools.
|
||||||
|
|
||||||
|
Usage
|
||||||
|
-----
|
||||||
|
1. Press capture hotkey.
|
||||||
|
2. Select region on screen.
|
||||||
|
3. Get translation of recognized text.
|
||||||
|
|
||||||
|
Features
|
||||||
|
--------
|
||||||
|
* Many OCR languages (can be modified dynamicly)
|
||||||
|
* Global hotkeys for main actions
|
||||||
|
* Copy last translation to clipboard
|
||||||
|
* Repeat last translation
|
||||||
|
* Show result in 2 ways (widget or tray baloon)
|
||||||
|
* Preprocess (scale) recognizeable image
|
||||||
|
* Interface languages (ru, eng)
|
||||||
|
|
||||||
|
|
||||||
|
Limitations
|
||||||
|
-----------
|
||||||
|
* Works only on primary screen
|
||||||
|
* Can not capture some dynamic web-pages
|
||||||
|
* Not very precise OCR (need better preprocessing steps)
|
||||||
|
|
||||||
|
Used software
|
||||||
|
-------------
|
||||||
|
* see [Qt 5](http://qt-project.org/)
|
||||||
|
* see [Tesseract](https://code.google.com/p/tesseract-ocr/)
|
||||||
|
* see [Leptonica](http://leptonica.com/) (Tesseract dependency)
|
||||||
|
* Google Translate
|
||||||
|
|
@ -53,4 +53,5 @@ RC_FILE = app.rc
|
|||||||
|
|
||||||
OTHER_FILES += \
|
OTHER_FILES += \
|
||||||
app.rc \
|
app.rc \
|
||||||
images/icon.ico
|
images/icon.ico \
|
||||||
|
README.md
|
||||||
|
12
main.cpp
12
main.cpp
@ -1,4 +1,5 @@
|
|||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
#include <QTranslator>
|
||||||
|
|
||||||
#include <Manager.h>
|
#include <Manager.h>
|
||||||
#include <Settings.h>
|
#include <Settings.h>
|
||||||
@ -6,10 +7,19 @@
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QApplication a(argc, argv);
|
QApplication a(argc, argv);
|
||||||
a.setQuitOnLastWindowClosed (false);//DEBUG
|
a.setQuitOnLastWindowClosed (false);
|
||||||
a.setApplicationName (settings_values::appName);
|
a.setApplicationName (settings_values::appName);
|
||||||
a.setOrganizationName (settings_values::companyName);
|
a.setOrganizationName (settings_values::companyName);
|
||||||
|
|
||||||
|
QTranslator translator;
|
||||||
|
// Set default to english.
|
||||||
|
if (QLocale::system ().name () != "ru_RU" &&
|
||||||
|
(translator.load (QLocale::system (), "translation", "_") ||
|
||||||
|
translator.load ("translation_en")))
|
||||||
|
{
|
||||||
|
a.installTranslator(&translator);
|
||||||
|
}
|
||||||
|
|
||||||
Manager manager;
|
Manager manager;
|
||||||
|
|
||||||
return a.exec();
|
return a.exec();
|
||||||
|
Loading…
Reference in New Issue
Block a user