yann0917/dedao-dl

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

Closed this issue · 3 comments

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

To Reproduce
Steps to reproduce the behavior:
1.找到《为权利而斗争》
2. 下载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):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

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

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

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