When configuring the input method, we always export environment variables before the input method starts: Export [email protected] = scim Export gtk_im_module = scim What are their intentions ?? Our commonly used input methods include the following: 1. xim (X Input Method, all x graphics programs are available) 2. GTK immodule (GTK input module, designed for GTK + 2/gnome programs. GTK + 1 is not applicable) 3. QT immodule (QT input module for QT/KDE programs) Xmodifiers is actually the input method of the x graphics program. The gtk_im_module is the default input method module used by the program that specifies GTK + 2. All input method modules for GTK + 2 are installed in the/usr/lib/gtk-2.0/2.4.0/immodules/directory. We have an intuitive experience with the relationship between them, that is, when we fail to set xmodifiers (for example, in some cases, scim is in lower case), the X input method cannot be used, right-click gnome-terminal, move to "input method", and then select "scim Input Method". We can enter Chinese Characters in gnome-terminal. of course, the premise is that we have installed the scim-gtk2-immodule package. Generally, the priority of xmodifiers is higher than that of gtk_im_module. That is, when these two environment variables are set at the same time, the X input method specified by xmodifiers is used preferentially in GTK + 2 applications. GTK immodule has many advantages over xim: 1. not restricted by locale 2. The IM server is automatically called if it is available at any time without any configuration. 3. You can switch between different IM servers at any time without restarting X. 4. actually supports cursor follow. However, because of the compatibility of C ++, The scim-gtk2-immodule conflicts with many programs, so at present, if we use scim, we cannot smoothly enjoy the various advantages of the GTK input module, only scim for xim. Note: Mozilla, Firefox, and Thunderbird are not formal GTK + 2, so you cannot use the mouse to dynamically select the input method. if you only use GTK immodule, you must use gtk_im_module to specify the default GTK input module. |