Bug 1027670 - Add IME that handle LaTeX

Are you sure you need to _re-match_ this? If you are slicing the same `textAfterCursor` here from the 2nd character, the index will be the same as before minus 1 and you avoid some regexp computes which are not cheap precisely.