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

3

6

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

Topheavy answered 26/5, 2011 at 6:33 Comment(1)
you want to create a reader from scratch or simply design a new UI over an existing eReader?Gemmagemmate
S
5

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).

Saxecoburggotha answered 26/5, 2011 at 7:46 Comment(1)
Your second link leads to epub sharp too, and not to the epub spec. And is there any documentation on epub sharp? And I can't find the code in the repo either.Chockablock
C
6

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.

Chockablock answered 26/5, 2011 at 6:43 Comment(0)
S
5

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).

Saxecoburggotha answered 26/5, 2011 at 7:46 Comment(1)
Your second link leads to epub sharp too, and not to the epub spec. And is there any documentation on epub sharp? And I can't find the code in the repo either.Chockablock
G
2

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?

Gemmagemmate answered 26/5, 2011 at 6:41 Comment(2)
I'm not the downvoter, but I don't see how this answers the question. I see no indication that the OP needs any text-to-speech. I think he wants to read and render an epub file.Chockablock
There's no need to downvote. The OP said "epub reader", which could easily be misconstrued as an actual reader (with voice) for the epub format. In this case, he meant something to extract and display the data, but I can see how confusion happened.Alliber

© 2022 - 2024 — McMap. All rights reserved.