All Projects → crow-translate → Crow Translate

crow-translate / Crow Translate

Licence: gpl-3.0
A simple and lightweight translator that allows to translate and speak text using Google, Yandex and Bing.

Projects that are alternatives of or similar to Crow Translate

Sitedorks
Search Google/Bing/Ecosia/DuckDuckGo/Yandex/Yahoo for a search term with a default set of websites, bug bounty programs or a custom collection.
Stars: ✭ 221 (-56.06%)
Mutual labels:  bing, google, yandex
Translators
🌏🌍🌎Translators🌎🌍🌏 is a library which aims to bring free, multiple, enjoyable translation to individuals and students in Python. Translators是一个旨在用Python为个人和学生带来免费、多样、愉快翻译的库。
Stars: ✭ 295 (-41.35%)
Mutual labels:  bing, google, yandex
Xinahn Socket
一个开源,高隐私,自架自用的聚合搜索引擎。 https://xinahn.com
Stars: ✭ 77 (-84.69%)
Mutual labels:  bing, google
Jsearch
jSearch(聚搜) 是一款专注内容的chrome搜索扩展,一次搜索聚合多平台内容。
Stars: ✭ 193 (-61.63%)
Mutual labels:  bing, google
Search Engine Parser
Lightweight package to query popular search engines and scrape for result titles, links and descriptions
Stars: ✭ 216 (-57.06%)
Mutual labels:  bing, google
Dynamictranslator
Instant translation application for windows in .NET 🎪
Stars: ✭ 131 (-73.96%)
Mutual labels:  google, yandex
Search Deflector
A small program that forwards searches from Cortana to your preferred browser and search engine.
Stars: ✭ 620 (+23.26%)
Mutual labels:  bing, google
Image search
Python Library to download images and metadata from popular search engines.
Stars: ✭ 86 (-82.9%)
Mutual labels:  bing, google
safe-search
Sets the built-in adult content filter (most often: safe search) on Google, YouTube, Bing, Yahoo, DuckDuckGo, Startpage, Dogpile, Yandex, Vimeo, Reddit, Ecosia, Dailymotion, Qwant, and Patreon.
Stars: ✭ 16 (-96.82%)
Mutual labels:  yandex, bing
SearchScraperAPI
Aiohttp web server API, which scrapes Google and returns scrape results as response. Supports proxies, multiple geos and number of results.
Stars: ✭ 31 (-93.84%)
Mutual labels:  yandex, bing
Web Archives
Browser extension for viewing archived and cached versions of web pages
Stars: ✭ 263 (-47.71%)
Mutual labels:  google, yandex
Voicer
AGI-server voice recognizer for #Asterisk
Stars: ✭ 73 (-85.49%)
Mutual labels:  google, yandex
Nemiro.oauth.dll
Nemiro.OAuth is a class library for authorization via OAuth protocol in .NET Framework
Stars: ✭ 45 (-91.05%)
Mutual labels:  google, yandex
Image Downloader
Download images from Google, Bing, Baidu. 谷歌、百度、必应图片下载.
Stars: ✭ 1,173 (+133.2%)
Mutual labels:  bing, google
Awesome-meta-tags
📙 Awesome collection of meta tags
Stars: ✭ 18 (-96.42%)
Mutual labels:  yandex, bing
Searchwithmybrowser
Open Cortana searches with your default browser.
Stars: ✭ 285 (-43.34%)
Mutual labels:  bing, google
Search By Image
Browser extension for reverse image search, available for Edge, Chrome and Firefox
Stars: ✭ 500 (-0.6%)
Mutual labels:  google, yandex
Tensorflow psenet
This is a tensorflow re-implementation of PSENet: Shape Robust Text Detection with Progressive Scale Expansion Network.My blog:
Stars: ✭ 472 (-6.16%)
Mutual labels:  ocr
Anti Webspider
Web 端反爬技术方案
Stars: ✭ 486 (-3.38%)
Mutual labels:  ocr
Aster.pytorch
ASTER in Pytorch
Stars: ✭ 473 (-5.96%)
Mutual labels:  ocr

Crow Translate logo Crow Translate

GitHub (pre-)release Codacy grade Crowdin

Crow Translate is a simple and lightweight translator written in C++ / Qt that allows to translate and speak text using Google, Yandex and Bing translate API. You may also be interested in my library QOnlineTranslator used in this project.

Content

Screenshots

Plasma

Main

Plasma Mobile

Main

Windows 10

Main

Features

  • Translate and speak text from screen or selection
  • Support 125 different languages
  • Low memory consumption (~20MB)
  • Highly customizable shortcuts
  • Command-line interface with rich options
  • D-Bus API
  • Available for Linux and Windows

Default keyboard shortcuts

You can change them in the settings. Some key sequences may not be available due to OS limitations.

Wayland does not support global shortcuts registration, but you can use D-Bus to bind actions in the system settings. For desktop environments that support additional applications actions (KDE, for example) you will see them predefined in the system shortcut settings. You can also use them for X11 sessions, but you need to disable global shortcuts registration in the application settings to avoid conflicts.

Global

Key Description
Ctrl + Alt + E Translate selected text
Ctrl + Alt + S Speak selected text
Ctrl + Alt + F Speak translation of selected text
Ctrl + Alt + G Stop speaking
Ctrl + Alt + C Show main window
Ctrl + Alt + I Recognize text in screen area
Ctrl + Alt + O Translate text in screen area

In main window

Key Description
Ctrl + Return Translate
Ctrl + R Swap languages
Ctrl + Q Close window
Ctrl + S Speak source / pause text speaking
Ctrl + Shift + S Speak translation / pause text speaking
Ctrl + Shift + C Copy translation to clipboard

CLI commands

The program also has a console interface.

Usage: crow [options] text

Option Description
-h, --help Display help
-v, --version Display version information
-c, --codes Display language codes
-s, --source <code> Specify the source language (by default, engine will try to determine the language on its own)
-t, --translation <code> Specify the translation language(s), splitted by '+' (by default, the system language is used)
-l, --locale <code> Specify the translator language (by default, the system language is used)
-e, --engine <engine> Specify the translator engine ('google', 'yandex' or 'bing'), Google is used by default
-p, --speak-translation Speak the translation
-u, --speak-source Speak the source
-f, --file Read source text from files. Arguments will be interpreted as file paths
-i, --stdin Add stdin data to source text
-a, --audio-only Print text only for speaking when using --speak-translation or --speak-source
-b, --brief Print only translations
-j, --json Print output formatted as JSON

Note: If you do not pass startup arguments to the program, the GUI starts.

D-Bus API

io.crow_translate.CrowTranslate
├── /io/crow_translate/CrowTranslate/Ocr
|   └── method void io.crow_translate.CrowTranslate.Ocr.setParameters(QVariantMap parameters);
└── /io/crow_translate/CrowTranslate/MainWindow
    |   # Global shortcuts
    ├── method void io.crow_translate.CrowTranslate.MainWindow.translateSelection();
    ├── method void io.crow_translate.CrowTranslate.MainWindow.speakSelection();
    ├── method void io.crow_translate.CrowTranslate.MainWindow.speakTranslatedSelection();
    ├── method void io.crow_translate.CrowTranslate.MainWindow.stopSpeaking();
    ├── method void io.crow_translate.CrowTranslate.MainWindow.open();
    ├── method void io.crow_translate.CrowTranslate.MainWindow.copyTranslatedSelection();
    ├── method void io.crow_translate.CrowTranslate.MainWindow.recognizeScreenArea();
    ├── method void io.crow_translate.CrowTranslate.MainWindow.translateScreenArea();
    ├── method void io.crow_translate.CrowTranslate.MainWindow.delayedRecognizeScreenArea();
    ├── method void io.crow_translate.CrowTranslate.MainWindow.delayedTranslateScreenArea();
    |   # Main window shortcuts
    ├── method void io.crow_translate.CrowTranslate.MainWindow.clearText();
    ├── method void io.crow_translate.CrowTranslate.MainWindow.cancelOperation();
    ├── method void io.crow_translate.CrowTranslate.MainWindow.swapLanguages();
    ├── method void io.crow_translate.CrowTranslate.MainWindow.openSettings();
    ├── method void io.crow_translate.CrowTranslate.MainWindow.setAutoTranslateEnabled(bool enabled);
    ├── method void io.crow_translate.CrowTranslate.MainWindow.copySourceText();
    ├── method void io.crow_translate.CrowTranslate.MainWindow.copyTranslation();
    ├── method void io.crow_translate.CrowTranslate.MainWindow.copyAllTranslationInfo();
    └── method void io.crow_translate.CrowTranslate.MainWindow.quit();

