Skip to content

Latest commit

 

History

History
58 lines (45 loc) · 2.35 KB

a hardcore translation tool in command line.md

File metadata and controls

58 lines (45 loc) · 2.35 KB

硬核的命令行翻译工具

在日常的开发和学习的过程里经常遇到不熟悉的单词,我用过了很多翻译软件,还没有在交互、功能、设计上都能让我爆满意的一款产品。所以在这次重装系统之后,又回到了最初使用的命令行翻译。

命令行翻译的优点和缺点都很好理解。优点是方便、快捷、GEEK(如果这算优点的话),缺点是只能翻译单词。

此工具包使用详情可看官网,我也给出简单的安装步骤。

  1. 确保系统有nodejs。
$ node --version
  1. 安装
$ npm install fanyi -g
  1. 翻译实例
$ fanyi sad

-  sad  [ sæd ]  ~  fanyi.youdao.com

 - adj. 伤心的,难过的;令人伤心的,让人难过的;糟糕的,不能令人接受的;不幸的,可怜的;(歌曲或音乐)显露悲伤的,伤感的;状况不佳的;<非正式>(人)可悲的,不受人尊敬的;<非正式> 老土的,过时的;(面团)发得不好的
 - n. 季节性情感障碍(SAD)

 1. sad
    悲伤的,难过的,季节性情绪失调,社交回避及苦恼量表
 2. Sad Movie
    悲伤电影,悲伤电影原声大碟,真的爱你
 3. sad dog
    易闯祸的人,放荡的人,寻欢作乐的人,粗野的家伙

  --------

 sad  英[ sæd ]  美[ sæd ]  ~  iciba.com

 - adj. 悲哀的;糟糕的;可悲的;令人遗憾的;

 1. Sad is an antonym of happy.
    sad(悲哀的)是happy(愉快的)的反义词.
 2. But SAD is just the tip of the iceberg, explains Terman.
    但是SAD(季节性情绪紊乱)只是冰山一角, 特曼解释说.
 3. This condition is called seasonal affective disorder, or SAD for short.
    这种病情叫做季节性情感失调症,或简称SAD。
 4. Been webbing could make sad ones happy, and happy ones sad, and sad ones worse, and happy ones better.
    网络可以让开心的人悲伤, 让悲伤的人开心;也可以让开心的人更开心,让悲伤的人更悲伤.
 5. Since ancient times, people's minds in a positive , always sad sad sigh, lonely desolation.
    自古以来, 阳关在人们心中, 总是凄凉悲惋, 寂寞荒凉.

  --------

\  sad  ~  dictionaryapi.com

  - affected with or expressive of grief or unhappiness
  - causing or associated with grief or unhappiness
  - of little worth
  - of a dull somber color

  --------