Unicode Hex Input

49 views
Skip to first unread message

Kamal Mansour

unread,
Jul 24, 2024, 3:31:52 PM7/24/24
to ukelel...@googlegroups.com
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="&#x0001;" 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="&#x0000;" multiplier="16"/>

Any clues on how to fix this error?
Thanks,

Kamal

Tom

unread,
Jul 24, 2024, 4:41:28 PM7/24/24
to Ukelele Users

Kamal Mansour

unread,
Jul 24, 2024, 5:57:44 PM7/24/24
to Tom, 'Kamal Mansour' via Ukelele Users
Tom, thanks for the pointer.
Please note though that I’m using Sonoma 14.5 where the system’s layout (Unicode Hex Input) handles correctly all the codes ending in zero. The problem occurs only with the layout extracted from the system's Unicode Hex Input through Ukelele.

Kamal

--
You received this message because you are subscribed to the Google Groups "Ukelele Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ukelele-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ukelele-users/96f564e5-7f57-4f1c-914c-dbea9b865a29n%40googlegroups.com.

Gé van Gasteren

unread,
Jul 24, 2024, 6:04:13 PM7/24/24
to ukelel...@googlegroups.com
Hi Kamal,

I’m confused, as now you say characters with Unicode hex values ending in a zero are handled correctly, although your first post said the opposite?

Anyway, it’s unlikely that this can be fixed using Ukelele, because iirc, Unicode Hex Input uses XML commands not supported/allowed in Ukelele.
I’m surprised that your copy of it worked so well, exactly like described in the page linked to by Tom.

Maybe John can give some input here, too.

Tom

unread,
Jul 24, 2024, 6:42:24 PM7/24/24
to Ukelele Users
Why exactly are you trying to extract this keyboard?  i remember that has always been a problem, unless one used a certain old version of it.  There is something somewhere in the archives.  I used that old version to add the press and hold diacritics a few years ago if that is what you want.

Tom

unread,
Jul 24, 2024, 8:59:18 PM7/24/24
to Ukelele Users
See.  https://groups.google.com/g/ukelele-users/c/aUWW_QFLA6s/m/9HdDaHGzBQAJ

On Wednesday, July 24, 2024 at 3:31:52 PM UTC-4 Kamal Mansour wrote:

Suhas K

unread,
Apr 7, 2025, 6:18:53 AMApr 7
to Ukelele Users
I just found about Ukelele today and was wondering if you could share that Keyboard layout for Unicode Hex Input that you made. It'd certainly be useful for me. Thanks in advance! (I might have missed it if it was already there here, didn't find it on a quick search)

Gé van Gasteren

unread,
Apr 7, 2025, 7:37:29 AMApr 7
to ukelel...@googlegroups.com
Hello Suhas,

You’re hijacking a thread, kind of, but don’t worry :-)

Maybe you’ll be happy with the Unicode Hex Input supplied with macOS?
Look under language "Others".


--
You received this message because you are subscribed to the Google Groups "Ukelele Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ukelele-user...@googlegroups.com.

Tom

unread,
Apr 7, 2025, 8:22:54 AMApr 7
to Ukelele Users
There should be no need at present for the custom Unicode Hex keyboard I made earlier:  The one available in Sonoma and later includes the accented letter popup and the bug with zeros was fixed in Ventura 13.3.

Gé van Gasteren

unread,
Apr 7, 2025, 9:33:53 AMApr 7
to ukelel...@googlegroups.com
@Tom  My assumption is that Suhas isn't specifically asking for the custom version, so I pointed him to the standard one.

Still, out of curiosity I just tried the pop-up function in my Sequoia OS's Unicode Hex Input, and it doesn't work!
What am I missing?

Tom

unread,
Apr 7, 2025, 10:54:00 AMApr 7
to Ukelele Users
You are right, doesn't work in Sequoia.  But works for me in Sonoma.  Very strange.  In case anyone wants the old custom layout with the popup, it is at

Gé van Gasteren

unread,
Apr 7, 2025, 12:52:29 PMApr 7
to ukelel...@googlegroups.com
On Mon, Apr 7, 2025 at 4:54 PM Tom <thge...@gmail.com> wrote:
You are right, doesn't work in Sequoia.  But works for me in Sonoma.  Very strange.  In case anyone wants the old custom layout with the popup, it is at


Thanks, it may be useful to some users.

For the record: it doesn't do the pop-up in Sequoia, just like the standard Unicode Hex Input layout – I guess Apple really changed something in the meantime.

Kamal Abdali

unread,
Apr 7, 2025, 1:13:48 PMApr 7
to ukelel...@googlegroups.com
Dear Suhas,

I think your message was intended for Kamal Mansouri (whom I don't know personally) and not for me (Kamal Abdali). But looking at some keyboards that I have designed Ukelele might be of some assistance to you. Please take a look at the right column of the opening page of
You'll likely be interested only in the Mac keyboards there as the Linux and Windows keyboards don't depend on Ukelele. Of several Mac keyboards, the most interesting to me is the US-Polymath since it uses extra options. The keyboard's pdf picture and the link to its code are all there.

Good luck with your project.

Kamal Abdali


--

Kamal Mansour

unread,
Apr 7, 2025, 2:43:02 PMApr 7
to ukelel...@googlegroups.com
I finally gave up on the project because, regardless of what I tried, some unexplained error(s) always prevented me from bring the work to a good conclusion. I suspect that Apple's unexplained ranges of state numbers require other undocumented core software. Without an insider’s knowledge of the latter, it’s difficult to get the desired results.

Kamal Mansour

Tom

unread,
Apr 7, 2025, 3:03:17 PMApr 7
to Ukelele Users
>for the record: it doesn't do the pop-up in Sequoia, just like the standard Unicode Hex Input layout

Thanks for that info!

Tom

unread,
Apr 9, 2025, 1:34:48 PMApr 9
to Ukelele Users
I just tried the custom hex popup keyboard in 15.4 and it does work after all, at least for me

Screenshot 2025-04-09 at 10.27.16 AM.png

On Monday, April 7, 2025 at 6:33:53 AM UTC-7 Gé van Gasteren wrote:

Gé van Gasteren

unread,
Apr 9, 2025, 1:51:59 PMApr 9
to ukelel...@googlegroups.com
On Wed, Apr 9, 2025 at 7:34 PM Tom <thge...@gmail.com> wrote:
I just tried the custom hex popup keyboard in 15.4 and it does work after all, at least for me

At least something that’s reliable :-)

Suhas K

unread,
Apr 16, 2025, 4:22:29 AMApr 16
to Ukelele Users
Yeah, I was new to the software so I was looking for a way to get the Unicode Hex Input keyboard layout, then I found the button which allowed me to capture the input source. Now I can modify that instead.
Reply all
Reply to author
Forward
0 new messages