怎麼用Ubuntu輸入漢語拼音
zěnme yòng Ubuntu shūrù Hànyǔ Pīnyīn
Previous posts deal with how to use pinyin as an input method for true Chinese characters in SCIM. However, this post will deal with how to write proper latin phonetics for Chinese in Ubuntu. Writing proper phonetics is important to many students of Chinese, as well as people who want to use pinyin to supplant characters altogether. yídìng yào xiě shēngdiào o!
There are two methods, the first of which is a better overall solution for most users.
Method #1: Using scim-m17n
1. Install scim-m17n
a. Right-click your scim icon (a keyboard icon if you're inputing English) and select "exit" to exit scim.
b. Open applications->accesories->terminal and type or paste this code into it:
Code:
sudo apt-get install scim-m17n
2. Reboot
3. Left-click the scim icon to see a very large list of language selections. You may have to hover the mouse over the bottom to scroll the menu down to "Chinese-simplified", and under the submenu select "zh-pinyin"
4. Test drive it
a. type something like "xiao3" (without quotes) and hit spacebar. The tone should appear over the "a", as in "xiǎo". For individual vowels with tones, type a vowel with a number from 1 to 4 after it, then hit spacebar.
Tweaking
To tweak your scim, right-click the scim icon and select SCIM setup.
1. Check your hotkey and remember to use it
a. Under FrontEnd->Global Setup look under "hotkeys" and "trigger". Mine is control+space, which I find convenient. I deleted other hotkeys to prevent conflicts with other programs like firefox.
2. Reduce the language options on scim menu
a. Under IMEngine->Global Setup deselect any languages you don't think you'll need.
b. Look on your Chinese input submenus as well, and uncheck Chinese inputs that you don't need or cannot use, but still leaving our "zh-pinyin" checked.
The "reload configuration" option when right-clicking scim icon doesn't usually work for me, so I don't bother with it. Reboot to see your changes take effect.
Method #2: Copy and paste
To use method #2, make sure you have Character Palette installed.
Originally Posted by
mdurham
Right click on a panel and select "add to panel", select "character palette"
1. Character Palette->Preferences
Right click on your current Character Palette (at the top of the screen) and select preferences.
2. Preferences->Add
Of the three choices Add, Edit and Delete, choose "Add". You'll see a small window "Add Palette" come up.
3. Paste characters into the text field.
In the text field enter the following list of characters by the copy and paste method: āáăàēéĕèīíĭìōóŏòūúŭùǖǘǚǜ
or this list for two kinds of 3rd tone markings (the second being more authentic): āáăǎàēéĕěèīíĭǐìōóŏǒòūúŭǔùǖǘǚǜ
WARNING: don't try these long lists of characters if you're using gnome and you already have several launch icons or other items on your top panel. It can get overloaded and mess up your GUI access to Applications Places and System menus.
4. Click "OK"
After you've entered and clicked "OK", you'll notice a new palette that you can select.
5. Test it.
Click on one of the accented vowels, then enter it into a text field by clicking your scroll button or control+v.
For plain diacritics (which have a more authentic-looking 3rd tone), go back and do step 3, and copy and paste what is after this colon into the text field: ̄́̌̀
You'll find that there are four very thin choices, and they go in the order of the four tones, though they aren't visible until you enter them after a vowel and make them appear over the vowel.
I find that the pre-encoded characters from step 3 can be rendered on M$ systems, whereas M$ doesn't render the plain diacritics.
If you want to make any additions or changes use Character Map (the Latin set) to find, copy and paste what you need into Character Palette.
Hope someone finds this useful. hǎohāo xuéxí ba!
NOTES:
1. Method #1 cannot put a tone marking on capital letters, as would be needed for words like Ānhuī (the province) or Ēmítuófó (the Buddha).
2. Method #1 seems to choose the right vowel to put the tone on no matter what combination I try, so word by word input is more convenient vowel by vowel.
3. There is no way to add the fifth tone (a dot on top of the vowel) through method #1, though these characters can be found on Character Palette and used by method #2
Bookmarks