07-06-2008, 05:20 AM | #106 |
Stats:
Posts: 233
Karma: 1189
Join Date: Nov 2007
Device: Sony PRS-505
|
Beach Boys 2008!
|
07-12-2008, 04:04 PM | #107 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Jul 2007
Device: Sony Reader PRS-500, Kindle DXG
|
The DictioLaunchX – release 0.87 work on the PRS-500 model.
I used prs500.exe to copy the dictionary files to the internal memory. The only problem is that the keyboard layout is good for the 505 only. |
Advert | |
|
07-17-2008, 04:55 PM | #108 | |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
The changes would not be to difficult, just a matter of changing the XML file to point to the 500 skin and the keyboard array in the JS file. Also there has to be a load time check to see what device is running 500 vs 505. Then load the skin and arrays dynamically. =X= |
|
07-20-2008, 02:28 AM | #109 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Jul 2007
Device: Sony Reader PRS-500, Kindle DXG
|
I already made this...
I changed the original skinMain500.png to give more space for line texts. And updated the xml and the code to reflect the key press. But I don't known how to detect if the device is a 500 or 505... How I can check this on the .js file? |
07-21-2008, 05:57 PM | #110 | |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
Code:
this.trace("Device INFO:[" + this.runCommandResult("uname -a")+ "]"); After you find the string replace the code above with the following code. Say your looking for 'PRS500' in the uname string (it's not there I've check uname on the PRS-505, but let's pretend it is) Code:
var prsRegEx= /PRS500/gi; var szUnameResults = this.runCommandResult("uname -a"); if (szUnameResults.match(prsRegEx)){ //DO THE PRS 500 code here } else{ //DO THE PRS 505 CODE HERE } Last edited by =X=; 07-21-2008 at 06:01 PM. Reason: Upated instructions |
|
Advert | |
|
07-23-2008, 09:56 AM | #111 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Jul 2007
Device: Sony Reader PRS-500, Kindle DXG
|
Hi!
This is the result of the log: Code:
Device INFO:[Linux (none) 2.4.17_n12 #1 2005ǯ 10·î 11Æü ²ÐÍËÆü 18:19:40 JST armv4l unknown] What is the 505 string? I need the two strings to search for something specific on each device... Thanks! |
07-23-2008, 10:28 AM | #112 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
You can check the contents of the file /opt1/info/model. On the 500 it contains PRS-500/U, on 505 - PRS-505/UC.
|
07-24-2008, 02:54 AM | #113 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Jul 2007
Device: Sony Reader PRS-500, Kindle DXG
|
Thanks for the advice Igorsk!
I updated the code and now the keyboard and the cursor work in a different way for each model. But I have another problem... because the differences on the skinMain png, the lines with the word definition are different... the lines are defined in this way on the xml for the 505 model: Code:
<kbookLabel id="line1" skin="textkl" left="30" right="150" top="215" height="60" align="left" text=""/> Code:
<kbookLabel id="line1" skin="textkl" left="30" right="30" top="130" height="60" align="left" text=""/> 1) a different xml file for each model 2) a way to change the size and position of the "line(n)" on the js code. I think that the 2nd option is the best... but I don't known if this is possible to do (and how). Regards |
07-24-2008, 01:18 PM | #114 |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
@igorsk Thank you that is much easier to identify the device
@gczobel The Sony Reader Seems to support DHTML so you should be able to change the dimensions via javascript. So in the section where I have //DO THE PRS 500 code here in an earlier post the following syntax should work Code:
var prsRegEx= /PRS-500/gi; var szUnameResults = this.runCommandResult("cat /opt1/info/model"); if (szUnameResults.match(prsRegEx)){ //DO THE PRS 500 code here this.line1.style.right= "30"; this.line1.style.top = "130"; ... (add the rest of the elments and properties below) this.line2.style.right= "30"; this.line2.style.top = "130"; ... (add the rest of the elements and properties below) } else{ //DO THE PRS-505 CODE HERE this.line1.style.right = "150"; this.line1.style.top = "215"; ... (add the rest of the elements and properties below) this.line2.style.right="150"; this.line2.style.top="215"; ... (add the rest of the elments and properties below) .... // ADD the rest of the style attributes below } Notice that the 'line1' above is also the same as the ID="line1". So in JavaScript (DHTML/DOM really) the convention is 'this."ID".styles.[properties]' to change the properties of an element. The properties are values such as top, width, left, right .etc. Here is a good reference NOTE2: The syntax above assumes SONY supports the latest DHTML/DOM standard. =X= |
07-24-2008, 01:23 PM | #115 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
No, Sony's object model is not the DHTML DOM one.
|
07-24-2008, 02:29 PM | #116 |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Is there a way to change the properties of an element? I see there is a changeLayout method is this the only way then to dynamically change the size and position of an element?
|
07-24-2008, 03:31 PM | #117 | |
Enthusiast
Posts: 30
Karma: 10
Join Date: Jul 2007
Device: Sony Reader PRS-500, Kindle DXG
|
Quote:
The parameter 1 and 4 are X and Y respectively... and the other 4? Maybe width, height, align, text ??? Like the xml ? Code:
<kbookLabel id="line1" skin="textkl" left="30" right="150" top="215" height="60" align="left" text=""/> |
|
07-24-2008, 04:57 PM | #118 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Code:
changeLayout (left, width, right, top, height, bottom); |
07-29-2008, 12:09 PM | #119 |
Legal Alien
Posts: 288
Karma: 105
Join Date: Jan 2008
Device: Sony PRS-505/T1/Kindle PW2
|
QUESTION:
Is there a way now to add the dictionary as a built in hack, instead of as SD Autorun? |
07-29-2008, 02:05 PM | #120 |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
There is much interest, but no solution to date. The main reason people have not worked on such a feature was for fear of bricking their device. Now that sony has resealed a fW update there is now a way to recover. I suspect sombody will come up with a solution soon.
=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 |