Bug 1027670 - Add IME that handle LaTeX

This name is very misleading. You're using it to compute where, from the beginning of the `compositeKey` the cursor should be placed. I advice you to rethink the name.