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-21-2012, 03:44 PM   #3571
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
Just for the records.

Following code form fskcache.xs looks promising to extract more tags from mp3
Code:
	this.FskCache.audio.fromFile = function (path, mime, player) {
		var local, value, thumbnail, art, bitmap, bounds;
		<global>.FskCache.media.fromFile.call(this, path, mime);
		try {
			if (!player) {
				local = player = new <global>.Media.Player.File(path, mime);
			}
			value = player.getMetaData('FullName');
			if (value) {
				this.title = value;
			}
			value = player.getMetaData('Album');
			if (value) {
				this.album = value;
			}
			value = player.getMetaData('Artist');
			if (value) {
				this.artist = value;
			}
But atm no time/interest to look further into this.
Mark Nord is offline   Reply With Quote
Old 03-21-2012, 05:45 PM   #3572
oldhasbeen
Enthusiast
oldhasbeen doesn't litteroldhasbeen doesn't litter
 
Posts: 32
Karma: 124
Join Date: Feb 2011
Device: Kobo Aura H2O
from some reasons I cannot post to the "issues" page (submit issue button does not activate). I hope not to annoy anyone by doing it here then.

950 / analogus nightly 50

What steps will reproduce the problem?
1.bind toggle touch screen to key
2.
3.

What is the expected output? What do you see instead?
expected is that touchscreen can be disabled/enabled. I have tried to bind to long press option and long press vol+. Neither changes touchscreen function (have tried the global and other options). I have not tried any other key (I would prefer mostly long press option for this).
oldhasbeen is offline   Reply With Quote
Advert
Old 03-21-2012, 06:37 PM   #3573
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
Quote:
Originally Posted by oldhasbeen View Post
expected is that touchscreen can be disabled/enabled.
If I recall correctly keybinding just binds certain functions to keys it does not disable any function. If you want to affect the touch screen go to the "Touch Settings" menu, it is on the second page of the PRS+ Settings menu.
DoctorOhh is offline   Reply With Quote
Old 03-21-2012, 08:42 PM   #3574
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Is there a way to put the 650 in sleep mode with either the touch of the screen or using a different button? That way, it would mean the power button would be used about 50% less.
JSWolf is offline   Reply With Quote
Old 03-21-2012, 09:08 PM   #3575
Ripplinger
350 Hoarder
Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.
 
Ripplinger's Avatar
 
Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
What I did was to set the timer to go to sleep after 5 minutes. For myself, I never set my reader down that long between pages, so it's been working fine.

On another note, the auto page turning feature is pretty nice, but instead of just having 10 second increments as your only selection, would there be any way to make it so you set your own interval, like 8 seconds, 12 seconds, etc? While the feature is pretty nice, I find the current selections either too short or too long. To use it regularly, I'd have to be able to select my own interval.
Ripplinger is offline   Reply With Quote
Advert
Old 03-22-2012, 12:22 AM   #3576
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Quote:
Originally Posted by VICTORSJG View Post
And using your js script?
It doesn't work.
BenChen is offline   Reply With Quote
Old 03-22-2012, 12:24 AM   #3577
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Quote:
Originally Posted by Mark Nord View Post
Just for the records.

Following code form fskcache.xs looks promising to extract more tags from mp3
Code:
	this.FskCache.audio.fromFile = function (path, mime, player) {
		var local, value, thumbnail, art, bitmap, bounds;
		<global>.FskCache.media.fromFile.call(this, path, mime);
		try {
			if (!player) {
				local = player = new <global>.Media.Player.File(path, mime);
			}
			value = player.getMetaData('FullName');
			if (value) {
				this.title = value;
			}
			value = player.getMetaData('Album');
			if (value) {
				this.album = value;
			}
			value = player.getMetaData('Artist');
			if (value) {
				this.artist = value;
			}
But atm no time/interest to look further into this.
Hi Mark,

I don't think that works to get the contents of other tags, just the ones the developers wanted (plus a couple of others they didn't end up using). But I could be wrong. It's been a while since I was looking into this...

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 03-22-2012, 02:41 AM   #3578
Analogus
Fanatic
Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.
 
Analogus's Avatar
 
Posts: 568
Karma: 2170348
Join Date: Apr 2011
Device: 2x Sony PRS-350; PRS-300 (†), Paperwhite (†), Voyage
dwanthny:

The 'touch on/off' - option can be assigned to a button. I use it since long assigned to a long press onto the option-button. Working flawless in my case (350). There should be a screen-note (popup) informing you when the scrren is switched on/off.

JSWOLF:
Yes you can. Just assign the 'sleepmode'-action to a button/swipe.

A.
Analogus is offline   Reply With Quote
Old 03-22-2012, 07:16 AM   #3579
oldhasbeen
Enthusiast
oldhasbeen doesn't litteroldhasbeen doesn't litter
 
Posts: 32
Karma: 124
Join Date: Feb 2011
Device: Kobo Aura H2O
analogus

The 'touch on/off' - option can be assigned to a button. I use it since long assigned to a long press onto the option-button. Working flawless in my case (350). There should be a screen-note (popup) informing you when the scrren is switched on/off.

Have tried it again on my 950 - long press option key. No popup and no toggle action.
oldhasbeen is offline   Reply With Quote
Old 03-30-2012, 12:02 PM   #3580
CndChaos
Junior Member
CndChaos began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2009
Device: PRS-505
Having a little issue that I hope someone can help with

Under the Browse Folders options I have selected "by filename shown as comment" as my sorting method.

When I go into the "browse folders" option and go into the internal memory everything works correct. I see the full filename is shown under it as a comment. However when I go into either "SD card" or "SD card via mount" (with the SD Card Scan disabled) it does not show the file name as a comment. I'm pretty sure that this used to work on my old ebook reader but using a PRS-650 (firmware: PRS+ 2.0.18) it doesn't.

Does anyone now if I am missing a step to have this work?



Thanks
CndChaos is offline   Reply With Quote
Old 03-30-2012, 12:03 PM   #3581
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
Need to check. There was no intentional change like that.
kartu is offline   Reply With Quote
Old 03-31-2012, 07:05 AM   #3582
Analogus
Fanatic
Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.
 
Analogus's Avatar
 
Posts: 568
Karma: 2170348
Join Date: Apr 2011
Device: 2x Sony PRS-350; PRS-300 (†), Paperwhite (†), Voyage
Hi

Maybe someone can help me.
I try to manipulate STYLE.CSS on the fly with actions in PRS+.
I do this like that with Core.shell.exec:
Code:
Core.shell.exec('echo "head, html, body, tittle, p, div, ul, dl {line-height:100% !important}" >> /Data/database/system/PRSPlus/epub/style.css')
This functions well. But when I try to use commands with ' ' inside Core.shell.exec this does not work:

Code:
Core.shell.exec('whatever command 'text' whatever command')
For example:
Code:
Core.shell.exec('cat /Data/database/system/PRSPlus/epub/style.css | \ sed -e '/text to search/d' > /Data/database/system/PRSPlus/epub/style.css');
Reason is clear - the ' ' inside the command interrupt the outer ' '.
Any solution?

Thank you!
Analogus is offline   Reply With Quote
Old 03-31-2012, 10:20 AM   #3583
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
Hi Analogus,

easiest would be to utilize the the fact, that JavaScripts accepts both, single and double-quotes.

So while using double-quotes "" to define a string, you can use single-quotes within.

Core.shell.exec("whatever command 'text' whatever command")

Or why not do it with higher-level code

like:
Code:
var mycontent, cssPath;
mycontent = "sometext " + "'some quoted text'" + "some other text";
cssPath = "/Data/database/system/PRSPlus/epub/style.css";
Core.io.setFileContent (cssPath, mycontent);
One can also think of using some templates with placeholders like #fontSize# aso

then

Code:
var mycontent, cssPath, fontSize;
cssPath = "/Data/database/system/PRSPlus/epub/";
mycontent = Core.io.getFileContent(cssPath+"template.css");
fontSize = someOptionValue ? someOptionValue+"%" : someDefaultValue;
mycontent.replace(/#fontSize#/g, fontSize);
...
Core.io.setFileContent (cssPath+"style.css", mycontent);

Last edited by Mark Nord; 03-31-2012 at 03:25 PM. Reason: replaced backslash with slash
Mark Nord is offline   Reply With Quote
Old 03-31-2012, 11:14 AM   #3584
Analogus
Fanatic
Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.
 
Analogus's Avatar
 
Posts: 568
Karma: 2170348
Join Date: Apr 2011
Device: 2x Sony PRS-350; PRS-300 (†), Paperwhite (†), Voyage
Thank you. This helps very much!

Another question:
How do you call an external *.js-script from within an function?
Script is in say /Data/.../scripts/

A.
Analogus is offline   Reply With Quote
Old 03-31-2012, 11:24 AM   #3585
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Quote:
Originally Posted by CndChaos View Post
Having a little issue that I hope someone can help with

Under the Browse Folders options I have selected "by filename shown as comment" as my sorting method.

When I go into the "browse folders" option and go into the internal memory everything works correct. I see the full filename is shown under it as a comment. However when I go into either "SD card" or "SD card via mount" (with the SD Card Scan disabled) it does not show the file name as a comment. I'm pretty sure that this used to work on my old ebook reader but using a PRS-650 (firmware: PRS+ 2.0.18) it doesn't.
Hi there,

I have tried to fix this issue. There was certainly some program logic errors in the existing code which I have (hopefully) fixed. However, I have not yet tested this with SD Card Scan disabled. I had already noticed that there were problems even with SD Card Scan enabled (especially with archives). These are now fixed, so hopefully the changes will also work with SD Card Scan disabled.

To test, you will need to do a custom build, or wait for Analogus to update his personal builds.

Sincerely,
Ben.
BenChen 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 10:40 AM.


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