neurlang / wayland

Golang Wayland - Go Multiplatform UI library
MIT License
100 stars 8 forks source link

How was `xkbcommon/keysyms_linux.go` generated? #6

Closed vanguacamolie closed 4 months ago

vanguacamolie commented 4 months ago

Hello, thanks for creating this library! I am not using this library since I'm not creating a Wayland client, but I am integrating with libxkbcommon, for which your project has been a helpful example.

But I do wonder, how did you generate xkbcommon/keysyms_linux.go? It says it is autogenerated, but I can't figure out using what method. I'm trying to create a similar file to use with my own project.

neurlang commented 4 months ago

Hello, as the (now dead) url at the comment in the top of the file says, this file was ported from the original C version of file, mostly using search and replace:

https://xkbcommon.org/doc/0.2.0/xkbcommon-keysyms_8h_source.html

I don't have any script to autogenerate or port the file, the comment about being autogenerated is from the original c version.