Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-16-2008, 10:38 AM   #1
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
Very simple PRS-505 content/collection builder

I have recently bought the PRS-505 reader and was quite impressed with it - the contrast is excellent and unlike CRT and LCD, the e-ink doesn't hurt my eyes even after prolonged reading (I managed some 3000 pages in the three weeks since I bought the device). My only real complaint is the software which is bulky and very uncomfortable to use (both Sony's eBook Library and libprs). So I hacked a quick and dirty solution to my problem.

What I wanted to achieve was uploading books using my favorite file manager rather than the supplied software and then making it available for reading. I wanted batch support (no user input required) and the ability to organize files in directories.

And that's pretty much what this utility does: You upload files (currently RTF, PDF and image formats) to any directory on the Reader (yes, subdirectories are supported - recommended in fact) and then call my commandline utility to update the cache.xml file to match uploaded files. The utility then scans all directories on the Reader for known files and creates and/or modifies the cache.xml file accordingly. Thanks to the power of regular expressions it is even able to provide some key metadata (one day I hope to read the metadata from the files directly, but the regexp approach seems to work fine for me).

Basically, you copy files anywhere to the Reader:
Code:
sony reader/books/howard robert e/[Conan] A Witch Shall Be Born.pdf
sony reader/books/howard robert e/[Conan] Hour of the Dragon.pdf
sony reader/books/howard robert e/Pigeons From Hell.pdf
and run the utility with full path to cache.xml as parameter:
Code:
buildsonyreader.exe "e:\sony reader\database\cache.xml"
buildsonyreader.ini contains an algorithm for creating metadata: Section MetadataDefinitions contains regexp=sectionname parts, with sectionname assigning variables for that regexp. Only the first matching regexp for a filename is used.

Please note this is more a proof of concept than anything else. It has just the bare-bones functionality and a number of errors - I am pretty sure it contains at least one memory leak and I didn't dare to run it on the internal memory of my Reader (which contains some pre-bought books) - I only ever used it with a memory card which never contained any bought stuff. But it does seem to work well enough (that is, I was able to read the books I uploaded). I recommend the same - and do make a backup before you use it.

The utility is written in Delphi and you'll find the source code as well as the executable in the archive:

http://www.pepak.net/sonyreader/buildsonyreader.zip
pepak is offline   Reply With Quote
Old 03-16-2008, 02:04 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What's the point of organizing them in folders if you cant view the folder structure on the device?

You can use the various *-meta tools from libprs500 to read metadata from files.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-17-2008, 01:41 AM   #3
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
Quote:
Originally Posted by kovidgoyal View Post
What's the point of organizing them in folders if you cant view the folder structure on the device?
It is easier to manage directories than individual files and it is a lot easier to create collections this way.
pepak is offline   Reply With Quote
Old 03-17-2008, 01:40 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Ah you mean from the perspective of copying files to the device using it as a USB drive.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Collection Builder pepak Sony Reader Dev Corner 37 02-03-2010 01:14 AM
Collection order in PRS-505 Dster Calibre 5 11-09-2009 06:30 PM
How do I get Collection/Series data on SD card on PRS-505 helliaff Calibre 12 08-11-2009 12:30 AM
Loosing collection information on prs 505... Student1 Sony Reader 2 04-11-2009 12:35 PM
RSS content crashes my PRS 505 wrayburn Calibre 14 01-21-2009 12:34 PM


All times are GMT -4. The time now is 08:20 PM.


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