You have a non critical error here:
valueTitles: {
XofY: "5 of 100",
XofYper: "5 of 100 (5%)",
XdivYper: "5 / 100",
XdivYper: "5 / 100 (5%)"
}
2 times XdivYper, the first should be XdivY I guess.
Other than that, it works perfectly for me, but I use the lates development version, could be that I've fixed some unknown bug meanwhile.
If you don't mind, I'd:
1) Rename addon to "Page Index"
2) Use this header:
// Name: Page Index
// Description: Shows the book index in different formats
// Author: Duglum
//
3) And commit code to PRS+ project repository.
------------------------------------------------------------------
Regarding logging, it MUST work. Did you forget to rename file to .config ? Here is my PRSPlus-user.config:
var config = Utils.config;
config.addonRoot = "b:/VCS/code/PRSPlus-addons/";
config.defaultLogLevel = "trace";
config.logFile = "b:/PRSPlus.log";
PS
Hooking into menu is not needed, since you only display something in book mode.
The same for updating, ebook does never start up in book mode.
This will generate some errors in log when browsing menu, but doesn't affect user experience in any way.
Last edited by kartu; 12-22-2009 at 09:54 AM.
|