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

翻译某些epub书籍时,设置合并翻译1000字,点击翻译时无法合并,会导致calibre假死 #220

Open
GoTop opened this issue Mar 8, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@GoTop
Copy link

GoTop commented Mar 8, 2024

MacOS Sonoma 14.1.2 (23B92)
Calibre版本 7.6.0
Ebook-Translator-Calibre-Plugin版本:Rolling Releas:ebook-translator_20240304213912

开始我以为是epub文件太大的问题,但是我试了一下其他的30m的epub文件,是能够正常合并段落,进入翻译页面的

但是这三个epub文件,每次点击翻译都会导致calibre假死

每次都是卡在这个页面,然后Calibre重启:
WX20240308-131659@2x

文件我传到百度云了
链接: https://pan.baidu.com/s/1JdAvaJbXUASpFjNwtTnQLQ?pwd=u7ge 提取码: u7ge

@bookfere bookfere added the bug Something isn't working label Mar 8, 2024
@bookfere
Copy link
Owner

bookfere commented Mar 9, 2024

测试了一下,发现是插件调用 Calibre 中的函数没办法正常工作,在插件还未收到数据前就崩溃了。在问题解决之前,你可以先用 Calibre 将其再转换一次 EPUB 格式,然后用插件翻译转换后的 EPUB,应该就没问题了。

@GoTop
Copy link
Author

GoTop commented Mar 10, 2024

测试了一下,发现是插件调用 Calibre 中的函数没办法正常工作,在插件还未收到数据前就崩溃了。在问题解决之前,你可以先用 Calibre 将其再转换一次 EPUB 格式,然后用插件翻译转换后的 EPUB,应该就没问题了。

转化一次epub格式确实能够解决这个问题。感谢!

这三个epub文件不符合calibre的规范导致的calibre无法处理?

@GoTop GoTop closed this as completed Mar 10, 2024
@bookfere
Copy link
Owner

我检查了截图中的那个电子书文件,发现里面很多冗余的内容,可能这些内容导致读取出错的。按理说 Calibre 能成功转换,插件就能正常读取,但事实却不是这样,需要研究下才知道问题出在哪儿。

@GoTop
Copy link
Author

GoTop commented Mar 14, 2024

我检查了截图中的那个电子书文档,发现里面很多冗余的内容,可能这些内容导致读取出错的。按理说 Calibre 能成功转换,插件就能正常读取,但事实却不是这样,需要研究下才知道问题出在哪儿。

这几本epub确实很奇怪,用calibre将其从epub转成epub后,在calibe里打开epub阅读,缩放窗口时,书籍的文字不会重排,而是保持固定的位置

把这个epub推送到kindle阅读,书籍里的文字只在屏幕中间,两边留出大量的空白

@GoTop GoTop reopened this Mar 14, 2024
@bookfere
Copy link
Owner

bookfere commented Mar 15, 2024

这是电子书自身的问题导致的。你需要在 Calibre 转换设置中移除 CSS 中的 padding、margin 和 width 属性。

@GoTop
Copy link
Author

GoTop commented Mar 23, 2024

这是电子书自身的问题导致的。你需要在 Calibre 转换设置中移除 CSS 中的 padding、margin 和 width 属性。

多谢,我去试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants