Bug#812826: xim problem

2017-08-29 Thread Sean Whitton
control: forwarded -1 https://github.com/ibus/ibus/issues/1847
control: outlook -1 workaround: pkill -u $USER ibus-daemon; 
IBUS_ENABLE_SYNC_MODE=0 ibus-daemon --xim --daemonize

Hello Osamu,

On Tue, Aug 29 2017, Osamu Aoki wrote:

> Yes.  But if ibus related libraries are available it uses such library
> to pass input instead of using xim.  If ibus related libraries aren't
> available, ibus use xim to pass keyboard input.

Okay.

I finally found a workaround:

pkill -u $USER ibus-daemon; IBUS_ENABLE_SYNC_MODE=0 ibus-daemon --xim 
--daemonize

-- 
Sean Whitton



Bug#812826: xim problem

2017-08-29 Thread Osamu Aoki
Hi,

On Mon, Aug 28, 2017 at 10:32:39AM -0700, Sean Whitton wrote:
> Hello Osamu,
> 
> On Sat, Aug 12 2017, Osamu Aoki wrote:
> 
> > Since xim is rarely used protocol, please set to use ibus via im-config.
> 
> I did some investigation.
> 
> Did you know that your scripts launch ibus-daemon with the --xim option?

Yes.  But if ibus related libraries are available it uses such library
to pass input instead of using xim.  If ibus related libraries aren't
available, ibus use xim to pass keyboard input.

Osamu



Bug#812826: xim problem

2017-08-28 Thread Sean Whitton
Hello Osamu,

On Sat, Aug 12 2017, Osamu Aoki wrote:

> Since xim is rarely used protocol, please set to use ibus via im-config.

I did some investigation.

Did you know that your scripts launch ibus-daemon with the --xim option?
In your e-mails you suggested I don't do this.  Is this a bug?

iris ~ % head /usr/share/im-config/data/21_ibus.rc 
# start IBus
# vim: set sts=4 expandtab:

if [ "$IM_CONFIG_PHASE" = 2 ]; then
# start IBus daemon
/usr/bin/ibus-daemon --daemonize --xim
fi

if [ "$IM_CONFIG_PHASE" = 1 ]; then
# set variables for the plain XIM
iris ~ % ps fax | grep ibus-daemon
 1544 ?Ssl0:05 /usr/bin/ibus-daemon --daemonize --xim
 5289 pts/1S+ 0:00  \_ grep ibus-daemon

-- 
Sean Whitton


signature.asc
Description: PGP signature


Bug#812826: xim problem

2017-08-20 Thread Osamu Aoki
Hi,

On Sat, Aug 19, 2017 at 05:49:55PM -0700, Sean Whitton wrote:
> Hello,
> 
> On Sat, Aug 19 2017, Osamu Aoki wrote:
> 
> > 1. Did you enable Korean input via dialog (GNOME Setup "Region &
> > Language" or ibus-setup")
> 
> I tried with both.
> 
> > 2. Do you have any working combination to enter Korean?
> 
> Yes:
> 
>   - using `ibus-server` without --xim; and

Are you setting these yourself by overriding im-config setting?

>   - not using urxvt or Emacs.
> 
> Or:
> 
>   - using `ibus-server --xim`
>   - changing my finger habits to workaround this bug :)
> 
> I think that it would be best if I did some reading about xim, ibus,
> ibus-hangul etc.  Do you know what documents you read when you wrote
> im-config?
> 
> Thanks again.

im-config sets many environment:
XMODIFIERS=@im=ibus
GTK_IM_MODULE=ibus
QT_IM_MODULE=ibus
QT4_IM_MODULE=ibus
...
etc. in your home directory hook: ~/.xinputrc

Please read im-config's manpage and README.Debian.gz.

Osamu



Bug#812826: xim problem

2017-08-19 Thread Sean Whitton
Hello,

On Sat, Aug 19 2017, Osamu Aoki wrote:

> 1. Did you enable Korean input via dialog (GNOME Setup "Region &
> Language" or ibus-setup")

I tried with both.

> 2. Do you have any working combination to enter Korean?

Yes:

  - using `ibus-server` without --xim; and
  - not using urxvt or Emacs.

Or:

  - using `ibus-server --xim`
  - changing my finger habits to workaround this bug :)

I think that it would be best if I did some reading about xim, ibus,
ibus-hangul etc.  Do you know what documents you read when you wrote
im-config?

Thanks again.

-- 
Sean Whitton


signature.asc
Description: PGP signature


Bug#812826: xim problem

2017-08-19 Thread Osamu Aoki
Hi,

On Thu, Aug 17, 2017 at 12:30:44PM -0700, Sean Whitton wrote:
> Hello Osamu,
> 
> On Thu, Aug 17 2017, Osamu Aoki wrote:
> 
> > I have emacs24 and urxvt accept Japanese text input via ibus.
> 
> They worked for me with `ibus-daemon --xim` and the old xim env vars,
> but not under the setup you recommend.
> 
> > Did you install Korean support package? ibus-hangul
> 
> Yes.

Hmmm... stangae.

1. Did you enable Korean input via dialog (GNOME Setup "Region &
Language" or ibus-setup")

2. Do you have any working combination to enter Korean?

> > PS: I found ibus-wayland ... installing

I don't know.  Probable something behind user data path changes ... I
guess.

Osamu



Bug#812826: xim problem

2017-08-17 Thread Sean Whitton
Hello Osamu,

On Thu, Aug 17 2017, Osamu Aoki wrote:

> I have emacs24 and urxvt accept Japanese text input via ibus.

They worked for me with `ibus-daemon --xim` and the old xim env vars,
but not under the setup you recommend.

