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

🚀 功能建议:建议将换行符替换为空格功能在设置里常驻 #639

Open
4 of 5 tasks
Lhli001 opened this issue Aug 13, 2024 · 13 comments
Open
4 of 5 tasks
Assignees
Labels
enhancement New feature or request fixed in next release The issue will be closed once next release is available good first issue Good for newcomers

Comments

@Lhli001
Copy link

Lhli001 commented Aug 13, 2024

请先确认以下事项

  • 已仔细阅读了 README
  • issues 页面搜索过(包括已关闭的 issue),未发现类似功能建议
  • Easydict 已升级到 最新版本
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

功能描述

[首先感谢开发者的软件,在使用软件翻译pdf格式的文献时,经常出现一下问题(换行符每次都需要手动在中替换为空格),虽然OCR功能已足够好用,但在某些场景下还是使用划词更方便,谢谢!!
截屏2024-08-13 10 13 51
截屏2024-08-13 10 14 11
截屏2024-08-13 10 14 19

使用场景

翻译pdf格式的文献时

实现方案(可选)

No response

是否愿意提交 PR 实现该功能

  • 我愿意提交 PR 实现该功能
@Lhli001 Lhli001 added the enhancement New feature or request label Aug 13, 2024
Copy link

Hello Lhli001, Thank you for your first issue contribution 🎉

@tisfeng
Copy link
Owner

tisfeng commented Aug 13, 2024

建议将换行符替换为空格功能在设置里常驻

不是很理解,目前不是已经在窗口右上角的快捷菜单里面了吗?

@Lhli001
Copy link
Author

Lhli001 commented Aug 13, 2024

在阅读pdf文档时,每次都是这样子的,都不是连贯的一句话。能不能设置一个自动识别或者默认将换行符直接替换成空格或者删除的,不然每次都得在右上角的快捷菜单里点真的非常麻烦,
截屏2024-08-13 22 09 55

@tisfeng
Copy link
Owner

tisfeng commented Aug 13, 2024

你是说类似这样,在设置中添加一个默认选项【将换行符替换为空格】?

42641

@Lhli001
Copy link
Author

Lhli001 commented Aug 13, 2024

是的,不然每次翻译某些pdf文本时,第一行末尾和第二行开头如果本来是一个句子,会被分开,在翻译时是分开的单词或短语,而不是连贯的句子,如果每次都需要点击很影响效率。
但是好像也和文档本身有关,有时就不会出现这种现象。但是像下图这样,复制的时候看起来没什么问题(图1),但是到了输入框里,即使手动点击了将换行符替换为空格,也不能完全解决这个问题(图2),可能还是识别的能力稍差?在使用Xtranslator翻译同样的时就没有类似的情况(图3)。我上传了该pdf ,您可以尝试划词翻译试下(我是使用的快捷键划词模式)
液体摄入量&OAB.pdf
截屏2024-08-13 22 21 54
截屏2024-08-13 22 22 02
截屏2024-08-13 22 24 07

@tisfeng
Copy link
Owner

tisfeng commented Aug 13, 2024

ok,明白了, 稍后我们会添加一个这样的选项。

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

tisfeng commented Aug 13, 2024

@choykarl 你有空可以加一下这个么

@choykarl
Copy link
Collaborator

好的,我晚点加一下

@tisfeng tisfeng added the fixed in next release The issue will be closed once next release is available label Sep 18, 2024
@xuestrange
Copy link

强烈建议加入这个选项,隔壁的Pot甚至都会自动做这个事情,感谢开发者!

@tisfeng
Copy link
Owner

tisfeng commented Sep 29, 2024

加了加了,这几天就准备发新版本。

image

@qq420100523
Copy link

qq420100523 commented Oct 11, 2024

加了加了,这几天就准备发新版本。

果然有人提这个需求,作者准备什么时间发布新版本啊

@xuestrange
Copy link

加了加了,这几天就准备发新版本。

果然有人提这个需求,作者准备什么时间发布新版本啊

+1

@tisfeng
Copy link
Owner

tisfeng commented Oct 20, 2024

本来准备差不多了,但发现一个问题 #693 (comment) ,等这个解决了就可以发布新版本了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 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

5 participants