Thank you for the detailed report!
And: Wow, this is a new chapter, using Ukelele with AI guidance!
I’m not sure how John likes this new development…
• Basically, what you did was a very long detour, only it didn’t feel like that because it was facilitated by AI.
The standard way to customize your keyboard layout with Ukelele would be:
1. Find a layout that is similar to what you want (e.g. British – PC)
2. Modify a copy of that layout to fit your desires.
• The swapped two keys and the oddly-shaped Return key are a completely separate story, connected with the difference between ANSI vs. ISO keyboard types.
Most of the time macOS recognizes your keyboard type, but when it doesn’t, you can try these steps from Tom:
The Ukelele user interface is just that, a user interface, which may or may not match your physical keyboard.
Ukelele does have a setting to display your custom keyboard layout as an ANSI or an ISO keyboard, but again, that is not hard-wired to how it will work when installed.
But a customized layout will work with whichever hardware keyboard you have.
• The macOS message "the developer may see what you type" is shown for every non-built in Input Source – and you’re right, for simple custom keyboard layouts as produced by Ukelele this really is a nonsensical message.