Description of problem: If one set ANTHY_HISTORY_FILE, anthy should record all inputs. But currently anthy record only if I input a single word. Version-Release number of selected component (if applicable): anthy-9100h-4.fc11.i586 How reproducible: Always Steps to Reproduce: 1. Set following into .bash_profile. export ANTHY_HISTORY_FILE=~/.anthy_history 2. login to the account 3. Input Japanese words and convert. 3a. Watashi no namae ha nakano desu. (My name is nakano) 3b. nakano Actual results: 3a. Nothing recorded into .anthy_history 3b. A word nakano is recorded into .anthy_history Expected results: Both 3a and 3b cases should be recorded. Additional info: In order to record corpus when I input Japanese, this function should be work as expected.
Created attachment 349589 [details] Bad sample anthy_history file Bad anthy_history file which record only single word convert result. The file is EUC-JP.
Are you using ibus right?
Yes. Both ibus and anthy are from fedora 11 repo. When I was using Fedora Core 5, I remember that ANTHY_HISTORY_FILE worked with scim-anthy + anthy. And when I am using RHEL5, ANTHY_HISTORY_FILE works with scim-anthy + anthy.
Right. it works with scim-anthy on even F-11. the problem is, ibus-anthy doesn't always calls anthy_commit_segment() when commit the preedit, where invokes anthy_save_history(). Reassigning to ibus-anthy.
This symptom reproduce with following ibus $ rpm -qa |grep ibus- ibus-m17n-1.1.0.20090211-5.fc11.i586 ibus-hangul-1.1.0.20090328-2.fc11.i586 ibus-chewing-1.0.10.20090523-2.fc11.i586 ibus-libs-1.1.0.20090612-1.fc11.i586 ibus-anthy-1.1.0.20090603-1.fc11.i586 ibus-1.1.0.20090612-1.fc11.i586 ibus-rawcode-1.0.0.20090303-3.fc11.i586 ibus-gtk-1.1.0.20090612-1.fc11.i586
Created attachment 353801 [details] Patch for engine/engine.py Hmm.., I cannot enable $ANTHY_HISTORY_FILE with scim-anthy but I could see the problem with ibus-anthy in fedora 11. I'm not sure if I tried it correctly. anthy_commit_segment() sets seg->committed = c and commit_all_segment_p() checks all segments has the right seg->committed . The suggested patch assigns each committed value.
$ rpm -qf /usr/share/ibus-anthy/engine/engine.py ibus-anthy-1.1.0.20090603-1.fc11.i586 I have modified /usr/share/ibus-anthy/engine/engine.py file, and now ANTHY_HISTORY_FILE works as expected. Thanks for the fix
upstream also fix this bug. http://github.com/phuang/ibus-anthy/commit/5f6fabc10d33a9bee0de43d851d20b6664b6ef8c
Fixed in ibus-1.2.0.20090804-1.fc12
*** Bug 514112 has been marked as a duplicate of this bug. ***
ibus-anthy-1.1.0.20090814-1.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/ibus-anthy-1.1.0.20090814-1.fc11
(In reply to comment #11) As far as I have tested, ibus-anthy-1.1.0.20090814-1.fc11 fixes this bug. Thanks.
ibus-anthy-1.1.0.20090814-1.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update ibus-anthy'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-8610
*** Bug 518563 has been marked as a duplicate of this bug. ***
ibus-anthy-1.1.0.20090814-1.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.