We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
网址:huggingface
这个页面中划词失败,其他网页也有类似情况。
可重现
打开网页,选中任意字符,快捷键>划词翻译。
com.izual.Easydict 2025-02-20--08-19-46-498.log.zip
期望划词-取词成功翻译
No response
Apple M1 mini, macOS 14.0
The text was updated successfully, but these errors were encountered:
可能是 AppleScript 取词出现了异常,请检查浏览器是否开启了【允许 Apple 事件中的 JavaScript】,如果已开启,请尝试关闭,然后重新开启。
另外,【隐私与安全性】-【自动化】下面的权限设置也类似,关闭后重新开启试试。
Sorry, something went wrong.
谢谢回复。我测试了一下,
当【允许 Apple 事件中的 JavaScript】 开启:有的网页能取词,有的不能。 比如当前github issues 页面就能正常取词。切换标签页到huggingface页面就无法取词。
当【允许 Apple 事件中的 JavaScript】 关闭:所有网页都能取词。 无论是github还是huggingface,测试了几个页面都可以。
chrome版本 133.0.6943.127(正式版本) (arm64)
当【允许 Apple 事件中的 JavaScript】 关闭:所有网页都能取词。
当 Accessibility 取词失败时,浏览器会优先使用 AppleScript 取词,而不是强制取词。
某些异常情况下,AppleScript 取词成功,但返回结果是空的,因此会失败。
如果此时关闭 JavaScript 事件,则会直接报错,然后会尝试进行强制取词,这时候就取词成功了。
稍后我们会优化浏览器取词流程,尽量确保取词成功。
2.12.0 版本已改进浏览器取词。
tisfeng
No branches or pull requests
请先确认以下事项:
问题描述
网址:huggingface
这个页面中划词失败,其他网页也有类似情况。
该问题是否可以稳定重现?
可重现
重现步骤
打开网页,选中任意字符,快捷键>划词翻译。
截图
运行日志(zip 文件)
com.izual.Easydict 2025-02-20--08-19-46-498.log.zip
期望结果
期望划词-取词成功翻译
解决方案(可选)
No response
设备型号 && 系统版本
Apple M1 mini, macOS 14.0
是否愿意提交 PR 解决该问题?
The text was updated successfully, but these errors were encountered: