De acordo com as Leis 12.965/2014 e 13.709/2018, que regulam o uso da Internet e o tratamento de dados pessoais no Brasil, ao me inscrever na newsletter do portal DICAS-L, autorizo o envio de notificações por e-mail ou outros meios e declaro estar ciente e concordar com seus Termos de Uso e Política de Privacidade.


sdcv - dicionário via linha de comando

Colaboração: Rubens Queiroz de Almeida

Data de Publicação: 15 de maio de 2013

sdcv é uma versão para console do dicionário StarDict. A grande vantagem desta ferramenta é que você não precisa estar conectado à Internet para fazer uma consulta. Não está disponível (ainda) um dicionário inglês/português, então a dica de hoje aplica-se apenas para quem possui um razoável conhecimento da língua inglesa.

Instalação

Em sistemas Debian GNU/Linux e derivados, digite:

  $ sudo apt-get install sdcv

Em seguida, baixe os dicionários desejados. Os dicionários podem ser baixados dos seguintes sites:

  1. Abloz.com
  2. Abloz.com misc
  3. Free On-Line Dictionary of Computing

A lista de dicionários disponíveis é muito grande. Eu instalei os seguintes dicionários:

Para instalar os dicionários, siga os seguintes passos:

  1. crie o diretório para os arquivos dos dicionários:
      sudo mkdir -p /usr/share/stardict/dic/
    
  2. abra os arquivos bz2 baixados na localização criada no passo anterior:
      sudo tar xvjf stardict-dictd-moby-thesaurus-2.4.2.tar.bz2 -C /usr/share/stardict/dic/
    
    Faça o mesmo para cada um dos dicionários baixados.

    Para consultar, basta digitar o nome do comando, sdcv, seguido do termo que se deseja consultar:

      sdcv ibm
      trademark   International Business Machines the
      world's largest computer company, based in the
      US, which produces both  hardware and  software,
      especially for business users. IBM is sometimes
      informally called "Big Blue".//
      
      -->Jargon File
      -->IBM
      
      IBM /I-B-M/ Once upon a time, the computer
      company most hackers loved to hate; today, the
      one they are most puzzled to find themselves
      liking.
      
      From hackerdom's beginnings in the mid-1960s to
      the early 1990s, IBM was regarded with active
      loathing. Common expansions of the corporate
      name included: Inferior But Marketable;
      It's Better Manually; Insidious Black Magic;
      It's Been Malfunctioning; Incontinent Bowel
      Movement; and a near-{infinite} number of even
      less complimentary expansions (see also {fear
      and loathing}). What galled hackers about most
      IBM machines above the PC level wasn't so much
      that they were underpowered and overpriced
      (though that counted against them), but that
      the designs were incredibly archaic, {crufty},
      and {elephantine} ... and you couldn't _fix_
      them -- source code was locked up tight, and
      programming tools were expensive, hard to find,
      and bletcherous to use once you had found them.
      
      We didn't know how good we had it back then. In
      the 1990s, Microsoft became more noxious and
      omnipresent than IBM had ever been. Then, in the
      1980s IBM had its own troubles with Microsoft
      and lost its strategic way, receding from the
      hacker community's view.
      
      In the late 1990s IBM re-invented itself as a
      services company, began to release open-source
      software through its AlphaWorks group, and began
      shipping {Linux} systems and building ties to
      the Linux community. To the astonishment of all
      parties, IBM emerged as a staunch friend of the
      hacker community and {open source} development.
      
      This lexicon includes a number of entries
      attributed to `IBM'; these derive from some
      rampantly unofficial jargon lists circulated
      within IBM's formerly beleaguered hacker
      underground.
    

    Hilário, não?

    Se você quiser, você pode fazer com que os caracteres deslizem lentamente pela tela, facilitando a leitura:

      sdcv linux | pv -qL10
    

Referências

Adicionar comentário

* Campos obrigatórios
5000
Powered by Commentics

Comentários

Nenhum comentário ainda. Seja o primeiro!


Veja a relação completa dos artigos de Rubens Queiroz de Almeida