| .. | ||
| filesystem.cpp | ||
| filesystem.h | ||
| helpers.cpp | ||
| helpers.h | ||
| keymap.cpp | ||
| keymap.h | ||
| km_types.h | ||
| kmx_file.h | ||
| mc_kmxfile.cpp | ||
| mc_kmxfile.h | ||
| mc_savekeyboard.cpp | ||
| mc_savekeyboard.h | ||
| mcompile.cpp | ||
| mcompile.h | ||
| meson.build | ||
| README.md | ||
| u16.cpp | ||
| u16.h | ||
This is a proposal to rewrite mcompile for Linux. For this we need to query the base keyboard data from the Linux platform, then rewriting the keyboard .kmx using the same approach as is done in mcompile for Windows, but working from the data from the x11 keyboard on Linux.
Ideally, we'd rewrite mcompile to be cross-platform (Windows, Linux, macOS), so that the keyboard interrogation would be separated from the .kmx rewriting, at least to some degree. Nevertheless it would probably be easiest to start from a standalone implementation. Sample program that reads US basic keyboard and compares to key value group
Keymap
TODO check if US basic is the right Keyboard to compare with TODO non-letter characters don't work OK yet TODO Umlauts don't work OK yet TODO check Keycode of TLDE, BKSL, LSGT TODO remove unnecessary printf/cout TODO path for xkb/symbols as compile time option in meson TODO check how many/which shift states we use ( at the moment we read all shiftstate-columns of US but then use only 2 colums (non-shift + shift) then use as many colums for Other )
TODO define folder to store File_US.txt" in and find better name TODO get rid of GTK functions that are deprecated and use X11 instead TODO retrieve name of Other keyboard and use appropriate name instead of "Other" TODO change keymap.cpp->main() to function() TODO use/adapt TranslateKeyboard() to work on Linux/cross-platform TODO use/adapt SaveKeyboard() to work on Linux/cross-platform TODO mcompile.cpp: open mcompile -u - option TODO check if I can use files from some other keyman path instead of a copy in keymap ( e.g. filesystem.h exists elsewhere) TODO remove kbdid and kbd for Linux TODO remove unneccessary testing fungctions in keymap.cpp/h TODO remove helpers.cpp/h TODO ...
//--------------------------- TOASK is using string OK, or do we use char, wchar? TOASK a-z, A_Z or more keys? ... TOASK ado we need mcompile -u option?