AutoCorrect with Unicode Text working only after pressing Backspace and then Space Button

I am using Ubuntu 22.04 and LibreOffice 24.8.4.2.
If I put ‘‘हेख’’ in Replace filed and ‘‘हे म्हणणे खरे आहे की,’’ in with field, Autocorrect do not work when I type हेख and give space. But it works when I type हेख then space and then backspace and again space. Is there any solution so that it will work when I type हेख then space.

Check that you do not have a space included in the trigger text. In the screenshot below, the text already added has a space preceding it and does not work. The text in the Replace field ready to be added has no leading or following spaces and works correctly.

No I did not put the space

Check that there aren’t any other non-visible characters at the ends of your Replace text, e.g. Zero width joiner U+200D, zero-width non joiner U+200C, zero-width space U+200B, etc.
I copied your Replace text from your question as well as the With text. I set the AutoCorrect to Text only for that replacement and it works

Use autotext instead of autocorrect for this type of corrections. Autocorrect is for language specific spelling mistakes. Since this text is in Marathi, consider spell check extension. https://extensions.libreoffice.org/en/extensions/show/marathi-spellchecker

You can modify the source code if you want and create a new extension as explained here…

1 Like