![]() |
#1 |
Member
![]() Posts: 24
Karma: 31
Join Date: Aug 2004
Device: Treo 680, Sony Reader
|
Help modifying the Direct Page Control hack
I know nothing of XML, but I want to modify the Direct Page Hack to serve a particular purpose. I want to be able to enter a range of numbers and have them link to particular pages. Examples:
450101 - 450111 goto page 3 451219 - 451306 goto page 35 My other request, though less important, would be to replace the words "GoTo" to particular names when entering page numbers on the Reader. For example, if the 1st 2 numbers entered are 45 (like in the above examples) the word "Romans" would be displayed instead of "GoTo". The end result would be that entering 450101 would display Romans 01:01 (or 1:1, I suppose) and then go to page 3. If someone could get me started, I'd appreciate it. I looked at the code, but couldn't figure it out, and I couldn't open it in an XML reader, (got an error). Thanks in advance. |
![]() |
![]() |
![]() |
#2 |
Literate!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 256
Karma: 2247
Join Date: Mar 2007
Device: PRS-500
|
That's a pretty complicated thing you're looking to do there. If you don't know anything about XML or basic programming, it's going to be very difficult.
If you open main.xml in notepad or some other text viewer, and search for "Goto page", you'll find the meat of the hack there. You're essentially looking to create a sophisticated database for the bible which is likely to take a lot of effort. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 24
Karma: 31
Join Date: Aug 2004
Device: Treo 680, Sony Reader
|
Thanks Nogg. I'm ok with a lot of effort, I'm just not sure where to start, so I thought I'd start at MobileRead. I'll google for some starter XML resources, but if anyone has any hints or tips, I'm still open.
|
![]() |
![]() |
![]() |
#4 |
Literate!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 256
Karma: 2247
Join Date: Mar 2007
Device: PRS-500
|
For the most part, it won't be the xml that's an issue. Most of the hack is written in javascript that's inside the xml. The code isn't especially pretty, since it's designed to be compact, but it's very straightforward, if you have any programming background at all.
|
![]() |
![]() |
![]() |
#5 |
Literate!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 256
Karma: 2247
Join Date: Mar 2007
Device: PRS-500
|
.....
Last edited by Nogg; 12-30-2007 at 04:52 PM. Reason: duplicate post |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hacks Appeal For Negative Kindle Text Hack/Control/Setting | vugtitan | Amazon Kindle | 20 | 10-04-2010 12:29 PM |
remember the last page for Newspaper Direct? | HansTWN | iRex | 4 | 08-10-2010 04:13 AM |
PRS505 Direct Page Control? | volwrath | Sony Reader Dev Corner | 6 | 01-02-2009 10:17 AM |
PRS-500 Direct Page Control Hack | diabloNL | Sony Reader Dev Corner | 73 | 06-01-2008 04:32 PM |
PRS-500 Direct Page Control with Enter | Nogg | Sony Reader Dev Corner | 81 | 02-28-2008 02:11 AM |