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 06-04-2008, 03:22 PM   #76
lisak
Member
lisak doesn't litterlisak doesn't litter
 
Posts: 20
Karma: 140
Join Date: Apr 2008
Device: Sony PRS-505
Quote:
Originally Posted by =X= View Post
Okay I re-read my last post, definitaly as confuion as my first. Let me have one more go at it.

Put a function call 'this.prepareScript()' in the loadDict() method, or in the 'init()' method. This way when the app is loaded it calls the calls the 'init()' which calls then prepareScript. This way the libfskLoad.so file is copied to the /tmp directory when the application is loaded and not on the first word search.

=X=
Ah yeah, stupid me . Yes, this is clearly inefficient. Actualy, we should probably do a getFileInfo check on existence of the library in /tmp and skip the copying altogether if the file exists.

I promise from now on I'll be paying more attention to what you're trying to get across.
lisak is offline   Reply With Quote
Old 06-04-2008, 06:25 PM   #77
lisak
Member
lisak doesn't litterlisak doesn't litter
 
Posts: 20
Karma: 140
Join Date: Apr 2008
Device: Sony PRS-505
Quote:
Originally Posted by rhadin View Post
LATER: I must have done something wrong becuase I can't get the dictionary to work. Here is what I did: After extracting the files from the zip file, I copied the PRS folder and all of its contents to my Reader. I then copied the Card folder and all of its contents to the SD card.
Just to be sure: Did you copy only the content of the respective directories, or the directories themselves? The correct result is that you should have libsfkLoad.so and myvm.xml (together with all the rest) in the root of the card, not in "card" subdirectory. The same is valid for prs folder (only its content should be copied to root of the internal memory of the reader).

If you did it correctly, at least the dictionary screen should show up. Anyway, try to use this new version, it has some improvements so that eventual errors should be identified more easily (changelog here)
lisak is offline   Reply With Quote
Advert
Old 06-04-2008, 07:41 PM   #78
rhadin
Literacy = Understanding
rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.
 
rhadin's Avatar
 
Posts: 4,833
Karma: 59674358
Join Date: Dec 2007
Location: The World of Books
Device: Nook, Nook Tablet
Quote:
Originally Posted by lisak View Post
Just to be sure: Did you copy only the content of the respective directories, or the directories themselves?
Lisak, I apologize again for being such a twerp about this but here goes :

I copied the directories themselves because I couldn't figure out how to copy just the contents using the Sony software. I could use Windows Explorer to copy the PRS files to the Reader, but not the Card files to the SD card because Explorer doesn't recognize the SD card as a separate entity.

How do you copy the files only to the SD card?
rhadin is offline   Reply With Quote
Old 06-05-2008, 01:32 AM   #79
lisak
Member
lisak doesn't litterlisak doesn't litter
 
Posts: 20
Karma: 140
Join Date: Apr 2008
Device: Sony PRS-505
Quote:
Originally Posted by rhadin View Post
Lisak, I apologize again for being such a twerp about this but here goes :

I copied the directories themselves because I couldn't figure out how to copy just the contents using the Sony software. I could use Windows Explorer to copy the PRS files to the Reader, but not the Card files to the SD card because Explorer doesn't recognize the SD card as a separate entity.

How do you copy the files only to the SD card?
Hmm, I am not sure whether Sony program allows you to copy the files into the root directory of the Reader - when you transfer them as normal books, they'll end with other books in a different directory. In my case, both the card and the reader's internal memory are identified as a two separate removable discs in Windows... Strange.

But never mind that - if this is really the case, you can use any card reader for copying files onto the card and the rest we can sort out - it actualy doesn't matter where the files in the internal memory reside, it's possible to set the paths in the program accordingly. But at least autorun.* files need to be in the right place first.
lisak is offline   Reply With Quote
Old 06-05-2008, 04:08 AM   #80
Clemenseken
eWriter
Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.
 
Clemenseken's Avatar
 
Posts: 267
Karma: 175607
Join Date: May 2007
Location: Frankfurt, FRG
Device: PB-IQ / Sony PRS-500
Cool Just a far shot @ rhadin ...

Quote:
Originally Posted by rhadin View Post
Lisak, I apologize again for being such a twerp about this but here goes [...]
@rhadin

Hi! I am not replying specifically to your problem - but then again I may...

Just to exclude one possibility you should have a look at your unzip's preferences; it must NOT have the option "change line endings to win/dos" (or similar) selected!

