go-translate
go-translate copied to clipboard
Translator on Emacs. Supports multiple engines such as Google, Bing, deepL, ChatGPT, StarDict, Youdao and so on.
比如像这样: 我看了下文档,以及源代码,还是不知道如何定制这个 `render` 。如果你可以添加的话,能否添加下这个功能代码呢?感谢。
`C-x C-q` to toggle read-only-mode. Doesn't handle the keybindings in writable mode. See #31.
Fix https://github.com/lorniu/go-translate/issues/35
Thanks for creating go-translate! I've been using the other package google-translate before :) Is there any parameter I can pass to (gts-buffer-render) in the : render section of gts-default-translator? So...
When I run `gts-do-translate`, it splits the current window horizontally with the translation buffer in the splitted window. Is it possible to configure it to change this behaviour to -...
evil mode
Hi, thanks for your work! I am using evil mode so there is an issue with keyboard shortcuts in *Go-Translate*. Do you have any suggestions? thanks paum
Hi, With the "old" go-translate, I had configured the rendered to show the results in a new buffer (which is now `gt-buffer-render`), but I had the same problem as https://github.com/lorniu/go-translate/issues/66...
I found that there is no specific mode defined for the prompt buffer with `:pick 'buffer` (e. g. something like `gt-prompt-buffer-mode`), and there is no specific keybinds for it to...
按照 chatgpt 的样子抄了一份用在 azure openai 上,测试了下可以正常运行。 不知道有没有更简单的方法从 chatgpt 上扩展成 azure openai ,毕竟功能基本相同。 对代码不是很熟悉,只有用这种抄的方法弄了一个,就比较冒失的发了上来,还请大佬决断。 另外,api-version 用的是 2023-05-15 ,原因是用新的版本 stream 会出错。
我目前暂时没办法提供充分的测试。 描述:在糟糕的网络环境(比如挂http代理这种时延很大的情况)下,运行`gt-do-translate`目前会遇到卡死整个emacs的情况,按`C-g`也没有反应。 补充:根据观察应该是有道词典的问题,google卡住的时候仍然可以动,之前我一直用的是bing和google,印象中没有卡死过。 相应配置如下: ```emacs-lisp (gt-langs '(en zh)) (gt-default-translator (gt-translator :taker (gt-taker) :engines (list (gt-youdao-dict-engine) (gt-bing-engine) (gt-google-engine)) :render (gt-buffer-render))) ``` 目前我用`async`包来规避这种情况,这样卡住的时候不会影响到编辑。 我的建议是,即使没有异步支持,应该设法让`C-g`可以打断当前的查询,而不是让用户只能等到超时才能动。