Apache OpenOffice (AOO) Bugzilla – Issue 68048
IM: some IM engines, e.g. for sinhala and thai need to be able to get the surrounding text
Last modified: 2007-12-17 14:06:21 UTC
e.g. with scim and scim-sinhala under gnome... ctrl+space to active and type kRoo, this is a particularly nasty sequence, and the IM will eventually call our GtkSalFrame::IMHandler::signalIMRetrieveSurrounding in an effort to know what to do, we don't implement this, so it plays it safe. But e.g. gedit can give the desired feedback and the correct sequence. Attached is a (hilarious) patch which uses the ATK interface to get the desired surrounding text and make get the right output. Hopefully there is a less silly way to do this, though it does work :-) (fonts for sinhala referenced at issue 68047)
Created attachment 38185 [details] fun patch that does the right thing, but in a strange way
Funny is the right word. Also if i'm not mistaken this relies on the atk bridge and this will only work with accessibility enabled. However we have currently no real interface for this, that makes it an enhancement from my POV.
Actually, with the gtk atk-bridge code in place a11y doesn't actually need to be enabled for this to function
So you think we can use this until we have a better way ? Such "funny" code has a tendency to live much longer than expected, but if it works ... at least it won't get called in anything but these very special input method cases.
Well, someone else should also verify that it works :-) But in the absence of any other good ideas it might be something for e.g. 2.0.5, or whatever is the timeframe for the "icuupgrade" workspace which I think is basically a requirement for "upstream" OOo's icu to have enough support for sinhala anyway to work in displaying these characters.
So what'd you think about 2.4 for this ? I'll attach the latest version, I think it's unchanged, but just to get a clean apply
Created attachment 47751 [details] updated patch
tentative target
committed the patch in CWS vcl84
please verify in CWS vcl84
reassign to me
verified
cmc: could you have a look at this on your systenm too, please ?
groovy for me
On request from es I'll rephrase the description: Some input methods are not satisfied with their preedit buffer, they need to change previously committed text surrounding the cursor (e.g. gtk's sinhala input method). To do this they need application support in form of certain functions that need to be implemented by vcl. Up to now the functions did nothing hence these features did not work. The patch provided by cmc changes these functions to do something useful hence activating a missing feature in our gtk binding. This can be witnessed by using the scim-sinhala input method, activating it with ctrl+space and typing kRoo which will trigger this feature.
seen in m240, closing