个人工具

“UbuntuHelp:SCIM/Kubuntu”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第2行: 第2行:
 
{{Languages|UbuntuHelp:SCIM/Kubuntu}}
 
{{Languages|UbuntuHelp:SCIM/Kubuntu}}
 
==== This guide is for people who want to install SKIM for Chinese/Japanese/Korean input on Kubuntu. ====
 
==== This guide is for people who want to install SKIM for Chinese/Japanese/Korean input on Kubuntu. ====
 
 
For users wanting to set up Chinese/Japanese/Korean on Ubuntu using SCIM, click [[UbuntuWiki:SCIM|HERE]]
 
For users wanting to set up Chinese/Japanese/Korean on Ubuntu using SCIM, click [[UbuntuWiki:SCIM|HERE]]
 
 
The guide below was created with a view to enabling Chinese input.
 
The guide below was created with a view to enabling Chinese input.
 
 
Substitute any selection for the Chinese language for a language of your choice to enable input for said language. Provided it's supported by SCIM of course.
 
Substitute any selection for the Chinese language for a language of your choice to enable input for said language. Provided it's supported by SCIM of course.
 
 
== Installation and Setup for 6.06 ==
 
== Installation and Setup for 6.06 ==
** Select '''KMenu -> System -> Language Support'''
+
# Select '''KMenu -> System -> Language Support'''
 
https://help.ubuntu.com/community/SCIM/Kubuntu?action=AttachFile&do=get&target=LanguageSelection.png
 
https://help.ubuntu.com/community/SCIM/Kubuntu?action=AttachFile&do=get&target=LanguageSelection.png
 
+
# Select Chinese from the language list, click 'Apply', and allow the package manager Adept to finish downloading the language pack  
** Select Chinese from the language list, click 'Apply', and allow the package manager Adept to finish downloading the language pack  
+
# Close the Adept window when the download is complete
 
+
# Right click the SKIM icon in your taskbar and select '''Configuration -> General SCIM -> "Other" Tab'''
** Close the Adept window when the download is complete
+
 
+
** Right click the SKIM icon in your taskbar and select '''Configuration -> General SCIM -> "Other" Tab'''
+
 
Under the 'Panel Program' dropdown, select 'scim-panel-kde'
 
Under the 'Panel Program' dropdown, select 'scim-panel-kde'
 
Under the 'Config Module' dropdown, select 'kconfig'
 
Under the 'Config Module' dropdown, select 'kconfig'
 
https://help.ubuntu.com/community/SCIM/Kubuntu?action=AttachFile&do=get&target=SKIM_PanelConfig.png
 
https://help.ubuntu.com/community/SCIM/Kubuntu?action=AttachFile&do=get&target=SKIM_PanelConfig.png
 
+
# If your default language coincides with your new input language (e.g. Installed Chinese input for a Chinese desktop), Go onto to ''step 6''.
** If your default language coincides with your new input language (e.g. Installed Chinese input for a Chinese desktop), Go onto to ''step 6''.
+
 
For users utilizing different default and input languages (e.g. Chinese input for an English Desktop).''
 
For users utilizing different default and input languages (e.g. Chinese input for an English Desktop).''
 
Open up Konsole and type:  
 
Open up Konsole and type:  
第28行: 第20行:
 
cp /etc/X11/xinit/xinput.d/scim-pinyin ~/.xinput.d/default
 
cp /etc/X11/xinit/xinput.d/scim-pinyin ~/.xinput.d/default
 
</nowiki></pre>
 
</nowiki></pre>
 
+
# Restart your computer.
** Restart your computer.
+
# Once you are logged in, you should be able to activate SKIM with CTRL-Space or SHIFT-Space within any application that allows keyboard inputs.
 
+
** Once you are logged in, you should be able to activate SKIM with CTRL-Space or SHIFT-Space within any application that allows keyboard inputs.
+
 
+
 
e.g.  
 
e.g.  
i. Start Kate
+
# Start Kate
i. Press CTRL-Space. A SKIM toolbar would have poped up.
+
# Press CTRL-Space. A SKIM toolbar would have poped up.
i. Choose Chinese input -> Smart PinYin on the SKIM toolbar
+
# Choose Chinese input -> Smart PinYin on the SKIM toolbar
i. You can now input Chinese in Kate
+
# You can now input Chinese in Kate
 
