zoukankan      html  css  js  c++  java
  • Ubuntu 12.04中文输入法的安装

    Ubuntu上的输入法主要有小小输入平台(支持拼音/二笔/五笔等),Fcitx,Ibus,Scim等。其中Scim和Ibus是输入法框架。
    在Ubuntu的中文系统中自带了中文输入法,通过Ctrl+Space可切换中英文输入法。这里我们主要说下Ubuntu英文系统中,中文输入法的安装。
    安装输入法的第一步,是安装语言包。我们选择System Settings-->Language Support-->Install/Remove Languages
     

     
    输入密码后,系统会安装简体中文语言包。
    第二步,安装IBus框架,在终端输入以下命令:
    sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4
    启动IBus框架,在终端输入:
    im-switch -s ibus
    安装完IBus框架后注销系统,保证更改立即生效。
    第三步:安装拼音引擎
     
    有下面几种常用选择:
    IBus拼音:sudo apt-get install ibus-pinyin
    IBUS五笔:sudo apt-get install ibus-table-wubi
    谷歌拼音输入法:sudo apt-get install ibus-googlepinyin
    Sun拼音输入法:sudo apt-get install ibus-sunpinyin
    第四步:设置IBus框架 
    ibus-setup
    此时,IBus Preference设置被打开。我们在Input Method选项卡中,选择自己喜欢的输入方式,并配置自己喜欢的快捷键即可。如下图所示:
     

     
    第五步:通常情况下,IBus图标(一个小键盘)会出现在桌面右上角的任务栏中。有时候这个图标会自行消失,可使用以下命令,找回消失的IBus图标:
    ibus-daemon -drx
     
    安装就绪后,注意重启系统才能生效!!!!
     

    Assuming that you are using an English version of Ubuntu and you wish to input foreign language (eg. Chinese, Japanese, Korean) in your word document, web browser or text editor, the best way is via the IBus.

    IBus is the abrreviation for “Intelligent Input Bus” and it is the open source input framework for Linux/Unix OS. In Ubuntu Lucid, IBus is installed by default, so there is no need for you to reinstall again.

    Installing of foreign language

    In order to type in foreign language, you have to make sure that your system supports the language itself.

    Go to System -> Administration -> Language Support

    Click on Install/Remove Language

    ibus-install-language

    Scroll down the list to find the language that you want to use. Place a check at the “Installed” box. If you need to input option, make sure the Input methods is checked.

    ibus-install-language1

    Click Apply Changes to install.

    After the installation, on the main Language Support, select “ibus” from the “Keyboard Input Method System”.

    ibus-keyboard-input-method

    Configuring IBus

    Go to System -> Preferences -> IBus Preferences.

    It will popup three different windows. The first one is to ask you if you like to start IBus. Click Yes.

    ibus-start-daemon

    In the next popup, if you don’t understand what it means, don’t worry, you can ignore it and click “OK”.

    ibus-started

    Lastly, you will reach the Preferences window. Click on the Input Method tab. Under the Select an Input Method dropdown field, select the language that you have just installed. Click on the “Add” button. You should see the same as the screenshot below.

    ibus-add-input-method

    Now, you should see a system icon at your taskbar. Click on it and select the language that you want to input.

    ibus-select-input-method

    You should be able to type in the foreign language now (occasionally, you might need to select the language a few time to get it working). Alternatively, you can switch the default keyboard shortcut “Ctrl + Space” to switch to another language.

    ibus-language-bar

    Autostart IBus during login

    Go to System -> Preferences -> Startup Application. Click Add. Enter the following:

    Name: IBus daemon
    Command: /usr/bin/ibus-daemon -d
    Comment: start IBus daemon when Gnome starts

    Click Ok. That’s it. IBus should start automatically everytime you login.
  • 相关阅读:
    《个人-GIT使用方法》
    课后作业-阅读任务-阅读提问-1
    《20170914-构建之法:现代软件工程-阅读笔记》
    结对-贪吃蛇游戏-开发环境搭建过程
    《结对-贪吃蛇游戏-设计文档》
    Forward团队-爬虫豆瓣top250项目-需求分析
    Forward团队-爬虫豆瓣top250项目-成员简介与分工
    《结对-网页贪吃蛇游戏-需求分析》
    《团队-团队编程项目作业名称-团队信息》
    《对软件工程课程的期望》
  • 原文地址:https://www.cnblogs.com/gaodong/p/3321159.html
Copyright © 2011-2022 走看看