Jeff Co wrote:
Thank you so much for your reply. I've learned that value "0x004e" corresponds
to "N" and other values.
I already installed Palm OS Developer Suite (PODS). Should I still go take
the par (Palm ARchive) route? Or can I use PODS to do this little editing?
I am still using CodeWarrior and haven't really checked out PODS, so I don't
really know what it's capable of. The main thing you're going to need here
is the ability to take a resource out of a PRC, modify it, and put it back
in the PRC. I know that par can do the taking out and putting in, and
for the modifying, you'll want a hex editor. PODS might be able to do what
PODS can do (certainly it must be able to create a PRC!), but I can't tell
you specifically what you'll need to do.
Unfortunately, I don't know how to read the code. I’m afraid I really am
ignorant about all this. If you can give me further guidance, I’d be most
appreciative. I have no idea what I should be doing. Thank you for your
time and patience.
My guess is that the 'KEYT' resource in that PRC isn't code at all.
Instead, it's a table. In other words, it's just data that tells the
other code what to do when which key is pressed. It tells the code
what keys correspond to what characters under which circumstances.
I don't know this for sure, but it seems really likely.
By the way,
1. What's the significant of number 23 and 256?
The significance is this: if that resource consists of a repeating
pattern of some structure that has a fixed size, then the total size
must be divisible by the size of each piece. Imagine that I tell
you I have something which is made up of things which are all the
same length, that each item is an integer number of inches (no fractions),
and that the total length is 77 inches. Then you know that it must be
either 11 things which are 7 inches long each or 7 things which are 11
inches long each.
The difference here is that 5888 is made up of the (prime) factors
23 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2. (Or 23 * 2^8.) So if that 5888
is evenly divided up into similar pieces all of the same size, it must
be some combination of those numbers. Based on my analysis, it seems
to be 128 pieces which are each 46 bytes long. That's
(23 * 2) * (2 * 2 * 2 * 2 * 2 * 2 * 2).
2. The hex editors that I use are just freeware/shareware hex editors
that I found on the internet?
That should be fine as long as they let you load, edit, and save. For
this particular task, I would want a hex editor that lets me view things
as unsigned 16-bit integers (rather than just bytes), and I would ideally
want something that lets me work with the file as groups of 46-byte
quantities (46 bytes on one line or on two lines). That would make it
easier to keep things straight. And it would help if it lets you see
things as ASCII as well, so that you don't have to keep consulting an
ASCII chart.
By the way, I would start by just changing one pair of values. For
instance, I might swap the (two-byte) values at 3036 and 3082. If
I'm right, that should the "K" and the "I" (not the "k" and the "i").
If that works, you've got proof of concept, and you can get to work
changing everything from qwerty to dvorak.
- Logan
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/