SCIM wont work with Java

Bug #98890 reported by Ryu Kent
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
scim (Ubuntu)
Invalid
Undecided
Rolf Leggewie

Bug Description

Ubuntu 7.04:
SCIM works fine in GTK and QT apps. XMODIFIERS environment variable is set to "@im=SCIM", and XIM_PROGRAM to "scim -d" but when Java applications are launched, SCIM will not allow the input of Japanese characters from Anthy.

ProblemType: Bug
Architecture: i386
Date: Fri Mar 30 15:33:11 2007
DistroRelease: Ubuntu 7.04
Uname: Linux ryu-laptop 2.6.20-13-generic #2 SMP Sun Mar 25 00:21:25 UTC 2007 i686 GNU/Linux

Revision history for this message
Ryu Kent (ryukent) wrote :

Also, QT apps wont allow SCIM extended character input when XIM is selected as an input method. This was no problem in Edgy

Revision history for this message
Ryu Kent (ryukent) wrote :

Seems like no luck in pure X applications either. xterm wont accept SCIM input. Seems like a SCIM-XIM problem.

Revision history for this message
Rolf Leggewie (r0lf) wrote :
Changed in scim:
assignee: nobody → r0lf
status: New → Incomplete
Revision history for this message
Ryu Kent (ryukent) wrote :

It's related to that bug yes. And all the others posted about XIM. Basically the ubuntu SCIM package XIM section is broken and has been for over a year now. It gets ignored because most people only ever use GTK or QT apps these days. Java, flash, etc etc..... need XIM. UIM works fine in XIM. Not sure about the fedora patch. Hope this can be sorted soon. Doesn't seem too major, but affects a lot of people.

Revision history for this message
Ming Hua (minghua) wrote : [Bug 98890] Re: SCIM wont work with Java

On Tue, Feb 12, 2008 at 09:43:46PM -0000, Ryu Kent wrote:
>
> It's related to that bug yes. And all the others posted about XIM.
> Basically the ubuntu SCIM package XIM section is broken and has been for
> over a year now.

I would disagree. I use XIM all the time, even under GNOME, and it's
been working for me in most situations, not "broken" at all. Of course
there is bug #66104 which is occasionally quite annoying, but it can be
easily worked around.

Ming
2008.03.02

Revision history for this message
Ryu Kent (ryukent) wrote :

Ming,

What version of Ubuntu are you using and in which applications?

On 02/03/2008, Ming Hua <email address hidden> wrote:
> On Tue, Feb 12, 2008 at 09:43:46PM -0000, Ryu Kent wrote:
> >
> > It's related to that bug yes. And all the others posted about XIM.
> > Basically the ubuntu SCIM package XIM section is broken and has been for
> > over a year now.
>
>
> I would disagree. I use XIM all the time, even under GNOME, and it's
> been working for me in most situations, not "broken" at all. Of course
> there is bug #66104 which is occasionally quite annoying, but it can be
> easily worked around.
>
> Ming
> 2008.03.02
>
>
> --
> SCIM wont work with Java
> https://bugs.launchpad.net/bugs/98890
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Ming Hua (minghua) wrote :

On Sun, Mar 02, 2008 at 06:02:38PM -0000, Ryu Kent wrote:
>
> What version of Ubuntu are you using and in which applications?

I am currently using hardy (will be 8.04), but I've been using Ubuntu
and scim XIM mode since the early warty days and in almost every
release, and the XIM mode has never been "broken" for me.

I use GNOME and therefore use scim in many applications, such as
firefox, gedit, pidgin, and OpenOffice. Altough I admit I've never
tried using scim in a Java application.

Ming
2008.03.03

Revision history for this message
Ryu Kent (ryukent) wrote :

Ming,

Those applications are GTK or support input methods. The problem is
affecting only X server applications not running on GTK or QT
toolkits. It can be recreated in the following way:

1. Fresh install of Ubuntu. English Locale
2. Install SCIM using language support and input for extended characters.
3. Adjusting environment variables so that xmodifier is set to XIM
4. Running SCIM
5. Running xterm.

