Instalando um sistema tradutor de línguas no seu Linux

Este artigo nos mostra como fazer para criar uma solução instantânea de tradução de palavras entre diversos idiomas utilizando a dobradinha dictd e Kdict. Dessa forma deixamos de ficar dependentes de conexão com a internet, o que é padrão para a maioria dos front-ends disponíveis.

[ Hits: 109.786 ]

Por: Fábio Berbert de Paula em 24/01/2004 | Blog: https://www.instagram.com/alexabolada/


Obtendo e instalando o dictd



Nosso primeiro passo é o de fazer o download do pacote dictd, que é o nosso servidor de dicionários. Você pode ter um único servidor de dicionários em sua rede e acessar as traduções remotamente utilizando qualquer front-end. Veremos este recurso mais adiante.

Entre no diretório de FTP abaixo e procure pelo arquivo dictd-x.x.x.tar.gz. No momento em que este artigo foi escrito, estávamos na versão 1.9.7:

ATENÇÃO: Usuários de Debian podem instalar este pacote com o seguinte comando:

# apt-get install dictd

Usuários de RedHat/Fedora e derivados também encontrarão pacotes RPM no site www.rpmfind.net.

Se você não conseguiu um pacote binário para sua distribuição e deseja compilar o software, basta seguir a cartilha da compilação para instalar o dictd:

$ tar -zxvf dictd-1.9.7.tar.gz
$ cd dictd-1.9.7
$ ./configure
$ make
$ su
# make install


Pronto! Agora basta inicializar o daemon do dictd:

# /etc/init.d/dictd start

Página anterior     Próxima página

Páginas do artigo
   1. Introdução
   2. Obtendo e instalando o dictd
   3. Obtendo os dicionários
   4. Instalando o Kdict
   5. Configurando e utilizando o Kdict
Outros artigos deste autor

Criando um contador de downloads com PHP e MySQL

Como criar um keylogger em Python

Se preparando para obter certificação LPI

Tecnologia a seu favor: 3 motivos para ter um sistema financeiro e ganhar tempo no trabalho

Convertendo Texto em Fala com Python e pyttsx3

Leitura recomendada

Instalando o DB Designer

GNOME 3 no Slackware 14 com dropline GNOME

Mandriva Conectiva Linux 2006

adesklets: Uma leve e funcional ferramenta de displays

VLC, o reprodutor multimídia

  
Comentários
[1] Comentário enviado por lordello em 24/01/2004 - 11:33h

Muito bom cara, parabéns....
Queria saber qual o programa compatível para Gnome.
Existe o gnome-dictionary, mas não estou vendo a opção de escolher o dicionário a ser usado.
Falow!

[2] Comentário enviado por fabio em 24/01/2004 - 12:42h

Lordello, nesse caso você pode utilizar o babytrans, que utiliza as bibliotecas do GTK e também tem o recurso de ficar como tray icon no Gnome:
http://fjolliton.free.fr/babytrans/

[3] Comentário enviado por fabio em 24/01/2004 - 12:50h

Ah, e usando o gnome-dictionary aqui acabei de encontrar. Clique em Editar > Preferências e configure o campo Servidor para localhost, a partir daí os dicionários ficarão disponíveis no combo "Banco de dados" da mesma janela. Escolha o seu e zé fini! :)

[4] Comentário enviado por lordello em 24/01/2004 - 14:20h

Valeu!
=)

[5] Comentário enviado por cbueno em 25/01/2004 - 12:01h

Aqui em casa o kdict num rolou não.
quando tentei atualizar os dicionários ele retornou a seguinte msg de erro:

Unable to connect to:
localhost:2628
Arquivo ou diretório não encontrado

já tentei colocar o ip da minha placa de rede más tbm não rolou, só não tentei instalar o servidor ainda.

tem idéia o que pode ser?

[6] Comentário enviado por fabio em 25/01/2004 - 12:38h

Antes de rodar o kdict você se certificou de que o dictd está rodando? Para isso basta executar o seguinte comando:

$ telnet localhost 2628

Se der "connection refused", significa que o dictd não está rodando.

[7] Comentário enviado por jeffestanislau em 26/01/2004 - 09:14h

Parabéns fábio, por este artigo bem escrito e de grande utilidade!!!

[8] Comentário enviado por jose_maria em 10/08/2004 - 22:15h

Eu instalei tudo por apt-get depois configurei o Kdict como foi dito. Legal que você também pode usar o programa por telnet. Mas eu achei o dicionairio inglês-português fraco. Eu coloquei 'book' e ele não achou.:P

[9] Comentário enviado por dmarchetti em 10/06/2005 - 14:06h

Gostaria de saber como você fez para funcionar o dicionário inglês portugues. Instalei o dictd e quando inicio ele utilizando esse dicionário ele mostra a seguinte mensagem de erro:
Jun 10 13:36:53 files dictd[3008]: :I: 3008 starting dictd 1.9.11/rf on Linux 2.6.9-5.ELsmp Fri Jun 10 13:36:53 2005
Jun 10 13:36:53 files dictd[3008]: :E: locale 'C' can not be used for utf-8 dictionaries. Exiting
Quando utilizo o dicionário de italiano ele não apresenta erro.

