GithubHelp home page GithubHelp logo

translatecli's Introduction

translatecli

Bash based off-line dictionary for translation English-Russian and Russian-English in Linux terminal.
English-Russian - 48523 words
Russian-English - 45678 words
Only dependent's on: awk, elinks and tar

The dictionaries originally ported from chm files.
There was a 'Far'-file manager's plugin project. Thanks to the authors.
There are additional 3-e pages in the en-ru dictionary:
dobropogalovat
blagodarnost
transkripcia

Usage:

to search

$ enrutranslate.sh s script
prescriptive
proscription
rescript
script
scriptoria
scriptorium

Or

$ enrutranslate.sh ^script
script
scriptoria
scriptorium
scriptural

Read page

$ enrutranslate.sh p script , or without p, as default operation
<< scrip << script >> scriptoria >>

[skrɪpt]

  1. noun
  1. почерк

$ ruentranslate.sh документ
документ
документальный
документация

$ ruentranslate.sh p документ
<< докуда << документ >> документальный >>

noun
(m.)
document, paper;

Instalation:

Download and install the Git command line extension. You only have to set up Git LFS once.
git lfs install
git clone --depth=1 https://github.com/vycb/translatecli.git
Add enrutranslate.sh somewhere into PATH (~/bin)
Create symbolic link ruentranslate.sh (for russian-engliah dictionary)
For example: cd ~/bin; ln -s ~/bin/enrutranslate.sh ~/bin/ruentranslate.sh
Add to .bashrc path of cloned repo. For example: export TRANSLATECLI_HOME="$HOME/.vim/doc/translatecli"
For look up mod 'trans' application should be installed. See https://github.com/soimort/translate-shell.
Also, to lookup in thesaurus.altervista.org, we need to register there, and add reg-key in .config file.

$ enrutranslate.sh -h
Usage:
pattern - to search dictionary. Example: enrutranslate.sh peace
ts - full text search in dictionary. Example: enrutranslate.sh ts look
p - get read a page in dictionary. Example: enrutranslate.sh p "look up"
a - add a new page to dictionary.
Example: enrutranslate.sh a "look up" "look towards" dic/lookup.txt
Where 3-d argument is an 'append after' index, ie append after "look towards".
d - delete a page from dictionary. Example: enrutranslate.sh d "look up" dic/lookup.txt
r - replace a content from 'dic' directory.
Example: enrutranslate.sh r "look up" dic/lookup.txt
e - same as 'r' replace, but add a content from file in 'dic' to content in dictionary.
Example: enrutranslate.sh e "look up" dic/lookup.txt
l - 'look up' mod - get new page by 'trans' app and add to content in dictionary.
Example: enrutranslate.sh l peace
'trans' (https://github.com/soimort/translate-shell) must be installed for this mod.
diff - compare entries of toc.csv and pages in dictionary. Example: enrutranslate.sh diff
b - backup a dictionary. Example: enrutranslate.sh b

translatecli's People

Contributors

vycb avatar

Stargazers

Holovko Vladyslav avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.