Setup

Differences between revisions 4 and 5
Revision 4 as of 2006-04-26 20:10:54
Size: 4358
Editor: 12
Comment: part of Setup Shortcut
Revision 5 as of 2006-04-26 22:02:58
Size: 6284
Editor: 12
Comment: more SCIM Setup
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
  * Defaulted IM engine module(s)(ie, scim-hangul) is installed by language-support-??(ie, language-support-ko).   * Defaulted IM engine module(s)(ie, scim-chewing, scim-pinyin, scim-anthy, or scim-hangul) is installed by language-support-??(ie, language-support-zh, language-support-ja, or language-support-ko) for CJK languages.
Line 29: Line 29:
 * Dapper's method
 * scim-im.org's method : create 75scim file under /etc/X11/Xsession.d/ with following lines {{{
 * Dapper's method : This is automatically set for CJK languages if you choose one of them at installation.
  * scim in Dapper is supported by im-switch. /etc/X11/xinit/xinput.d/scim file looks like {{{
   # im-switch configuration file for scim
   # should be installed as /etc/X11/xinit/xinput.d/scim
   # this configuration uses GTK IM module and Qt IM module provided by SCIM

   # exported enviroment variables
   XMODIFIERS="@im=SCIM"
   GTK_IM_MODULE="scim"
   QT_IM_MODULE="scim"
   # command and arguments to invoke scim
   XIM_PROGRAM="/usr/bin/scim"
   XIM_ARGS="--daemon"
   # package dependency (note that the format used here is not environment
   # variable, but some format for libapt-pkg-perl and is parsed by grep,
   # so can't be quoted, and no spaces allowed)
   DEPENDS=scim-gtk2-immodule,scim-qtimm }}}, and this setup is called by /etc/X11/Xsession.d/90im-switch .

 * scim-im.org's method : create 75scim file under /etc/X11/Xsession.d/ with following lines (''if you have 90im-switch, better to remove it for this setup'') {{{
