I would like to know if anyone has tips or resources that might be
helpful. I've gotten some good ideas looking at things like the Gnome
Onscreen Keyboard, but am getting a little overwhelmed
architecture-wise.
For example, I think it would be good to have layouts stored as separate
files that can be ajaxed in, to provide support for multiple
languages/layouts. However, between umpteen modifier keys and locking
modifier keys and dead keys, any attempt I make at a format quickly
becomes unreadable or at least unwieldy. Here's what I would like/what
I'm trying to fit into this beast:
1) Formatted in JSON (as opposed to XML) for easy parsing.
2) Support for modifier keys and dead keys. Does each combination get
its own layout? Or is there a clean way to include them all without
creating a huge mess of a file?
3) Human-readable and modifiable, which leads to:
4) Identifiers for keys. I've looked at DOM3 identifiers, but there's
lots of "U+XXXX"--I like the Java or .Net "KEY_Q" better for
readability.
5) Potentially, keys for word-prediction.
6) Much later, support for alternate access methods. For now
direct-select is fine.
7) User-modifiable layouts, perhaps saved as cookies/to a dedicated
server/using something like Google Gears or HTML5 persistent data?
All of the infrastructure is easy enough to gather up from the jQuery UI
and a few nice extensions, but I'm having trouble getting my teeth
around the apple to bite into it. Anyone?
Chris