Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Compatible with Python3(兼容Python3)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijie committed Mar 13, 2017
1 parent 85b3e13 commit 9e51ba2
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 13 deletions.
8 changes: 8 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
The MIT License (MIT)
Copyright (c) 2017 Feei. <[email protected]> All rights reserved

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
54 changes: 41 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## dict
[![GitHub release](https://img.shields.io/github/release/wufeifei/dict.svg)](https://github.com/wufeifei/dict/releases)
[![GitHub stars](https://img.shields.io/github/stars/wufeifei/dict.svg?style=social&label=Star)](https://github.com/wufeifei/dict/stargazers)
[![license](https://img.shields.io/github/license/wufeifei/dict.svg)](https://github.com/wufeifei/dict/blob/master/LICENSE)
> Linux命令行下中英文互译翻译工具
## 安装(Install)
Expand All @@ -16,11 +19,23 @@ sudo chmod +x /usr/local/bin/dict
```bash
$ dict test
###################################
# test 测试 (U: tɛst E: test )
# test 测试
# (U: tɛst E: test)
#
# n. 试验;检验
# vt. 试验;测试
# vi. 试验;测试
# n. (Test)人名;(英)特斯特
#
# Test : 测试
# 测验
# 检验
# Test Drive : Test Drive
# Test Drive
# 无限狂飙
# Test Engineer : 测试员
# 测试工程师
# 软件测试工程师
###################################
```

Expand All @@ -29,44 +44,57 @@ $ dict I love you
###################################
# I love you 我爱你
#
#
# 我爱你。
#
# I love you : 我爱你
#
# I love you : 我爱你
# ILOVEYOU蠕虫
# 寻找伴郎
# I really love you : 真的爱你
# I really love you : 真的爱你
# 其实很爱你
# 我是真的爱你
# I Do love you : 我是爱你的
# I Do love you : 我是爱你的
# 真的爱你
# 爱你我该怎么办
###################################
###################################
```

#### 中译英(Chinese To English)
```bash
$ dict 测试
###################################
# 测试 test (Pinyin: cè shì )
# 测试 test
# (Pinyin: cè shì)
#
# [试验] test
# measurement
#
# 测试 : Test
# test
# TST test
# 集成测试 : Integration testing
# Test d'intégration
# 통합 시험
# ANOVA测试 : Gage R&amp;R
# ANOVA gauge R&amp;R
###################################
```

```bash
$ dict 我爱你
###################################
# 我爱你 I love you (Pinyin: wǒ ài nǐ )
#
# 我爱你 I love you
# (Pinyin: wǒ ài nǐ)
#
# I love you
#
# 我爱你 : I love you
#
# 我爱你 : I love you
# Ich liebe dich
# Wuh that I love you
# 我也爱你 : I Love You Too
# 我也爱你 : I Love You Too
# And I Love You So
# Ik ook van jou
# 我就爱你 : The Arrangement
# 我就爱你 : The Arrangement
# gou couh gyaez mwngz muengh
# I'll just be love you
###################################
Expand Down

0 comments on commit 9e51ba2

Please sign in to comment.