For example typing "Vn" for "Việt Nam", "Jp" for "Japan" using free soft Unikey.
Open control panel by right click 'V' or 'E' icon:
Check all options in 'Macro options' and click 'Macro table...' to open Autotext table editor:
Input values in boxes and click 'Add' button to add. If you want to replace an existing auto text shortcut, choose that entry, input new value pair and 'Replace' button.
Press 'OK' to save.
A file name 'ukmacro.txt' will appear in Unikey folder:
This is its content:
;DO NOT DELETE THIS LINE*** version=1 ***Now you can open a document etc. to test by typing jp, JP, Jp, vn, VN, Vn. Here's the result:
jp:japan
sg:sài gòn
vn:việt nam
jp => japanThe case of replaced word will match the case of the shortcut you type (i.e. Lower/Upper/Proper).
JAPAN => JAPAN
Jp => Japan
vn => việt nam
VN => VIỆT NAM
Vn => Việt Nam
Bug
If you press 'Select file...' button, the app will crash and cause a little freeze to your PC. If you edit ukmacro.txt file, it will not work. This is obviously a bug but not seems to be fixed soon.In most case of manual operation, ukmacro.txt file will be erased. That means you have to manually input each auto text shortcut and pay attention not to touch this file nor press any button.
I don't recommend you to use auto text (or 'macro') of this app.

