View Single Post
Old 11-20-2010, 02:04 AM   #20
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 3,058
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
Quote:
Originally Posted by bluerfoot View Post
Insult to injury, I did not get a case due to possibly returning it, and I just put a massive scratch across both the silver paint and the screen.
Oh well, I guess it's a keeper, then. On the plus side, I got that script for 'Sony'fying the TOC of epubs done. I've really only tested it on O'Reilly epubs, but it worked on all 14 of mine. I've also only tested it on my Linux system, perhaps it needs some tweaking for use on a Windows machine. Anyways, I run it like this:

python sonyfy.py Erlang_Programming.epub

and it produces a file called Erlang_Programming__PRS.epub with a new TOC.

Hmm, the attachment software doesn't accept .py files, so I renamed it to sonyfy.txt. Just change it back to .py after you download it.
Attached Files
File Type: txt sonyfy.txt (3.7 KB, 226 views)
rkomar is offline   Reply With Quote