-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query error #15
Comments
CP-1252 不支持中文字符 你可以试试把 |
in case it helps, i'm attaching the file i'm using, which i've modified to translate into hebrew, and which doesn't produce those errors: |
这个问题和 Goldendict 有关,在中文的 Windows 系统上面,只能输出使用 gbk 编码的字符,从你截图的报错信息来看是只能输出 cp1252 编码的字符,超出此字符编码范围就会报错,具体怎么解决,现在我也没整明白 |
Thanks! But the problem still exists. |
你截图中的版本和我使用的版本是一致的,有上面所说的问题。 |
这个是goldendict版本的问题吗?能够快点解决就好啦 |
谢谢分享,使用中有2个问题希望您能帮忙解答下: |
请问怎么能只显示单一的翻译结果,把定义和其他频率的翻译给去掉? |
@wangran915 |
调整了CSS,字体和定义已经按您说的搞好了。就不知道以下部分是否也能去除?感谢您的回复!祝您生活愉快!
[image: image.png]
xinebf <notifications@github.com> 于2020年2月4日周二 下午1:42写道:
… @wangran915 <https://github.com/wangran915>
字体大小, Goldendict 工具栏中有缩放按键. 也可以改 CSS
<https://github.com/xinebf/google-translate-for-goldendict/blob/eed093fdf5556ed181f8fc979439bd670d06c59c/googletranslate.py#L94>
的部分.
音频, 没有加入的计划.
去掉定义, 修改
<https://github.com/xinebf/google-translate-for-goldendict/blob/eed093fdf5556ed181f8fc979439bd670d06c59c/googletranslate.py#L149> gtrans
= GoogleTranslate(result_type='html', definitions_en=False)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15?email_source=notifications&email_token=AIRF4VPV325LOXBW73KOPM3RBD547A5CNFSM4KCT2JMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKWNL4A#issuecomment-581752304>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIRF4VKK3ODF5P344S4OX6DRBD547ANCNFSM4KCT2JMA>
.
|
例:
^_^: Translate en To zh-CN
Translations
翻译
以下部分是否也能去除?
=========
0_0: Translations of Translations
# 名.
翻译: translation, interpretation, rendering, rendition, version, decipherment
翻: turn, translation, turnover
解答: answer, solution, explanation, response, reply, respond
来自The Little Dict
王然 <wr92yq@gmail.com> 于2020年2月4日周二 下午4:59写道:
… 调整了CSS,字体和定义已经按您说的搞好了。就不知道以下部分是否也能去除?感谢您的回复!祝您生活愉快!
[image: image.png]
xinebf ***@***.***> 于2020年2月4日周二 下午1:42写道:
> @wangran915 <https://github.com/wangran915>
> 字体大小, Goldendict 工具栏中有缩放按键. 也可以改 CSS
> <https://github.com/xinebf/google-translate-for-goldendict/blob/eed093fdf5556ed181f8fc979439bd670d06c59c/googletranslate.py#L94>
> 的部分.
> 音频, 没有加入的计划.
> 去掉定义, 修改
> <https://github.com/xinebf/google-translate-for-goldendict/blob/eed093fdf5556ed181f8fc979439bd670d06c59c/googletranslate.py#L149> gtrans
> = GoogleTranslate(result_type='html', definitions_en=False)
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#15?email_source=notifications&email_token=AIRF4VPV325LOXBW73KOPM3RBD547A5CNFSM4KCT2JMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKWNL4A#issuecomment-581752304>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AIRF4VKK3ODF5P344S4OX6DRBD547ANCNFSM4KCT2JMA>
> .
>
|
@wangran915 |
124: self.get_result(resp_alt)
128: self.get_result(resp)
我这边显示这两行是这个,但删除后查单词就报错, 查句子就只显示原句.
xinebf <notifications@github.com> 于2020年2月23日周日 下午7:29写道:
… @wangran915 <https://github.com/wangran915>
分别移除 124
<https://github.com/xinebf/google-translate-for-goldendict/blob/eed093fdf5556ed181f8fc979439bd670d06c59c/googletranslate.py#L124>,
128
<https://github.com/xinebf/google-translate-for-goldendict/blob/eed093fdf5556ed181f8fc979439bd670d06c59c/googletranslate.py#L128>
两行
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15?email_source=notifications&email_token=AIRF4VI6TUMM2EX34JRL3S3REJM2FA5CNFSM4KCT2JMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMVZLDI#issuecomment-590058893>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIRF4VN7SC6XJWN7BJGTX2DREJM2FANCNFSM4KCT2JMA>
.
|
你好,
错误如图显示。
不知道哪里出了问题,是否可以给个解答?
谢谢!
The text was updated successfully, but these errors were encountered: