This is an exact duplicate of this question; however the code linked in the accepted answer is nearly 11 years old, and this comment in the code leads to my duplicate questi
Try this node.js module to generate C table: https://github.com/substack/node-keysym .
It is based on this dataset: https://github.com/substack/node-keysym/blob/master/data/keysyms.txt