个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/JapaneseInput}}
 
{{From|https://help.ubuntu.com/community/JapaneseInput}}
 
{{Languages|UbuntuHelp:JapaneseInput}}
 
{{Languages|UbuntuHelp:JapaneseInput}}
 
 
This method uses uim and its anthy plugin.  It assumes you want to type Japanese from an English session, not as a Japanese user.
 
This method uses uim and its anthy plugin.  It assumes you want to type Japanese from an English session, not as a Japanese user.
 
 
== Installing the packages ==
 
== Installing the packages ==
 
 
Either use the Synaptic Package Manager (''System> Administration'' menu) to install the following packages or type the lines in a terminal:
 
Either use the Synaptic Package Manager (''System> Administration'' menu) to install the following packages or type the lines in a terminal:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install uim-applet-gnome uim-xim uim-anthy uim-gtk2.0
 
sudo apt-get install uim-applet-gnome uim-xim uim-anthy uim-gtk2.0
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Normally, all the necessary dependencies should be pulled by the package manager
 
Normally, all the necessary dependencies should be pulled by the package manager
 
 
'''Note''': you need to have the UniversePackages repository configured.
 
'''Note''': you need to have the UniversePackages repository configured.
 
 
== Using the uim applet ==
 
== Using the uim applet ==
 
 
Add the UIM Applet to the panel.  (Right click on the panel> Add to panel...).
 
Add the UIM Applet to the panel.  (Right click on the panel> Add to panel...).
 
 
Click the "Preference" button on the applet.  If you are only interested in Japanese and English, click "Edit" for the "Enabled input methods" and remove all methods except "Anthy."  Consider unchecking "Enable input method toggle by hot keys."  I always accidentally hit the keys (Ctrl-space by default) and get jumped into Japanese mode when I don't want it.  You can instead use the mouse to deliberately select Japanese input mode from the applet.  Click "OK" to exit configuration.  It might be necessary to log out and log back in.  I've seen some flaky behavior from the applet after configuring it without a restart.
 
Click the "Preference" button on the applet.  If you are only interested in Japanese and English, click "Edit" for the "Enabled input methods" and remove all methods except "Anthy."  Consider unchecking "Enable input method toggle by hot keys."  I always accidentally hit the keys (Ctrl-space by default) and get jumped into Japanese mode when I don't want it.  You can instead use the mouse to deliberately select Japanese input mode from the applet.  Click "OK" to exit configuration.  It might be necessary to log out and log back in.  I've seen some flaky behavior from the applet after configuring it without a restart.
 
 
To try out inputting Japanese, launch a text editor, such as Gedit.  Click on the input mode selector in the UIM applet and select Anthy, or hit Ctrl-space if you did not disable keyboard toggling.  By default you should still be in direct input mode under Anthy and typing will produce English characters.  Hit shift-space to toggle into Japanese input mode.  If the UIM Applet input mode logo does not say あ, indicating hiragana mode, either click on the applet and select hiragana mode (ひらがな) or press shift-F6.  Type "nihongo", press space, press enter and you should see "日本語" (literally, Japanese Language).  Hit shift-space and then type some English.  Hit shift-space and type some more Japanese.  Type "ka" and hit space to cycle through the potential kanji matches, then hit enter when you find the right one.  Press shift-F7 to enter katakana, then press shift-F6 when you want to go back to hiragana input.  When you're done typing Japanese altogether, click on the UIM applet and select "Direct" mode instead of "Anthy", or hit Ctrl-space if you did not disable it.
 
To try out inputting Japanese, launch a text editor, such as Gedit.  Click on the input mode selector in the UIM applet and select Anthy, or hit Ctrl-space if you did not disable keyboard toggling.  By default you should still be in direct input mode under Anthy and typing will produce English characters.  Hit shift-space to toggle into Japanese input mode.  If the UIM Applet input mode logo does not say あ, indicating hiragana mode, either click on the applet and select hiragana mode (ひらがな) or press shift-F6.  Type "nihongo", press space, press enter and you should see "日本語" (literally, Japanese Language).  Hit shift-space and then type some English.  Hit shift-space and type some more Japanese.  Type "ka" and hit space to cycle through the potential kanji matches, then hit enter when you find the right one.  Press shift-F7 to enter katakana, then press shift-F6 when you want to go back to hiragana input.  When you're done typing Japanese altogether, click on the UIM applet and select "Direct" mode instead of "Anthy", or hit Ctrl-space if you did not disable it.
 
 
== What's next? ==
 
== 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.
 
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.
 
 
Consider adding Japanese support through the new '''Language selector''' tool (''System> Administration> Language Support'') to get writing aids such as a dictionary, and also to generate appropriate locales.
 
Consider adding Japanese support through the new '''Language selector''' tool (''System> Administration> Language Support'') to get writing aids such as a dictionary, and also to generate appropriate locales.
 
 
[[category:CategoryDocumentation]] [[category:CategoryCleanup]]
 
[[category:CategoryDocumentation]] [[category:CategoryCleanup]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年11月30日 (五) 19:54的版本

This method uses uim and its anthy plugin. It assumes you want to type Japanese from an English session, not as a Japanese user.

Installing the packages

Either use the Synaptic Package Manager (System> Administration menu) to install the following packages or type the lines in a terminal:

sudo apt-get install uim-applet-gnome uim-xim uim-anthy uim-gtk2.0

Normally, all the necessary dependencies should be pulled by the package manager Note: you need to have the UniversePackages repository configured.

Using the uim applet

Add the UIM Applet to the panel. (Right click on the panel> Add to panel...). Click the "Preference" button on the applet. If you are only interested in Japanese and English, click "Edit" for the "Enabled input methods" and remove all methods except "Anthy." Consider unchecking "Enable input method toggle by hot keys." I always accidentally hit the keys (Ctrl-space by default) and get jumped into Japanese mode when I don't want it. You can instead use the mouse to deliberately select Japanese input mode from the applet. Click "OK" to exit configuration. It might be necessary to log out and log back in. I've seen some flaky behavior from the applet after configuring it without a restart. To try out inputting Japanese, launch a text editor, such as Gedit. Click on the input mode selector in the UIM applet and select Anthy, or hit Ctrl-space if you did not disable keyboard toggling. By default you should still be in direct input mode under Anthy and typing will produce English characters. Hit shift-space to toggle into Japanese input mode. If the UIM Applet input mode logo does not say あ, indicating hiragana mode, either click on the applet and select hiragana mode (ひらがな) or press shift-F6. Type "nihongo", press space, press enter and you should see "日本語" (literally, Japanese Language). Hit shift-space and then type some English. Hit shift-space and type some more Japanese. Type "ka" and hit space to cycle through the potential kanji matches, then hit enter when you find the right one. Press shift-F7 to enter katakana, then press shift-F6 when you want to go back to hiragana input. When you're done typing Japanese altogether, click on the UIM applet and select "Direct" mode instead of "Anthy", or hit Ctrl-space if you did not disable it.

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. Consider adding Japanese support through the new Language selector tool (System> Administration> Language Support) to get writing aids such as a dictionary, and also to generate appropriate locales.