Keyboard tables with string definitions and diacriticals

Harald Becker ralda at gmx.de
Wed Aug 3 00:46:04 UTC 2011


 Hi all,

appended is a quick and dirty (no optimization) standalone version of a
dumpkeylist program that would be a replacement of dumpkmap with the
following changes:

1) Use textual representation on output (not binary)
Textual keymaps are independent of CPU architecture and will not produce
incompatibilities if any definition in the kernel changes (like maximum
number of keys).

2) Allow for all key maps from 0 to 255 (detect which are available)

3) Allow for all keys from 1 to 255 (detects which are used)

4) Emit all used function key strings

5) Emit all compose key definitions
Detects if old 8 bit or new Unicode structure is used. New Unicode
structure allow for compose key definition in the range U+0000..FFFF
(old structure only 00..FF).


The emitted table is big, about 180k ... but if filtered to the tables
current dumpkmap uses and compressed using gzip the size is about 3k ...
which is not much more than the size of a current binary kmap. All
filtering can be done using simple awk or sed scripts.

Comments welcome.

--
Harald

PS: This is a prerelease version for informational purposes not to be
used in main stream!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dumpkeylist.c
Type: text/x-c
Size: 2777 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20110803/fd556a5b/attachment.c>


More information about the busybox mailing list