Can't track flow of characters in from Input Method Editor
Caolán McNamara
caolanm at redhat.com
Thu Oct 8 02:18:15 PDT 2015
On Thu, 2015-10-08 at 08:52 +0100, Richard Wordingham wrote:
> The intent of the call is to delete one Unicode character;
I imagine you need to change signalIMDeleteSurrounding where we have
nDeletePos = nPosition + offset and
nDeleteEnd = nDeletePos + nchars
and instead of adding "offset" and adding "nchars" you need to call
getText on xText to get the string, then use
OUString::iterateCodePoints to count forward from nPosition by "offset"
IM codepoints to get the utf-16 offset for LibreOffice, and similarly
iterateCodePoints by IM nchars to get the LibreOffice utf-16 nchars to
delete.
might suck rocks for performance.
C.
More information about the LibreOffice
mailing list