[BUG]: 划词翻译在福昕pdf软件中无法使用
Description
在福昕pdf中划词翻译用快捷键显示的是空白,并且发现这时候软件会复制我划的词。
(监听剪切板没有打开,自动复制也是禁用)
之前用时没有问题,发现问题是在2月6日(2月2日使用正常,pdf和pot以及操作系统都没有升级)
如果在浏览器以及word划词就一切正常,并且也没有自动复制。
Reproduction
在提交issue截图的时候,发现我还打开了grammarly软件,关掉以后正常了。 (但是word或者浏览器打开grammarly软件也不影响pot,只是在pdf中影响)
Platform
Windows
System Version
Windows 11 教育版 22H2 22621.2861
Window System (Linux Only)
None
Software Version
2.7.4
Log File
[2024-02-07][03:02:12][INFO][pot] ============== Start App ==============
[2024-02-07][03:02:12][INFO][pot] Init Config Store
[2024-02-07][03:02:12][INFO][pot::config] Load config from: "C:\Users\feng\AppData\Roaming\com.pot-app.desktop\config.json"
[2024-02-07][03:02:12][INFO][pot::config] Config loaded
[2024-02-07][03:02:12][INFO][pot::tray] Update tray with language: zh_cn, copy mode: disable
[2024-02-07][03:02:12][INFO][pot::hotkey] Registered global shortcut: Ctrl+Shift+1 for hotkey_selection_translate
[2024-02-07][03:02:12][INFO][pot::hotkey] Registered global shortcut: Ctrl+Shift+2 for hotkey_input_translate
[2024-02-07][03:02:12][INFO][pot::hotkey] Registered global shortcut: Ctrl+Shift+3 for hotkey_ocr_recognize
[2024-02-07][03:02:12][INFO][pot::hotkey] Registered global shortcut: Ctrl+Shift+4 for hotkey_ocr_translate
[2024-02-07][03:02:12][TRACE][hyper::client::pool] checkout waiting for idle connection: ("https", gh.pylogmon.com)
[2024-02-07][03:02:12][DEBUG][reqwest::connect] starting new connection: https://gh.pylogmon.com/
[2024-02-07][03:02:12][DEBUG][reqwest::connect] proxy(http://127.0.0.1:10809) intercepts 'https://gh.pylogmon.com/'
[2024-02-07][03:02:12][TRACE][hyper::client::connect::http] Http::connect; scheme=Some("http"), host=Some("127.0.0.1"), port=Some(Port(10809))
[2024-02-07][03:02:12][DEBUG][hyper::client::connect::http] connecting to 127.0.0.1:10809
[2024-02-07][03:02:12][DEBUG][tiny_http] Server listening on 127.0.0.1:60828
[2024-02-07][03:02:12][DEBUG][tiny_http] Running accept thread
[2024-02-07][03:02:12][DEBUG][hyper::client::connect::http] connected to 127.0.0.1:10809
[2024-02-07][03:02:12][TRACE][reqwest::connect] tunneling HTTPS over proxy
[2024-02-07][03:02:13][TRACE][hyper::client::conn] client handshake Http1
[2024-02-07][03:02:13][TRACE][hyper::client::client] handshake complete, spawning background dispatcher task
[2024-02-07][03:02:13][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Busy }
[2024-02-07][03:02:13][TRACE][hyper::client::pool] checkout dropped for ("https", gh.pylogmon.com)
[2024-02-07][03:02:13][TRACE][tracing::span] encode_headers;
[2024-02-07][03:02:13][TRACE][tracing::span::active] -> encode_headers;
[2024-02-07][03:02:13][TRACE][hyper::proto::h1::role] Client::encode method=GET, body=None
[2024-02-07][03:02:13][TRACE][tracing::span::active] <- encode_headers;
[2024-02-07][03:02:13][TRACE][tracing::span] -- encode_headers;
[2024-02-07][03:02:13][DEBUG][hyper::proto::h1::io] flushed 143 bytes
[2024-02-07][03:02:13][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: KeepAlive, keep_alive: Busy }
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::conn] Conn::read_head
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::io] received 1369 bytes
[2024-02-07][03:02:14][TRACE][tracing::span] parse_headers;
[2024-02-07][03:02:14][TRACE][tracing::span::active] -> parse_headers;
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::role] Response.parse bytes=1369
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::role] Response.parse Complete(1261)
[2024-02-07][03:02:14][TRACE][tracing::span::active] <- parse_headers;
[2024-02-07][03:02:14][TRACE][tracing::span] -- parse_headers;
[2024-02-07][03:02:14][DEBUG][hyper::proto::h1::io] parsed 30 headers
[2024-02-07][03:02:14][DEBUG][hyper::proto::h1::conn] incoming body is content-length (6111 bytes)
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::decode] decode; state=Length(6111)
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Body(Length(6003)), writing: KeepAlive, keep_alive: Busy }
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::decode] decode; state=Length(6003)
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Body(Length(6003)), writing: KeepAlive, keep_alive: Busy }
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::decode] decode; state=Length(6003)
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::io] received 1369 bytes
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Body(Length(4634)), writing: KeepAlive, keep_alive: Busy }
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::decode] decode; state=Length(4634)
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::io] received 1369 bytes
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Body(Length(3265)), writing: KeepAlive, keep_alive: Busy }
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::decode] decode; state=Length(3265)
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::io] received 1369 bytes
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Body(Length(1896)), writing: KeepAlive, keep_alive: Busy }
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::decode] decode; state=Length(1896)
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::io] received 1369 bytes
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Body(Length(527)), writing: KeepAlive, keep_alive: Busy }
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::decode] decode; state=Length(527)
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::io] received 527 bytes
[2024-02-07][03:02:14][DEBUG][hyper::proto::h1::conn] incoming body completed
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::conn] maybe_notify; read_from_io blocked
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-07][03:02:14][TRACE][hyper::client::pool] pool dropped, dropping pooled (("https", gh.pylogmon.com))
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::dispatch] client tx closed
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::conn] State::close_read()
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::conn] State::close_write()
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Closed, writing: Closed, keep_alive: Disabled }
[2024-02-07][03:02:14][TRACE][hyper::proto::h1::conn] shut down IO complete
[2024-02-07][03:02:17][ERROR][selection::windows] get_text_by_automation error:操作成功完成。 (0x00000000)
[2024-02-07][03:02:17][INFO][selection::windows] fallback to get_text_by_clipboard
[2024-02-07][03:02:17][ERROR][selection::windows] get_text_by_automation error:Copy Failed
[2024-02-07][03:02:17][INFO][pot::window] Mouse position: 1485, 1221
[2024-02-07][03:02:17][INFO][pot::window] Current Monitor: Monitor { name: Some("\\.\DISPLAY1"), size: PhysicalSize { width: 2560, height: 1440 }, position: PhysicalPosition { x: 0, y: 0 }, scale_factor: 1.5 }
[2024-02-07][03:02:17][INFO][pot::window] Window not existence, Creating new window: translate
[2024-02-07][03:02:17][TRACE][os_info::imp] windows::current_platform is called
[2024-02-07][03:02:17][TRACE][os_info::imp] Returning Info { os_type: Windows, version: Semantic(10, 0, 22621), edition: Some("Windows 11 Education"), codename: None, bitness: X64, architecture: None }
[2024-02-07][03:02:17][TRACE][hyper::client::pool] checkout waiting for idle connection: ("https", fanyi.baidu.com)
[2024-02-07][03:02:17][DEBUG][reqwest::connect] starting new connection: https://fanyi.baidu.com/
[2024-02-07][03:02:17][DEBUG][reqwest::connect] proxy(http://127.0.0.1:10809) intercepts 'https://fanyi.baidu.com/'
[2024-02-07][03:02:17][TRACE][hyper::client::connect::http] Http::connect; scheme=Some("http"), host=Some("127.0.0.1"), port=Some(Port(10809))
[2024-02-07][03:02:17][DEBUG][hyper::client::connect::http] connecting to 127.0.0.1:10809
[2024-02-07][03:02:17][DEBUG][hyper::client::connect::http] connected to 127.0.0.1:10809
[2024-02-07][03:02:17][TRACE][reqwest::connect] tunneling HTTPS over proxy
[2024-02-07][03:02:17][TRACE][notify::windows] Event: path = C:\Users\feng\AppData\Roaming\com.pot-app.desktop\config.json, action = 3
[2024-02-07][03:02:17][TRACE][notify_debouncer_mini] raw event: Event { kind: Modify(Any), paths: ["C:\Users\feng\AppData\Roaming\com.pot-app.desktop\config.json"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None }
[2024-02-07][03:02:17][TRACE][notify::windows] Event: path = C:\Users\feng\AppData\Roaming\com.pot-app.desktop\config.json, action = 3
[2024-02-07][03:02:17][TRACE][notify_debouncer_mini] raw event: Event { kind: Modify(Any), paths: ["C:\Users\feng\AppData\Roaming\com.pot-app.desktop\config.json"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None }
[2024-02-07][03:02:19][TRACE][hyper::client::conn] client handshake Http1
[2024-02-07][03:02:19][TRACE][hyper::client::client] handshake complete, spawning background dispatcher task
[2024-02-07][03:02:19][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Busy }
[2024-02-07][03:02:19][TRACE][hyper::client::pool] checkout dropped for ("https", fanyi.baidu.com)
[2024-02-07][03:02:19][TRACE][tracing::span] encode_headers;
[2024-02-07][03:02:19][TRACE][tracing::span::active] -> encode_headers;
[2024-02-07][03:02:19][TRACE][hyper::proto::h1::role] Client::encode method=POST, body=Some(Known(6))
[2024-02-07][03:02:19][TRACE][tracing::span::active] <- encode_headers;
[2024-02-07][03:02:19][TRACE][tracing::span] -- encode_headers;
[2024-02-07][03:02:19][TRACE][hyper::proto::h1::encode] sized write, len = 6
[2024-02-07][03:02:19][TRACE][hyper::proto::h1::io] buffer.flatten self.len=133 buf.len=6
[2024-02-07][03:02:19][DEBUG][hyper::proto::h1::io] flushed 139 bytes
[2024-02-07][03:02:19][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: KeepAlive, keep_alive: Busy }
[2024-02-07][03:02:19][TRACE][notify_debouncer_mini] debounced event: Any
[2024-02-07][03:02:20][TRACE][hyper::proto::h1::conn] Conn::read_head
[2024-02-07][03:02:20][TRACE][hyper::proto::h1::io] received 481 bytes
[2024-02-07][03:02:20][TRACE][tracing::span] parse_headers;
[2024-02-07][03:02:20][TRACE][tracing::span::active] -> parse_headers;
[2024-02-07][03:02:20][TRACE][hyper::proto::h1::role] Response.parse bytes=481
[2024-02-07][03:02:20][TRACE][hyper::proto::h1::role] Response.parse Complete(413)
[2024-02-07][03:02:20][TRACE][tracing::span::active] <- parse_headers;
[2024-02-07][03:02:20][TRACE][tracing::span] -- parse_headers;
[2024-02-07][03:02:20][DEBUG][hyper::proto::h1::io] parsed 9 headers
[2024-02-07][03:02:20][DEBUG][hyper::proto::h1::conn] incoming body is content-length (68 bytes)
[2024-02-07][03:02:20][TRACE][hyper::proto::h1::decode] decode; state=Length(68)
[2024-02-07][03:02:20][DEBUG][hyper::proto::h1::conn] incoming body completed
[2024-02-07][03:02:20][TRACE][hyper::proto::h1::conn] maybe_notify; read_from_io blocked
[2024-02-07][03:02:20][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-07][03:02:20][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-07][03:02:20][TRACE][hyper::client::pool] put; add idle connection for ("https", fanyi.baidu.com)
[2024-02-07][03:02:20][DEBUG][hyper::client::pool] pooling idle connection for ("https", fanyi.baidu.com)
[2024-02-07][03:02:20][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-07][03:02:20][TRACE][hyper::client::pool] idle interval checking for expired
Additional Information
No response
同样的问题,在pdf软件中无法划词翻译,但是任何别的软件(chrome,notepad之类的)都是好的。 我尝试了两款pdf软件:PDF-XChange Editor和zotero自带的pdf reader,都不可以划词翻译。系统是win 10。后台没有开grammarly。 我目前的代替方法是利用截屏取词。
今天发现,不用grammarly也会有pdf中划词无反应的情况,和之前上述的情况一致,划词无反应显示空白,但是会复制我的划词内容,如果有时候正常翻译了,就不会复制这些内容。
请问这个bug能修复吗,在福昕PDF中划词翻译这个功能对我很重要,已经被困扰有一段时间了。 如果作者没时间的话,可以稍微讲一下出现了什么问题,大家一起头脑风暴一下帮帮忙?
我也是这个问题。无法正常在foxit pdf中取词,但是在notepad和word中正常。问题也是2024-02-06出现的。迂回的解决办法是使用老版本2.5.1,这个可以在foxit pdf中取词