Obrigado.

[10] Comentário enviado por dvrj em 12/04/2007 - 21:52h

oi. deu certo qdo enviei o arquivo eng-por.index para /usr/share/dictd/. dai config. o serv. pra localhost, e pronto.

[11] Comentário enviado por walber em 16/05/2007 - 02:02h

Kra muito bom msm!!!Parabêns.

[12] Comentário enviado por Mr. Anderson em 18/05/2007 - 14:19h

muito bom o artigo, mas não rodou no mandriva, quando eu insido o cmd make ele reporta erros no parce.c nas linhas 78, 89, 105 e 126. Alguem sabe se o mandriva não suporta o dictd ou se tenho que subir algum daemon para rodar a instalação.
obrigado

[13] Comentário enviado por abnlinux em 23/01/2008 - 14:01h

Legal o Artigo e aqui deu certo.

Caso queiram uma outra alternativa nesse link tem uma dica legal para usar o Stardict com os dicionários da Babylon

http://www.guiadohardware.net/dicas/convertendo-bgl-stardict.html

[14] Comentário enviado por mattosoft em 22/02/2008 - 06:05h

Muito bom, ajudou bastante

[15] Comentário enviado por josiel_lkp em 08/08/2010 - 15:20h

Olá Fábio, parabéns pelo artigo, gostaria de saber se tem alguma forma de eu instalar o kdict, pois no apt-get install aqui não tá dando e o link que tu passou no artigo tá quebrado, desde já, agradeço a atenção.
p.s.: Aqui o apt-get fala que o pacote não existe. :(

[16] Comentário enviado por brenocomp em 03/12/2010 - 11:43h

Parabéns pelo artigo, esse software é interessante.

Mas ele não seria um dicionário? Porque no título do artigo vc diz: Instalando um sistema tradutor de línguas no seu linux e pelo que vi ele é somente um dicionário. Tem como configurá-lo para ser um tradutor realmente? Se puder me auxiliar nisso.

Vlw, t+

[17] Comentário enviado por luisvasquez em 18/01/2011 - 00:35h

Parabéns, artigo muito bom. Há algum tempo eu procura um dicionário offline para Linux e só encontrava soluções piratas. Já conhecia o portal do dict mas sabia que existiam pacotes para instalação de servidores e assim, permitir a instalação offline.
Uma dica para os amigos: O kdict não está disponível no repositório do Ubuntu, mas é possível configurar o próprio gnome-dictionary do Ubuntu para usar o dictd, conforme artigo. Para tal configure o gnome-dictionary para usar o servidor 127.0.0.1 (lembrando de iniciar o dictd antes).
Aqui, eu criei um pequeno script para iniciar o dictd toda vez que eu abrir o gnome-dictionary.

[18] Comentário enviado por El Misionero em 07/04/2015 - 14:20h

Alguém poderia me dizer como devo fazer para que o Multilaser Nano funcione com Ubuntu 14.04?


[19] Comentário enviado por ede_linux em 03/01/2016 - 23:10h

Quando tento aceder a este link http://www-user.rhrk.uni-kl.de/~gebauerc/kdict/ dá 404 Not Found, como resolvo?

[20] Comentário enviado por fabio em 03/01/2016 - 23:52h


[19] Comentário enviado por ede_linux em 03/01/2016 - 23:10h

Quando tento aceder a este link http://www-user.rhrk.uni-kl.de/~gebauerc/kdict/ dá 404 Not Found, como resolvo?


O artigo é de 2004 rs ... O kdict não existe mais. Encontrei um similar:

$ sudo apt-get install goldendict

O resto do artigo ainda funciona que é uma beleza! :)

[21] Comentário enviado por removido em 30/05/2017 - 22:40h

Gostei da dica.

apt-get install -y dictd


apt-cache search dict-freedict

dict-freedict-afr-deu - Afrikaans-German dictionary for the dict server/client
dict-freedict-afr-eng - Afrikaans-English dictionary for the dict server/client
dict-freedict-all - meta-package to install or dictionary databases from the FreeDict project
dict-freedict-ara-eng - Arabic-English dictionary for the dict server/client
dict-freedict-bre-fra - Breton-French dictionary for the dict server/client
dict-freedict-ces-eng - Czech-English dictionary for the dict server/client
dict-freedict-ckb-kmr - Central Kurdish-Northern Kurdish dictionary for the dict server/client
dict-freedict-cym-eng - Welsh-English dictionary for the dict server/client
dict-freedict-dan-eng - Danish-English dictionary for the dict server/client
dict-freedict-deu-eng - German-English dictionary for the dict server/client
dict-freedict-deu-fra - German-French dictionary for the dict server/client
dict-freedict-deu-ita - German-Italian dictionary for the dict server/client
dict-freedict-deu-kur - German-Kurdish dictionary for the dict server/client
dict-freedict-deu-nld - German-Dutch dictionary for the dict server/client
dict-freedict-deu-por - German-Portuguese dictionary for the dict server/client
dict-freedict-deu-tur - German-Turkish dictionary for the dict server/client
dict-freedict-eng-afr - English-Afrikaans dictionary for the dict server/client
dict-freedict-eng-ara - English-Arabic dictionary for the dict server/client
dict-freedict-eng-ces - English-Czech dictionary for the dict server/client
dict-freedict-eng-cym - English-Welsh dictionary for the dict server/client
dict-freedict-eng-deu - English-German dictionary for the dict server/client
dict-freedict-eng-ell - English-Modern Greek (1453-) dictionary for the dict server/client
dict-freedict-eng-fra - English-French dictionary for the dict server/client
dict-freedict-eng-gle - English-Irish dictionary for the dict server/client
dict-freedict-eng-hin - English-Hindi dictionary for the dict server/client
dict-freedict-eng-hrv - English-Croatian dictionary for the dict server/client
dict-freedict-eng-hun - English-Hungarian dictionary for the dict server/client
dict-freedict-eng-ita - English-Italian dictionary for the dict server/client
dict-freedict-eng-lat - English-Latin dictionary for the dict server/client
dict-freedict-eng-lit - English-Lithuanian dictionary for the dict server/client
dict-freedict-eng-nld - English-Dutch dictionary for the dict server/client
dict-freedict-eng-pol - English-Polish dictionary for the dict server/client
dict-freedict-eng-por - English-Portuguese dictionary for the dict server/client
dict-freedict-eng-rom - English-Romany dictionary for the dict server/client
dict-freedict-eng-rus - English-Russian dictionary for the dict server/client
dict-freedict-eng-spa - English-Spanish dictionary for the dict server/client
dict-freedict-eng-srp - English-Serbian dictionary for the dict server/client
dict-freedict-eng-swe - English-Swedish dictionary for the dict server/client
dict-freedict-eng-swh - English-Swahili (individual language) dictionary for the dict server/client
dict-freedict-eng-tur - English-Turkish dictionary for the dict server/client
dict-freedict-fra-bre - French-Breton dictionary for the dict server/client
dict-freedict-fra-deu - French-German dictionary for the dict server/client
dict-freedict-fra-eng - French-English dictionary for the dict server/client
dict-freedict-fra-nld - French-Dutch dictionary for the dict server/client
dict-freedict-gla-deu - Scottish Gaelic-German dictionary for the dict server/client
dict-freedict-gle-eng - Irish-English dictionary for the dict server/client
dict-freedict-gle-pol - Irish-Polish dictionary for the dict server/client
dict-freedict-hrv-eng - Croatian-English dictionary for the dict server/client
dict-freedict-hun-eng - Hungarian-English dictionary for the dict server/client
dict-freedict-isl-eng - Icelandic-English dictionary for the dict server/client
dict-freedict-ita-deu - Italian-German dictionary for the dict server/client
dict-freedict-ita-eng - Italian-English dictionary for the dict server/client
dict-freedict-jpn-deu - Japanese-German dictionary for the dict server/client
dict-freedict-kha-deu - Khasi-German dictionary for the dict server/client
dict-freedict-kha-eng - Khasi-English dictionary for the dict server/client
dict-freedict-kur-deu - Kurdish-German dictionary for the dict server/client
dict-freedict-kur-eng - Kurdish-English dictionary for the dict server/client
dict-freedict-kur-tur - Kurdish-Turkish dictionary for the dict server/client
dict-freedict-lat-deu - Latin-German dictionary for the dict server/client
dict-freedict-lat-eng - Latin-English dictionary for the dict server/client
dict-freedict-lit-eng - Lithuanian-English dictionary for the dict server/client
dict-freedict-mkd-bul - Macedonian-Bulgarian dictionary for the dict server/client
dict-freedict-nld-deu - Dutch-German dictionary for the dict server/client
dict-freedict-nld-eng - Dutch-English dictionary for the dict server/client
dict-freedict-nld-fra - Dutch-French dictionary for the dict server/client
dict-freedict-nno-nob - Norwegian Nynorsk-Norwegian Bokmål dictionary for the dict server/client
dict-freedict-oci-cat - Occitan (post 1500)-Catalan dictionary for the dict server/client
dict-freedict-pol-gle - Polish-Irish dictionary for the dict server/client
dict-freedict-por-deu - Portuguese-German dictionary for the dict server/client
dict-freedict-por-eng - Portuguese-English dictionary for the dict server/client
dict-freedict-san-deu - Sanskrit-German dictionary for the dict server/client
dict-freedict-slk-eng - Slovak-English dictionary for the dict server/client
dict-freedict-spa-ast - Spanish-Asturian dictionary for the dict server/client
dict-freedict-spa-eng - Spanish-English dictionary for the dict server/client
dict-freedict-srp-eng - Serbian-English dictionary for the dict server/client
dict-freedict-swe-eng - Swedish-English dictionary for the dict server/client
dict-freedict-swh-eng - Swahili (individual language)-English dictionary for the dict server/client
dict-freedict-swh-pol - Swahili (individual language)-Polish dictionary for the dict server/client
dict-freedict-tur-deu - Turkish-German dictionary for the dict server/client
dict-freedict-tur-eng - Turkish-English dictionary for the dict server/client




xfce4-dict


Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts