Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 370
Zain Rizvi Avatar asked May 26 '11 06:05

Zain Rizvi


People also ask

Can books app open EPUB?

On Android, you'll have to download an epub reader such as Aldiko or Universal Book Reader to open epub files.

Can anyone open an EPUB?

EPUB files can be opened in most eBook readers, including the B&N Nook, Kobo eReader, and Apple's Books app.

Can browser read EPUB?

Install EPUBReader from the Chrome Web Store, and EPUB files will open like PDFs directly in your browser when you click them on the web. You can open EPUB files from your computer in your browser, too, just like you can use your browser as your PDF reader.


3 Answers

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.

like image 157
CodesInChaos Avatar answered Oct 23 '22 06:10

CodesInChaos


  • EPUB sharp beta - http://sourceforge.net/projects/epubsharp/

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

like image 25
abhilash Avatar answered Oct 23 '22 07:10

abhilash


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?

like image 2
Sriram Avatar answered Oct 23 '22 07:10

Sriram