Add support for grapheme index mapping

Not used by anything yet so not tested...