Extend AutoCorrect options

Hi everyone !

I have some suggestions concerning the AutoCorrect options.

Indeed, it would be very nice to:

  • use the MathAutoCorrect without any equation for instance by directly typing in the text « + - » producing « ± »
  • Automatically formatting text in cases like « 1st » producing the “st” in superscript

Thanks in advance !

1 Like

Hi @nicolas.a.grandin

I don’t often actively seek out ordinal suffixes (I think that’s what they’re called) like “st”, “nd”, etc, but I do use “±” and similar like “½” quite often.

But what I do use is a 3rd party utility called AutoHotKey which I use to gain access to these special characters in any application running on my computer (Win 10). This utility can detect any string typed, and substitute “on the fly”.

For instance, if I type “+//-”, then “±” appears instead. This is achieved using a special instruction in AutoHotKey’s configuration file

:*?:+//-::±

I didn’t realise that OnlyOffice does not currently convert “1st” to the superscripted suffix, which shows how often I’ve needed it :blush: But I did get AutoHotKey to do the lifting;

HotIfWinActive "ahk_class ONLYOFFICE"
:*?:0th::0^,th^,
:*?:1st::1^,st^,
:*?:2nd::2^,nd^,
:*?:3rd::3^,rd^,
:*?:4th::4^,th^,
:*?:5th::5^,th^,
:*?:6th::6^,th^,
:*?:7th::7^,th^,
:*?:8th::8^,th^,
:*?:9th::9^,th^,
HotIfWinActive

So when I am typing in OnlyOffice, and I type a number followed by an ordinal suffix, then that suffix is superscripted; that is what the “^,” (representing Ctrl+,) does, ending with the same keyboard control to turn it off again. And the whole block of rules are bound with an instruction that it is only applicable to OnlyOffice.

Via AutoHotKey, I have quick access to a whole library of special characters.
If you are feeling adventurous, and keen to add that functionality, you may wish to investigate this utility too.

These are some of the other mathematics based ones I use as well;

:*?:!x::×
:*?:!ax::𝑥
:*?:!ay::𝑦
:*?:!ax::𝑧
:*?:!/::÷
:*?:!\=::≠
:*?:!\0::Ø