简体   繁体   English

有谁知道一个可以用作 epub 的 JS 库

[英]does anyone know a JS library that would work as epub

basically I am trying to render html pages as an ebook.基本上我正在尝试将 html 页面呈现为电子书。 I know how epub works.我知道 epub 是如何工作的。 Its responsive and text highlight and making a note all those features there.它的响应和文本突出显示并记录所有这些功能。 But I am looking for similar solution using html pages.但我正在寻找使用 html 页面的类似解决方案。 I have converted pdf to html ( each pdf page is a html page ) and want to render those html pages like epub3. I have converted pdf to html ( each pdf page is a html page ) and want to render those html pages like epub3.

Features I need我需要的功能

  • responsive反应灵敏
  • text selection and highlight colors文本选择和突出显示 colors
  • making notes and other epub3 features if there are any.做笔记和其他 epub3 功能(如果有的话)。

Anyone knows how to do this or any good libraries I can use.任何人都知道如何做到这一点或我可以使用的任何好的库。 glad for any help.很高兴有任何帮助。

epubjs is a good library to try out. epubjs 是一个很好的尝试库。 It has the features which you mentioned.它具有您提到的功能。 They also provide epubjs viewer which internally uses epubjs library to handle epub.他们还提供了 epubjs 查看器,它在内部使用 epubjs 库来处理 epub。

epubjs github page:- https://github.com/futurepress/epub.js epubjs github 页面:- https://github.com/futurepress/epub.js

epubjs reader github page:- https://github.com/futurepress/epubjs-reader epubjs 阅读器 github 页面:- https://github.com/futurepress/epubjs-reader

epubjs documentation:- http://epubjs.org/documentation/0.3/ epubjs 文档:- http://epubjs.org/documentation/0.3/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM