You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example text: 'Text' using four 'single-quotes', results in an erroneous underlining and spellings correction and should be fixed where possibleible, right click will suggest to change possibleible to possible.
I only noticed this problem in a certain section of my document so I did some further investigation . It turned out to be the use of single quotes ('), see the example text provided above. I had four single quotes in my text that turned out not to be counted when underlining a wrongfully spelled words, resulting in a shift to the left. When I removed 2 out of 4 of these (') the shift was only 2, when I removed them altogether, replacement worked like normal, confirming the problem occurred when using (') in text.
Solution
Solution: Depends on how you implemented this. Perhaps you use a parsed format of the text where characters like (') are removed before feeding the text to the spellings correction library. I checked all characters on my keyboard and for me it only appears to happen when using (') single quote characters, but perhaps you can double check which characters are replaced in the code.
Use a string replacements or search to find the correct location of a to be underlined word/string.
Count the replacements characters in the text up to the point of the to be underlined string and add these to the location given by the text corrector.
A free Markdown Monster subscriptions is appreciated ;)
The text was updated successfully, but these errors were encountered:
Anynomouss
changed the title
Spellings correction uses a wronge replacement lenght when using special character (') single quote
Spellings correction uses wronge replacement positions when using special character (') single quote
Apr 16, 2024
Anynomouss
changed the title
Spellings correction uses wronge replacement positions when using special character (') single quote
Bug: Spellings correction uses wronge replacement positions when using special character (') single quote
Apr 16, 2024
Example text:
'Text' using four 'single-quotes', results in an erroneous underlining and spellings correction and should be fixed where possibleible
, right click will suggest to changepossibleible
topossible
.I only noticed this problem in a certain section of my document so I did some further investigation . It turned out to be the use of single quotes ('), see the example text provided above. I had four single quotes in my text that turned out not to be counted when underlining a wrongfully spelled words, resulting in a shift to the left. When I removed 2 out of 4 of these (') the shift was only 2, when I removed them altogether, replacement worked like normal, confirming the problem occurred when using (') in text.
Solution
Solution: Depends on how you implemented this. Perhaps you use a parsed format of the text where characters like (') are removed before feeding the text to the spellings correction library. I checked all characters on my keyboard and for me it only appears to happen when using (') single quote characters, but perhaps you can double check which characters are replaced in the code.
A free Markdown Monster subscriptions is appreciated ;)
The text was updated successfully, but these errors were encountered: