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-11-2012, 05:22 PM   #3526
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 Nitro View Post
Code:
<a href="#20120311"><b>11</b></a>

<a name="20120311"></a>
I've prs-505 and prs+ 2.1.0 alpha.
ebook, in epub, is simple html file with links inside it, like 2 above.

As far as I understand, when you click on 1st link you should jump to 2nd one, it's working like that in calibre or in sigil, but on prs you'll jump to the end of book.

Is it prs+ error, or sony firmware?
PRS+ doesn't affect viewer's internals, so it's a standard behavior.

PS
Strange way to style href link, by the way.
The same can be achieved by using:

a {
font-weight: bold;
}
kartu is offline   Reply With Quote
Old 03-11-2012, 06:00 PM   #3527
Nitro
Member
Nitro began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2011
Device: Sony PRS 505
Thanks for answer.

Styles like that are on the original site.
Nitro is offline   Reply With Quote
Advert
Old 03-11-2012, 07:20 PM   #3528
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by Nitro View Post
Code:
<a href="#20120311"><b>11</b></a>

<a name="20120311"></a>
I've prs-505 and prs+ 2.1.0 alpha.
ebook, in epub, is simple html file with links inside it, like 2 above.

As far as I understand, when you click on 1st link you should jump to 2nd one, it's working like that in calibre or in sigil, but on prs you'll jump to the end of book.

Is it prs+ error, or sony firmware?
I may be wrong but I have a vague memory that anchor names in epub should begin with an alpha character, i.e. not all-digit.
jackie_w is offline   Reply With Quote
Old 03-11-2012, 08:37 PM   #3529
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
Quote:
Originally Posted by jackie_w View Post
I may be wrong but I have a vague memory that anchor names in epub should begin with an alpha character, i.e. not all-digit.
Jackie is spot on! From here is says that an "id" attribute can be an anchor among other things, and an "id" is defined as a "name" type, and a "name" type is defined here as:

ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").

Cheers,
Simon.
snarkophilus is offline   Reply With Quote
Old 03-12-2012, 04:54 AM   #3530
Nitro
Member
Nitro began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2011
Device: Sony PRS 505
Thanks! Indeed, the key was letter as a 1st char in anchor.
Nitro is offline   Reply With Quote
Advert
Old 03-12-2012, 06:05 AM   #3531
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
Questions:

1)
I try to make the book-size-symbol switching on/off. This
Code:
model.container.sandbox.STATUS_GROUP.sandbox.STATUS_GROUP_SUB.sandbox.STATUS_GROUP.sandbox.showBookSizeIndicator(false);
as a function works only when the book is open. Not good. Any other ideas?

2)
I try to alter font-'color', size and other formattings for parts of the homepage (e.g. page-numbers) with OPTIONS.

What I know:
The part in the XML-files responsible for this.
How to make options/functions and store/restore the values.

What I don't know:

How to point to the responsible part in the XML-file. E.g. kbookAssets.xml:
PHP Code:
<style id="label-statusBar" size="19" style="bold" color="#FFFFFF" valign="center" top="2"/> 
What would be the code to alter the font-color?

I tried with 'brute-force' but gave up in the end. To make this working could make it possible to fine-grain the interface of the home-screen.

3)
I try to make altering fonts for LRF more elegant. My simple code just uses different prsp.sh-files .
Question:
Is there a simple way to do it directly with JS?
Or questioned the other way:
Where/how to put code to be executed on a restart of the reader? I tried 'onInit' but this did not work.

@kartu:
I struggle to push up my code into the clone of google-repository. But I'll working on it.

Thank you very much!


A.
Analogus is offline   Reply With Quote
Old 03-12-2012, 10:13 AM   #3532
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
Analogus
just my two cents:
1) there is a var kbook.model.STATE, it can be "MENU_HOME" or something like "PAGE_GROUP" you can check for this to see if the book is open.

2) brave! This is somewhere within the skin.styles[] array. Sorry no more info on that

3) Put a IF FI clause in prsp.sh which checks for your additional font-changing script and call it, when present.

Have you checked: http://tortoisehg.sourceforge.net/ as mercurial frontend for windows?
Mark Nord is offline   Reply With Quote
Old 03-13-2012, 04:20 AM   #3533
TJ27
Enthusiast
TJ27 doesn't litterTJ27 doesn't litter
 
