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
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;
Run the python file and compile firmware
Type " htere"
Type "testhtere"
Type " cant"
Type " testcant"