Uim
From Gentoo Wiki
uim is a multilingual input method library and environment.
Installation
USE flags
USE flags for app-i18n/uim A multilingual input method framework
+anthy
|
Enable support for app-i18n/anthy |
X
|
Add support for X11 |
curl
|
Add support for client-side URL transfer library |
eb
|
Enable support for dev-libs/eb |
emacs
|
Add support for GNU Emacs |
expat
|
Enable the use of dev-libs/expat for XML parsing |
gtk
|
Add support for x11-libs/gtk+ (The GIMP Toolkit) |
gtk2
|
Enable support for x11-libs/gtk+:2 |
libedit
|
Use the libedit library (replacement for readline) |
libffi
|
Enable support for Foreign Function Interface library |
libnotify
|
Enable desktop notification support |
m17n-lib
|
Enable m17n-lib support |
ncurses
|
Add ncurses support (console display library) |
nls
|
Add Native Language Support (using gettext - GNU locale utilities) |
qt5
|
Add support for the Qt 5 application and UI framework |
skk
|
Enable support for app-i18n/skk-jisyo |
sqlite
|
Add support for sqlite - embedded sql database |
ssl
|
Add support for SSL/TLS connections (Secure Socket Layer / Transport Layer Security) |
static-libs
|
Build static versions of dynamic libraries as well |
xft
|
Build with support for XFT font renderer (x11-libs/libXft) |
Emerge
root #
emerge --ask app-i18n/uim
Configuration
Bridge Configuration
X
To use uim as an input method on X, add the following lines to an X startup script:
# Set up environment variables for various applications
export GTK_IM_MODULE=uim # Required for Gtk applications
export QT_IM_MODULE=uim # Required for Qt applications
export XMODIFIERS=@im=uim # Required for X applications without Gtk or Qt
# Start the XIM bridge (required for X applications without Gtk or Qt)
uim-xim &
uim-fep
uim can be used as an input method on a console environment via uim-fep bridge. No configurations are needed, so just run it on the console:
user $
uim-fep
Note
The basic Linux VT cannot display CJK characters. In order to get fully working CJK console environment, a framebuffer terminal such as app-i18n/fbterm is required too.
The basic Linux VT cannot display CJK characters. In order to get fully working CJK console environment, a framebuffer terminal such as app-i18n/fbterm is required too.
uim.el
When uim is emerged with the emacs USE flag, a Emacs package uim.el
is also installed.
;; read uim.el
(require 'uim)
;; uncomment next and comment out previous to load uim.el on-demand
;; (autoload 'uim-mode "uim" nil t)
;; set default IM (ex. use Anthy)
;; (setq uim-default-im-engine "anthy")
;; key-binding for activate uim (ex. C-o)
(global-set-key "\C-o" 'uim-mode)
Preferences
User preferences are defined in two ways:
- via GUI Application (uim-pref-gtk3 or uim-pref-qt5);
- or editing ~/.uim file.
See also
- Input methods
- IBus — an open source input framework for Linux and Unix.
- Fcitx — an input method framework with support for many languages and scripts.