Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Input method MOZC doesn't work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Tue Jul 15, 2014 7:04 pm    Post subject: [SOLVED] Input method MOZC doesn't work Reply with quote

My system: Gentoo - gnome3

I need to enter Japanese texts in my computer. I installed successfuly ibus and I have the anthy method working properly.
However I would prefer the mozc method that is better. Unfortunately ibus cannot switch to mozc et the mozc icon doesn't show up at all in the keyboard icon tray despite the fact I could select it in the gui provided by the ibus-setup command.
here are some info I think may be useful.

Quote:

app-i18n/ibus-1.5.5 was built with the following:
USE="X gtk gtk3 introspection nls python -deprecated -gconf -test -vala -wayland" ABI_X86="64" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"

app-i18n/ibus-anthy-1.5.4 was built with the following:
USE="nls -deprecated" ABI_X86="64" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"

app-i18n/anthy-9100h-r1 was built with the following:
USE="-canna-2ch -emacs -static-libs" ABI_X86="64"

The following is necessary to have the switcher working in texmaker (latex) despite the fact that I am using gnome (systemd)
app-i18n/ibus-qt-1.3.1 was built with the following:
USE="-doc" ABI_X86="64"


~ $ cat ~/.xprofile
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im-ibus
export QT_IM_MODULE=ibus
ibus-daemon -drx

app-i18n/mozc-1.13.1651.102 was built with the following:
USE="ibus qt4 -emacs -renderer -test" ABI_X86="64" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"



Thank you for helping me.


Last edited by augustin2 on Thu Jul 31, 2014 12:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2490
Location: イタリアのロディで

PostPosted: Tue Jul 22, 2014 1:25 pm    Post subject: Reply with quote

Hi!
No answer? I'm here for a question instead. Sorry.

Why mozc is better than anthy.
I use anthy on KDE and I feel quite good. Only probles are:

It works with everything (konsole, dolphin, thunderbird and libreoffice) but firefox.
Every one and two it stops working on libreoffice if I don't iconize and reopen it.

Do you use libreoffice or firefox?
Do you suffer any issue on your system?

Tonight I'm going to try Mozc.
Maybe it is an issue with gnome.
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Tue Jul 22, 2014 2:50 pm    Post subject: Reply with quote

Here are some reasons why Mozc is better than anthy according to my wife (Japanese)
- the candidates are presented instantly (no need of the space bar)
- very often the candidates are more relevant
- mozc is smarter and it takes the context into account very much better than anthy to present the best relevant candidate first
- mozc memorize the users's habits more efficiently.
Of course anthy works and has been used for years. It is just a question of ranking.

I don't use KDE. I prefer Gnome. I use anthy on firefox with no issue and I use it a lot with Texmaker (Latex), not that much with LibreOffice but it seems to work also.
With Texmaker, sometimes it is dead (when using shortcuts to change from French to Japanese) and I must click on the icons to come back to French (my language) and then to Japanese. But this is mainly when I enter Latex commands.

I hope you will manage to use mozc with KDE. The feedback from Japanese people is almost always with KDE. Very seldom with Gnome.

Please, give me some feedback of your experiment of mozc under kde.
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Tue Jul 22, 2014 4:34 pm    Post subject: Reply with quote

I just tried mozc on Debian (Gnome). It works fine.
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2490
Location: イタリアのロディで

PostPosted: Wed Jul 23, 2014 8:14 am    Post subject: Reply with quote

Installed it yesterday evening.
Works very well. I like it. Also the tray icon is very nice. :P
I use it with libreoffice almost exclusively, because of studying japanese.
I used firefox by typing on google translator.

- Libreoffice issue is yet present.
- Firefox issue desappeared (at the moment) both with mozc and anthy. Don't know why and how. I did nothing but emerging mozc.

I'll keep you informed.
I'll provide packages and settings info.

