Is there an API to read ePub books? [closed]

2019-02-10 08:04发布

I'm trying to create an ebook reader for WP7. So far I haven't been able to find any API to read ePub books with.

Thanks, Zain

3条回答
Lonely孤独者°
2楼-- · 2019-02-10 08:42

For DRM-free html based ePubs(there are also dtbook based ePubs, but I've never seen one) you can simply use a few libraries to build a reader:

  1. An html render control, since the content is based on xhtml 1 and css
  2. A zip library because the container is a zip archive
  3. An xml library to parse the meta data files

For 2. and 3. there are many libraries, some of which support silverlight/WP7. No idea about 1, but I suspect WP7 already offers such a control.

查看更多
神经病院院长
3楼-- · 2019-02-10 08:58

I would imagine that extracting the contents of the book, as string or simple text and passing it into the Microsoft Speech SDK (SAPI) would work. Functions therein can be called from within c#. Did you try that already?

查看更多
迷人小祖宗
4楼-- · 2019-02-10 08:59

Also, you can check out the draft of the ePub 3 spec here

Edit: Fixed the link

EPUB Sharp has not been updated since a long time.

Here's a step by step procedure in building your own (for iPhone, IMO it's good starting point).

查看更多
登录 后发表回答