kmap2qmap
-
I'm struggling to create a qmap keyboard layout file.
I'm actually not a C programmer and failed to compile the kmap2qmap from the source due to compiler errors, probably due to wrong env setup.
I need the qmap layout to write on my remarkable.com tablet by a Czech language that is not supported.Could anybody help me by converting the following kmaps to the qmap?
https://drive.google.com/file/d/1pKMPj7zAunB7StkNase9sjJLa0ypbQFc/view?usp=sharing
Thank you very much.
-
Hi and welcome to devnet,
Which error did you get ?
What is your environment ? -
-
@myneur
What version of Qt? Is https://forum.qt.io/topic/137975/how-to-build-qmlls-binary-from-source with the same error message relevant to your situation? -
@JonB I installed the latest stable one. I tried both full dmg install and brew. It might be the similar problem, but it does not seem they solved it.
I actually don't know how the CMakeLists.txt works.
I'd just need to convert a kmap to qmap. -
From the looks of it, it's not buildable on macOS. The Qt 6 version also seems to fail in a similar fashion on Linux.
However, the Qt 5 version can be built on Linux without issues.
-
qmap is a very simple format ,https://github.com/qt/qtbase/blob/dev/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp#L516, you can create custom converter at another language, e.g. Python or Perl
-
@debian how much time would it take you to write it?
There are 500 lines and 12 libraries.
That sounds like at least weeks of full-time work even for an experienced programmer, including the testing. Let alone me:)According to @SGaist it seems that compiling is not an option in the latest QT anymore.
So I keep this thread here just for the chance that somebody has it already compiled in his system and would just be willing to convert it.But thank you guys for your inputs. Definitely good insights, I'm just not experienced to take them further by myself.
-
how much time would it take you to write it?
I use qmap for custom keyboard and my script, I use Perl, is a very simple and small, 3258 bytes and it can be reduced because contain comments and documentation, so this is not very hard task ;)
-
@myneuUsing the Qt 5 based kmap2qmap, it tells me that it can't parse the
us.kmap
file (looks to be already some sort of binary file) and generates 40 warnings for thede.kmap
and 43 forcz.kmap
. -
@SGaist That's strange. When I open the *.kmap in a text editor, it shows me just a text starting with:
keymaps 0-127 keycode 1 = Escape Escape Escape Escapeā¦
That file was created on Debian, I just zipped it on MacOS. Not sure if/how that could break things(?) or if there are variations in the kmap across linuxes.
Here are direct links to files that one good guy with Debian created me:
https://nyx.cz/files/000/026/2611388_0f12e02f9f931e4ea0ab/original.bin?name=us.kmap
https://nyx.cz/files/000/026/2611389_c85ecb66f87a7a17c55f/original.bin?name=de.kmap
https://nyx.cz/files/000/026/2611390_eff4e16b73a7633fa6bc/original.bin?name=cz.kmapThanks for trying.
-
@myneur The
us.kmap
from that link is valid. However, it does also generate around 40 warnings as the other two do.Do you still need the qmap files ?