Install and use the next-generation Input Method ibus Deb package in Ubuntu 8.10 To download _ Ubuntu, Linux, ibus input method, Pinyin, five pens, and sogou

Source: Internet
Author: User
Tags gtk

Install and use the next-generation Input Method ibus Deb package in Ubuntu 8.10 To download _ Ubuntu, Linux, ibus input method, Pinyin, five pens, and sogou

Common Input Methods in Linux include fcitx and scim. Fcitx, full name: "Free Chinese Input toy for X". The Chinese name is "little penguin Input Method". It supports pinyin, five strokes, location, and two strokes. You can enter Chinese Characters in UTF-8, GB 18030 encoding. Fcitx is small and easy to use, and has good compatibility. fcitx is easy to configure and use. It is suitable for beginners and those who are used to Windows input. However, fcitx can only provide Chinese input, in addition, there are few input methods, especially fcitx has stopped development. In addition, fcitx belongs to xim, and the crash of xim will cause the application and X to crash, therefore, if fcitx crashes, user data may be lost. scim and smart common input method are an input method platform that supports multiple languages on Unix-like operating systems, many input methods can be used to support input in different languages, but the biggest problem with scim is its compatibility. In many cases, users cannot use it normally, it brings great inconvenience to users.

Because of the above problems, the next generation of input methods came into being. Ibus ( is one of the next-generation Input Method frameworks, author Shawn. P. Huang is also the author of scim-Python. The other two next-generation input methods are scim2 (home page in Hangzhou) and imbus (http: //, developed by scim的 ). Currently, imbus and scim2.

The main feature of ibus is its C/S structure. The ibus Input Method engine is separate processes. This method can effectively avoid the impact between input methods engines, it is also easy to load and uninstall the input method engine.

Ibus uses middleware as a mechanism for inter-process communication. It features low latency and low overhead, and is small and efficient. It has been widely used in GNOME and KDE. The use of middleware makes ibus small and efficient.

In addition, in terms of graphical interfaces, ibus uses pygtk to make development easier.

  Install the ibus Input Method

If you compile ibus by yourself, you need the latest kernel-Python, while 8.04 of kernel-python is of the lower version. Compile the latest version of objective-Python first, which is troublesome. Fortunately, not long ago, ibus can be directly installed through the cn99 source in Ubuntu 8.04.

Add an ibus software source to the system. Edit the/etc/APT/sources. list file and add a line at the end of the file:

Deb hard main restricted universe multiverse (this source has been deprecated)

Otherwise, the system will prompt that the ibus package cannot be found. If you only use Pinyin, run sudo apt-Get install ibus-pinyin. This command will install the ibus and ibus-pinyin packages. If you want to use other input methods, you can install the ibus-tables package, which contains five 86, five 98, two, Zheng code, warehouse five generations.

Update the package list
$ Sudo apt-Get update

Search for software packages
$ Apt-cache search ibus | grep ^ ibus
Ibus-Intelligent Input bus for Linux/Unix OS

We can see the information of the ibus software package. In the above software package, ibus-Pinyin is the engine of the ibus Pinyin input method, and ibus-table is the engine of other input methods, such as the fifth generation of cangjie, two pen, five pen 86, five pen 98, Zheng Code, etc.

Install the ibus Software Package
$ Sudo apt-Get install ibus-table

Because the author does not use the Pinyin Input Method to install ibus and ibus-table, friends who use the Pinyin input method also need to install the ibus-pinyin software package, and use the following command to install

$ Sudo apt-Get install ibus-table

After the installation is complete, set the user to use the ibus input method by default. You also need to configure ibus as the system input method. The simple and error-prone method is to set it through im-switch. im-switch should be self-contained in the system. If it is not, APT should be one. Because ibus has been installed in/etc/X11/xinit/xinput. d. You have created a configuration file, so you can directly select this configuration by typing "im-switch-s ibus. Then restart to use ibus. This method retains scim and can be switched back from im-switch later.
Ibus does not automatically load the input method engine. You need to start and set auto-start in the engine on the ibus-setup interface (I only installed the Pinyin input method ).

Open a terminal and execute the following command in the terminal:
$ Im-switch-s ibus

Log out of the current user and log on again.

Although it is based on python, it is still very smooth to use, the efficiency is no problem, the dictionary is also rich, and the word selection accuracy is very high. I personally think it is like the sogou Input Method on Linux.
Of course, the input habits of each person are different. scim and Penguin are also good. To find a suitable input method, you must experience and compare it yourself.


Download Deb package after Ubuntu Compilation:

Ubuntu 8.10 manual download and installation:

The installation sequence is as follows:Http://

Ibus 0.1.1 Deb package:Http://

Ibus pinyin Deb packageHttp://

Five ibus Deb packagesHttp://

After installing the ibus package, if you cannot select ibus as the default input method, run the following command:

Sudo Update-alternatives/
-- Install/etc/X11/xinit/xinput. d/zh_cn xinput-zh_CN/
/Etc/X11/xinit/xinput. d/ibus 40


Download ibus for 32bit Ubuntu 8.10

Http: // Ubuntu:

Version i386 supports im-switch management and qt4. It has been added to the Chinese source. It is good. If you are interested, you can use it with confidence.
The problem found today is that the reaction is slow after Pinyin is blurred.
$ Ls
Install ibus-pinyin ibus-Table Python-plugin
Then use sudo im-switch-C to select the ibus input method.
After exiting, restart the computer.



Appendix: ibus:


I saw it on toy that day.Next-generation Input Method Framework ibusI didn't feel much at the time, but I thought the name ibus was a bit interesting.

Let's move the ibus code to git today and look at it: It turns out that ibus is an input method Engine Based on pygtk and idea !!! Interest increases immediately.

I thought it was a UNIX socket-Based C/S input method engine that only provided the QT graphical interface. Now let's take a look at the three core technologies (Python, runtime, and GTK) in ibus, which are my current learning directions. So I plan to take a good look at ibus.



Ibus is short for input bus, developed by Shawn. P. Huang, the author of scim-Python.

Two input methods are being developed in the Chinese field, namely scim2 and imbus, which are developed by Hu Zhenghe and Su Zhe. However, the progress is unclear, especially imbus. The recent commit was half a year ago.

Unlike scim2 and imbus Based on C/C ++, ibus is based on python. How can you solve the efficiency problem? I don't want to worry about this problem as long as it doesn't mean typing more than 500 times per minute?

The rapid development of Python, coupled with the active development of Shawn. P. Huang, should have reason to believe that ibus can quickly mature and be applied.

Let's talk about ibus!

Begin first

Ibus uses idea as the core part of the C/S architecture. This application is really great. Because idea is an efficient and low-latency IPC communication bus with a sound Python binding, I use idea to call some system-level services in Ubuntu Tweak.

I remember the author of fitx input method. fitx input method is based on scim-Python, but the backend engine is based on UNIX socket. Which of the two communication channels is better? I have not studied this in depth. I only know that pipeline is a registration-based service and provides rich and flexible interfaces and language bindings, in this way, the front-end can also be more diversified (now there is a qt4 front-end ).

Because I just got to know the hacker, and UNIX socket is useless, it is not easy to say. I hope I can learn more about tracing from ibus.

Let's talk about pygtk.

Ibus is based on pygtk, rather it is based on pygobject. Of course, the underlying layer is glib.

Ibus base class: a custom object inherits from gobject. gobject. Gobject, such as signal/callback, is widely used in the entire ibus engine (especially in daemon. It is convenient to use python to write and define gobject. If you use C language, it will be annoying. So if you want to learn about the core part of pygtk, it is good to refer to ibus.

...... <...... I'm crazy brother ...... >>>>>>>> ......

So I plan to install and try it out. It took a long time to install ibus.

Because the process is too complicated, we will only focus on the main process here.

The installation process is as follows:Http:// ibus and Pinyin engine are installed.

Ibus depends on qt4 by default. It doesn't matter, but no matter how I configure it, it won't work. In desperation, we removed the QT-related information from Configure. AC, removed the QT-related information from makefile. Am and makeifle. In, and finally compiled ibus.

After compilation, run ibus with a bunch of Python errors. At first glance, the python-plugin of ubuntu 8.04 does not meet the requirements. Without the kernel. server package, ibus requires 0.83, but the default value is 0.82. As a resultIndex of/releases/release-PythonDownload Python-plugin 0.83 to install and update it.

You can finally run the ibus daemon,Gtk_im_module = ibus gedit,Ibus cannot be opened in gedit.

Study again, found that make install im-related things installed to/usr/lib/gtk-2.0/immodules, ubuntu is concentrated in/usr/lib/gtk-2.0/2.10.0/immodules by default. So manually moved to that directory and manually edited the:/usr/lib/gtk-2.0/2.10.0/immodule-files.d/libgtk2.0-0. immodules file.

Log on to Gnome again and call ~ Ibus has finally appeared!

Although I did not use Pinyin, I tried an ibus with pinyin installed.

After a while, I felt very satisfied!

The interface is very beautiful, and the input effect is great. The fcitx-Style Direct English language is also supported: this means that I will be very natural in the future to use ibus!

See the following:

Use ibus in leafpad

Floating Bar, very small

The setting page of Pinyin is very detailed.

Because it is a brand new input method (unlike scim-Python, which is based on scim), ibus has some features that are not available in scim, and the input method is constantly being developed, I believe that ibus will be the best input method! Haha.

Get familiar with the source code today and try again later. I hope I can do my best for development!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.