View Single Post
Old 05-30-2008, 03:13 PM   #59
=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
PRS-505 Speed Hack

@lisak
The first time I read your post, I didn't realize you had it working. Would have saved me several hours.


Hi Clement/All,
Since you mentioned you did not have much time to work on the speed issue,
I spent some time updating the Dictionary to work using the 'grep' tool. This has speed up the search from ~45sec to ~1 sec. (there is a 10sec hit for the first search).
Clement feel free to merge what you like from the code and discard what you do not like.

NOTE: The changes where only tested on the PRS-505. PRS-500 users please let me know if you have any issues.

INSTALL STEPS
Unzip the file in the
<Card >\Sony Reader\software
folder this will create a "Dictionary" sub folder
<Card >\Sony Reader\software\Dictionary

Copy the autorun.* files up one directory
copy autorun.* <Card >\Sony Reader\software\

Create a directory 'dict' sub directory under
<SONY>\database\
and place the dictioanry *.txt files in that new directory
copy <Card>\Sony Reader\software\dictonary\*.txt <SONY>\database\dict


CHANGES
  • Quick Search: Uses ‘grep’ to find word, speed increased. First search is approx 10sec, 1 sec after that.
  • Quick clear: The mark(bookmark) now clears the word entry field
  • Quick word type: Prev/Next keys remapped to move the keyboard left right. -Previously the user had to type the word with one hand. Now the user can use on thumb for navigation left/right and the other thumb for the text selection.
  • Changed the default dictionary from loading ‘ita.txt’ to ‘dictionary.txt’
    NOTE: Dictionary location has changed. To ‘/Data/dictionary/dict’ of from the windows world ‘<your drive>\dictionary\dict


BROKEN
Next/Prev word does not work as before. Now the next/prev word will start from the beginning of the dictionary

=X=
Attached Files
File Type: zip Dictionary_7b-Xmods.zip (5.02 MB, 633 views)

Last edited by =X=; 05-30-2008 at 03:16 PM. Reason: updated text for clarification
=X= is offline   Reply With Quote