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 03-08-2010, 10:41 AM   #721
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
sideburnt
It looks fine. Weird that it doesn't work.
But quite many folders. Could you try to move folders other than PRSPInstaller into a TEMP subfolder and/or temporarily rename Sony Reader folder in the root of SD card?

PS
And don't try to start installer via menu any more. If it doesn't autostart (provided sd card scan is enabled) then the reader doesn't see installer's folders for some reason.

PPS
Could you check if PRSPInstaller folder is visible via "Browse Folders" menu please?

Last edited by kartu; 03-08-2010 at 10:44 AM.
kartu is offline   Reply With Quote
Old 03-08-2010, 12:06 PM   #722
PaladinBL
Enthusiast
PaladinBL began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Mar 2010
Location: Banjaluka, BiH
Device: Sony PRS-505
Quote:
Originally Posted by kartu View Post
I plan to move localization files into "languages/<language name>" subfolders, and probably have 1 lang file (i.e. BrowseFolders.lang.js or BrowseFolders.lang) per addon (to allow concurrent modifications) that would then be combined into one language file by the build script.

I'll ask you to translate them, when they are finished.
This localization/translation is for everything in menus and for PRS+ installation process? Maybe I can try to make one when you finish what you are planing. You will just need to give me some pointers what to translate, what files.
PaladinBL is offline   Reply With Quote
Advert
Old 03-08-2010, 01:19 PM   #723
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
Quote:
Originally Posted by kartu View Post
Yes, most of them. Translating "USB connected" is too much effort for next to no result imo, as well as "about" screen.
In my reader I can translate the different messeage like this (USB conected) from the menu about changing the language. (the translations are in the mainstorage.xml and storageStarts.xml files)

Last edited by VICTORSJG; 03-08-2010 at 01:22 PM.
VICTORSJG is offline   Reply With Quote
Old 03-08-2010, 02:23 PM   #724
sideburnt
Connoisseur
sideburnt began at the beginning.
 
Posts: 83
Karma: 46
Join Date: May 2009
Device: Sony prs-505
well I reformatted another SD card and moved the PRSInstall files onto it. First connection to the device and Bingo. All installed correctly. Thanks again for your support Kartu, looks like an error thrown up by PRO DUO cards, most likely as you've pointed out due to an incorrect drive assigned in the js file, but I think that either the additional content on the card and/or the fact its a PRO DUO card may be causing additional conflicts.
sideburnt is offline   Reply With Quote
Old 03-08-2010, 08:00 PM   #725
elcreative
Wizard
elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.
 
Posts: 2,888
Karma: 5875940
Join Date: Dec 2007
Device: PRS505, 600, 350, 650, Nexus 7, Note III, iPad 4 etc
And a to Kartu... just installed the new PRS and it was how installations should be... simple, straightforward and it worked. Will explore further over the next few days but if installation is anything to go by then we have another masterpiece...
elcreative is offline   Reply With Quote
Advert
Old 03-08-2010, 08:50 PM   #726
thawk
Connoisseur
thawk began at the beginning.
 
Posts: 57
Karma: 10
Join Date: Oct 2008
Device: prs 505
Post

We use main.xml to translate strings (PRS+ and original) into Chinese, using getTitle()/getValie() function. I hope it will be helpful for you.

If you have decided how to do localization, I have the Chinese translations and can be modified to the format you need.

Code:
    <group id="MENU_GROUP" left="0" right="0" top="0" bottom="0">
        <kbookMenu id="MENU" left="0" right="0" top="0" bottom="30" href="x-id://tableData">
            <code>
                        <function id="getTitle"><![CDATA[
    var strings = {
        // Keys
        "Volume-"                             : "音量-",
        "Hold Volume-"                        : "长按音量-",
...
    };

    var result = arguments.callee.grammar.call(this);
    var text="";

    if (strings[result])
    {
        return strings[result];
    }

    return result;
                ]]></function>
                <function id="getValue" params="record, field"><![CDATA[
...
Attached Files
File Type: xml main.xml (76.8 KB, 454 views)

Last edited by thawk; 03-08-2010 at 08:57 PM.
thawk is offline   Reply With Quote
Old 03-09-2010, 02:17 AM   #727
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
kartu

Excellent install! The only discrepancy I see with your firmware upgrade is on the about page. With just plain old Sony firmware it says 1/2 at the bottom but with your firmware it says 1/1 even though there is a second page.

I also love being able to change the key binding on the center joypad button to next page. Is there any way to assign the function that was the default of the joypad center button (it is used to select menu items) to another button? Having a select or enter button for viewing news recipes is critical to navigating the document.

Until then I can just swap via the menu as needed.
DoctorOhh is offline   Reply With Quote
Old 03-09-2010, 03:31 AM   #728
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
PaladinBL
The localization affects nearly all files in code repository as well as the build lscript, in parallel, I plan to do heavy refactoring (utils.js has grown ugly as hell, browsefolders was a Frankenstein from the beginning) that will also affect nearly all files, it hardly makes sense to split this work. If you feel like contributing to PRS+ there are dozens of feature requests on the corresponding wiki page...

VICTORSJG
It's just seems like a lot of overhead just to replace single "USB is connected" string, since I cannot simply hardcode it in xml.

thawk
I've seen this code in porkupan's (boroda) firmwares. What I don't like about it is: it ALWAYS does lookup strings in a giant hashtable, instead of setting them once and for good.

Another thing (not related), does anyone understand why this call works:
var result = arguments.callee.grammar.call(this);

this kind of calls was made for anonymous functions to be able to recursively call themselves. But what I see in the code is not a recursion and should lead to stack overflow. (I know, that it doesn't, just don't get why)

elcreative
Thanks for the warm words.

sideburnt
Quote:
well I reformatted another SD card and moved the PRSInstall files onto it. First connection to the device and Bingo.
So probably reader couldn't read entire folder stucture, strange. If this was the case, then moving most root folders into a subfolder would have worked as well.

dwanthny
Quote:
With just plain old Sony firmware it says 1/2 at the bottom but with your firmware it says 1/1 even though there is a second page.
Yes, I'll have a look one day, thanks for reporting.

Quote:
Is there any way to assign the function that was the default of the joypad center button (it is used to select menu items) to another button?
I think it would be 2 different actions, one for menu and one for books, but yes, it's possible.
kartu is offline   Reply With Quote
Old 03-09-2010, 01:28 PM   #729
klawong
Enthusiast
klawong has learned how to buy an e-book online
 
Posts: 29
Karma: 96
Join Date: Mar 2010
Location: Ruhrpott
Device: Sony PRS-505 (incl.: PRS+ 1.1.3)
Thank you very much for this brilliant piece of software!!!

Now it makes really fun reading with my 505 - before using PRS+ it was hell!

I can hardly expect the next step forward...

Cheers.
klawong is offline   Reply With Quote
Old 03-09-2010, 07:17 PM   #730
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
Kartu,

With the PRS+ installer does not generate automatically the fonts folder (in the root of internal memory) or folder epub (in the folder PRSPlus) . Are necesary to use the css files (style epub)
surquizu is offline   Reply With Quote
Old 03-09-2010, 11:22 PM   #731
thawk
Connoisseur
thawk began at the beginning.
 
Posts: 57
Karma: 10
Join Date: Oct 2008
Device: prs 505
Quote:
Originally Posted by kartu View Post
thawk
I've seen this code in porkupan's (boroda) firmwares. What I don't like about it is: it ALWAYS does lookup strings in a giant hashtable, instead of setting them once and for good.

Another thing (not related), does anyone understand why this call works:
var result = arguments.callee.grammar.call(this);

this kind of calls was made for anonymous functions to be able to recursively call themselves. But what I see in the code is not a recursion and should lead to stack overflow. (I know, that it doesn't, just don't get why)
Agree. It's better not to lookup every string every time.

I don't know about that call too. After some google, I found arguments.callee.call(), but not arguments.callee.grammar.

But anyway, I found that this line also exists in the original PRS+ firmware. (line 645 of main.xml, in getValue() function insides ABOUT_GROUP)
thawk is offline   Reply With Quote
Old 03-10-2010, 02:55 AM   #732
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 surquizu View Post
Kartu,

With the PRS+ installer does not generate automatically the fonts folder (in the root of internal memory) or folder epub (in the folder PRSPlus) . Are necesary to use the css files (style epub)
I'll add "epub" generation, probably, maybe even with sample files. But "fonts" could be anywhere user decides.
kartu is offline   Reply With Quote
Old 03-10-2010, 09:46 AM   #733
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
Quote:
Originally Posted by kartu View Post
I'll add "epub" generation, probably, maybe even with sample files. But "fonts" could be anywhere user decides.
You could leave the folder "fonts" empty, but if you include facilitating the user know where to copy the fonts for a epub books.

If you want I can send my css and associated fonts for a examples
surquizu is offline   Reply With Quote
Old 03-10-2010, 09:51 AM   #734
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
surquizu
Quote:
You could leave the folder "fonts" empty, but if you include facilitating the user know where to copy the fonts for a epub books.
In this case most users would believe that fonts path is hardcoded, which I wanted to avoid.

Quote:
If you want I can send my css and associated fonts for a examples
Yes please.
kartu is offline   Reply With Quote
Old 03-10-2010, 05:44 PM   #735
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
Quote:
Originally Posted by kartu View Post
surquizu

If you want I can send my css and associated fonts for a examples


Yes please.
OK, attached file
Attached Files
File Type: zip EPUB fonts and css.zip (1.04 MB, 1155 views)

Last edited by surquizu; 03-10-2010 at 05:47 PM.
surquizu 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 07:17 PM.


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