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 04-05-2010, 10:19 AM   #1
Mark Nord
2B || !2B
Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.
 
Posts: 851
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Change Language with firmware v.1.4.0.23260 and modified PRS+

  1. this is based on kartu’s (and his ancestors) excellent work, Code version form March 14, r32a8553af7 (http://code.google.com/p/prs-plus/)
  2. this is done for academic and educational purpose only
  3. Starting an new thread to not disturb “Enhanced firmware for PRS 505, Books by Folder, Sudoku & more“ at https://www.mobileread.com/forums/showthread.php?t=64510
  4. accordingly patched applicationStart.xml and main.xml files have to be prepared and integrated in the firmware to use this addon
  5. limited to none support is granted

Surprisingly enough only two small changes in code are necessary to enable PSR+ fully on a non 1.1.0.18040 version.

First thing is, that it is not save to write to the title property of an cloned ContainerNode object.
So I introduced a new property _mytitle1, which is solely used in ChangeLang.js and can otherwise be omitted.

core_ui.js had to be patched at line
Code:
135   if (arg.hasOwnProperty("title")) {obj.title = arg.title;}
to	if (arg.hasOwnProperty("title")) {obj._mytitle1 = arg.title;} //for v1.4
The other reference is in BrowseFolders.js
Code:
269  this.title = this.name;
changed to 
     this._mytitle1 = this.name; // changed for v1.4
This done I was looking for a way to enable the “build in” language selection.

Thus I came to the following addon:
ChangLang.js (see attachment)
which allows to change the language of the UI on the fly between the tree build in languages, Enlish, French and German.

Things to mention:
  1. German “Umlaute” for the UI have to be escaped to UTF-8 and to be decoded with decodeURI()
    [Edit 2010-04-10] This is not true! But you have to make sure, that your code-editor saves in UTF-8!
    Mine used "Windows 1252: Western European", leading me to the above solution, to get it displayed right on the PRS 505 screen.
    With a correct configured editor, you can simply type in the symbols. [/Edit]
  2. kbook.root.nodes[i].title’s are translated after kbook.model.container.changeLanguage(lang) call but the kbook.root.nodes[i].name property which is obviously use to display the menu entries isn’t. So it had to be changed by code. And there is where _mytitel1 for PRS+ entities comes handy.
  3. by adding <kbookLanguage> entrys to main.xml and supplying the according "kbookLanguageAssets_??-??.xml" files additional languges are possible to integrate.
    [Edit 2010-04-10] Proofed by adding a Spanish translation, derived from the spanish PRS+ translation by surquizu and VICTORSJG. Hope this is OK for you guys.
    Hint: Double check the xml file for syntax, flashing a missformated file bricks your reader, even if the language isn't ever used!
    [/Edit]
Attached Thumbnails
Click image for larger version

Name:	2010-4-5.jpg
Views:	741
Size:	58.9 KB
ID:	49230   Click image for larger version

Name:	2010-4-5_0.jpg
Views:	633
Size:	61.5 KB
ID:	49231   Click image for larger version

Name:	2010-4-10.jpg
Views:	557
Size:	58.7 KB
ID:	49588   Click image for larger version

Name:	2010-4-10_0.jpg
Views:	730
Size:	59.1 KB
ID:	49589  
Attached Files
File Type: rar ChangeLang.rar (1.1 KB, 558 views)
File Type: xml kbookLanguageAssets_es-ES.xml (12.3 KB, 517 views)

Last edited by Mark Nord; 04-10-2010 at 10:40 AM.
Mark Nord is offline   Reply With Quote
Old 04-11-2010, 08:36 AM   #2
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,

could you post the 1.4.0.23260 image file please?
kartu is offline   Reply With Quote
Advert
Old 04-11-2010, 09:18 AM   #3
Mark Nord
2B || !2B
Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.
 
Posts: 851
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
here you go....

As I'm used to modify the firmware with Universal Flasher, the prsp.lnk wasn't working. So the included "FskDocumentViewerAdobe.so" is the "original patched" version, pointing to "\Data\epub\userStyle.css"

Code:
This is the File-Compare-Report vs the original firmware:

Binary Comparison of <F:\Downloads\sony\cramfs-tools\new_opt_img_1.4> to <F:\Downloads\sony\cramfs-tools\opt_img_v1.4>
64 files in 7 folders

47 files match exactly
----------------------
	sony\ebook\application\resources\scripts\kBookAssets.png 
	sony\ebook\application\resources\scripts\kBookDefaultArt.png
	sony\ebook\application\resources\scripts\kBookDefaultThumbnail.png
	sony\ebook\application\resources\scripts\kBookDisk.png
	sony\ebook\application\resources\scripts\kbookLanguageAssets_de-DE.xml
	sony\ebook\application\resources\scripts\kbookLanguageAssets_en-US.xml
	sony\ebook\application\resources\scripts\kbookLanguageAssets_fr-FR.xml
	sony\ebook\application\resources\scripts\mainStorage.xml
	sony\ebook\application\resources\application.xml
	sony\ebook\application\resources\storage.xml
	sony\ebook\application\resources\storageStart.xml
	sony\ebook\application\resources\switcher.xml
	sony\ebook\application\application.xsb
	sony\ebook\application\coreaudiofilters.so
	sony\ebook\application\drm.xsb
	sony\ebook\application\drmDocviewer.xsb
	sony\ebook\application\ebook.so
	sony\ebook\application\ebookConfig.so
	sony\ebook\application\fileserialize.so
	sony\ebook\application\FskBBeBViewer.xso
	sony\ebook\application\FskCache.xsb
	sony\ebook\application\FskCore.xsb
	sony\ebook\application\FskDMF.xsb
	sony\ebook\application\FskDocumentViewer.so
	sony\ebook\application\FskDocumentViewerRTF.so
	sony\ebook\application\FskFhGAACIntDec.so
	sony\ebook\application\FskFhGMP3IntDec.so
	sony\ebook\application\FskImage.so
	sony\ebook\application\Fskin.so
	sony\ebook\application\FskMediaPlayers.so
	sony\ebook\application\FskMobileMediaDevice.so
	sony\ebook\application\FskSecurity.so
	sony\ebook\application\kbook.so
	sony\ebook\application\language.xsb
	sony\ebook\application\libfreetype.so.6.3.10
	sony\ebook\application\libtinyhttp.so
	sony\ebook\application\libuss.so
	sony\ebook\application\octDocviewer.xsb
	sony\ebook\application\octopus.xsb
	sony\ebook\application\storage.xsb
	sony\ebook\application\switcher.so
	sony\ebook\application\tinyhttp
	sony\ebook\application\UCA.so
	sony\ebook\application\xdbLite.so
	sony\ebook\bin\deviceid
	sony\ebook\bin\UsbUpdater
	sony\ebook\bin\writescreen

12 files don't match
--------------------
	sony\ebook\application\resources\scripts\kBookIcon.png      // nicer icons
	sony\ebook\application\resources\scripts\kBookLogos.png  // folding book
	sony\ebook\application\resources\scripts\main.xml  // Clock, es-ES

	sony\ebook\application\resources\applicationStart.xml  // Startupcode
	sony\ebook\application\FskDocumentViewerAdobe.so   // res:///Data/epub/userStyle.css
	sony\ebook\application\kconfig.xml     // Fonts
	sony\ebook\application\libfreetype.so.6.lnk  // not changed
	sony\ebook\application\libfreetype.so.lnk    // not changed
	sony\ebook\bin\tinyhttp.sh     // call to prsp.sh
	sony\ebook\FONT\tt0003m_.ttf  // from 1.02 installer
	sony\ebook\FONT\tt0011m_.ttf  // from 1.02 installer
	sony\ebook\FONT\tt0419m_.ttf  // from 1.02 installer

4 folders and files only on left
--------------------------------
	sony\ebook\application\resources\scripts\kbookLanguageAssets_es-ES.xml
	sony\ebook\application\Latin1toUTF8.so
	sony\ebook\application\libfskLoad.so
	sony\ebook\application\prspVM.xml
The original dump is linked on surquizu site: http://prs-505.webcindario.com/descargas.htm

Copy 'n Past from
kbook.xs - dump
Code:
	this.Date.prototype.toLocaleDateString = function () {
		var split, date;
		split = this.toDateString().split('/');
		date = <global>.kbook.strings['STR_FORMAT_DATE'];
		date = date.replace('YY', split[0]);
		date = date.replace('MM', split[1]);
		date = date.replace('DD', split[2]);
		return date;
	};
Notify me, if you think this is a copyright violation, and the attachmend will be removed immediately .
[Edit] Removed personal info from image [/Edit]
Attached Files
File Type: zip fsk.zip (6.15 MB, 409 views)

Last edited by Mark Nord; 04-11-2010 at 01:43 PM.
Mark Nord is offline   Reply With Quote
Old 04-11-2010, 10:59 AM   #4
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, does localization also work in "usb connected" mode? (my version of PRSP hangs (I guess because of the new core_lang stuff) so I didn't check it with language switcher) It's clear, that resource file is used, but does it show the right language?
kartu is offline   Reply With Quote
Old 04-11-2010, 11:41 AM   #5
Mark Nord
2B || !2B
Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.
 
Posts: 851
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
No, if connected to USB the messages are all in German.

I think, when connected to USB "storageStart.xml" and "mainStorage.xml" are executed, and "mainStorage.xml" has it's own
Code:
<kbookLanguages id="LANG" default="de" width="0" height="0" visible="false">
	<kbookLanguage lang="en" width="0" height="0" visible="false">
		<assets>
..
	</kbookLanguages>
block.

Eventually
Code:
		<function id="initialized">
			USBDispatcher.doRegister(this.getWindow())
			this.getDevice().enableBlueLED(false);
		</function>
in storageStart.xml can be use for another (or even the PRS+) code injection.

For your convenience I add my modified sources, based on the latest code on http://code.google.com/p/prs-plus/.

Here is the list of changes:

Code:
Binary Comparison of <F:\Downloads\sony\prs-plus\clone> to <F:\Downloads\sony\prs-plus\My_PRSPlus_Scipt\my mod clone loc>
55 files in 11 folders

35 files match exactly
----------------------
	
11 files don't match
--------------------
	addons\BrowseFolders.js  // title -> _mytitle1, title for rescan int.mem
	addons\Clock.js  //title
	addons\EpubUserStyle.js  // res:///Data/epub/userStyle.css
	addons\MenuCaptions.js  // faild playing with size, have to wait for soSetValue
	addons\PageIndex.js // use Sony's Localization for " OF "
	core\lang\English.js  // no Sony: category
	core\core_lang.js  // no change of the Sony UI, iterator for Lang-Files
	core\core_ui.js   // _mytitle1 
	core\core_zAbout.js  // don't show PRS+ fw
	core\core__log.js  // use filemode 3 for logfile
	PRSPlus.js  // use filemode 3 for logfiles

2 folders and files only on left
--------------------------------
	addons\sandbox_kartu.js
	addons\TextEncoding.js

8 folders and files only on right
---------------------------------
	addons\disabled\
	addons\disabled\sandbox_kartu.js
	addons\disabled\TextEncoding.js
	addons\ChangeLang.js   
	core\lang\German.js
	core\lang\German.zip
	core\lang\Spanish-Sample.zip
	core\lang\Spanish.js
Attached Files
File Type: zip my mod clone loc.zip (228.4 KB, 366 views)

Last edited by Mark Nord; 04-11-2010 at 01:45 PM.
Mark Nord is offline   Reply With Quote
Advert
Old 10-27-2011, 01:11 PM   #6
Elochka0612
Junior Member
Elochka0612 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2011
Device: sony prs-t1
hi everybody!
I just got Sony PRS-T1 eReader for my mother. She wants to read in Russian. Any ideas what to do? I am very new to this.
Thanks
Elochka0612 is offline   Reply With Quote
Old 10-27-2011, 02:12 PM   #7
Mark Nord
2B || !2B
Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.
 
Posts: 851
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
here,

but check the more recent PRS-T1 threads.
As far as I understand the T1 suports cyrillic out of the box.
OK not the User Interface, but it is very well capable of displaying any kind of russian texts. (As long as they are encoded in UTF-8)
HTH
Mark
Mark Nord is offline   Reply With Quote
Old 10-28-2011, 12:35 PM   #8
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
As Mark said cyrillic is in fonts out of the box.
As far as menu translation goes, neither porkupan (boroda) nor amutin plan to translate it (and it's not as trivial as with previous models). According to amutin Sony plans to release Russian version of the reader anyway.
kartu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre language change? mago55 Calibre 8 11-16-2020 01:49 AM
PRS 505 change language Suzu Sony Reader Dev Corner 3 02-28-2014 07:45 PM
Change Language in firmware 1.3.00.22070 mannukio Sony Reader Dev Corner 1 09-13-2009 06:32 AM
Switching the language on firmware 1.4.00.23260 pupeno Sony Reader 15 06-17-2009 04:58 PM
How Do I Change the Language? PBee Bookeen 8 03-13-2009 04:56 AM


All times are GMT -4. The time now is 08:24 AM.


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