Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-28-2009, 05:03 AM   #1
Car105
Junior Member
Car105 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2009
Device: Sony PRS-505
Pages to end of chapter. Any javascript function?

Hi,

I would like to have in the status line the number of pages to the end of chapter, but I cannot find a javascript function to get this information.

Do any of you know how can it be done?

Where can I find the functions that can be used within the pageChanged fucntios as countPages of getPage?

Code:
<function id="pageChanged">
	if (this.isShown()) {
		this.setVariable("BOOK_SIZE", this.getScale());
		this.setVariable("BOOK_HALF_PAGE", this.getHalfPage());
		var c = this.countPages();
		var i = this.getPage() + 1;
                ...
I will add to the status bar the percent of book read, pages per minute, pages to finish chapter and estimated time to finish chapter.

I have already started modifying the main.xml and applicationStart.xml files, and now I master the procedure after bricking my reader several times.

As soon as it is ready I will submit to Jeff in case he wants to add it to the PRSCustomizer.

/Carlos
Car105 is offline   Reply With Quote
Reply

Tags
sony prs-505 hack mod

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ebook chapter titles: with or without chapter number? amoroso Writers' Corner 16 06-14-2011 06:35 AM
HTML to PDF, blank pages after each chapter ibarro Calibre 5 08-02-2010 03:08 PM
Next Chapter skips to End in last chapter? JoGoCo Kobo Reader 5 07-13-2010 09:23 PM
Adding chapter breaks by number of pages/lines raptir Calibre 8 10-22-2009 12:11 PM
Repagination problems? Losing words at the end of pages melrowgo Sony Reader 6 05-26-2009 12:57 PM


All times are GMT -4. The time now is 04:44 AM.


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