Skip to content

Commit

Permalink
Merge pull request #10 from liszd/develop
Browse files Browse the repository at this point in the history
更新版本 1.2.2
  • Loading branch information
whyliam committed May 1, 2016
2 parents 719749a + c38e3ae commit 6378bff
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# whyliam.workflows.youdao

有道翻译 workflow v1.2.1
## 有道翻译 workflow v1.2.2

默认快捷键 "yd",查看翻译结果。

Expand All @@ -10,14 +10,25 @@
4. 打开有道翻译页面,查看详细内容
5. 直接在打出翻译结果

*功能*
**功能**

1.`回车` 复制
2.`Control+回车` 打开有道翻译页面
3.`Command+回车` 直接在打出翻译结果
4.`Shift+回车` 直接发音

[下载](https://github.com/liszd/whyliam.workflows.youdao/blob/master/whyliam.workflows.youdao.alfredworkflow?raw=true)
[点击下载](https://github.com/liszd/whyliam.workflows.youdao/blob/master/whyliam.workflows.youdao.alfredworkflow?raw=true)

### 其他版本

A\. [kaiye/workflows-youdao](https://github.com/kaiye/workflows-youdao)

1. 双击 `command` 翻译文本
2. `enter` 同步单词到有道在线单词本
3. `alt + enter` 翻译至剪切板
4. `shift + enter` 直接发音
5. `control + enter` 打开有道翻译页面
6. `command + enter` 直接在光标处打出翻译结果

## Demo

Expand Down
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ end alfred_script</string>
</dict>
</array>
<key>readme</key>
<string>有道翻译 workflow v1.2.1
<string>有道翻译 workflow v1.2.2
默认快捷键 "yd",查看翻译结果。
Expand Down
2 changes: 1 addition & 1 deletion splitargs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def getargs(wf):
part = int(sys.argv[2])

if part == 1:
print query[1]
sys.stdout.write(query[1].strip())
elif part == 2:
if query[2]:
bashCommand = "say --voice='Samantha' " + query[2]
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.1
1.2.2
Binary file modified whyliam.workflows.youdao.alfredworkflow
Binary file not shown.

0 comments on commit 6378bff

Please sign in to comment.