Note that in the normal GTK terminal SCIM will work fine. But xterm is
non GTK. This is where the problem happens. Although SCIM will seem to
be running fine, inputting extended characters will not work.

This has been tested extensively on a number of systems. If yours does
not exhibit these problems, could you tell us what locale you are
running in and post your SCIM environment variables too.

Thanks,

Ryu

On 03/03/2008, Ming Hua <email address hidden> wrote:
> On Sun, Mar 02, 2008 at 06:02:38PM -0000, Ryu Kent wrote:
> >
> > What version of Ubuntu are you using and in which applications?
>
>
> I am currently using hardy (will be 8.04), but I've been using Ubuntu
> and scim XIM mode since the early warty days and in almost every
> release, and the XIM mode has never been "broken" for me.
>
> I use GNOME and therefore use scim in many applications, such as
> firefox, gedit, pidgin, and OpenOffice. Altough I admit I've never
> tried using scim in a Java application.
>
> Ming
> 2008.03.03
>
>
> --
>
> SCIM wont work with Java
> https://bugs.launchpad.net/bugs/98890
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Ming Hua (minghua) wrote :

Hi Ryu,

On Tue, Mar 04, 2008 at 07:43:38AM -0000, Ryu Kent wrote:
>
> Those applications are GTK or support input methods. The problem is
> affecting only X server applications not running on GTK or QT
> toolkits. It can be recreated in the following way:

OpenOffice does not use GTK for input methods. Also, I can input
Chinese using SCIM in xterm just fine.

I've been working with SCIM for quite some time, please believe me when
I say I'm using XIM mode. I know very well the difference between XIM
mode and GTK's IM mode.

> 1. Fresh install of Ubuntu. English Locale
> 2. Install SCIM using language support and input for extended characters.
> 3. Adjusting environment variables so that xmodifier is set to XIM
> 4. Running SCIM
> 5. Running xterm.
>
> Note that in the normal GTK terminal SCIM will work fine. But xterm is
> non GTK. This is where the problem happens. Although SCIM will seem to
> be running fine, inputting extended characters will not work.
>
> This has been tested extensively on a number of systems. If yours does
> not exhibit these problems, could you tell us what locale you are
> running in and post your SCIM environment variables too.

I don't have time to do such tests that involves a fresh install. I use
en_US.UTF-8 locale and write my own SCIM configurations (although I
believe the im-switch settings shipped in hardy's package should also
work). I have no idea what the "installing input support of extended
characters" in the language-support tool does, and am not interested to
know.

All I want to say is that it has always been possible to use XIM mode in
Ubuntu, it's plainly wrong to blame XIM mode for whatever bug here.

Ming
2008.03.04

Revision history for this message
Rolf Leggewie (r0lf) wrote :

How about a virtualbox.org image so we all have a common base to test on?

I am bit overwhelmed with other stuff, but if nobody else beats me to it, I'll eventually try and provide such an image. I understand Ming is pressed for time as well, I hope this will be a time-saver for him. My feeling is that he is in the best position with the most technical background to help us on this.

Revision history for this message
Ryu Kent (ryukent) wrote :

OK, I finally worked out what it was. If you default locale is en_US,
then it won't affect you at all. This works fine by default. If
however, you are using anything else (such as en_GB.UTF-8 in my case)
then only the scim still works fine in scim mode (GTK, QT etc), but
appears to not work in direct XIM mode. My apologies Ming, you were
right, XIM is working fine. My global file had:

"/SupportedUnicodeLocales = en_US.UTF-8, en_GB.UTF-8"

The problem is the blank space after the "," causes the second locale
not to be recognised. Thus

"/SupportedUnicodeLocales = en_US.UTF-8,en_GB.UTF-8"

is needed. I guess it would be really helpful if there was some way of
having the relevant locale added automatically as for anyone outside
the US, running the automatic installation procedure won't finish off
the job. SCIM will run, but only accept input into apps where input
method is changed from XIM to SCIM. Further more perhaps SCIM could be
a bit more forgiving in processing the locale string.

