Install and configure ibus
input method
Article directory
IBus
(" Intelligent Input Bus
") is an input method framework , a system for entering non-English characters.
IBus
Functions similarly to SCIM
and Uim
.
Install:
Use the software installation management tool that comes with the system to install ibus
the software package.
Red Hat
// And its derivative systems are installed usingCentOS
the / software installation management tool .Fedora
yum
dnf
ibus
Debian
and its derivative systemsapt
are installed using software installation management toolsibus
.
ArchLinux
and its derivative systemspacman
are installed using software installation management toolsibus
.……
input method engine
At least one input method is required for the language being used.
Available input methods include:
Chinese engine
ibus-pinyin
: An intelligent Chinese voice input method engine that supports Chinese pinyin and phonetic symbols. The designer isIbus
the main author of and has many advanced features (such as English spelling correction).ibus-libpinyin
: A powerful intelligent Chinese voice input engine, based onlibpinyin
, providesibus-pinyin
more powerful functions than , supports dynamic adjustment of word frequency, cloud input, and can add user dictionaries.ibus-rime
: A powerful intelligent Chinese input method that supports Pinyin, Zhuyin or Pinyin without tones, Shuangpin, Cantonese Pinyin, Zhongzhouyun, Cangjie and Wubi86
.ibus-chewing
: An intelligent Chinese voice input method engine that supports phonetic symbols and is based onlibchewing
.
Japanese engine
ibus-anthy
: Japanese input method engine, based onanthy
.ibus-mozc
: An open source version of Google Japanese Input Method, based onMozc
.ibus-kkc
: Japanese input method engine, based onlibkkc
.ibus-skk
: Japanese kana to kanji input method engine, based onlibskk
.
Vietnamese engine
ibus-unikey
: Input method engine for inputting Vietnamese characters. (Development has stopped)
other engines
ibus-hangul
: A Korean input method, based onlibhangul
.ibus-table
: An input method engine that supports lookup-type input method.ibus-m17n
: Anm17n
input method engine that canm17n-db
input many languages using input methods from a database.
Initial installation
After the input method engine is installed, run ibus-setup
the initial program of (when Ibus
the user wants to use ):
$ ibus-setup
The background program will be started and this message will be given:
IBus has been started! If you cannot use IBus, please add below lines in $HOME/.bashrc, and relogin your desktop.
(译:IBus 已启动!若还不能用 Ibus,请您将以下的三行代码加到 $HOME/.bashrc,再重新登录。)
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
Notice:
Although
Ibus
a daemon is used, it is notsystemd
a managed daemon:Ordinary users can also run it, and it will start automatically when logging in.
Notice:
If it
ibus
has not been started yet,①
export
Copy those " " codes to$HOME/.xprofile
,② Add this line of code to the file: "
ibus-daemon -drx
"③ Log in again.
After that, you will see ibus
the settings.
Ibus
Ibus
This screen can be accessed at any time while running by right-clicking on the icon in the system tray and selecting " Preferences
" (Options).
Configuration
Notice:
If you want to input Chinese, Japanese, Korean, and Vietnamese characters, you need to install East Asian fonts .
① The default " General
" (General) setting should be available, but it is best to click " Input Methods
" (Input Method), select the input method in the drop-down list box, and click " Add
" (Add).
②After Ibus
configuration, you can press Ctrl+Space
to use (press multiple times to switch between installed languages).
③ In each window, Ibus
the input method used will be remembered, so each newly opened window needs to be restarted.
④ You can replace this feature by right-clicking on the system tray icon, selecting " Preferences
" (Preferences), and then clicking the " Advanced
" (Advanced) tab.
Notice:
IBus
Default overridesXmodmap
the settings of .This feature can be disabled,
references
Click " " (Advanced
Advanced) in " " (Preferences),Check the "
Use system keyboard layout
" option.
Troubleshooting
1. Unable to input
If it still cannot be used after configuring according to the above steps, you can use the following steps to further set up:
① Please make sure you have installed ibus
, ibus-clutter
, ibus-gtk
, ibus-qt
and im-config
, or similar software.
② Use im-config -s ibus
the command to start the ibus framework ,
③ Enter ibus-setup
the command to start ibus
the setting,
④ Restart to repair
hint:
For
ibus-rime
input method,Please ensure that the input scheme of this input method has been installed.
rime
The input scheme is as follows:① #晙月PINYin (pre-installed):
librime-data-luna-pinyin
② # Double Pin:
librime-data-double-pinyin
③ # Gong Bao Pinyin:
librime-data-combo-pinyin
④ # Zhuyin, Earth Pinyin:
librime-data-terra-pinyin
&librime-data-bopomofo
⑤ # Cangjie fifth generation (pre-installed):
librime-data-cangjie5
⑥ # Quick Five Generations:
librime-data-quick5
⑦ # Wubi 86, pocket simplified pinyin, five-stroke painting:
librime-data-wubi
&librime-data-pinyin-simp
&librime-data-stroke-simp
⑧ #
IPA
(X-SAMPA
):librime-data-ipa-xsampa
⑨ # Shanghai Wuyu:
librime-data-wugniu
⑩ #粤片:
librime-data-jyutping
⑪ # Medieval Chinese Pinyin:
librime-data-zyenpheng
2、rxvt-unicode
If you have issues ibus
with rxvt-unicode
the package, the following steps should resolve it.
① Add the following two lines of code to ~/.Xresources
the file:
(It may not be necessary, try it first, and then add code if problems occur)
URxvt.inputMethod: ibus
URxvt.preeditType: OnTheSpot,None
② Start with the following command Ibus
:
ibus-daemon --xim
If is ibus-daemon
turned on automatically (as in ~/.xinitrc
or ~/.xsession
),
But the previously executed option ibus-daemon &
was useless --xim
,
Make sure to end open processes first,
Try the new command again.
3. GTK
Application
When users GTK
use the input method under the application, gtk.immodules
problems may occur because the file cannot be found.
Add to $HOME/.bashrc
:
(gtk2) export GTK_IM_MODULE_FILE=/etc/gtk-2.0/gtk.immodules
(gtk3) export GTK_IM_MODULE_FILE=/usr/lib/gtk-3.0/3.0.0/immodules.cache
That should solve the problem.
Notice:
If set to
gtk2
, thengtk3
applications that cannot be used such asgedit
,If set to
gtk3
,gtk2
applications such asxfce
.
4. Chinese input
If you encounter problems entering Chinese, check locale
the settings.
For example, in Hong Kong, export LANG=zh_HK.utf8
.
If you want to start it ibus
randomly gnome
, add these ~/.profile
and restart gnome
.
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
ibus-daemon -drx
More detailed solutions can be found here .
5、LibreOffice
If IBus
has indeed been started, but LibreOffice
no input window appears in ,
① You need to ~/.bashrc
add this line to:
export XMODIFIERS=@im=ibus
② You need to use the " --xim -d
" parameter to start ibus
, so ~/.xinitrc
add this line to:
ibus-daemon --xim -d
However, it must be started in the terminal LibreOffice
.
If you use KDE
and the above method doesn't work, and you don't mind GTK2
running in mode LibreOffice
,
① Install " libreoffice-gnome
"
② ~/.xprofile
Add this line in :
export OOO_FORCE_DESKTOP="gnome"
This will enable normal use IBus
in LibreOffice
, and can be launched from anywhere LibreOffice
– not just in the terminal.
6. Modify the font and size of the Gnome-shell
Medium candidate boxibus
There is quite a bit of criticism about the fact that the candidate word fonts and font sizes of the input method Gnome-shell
cannot be set independently .ibus
Below, a modification method is introduced.
① A Gnome-Shell
theme needs to be installed and activated.
② The theme gnome-shell.css
files need to be modified.
This file is usually in the directory /usr/share/themes/主题名/gnome-shell/
.
③ Open with your favorite editor,
Search .candidate-popup-content
field (create a new one if it does not exist):
.candidate-popup-content {
}
④ Add the following two lines as needed (it should look like the box below after adding). Through this setting, you can change the font and size of the entered letters:
.candidate-popup-content {
/* 设置字体 */
font-family: "Microsoft YaHei UI", serif,cantarell,sans-serif;
/* 设置号 */
font-size: 15px;
}
If you need to modify the font and size of the candidate box, you need to search for .candidate-box
the field (create a new one if there is one):
.candidate-box {
}
⑤ Add the following two lines as needed (it should look like the box below after adding). Through this setting, you can change the font and size of the entered letters:
.candidate-box {
/* 设置字体 */
font-family: "Microsoft YaHei UI", serif,cantarell,sans-serif;
/* 设置号 */
font-size: 15px;
}
7. Turn on single line mode
If ibus-libpinyin
using
You can turn on single-line mode by selecting "Compact" under "Appearance" - "Display Style" in its settings interface.
Notice:
ibus-libpinyin
Displayed as "Chinese (Intelligent Pinyin)" in the input source and system tray.