README added

translation support added
This commit is contained in:
Gres 2014-02-08 18:04:42 +04:00
parent b91ab8b3f7
commit 475b9b380c
3 changed files with 51 additions and 2 deletions

38
README.md Normal file
View 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

View File

@ -53,4 +53,5 @@ RC_FILE = app.rc
OTHER_FILES += \
app.rc \
images/icon.ico
images/icon.ico \
README.md

View File

@ -1,4 +1,5 @@
#include <QApplication>
#include <QTranslator>
#include <Manager.h>
#include <Settings.h>
@ -6,10 +7,19 @@
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setQuitOnLastWindowClosed (false);//DEBUG
a.setQuitOnLastWindowClosed (false);
a.setApplicationName (settings_values::appName);
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;
return a.exec();