PabloRomanH / zhongzhong

Chrome extension that translates Chinese words when hovering on them.
https://chrome.google.com/webstore/detail/zhongzhong-an-improved-ch/dggcgdjndddfmcfoipccicfoajmciacf
34 stars 14 forks source link

Please create a new version or separate extension of zhongzhong to make it just work in google docs sir #61

Open leoyangdiary opened 11 months ago

leoyangdiary commented 11 months ago

So many people including me mainly use this extension in google docs, but it's not working for quite a long time now, and no one seems to have a solution to this, and I remember "Christian Schiller", the developer of zhongwen extension said: "it's not possible to fix this issue as Canva-Based google docs fundamentally break zhongwen, but it is possible to create a new one just for google doc."

Please sir, create a new version or separate extension of zhongzhong to make it just work in google docs!!!

benlieb commented 11 months ago

He means canvas-based, and it's referring to the HTML canvas element. It's not html, it's a bitmap, so you can't directly access the information under the cursor:

image
benlieb commented 11 months ago

You'd have to try to hack into the data mechanism of google docs, which could change at any moment, if it's even possible.

leoyangdiary commented 11 months ago

I see, thanks so much for the explanation, so basically there is absolutely no way to make zhongzhong or zhongwen to work in google docs as it used to be(hover over text and show translation). Ok I gave up looking for solutions for this!!!

benlieb commented 11 months ago

Not necessarily impossible. There may be a way by hacking into google’s data structures, or if Google actually makes this available intentionally to third-party developers. I don’t really know personally.

without these methods, it’s no different really from hovering over an image with your mouse. There is no way to know what is under the cursor, unless there is some data source which maps information to coordinates.

leoyangdiary commented 11 months ago

Actually I found this Japanese translation extension called "rikaikun", it can still access the text under the cursor in the google docs, just like how zhongwen/zhongzhong use to work in google docs!

3