I speak from experience, as my MacOS unzipper did change line endings by default!
So "Sudoku" would not run - so I got really deep down into its code - so I got the idea to build on its code - so I developped (the first two versions of) "DictioLauncher".
If your dictionary file somehow is not "recognized" this might be the cause. This is just a far shot - but when I asked all the "wizards" here at MobileRead about my problem nobody thought of it...
Clemenseken is offline   Reply With Quote
Advert
Old 06-05-2008, 10:41 AM   #81
rhadin
Literacy = Understanding
rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.
 
rhadin's Avatar
 
Posts: 4,833
Karma: 59674358
Join Date: Dec 2007
Location: The World of Books
Device: Nook, Nook Tablet
Quote:
Originally Posted by lisak View Post
But never mind that - if this is really the case, you can use any card reader for copying files onto the card and the rest we can sort out - it actualy doesn't matter where the files in the internal memory reside, it's possible to set the paths in the program accordingly. But at least autorun.* files need to be in the right place first.
Thanks, Lisak. Here's the current status.

I got the Card files onto the SD card correctly -- I know because the GUI for the dictionary appeared on my Reader. And I now have the dictionary accessible.

My question now is this: Do you know where I can find an English dictionary to put on the reader?
rhadin is offline   Reply With Quote
Old 06-05-2008, 11:59 AM   #82
lisak
Member
lisak doesn't litterlisak doesn't litter
 
Posts: 20
Karma: 140
Join Date: Apr 2008
Device: Sony PRS-505
Quote:
Originally Posted by rhadin View Post
And I now have the dictionary accessible.

My question now is this: Do you know where I can find an English dictionary to put on the reader?
Excellent! And the answer to your question is: yes, for example here. Just put it into "dictionary" folder in the reader's internal memory and use "Change dictionary" button - input "wb", press enter and you should be set.

BTW, =X=, today I noticed that after the implementation of your suggestion the search times were mysteriously and surprisingly cut down to 1-2 sec. - before that, it was always 10 sec for the first search after the program started. I can't believe that delays were caused just by the act of copying library itself (it's very small and file copy is rather quick), but maybe library (and information cached by "grep") stay now in the memory...
Well, I don't know. But whatever the reason is, the fact is that it's now pretty much immediate, so big thanks to you that you insisted on implementation!
lisak is offline   Reply With Quote
Old 06-05-2008, 01:43 PM   #83
=X=
Wizard
=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.
 
=X='s Avatar
 
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
Quote:
Originally Posted by lisak View Post
Well, I don't know. But whatever the reason is, the fact is that it's now pretty much immediate, so big thanks to you that you insisted on implementation!
Well being extremely impatient is not something to take credit for but thank you.

Anyhow I think the slow down is due to how slow the Reader reads the SD card. I wonder how much faster the original solution would be if the dictionary was moved to the HD in the first place. No where near as fast as grep/sed but probably faster than 1min.

=X=
=X= is offline   Reply With Quote
Old 06-05-2008, 04:11 PM   #84
rhadin
Literacy = Understanding
rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.rhadin ought to be getting tired of karma fortunes by now.
 
rhadin's Avatar
 
Posts: 4,833
Karma: 59674358
Join Date: Dec 2007
Location: The World of Books
Device: Nook, Nook Tablet
Quote:
Originally Posted by lisak View Post
Excellent! And the answer to your question is: yes, for example here. Just put it into "dictionary" folder in the reader's internal memory and use "Change dictionary" button - input "wb", press enter and you should be set.
Thank you, Lisak. I followed your instructions and it works great. Have some karma .
rhadin is offline   Reply With Quote
Old 06-08-2008, 07:41 PM   #85
G@0
Junior Member
G@0 began at the beginning.
 
G@0's Avatar
 
Posts: 2
Karma: 10
Join Date: Jun 2008
Location: NYC
Device: PRS-500
any solution for PRS-500 with direct page control?

Quote:
Originally Posted by lisak View Post
If you did it correctly, at least the dictionary screen should show up. Anyway, try to use this new version, it has some improvements so that eventual errors should be identified more easily (changelog here)
Hi Lisak, Clemenseken & =X=,

Thank you guys for the great work, and it's definately a handy add-on which makes the reader versatile.

However, I have two problems with the dictionary since I'm using PRS-500 with direct page control that'll be great if you can give me some guidelines making the tool work on my reader:

