Difference between revisions of "IBus"

From ArchWiki
Jump to: navigation, search
(Notes on the Above: Removed one bullet since I don't know exactly when it applies.)
(Installation and Setup: Corrected command line)
Line 7: Line 7:
 
= Installation and Setup =
 
= Installation and Setup =
 
Installation:
 
Installation:
  # pacman -Syu ibus
+
  # pacman -Sy ibus
 
You will need at least one input method, corresponding to the language you wish to type. For example, for Chinese:
 
You will need at least one input method, corresponding to the language you wish to type. For example, for Chinese:
  # pacman -S ibus-pinyin
+
  # pacman -Sy ibus-pinyin
 
To see available input methods:
 
To see available input methods:
 
  $ pacman -Ss ^ibus-*
 
  $ pacman -Ss ^ibus-*
Line 23: Line 23:
 
Configure IBus. The default "General" settings should be fine, but go to "Input Methods" and select your input method(s) in the drop down box, then press "Add". You can use multiple input methods if you wish.
 
Configure IBus. The default "General" settings should be fine, but go to "Input Methods" and select your input method(s) in the drop down box, then press "Add". You can use multiple input methods if you wish.
 
Once IBus is set up, you can press Ctrl+Space to use it (multiple times to cycle through available input methods). IBus will remember which input method you are using in each window, so you will have to reactivate it for each new window. You can override this behavior by right clicking the system tray icon, selecting "Preferences", and going to the "Advanced" tab.
 
Once IBus is set up, you can press Ctrl+Space to use it (multiple times to cycle through available input methods). IBus will remember which input method you are using in each window, so you will have to reactivate it for each new window. You can override this behavior by right clicking the system tray icon, selecting "Preferences", and going to the "Advanced" tab.
 +
 
= Pinyin Usage =
 
= Pinyin Usage =
 
When using ibus-pinyin (or ibus-anthy?), first type the pinyin (sans tones) for the characters you wish to enter. Press Up and Down repeatedly to select a character (going on to the next page if necessary). Press Space to use a character. You can also use PageUp or PageDown to scroll pages, and use the number keys 1-5 to select the character you need. You can enter multiple characters that form a word or phrase at a time (such as "zhongwen" to enter "中文"). ibus-pinyin will remember which characters you type most frequently and over time make suggestions that are more tuned to your typing profile.
 
When using ibus-pinyin (or ibus-anthy?), first type the pinyin (sans tones) for the characters you wish to enter. Press Up and Down repeatedly to select a character (going on to the next page if necessary). Press Space to use a character. You can also use PageUp or PageDown to scroll pages, and use the number keys 1-5 to select the character you need. You can enter multiple characters that form a word or phrase at a time (such as "zhongwen" to enter "中文"). ibus-pinyin will remember which characters you type most frequently and over time make suggestions that are more tuned to your typing profile.

Revision as of 20:02, 7 February 2011


About IBus

IBus ("Intelligent Input Bus") is an input method framework (a system that facilitates entry of foreign characters). It fills a role similar to that of SCIM and UIM. Ubuntu dropped support for SCIM because it is "unmaintained upstream", whereas IBus is still under active maintenance by Red Hat, so Arch users may want to consider IBus or UIM instead of SCIM for a new install.

Installation and Setup

Installation:

# pacman -Sy ibus

You will need at least one input method, corresponding to the language you wish to type. For example, for Chinese:

# pacman -Sy ibus-pinyin

To see available input methods:

$ pacman -Ss ^ibus-*

(a few other assorted packages will appear; I'm not entirely sure if this will return all available input methods). Now, you need to run ibus-setup as the user who will use IBus:

$ ibus-setup

It will start the daemon and give you this message:

IBus has been started! If you can not use IBus, please add below lines in $HOME/.bashrc, and relogin your desktop.
  export GTK_IM_MODULE=ibus
  export XMODIFIERS=@im=ibus
  export QT_IM_MODULE=ibus

Note that although IBus uses a daemon, it is not the sort of daemon managed by the DAEMONS array in /etc/rc.conf: it runs as an ordinary user and will be started for you when you login. Configure IBus. The default "General" settings should be fine, but go to "Input Methods" and select your input method(s) in the drop down box, then press "Add". You can use multiple input methods if you wish. Once IBus is set up, you can press Ctrl+Space to use it (multiple times to cycle through available input methods). IBus will remember which input method you are using in each window, so you will have to reactivate it for each new window. You can override this behavior by right clicking the system tray icon, selecting "Preferences", and going to the "Advanced" tab.

Pinyin Usage

When using ibus-pinyin (or ibus-anthy?), first type the pinyin (sans tones) for the characters you wish to enter. Press Up and Down repeatedly to select a character (going on to the next page if necessary). Press Space to use a character. You can also use PageUp or PageDown to scroll pages, and use the number keys 1-5 to select the character you need. You can enter multiple characters that form a word or phrase at a time (such as "zhongwen" to enter "中文"). ibus-pinyin will remember which characters you type most frequently and over time make suggestions that are more tuned to your typing profile.

Notes on the Above

  • For some reason, you cannot enter text into LibreOffice Writer. The same goes for Kate/Kwrite. I do not know the cause of this. A work-around is to enter text into Gedit (or another "simple" editor like Mousepad). If someone figures it out please post to this page.
  • Obviously, you need to have Chinese fonts installed if you want to enter Chinese characters.
# pacman -S ttf-hannom