View Single Post
Old 01-24-2011, 11:08 AM   #1553
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
Quote:
Originally Posted by VICTORSJG View Post
Is it posible to integrate this script in prs 1.1.3 to use in prs 505?
Also I havn't it installed, the code should work with PRS-505. (I assume)

You have to modify the starter-script "DictionaryCL.js" by removing all occurences of "sandbox", for use with PRS+1.1.3

Further more there is the possibility, that the variable allocation in "dictionary.js" had to be move from the beginning of the code to the target.init() - function.
Spoiler:
Code:
 if (!kbook.simEnviro) {var simEnviro = false} else {var simEnviro = true}; 

  var dictPath = kbook.autoRunRoot.dictPath; //"/Data/database/system/PRSPlus/dictionary/"; //directory with dictionaries
  var lineNo = 0; //a line number with the result of the last search 
  var xCol = 1; //starting position of the cursor - at the middle column

  var getSoValue = kbook.autoRunRoot.getSoValue;
  var setSoValue = kbook.autoRunRoot.setSoValue;
  var maxSmartZoom = kbook.autoRunRoot.maxSmartZoom;
  var resultSize = kbook.autoRunRoot.resultSize;
Mark Nord is offline   Reply With Quote