Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xuchunyang/google-translate-chinese.el
google-translate 的配置,尝试提供更好的中文支持。
https://github.com/xuchunyang/google-translate-chinese.el
Last synced: about 1 month ago
JSON representation
google-translate 的配置,尝试提供更好的中文支持。
- Host: GitHub
- URL: https://github.com/xuchunyang/google-translate-chinese.el
- Owner: xuchunyang
- Created: 2015-01-13T15:43:34.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-20T07:21:35.000Z (almost 10 years ago)
- Last Synced: 2024-10-16T01:45:55.791Z (3 months ago)
- Language: Emacs Lisp
- Homepage:
- Size: 152 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
#+Title: 在 Emacs 中使用 Google 翻译
* 关于
这是我的关于 [[https://github.com/atykhonov/google-translate][google-translate]] 的配置,尝试提供更好的中文支持。
* 依赖
- [[https://github.com/atykhonov/google-translate][google-translate]]
- [[https://github.com/auto-complete/popup-el][popup-el]]
- [[https://github.com/Bruce-Connor/names][names]]
- [[https://github.com/xuchunyang/chinese-word-at-point.el][chinese-word-at-point.el]]以上 3 个包 Melpa 中都有,可以用 =package.el= 安装。需要注意的是:其中 [[https://github.com/xuchunyang/chinese-word-at-point.el][chinese-word-at-point.el]] 需要安装好 [[https://github.com/fxsjy/jieba][结巴中文分词]] 才能使用。
* 使用
- google-translate-chinese-at-point :: 翻译光标下的词,用 buffer 显示结果
- google-translate-chinese-at-point-echo-area :: 翻译光标下的词,用 echo area 显示结果
- google-translate-chinese-query :: 手动输入需要翻译的内容,用 buffer 显示结果
- google-translate-chinese-open-word-with-web :: 搜索附近的词,用浏览器打开。
- google-translate-chinese-search-at-point-and-replace :: 翻译光标下的词,用 popup menu 显示结果,并用选择的结果替换光标下的词(见下图)[[http://i.imgur.com/kuuIn6v.gif][http://i.imgur.com/kuuIn6v.gif]]