Skip to content

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 notifications@github.com
To: bakerframework/baker baker@noreply.github.com
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) sam@freney.org
(tw) @freney
(fb) sfreney

On 19 Dec 2013, at 2:34 pm, Andrew notifications@github.com wrote:

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

Andy


From: freney notifications@github.com
To: bakerframework/baker baker@noreply.github.com
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