特殊:Badtitle/NS100:SCIM
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/SCIM }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/af | • {{#if: UbuntuHelp:SCIM|Afrikaans| [[::SCIM/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/ar | • {{#if: UbuntuHelp:SCIM|العربية| [[::SCIM/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/az | • {{#if: UbuntuHelp:SCIM|azərbaycanca| [[::SCIM/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/bcc | • {{#if: UbuntuHelp:SCIM|جهلسری بلوچی| [[::SCIM/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/bg | • {{#if: UbuntuHelp:SCIM|български| [[::SCIM/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/br | • {{#if: UbuntuHelp:SCIM|brezhoneg| [[::SCIM/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/ca | • {{#if: UbuntuHelp:SCIM|català| [[::SCIM/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/cs | • {{#if: UbuntuHelp:SCIM|čeština| [[::SCIM/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/de | • {{#if: UbuntuHelp:SCIM|Deutsch| [[::SCIM/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/el | • {{#if: UbuntuHelp:SCIM|Ελληνικά| [[::SCIM/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/es | • {{#if: UbuntuHelp:SCIM|español| [[::SCIM/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/fa | • {{#if: UbuntuHelp:SCIM|فارسی| [[::SCIM/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/fi | • {{#if: UbuntuHelp:SCIM|suomi| [[::SCIM/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/fr | • {{#if: UbuntuHelp:SCIM|français| [[::SCIM/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/gu | • {{#if: UbuntuHelp:SCIM|ગુજરાતી| [[::SCIM/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/he | • {{#if: UbuntuHelp:SCIM|עברית| [[::SCIM/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/hu | • {{#if: UbuntuHelp:SCIM|magyar| [[::SCIM/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/id | • {{#if: UbuntuHelp:SCIM|Bahasa Indonesia| [[::SCIM/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/it | • {{#if: UbuntuHelp:SCIM|italiano| [[::SCIM/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/ja | • {{#if: UbuntuHelp:SCIM|日本語| [[::SCIM/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/ko | • {{#if: UbuntuHelp:SCIM|한국어| [[::SCIM/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/ksh | • {{#if: UbuntuHelp:SCIM|Ripoarisch| [[::SCIM/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/mr | • {{#if: UbuntuHelp:SCIM|मराठी| [[::SCIM/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/ms | • {{#if: UbuntuHelp:SCIM|Bahasa Melayu| [[::SCIM/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/nl | • {{#if: UbuntuHelp:SCIM|Nederlands| [[::SCIM/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/no | • {{#if: UbuntuHelp:SCIM|norsk| [[::SCIM/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/oc | • {{#if: UbuntuHelp:SCIM|occitan| [[::SCIM/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/pl | • {{#if: UbuntuHelp:SCIM|polski| [[::SCIM/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/pt | • {{#if: UbuntuHelp:SCIM|português| [[::SCIM/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/ro | • {{#if: UbuntuHelp:SCIM|română| [[::SCIM/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/ru | • {{#if: UbuntuHelp:SCIM|русский| [[::SCIM/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/si | • {{#if: UbuntuHelp:SCIM|සිංහල| [[::SCIM/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/sq | • {{#if: UbuntuHelp:SCIM|shqip| [[::SCIM/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/sr | • {{#if: UbuntuHelp:SCIM|српски / srpski| [[::SCIM/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/sv | • {{#if: UbuntuHelp:SCIM|svenska| [[::SCIM/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/th | • {{#if: UbuntuHelp:SCIM|ไทย| [[::SCIM/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/tr | • {{#if: UbuntuHelp:SCIM|Türkçe| [[::SCIM/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/vi | • {{#if: UbuntuHelp:SCIM|Tiếng Việt| [[::SCIM/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/yue | • {{#if: UbuntuHelp:SCIM|粵語| [[::SCIM/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/zh | • {{#if: UbuntuHelp:SCIM|中文| [[::SCIM/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/zh-hans | • {{#if: UbuntuHelp:SCIM|中文(简体)| [[::SCIM/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SCIM | UbuntuHelp:SCIM | {{#if: | :}}SCIM}}/zh-hant | • {{#if: UbuntuHelp:SCIM|中文(繁體)| [[::SCIM/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:SCIM|:SCIM|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :SCIM/zh | | {{#ifexist: SCIM/zh | | {{#ifeq: {{#titleparts:SCIM|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:SCIM|1|-1|}} | zh | | }}
IN PROGRESS - reviews and corrections welcome, feel free to email me to discuss it. Please test the suggestions on a fresh Dapper install, and report any problems you find.
This page is an attempt to become an easy and simple official method to help any user set up SCIM in Dapper. For further explanations, please go to https://wiki.ubuntu.com/InputMethods/SCIM/Setup
For Kubuntu, see UbuntuHelp:Kubuntu
To install im-ja, an alternative Japanese input method, please see UbuntuHelp:ImJa.
Quick setup
SCIM is the name of the program that will allow you to input a CJK language in Ubuntu 6.06 Dapper Drake.
- Open system System>Administration>Language SupportFootNote(You'll need administrative rights for these kind of tasks, else ask your system administrator to install it for you.):
- 2 and install the support package corresponding to the language you want to inputFootNote(You'll need an Internet connection because these packages don't fit on the Install CD.):
- 3 then log out (System>Quit>Log Out), and login again.
If your session is using a CJK language (for example, all you menus are in Chinese, Japanese or Korean) you should be able to input it in any application (go to Using Using SCIM to learn how to do it).
Additional configuration if you're not using a CJK session
Note : You should already be able to use SCIM input in a few applications, like gedit (Application>Accessories>Text Editor), by right clicking on the document, then selecting Input Methods>SCIM Input Method. However, it won't work in the others, like Open Office.
The recommended method to set up SCIM input for all applications is using a command-line tool called im-switch (where im stands for Input Method, obviously :) ). Before that, you will have to know the name of the locale you're using. In a terminal (Applications>Accessories>Terminal) type :
locale | grep LANG=
The anwer would be something like
LANG=en_GB.UTF-8
where the relevant part is en_GB
(en
standing for English and GB
for the country, here Great Britain). Another example could be fr_FR
(fr
for French and FR
for France).
Now you just have to install an additional package called 模板:Scim-qtimm and tell the system you want to use SCIM as the input method for your locale, using
im-switch -z “your locale” -s scim
In the above example, with an en_GB locale, you would type in the terminal :
sudo apt-get install scim-qtimm im-switch -z en_GB -s scim
Log out, then log in again. SCIM should be now the default input for all applications (go to Using Using SCIM to learn how to use it)
Note for Xubuntu users : On Xubuntu, the system will ask you first to install the package libapt-pkg-perl. Install it from Synaptic (see above) or by the command line :
sudo apt-get install libapt-pkg-perl
Then you'll be ready to use im-switch (see just above). In Xubuntu, you will also have to apply the following instructions :
In case all of this doesn't work
You might have to add your locale as a supported locale, by editing (you might have to create it) the file ~/.scim/global (the ~ means it's in your home directory, the . that .scim directory is a hidden file. Just type in a terminal :
gedit ~/.scim/global
If you can find a line like
/SupportedUnicodeLocales = en_US.UTF-8
add your locale to it after a coma, not forgetting you need to add the full name reported by locale | grep LANG=
after LANG=
. In case of English for Great Britain, your line would look like this one :
/SupportedUnicodeLocales = en_US.UTF-8,en_GB.UTF-8
If the line wasn't there, create it, then save the file.
Log out, then log in and you should be able to use SCIM input in every application.
Binary Incompatibilities with Some Apps
Note: On Edgy (and possibly under Dapper, not tested), after making these changes, some applications (such as OpenOffice) may fail to start, or may appear to start and then simply die. If you encounter this issue, try using the "scim_xim" option for im-switch instead of "scim", for example:
im-switch -z en_GB -s scim_xim
Using SCIM
SCIM should now start along with every application. To trigger it, use any of these shortcut keys : Control+space, Shift+space, Zenkaku_Hankaku(on Japanese keyboard), Hangul(on Korean keyboard)
While inputting, if you want to switch back and forth between your CJK language and your session language, you can just use the shortcut key. Fast and easy!
Note: If you find that the shortcut key has stopped working, check your Caps Lock status. The shortcut key for SCIM will not work if Caps Lock is turned on (this is arguably a bug).
Reverting changes
There are several ways to revert the changes performed above:
- Use
im-switch
to set the input method for your locale to "default", for example:
im-switch -z en_GB -s default
- Remove the file in your
~/.xinput.d
directory corresponding to the appropriate locale:
rm ~/.xinput.d/en_GB
- Remove the SCIM package from your system (this should not be needed, and isn't the cleanest method, but should do the job if nothing else does):
apt-get remove scim