Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eBook parser (.azw, .mobi, epub)? [closed]

Tags:

I want to develop an eBook reader app. What are some good libraries available to parse formats like .azw, .mobi, .pdf etc.?

like image 846
Richard Avatar asked Jan 20 '12 10:01

Richard


People also ask

What is the difference between AZW and MOBI?

The primary difference between MOBI and AZW is that AZW uses asterisk instead of dollar sign in the serial number scheme. Also, unlike the original MOBI format, the AZW format does not allow the use of JavaScript. E-books with extension . prc are fully compatible with the Kindle devices and can be directly read on it.

Should I use MOBI or Epub?

If you're using anything other than a Kindle or the Kindle app, then EPUB is the better format. The only real reason to use MOBI is for compatibility with Amazon's e-reader and app, but otherwise it has no advantages over EPUB, which is a widely accepted format that is much easier to work with.

What are EPUB and MOBI examples of?

As the popularity of eBooks has grown, different eBook formats have emerged including EPUB, MOBI, AZW and PDF eBooks.

What are AZW files?

azw file extension is a popular file format for storing eBooks for Amazon's Kindle line of eReaders and devices using the Kindle app. Along with storing things like bookmarks, annotations, and last known page, AZW files usually contain DRM protection, or copyright protection, to prevent copying and illegal viewing.


1 Answers

As Ranhiru said, here and here you can see how PDFs are parsed. For .mobi, however, there is no library, so you'll have to parse the format yourself. A full specification of the format can be read on the mobileread wiki.

With .azw files, it's different: if the Kindle ebook is DRM-free, then its format coincides with the .mobi one, i.e. they are absolutely interchangeable. Otherwise, it's very difficult to do, since you'll also have to generate a Kindle PID and perform the de-DRM-ing of the .azw file. There's a guide on how to do that on the desktop here. However, it is strongly not recommended, since it breaks the whole point of DRM and is illegal pretty much everywhere.

like image 69
Ivan Zarea Avatar answered Sep 19 '22 15:09

Ivan Zarea