Bug 100320 - Japanese cannot be input by ibus-anthy
Summary: Japanese cannot be input by ibus-anthy
Status: RESOLVED DUPLICATE of bug 91375
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Localization (show other bugs)
Version:
(earliest affected)
4.3.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-11 07:33 UTC by suzukiyos0
Modified: 2016-06-16 07:59 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
A screencast on Jessie, Openbox with ibus (4.74 MB, video/x-flv)
2016-06-13 06:48 UTC, Takeshi Abe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description suzukiyos0 2016-06-11 07:33:43 UTC
Japanese cannot be input on any of libreoffice writer, calc, impress, after any of the input fields of any other GUI applications like leafpad or iceweasel (firefox) is clicked.
I use debian jessie upgraded from wheezy and squeeze.
I use ibus-anthy to input Japanese.
Maybe due to my misconfiguration of ibus-anthy. I am not sure.
Comment 1 suzukiyos0 2016-06-11 07:37:45 UTC
I use openbox as a window manager and I do not use explicitly any desktop environment, such as GNOME, KDE, nor Xfce.
Comment 2 Julien Nabet 2016-06-11 10:38:10 UTC
I can't help about language config but 4.X LO versions are EOL (so not maintained).
Please give a try with a recent LO version (last stable one is 5.1.3) by using testing repo for LO.
Indeed, stable Debian is above all for servers so the versions are stable of course but quite old. If I remember well, the only backports concern security issues.
Comment 3 Julien Nabet 2016-06-11 10:39:42 UTC
Also, I don't know if it can help but I found this:
https://wiki.archlinux.org/index.php/IBus#LibreOffice (ok you're not on ArchLinux but sometimes it may help to read about tips on other distros).
Comment 4 suzukiyos0 2016-06-11 15:21:31 UTC
Thank you, Julien Nabet
I used LO version 5 or so from debian jessie backports until 3 months ago, but I found that LO impress version 5 from debian jessie backports could not display properly some animation effect like rubber or so at that time. Thus, I removed LO version 5 and installed 4.2.2.3 from usual jessie repository 3 months ago.
But I will install LO version 5.1 or so from jessie backports and check if it works correctly.
And also, I will read https://wiki.archlinux.org/index.php/IBus#LibreOffice and try to solve my problem.
Comment 5 suzukiyos0 2016-06-11 15:31:49 UTC
I have not removed LO version 4.3.3.2 yet.

$ grep ibus ~/.bashrc
gives:
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus

$ echo $XMODIFIERS
gives:
@im=ibus

$ ps auwwx|grep ibus
tells that the followings are running:
ibus-daemon -d -x -r
/usr/lib/ibus/ibus-dconf
/usr/lib/ibus/ibus-ui-gtk3
/usr/lib/ibus/ibus-x11 --kill-daemon
python3 /usr/share/ibus-anthy/engine/main.py --ibus

$ LANG=C apt-cache policy libreoffice-still
gives:
N: Unable to locate package libreoffice-still

I will try removing LO 4.3.3.2+deb8u3 and installing LO 5.1.3-1~bpo8+1 from backports.
Comment 6 suzukiyos0 2016-06-11 15:54:26 UTC
I installed LO 5.1.3-1~bpo8+1 from backports by
# apt install -t jessie-backports libreoffice libreoffice-l10n-ja
The above command removed LO 4.3.3.2.

I rebooted the debian.
I started LO 5.1.3 by
$ localc
at an gnome-terminal window on GUI.

The exact same problem as that written in former post of mine happens.

I maybe will remove LO 5.1.3 and will install LO 4.3.3.2 later.
Comment 7 Julien Nabet 2016-06-11 16:32:51 UTC
Suzukiyos0: thank you for your feedback.

Takeshi Abe: thought you might give some hints for this tracker as you're in Japanese language team.
Comment 8 Takeshi Abe 2016-06-13 06:48:43 UTC
Created attachment 125629 [details]
A screencast on Jessie, Openbox with ibus

I could not reproduce the behavior on Debian Jessie / Openbox / LibO 4.3.3-2+deb8u4.
Attached the screencast recorded in the session FYI.

BTW ibus sometimes stopped working, i.e. became impossible to toggle input sources,
when switching windows regardless whether one of them was LibO's or not.
So I doubt if ibus on Openbox is somewhat unreliable.
Comment 9 suzukiyos0 2016-06-13 23:34:38 UTC
Thank you, Takeshi Abe, for trying to reproducing the problem.
Ibus become impossible to toggle input sources. Libreoffice uses English (direct input) after I type something to an input field in another window.
I will purge ibus and libreoffice and then will install them and will check if I can input Japanese on libreoffice even after typing something to an input field in another window.
Comment 10 Takeshi Abe 2016-06-16 00:59:37 UTC
You would be interested in a recent discussion about this issue in ja-discuss mailing-list:
http://listarchives.libreoffice.org/ja/discuss/msg04117.html
Comment 11 Takeshi Abe 2016-06-16 01:00:11 UTC

*** This bug has been marked as a duplicate of bug 99833 ***
Comment 12 V Stuart Foote 2016-06-16 01:13:34 UTC

*** This bug has been marked as a duplicate of bug 91375 ***
Comment 13 suzukiyos0 2016-06-16 07:59:25 UTC
Applying the following patch to ibus solved the issue.
https://build.opensuse.org/package/view_file/M17N/ibus/ibus-xim-fix-re-focus-after-lock.patch?expand=1

Thank you, Mr. Takeshi Abe, for informing me the patch :)