The Unicode Hex keyboard is unusual in that its Option-layer is state-driven to generate the binary equivalent of a 4-digit hexadecimal representation such as “1234”. With the aim of making some changes, I dumped its keylayout file through Ukelele. A quick test showed that the extracted keyboard was working in general except for Unicode characters whose rightmost digit is a zero, such as 0020, 0030, 0100, 0130, … However, 0021, 0032, 0103, 0131, … all produce correct results.
For instance, here’s the line of code that generates the rightmost digit of 1:
<when state="1" through="256" output="" multiplier="16”/>
…compare to the line of code that should generate the rightmost digit of 0:
<when state="1" through="256" output="" multiplier="16”/>
I tried to make the line of code for zero conform to the same pattern for one, but the resulting output didn’t improve:
<when state="1" through="256" output="�" multiplier="16"/>
Any clues on how to fix this error?
Thanks,
Kamal