我看到我们在 debian 中有 freeict-all。
$ sudo aptitude install dict-freedict-all
[sudo] password for shirish:
The following NEW packages will be installed:
dict-freedict-afr-deu{a} dict-freedict-afr-eng{a} dict-freedict-all
dict-freedict-ara-eng{a} dict-freedict-bre-fra{a} dict-freedict-ces-eng{a}
dict-freedict-ckb-kmr{a} dict-freedict-cym-eng{a} dict-freedict-dan-eng{a}dict-freedict-deu-eng{a} dict-freedict-deu-fra{a} dict-freedict-deu-ita{a} dict-freedict-deu-kur{a} dict-freedict-deu-nld{a} dict-freedict-deu-por{a} dict-freedict-deu-swe{a} dict-freedict-deu-tur{a} dict-freedict-eng-afr{a} dict-freedict-eng-ara{a} dict-freedict-eng-ces{a} dict-freedict-eng-cym{a} dict-freedict-eng-deu{a} dict-freedict-eng-ell{a} dict-freedict-eng-fra{a} dict-freedict-eng-gle{a} dict-freedict-eng-hin{a} dict-freedict-eng-hrv{a} dict-freedict-eng-hun{a} dict-freedict-eng-ita{a} dict-freedict-eng-lat{a} dict-freedict-eng-lit{a} dict-freedict-eng-nld{a} dict-freedict-eng-pol{a} dict-freedict-eng-por{a} dict-freedict-eng-rom{a} dict-freedict-eng-rus{a} dict-freedict-eng-spa{a} dict-freedict-eng-srp{a} dict-freedict-eng-swe{a} dict-freedict-eng-swh{a} dict-freedict-eng-tur{a} dict-freedict-fra-bre{a} dict-freedict-fra-deu{a} dict-freedict-fra-eng{a} dict-freedict-fra-nld{a} dict-freedict-gla-deu{a} dict-freedict-gle-eng{a} dict-freedict-gle-pol{a} dict-freedict-hrv-eng{a} dict-freedict-hun-eng{a} dict-freedict-isl-eng{a} dict-freedict-ita-deu{a} dict-freedict-ita-eng{a} dict-freedict-jpn-deu{a} dict-freedict-jpn-eng{a} dict-freedict-jpn-fra{a} dict-freedict-jpn-rus{a} dict-freedict-kha-deu{a} dict-freedict-kha-eng{a} dict-freedict-kur-deu{a} dict-freedict-kur-eng{a} dict-freedict-kur-tur{a} dict-freedict-lat-deu{a} dict-freedict-lat-eng{a} dict-freedict-lit-eng{a} dict-freedict-mkd-bul{a} dict-freedict-nld-deu{a} dict-freedict-nld-eng{a} dict-freedict-nld-fra{a} dict-freedict-nno-nob{a} dict-freedict-oci-cat{a} dict-freedict-pol-gle{a} dict-freedict-por-deu{a} dict-freedict-por-eng{a} dict-freedict-san-deu{a} dict-freedict-slk-eng{a} dict-freedict-spa-ast{a} dict-freedict-spa-eng{a} dict-freedict-spa-por{a} dict-freedict-srp-eng{a} dict-freedict-swe-deu{a} dict-freedict-swe-eng{a} dict-freedict-swh-eng{a} dict-freedict-swh-pol{a} dict-freedict-tur-deu{a} dict-freedict-tur-eng{a}
0 packages upgraded, 86 newly installed, 0 to remove and 0 not upgraded.
Need to get 48.9 MB of archives. After unpacking 80.1 MB will be used.
Do you want to continue? [Y/n/?] n
Run Code Online (Sandbox Code Playgroud)
我的用例很简单,我只想翻译不同语言的短语,而无需访问网络。是否可以使用上述工具。即使它有点破损,语法语法等也可能是值得的。
GAD*_*D3R 10
一个命令行工具: translate-shell
Translate Shell(以前称为 Google Translate CLI)是由 Google Translate(默认)、Bing Translator、Yandex.Translate、DeepL Translator 和 Apertium 提供支持的命令行翻译器。它使您可以轻松访问终端中的这些翻译引擎之一。
apt install translate-shell
Run Code Online (Sandbox Code Playgroud)
例如:
trans 'Salut!, Bonjour!, Soyez le bienvenu!'
Run Code Online (Sandbox Code Playgroud)
示例输出:
Salut!, Bonjour!, Soyez le bienvenu!
(null)
Hi!, Hello!, Welcome!
/null/
Translations of Salut!, Bonjour!, Soyez le bienvenu!
[ Français -> English ]
Salut!, Bonjour!, Soyez le bienvenu!
Hi!, Hello!, Welcome!
Run Code Online (Sandbox Code Playgroud)
有关trans --help
更多详细信息,请参阅。
您可以使用该-p
选项来激活语音合成器:
trans 'Buenos días. ¿Cómo estás?' -p
Run Code Online (Sandbox Code Playgroud)
要更改目标语言,请使用[source_LANG]:[target_LANG]
e,g:(从西班牙语到法语):
trans es:fr 'Buenos días. ¿Cómo estás?'
Run Code Online (Sandbox Code Playgroud)
或者:
trans -s es -t fr 'Buenos días. ¿Cómo estás?'
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1071 次 |
最近记录: |