Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Apple Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 12-27-2022, 04:51 PM   #16
lostinlodos
Enthusiast
lostinlodos began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Dec 2012
Device: multi
iBook is NOT ePub. It’s an extension of the format. Drag and drop will not produce a book readable of apple devices immediately.
You need to extract the book package and then recompress it in the correct order.
There is an app I found that will do this one book at a time. I’ll edit and add the app shortly. Which works for doing a few books by hand.

I’m here looking to see if someone came up with a faster method.
I’ve managed to script the process for folder batching using nZip but it’s inconsistent. It misses files and doesn’t always stick to the item order for adding to the new zip file. Meaning it could take a few tries and requires manually opening each book to test. A problem when switching between platforms.
lostinlodos is offline   Reply With Quote
Old 12-27-2022, 06:24 PM   #17
lostinlodos
Enthusiast
lostinlodos began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Dec 2012
Device: multi
Apple does NOT use epub. They use iBook. It’s a modified extension of epub. And it’s the reason side loading books into the books app takes a bit of extra time. Files are extracted and decompressed.

Going the other direction IS possible and there is software to do so. Unfortunately all of it is generally single file work.
I came here hoping someone had an idea that was a bit quicker. I’ve come up with a somewhat unreliable scripting option to batch a folder. But it is inconsistent.
lostinlodos is offline   Reply With Quote
Old 12-28-2022, 01:37 AM   #18
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 6,475
Karma: 26425959
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
Quote:
Originally Posted by lostinlodos View Post
Apple does NOT use epub. They use iBook. It’s a modified extension of epub. And it’s the reason side loading books into the books app takes a bit of extra time. Files are extracted and decompressed.