For example, you can show main window using dbus-send:

dbus-send --type=method_call --dest=io.crow_translate.CrowTranslate /io/crow_translate/CrowTranslate/MainWindow io.crow_translate.CrowTranslate.MainWindow.open

Or via qdbus:

qdbus io.crow_translate.CrowTranslate /io/crow_translate/CrowTranslate/MainWindow io.crow_translate.CrowTranslate.MainWindow.open
# or shorter
qdbus io.crow_translate.CrowTranslate /io/crow_translate/CrowTranslate/MainWindow open

Dependencies

Required

External libraries

This project uses the following external libraries, which will be downloaded automatically at configure time using the built-in CMake FetchContent module:

  • QOnlineTranslator - provides free usage of Google, Yandex and Bing translate API.
  • QGitTag - uses the GitHub API to provide information about releases.
  • QHotkey - provides global shortcuts for desktop platforms.
  • QTaskbarControl - allows to create a taskbar/launcher progress for all desktop platforms.
  • SingleApplication - prevents launch of multiple application instances.

Icons

Only Linux supports icon theming. For Windows We10X icon theme is bundled.

circle-flags icons are used for flags.

Installation

Downloads are available on the Releases page. Also check out the website for other installation methods.

Note: Windows requires Microsoft Visual C++ Redistributable 2019 to work.

Building

Building executable

You can build Crow Translate by using the following commands:

mkdir build
cd build
cmake .. # Or `cmake -D CMAKE_BUILD_TYPE=Release ..` for single-configuration generators such as Ninja or GNU Make
cmake --build . # Or `cmake --build . --config Release` for multi-config generators such as Visual Studio Generators or Xcode

You will then get a binary named crow.

Building a package using CPack

CMake allows to create specified package types automatically.

If you use Makefile, Ninja, or Xcode generator you can use package target:

mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=Release -D CPACK_GENERATOR=DEB .. # You can specify several types of packages separated by semicolons in double quotes, for example: `CPACK_GENERATOR="DEB;ZIP;NSIS"`
cmake --build . --target package

Or you can use CPack utility for any generators:

mkdir build
cd build
cmake .. # Or `cmake -D CMAKE_BUILD_TYPE=Release ..` for single-configuration generators such as Ninja or GNU Make
cpack -G DEB # Or `cpack -G DEB -C Release` for multi-config generators such as Visual Studio Generators or Xcode

On Windows you need VCPKG to bundle all necessary DLLs.

Build parameters

  • WITH_PORTABLE_MODE - Enable portable functionality. If you create file named settings.ini in the app folder and Crow will store the configuration in it. It also adds the “Portable Mode” option to the application settings, which does the same.

Build parameters are passed at configuration stage: cmake -D WITH_PORTABLE_MODE ...

Localization

To help with localization you can use Crowdin or translate files in data/translations with Qt Linguist directly. To add a new language, write me on the Crowdin page or copy data/translations/crow-translate.ts to data/translations/crow-translate_<ISO 639-1 language code>.ts, translate it and send a pull request.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].