05-31-2008, 01:23 PM | #61 | ||
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
Quote:
No worries, that's quite clever actually. =X= |
||
06-02-2008, 03:51 AM | #62 | |
eWriter
Posts: 267
Karma: 175607
Join Date: May 2007
Location: Frankfurt, FRG
Device: PB-IQ / Sony PRS-500
|
Quote:
Yes, I will post it (today?). It's just a game I saw on my brother's cell phone and decided to re-create for me/fun... It is similar to breakout, but you have to "align" differently coloured patterned balls in a way that gives you the maximum amount of points. I called my clone 5Balls. BTW, I'll send you a PM asking for some explanations concerning your development on the dictionary project - but probably not today. |
|
Advert | |
|
06-02-2008, 04:45 AM | #63 | |
Member
Posts: 20
Karma: 140
Join Date: Apr 2008
Device: Sony PRS-505
|
Alas, it seems that I am late as usual. I just came to let you all know that the reworked version of the dictionary will be available today's evening (CET), but it seems that the work is mostly done...
Anyway, maybe there will be some additions you'd find useful after all (eg. I have function for previous/next word working, addition of the status line etc.) - hope somebody'll like it. I'll do a quickscan for enhancements suggested here and I'll try to implement at least some of them for the added value. Quote:
Last edited by lisak; 06-02-2008 at 04:55 AM. |
|
06-02-2008, 06:26 PM | #64 |
Member
Posts: 20
Karma: 140
Join Date: Apr 2008
Device: Sony PRS-505
|
Ok, here's my version, as promised:
Instalation: - unzip archive - connect your reader to the computer - copy everything from "card" directory to your card (your original autorun.* files will be overwritten - back them up, if you think you'll need them) - copy everything from "prs" directory to internal memory of your Sony Reader - disconnect reader - the program should start What's new: - search via grep - features are the same as described by =X= - additional button for clearing all text from input field (marked '<<') - prev/next line buttons working (expect slight delay after first keypress, after that it's pretty much immediate) - status line showing some additional info for user added - not used heavily in the current version, but might be useful in the future Following might be of interest to programers : - I have everything prepared for showing of "hourglass" icon during the search, but unfortunately I haven't found the way how to force-update the screen while a function is running (normaly, redraw is done only when reader is "idle") - as a result, the icon would show only after the search is completed - The program itself should be now more modular & readable for other contributors - I rewrote major parts of the code, renamed variables/functions to English and added a lots of comments. You tell me if it's for better or not. - A slightly different way of input-mapping can be activated by setting "threeButton" to true - description of the mapping is in the code. Well, that's it. Let me know if you find it useful (or if it's at least running...). Once againg, big thanks to Clemenseken for making such a great & useful program! Last edited by lisak; 06-02-2008 at 06:38 PM. |
06-03-2008, 04:16 AM | #65 | |
eWriter
Posts: 267
Karma: 175607
Join Date: May 2007
Location: Frankfurt, FRG
Device: PB-IQ / Sony PRS-500
|
Quote:
@ =X= Hi, you both! Thank you very much for your impressing work on this. As I repeatedly mentioned here before, I am no "real" programmer. (must admit I understand only vaguely what libfskLoad.so or myvm2.xml are needed for...) Well, so I'd like to suggest that you two get together and try to merge your improvements to my original code. (From a programmer's point of view there must be quite a few. But as asked before, I'd be grateful if you used a slightly different name for it.) BTW - has one of you (or other member here) found a way to completely transfer the autorun "system" to internal memory, so an SD card is no longer needed? THAT would be the next fundamental step (IMHO) as I still suspect SD cards to draw hard on battery life... Thanks again! As I am just so able to understand what you did, I am certainly not the one to keep the project running. (But having done the basic code and developing the idea in itself is good enough for me.) Clemens (P.s.: I will post a game for Sony eReaders here in the next few hours. But as I own a PRS500 "only" I can't estimate its usability for PRS505s very well... It's called "FiveBalls.". ) |
|
Advert | |
|
06-03-2008, 05:17 AM | #66 | |
Member
Posts: 20
Karma: 140
Join Date: Apr 2008
Device: Sony PRS-505
|
Quote:
Great! Can't wait! |
|
06-03-2008, 12:09 PM | #67 |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
@lisak
Wow you've completed re-wrote the code! I must say you did a bang up job. @clement/lisak The changes both lisak are very similar, however lisak did a much better job in cleaning up the code and commenting it. I recommend lisak's code be used for the next release. There is no need for any merging in either your code or my code, lisak's code is a complete re-write. @lisak Here are a few comments on you implementation Keyboard: Is it possible to have two lay outs. Personally I like clements QWERTY lay out but I see value in the ABC... Is it possible to code two UI and have the user select their preference? Logs: There are still logs getting pumped out, for releases it's best if we disable them. LIB: I've recommend adding the line 'this.prepareScript()' to the 'loadDict' method. This will move the load time of the lib to the load time of the app, but this way the user will not experience a hit on their first word search. (having to wait for the app to load, then wait for the search is a pain) // Here are some of my suggestions for keyboard mapping. KeyMapping: In my release I changed a few buttons maps for quicker entries. I'd like to add these keys to your code. Change the <mark> button to call 'clearInput' Change the "Next/Prev" from find next word to moving the keyboard cursor left/right. Last edited by =X=; 06-03-2008 at 12:11 PM. Reason: updated for clarification |
06-03-2008, 12:21 PM | #68 | |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
BTW - has one of you (or other member here) found a way to completely transfer the autorun "system" to internal memory, so an SD card is no longer needed? THAT would be the next fundamental step (IMHO) as I still suspect SD cards to draw hard on battery life... I've kind of speculated on what that would take. Here is my post on "Wolf's" New Hack for the SONY 505" https://www.mobileread.com/forums/sho...6&postcount=93 My motivation from moving it from the card is for hardware life of the SD card reader. the more you eject the card the greater chance of damaging the reader and the card. Also it would be nice to load the dictionary from a button press instead of eject/re-inserting the card. However lisak is correct. Until SONY comes out with their firmware release anything non trivial is being avoided. (P.s.: I will post a game for Sony eReaders here in the next few hours. But as I own a PRS500 "only" I can't estimate its usability for PRS505s very well... It's called "FiveBalls.". )[/QUOTE] |
|
06-04-2008, 02:17 AM | #69 | ||
Member
Posts: 20
Karma: 140
Join Date: Apr 2008
Device: Sony PRS-505
|
Quote:
I created dictioLaunch pages at Google Code, where I listed all the suggestions you've mentioned (and some more) so they won't get lost. I admit it might be an overkill for a project of this size , but I wanted to try this service out for some time and this provided me an opportunity. Let me know if you or Clemens (or anybody else, for that matter) want to have access to svn - I'll add you right away and we can work on it together. Quote:
Still, I think this approach can be used - one of improvements I'd like to see is to introduce some "start-up menu", which would be than used for executing a specific application (so that you can have eg. sudoku & dictionary at the same card). prepareScript would be then called right after user confirms s/he wants to start DictioLaunch. I agree with <mark> change (at least until we have some better use for it), but regards next/prev - how do we get to next/prev line then (this functionality can be useful when you run into synonyms)? |
||
06-04-2008, 09:49 AM | #70 | |
Literacy = Understanding
Posts: 4,833
Karma: 59674358
Join Date: Dec 2007
Location: The World of Books
Device: Nook, Nook Tablet
|
Quote:
|
|
06-04-2008, 11:29 AM | #71 | |
Member
Posts: 20
Karma: 140
Join Date: Apr 2008
Device: Sony PRS-505
|
Quote:
├───card │ │ libfskLoad.so │ │ │ └───Sony Reader │ └───software │ │ autorun.js │ │ autorun.xml │ │ │ └───skins │ labels.png │ skinMain505.png │ └───prs └───database └───media
└───dictionary default.txt dict.dat wb.txt |
|
06-04-2008, 12:24 PM | #72 | |||
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
Earlier Post from liask The first time a search is preformed there is a 4sec-20sec delay because the library 'libfskLoad.so' is getting loaded for the first time. My recommendation was to make the first call during the loadDict methods so that the user does not experience the delay on the first search. As an aside note, I've noticed that this trick works only when the card is ejected/reinserted. Some how the USB disconnection does not work. As for the google sure good idea. Quote:
I know it is a matter of preference, I just find it easier and quicker to be able to use both hands to type a word than having to use one hand. Quote:
What OS are you using, it looks like Linux(Unix) For the Windows world, the <Card> and <PRS> root directores do not exist. It is: <Drive>:\Sony Reader <Drive>:\Database |
|||
06-04-2008, 12:42 PM | #73 | |||
Member
Posts: 20
Karma: 140
Join Date: Apr 2008
Device: Sony PRS-505
|
Quote:
Quote:
Quote:
Here it is - try this archive: http://dictiolaunch.googlecode.com/f...unchX-0.81.zip Last edited by lisak; 06-04-2008 at 12:50 PM. |
|||
06-04-2008, 01:14 PM | #74 | |
Literacy = Understanding
Posts: 4,833
Karma: 59674358
Join Date: Dec 2007
Location: The World of Books
Device: Nook, Nook Tablet
|
Quote:
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. I thought perhaps it should be done some other way, but the only way I could get the Sony software to copy over all of the files to the SD card was by copying the entire folder. Sorry to be so lame about this, but what am I doing wrong? Last edited by rhadin; 06-04-2008 at 01:32 PM. Reason: to supplement original response |
|
06-04-2008, 02:50 PM | #75 | |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
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= |
|
|
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 |