1. ENTER seems to have been re-defined after I installed direct page control which comes from https://www.mobileread.com/forums/showthread.php?t=13003 How can I make your dictionary work with this setting?

2. The DictioLaunchX-0.85 seems to have more neat features than version 0.7b, but it doesn't seem to have a comparable PRS-500 version after I've read this thread over many times. Do you guys plan to have any PRS-500 update in the near future?

I'd love to contribute if I can, but I'm a novice in Javascript & XML. Maybe you can give me some guidelines on your code structure and some references on how to hacking sony ereader.

Thanks again for the nice job~
G@0 is offline   Reply With Quote
Old 06-09-2008, 12:35 AM   #86
lisak
Member
lisak doesn't litterlisak doesn't litter
 
Posts: 20
Karma: 140
Join Date: Apr 2008
Device: Sony PRS-505
Quote:
Originally Posted by G@0 View Post
1. ENTER seems to have been re-defined after I installed direct page control which comes from https://www.mobileread.com/forums/showthread.php?t=13003 How can I make your dictionary work with this setting?
Well, I am not sure how the hack is implemented, but if the behavior of Bookmark key was not changed as well, you can try to open "autorun.xml" file which resides on the card and change this:

<function id="doMark">
this.clearInput();
this.clearLines();
</function>

to this:
<function id="doMark">
this.centerKey();
</function>

After that, you should be able to search the term by pressing "Bookmark" button. You lose the functionality of clearing the input line by single button press, but you can still use virtual key << at the "keyboard". Another option would be to use the Zoom key, but so far I was not able to find any reference on what function ID this key has.

Quote:
Originally Posted by G@0 View Post
Do you guys plan to have any PRS-500 update in the near future?
Well, I personaly don't have the access to 500 model, so any serious work/testing would have to be done by somebody else. However, if you have some specific problem here, just describe it (either here or here) and we try to sort it out.

Quote:
Originally Posted by G@0 View Post
I'd love to contribute if I can, but I'm a novice in Javascript & XML. Maybe you can give me some guidelines on your code structure and some references on how to hacking sony ereader.
I am afraid that as far as references go, we're stuck with the code that's at hand (eg. sudoku game is an excellent sample code). If you're curious about something in this program, just write me an email (it should be possible through mobileRead, I hope) - guess it would be better than to clutter the forum here...

And thanks for all the praise!
lisak is offline   Reply With Quote
Old 06-09-2008, 07:09 AM   #87
Clemenseken
eWriter
Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.
 
Clemenseken's Avatar
 
Posts: 267
Karma: 175607
Join Date: May 2007
Location: Frankfurt, FRG
Device: PB-IQ / Sony PRS-500
Arrow Values for models "PRS500"

Hi @ Lisak and G@O!
Quote:
Originally Posted by lisak View Post
Well, I personaly don't have the access to 500 model, so any serious work/testing would have to be done by somebody else.
As obviously you cannot test your modified version on a PRS500 I tried to collect information for such a version, and attached a suitable "skinMain500.png".

The array in autorun.js must be:
Code:
target.keyMap = new Array(
	new Array('w','s','x'),
	new Array('e','d','c'),
	new Array('r','f','v'),
	new Array('t','g','b'),
	new Array('y','h','n'),
	new Array('u','j','m'),
	new Array('i','k','CD'),
	new Array('o','l','CLR'),
	new Array('p',' ','BS'),
	new Array('q','a','z')		);
Then your functions "clearLines" and "printLines" (and maybe others) need be reduced to 6 text lines. These lines are longer ("lineLength" about "50"?) each than in the 505 version (see autorun.xml).

In your function "arrowKey" "lineCursor.changeLayout" should (hopefully) be:
(541, undefined, undefined, 553+ this.xCol *48, undefined, undefined)
Maybe "this.xCol *48" needs a correction, though...

The positions for text lines in autorun.xml should be:
Quote:
<!-- At top defined "id=sometext" has size="48" (instead of "40").
(L/R/T/H) "inputLine": 50/30/85/60
(TOP) "line1".."line6": 200,235,270,305,340,375
(L/R/H) "line1".."line6": 45/30/60
"statusLine": not defined - see "skinMain500.png".-->
You can of course run a PRS500 app/layout on your PRS505. It just feels a little "funny".
I hope to have made an easy adaption for us "505 oldies" possible. For more information just ask me. THANX!
Attached Thumbnails
Click image for larger version

Name:	skinMain500.png
Views:	438
Size:	27.8 KB
ID:	13368  
Clemenseken is offline   Reply With Quote
Old 06-09-2008, 10:27 AM   #88
G@0
Junior Member
G@0 began at the beginning.
 
G@0's Avatar
 
Posts: 2
Karma: 10
Join Date: Jun 2008
Location: NYC
Device: PRS-500
internal memory access on prs-500

Clemenseken & Lisak,

Thank you guys for such detailed explanation. I'll definately try it out once I have some down time and let you know how it works.

One more puzzle to me, the prs-505 version dictionary seems to put dictionary text file on internal memory, but prs-500 don't have direct access to it:

1. what's the advantage of putting dictionary file on internal memory? Does it consume less battery power and/or because of faster I/O speed?

2. Is there any walkaround for prs-500 on accessing internal memory? a) Do I have to use Igorsk's universal flash to copy files onto internal memory? b) Where in your codes can I specify it myself if I decide to put dictionary file on memory stick instead of internal memory?

I'll definately check out the Sudoku game on my reader Actually back to the school days I tried to solve sudoku by integer programming solely using Excel solver, but it requires over 280 binary variables whereas solver only support up to 200 variables maybe I'll try it in matlab next time

Anyway, thanks again for your time, you guys are awesome~!

G@0
G@0 is offline   Reply With Quote
Old 06-09-2008, 12:19 PM   #89
joeanne12
Member
joeanne12 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Feb 2008
Location: Australia
Device: sony 505
Unhappy help

Oh please please help, I have done somthing terribly wrong and frozen my 505. I unzipped DictoLaunchX-0.85 into a folder on my desk top and then connected my reader. I then double clicked on the card folder and copy and pasted the files onto my card. I then did the same with the prs folder and copy and pasted the database file onto the root directory of my reader and over wrote the database file that was already there. I think I was not supposed to do this. I did not back up my original database file and now the only way I can start my reader is by pushing the reset button and then it come up with the menu and is frozen. I can still get into the reader via my computer as it still comes up as a removable disk but ebook library wont see the reader. Also what files should I have on the reader memory?

I am running windows XP please help

Last edited by joeanne12; 06-09-2008 at 12:47 PM.
joeanne12 is offline   Reply With Quote
Old 06-09-2008, 12:51 PM   #90
=X=
Wizard
=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.
 
=X='s Avatar
 
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
Quote:
Originally Posted by G@0 View Post
Clemenseken & Lisak,

1. what's the advantage of putting dictionary file on internal memory? Does it consume less battery power and/or because of faster I/O speed?
The real reason for putting the dictionary on the memory card is that the 'grep' utility cannot access the memory stick. Sony developed a library so they could access the memory card. However this library does not work from the command line.

However there is a side benefit that the internal memorycard is quicker and requires less battery usage.

Quote:
Originally Posted by G@0 View Post
2. Is there any walkaround for prs-500 on accessing internal memory? a) Do I have to use Igorsk's universal flash to copy files onto internal memory? b) Where in your codes can I specify it myself if I decide to put dictionary file on memory stick instead of internal memory?
There is, you can either use your recommendation above. Or change the code in the autorun.js to copy the files for you to the /Data/media/database directory (of course you would have to create the directory too).

The real question is does the libfskLoad.so library works for the PRS500 if it does then updated support for the PRS500 will be easy. If it does not then the recent updates will not work with the PRS500.

At that point I would recommend PRS500 folk stick with Clemenseken original solution with version 7b.

=X=
=X= is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Christmas gift: MahJonG game (starting from SD card via autorun) Clemenseken Sony Reader Dev Corner 19 05-06-2011 04:09 PM
Code to launch autorun from SD without pullin the card out mkaluza Sony Reader Dev Corner 1 08-12-2008 12:05 PM
PRS-500 Dictionary for Sony PRS500/5 (autorun from SD card) with onscreen keyboard Clemenseken Sony Reader Dev Corner 3 07-05-2008 08:33 AM
Dictionary for Sony PRS500/5 - new version next week ... Clemenseken Sony Reader Dev Corner 1 04-15-2008 07:42 AM
Dictionary for Sony PRS500/5 (runs from SD card) Clemenseken Sony Reader 0 03-27-2008 05:58 PM


All times are GMT -4. The time now is 04:42 AM.


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