4

我需要一个关于使用 epub 阅读器的构象。如何在单片机 epub 阅读器中将输入作为 .epub 文件提供。我在单片机 github 中看到了更多示例。但无法确定哪个会起作用。

我需要了解以下规格的 Monocle Epub 阅读器:

 1. I have one .epub file

 2.how to read .epub using monocle epub reader 

我没有得到任何解决方案。我看到monocle epub相关链接是:

https://github.com/joseph/Monocle#future-directions

我尝试下面的代码:

<head>
  <!-- Include the Monocle library and styles -->
  <script src="scripts/monocore.js"></script>
  <link rel="stylesheet" type="text/css" href="styles/monocore.css" />
  <style>
    #reader { width: 300px; height: 400px; border: 1px solid #000; }
  </style>
</head>

<body>
  <!-- The reader element, with all content to paginate inside it -->
  <div id="reader">
    <h1>Hello world.</h1>
  </div>

  <!-- Instantiate the reader when the containing element has loaded -->
  <script>Monocle.Reader('reader');</script>
</body>

但是不知道将输入文件作为 epub 文件。

那么您能否建议我如何使用单片眼镜 epub redaer 读取 .epub 文件。这对我来说非常重要。或者是否有适用于 ios 和 android 的 epub 阅读器的 api?

提前致谢。

4

1 回答 1

0

请尝试以下步骤。

  1. 将 .epub 转换为 zip 文件
  2. 提取 .zip 文件。
  3. 使用 Monocle 加载提取的内容。
于 2016-12-16T10:29:10.830 回答