Skip to content
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

添加长效开关 #2

Open
xiaoxinshiwo opened this issue Aug 28, 2023 · 22 comments
Open

添加长效开关 #2

xiaoxinshiwo opened this issue Aug 28, 2023 · 22 comments

Comments

@xiaoxinshiwo
Copy link

首先感谢能够开源这么棒的软件👍
First of all thank you can source this great software.

能不能增加一个长效开关,不用每输一句话就按一次Alt+Y激活?
Can increase a long-acting switch, need not every input sentence and then press Alt Y activation?

PS: 上面的英语是这个软件翻译的,能够看到翻译的不是那么多的准确,能否提供更改翻译源的功能?

@sxzxs
Copy link
Owner

sxzxs commented Aug 28, 2023

我研究下其他api,目前是有道的

@xiaoxinshiwo
Copy link
Author

可否增加google translate?

@sxzxs
Copy link
Owner

sxzxs commented Aug 31, 2023

可否增加google translate?

查了一下,google之前的api不能访问了,应该比较难

@sxzxs
Copy link
Owner

sxzxs commented Aug 31, 2023

已找到api接口,得科学上网

@sxzxs
Copy link
Owner

sxzxs commented Aug 31, 2023

可否增加google translate?

已添加

@xiaoxinshiwo
Copy link
Author

image
已科学,但是google translate不可用,配置如下:
{
"cd" : "google",
"all_api" : ["baidu", "youdao", "google"],
"youdao":
{
"is_open" : 0
},
"baidu" :
{
"is_open" : 0,
"BaiduFanyiAPPID" : "",
"BaiduFanyiAPPSEC": "",
"is_real_time_translate" : 0
},
"google":
{
"is_open" : 1,
"is_real_time_translate" : 0
}
}
现象:
image
点击enter第一次返回【google】后面是空白

@sxzxs
Copy link
Owner

sxzxs commented Sep 1, 2023

看看
https://translate.googleapis.com/translate_a/single?dt=t&client=gtx&sl=en&tl=zh-CN&dj=1&ie=UTF-8&oe=UTF-8&q=send
访问这个链接会下载json文件,api就是调用的这个

@huhexian
Copy link

huhexian commented Sep 1, 2023

我也建议添加长效开关。

@xiaoxinshiwo
Copy link
Author

看看 https://translate.googleapis.com/translate_a/single?dt=t&client=gtx&sl=en&tl=zh-CN&dj=1&ie=UTF-8&oe=UTF-8&q=send 访问这个链接会下载json文件,api就是调用的这个

{"sentences":[{"trans":"发送","orig":"send","backend":10}],"src":"en","spell":{}}

@sxzxs
Copy link
Owner

sxzxs commented Sep 1, 2023

有输入空格吗,因为配置的 is_real_time_translate, 需要空格触发

@xiaoxinshiwo
Copy link
Author

is_real_time_translate

可以了,但是可以不用空格触发吗

@sxzxs
Copy link
Owner

sxzxs commented Sep 1, 2023

好像有bug,正常is_real_time_translate配置1就可以

@xiaoxinshiwo
Copy link
Author

好像有bug,正常is_real_time_translate配置1就可以

嗯嗯,我配置成了1还是要空格触发,麻烦再修复下,很棒的软件👍

@xiaoxinshiwo
Copy link
Author

我也建议添加长效开关。

麻烦作者也考虑下这个建议

@sxzxs
Copy link
Owner

sxzxs commented Sep 1, 2023

我也建议添加长效开关。

麻烦作者也考虑下这个建议

好的

@sxzxs
Copy link
Owner

sxzxs commented Sep 1, 2023

is_real_time_translate

可以了,但是可以不用空格触发吗

提交了

@xiaoxinshiwo
Copy link
Author

is_real_time_translate

可以了,但是可以不用空格触发吗

提交了

Perfect

@StarDJJ
Copy link

StarDJJ commented Sep 6, 2023

长效开关是咋用的呀

@xiaoxinshiwo
Copy link
Author

长效开关是咋用的呀

开关开启,在持续的英语环境中不用每次点击快捷键Alt + Y才触发翻译面板,目前还没实现呢

@sxzxs
Copy link
Owner

sxzxs commented Sep 7, 2023

长效开关是指, alt + y调用软件后,enter键输入到文本,接下来 输入字母,继续执行翻译吗?

@xiaoxinshiwo
Copy link
Author

长效开关是指, alt + y调用软件后,enter键输入到文本,接下来 输入字母,继续执行翻译吗?

就是可以不用每次alt + y调用软件,就是适配连续英语输入环境

@Dualhearts
Copy link

是啊,不要翻译上屏后,又要alt+Y,太麻烦了。有一个长效的开关键就好了,退出就再按一下这个键,否则就一直处于实时打字翻译状态。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants