yann0917 / dedao-dl

得到 APP 课程下载工具,可在终端查看文章内容,可生成 PDF,音频文件,markdown 文稿,可下载电子书。
MIT License
569 stars 110 forks source link

内文插入式注释保存htmls时出错 #187

Closed aaqq0pp closed 1 year ago

aaqq0pp commented 1 year ago

Describe the bug 这本《为权利而斗争》的注释生成出错。个人推测和这本书一样的注释不放在文末,使用超链接,而是直接在内文插入的书可能都有同样问题。如《剑桥中国史》

To Reproduce Steps to reproduce the behavior: 1.找到《为权利而斗争》

  1. 下载html。并开启 3.如下所示,所有注释的内容被错误的放在img 的 alt 和 title 位置。

<p><span style="font-size:16px;font-family:'FZFangSong-Z02';">是值得毁灭的。<sup><img width="11" src="https://staticcdn1-5.umiwi.com/epms_ebook/d2273846a54609ee75595587a6e2469c.png" alt="歌德诗句,原文为:Alles, was entsteht, Ist werth, dass es zu Grunde geht." title="歌德诗句,原文为:Alles, was entsteht, Ist werth, dass es zu Grunde geht." class="epub-footnote"/></sup></span></p>

Expected behavior 正如我前文所说,这种注释的文本并不在正文之中(因为搜索不到),所以建议作者能把这类注释转化为通常的文末超链接式的注释(放在任何合适的地方都可以),这样可以大大减少制作epub的工作量(因为只需剪切粘贴处理)。

Screenshots 下面是一张关于这类注释的截图。 IMG_0473

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

aaqq0pp commented 1 year ago

目前的情况是所有注释都要一条条手动做成标准的超链接式的注释,很痛苦:(

aaqq0pp commented 1 year ago

原来我用的是保存为html,不是保存为epub,刚才试了一下保存为epub,基本没有什么问题了...

aaqq0pp commented 1 year ago

感谢作者做出这么nice的工具