我有一堆交织在一起的HTML网页,我想要转换成EPUB格式。
例如,索引页位于
http://example.com/documentation/index/index.html而从索引页链接的章节则在
http://example.com/documentation/chapters/*还有一些图像和格式文件在
http://example.com/css/*
http://example.com/img/*是否有工具可以递归地下载和转换文档,将这些特定的约束传递给epub格式?
我可以使用httrack下载页面,如下所示:
httrack http://example.com/documentation/index/index.html +http://example.com/documentation/index/* +http://example.com/documentation/chapters/* +http://example.com/css/* +http://example.com/img/*…并将HTML页面转换为XHTML,使用tidy 5。
tidy -asxhtml -numeric < index.html > index.xhml但我仍然没有找到一个工具,可以立即将整个树转换为EPUB。
另外,试过一次,但UI是不友好的,所以我真的没有试图掌握那个工具。如果我必须学习高质量的UI,我更愿意写一个bash脚本来完成这项工作。
发布于 2016-03-24 21:56:31
虽然并不总是能给出完美的结果,但您可以使用潘多克从web下载html并一次生成一个epub --您可能需要告诉pandoc页面/章节的顺序和/或哪些页面,但是任何参考的css/图像也应该自动下载和嵌入。
https://softwarerecs.stackexchange.com/questions/30810
复制相似问题