https://help.ubuntu.com/community/SCIM/Kubuntu?action=AttachFile&do=get&target=SKIM_UpAndRunning.png
 
https://help.ubuntu.com/community/SCIM/Kubuntu?action=AttachFile&do=get&target=SKIM_UpAndRunning.png
 
 
To switch back to the default language of your desktop, press the shortcut key in (ii), which is used to toggle between the desktop default language and the input method set up in (iii).
 
To switch back to the default language of your desktop, press the shortcut key in (ii), which is used to toggle between the desktop default language and the input method set up in (iii).
 
 
If you encountered any problems during the installation, check the [[ProblemsSection Problems Section]] for possible solutions.
 
If you encountered any problems during the installation, check the [[ProblemsSection Problems Section]] for possible solutions.
 
 
=== For 6.10 and 7.04 users: ===
 
=== For 6.10 and 7.04 users: ===
 
 
You have to tell the system you want to use SCIM as the input method for your locale.
 
You have to tell the system you want to use SCIM as the input method for your locale.
 
+
To find out which locale you are using open up Konsole and type:
**    To find out which locale you are using open up Konsole and type:
+
 
<pre><nowiki>
 
<pre><nowiki>
 
locale | grep LANG= </nowiki></pre>
 
locale | grep LANG= </nowiki></pre>
第54行: 第38行:
 
<pre><nowiki>
 
<pre><nowiki>
 
LANG=de_DE.UTF-8 </nowiki></pre>
 
LANG=de_DE.UTF-8 </nowiki></pre>
 
+
Now open up Konsole and type:  
**    Now open up Konsole and type:  
+
 
<pre><nowiki>
 
<pre><nowiki>
 
im-switch -z de_DE.UTF-8 -s scim </nowiki></pre>
 
im-switch -z de_DE.UTF-8 -s scim </nowiki></pre>
 
Replace "de_DE.UTF-8" with what you got from your first command.
 
Replace "de_DE.UTF-8" with what you got from your first command.
 
 
[[Anchor(ProblemsSection)]]
 
[[Anchor(ProblemsSection)]]
 
== Problems Section ==
 
== Problems Section ==
 
 
==== PROBLEM ====
 
==== PROBLEM ====
 
 
Some of the Chinese characters that I'm entering show up as big black dots!
 
Some of the Chinese characters that I'm entering show up as big black dots!
 
https://help.ubuntu.com/community/SCIM/Kubuntu?action=AttachFile&do=get&target=Problem_BlackDotChar.png
 
https://help.ubuntu.com/community/SCIM/Kubuntu?action=AttachFile&do=get&target=Problem_BlackDotChar.png
 
 
<u> SOLUTION </u>
 
<u> SOLUTION </u>
 
 
Chances are whatever application you are using isn't set to a font which can handle the full set of Chinese characters. Kate for example defaults to the 'DejaVu Sans', which though can handle a large number of Chinese characters, doesn't actually support the full set.  
 
Chances are whatever application you are using isn't set to a font which can handle the full set of Chinese characters. Kate for example defaults to the 'DejaVu Sans', which though can handle a large number of Chinese characters, doesn't actually support the full set.  
 
 
Switch to something like 'AR PL ShanHeiSun Uni' which by default comes with Kubuntu (to do this go: '''Settings Menu -> Configure Kate -> Fonts & Colors -> Fonts tab). '''
 
Switch to something like 'AR PL ShanHeiSun Uni' which by default comes with Kubuntu (to do this go: '''Settings Menu -> Configure Kate -> Fonts & Colors -> Fonts tab). '''
 
 
Also, the entire KDE desktop font can be changed from:
 
Also, the entire KDE desktop font can be changed from:
 
'''KMenu -> System Settings -> Appearance -> Fonts'''
 
'''KMenu -> System Settings -> Appearance -> Fonts'''
 
 
However, different applications have different ways of setting the fonts, so don't hesitate to do some exploring if you encounter this problem in a new application.
 
However, different applications have different ways of setting the fonts, so don't hesitate to do some exploring if you encounter this problem in a new application.
 
 
 
 
==== PROBLEM ====
 
==== PROBLEM ====
 
 
I get a
 
I get a
 
 
''Could not read network connection list.''
 
''Could not read network connection list.''
 
 
''/home/<username>/DCOPserver_mini-desktop_ _0''
 
''/home/<username>/DCOPserver_mini-desktop_ _0''
 
 
error everytime KDE starts up
 
error everytime KDE starts up
 
(where <username> is the name you login with).
 
(where <username> is the name you login with).
 
NB: There aren't actually any spaces between the underscores.
 
NB: There aren't actually any spaces between the underscores.
 
 
<u> SOLUTION </u>
 
<u> SOLUTION </u>
 
 
See if the problem is fixed by reboots, if not you can try delaying the sequence that im-switch loads in:
 
See if the problem is fixed by reboots, if not you can try delaying the sequence that im-switch loads in:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
cd /etc/X11/Xsession.d/
 
cd /etc/X11/Xsession.d/

2007年11月30日 (五) 21:24的版本

This guide is for people who want to install SKIM for Chinese/Japanese/Korean input on Kubuntu.

For users wanting to set up Chinese/Japanese/Korean on Ubuntu using SCIM, click HERE The guide below was created with a view to enabling Chinese input. Substitute any selection for the Chinese language for a language of your choice to enable input for said language. Provided it's supported by SCIM of course.

Installation and Setup for 6.06

  1. Select KMenu -> System -> Language Support

Kubuntu?action=AttachFile&do=get&target=LanguageSelection.png

  1. Select Chinese from the language list, click 'Apply', and allow the package manager Adept to finish downloading the language pack
  2. Close the Adept window when the download is complete
  3. Right click the SKIM icon in your taskbar and select Configuration -> General SCIM -> "Other" Tab

Under the 'Panel Program' dropdown, select 'scim-panel-kde' Under the 'Config Module' dropdown, select 'kconfig' Kubuntu?action=AttachFile&do=get&target=SKIM_PanelConfig.png

  1. If your default language coincides with your new input language (e.g. Installed Chinese input for a Chinese desktop), Go onto to step 6.

For users utilizing different default and input languages (e.g. Chinese input for an English Desktop). Open up Konsole and type:

cp /etc/X11/xinit/xinput.d/scim-pinyin ~/.xinput.d/default
  1. Restart your computer.
  2. Once you are logged in, you should be able to activate SKIM with CTRL-Space or SHIFT-Space within any application that allows keyboard inputs.

e.g.

  1. Start Kate
  2. Press CTRL-Space. A SKIM toolbar would have poped up.
  3. Choose Chinese input -> Smart PinYin on the SKIM toolbar
  4. You can now input Chinese in Kate

Kubuntu?action=AttachFile&do=get&target=SKIM_UpAndRunning.png To switch back to the default language of your desktop, press the shortcut key in (ii), which is used to toggle between the desktop default language and the input method set up in (iii). If you encountered any problems during the installation, check the ProblemsSection Problems Section for possible solutions.

For 6.10 and 7.04 users:

You have to tell the system you want to use SCIM as the input method for your locale.

  1. To find out which locale you are using open up Konsole and type:
locale | grep LANG= 

you will get something like

LANG=de_DE.UTF-8 
  1. Now open up Konsole and type:
im-switch -z de_DE.UTF-8 -s scim 

Replace "de_DE.UTF-8" with what you got from your first command. Anchor(ProblemsSection)

Problems Section

PROBLEM

Some of the Chinese characters that I'm entering show up as big black dots! Kubuntu?action=AttachFile&do=get&target=Problem_BlackDotChar.png SOLUTION Chances are whatever application you are using isn't set to a font which can handle the full set of Chinese characters. Kate for example defaults to the 'DejaVu Sans', which though can handle a large number of Chinese characters, doesn't actually support the full set. Switch to something like 'AR PL ShanHeiSun Uni' which by default comes with Kubuntu (to do this go: Settings Menu -> Configure Kate -> Fonts & Colors -> Fonts tab). Also, the entire KDE desktop font can be changed from: KMenu -> System Settings -> Appearance -> Fonts However, different applications have different ways of setting the fonts, so don't hesitate to do some exploring if you encounter this problem in a new application.

PROBLEM

I get a Could not read network connection list. /home/<username>/DCOPserver_mini-desktop_ _0 error everytime KDE starts up (where <username> is the name you login with). NB: There aren't actually any spaces between the underscores. SOLUTION See if the problem is fixed by reboots, if not you can try delaying the sequence that im-switch loads in:

cd /etc/X11/Xsession.d/
sudo mv 90im-switch 98im-switch