Posts: 44
Karma: 198
Join Date: Mar 2011
Location: Russia, Saratov
Device: Sony PRS-350
Latest version build from git https://prs-plus.googlecode.com/hg/ don't work from my 350
Build, copy to device, reboot, prsp atempting strart (found file runonce.sh and install.log size=0), but prs+ not started (no settings and functionaly). Clear build without modifications
May be after 10 mar.
TJ27 is offline   Reply With Quote
Old 03-13-2012, 06:11 AM   #3534
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
Thanks TJ27!
Already filed as issue 322
If you can spare the time, can you post a prsp_sricpt.log, please?
Mark Nord is offline   Reply With Quote
Old 03-13-2012, 07:32 AM   #3535
TJ27
Enthusiast
TJ27 doesn't litterTJ27 doesn't litter
 
Posts: 44
Karma: 198
Join Date: Mar 2011
Location: Russia, Saratov
Device: Sony PRS-350
Mark I have time, but this lines

// what to log and what not, possible values are: all, trace, info, warn, error
config.defaultLogLevel = "trace";
// where to log
config.logFile = "/Data/prsp_script.log

already found in user.config.350
I create Beta folder in root IM and log file not created
TJ27 is offline   Reply With Quote
Old 03-13-2012, 07:40 AM   #3536
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 TJ27 View Post
Mark I have time, but this lines

// what to log and what not, possible values are: all, trace, info, warn, error
config.defaultLogLevel = "trace";
// where to log
config.logFile = "/Data/prsp_script.log

already found in user.config.350
I create Beta folder in root IM and log file not created
It needs at least prsp.js file in Beta folder.
kartu is offline   Reply With Quote
Old 03-13-2012, 07:45 AM   #3537
TJ27
Enthusiast
TJ27 doesn't litterTJ27 doesn't litter
 
Posts: 44
Karma: 198
Join Date: Mar 2011
Location: Russia, Saratov
Device: Sony PRS-350
kartuМне, что скопировать prsp.js в папку Beta из каталога с исходниками?
Такое впечатление, что образ собирается "не так": install.sh срабатывает (т.к. runonce.sh появляется), а дальше - тишина
TJ27 is offline   Reply With Quote
Old 03-13-2012, 07:55 AM   #3538
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 TJ27 View Post
kartuМне, что скопировать prsp.js в папку Beta из каталога с исходниками?
Yep. This is what startup script is doing (prspBetaStartupFile is set to /Data/Beta/prsp.js):

Code:
if (FileSystem.getFileInfo(System.applyEnvironment('[prspSafeModeFile]')) === undefined) {
	betaPath = System.applyEnvironment('[prspBetaStartupFile]');
	if (FileSystem.getFileInfo(betaPath)) {
		path = betaPath;
	} else {
		path = System.applyEnvironment('[prspStartupFile]');
	}
	if (FileSystem.getFileInfo(path)) {
		file = new Stream.File(path);
		code = file.toString();
		file.close();
		f = new Function("", code);				
		f();
		delete f;
	}	
}
} catch (ignore) {
}
kartu is offline   Reply With Quote
Old 03-13-2012, 08:00 AM   #3539
TJ27
Enthusiast
TJ27 doesn't litterTJ27 doesn't litter
 
Posts: 44
Karma: 198
Join Date: Mar 2011
Location: Russia, Saratov
Device: Sony PRS-350
Положил prsp.sh(взял из папки tmp после ant) и user.config(бывший user.config.350) в папку Beta. Получил ерунду
Error reading file /Data/Beta/core/compat/350_config.js: Fsk error, code = -41
Error reading file /Data/Beta/core/compat/350_bootstrap.js: Fsk error, code = -41
Error reading file /Data/Beta/core/compat/350_config.js: Fsk error, code = -41
Error reading file /Data/Beta/core/compat/350_bootstrap.js: Fsk error, code = -41


Put prsp.sh (from folder tmp after "ant") and user.config (renamed user.config.350) to folder Beta.
Log created, but very stranged.

I build very simple: in prsp.properties set my model and say "ant". After success copy folder PRSPInstaller to IM
TJ27 is offline   Reply With Quote
Old 03-13-2012, 08:12 AM   #3540
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
TJ27

please edit user.config, so that it only holds two (2) lines:

config.defaultLogLevel = "trace";
config.logFile = "/Data/prsp_script.log
Mark Nord 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 05:08 PM.


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