个人工具

“UbuntuHelp:JapaneseInput”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/JapaneseInput}} {{Languages|UbuntuHelp:JapaneseInput}} '''Works well on Dapper too.''' This method uses uim and its anthy plugin. == Installing ...)
 
 
(未显示同一用户的5个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/JapaneseInput}}
 
{{From|https://help.ubuntu.com/community/JapaneseInput}}
 
{{Languages|UbuntuHelp:JapaneseInput}}
 
{{Languages|UbuntuHelp:JapaneseInput}}
'''Works well on Dapper too.'''
+
== Japanese Input ==
 
+
This article provides information on installing Japanese input method using 2 alternatives.
This method uses uim and its anthy plugin.
+
=== SCIM or UIM? ===
 
+
Many people are confused as to whether they should be using SCIM or UIM for extended character input. Both offer an effective way of typing Japanese characters into Ubuntu. Both can use 'Anthy' which is the system of converting western keystrokes into Japanese characters. SCIM is currently the default system and for many people is quite suitable. Many other distributions of linux use SCIM and therefore some people might be quite used to it. UIM on the other hand is also quite popular and many people who have had compatibility issues with SCIM choose to use UIM. In the past there have been issues with both input methods, though today they are both reasonably stable and most of the compatibility problems ironed out. If you are using KDE, you will need to use SKIM which is a wrapper for SCIM.
== Installing the packages ==
+
For information on how to install a Japanese input setup with SCIM, please click here:
 
+
[[UbuntuHelp:Japanese_Input_and_Fonts_in_Ubuntu_7.04|Ubuntu|7.04]]
Either use the Synaptic Package Manager (''System> Administration'' menu) to install the following packages or type the lines in a terminal:
+
[[UbuntuHelp:Japanese_Input_and_Fonts_in_Ubuntu_7_10_using_SCIM|Ubuntu|7.10]]
 
+
[[UbuntuHelp:Japanese_Input_and_Fonts_in_Ubuntu_8.04_using_SCIM|Ubuntu|8.04]]
<pre><nowiki>
+
[[UbuntuHelp:Japanese_Input_and_Fonts_in_Ubuntu_8.10_using_SCIM|Ubuntu|8.10]]
sudo apt-get install uim-applet-gnome uim-xim uim-anthy uim-gtk2.0
+
For information on how to install a Japanese input setup with UIM, please click here:
</nowiki></pre>
+
[[UbuntuHelp:Japanese_Input_and_Fonts_in_Ubuntu_7_10|Ubuntu|7.10]]
 
+
For information on how to install a Japanese input setup with SKIM in KDE, please click here:
Normally, all the necessary dependencies should be pulled by the package manager, including the ''im-switch'' utility.
+
[[UbuntuHelp:Japanese_Input_and_Fonts_in_Kubuntu_8.10_using_SKIM|Kubuntu|8.10]]
 
+
----
'''Note''': you need to have the UniversePackages repository configured.
+
 
+
At this point, the system is ready to input japanese if you log in a Japanese session. If you don't want to be able to input Japanese in other language sessions, you can skip the next section and directly go to the ''using the uim applet '' section.
+
 
+
== Setting the input method ==
+
 
+
But if you want to type in Japanese from an other language session (this is quite the usual case), you can use the ''im-switch'' utility to set the input method for only your account or all the users.
+
 
+
In a terminal, type the following:
+
 
+
<pre><nowiki>
+
im-switch -s uim_anthy
+
</nowiki></pre>
+
 
+
'''Note''':
+
This will not work in edgy or above, because the uim_anthy script is missing due to a [https://launchpad.net/ubuntu/+source/uim/+bug/70484 packaging bug].
+
To work around, download the [http://packages.ubuntu.com/dapper/libs/uim-anthy dapper-package] and then type the following in a terminal in the directiory where you saved the package:
+
<pre><nowiki>
+
dpkg -x uim-anthy_1.0.0-1ubuntu1_i386.deb uim-package
+
sudo cp uim-package/etc/X11/xinit/xinput.d/uim_anthy /etc/X11/xinit/xinput.d/uim_anthy
+
</nowiki></pre>
+
 
+
It will set the default input method for your user account and you current language, but you can set it for a given language session. For example, you could use:
+
 
+
<pre><nowiki>
+
im-switch -z fr_FR -s uim_anthy
+
</nowiki></pre>
+
 
+
to associate the uim-anthy input method to the French session of your account.
+
 
+
uim allows you to type traditionally, so you can also launch ''im-switch'' as administrator to set the default input method for all the users without any side effect:
+
 
+
<pre><nowiki>
+
sudo im-switch -s uim_anthy
+
</nowiki></pre>
+
 
+
Note that user settings prevail over the system ones, so a user you can always override the default input method.
+
 
+
== Using the uim applet and testing ==
+
 
+
Now you can just log out and log back into the desktop and add the applet named ''Uim applet'' on one of your panels (Right click on the panel> Add to panel...).
+
 
+
To try out inputting Japanese, launch the '''Gedit text editor'''. At this point, the selected GTK input method should be uim. You can check that right-clicking on the text component and just hovering over the ''Input Methods'' item to check uim is selected. If it's not, you can always set it from there.
+
 
+
Type something - it should be ordinary roman text. Press Shift-Space, however, and type "watashi". It should come out as Hiragana "わたし" (it is Japanese for "I"). If you have the panel applet in the panel, it should change to reflect that you are typing Hiragana. Press Return to "fix" the word, or press Space to convert it to a Kanji (you want "私"). If you got the wrong Kanji, press Space again to get a selection to choose from. Once you've got the right one, press Return. To type ordinary roman text again, just press Shift-Space once more.
+
 
+
Notice how the applet display change when you switch of input type.
+
You're typing Japanese!
+
 
+
== What's next? ==
+
 
+
Now you can check the settings in the applet to find out more about the different keys you can type to have more control over the input.
+
 
+
I suggest to also try the new '''Language selector''' tool (''System> Administration'' menu) to add the writing aids for the Japanese such as the dictionary.
+
 
+
[[category:CategoryDocumentation]] [[category:CategoryCleanup]]
+
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2009年5月12日 (二) 17:35的最新版本

Japanese Input

This article provides information on installing Japanese input method using 2 alternatives.

SCIM or UIM?

Many people are confused as to whether they should be using SCIM or UIM for extended character input. Both offer an effective way of typing Japanese characters into Ubuntu. Both can use 'Anthy' which is the system of converting western keystrokes into Japanese characters. SCIM is currently the default system and for many people is quite suitable. Many other distributions of linux use SCIM and therefore some people might be quite used to it. UIM on the other hand is also quite popular and many people who have had compatibility issues with SCIM choose to use UIM. In the past there have been issues with both input methods, though today they are both reasonably stable and most of the compatibility problems ironed out. If you are using KDE, you will need to use SKIM which is a wrapper for SCIM. For information on how to install a Japanese input setup with SCIM, please click here: Ubuntu|7.04 Ubuntu|7.10 Ubuntu|8.04 Ubuntu|8.10 For information on how to install a Japanese input setup with UIM, please click here: Ubuntu|7.10 For information on how to install a Japanese input setup with SKIM in KDE, please click here: Kubuntu|8.10