I've attached the original version (I think) of the Unicode Hex Input
keyboard layout as XML.
The magic of the layout is in the states 0-15, with things like:
<when state="2561" through="2816" multiplier="16"
output="ꀍ" />
What it tells the system to do is to take the current state number, S,
subtract state, F, multiply by the multiplier, M, and add that to the
output value, O, to produce a character, i.e. (S-F)*M+O. This allows the
system to produce 256 different outputs with a single line in the XML
file, as you'll see that the range from "first" to "through" is 256. If
you then look at the key elements for keyMap 3, you'll see references to
the actions for all the variants of 0-9 and a-f on a US keyboard.
The cool idea someone had was to put this keyboard layout into a bundle
(keyboard layout collection) and give it a language code, which enables
the press and hold functionality.
Ukelele should be able to make changes to this keyboard layout, but you
can't edit the magic parts with Ukelele, as there's no real point in
trying to change them. Though I think that you can only get the BMP code
points with it, as there are only four digits allowed. It's probably
possible to extend it to five or six to get the whole of Unicode, but I
don't really want to wrap my brain around how to handle varying numbers
of digits.
John
W Groleau wrote on 18/2/20 08:29:
--
John Brownie
Mussau-Emira language, New Ireland Province, Papua New Guinea
Kouvola, Finland