Description of problem: * As soon as IBus is activated, there seems to be a problem with surrounding text support for the first syllable typed. Version-Release number of selected component (if applicable): * ibus-1.3.99.20110408-5.fc15.x86_64 * ibus-m17n-1.3.2-3.fc15.x86_64 How reproducible: * Consistently Steps to Reproduce: 1. Open gedit 2. Activate IBus and select Sinhala phonetic-dynamic (m17n) 3. Deactivate and Activate IBus (this step may not be required) 4. Type "koko" Actual results: * කඔකො Expected results: * කොකො
Sorry for inconvenience. When I replaced a local surrounding-text patch with the upstream one, I dropped Fedora specific code by mistake. Koji build: http://koji.fedoraproject.org/koji/taskinfo?taskID=3115152 Could you test it?
Installing ibus-m17n-1.3.2-4.fc15.x86_64 and restarting IBus, I could still reproduce the bug. My guess is that the first surrounding text operation fails.
OK probably I got it. Currently ibus turns on surrounding-text support first time when the engine requests surrounding-text, and I suspect si-phonetic-dynamic does not request surrounding-text until it is really needed (i.e. when "o" is pressed). Other m17n engines, such as wijesekera, have no problem with it since it checks surrounding-text in the init state of MIM. I'll consider what fix is better. (BTW I think this is not that urgent since it happens only the first time the engine requests surrounding-text. I'll lower the priority/severity to normal).
Created attachment 503387 [details] workaround to request surrounding-text in advance
I figured out that this cannot be easily fixed in ibus side. Couldn't it fixed in MIM files (patch attached to comment 4)? Do you know any other MIMs which have similar problems?
(In reply to comment #4) > Created attachment 503387 [details] > workaround to request surrounding-text in advance Does that work for you? I just get English letters.
correction ... it does work for me.
Send your patch to m17n folks and explain why and see what they think.
I'm going to fix this by adding a dummy ibus_engine_get_surrounding_text() call in ibus_m17n_engine_enable(). Koji build: http://koji.fedoraproject.org/koji/taskinfo?taskID=3131687 Could you test again?
I backed out the patch to the MIM, restarted IBus. I can not reproduce the bug with the latest build of ibus-m17n. Thanks!
ibus-m17n-1.3.2-5.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/ibus-m17n-1.3.2-5.fc14
ibus-m17n-1.3.2-5.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/ibus-m17n-1.3.2-5.fc15
Package ibus-m17n-1.3.2-5.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing ibus-m17n-1.3.2-5.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/ibus-m17n-1.3.2-5.fc15 then log in and leave karma (feedback).
ibus-m17n-1.3.2-5.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
ibus-m17n-1.3.2-5.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.