I would like to translate words from English to Language X trough terminal
If it is possible, what kind of dictionaries there are?
Is it possible to use online services like webxicon.org trough terminal?
I would like to translate words from English to Language X trough terminal
If it is possible, what kind of dictionaries there are?
Is it possible to use online services like webxicon.org trough terminal?
You can install dictd
server and use Freedict Dictionary database for word translations.
Install dictd:
sudo apt-get install dictd
Install translation database. eg. dict-freedict-eng-fra for English to French translation, dict-freedict-eng-spa for English to Spanish translation.
sudo apt-get install dict-freedict-eng-fra
sudo apt-get install dict-freedict-eng-spa
Usage:
View list of databases:
dict -D
Use a particular database eg. for English to Spanish translation:
dict -d fd-eng-spa "how are you?"
Install libtranslate-bin
with:
sudo apt-get install libtranslate-bin
eg. using online google translate engine:
echo "what are you doing" | translate-bin -s google -f en -t fr
Installing English dictionary databeses (gcide, wn, devil):
sudo apt-get install dict-gcide
sudo apt-get install dict-wn
sudo apt-get install dict-devil
Installing English Thesaurus database (moby-thesaurus):
sudo apt-get install dict-moby-thesaurus
Usage:
Using a particular database (eg. WordNet - wn):
dict -d wn "dictionary"
Not specifying a dict-database will output definitions/translations/thesaurus from all available databases. eg.
dict "dictionary"