Thanks for your (wife's) information.

Andrea
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Thu Jul 24, 2014 5:09 am    Post subject: Reply with quote

Very happy to hear this . I look forward to knowing what packages you installed and your settings.

I am afraid there is an issue with Gnome +Gentoo.
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2490
Location: イタリアのロディで

PostPosted: Thu Jul 24, 2014 7:12 am    Post subject: Reply with quote

Sorry, yesterday I had no time to post info needed.
But filed a bug report for the libreoffice issue.


EDIT:

Code:
[I] app-i18n/ibus
     Available versions:  1.4.1^t ~1.4.2^t 1.5.5^t {+X dconf deprecated doc (+)gconf gtk (+)gtk3 +introspection nls +python test vala wayland PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"}
     Installed versions:  1.5.5^t(23:48:44 11/03/2014)(X gtk gtk3 introspection nls python vala -deprecated -gconf -test -wayland PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6")
     Homepage:            http://code.google.com/p/ibus/
     Description:         Intelligent Input Bus for Linux / Unix OS

[I] app-i18n/ibus-anthy
     Available versions:  1.2.0.20100115 1.2.6 1.2.7 1.2.7-r1 (~)1.5.4 {deprecated nls PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"}
     Installed versions:  1.5.4(18:53:36 17/02/2014)(nls -deprecated PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6")
     Homepage:            http://code.google.com/p/ibus/
     Description:         Japanese input method Anthy IMEngine for IBus Framework

[I] app-i18n/ibus-qt
     Available versions:  1.3.1 ~1.3.2 {doc}
     Installed versions:  1.3.1(12:36:17 27/05/2014)(-doc)
     Homepage:            http://code.google.com/p/ibus/
     Description:         Qt IBus library and Qt input method plugin

[I] app-i18n/anthy
     Available versions:  9100h 9100h-r1 {canna-2ch emacs static-libs}
     Installed versions:  9100h-r1(06:42:44 03/10/2013)(-canna-2ch -emacs -static-libs)
     Homepage:            http://anthy.sourceforge.jp/
     Description:         Anthy -- free and secure Japanese input system




cat .bash_profile wrote:
# /etc/skel/.bash_profile

# This file is sourced by bash for login shells. The following line
# runs your .bashrc and is recommended by the bash info pages.
[[ -f ~/.bashrc ]] && . ~/.bashrc

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
./ibus.start

where

cat ./ibus.start wrote:
#/bin/bash
ibus-daemon -d --desktop=gnome -x -R


Code:
[I] app-i18n/mozc
     Available versions:  (~)1.3.975.102^t (~)1.5.1090.102^t (~)1.6.1187.102^t (~)1.10.1390.102-r1^t (~)1.13.1651.102^t {emacs +ibus +qt4 renderer scim test PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"}
     Installed versions:  1.13.1651.102^t(19:04:27 22/07/2014)(ibus qt4 -emacs -renderer -test PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7")
     Homepage:            http://code.google.com/p/mozc/
     Description:         The Mozc engine for IBus Framework


Hope to help you.

A.
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Sat Jul 26, 2014 6:26 am    Post subject: Reply with quote

Hi,

Thank you for your information.

Nevertheless I must confess I am a bit surprised.
I thought you were using KDE but looking at your ibus.start file i see the option --desktop=gnome.

Did you really try mozc with Gnome or is it simply what you think should work in my case ?

Whatever it is, I tried it that way but the result is the same it does'nt work. Despite the fact that in ibus' settings I chose mozc and excluded anthy, in the keyboard tray I go on seeing anthy but not mozc.

The version of all the files installed are the same than yours!
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2490
Location: イタリアのロディで

PostPosted: Sat Jul 26, 2014 8:17 am    Post subject: Reply with quote

I'm surprised too.
It is my actual settings. I discovered it works better with that than with --desktop=KDE, but don't ask me why. :?

Now I have anthy excluded, using only italian and moxc.


I must confess I can't understand how ibus works, I know only it is working sufficently well.

You may reset ibus settings and reconfigure it over again. (cannot find how, but I did! :( )

PS. Have you ever heard about fcitx?
You can follow https://fcitx-im.org/wiki/Install_%28Gentoo%29
But I'm not so sure you can use mozc with it. :?
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Sat Jul 26, 2014 9:13 am    Post subject: Reply with quote

All this make a lot of mysteries!
I have also tried fcitx and the behavior is exactly the same. Mozc doesn't appear as an input choice.
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Mon Jul 28, 2014 7:22 am    Post subject: Reply with quote

Hi bandreabis,

BTW you who are using LibreOffice for your Japanese studies, do you know theJILT extensionhttp://extensions.libreoffice.org/extension-center/japanese-integrated-learning-tool ?
It may be useful.
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2490
Location: イタリアのロディで

PostPosted: Wed Jul 30, 2014 7:18 am    Post subject: Reply with quote

Thanks! I did not know it. It could be useful.
Adding kanji by strokes and radicals is fantastic!!
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Thu Jul 31, 2014 12:54 pm    Post subject: Reply with quote

Eventually I discovered that adding mozc input in ibus-preferences graphical utility is not enough. I had to add it from Settings --> Countries & Languages (I removed anthy first) .
Now it works fine

BTW Bandreabis let me know you opinion about JILT and whether you could manage to install it easily or not ?
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2490
Location: イタリアのロディで

PostPosted: Mon Aug 04, 2014 1:23 pm    Post subject: Reply with quote

augustin2 wrote:
Eventually I discovered that adding mozc input in ibus-preferences graphical utility is not enough. I had to add it from Settings --> Countries & Languages (I removed anthy first) .
Now it works fine

BTW Bandreabis let me know you opinion about JILT and whether you could manage to install it easily or not ?


Good news! I'm happy you resolved. I think I have ja in languages.
I installed JILT with no problems, but I have not yet tested it.
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2490
Location: イタリアのロディで

PostPosted: Tue Feb 03, 2015 1:37 pm    Post subject: Reply with quote

libreoffice issue is still present, and no bug solution came to my ear.
My question is how many input method framework are there?
SCIM, ibus, UIM... ???
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2490
Location: イタリアのロディで

PostPosted: Wed Feb 11, 2015 2:19 pm    Post subject: Reply with quote

augustin2 wrote:
Hi,

Thank you for your information.

Nevertheless I must confess I am a bit surprised.
I thought you were using KDE but looking at your ibus.start file i see the option --desktop=gnome.

Did you really try mozc with Gnome or is it simply what you think should work in my case ?

Whatever it is, I tried it that way but the result is the same it doesn't work. Despite the fact that in ibus' settings I chose mozc and excluded anthy, in the keyboard tray I go on seeing anthy but not mozc.

The version of all the files installed are the same than yours!


Hi!
Updates.

I experienced full CPU working with some kernels (so I kept using 3.10.14). Resulted that the problem is ibus!! And in particolar that
Code:
#/bin/bash
ibus-daemon -d --desktop=gnome -x -R

dropping
Code:
--desktop=gnome

I solved also that issue.
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum