View Single Post
Old 05-10-2013, 04:59 AM   #106
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Quote:
Originally Posted by Thalinor View Post
Got it, thank you. I just checked and that book I got directly from the on device bookstore, was in fact a kepub. It did not have a file extension, but when renaming it to zip, I can see the js file you are talking about /js/kobo.js
Good, so you have a correct reference.kepub.epub then. I'm not sure why exactly some kepubs have kobo-android.js, I suspect they're older kepubs that Kobo hasn't updated yet, but this plugin will accept kobo*.js

Quote:
Originally Posted by Thalinor View Post
Edit: Ok I figure epub's are just container formats (like mp4) which is why the .zip trick worked and files were inside
That's right. The ePub standard is made up of a few related standards, one of which is the Open Container Standard. It's a little more specific than just "a ZIP archive" though; it's required that there be a file named "mimetype" as the first file in the archive, no compression is permitted on this file (but all other files may be compressed) and the file must contain exactly the text "application/epub+zip" and must not have any trailing characters, including no newline characters.

Quote:
Originally Posted by Thalinor View Post
I just checked all the books that were copied to the Glo via Calibre and the plugin, they all have a "kobo.js" while the originals on my HD do not have that file inside. I assume that's the file the plugin added renaming the one in the reference file "kobo-android.js" to just "kobo.js". If that's the case, the plugin is working correctly and its not something with that "virtual" kepub I used. Does that all sound correct?
That's right, I rename the file to kobo.js and put it at the base of the ePub file when I copy it over.
jgoguen is offline   Reply With Quote