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.15k stars 304 forks source link

翻译框未弹出 #17

Closed yyj1126 closed 2 years ago

yyj1126 commented 2 years ago

FC715847-FECF-40FD-9CDD-0DF68FDEE82D EDDA85AC-1542-4103-96C8-432D8061A398 重启后依旧没有翻译框弹出,请问如何解决这个问题,谢谢

windingwind commented 2 years ago

please update to the latest version

yyj1126 commented 2 years ago

zotero和插件都已经是最新版的了

windingwind commented 2 years ago

Your screenshot seems to be PDF Translate v0.1.4, while the latest version is v0.2.6 If the latest add-on still have this bug, please go to Help->Debug Output Logging->View Output. Select some text after the debug window is opened and paste the logs in this issue. With debug logs, I can find out what's going on with your Zotero.

yyj1126 commented 2 years ago

image oh,I upgraded PDF Translate to the latest version after I cut the screenshot, but it still didn't work

windingwind commented 2 years ago

Thanks. I guess this is not a PDF Translate error, but a Zotero Reader error.

The addon will listen a build-in reader tab select event and wait until the reader is ready. Then it will insert popup/sidebar tab to the reader window. This is how it works.

However, due to some reasons your Zotero reader is never ready(or load too slow that the ready event meets a time out). May I ask how long it takes to load a reader tab(from Zotero start and the PDF is fully opened) for you?

yyj1126 commented 2 years ago

About one second. The process of loading doesn't seem to stuck.

windingwind commented 2 years ago

Weird. I will add some work around to try to solve this bug. Is this caused by an add-on conflict? Could you please try disabling all other add-ons and see if it works?

windingwind commented 2 years ago

Try this: v0.2.7.zip

v0.2.7 will re-init sidebar on translate if first init failed. This update may solve the issue.

yyj1126 commented 2 years ago

1414BD12-F39D-4BD0-BE20-320EAB11F0C4 8DEFE695-37BA-4C95-BD70-33C4797272F7 Sorry, I didn't reply in time just now. It shows 'sidebar load failed'

yyj1126 commented 2 years ago

Sorry, it seems to be the problem of my document. Problem is solved. Thank you a lot!

yyj1126 commented 2 years ago

Wish better!

windingwind commented 2 years ago

Thanks for your patient debug! I suggest you to provide your ducument with a debugID to the Zotero Forums, https://forums.zotero.org/discussions. I don't know if it is a bug with pdf.js or Zotero PDF Reader. The forums may know.