Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Sony Reader

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 09-15-2010, 04:19 PM   #76
kravitz
Connoisseur
kravitz doesn't litterkravitz doesn't litter
 
Posts: 51
Karma: 104
Join Date: Mar 2010
Device: 505, Kindle PW
Quote:
Originally Posted by kartu View Post
Works. Except 10 is hex (will do).
Great job!
Yes in hex)
I'll create version without unnecessary changes tomorrow...

Do you prefer hex or decimal ten?

Last edited by kravitz; 09-15-2010 at 04:22 PM.
kravitz is offline  
Old 09-15-2010, 04:23 PM   #77
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
Quote:
Originally Posted by kravitz View Post
Yes in hex)
I'll create version without unnecessary changes tomorrow...

Do you prefer hex or decimal ten?
Decimal...
kartu is offline  
Advert
Old 09-16-2010, 01:38 AM   #78
kravitz
Connoisseur
kravitz doesn't litterkravitz doesn't litter
 
Posts: 51
Karma: 104
Join Date: Mar 2010
Device: 505, Kindle PW
Final release)
Attached Files
File Type: zip ebook7.zip (33.9 KB, 151 views)
kravitz is offline  
Old 09-16-2010, 02:46 AM   #79
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
Thanks. Works.
kartu is offline  
Old 09-16-2010, 03:37 AM   #80
kravitz
Connoisseur
kravitz doesn't litterkravitz doesn't litter
 
Posts: 51
Karma: 104
Join Date: Mar 2010
Device: 505, Kindle PW
Quote:
Originally Posted by kartu View Post
Thanks. Works.
Many thanks to Mark for his research!
kravitz is offline  
Advert
Old 09-16-2010, 04:24 AM   #81
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
2.0.2preview is out, added "hold <number>" key bindings support (researched by Mark Nord, implemented by kravitz), Book History bugfix. (book list wasn't correctly updated)
kartu is offline  
Old 09-16-2010, 05:18 AM   #82
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
How to check event.key

Maybe a silly question,
but how do I check quickly if a modified ebook.so will fire kUp-hold?
Mark Nord is offline  
Old 09-16-2010, 05:44 AM   #83
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
Mark Nord
On 300 it's easy as 2.0.x has new key bindings code and it is NOT run in a "sandbox" context.
On 505 1.1.3 there are at least 2 ways:

1) modify applicationStart.xml, you are after this part:
Code:
			<boolean key="0x27" do="doCenter"/>
			<boolean key="0x27-hold" do="doCenter"/>
			<boolean key="kLeft" do="doLeft"/>
			<boolean key="kRight" do="doRight"/>
			<boolean key="kUp" do="doUp"/>
			<boolean key="kDown" do="doDown"/>
I think adding
Code:
			<boolean key="kUp-hold" do="doUpHold"/>
to the mentioned file and then:
Code:
kbook.model.doUpHold = function () {
// log something
}
should work. The disadvantage is, that if you set it to something other than -hold the function won't be called.

2) You should be able to catch all events by overriding Fskin.device.handleEvent, say like this:

Code:
var oldHandleEvent = Fskin.device.handleEvent;
Fskin.device.handleEvent = function (target, event) {
	try {
		var key = event.getKey();
		// log the key
	} catch (e) {
		// log error
	}
	oldHandleEvent.apply(this, arguments);
};

but it won't work in sandbox context, you have to do it via "compile ". So the easiest way is probably to put this code into a separate file, then load it (I think there is even Core.io.getFileContent) and feed it to compile. Then call the function.
kartu is offline  
Old 09-16-2010, 06:15 PM   #84
minox.b
Junior Member
minox.b began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2010
Device: Sony PRS-300
i have tried loading different dictionary files. it can be successfully enabled by PRS+. but every time when dictionary is launched, the reader is frozen. no key is responsive. maybe there is a bug?
minox.b is offline  
Old 09-17-2010, 02:45 AM   #85
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
Quote:
Originally Posted by minox.b View Post
i have tried loading different dictionary files. it can be successfully enabled by PRS+. but every time when dictionary is launched, the reader is frozen. no key is responsive. maybe there is a bug?
Maybe. To be honest, I still haven't tried this feature. Could you link me the dictionaries that you are using?
kartu is offline  
Old 09-17-2010, 12:13 PM   #86
minox.b
Junior Member
minox.b began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2010
Device: Sony PRS-300
I have tried these few files. Hope it helps

Here

and here
minox.b is offline  
Old 09-18-2010, 05:39 AM   #87
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
Yes, I can confirm the problem. Will be fixed.
kartu is offline  
Old 09-18-2010, 11:22 AM   #88
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
DictionaryCL mod m-land

Hi kartu,

please note before adapting dicto-code that there is a improved version by m-land (still without virtual keyboard)
Quote:
Originally Posted by m-land View Post
Here I'm with new version of dictionary (..).
New features:
-text instead of label is used (better results wrapping)
-font size could be set in settings
-dynamic zoom-out (could be set % in settings) of long results

Let give it a try, all comments are wellcome.
PS: Am I right that the problem with the code is the integration of the now "elevated" Core-functions in dictinory.js?
Mark Nord is offline  
Old 09-18-2010, 01:09 PM   #89
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
Quote:
Originally Posted by Mark Nord View Post
Hi kartu,

please note before adapting dicto-code that there is a improved version by m-land (still without virtual keyboard)

PS: Am I right that the problem with the code is the integration of the now "elevated" Core-functions in dictinory.js?
Hm, I remember that I've integrated m-land's version. (should be part of latest 505 version) but I guess he might have even newer one, I'll have a look.

I don't know what the problem is, just adding try catch logging to all dictionary.js functions didn't yield any result.
kartu is offline  
Old 09-18-2010, 01:17 PM   #90
minox.b
Junior Member
minox.b began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2010
Device: Sony PRS-300
Quote:
Originally Posted by kartu View Post
Yes, I can confirm the problem. Will be fixed.
thanks Kartu, looking forward to the new release
minox.b is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-505 PRS+: 2 Questions on "Browse Folders" and Dictionary Format crc Sony Reader 2 06-23-2010 01:36 AM
PRS-300 English dictionary for PRS-300 theles92843 Sony Reader 7 04-23-2010 02:25 PM
database of book bindings Nate the great Deals and Resources (No Self-Promotion or Affiliate Links) 0 12-05-2009 08:59 PM
iLiad custom key bindings for fbreader cnbcad iRex Developer's Corner 2 05-25-2008 02:27 AM
Key Events in Microsoft History Colin Dunstan Lounge 2 11-16-2004 01:03 PM


All times are GMT -4. The time now is 02:26 AM.


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