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 05-12-2010, 03:41 AM   #1081
Mike_73
Guru
Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.Mike_73 is no ebook tyro.
 
Posts: 750
Karma: 1323
Join Date: Dec 2009
Device: PRS-505, PRS-600, iPad 16GB Wifi, Kindle Voyage, Nexus 6, Razr HD
Kartu, I didn't get to download the latest beta last weekend. I just downloaded it and found that I have to have a dictionary in .dic format to make this function work. Is there a free dic that I can download to give it a test drive?
Mike_73 is offline   Reply With Quote
Old 05-12-2010, 03:59 AM   #1082
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
Mike
This should work (I guess it's the webster's dictionary from Clemenseken's thread):
https://www.mobileread.com/forums/att...1&d=1273246333

This thread has a number of dictionaries, if you'd need more than one:
https://www.mobileread.com/forums/showthread.php?t=22320

And last, you can create your own dictionary files, it's format is:
<word><space><space><translation><endofline>

PS
1.1.1beta will be released within an hour.
kartu is offline   Reply With Quote
Advert
Old 05-12-2010, 05:16 AM   #1083
Duglum
Enthusiast
Duglum has a complete set of Star Wars action figures.Duglum has a complete set of Star Wars action figures.Duglum has a complete set of Star Wars action figures.
 
Posts: 41
Karma: 282
Join Date: Jun 2009
Device: Sony PRS-505
Mike
here's an English-German dictionary.

kartu
Could you remove the -n parameter from the grep command in the Addon? This removes the line number from the output.
It also seems like the text in the search field gets replaced by the result of the search.

Edit: For some reason the attachments didn't show up.
Attached Thumbnails
Click image for larger version

Name:	2010-5-12.jpg
Views:	244
Size:	47.7 KB
ID:	51436  
Attached Files
File Type: zip EnglishGerman.zip (825.4 KB, 195 views)
Duglum is offline   Reply With Quote
Old 05-12-2010, 05:23 AM   #1084
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
1.1.1beta is out. In short, known bugs were fixed, BookHistory jumps directly to the book, all details will be posted on changelog page.

Duglum
Quote:
Could you remove the -n parameter from the grep command in the Addon? This removes the line number from the output.
Are you sure that this number is not used for next/previous navigation?
kartu is offline   Reply With Quote
Old 05-12-2010, 05:53 AM   #1085
thawk
Connoisseur
thawk began at the beginning.
 
Posts: 57
Karma: 10
Join Date: Oct 2008
Device: prs 505
Kartu
The changelog of 1.1.1 beta has a typo: it should be Simplified Chinese instead of Traditional Chinese.
thawk is offline   Reply With Quote
Advert
Old 05-12-2010, 05:57 AM   #1086
Duglum
Enthusiast
Duglum has a complete set of Star Wars action figures.Duglum has a complete set of Star Wars action figures.Duglum has a complete set of Star Wars action figures.
 
Posts: 41
Karma: 282
Join Date: Jun 2009
Device: Sony PRS-505
Quote:
Originally Posted by kartu View Post
Are you sure that this number is not used for next/previous navigation?
I guess I didn't read the code far enough, the lineNo is used indeed.
The way it should work is that the resulting string gets cut into lineNo, term and definition and that the inputLine is set to term and the textfield below to the definition, but instead the textfield has the whole result string and the inputLine everything except the lineNo.
My guess is that this happens because the variable termIdx is never set, but my JavascriptFu is too weak to debug this
Duglum is offline   Reply With Quote
Old 05-12-2010, 06:09 AM   #1087
m-land
Enthusiast
m-land has learned how to buy an e-book online
 
Posts: 41
Karma: 86
Join Date: Jul 2009
Device: PRS-505
How dictionary could be started in PRS+? Is it possible to introduce dictionary by some button when reading book or is it still necessary to remove/insert SD?
m-land is offline   Reply With Quote
Old 05-12-2010, 06:16 AM   #1088
Duglum
Enthusiast
Duglum has a complete set of Star Wars action figures.Duglum has a complete set of Star Wars action figures.Duglum has a complete set of Star Wars action figures.
 
Posts: 41
Karma: 282
Join Date: Jun 2009
Device: Sony PRS-505
m-land
You can assign the action "Dictionary" to a key in PRS+-Settings -> Key Bindings. For example, if you assign the action to "Hold Vol+" in Global settings, the dictionary opens whereever you are when you hold the Vol+ key on the bottom.
Duglum is offline   Reply With Quote
Old 05-12-2010, 06:31 AM   #1089
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
thawk
Quote:
The changelog of 1.1.1 beta has a typo: it should be Simplified Chinese instead of Traditional Chinese.
Yep, fixed.

m-land
What Duglum said, plus via menu. No need to insert/remove anything. Actually also no need to have SD/MS card.

Duglum
Quote:
My guess is that this happens because the variable termIdx is never set, but my JavascriptFu is too weak to debug this
I'll try to fix it. So the first search result always contains line number, right?
kartu is offline   Reply With Quote
Old 05-12-2010, 06:39 AM   #1090
Duglum
Enthusiast
Duglum has a complete set of Star Wars action figures.Duglum has a complete set of Star Wars action figures.Duglum has a complete set of Star Wars action figures.
 
Posts: 41
Karma: 282
Join Date: Jun 2009
Device: Sony PRS-505
Quote:
Originally Posted by kartu View Post
I'll try to fix it. So the first search result always contains line number, right?
Exactly. The grep command used outputs the string in the following way:

linenumber:term[space][space]definition[line break]

The command is then piped through "head -n 1" which outputs only the first row in case of multiple results.
As far as I understand the code the first thing that is done is search the position in the string-array at which the colon is. Then it saves everything before that position into the variable lineNo.
After that the variable term is set to the slice of the string from colon + 1 to termIdx, which should indicate the position of the two spaces in the string.
termIdx was never set, however.
Duglum is offline   Reply With Quote
Old 05-12-2010, 08:41 AM   #1091
Duglum
Enthusiast
Duglum has a complete set of Star Wars action figures.Duglum has a complete set of Star Wars action figures.Duglum has a complete set of Star Wars action figures.
 
Posts: 41
Karma: 282
Join Date: Jun 2009
Device: Sony PRS-505
I got it. Replace line 191-201 in dictionary.js with

Code:
// get position of colon
var colonIdx = res.indexOf(':');

// get line number
lineNo = Number(res.slice(0, colonIdx));

// remove line from string
res = res.slice(colonIdx + 1, res.length - 1);

// split remaining string at double space
var split = res.split("  ");

// put string into textfields
this.inputLine.setValue(split[0]);		// term
this.printLines(txtFormat(split[1]));	// definition
Learning my way into Javascript line for line...
Duglum is offline   Reply With Quote
Old 05-12-2010, 10:14 AM   #1092
allon_pan
Member
allon_pan has a complete set of Star Wars action figures.allon_pan has a complete set of Star Wars action figures.allon_pan has a complete set of Star Wars action figures.allon_pan has a complete set of Star Wars action figures.allon_pan has a complete set of Star Wars action figures.
 
Posts: 14
Karma: 468
Join Date: Apr 2009
Location: Shenzhen, China
Device: Sony PRS 505
Native Chinese support is great, other updates are nice too. Many thanks, Kartu.
allon_pan is offline   Reply With Quote
Old 05-12-2010, 11:30 AM   #1093
Hobogen
beginner
Hobogen is on a distinguished road
 
Posts: 7
Karma: 56
Join Date: Feb 2009
Device: Kindle, historically PRS-505
By the way, I tried turning epub userstyle off, is there any way to turn it on again(without reflashing whole reader)?
I also cant seem to get working corrected version of Czech.js, I tried to change file in beta tester pack, but it doesnt have any effect, and when I reflashed again with prs+ czech language stayed there. Do I have to reflash it first with original 1.1 US firmware and then prs+? EDIT: I figured it out, I was putting betatester pack on internal memory instead of card .

Thanks

Last edited by Hobogen; 05-12-2010 at 04:56 PM.
Hobogen is offline   Reply With Quote
Old 05-12-2010, 11:30 AM   #1094
VICTORSJG
Addict
VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.
 
Posts: 318
Karma: 1846
Join Date: Dec 2009
Device: PRS-505
Kartu, you say in the new realeased 1.1.1 "Don't forget to remove old beta pack, before installing this. (they are not compatible)", so what should i do to install this release?

thanks
VICTORSJG is offline   Reply With Quote
Old 05-12-2010, 12:07 PM   #1095
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 Hobogen View Post
By the way, I tried turning epub userstyle off, is there any way to turn it on again(without reflashing whole reader)?
I also cant seem to get working corrected version of Czech.js, I tried to change file in beta tester pack, but it doesnt have any effect, and when I reflashed again with prs+ czech language stayed there. Do I have to reflash it first with original 1.1 US firmware and then prs+?

Thanks
Just put CSS files into /database/system/PRSPlus/epub folder.

Quote:
Originally Posted by VICTORSJG View Post
Kartu, you say in the new realeased 1.1.1 "Don't forget to remove old beta pack, before installing this. (they are not compatible)", so what should i do to install this release?

thanks
The same as with 1.1.0beta.

Duglum
Thanks, I'll add the fix to repository.
kartu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using HD Folders as Collections on Sony PRS-505 fglaysher Calibre 8 07-26-2010 09:55 PM
Enhanced Firmware for V3 keng2000 HanLin eBook 12 04-12-2010 09:30 AM
Poll: Sony Reader PRS-505 upgrade to Sony PRS-700 Kris777 Sony Reader 70 02-18-2009 06:34 PM
Sony Reader PRS-505 upgrade to Sony PRS-700 Kris777 Sony Reader 23 12-08-2008 06:56 AM
Sub folders in firmware v1.08 Prince Hal Amazon Kindle 28 10-23-2008 03:20 PM


All times are GMT -4. The time now is 04:11 PM.


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