soimort / translate-shell

:speech_balloon: Command-line translator using Google Translate, Bing Translator, Yandex.Translate, etc.
https://www.soimort.org/translate-shell
The Unlicense
6.95k stars 392 forks source link

Languages that the wiki says have dictionaries don't have dictionaries #198

Open damaru2 opened 6 years ago

damaru2 commented 6 years ago

In the wiki https://github.com/soimort/translate-shell/wiki/Languages it says that languages like for example german have a dictionary, but after some tests I only saw that the dictionary feature is working in English, French and Spanish

eraserpencil commented 6 years ago

How did you test? In the interactive shell?

I have managed to get translations in the interactive shell, but not outside.

damaru2 commented 6 years ago

@eraserpencil The wiki says that German for instance has dictionary. But

trans -d de:de tabelle

outputs

tabelle

tabelle

However for English, Spanish and French every word outputs a list with definitions, as expected.

I get the same in the interactive shell. No definitions are output. The command

Translate Shell
(:q to quit)
Deutsch> tabelle
tabelle

tabelle

Deutsch> 
soimort commented 6 years ago

Just to clarify, in the Wiki, Has dictionary = Has at least a "See also" part for some common words.

$ trans de:de Welt
Welt

See also
    nicht von dieser Welt, zur Welt bringen, zur Welt kommen, am Arsch der Welt

Detailed explanation of words is most likely to be found in English, French, Spanish, Portuguese and Russian. It seems German merely has some random "See also" stuff. You may verify this through https://translate.google.com.

damaru2 commented 6 years ago

Ok, thank you. I think it is a bit ambiguous, since for English, Spanish and French it is an actual dictionary, it gives the meaning of the words. Maybe this should be in the wiki as a separated column. Btw, since you work with this a lot, do you know if any other translator gives definitions for other languages / do you know of the existence of offline dictionaries?

soimort commented 6 years ago

Specifically for German->English, DeepL does have a dictionary (trans doesn't support retrieving its items yet). There are also bab.la, Linguee (which covered most major European languages; none of these is supported in trans though).

damaru2 commented 6 years ago

I see. Thank you for your reply. I use your project as a part of mine but can only provide support for the languages I have a dictionary for. I will keep an eye on the evolution of translate shell to see if there are any updates regarding dictionaries. Your project is awesome, thank you!