Ubuntu: 一个命令行下的翻译工具

687474703a2f2f64642d706572736f6e616c2e71696e6975646e2e636f6d2f53637265656e73686f7425323066726f6d253230323031352d30332d313725323032323a33363a31382e706e67

 

A translate tool in your command line, inspired by Fanyi.

 

Installation

// sudo apt-get install ruby  // 前提是已经安装了ruby
$ sudo gem install fy

 

Usage

Translation data is fetched from fanyi.youdao.com, and only support translation between Chinese and English.

Translate one word.

$ fy love

 love  [ lʌv ]

 - n. 恋爱;亲爱的;酷爱;喜爱的事物;爱情,爱意;疼爱;热爱;爱人,所爱之物
 - v. 爱,热爱;爱戴;赞美,称赞;喜爱;喜好;喜欢;爱慕
 - n. (英)洛夫(人名)

 1. Love
    爱,爱情,恋爱
 2. Endless Love
    无尽的爱,不了情,蓝色生死恋
 3. puppy love
    早恋,青春期恋爱,初恋

 

 

More words.

$ fy make love

 

 

More more words. Loop mode, CTRL+C to exit.

$ fy
> words
> to
> translate

 

 

Support Chinese, even sentence.

$ fy 和谐
$ fy 子非鱼焉知鱼之乐

 

 

LICENSE

MIT.

 

项目地址:https://github.com/dd1994/fy

转自:Ubuntu: 一个命令行下的翻译工具

 

 

 

 

 

 

 

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值