windingwind / zotero-pdf-translate

Translate PDF, EPub, webpage, metadata, annotations, notes to the target language. Support 20+ translate services.
GNU Affero General Public License v3.0
6.06k stars 301 forks source link

[Bug] 翻译完成后,点击添加笔记会再次重复翻译选中的文字 #758

Closed lil-i321 closed 1 month ago

lil-i321 commented 1 month ago

Is there an existing issue for this?

Have you checked the FAQ (https://github.com/windingwind/zotero-pdf-translate/issues/6)?

Are you using the latest Zotero and the latest plugin?

Environment

Describe the bug

翻译完成后,点击添加笔记会再次重复翻译选中的文字。 是不是百度这些api也是这样?由于Chatgpt api的网速满翻译的慢,用gpt会特别明显,肉眼可见地又翻译一次后才将译文注释添加到笔记区。

https://github.com/windingwind/zotero-pdf-translate/assets/57334649/5d6762d6-cd26-4074-b462-ecd3e48b467c

Debug Output

1

Anything else?

No response

lil-i321 commented 1 month ago

上面的问题修复了,但是: 在翻译窗口界面,点击“颜色块”添加注释后,也是再次翻译。 并且两次翻译的译文不一样,翻译界面并没有按照 “设置-翻译-服务-chatGPT-配置-prompt”的默认设置那样翻译,译文并没有包含“🔤 ” image