Other dists (SUSE) seem to whack a whole load of locales in the global
file automatically. Thats why it seemed to be Ubuntu related. I'll
post this in the forum as I know others have has the same issue.

Cheers,

Ryu

On 04/03/2008, Rolf Leggewie <email address hidden> wrote:
> How about a virtualbox.org image so we all have a common base to test
> on?
>
> I am bit overwhelmed with other stuff, but if nobody else beats me to
> it, I'll eventually try and provide such an image. I understand Ming is
> pressed for time as well, I hope this will be a time-saver for him. My
> feeling is that he is in the best position with the most technical
> background to help us on this.
>
>
> --
> SCIM wont work with Java
>
> https://bugs.launchpad.net/bugs/98890
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Thanks Ming and Ryu for working this one out. Can the issue be closed?

Revision history for this message
Ryu Kent (ryukent) wrote :

Yeah, no issues with Java. And global file parsing is not an ubuntu thing.

On 13/03/2008, Rolf Leggewie <email address hidden> wrote:
> Thanks Ming and Ryu for working this one out. Can the issue be closed?
>
>
> --
> SCIM wont work with Java
>
> https://bugs.launchpad.net/bugs/98890
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Rolf Leggewie (r0lf)
Changed in scim:
status: Incomplete → Invalid
Revision history for this message
bill lam (cbill-lam) wrote :

Ming Hua :
I still cannot use scim in java and xterm. Could you please recommand how to setup /etc/X11/xinit/xinput.d/scim and other relevant conf files,

I used ubuntu gutsy amd64, locale en_HK.UTF-8, I had no problem in using scim in openoffice or other gtk applications, but it does work in qt4 and java32/64. (control-space cannot tirgger chinese input mode)

Btw, is scim-bridge or im-switch really needed?

Also if you call up xterm (by typing "xterm" in terminal), could you still use scim in that xterm?

Revision history for this message
dreamon (dreamon) wrote :

Hi everyone, I realize this bug hasn't been a high priority since iBus was introduced, but as far as I can tell there is still a conflict between Java and SCIM of some sort. I am currently running Ubuntu Maverick 10.10 and SCIM input doesn't work in Java applications, even though I have applied the changes outlined by Ryu above.

The reason I want to use SCIM is because iBus still has some problems with Java of its own (https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/481656) -- and that didn't change throughout the last three Ubuntu versions. So I decided to give SCIM a try and use it for the applications that don't work properly with iBus. I set up SCIM by installing the following packages through Synaptic: scim, scim-hangul, scim-modules-table, scim-chewing, scim-tables-ja, scim-tables-ko, scim-pinyin, scim-anthy, scim-tables-additional, scim-chinese, scim-tables-zh. When running Firefox using "env XMODIFIERS=@im=SCIM LANG=en_US.UTF-8 GTK_IM_MODULE=scim firefox" I can use SCIM throughout the programme without any problems. The tray icon comes up, I press CTRL + Space, choose the desired input method and type away. However, when running the same command with Java applications, like netbeans, for example, SCIM remains inactive. That is, its tray icon appears, but I cannot activate it using the keyboard shortcut.

You will notice that I ran all applications using the LANG=en_US.UTF-8 argument to avoid running into the same problem as Ryu. I applied his changes to the SCIM config files (/etc/scim/global and ~/.scim/global) nonetheless, to rule out any peculiar conflicts, but to no avail. Some users on the Ubuntu Forums suggested copying the user SCIM settings from ~/.scim to /root/.scim (http://ubuntuforums.org/showthread.php?t=338991). I tried that too, but this didn't help either. I should probably mention that I have rebooted each time after changing a configuration file, and that the iBus daemon was not running when trying the above commands. So far without any results.

I hope someone who is more knowledgeable than me can help. All the above works perfectly fine in openSUSE, so as far as I can tell, this bug is still valid.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

just in case anyone is still reading this, please open a new ticket with "apport-bug scim". You can reference this ticket and subscribe me.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

just in case anyone is still reading this *AND* is still affected, please open a new ticket with "apport-bug scim". You can reference this ticket and subscribe me.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.