Skip to content
New issue

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

🐞 反馈问题:将“换行符”转换为“空格”功能在adobe acobat中失效 #563

Open
5 of 6 tasks
Piggy-Boy opened this issue May 24, 2024 · 3 comments
Open
5 of 6 tasks
Assignees
Labels
bug Something isn't working fixed in next release The issue will be closed once next release is available good first issue Good for newcomers

Comments

@Piggy-Boy
Copy link

Piggy-Boy commented May 24, 2024

请先确认以下事项:

  • 请务必查看 常见问题
  • 已仔细阅读了 README
  • issues 页面搜索过问题(包括已关闭的 issue),但未能找到解决方法
  • Easydict 已升级到 最新版本
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述

在使用adobe acrobat打开的pdf进行划词翻译时,无法通过“将换行符转换为空格”功能将空格替换。
issues #513 最新的评论也报告了此问题

附:此功能在用“预览”app打开pdf时有效,仅在adobe acrobat中失效

该问题是否可以稳定重现?

可重现

重现步骤

  1. adobe acrobat打开pdf
  2. 使用鼠标划词或者快捷键翻译对多行文本进行翻译
  3. 点击、选中文本点击“将换行符转换为空格”均无效

截图

issue

期望结果

“将换行符转换为空格”功能能支持adobe acrobat,自动或者手动替换换行均可

解决方案(可选)

个人猜测:可能是adobe acobat中的换行符"\r"、"\n"、"\r\n"与代码中检测不一致。

设备型号 && 系统版本

Apple M1 Pro, MacOS 13.5.1

是否愿意提交 PR 解决该问题?

  • 我愿意提交 PR
@Piggy-Boy Piggy-Boy added the bug Something isn't working label May 24, 2024
Copy link

Hello Piggy-Boy, Thank you for your first issue contribution 🎉

@tisfeng
Copy link
Owner

tisfeng commented May 24, 2024

我没用过 adobe acobat,有人能帮忙测一下这个问题吗

@tisfeng tisfeng added the good first issue Good for newcomers label May 25, 2024
@tisfeng
Copy link
Owner

tisfeng commented May 25, 2024

感谢反馈,调试发现 adobe acobat 中使用的换行符是 \r 而不是常用的 \n,稍后我处理一下。

@tisfeng tisfeng self-assigned this May 25, 2024
@tisfeng tisfeng added the fixed in next release The issue will be closed once next release is available label May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in next release The issue will be closed once next release is available good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants