Commit 55cade99 authored by Tails developers's avatar Tails developers

Merge remote-tracking branch 'winterfairy/bugfix/ibus' into devel

parents bd354cea 2f381501
#!/bin/sh
# Start the IBus input method and configure it with
# sensible settings for use in Tails.
# The input method will be configured so it is usable
# no matter what locale the user login with, but with
# correct default engine for those locales that need it.
# Deside order in which input methods are preferred
# (chinese needs pinyin, japanese needs anthy, korean needs hangul)
# (bopomofo is an alternative input method for chinese)
LANGPREFIX=`echo "$LANG" | sed 's/_.*//'`
case "$LANGPREFIX" in
ja)
PREFLIST='[anthy,pinyin,hangul,bopomofo]'
;;
ko)
PREFLIST='[hangul,pinyin,anthy,bopomofo]'
;;
*)
PREFLIST='[pinyin,anthy,hangul,bopomofo]'
esac
# Configure enabled input methods and their preferred order
gconftool-2 --type=list --list-type=string --set \
/desktop/ibus/general/preload_engines "$PREFLIST"
# Start the IBus input method daemon
/usr/bin/ibus-daemon --daemonize --xim
# Export environment variables to enable use of IBus
export GTK_IM_MODULE='ibus'
export QT_IM_MODULE='ibus'
export XMODIFIERS='@im=ibus'
......@@ -236,16 +236,23 @@ xserver-xorg-video-geode
#endif
xserver-xorg-video-all
### Input methods
ibus-gtk
ibus-qt4
## Chinese
ibus-pinyin
## Japanese
ibus-anthy
## Korean
ibus-hangul
### l10n, i18n
## precompiled locales
locales-all
## arabic fonts
ttf-kacst
ttf-farsiweb
## chinese fonts and input systems
scim-pinyin
scim-tables-zh
scim-uim
## chinese fonts
xfonts-intl-chinese
ttf-arphic-ukai
ttf-arphic-uming
......@@ -255,14 +262,10 @@ culmus
libfribidi0
## indic fonts
ttf-indic-fonts
## Japanese input systems
scim-anthy
## Khmer language, used in Cambodia
ttf-khmeros
## Korean fonts
ttf-unfonts-core
## Korean input systems
scim-hangul
## Lao fonts
ttf-lao
## russian fonts
......
......@@ -748,6 +748,22 @@ are installed. Spell checking software and data is installed for the
set of best supported languages; it is usable at least is Iceweasel,
OpenOffice.org and gedit.
### 3.3.1 Input methods
Tails ships with IBus and a few engines (Anthy for Japanese, Pinyin
and Bopomofo for Chinese, and Hangul for Korean).
A login script configures and enables IBus for all locales: it must be
started at login time to be fully usable (environment variables must
be set up); also, one may want to work on documents written in
Chinese, Japanese or Korean even when selecting English as their
preferred language.
When a Japanese, Chinese or Korean locale is selected, this login
script also selects the right default input method.
- [[!tails_gitweb config/chroot_local-includes/etc/X11/Xsession.d/80im-starter]]
## 3.4 Notification of security issues and new Tails release
Shipped in Tails is a script that checks at each desktop start if
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment