cajhin / capsicain

Powerful low-level keyboard remapping tool for Windows
349 stars 18 forks source link

parse error for deadkey with ] #17

Closed bitoj closed 3 years ago

bitoj commented 3 years ago

I recently found this very useful project, while I was searching for an alternative for AutoHotkey that passes through my local keyboard lay-out to my remote work environment, where I do not have administrator rights.

So far I am pleased. There are, however, a few minor inconveniences that force me to retrain my muscle memory, because I cannot remap certain key combinations that I had defined in AHK.

One limitation seems to be a bug in parsing a COMBO definition with a hotkey and ], as demonstrated in the following fragment.

[config_1]
option configname demo ]
option debug
rewire apps mod9 apps
combo           ; [& .... ....] > deadkey(;)
combo deadkey-; E [. ...^ ...^] > altchar(0235) # ë
combo deadkey-; E [. ...| ...|] > altchar(0203) # Ë
combo deadkey-; [ [. ...^ ...^] > altchar(0147) # “
combo deadkey-; ] [. ...^ ...^] > altchar(0148) # ” PARSE ERROR
combo           ] [. ...^ ...^] > altchar(0148) # ” works

This results in error message

Cannot parse combo rule: deadkey-; ] [. ...^ ...^] > altchar(0148)
cajhin commented 3 years ago

Thanks for the excellent bug report :)

I can already guess where the bug is; but the code is currently in limbo so I cannot upload a quick patch right now. Still, not worth it to retrain your fingers - expect a new during the weekend.

Btw. happy to see someone else not me is using the new deadkey system. I was afraid it's too hard to grok...

cajhin commented 3 years ago

this should be fixed with the v83 beta from the x64/release directory. Please confirm if this works with your config

bitoj commented 3 years ago

confirmed