ARTICLE AD BOX
In Ubuntu's xkb file we have keysyms defined like that:
key <AD01> { [ q, Q, at, Greek_OMEGA ] }; key <AD02> { [ w, W, lstroke, Lstroke ] }; key <AD03> { [ e, E, EuroSign, EuroSign ] }; key <AE11> { [ ssharp, question, backslash, 0x1001E9E ] };I am on Windows 11 coding in TypeScript. I copied Ubuntu's xkb file to my Windows system. Now I want to read this xkb file to create a keyboard definition file usable on Windows.
I can do so for characters (e.g. "Q") but for names (e.g. 'EuroSign') I need to convert these strings. I found a list of keysyms here. To prevent using this hardcoded lookup table I wonder if there are Windows (or cross-platform) functions to map those keysym names to characters. This should work for surrogate pairs also.
For example, in my code I want to read "EuroSign" and convert it to "€":
const input = "EuroSign" const output = someConvertingFunction(input) // output = '€'Is there some function I can use?
