PC Magazine: “Stanza is the best e-book reader for the iPhone, and my favorite.”
21 Cool iPhone Apps - Stanza

Question about File System

Hi, I have a jail broken phone and am not a Mac user so I am attempting to put some books on my phone as there is no windows version of Stanza yet. I can get into my phone and explore the file structure. I found where Stanza is installed and I think I see where Stanza is installing books from the free online book store but I can't seem to copy my own books in. What format do they need to be in, is it something custom? Any hints on where I should attempt to copy books?

So I figured out how to make

So I figured out how to make and add my own epub books to Stanza on an iphone using a windows machine if you have a jailbroken iphone 2.0

Short version below.

I am at work so I will just have to go over this from memory though.

So to make your epub book apparently adobe has some sort of InDesign app that can convert some formats to epub, I don't have this app so I had to find another solution. You can do it by hand but I didn't want to.

This site converts HTML to epub format. http://www.bookglutton.com/api/getepub I could not get it to work for me but you may have better luck. You can find apps to change .txt to html all over the place.

I also found http://feedbooks.com/ and if you create an account you can go to your profile, select books, then add a book, then you it gives you a page where you can create sections, chapters, and text for an epub book. It was kind of a pain in the ass but I just took my text file and cut it up into chapters, pasted the text into the propper fields, and created my book. If you are feeling lazy you can just make one huge chapter and be done with it.

The preview feature works for PDF but the preivew feature for epub on the site seems to only work sometimes, I ended up having to publish the book on the site, then download it to see if it was working, then I would go back to profile and and edit my published book, and republish it and re download it epub format when I was done from the site. Then I deleted my book as I did not want it published.

ok, now we have our epub book, we need to get it on the iphone. If your iphone is no jailbroken you can not do this. If you need to jailbreak your iphone, search on the net for info on how to do it.

So we need a way to browse the iphone file system so download http://code.google.com/p/iphonebrowser/ and load it up. You need to connect your ipod-touch/iphone after you load the app.

Once you are browsing I believe that you need to go to the private/var/mobile/media/application folder but that may not be 100% correct, but basically someplace in private something var something you will find an application folder. In this folder you are going to find folders with odd names of random characters. Open them until you find the one with Stanza in it, if you can't find it transfer it to your HD and search it out. Once you found Stanza app folder there will be more folders labeled 0-9 or 0-10 or something. Any epub books you have will be in these folders named 1 or 2 or 3 etc with no file extension or hints at what book it is. You are going to need to replace one of these files with YOUR epub book, and rename it the same as the file you replace. If you replace 3 rename your xxxxx.epub to just "3".

Now you can load stanza and one of your old books will be replaced with your book... but will have the same title as the original book. Ok this sucks so now what. Why is the name screwed up? Well there is a database file named dt.db or something can't remember in Stanza and it stores the names of the books and authors. Doesn't matter 1.1 update from the app store and you can rename the books and author from within Stanza. Load the book and click on the gear wheel thing top right.

What I did was I deleted all my free books I got, then downloaded one book I knew I would never read. Then I replaced my book with it with the browser so it was easy to know which book I was replacing, because there was just one book, then I loaded all my other free books back on from the online section of stanza, and I just remember which fake book title is my book.

Whew!, Sorry if that was long winded.

--------------------------------------------------------------------------

SHORT VERSION

Make an epub book, figure out.

grab http://code.google.com/p/iphonebrowser/

Browse to stanza app.

replace one of the books, they are in folder 0-9 and name 1, 2, 3, etc with your book renaming yours to match the original file in stanza.

Get the 1.1 update in appstore and rename and set the correct author from within Stanza.

good luck.

And come out with a windows version please.

marc's picture

Stanza uses the Open eBook

Stanza uses the Open eBook (a.k.a. ePub) format for books. You can read a summary for the format at:

http://en.wikipedia.org/wiki/Open_eBook

That site has links to the actual specification, but in short, the .epub files are simple .zip files that contain some XML metadata and XHTML files. For some hints on creating ePub files, see:

http://developer.lexcycle.com

Found a tutorial-

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.