> Did you install Korean support package? ibus-hangul

Yes.

> PS: I found ibus-wayland ... installing

What was the result?

-- 
Sean Whitton


signature.asc
Description: PGP signature


Bug#812826: xim problem

2017-08-17 Thread Osamu Aoki
Hi,
On Wed, Aug 16, 2017 at 11:18:44AM -0700, Sean Whitton wrote:
> Hello Osamu,
> On Wed, Aug 16 2017, Osamu Aoki wrote:
...
> I think that Emacs and urxvt just don't support ibus.  I guess I should
> use a different terminal emulator, and use Emacs' own support for typing
> Korean.

No I don't think so.

I have emacs24 and urxvt accept Japanese text input via ibus.

Did you install Korean support package? ibus-hangul

Regards,

Osamu
PS: I found ibus-wayland ... installing



Bug#812826: xim problem

2017-08-16 Thread Sean Whitton
Hello Osamu,

On Wed, Aug 16 2017, Osamu Aoki wrote:

> Did you install library supporting ..
>
> If you read dialog carefully, im-config tells me as:
>
>  * Application platform support:
>* GNOME/GTK+: ibus-gtk and ibus-gtk3 (both)
>* KDE/Qt: ibus-qt4
>* Clutter: ibus-clutter
>* EMACS: ibus-el
>
>
> You need to install these.
>
> ibus-el doesn't exist any more but ibus-gtk, ibus-gtk3, ibus-qt4,
> ibus-clutter.

All of them were already installed.

I think that Emacs and urxvt just don't support ibus.  I guess I should
use a different terminal emulator, and use Emacs' own support for typing
Korean.

-- 
Sean Whitton


signature.asc
Description: PGP signature


Bug#812826: xim problem

2017-08-16 Thread Osamu Aoki
Hi,

On Tue, Aug 15, 2017 at 03:23:04PM -0700, Sean Whitton wrote:
> On Tue, Aug 15 2017, Sean Whitton wrote:
> 
> > Unfortunately, it doesn't work in my terminal (urxvt), whereas
> > previously it worked there.  I guess that urxvt supports only xim.
> 
> And Emacs, too.

Did you install library supporting ..

If you read dialog carefully, im-config tells me as:

 * Application platform support:
   * GNOME/GTK+: ibus-gtk and ibus-gtk3 (both)
   * KDE/Qt: ibus-qt4
   * Clutter: ibus-clutter
   * EMACS: ibus-el


You need to install these.

ibus-el doesn't exist any more but ibus-gtk, ibus-gtk3, ibus-qt4,
ibus-clutter.

im-config change environment setting based on available method.


As I checked my default setting
$ set |grep IM
CLUTTER_IM_MODULE=xim
GTK_IM_MODULE=ibus
LC_TIME=en_US.UTF-8
QT4_IM_MODULE=xim
QT_IM_MODULE=ibus
XDG_RUNTIME_DIR=/run/user/1000


Oops.  I installed QT4 and CLUTTER packages;

$ set |grep IM
CLUTTER_IM_MODULE=ibus
GTK_IM_MODULE=ibus
LC_TIME=en_US.UTF-8
QT4_IM_MODULE=ibus
QT_IM_MODULE=ibus
XDG_RUNTIME_DIR=/run/user/1000

OK.

Osamu



Bug#812826: xim problem

2017-08-15 Thread Sean Whitton
On Tue, Aug 15 2017, Sean Whitton wrote:

> Unfortunately, it doesn't work in my terminal (urxvt), whereas
> previously it worked there.  I guess that urxvt supports only xim.

And Emacs, too.

-- 
Sean Whitton


signature.asc
Description: PGP signature


Bug#812826: xim problem

2017-08-15 Thread Sean Whitton
Hello Osamu,

On Sat, Aug 12 2017, Osamu Aoki wrote:

> Since xim is rarely used protocol, please set to use ibus via im-config.
>
> $ set|grep IM_MODULE
> CLUTTER_IM_MODULE=ibus
> GTK_IM_MODULE=ibus
> QT4_IM_MODULE=ibus
> QT_IM_MODULE=ibus
>
> This is what you want.  If you aren't super smart, please reboot to get
> the system setting to be the correct way (I do this.)

I discovered that I had

GTK_IM_MODULE=xim
export GTK_IM_MODULE
QT_IM_MODULE=xim
export QT_IM_MODULE

in my shell startup file, which was overriding im-config.  Ooops.

If I undo that, I can type Korean without seeing this bug in GTK
applications.  Unfortunately, it doesn't work in my terminal (urxvt),
whereas previously it worked there.  I guess that urxvt supports only
xim.

Thank you for your help.

-- 
Sean Whitton


signature.asc
Description: PGP signature


Bug#812826: xim problem

2017-08-12 Thread Osamu Aoki
control: severity -1 minor
control: retitle -1 ibus-x11 doesn't process input in its incoming order

Since xim is rarely used protocol, please set to use ibus via im-config.

$ set|grep IM_MODULE
CLUTTER_IM_MODULE=ibus
GTK_IM_MODULE=ibus
QT4_IM_MODULE=ibus
QT_IM_MODULE=ibus

This is what you want.  If you aren't super smart, please reboot to get
the system setting to be the correct way (I do this.)

Since you don't recall nor recreate what lead you to set such odd
configuration (maybe you installed im-config before ibus).  I forgot how
I wrote im-config but it has some capability to chose among ibus, fctx,
uim... so maybe xim too.)  If you run im-config, the default choice is
dependent on what you have on system and that was the intent.

Anyway, it's a bug.  But please workaround this by rerunning im-config.

Regards,

Osamu