qmk-keymap
qmk-keymap copied to clipboard
Autocorrect apostrophes not respecting colon
If you include a colon in front of a word in the dictionary it correctly only modifies the word if that word has a 'word break' in front of it. For words with an apostrophe it seems to ignore the word break.
Repro steps;
- Add the following to autocorrection_dict.txt
:htere -> there :cant -> can't
-
Run the python file and compile firmware
-
Type " htere"
Expected result: there Actual result: there Result: WORKING
-
Type "testhtere"
Expected result: testhtere Actual result: testhtere Result: WORKING
-
Type " cant"
Expected result: can't Actual result: can't Result: WORKING
-
Type " testcant"
Expected result: testcant Actual result: testcan't Result: BROKEN
Thanks for the report! I appreciate the clear examples.
I haven't been able to reproduce the bug yet, unfortunately. I tried appending
:htere -> there
:cant -> can't
to my dictionary, and also tried a dictionary containing only those two entries, yet typing "testcant" isn't triggering autocorrection.
Would you mind to share your full dictionary? (You can make attachments in this thread.) The bug is conceivably a problem in trie encoding.
Do you have special QMK features like mod-taps, Tap Dance, Auto Shift, etc. active on the keys C
, A
, N
, T
? Interoperating with QMK's features can be tricky.