implement hook auto pairing
improve autopairing wip
Merge branch 'master' into autopairing

* master:
  bs "bosanski jezik" translation #4246. Author: MirhadS.
complete autopairing implementation