Line 36: Line 53:
 * user own setup
  * with im-switch installed, type im-switch command in the format of "im-switch [-z <YOUR_LANG>] -s <INPUT_METHOD>" at the terminal prompt so it looks like: {{{
   im-switch -z en_US -s scim-hangul }}} which creates en_US file into ~/.xinput.d/
  * without im-switch installed
    i. system-wide : same as scim-im.org's method
    i. for gnome desktop, create (or add) the following lines to ~/.gnomerc file {{{
 * User own setup (User-B and User-C in below need one of these.)
  * With im-switch installed, type im-switch command in the usage of "im-switch [-z <YOUR_LANG>] -s <INPUT_METHOD>" at the terminal prompt (''do not with root'') so it looks like, for example, : {{{
   im-switch -z en_US -s scim-hangul }}} which creates ~/.xinput.d/en_US link to /etc/X11/xinit/xinput.d/scim .
  * Without im-switch installed (''do one of these upon your situation or preference'')
    i. System-wide : same as scim-im.org's method
    i. Of course, you can create a link to /etc/X11/xinit/xinput.d/scim by hand (''do not with root'') like this {{{
       ln -s /etc/X11/xinit/xinput.d/scim ~/.xinput.d/default }}} or (''use your LANG instead'') {{{
       ln -s /etc/X11/xinit/xinput.d/scim ~/.xinput.d/en_US }}}
    i. For gnome desktop, create (or add) the following lines to ~/.gnomerc file {{{
Line 46: Line 66:
    i. for kde desktop     i. For kde desktop
    i. If you want to use skim under Gnome desktop, your ~/.scim/global file should have "/DefaultConfigModule = kconfig" and "/DefaultPanelProgram = /usr/bin/scim-panel-kde" so it looks like: {{{
     /DefaultConfigModule = kconfig
     /DefaultKeyboardLayout = US_Default
     /DefaultPanelProgram = /usr/bin/scim-panel-kde
     /SupportedUnicodeLocales = en_US.UTF-8 }}}
Line 57: Line 82:
||User-C||follow User-B's case and check supported locale in ~/.scim/global file|| ||User-C||Follow User-B's case and check supported locale in ~/.scim/global file in addition||
Line 60: Line 85:
||User-C||follow User-B's case and check supported locale in ~/.scim/global file|| ||User-C||Follow User-B's case and check supported locale in ~/.scim/global file in addition||
Line 86: Line 111:
 then look at /SupportedUnicodeLocales, if your locale isn't there add it to the line with comma like as {{{  then take a look at /SupportedUnicodeLocales, if your locale isn't there add it to the line with comma like as {{{
Line 91: Line 116:
 * CJK LoCoTeam's Webforum, mailing list, and irc channels found on ["ChineseTeam"], ["JapaneseTeam"], and ["KoreanTeam"] wiki pages.  * CJK LoCoTeam's webforum, mailing list, and irc channels found on ["ChineseTeam"], ["JapaneseTeam"], and ["KoreanTeam"] wiki pages.

 IN PROGRESS

NOTE : This documentation is aimed at helping users under various locales input CJK(Chinese, Japanese and Korean) with SCIM. And, user experiences here are based on Ubuntu 6.06 - Dapper Drake - version.

Dependent Packages

Language

Input Method(s) defaulted

Simplified Chinese (zh_CN)

scim-chewing, scim-pinyin, scim-tables-zh

Traditional Chinese (zh_TW)

scim-chewing, scim-pinyin, scim-tables-zh

Japanese (ja_JP)

scim-anthy

Korean (ko_KR)

scim-hangul

  • scim/skim is default Input Method for Ubuntu/Kubuntu CJK users.
    • scim and scim-gtk2-immodule are installed by ubuntu-desktop.
    • skim and scim-qtimm are installed by kubuntu-desktop.
    • Defaulted IM engine module(s)(ie, scim-chewing, scim-pinyin, scim-anthy, or scim-hangul) is installed by language-support-??(ie, language-support-zh, language-support-ja, or language-support-ko) for CJK languages.
    • im-switch is installed by language-support-??.
  • Additional installation of scim-related packages (This section is based on Dapper Beta version.)
    • For Chinese input :
    • For Japanese input :
    • For Korean input :
      1. scim-tables-ko is not required to install.
      2. scim-qtimm may need to be installed if users want to input Korean with QT/KDE applications under ubuntu-desktop.
      3. Same way, scim-gtk2-immodule (plus scim) may need to be installed for GTK/Gnome applications under kubuntu-desktop.

SCIM Setup

  • The follwings are for GTK/QT_IM_MODULE with scim ((ie, GTK_IM_MODULE=scim), if you prefer to set GT/QT_IM_MODULE with xim, please refer XIM mode below.
  • Dapper's method : This is automatically set for CJK languages if you choose one of them at installation.
    • scim in Dapper is supported by im-switch. /etc/X11/xinit/xinput.d/scim file looks like

         # im-switch configuration file for scim
         # should be installed as /etc/X11/xinit/xinput.d/scim
         # this configuration uses GTK IM module and Qt IM module provided by SCIM
      
         # exported enviroment variables
         XMODIFIERS="@im=SCIM"
         GTK_IM_MODULE="scim"
         QT_IM_MODULE="scim"
         # command and arguments to invoke scim
         XIM_PROGRAM="/usr/bin/scim"
         XIM_ARGS="--daemon"
         # package dependency (note that the format used here is not environment
         # variable, but some format for libapt-pkg-perl and is parsed by grep,
         # so can't be quoted, and no spaces allowed)
         DEPENDS=scim-gtk2-immodule,scim-qtimm 
      , and this setup is called by /etc/X11/Xsession.d/90im-switch .
  • scim-im.org's method : create 75scim file under /etc/X11/Xsession.d/ with following lines (if you have 90im-switch, better to remove it for this setup)

       export XMODIFIERS="@im=SCIM"
       export XIM_PROGRAM="/usr/bin/scim -d"
       export GTK_IM_MODULE=scim
       export QT_IM_MODULE=scim 
  • User own setup (User-B and User-C in below need one of these.)
    • With im-switch installed, type im-switch command in the usage of "im-switch [-z <YOUR_LANG>] -s <INPUT_METHOD>" at the terminal prompt (do not with root) so it looks like, for example, :

         im-switch -z en_US -s scim-hangul 
      which creates ~/.xinput.d/en_US link to /etc/X11/xinit/xinput.d/scim .
    • Without im-switch installed (do one of these upon your situation or preference)

      1. System-wide : same as scim-im.org's method
      2. Of course, you can create a link to /etc/X11/xinit/xinput.d/scim by hand (do not with root) like this

               ln -s /etc/X11/xinit/xinput.d/scim ~/.xinput.d/default 

        or (use your LANG instead)

               ln -s /etc/X11/xinit/xinput.d/scim ~/.xinput.d/en_US 
      3. For gnome desktop, create (or add) the following lines to ~/.gnomerc file

             export XMODIFIERS="@im=SCIM"
             export XIM_PROGRAM=/usr/bin/scim -d
             export GTK_IM_MODULE=scim
             export QT_IM_MODULE=scim 
      4. For kde desktop
      5. If you want to use skim under Gnome desktop, your ~/.scim/global file should have "/DefaultConfigModule = kconfig" and "/DefaultPanelProgram = /usr/bin/scim-panel-kde" so it looks like:

             /DefaultConfigModule = kconfig
             /DefaultKeyboardLayout = US_Default
             /DefaultPanelProgram = /usr/bin/scim-panel-kde
             /SupportedUnicodeLocales = en_US.UTF-8 

Users

  • User-A : Users use one of CJK locales (zh_CN.UTF-8, zh_TW.UTF-8, ja_JP.UTF-8, ko_KR.UTF-8)
  • User-B : Users use en_US.UTF-8
  • User-C : Users use one of other locales than en_US.UTF-8 and CJK locales

Setup Shortcut

Desktop

User

Setup

Ubuntu

User-A

scim should work out of the box

User-B

2

User-C

Follow User-B's case and check supported locale in ~/.scim/global file in addition

Kubuntu

User-A

skim should work out of the box

User-B

2

User-C

Follow User-B's case and check supported locale in ~/.scim/global file in addition

Input Details

  • Trigger keys : Control+space, Shift+space, Zenkaku_Hankaku(on Japanese keyboard), Hangul(on Korean keyboard)
  • (maybe scim/skim's tray icons here)

  • (maybe scim/skim configuration UI screenshot here)

  • Chinese
  • Japanese
  • Korean

XIM mode

Troubleshooting

  • To check scim/skim related packages installed,

     dpkg -l scim* | grep ii 

    and

     dpkg -l skim 
  • To check scim/skim running,

     ps -A | grep scim 

    for ubuntu-desktop and

     ps -A | grep skim 
    for kubuntu-desktop
  • To check scim/skim related env vars,

     env | grep IM_MODULE --> QT_IM_MODULE=scim, GTK_IM_MODULE=scim

    and

     env | grep XIM --> XIM_PROGRAM=/usr/bin/scim -d

    and

     env | grep XMOD  --> XMODIFIERS=@im=SCIM
  • To check supported locale for scim,

     cat ~/.scim/global 
    ,

    then take a look at /SupportedUnicodeLocales, if your locale isn't there add it to the line with comma like as

     /SupportedUnicodeLocales = en_US.UTF-8,en_UK.UTF-8 

Comments

InputMethods/SCIM/Setup (last edited 2009-10-29 23:40:42 by 160)