Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ePub processing to convert files to Baker's Hpub format. #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

freney
Copy link

@freney freney commented Dec 19, 2013

Allows adding ePub packages to your shelf.json manifest. On first opening the ePub file, it scans for the book.json file. If it is not found, then we check for the ePub container.xml file before failing.

If it is an ePub file, scan the OPF manifest for package contents, and create a book.json file. (On subsequent opens, then it will parse this book.json file as normal.)

To do: Create index.html from ePub contents, and optionally provide for overriding the ePub stylesheet with custom CSS.

@nin9creative
Copy link

Hmm, have you had many problems in your app with this code?  Or has everything pretty much worked well?

Andy


From: freney [email protected]
To: bakerframework/baker [email protected]
Sent: Wednesday, December 18, 2013 8:29 PM
Subject: [baker] Added ePub processing to convert files to Baker's Hpub format. (#67)

Allows adding ePub packages to your shelf.json manifest. On first opening the ePub file, it scans for the book.json file. If it is not found, then we check for the ePub container.xml file before failing.
If it is an ePub file, scan the OPF manifest for package contents, and create a book.json file. (On subsequent opens, then it will parse this book.json file as normal.)
To do: Create index.html from ePub contents, and optionally provide for overriding the ePub stylesheet with custom CSS.


You can merge this Pull Request by running
git pull https://github.com/freney/baker epub-conversion
Or view, comment on, or merge it at:
  #67
Commit Summary
* Added ePub processing to convert files to Baker's Hpub format.
File Changes
* M BakerView/BakerBook.h (18)
* M BakerView/BakerBook.m (212)
Patch Links:
* https://github.com/bakerframework/baker/pull/67.patch
* https://github.com/bakerframework/baker/pull/67.diff

@freney
Copy link
Author

freney commented Dec 19, 2013

I assume from your response that it’s causing some problems?

It’s worked ok for me, but it’s going to depend on your epubs. They’re not all created equal.

I tested it out on some of the google code ePub standard examples, and it worked well for them.

Sam.

Sam Freney
http://freney.org/
(e) [email protected]
(tw) @freney
(fb) sfreney

On 19 Dec 2013, at 2:34 pm, Andrew [email protected] wrote:

Hmm, have you had many problems in your app with this code? Or has everything pretty much worked well?

Andy


From: freney [email protected]
To: bakerframework/baker [email protected]
Sent: Wednesday, December 18, 2013 8:29 PM
Subject: [baker] Added ePub processing to convert files to Baker's Hpub format. (#67)

Allows adding ePub packages to your shelf.json manifest. On first opening the ePub file, it scans for the book.json file. If it is not found, then we check for the ePub container.xml file before failing.
If it is an ePub file, scan the OPF manifest for package contents, and create a book.json file. (On subsequent opens, then it will parse this book.json file as normal.)
To do: Create index.html from ePub contents, and optionally provide for overriding the ePub stylesheet with custom CSS.


You can merge this Pull Request by running
git pull https://github.com/freney/baker epub-conversion
Or view, comment on, or merge it at:
#67
Commit Summary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants