Metadata-Version: 2.1
Name: google-translate-for-goldendict
Version: 1.3.9
Summary: Add Google translate to GoldenDict
Home-page: https://github.com/xinebf/google-translate-for-goldendict
Author: xinebf
Author-email: me@xinebf.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests

# google-translate-for-goldendict
Add Google translate for GoldenDict

[GoldenDict][1] 是一个非常好用的词典工具, 却不能整句或整段的翻译, 时常需要借助 [Google translate][2] 对于将 Google 翻译加到 GoldenDict 是一个很好的方法 φ(゜▽゜*)♪

![screenshot](https://raw.githubusercontent.com/xinebf/google-translate-for-goldendict/master/screenshot.png)

**使用方法:**

需要 python 3.7+:

`pip3 install google-translate-for-goldendict`

GoldenDict - 编辑 - 字典 - 字典来源 - 程式

类型: `Html`

名称: `Google Translate`

命令行: `python -m googletranslate zh-CN %GDWORD%`

图示: `H:\PathTo\google_translate.png`

类型可以设为 `Html` 或 `纯文本`.

其中: `Html` 对应 `-r "html"`. `纯文本` 对应 `-r "plain"`

```
positional arguments:
  target          target language (eg: zh-CN)
  query           query string

optional arguments:
  -h, --help      show this help message and exit
  -p PROXY        proxy server (eg: 127.0.0.1:1080)
  -a ALTERNATIVE  alternative language (default: en)
  -r TYPE         result type (default: html)
  -k TKK          tkk
  -m              show synonyms
  -d              show definitions
  -e              show examples
```

[1]: https://github.com/goldendict/goldendict
[2]: https://translate.google.com/


