使用Monocle的Epub阅读器使用

时间:2014-06-18 05:07:31

标签: epub monocle

我需要一个关于使用epub reader的配置。如何在单片机epub阅读器中输入.epub文件。我在单片机github中看到更多样本。但无法确定哪一个可行。

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

 1. I have one .epub file

 2.how to read .epub using monocle epub reader 

我没有得到任何解决方案。我看到单片眼镜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?

提前致谢。

1 个答案:

答案 0 :(得分:0)

请尝试以下步骤。

  1. 将.epub转换为zip文件
  2. 提取.zip文件。
  3. 使用Monocle加载提取的内容。