Going the other direction IS possible and there is software to do so. Unfortunately all of it is generally single file work.
I came here hoping someone had an idea that was a bit quicker. I’ve come up with a somewhat unreliable scripting option to batch a folder. But it is inconsistent.
You might be thinking of iBooks Author, which created a non-standard extension of ePub standard that could be interactive and contain multimedia (and could only be read with Apple's iBooks, as it was known then). It generated a file with iBook extension. It didn't take off, and they pulled the plug on that quite awhile ago.

It's immaterial that they explode ePub files on import. The structure is standard ePub. Every reading app has to explode the ePub at some point before it can parse the source files and render the book. With this approach, the Books app does not to create any temporary files in addition to storing the ePub archive: it can just open and parse the source files directly.

The fundamentals of generating .epub archives from source has not changed. All you need is zip. You have to add the mimetype file first:

Quote:
$ zip -0Xq book.epub [path-to-source]mimetype
and then the (OEBPS and META-INF) subfolders:

Quote:
$ zip -Xr9Dq book.epub [path-to-source]*

Last edited by tomsem; 12-28-2022 at 01:59 AM.
tomsem is offline   Reply With Quote
Old 12-28-2022, 04:27 AM   #19
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,934
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Is it any different transferring from iBooks and Books?
JSWolf is online now   Reply With Quote
Old 12-30-2022, 02:22 AM   #20
lostinlodos
Enthusiast
lostinlodos began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Dec 2012
Device: multi
Quote:
Originally Posted by tomsem View Post
It didn't take off, and they pulled the plug on that quite awhile ago.

I offer you to take a non-Dem book and drag it out of Books and try to open it in another reader. It simply doesn’t work. And that because the package is recompressed in a non-standard way. This has not changed. It’s the reason calibre says the file is not valid.

It is also the reason decompression programs DO exist. The resulting file then being a standard epub.

There are a few reader apps out there that will load a transferred iBook file. But the issue in general remains on the most recent versions of Books.
The OP and other comments are correct.

Right now I use eCanCeusher. (Disclosure: not affiliated )
It DOES work most of the time. And actions CAN be scripted. But it only does one book at a time, despite the batch claim.
But again it appears inconsistent. Though that could also be my scripting that fails as well.

Last edited by lostinlodos; 01-01-2023 at 04:26 PM.
lostinlodos is offline   Reply With Quote
Old 12-30-2022, 11:58 AM   #21
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 6,475
Karma: 26425959
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
Quote:
Originally Posted by lostinlodos View Post
I offer you to take a non-Dem book and drag it out of Books and try to open it in another reader. It simply doesn’t work. And that because the package is recompressed in a non-standard way. This has not changed. It’s the redone calibre says the file is not valid.

It is also the reason decompression programs DO exist. The resulting file then being a standard epub.

There are a few reader apps out there that will load a transferred iBook file. But the issue in general remains on the most recent versions of Books.
The OP and other comments are correct.

Right now I use eCanCeusher. (Disclosure: not affiliated )
It DOES work most of the time. And actions CAN be scripted. But it only does one book at a time, despite the batch claim.
But again it appears inconsistent. Though that could also be my scripting that fails as well.
I was talking only about imported books. I doubt I have any DRM free purchases from Apple.
tomsem is offline   Reply With Quote
Old 01-01-2023, 04:24 PM   #22
lostinlodos
Enthusiast
lostinlodos began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Dec 2012
Device: multi
Quote:
Originally Posted by tomsem View Post
I was talking only about imported books. I doubt I have any DRM free purchases from Apple.
As am I.
Dragging an epub document into books on the Mac.
At some later time dragging that book out of books to a folder or the desktop.
The book is no longer a standard epub.

The modification appears to occur when the book is synced (uploaded) to iCloud. The change taking place on the source Books app.

There are some independent readers out there that will read the modified Books file, and other “damaged” epub files. However most will not.
lostinlodos is offline   Reply With Quote
Old 01-01-2023, 09:21 PM   #23
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 6,475
Karma: 26425959
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
Quote:
Originally Posted by lostinlodos View Post
As am I.
Dragging an epub document into books on the Mac.
At some later time dragging that book out of books to a folder or the desktop.
The book is no longer a standard epub.

The modification appears to occur when the book is synced (uploaded) to iCloud. The change taking place on the source Books app.

There are some independent readers out there that will read the modified Books file, and other “damaged” epub files. However most will not.
Okay, I didn't drag anything out, just compressed what was there, for one book. It restored okay. Perhaps when synced to another device, it changes.
tomsem is offline   Reply With Quote
Old 01-02-2023, 03:23 PM   #24
lostinlodos
Enthusiast
lostinlodos began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Dec 2012
Device: multi
I think I have the cause, for myself and op, and others.

According to notes from a few iBooks compatible readers it appears Books stores and transfers the ePub files exploded. When a book is dragged out of the app or transferred out it is again compressed.
Apparently the compression order remains the same for the iBook format, not ePub.
Reviewing the LZ log shows the order of operation.


Clearly Apple has no intention of fixing this. The problem dates back many years.

The solution must be taking on of the few open source options and adding it to a popular conversion program, eg Calibre.
eCan is open source. So the solution would be to create an import filter.

I also found my problem with ECC; path length. Pointing to a folder one deep solves the problem for most documents; giving near 100% action.

This situation does explain how some books can be many times larger on the iPhone or iPad than the source file. Already large technical manuals can take up hundreds of megs of space expanded.
lostinlodos is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mini Kobo Mini how/where to transfer free epubs via USB? Begemot Kobo Reader 7 03-06-2016 07:19 PM
Aura HD How to zoom pictures in drm-free epubs? joblack Kobo Reader 16 05-13-2013 09:28 PM
Will the iBooks read Adobe DRM ePubs? Apollo Apple Devices 10 01-25-2012 05:50 PM
Free (Nook/Kindle/iBooks/Kobo/Sony) Transfer of Power [CIA Political Thriller] ATDrake Deals and Resources (No Self-Promotion or Affiliate Links) 8 12-29-2011 11:40 AM
Jobs confirms DRM free epub books can be loaded and read via iBooks on iPad stustaff News 14 03-25-2010 09:24 AM


All times are GMT -4. The time now is 05:44 AM.


MobileRead.com is a privately owned, operated and funded community.