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 02-01-2010, 03:17 PM   #31
Venoras
Junior Member
Venoras began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2010
Device: PRS-505
Hello pepak,
thanks for this nice tool. It makes creating of and working with
collections much more useful.

Originally I had some problems with your current release (0.08),
since after using it, all bookmarks and collections were gone.
Then I realized that german "umlauts" (äöü) in the file names
were the problem, since colbuild did add some new entries for
them, obvioulsly not being able to find the existing ones in
the XML file. So I renamed the offending files and all was fine.

Later I started to modify the code a bit to avoid the file
renaming, with partial success (I'm not very experienced in
Pascal programming and just fought my way through Free
Pascal until I got it working somehow ). Basically I just had
to convert the filename with the OemToUTF8 function
(which additionally needed some fixes, since it seemed to
overwrite some memory elsewhere, at least with my
FreePascal version).

Now I'm wondering how I could contribute my changes,
Can I just send them to you ? I'm not sure how relevant
they are for other people, since you seem to have
enough success with national characters otherwise.
Maybe the problem just arises with the newer german
firmware 1.4?

Best regards,
V
Venoras is offline   Reply With Quote
Old 02-01-2010, 03:21 PM   #32
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 Venoras View Post
Now I'm wondering how I could contribute my changes. Can I just send them to you ? I'm not sure how relevant they are for other people, since you seem to have enough success with national characters otherwise.
Maybe the problem just arises with the newer german
firmware 1.4?
If you send the changes to me (via PM), I will check them out and add them to the application.

The problem arises from the fact that I only ever use 7-bit ASCII for filenames, so I never felt any press to add international support. It was just laziness on my part, nothing else :-)

Glad you find the utility useful.
pepak is offline   Reply With Quote
Advert
Old 02-02-2010, 01:47 AM   #33
Mike_73
Guru
Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.
 
Posts: 750
Karma: 1323
Join Date: Dec 2009
Device: PRS-505, PRS-600, iPad 16GB Wifi, Kindle Voyage, Nexus 6, Razr HD
I don't want to interrupt here, but is there a place I can find documentation on how the collection thing works? For example where is the place the collections are stored, what entries does the file need, etc. I would need it in english.
I was wondering if I could just use an Access database. Something like a file browser where I can just add categories like book, magazine, etc. as some kind of tag and then write the necessary file for the reader.
I'm no programmer, but I have some experience using Access. And I really want a stand alone app that only handles collections as I usually just drag and drop my files in a explorer.

Thanks for any help
Mike_73 is offline   Reply With Quote
Old 02-02-2010, 04:22 AM   #34
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Mike, information about collections is stored in:
/database/cache/media.xml file in case of internal memory, corresponding SD/MS card file is /Sony Reader/database/cache.xml, but I don't know, whether it's also used for collections. You'll have to learn how to manipulate XML files, if you want to write an app that handles your collections.

The following code creates "News" collection, that is referencing 5 books, with ids: 125,126,128,130,132:

Code:
		<xs1:playlist title="News" sourceid="0" id="122" uuid="170F63AF81A8-4D3D-B615-616A63F9BE06">
			<xs1:item id="125"/>
			<xs1:item id="126"/>
			<xs1:item id="128"/>
			<xs1:item id="130"/>
			<xs1:item id="132"/>
		</xs1:playlist>
Books are desribed as <xs1:text...> items.
kartu is offline   Reply With Quote
Old 02-02-2010, 05:08 AM   #35
Mike_73
Guru
Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.
 
Posts: 750
Karma: 1323
Join Date: Dec 2009
Device: PRS-505, PRS-600, iPad 16GB Wifi, Kindle Voyage, Nexus 6, Razr HD
Thanks for the info Kartu. I'll try to look into it.
Mike_73 is offline   Reply With Quote
Advert
Old 02-02-2010, 11:45 AM   #36
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
Apparently I am not needed here :-)
pepak is offline   Reply With Quote
Old 02-02-2010, 12:42 PM   #37
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
pepak
Ah, sorry, couldn't resist.
kartu is offline   Reply With Quote
Old 02-03-2010, 01:14 AM   #38
Mike_73
Guru
Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.
 
Posts: 750
Karma: 1323
Join Date: Dec 2009
Device: PRS-505, PRS-600, iPad 16GB Wifi, Kindle Voyage, Nexus 6, Razr HD
Ok, I didn't get to it yet and actually, I wouldn't want to install the library software. Could anyone send me the necessary xml file with and without some collections so I could try to see what access does to it? I assume there's also a difference between books on the reader and books on memory card!?
Mike_73 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-500 Hack Builder! Nogg Sony Reader Dev Corner 205 05-19-2011 07:08 PM
Bart's PE Builder - Run WinXP from CD! Colin Dunstan Lounge 2 03-29-2010 10:57 AM
SBPubX Builder tmaynard Fictionwise eBookwise 16 11-20-2008 12:35 PM
Very simple PRS-505 content/collection builder pepak Sony Reader Dev Corner 3 03-17-2008 01:40 PM


All times are GMT -4. The time now is 03:09 AM.


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