Chinese input method of English interface and normal display of Chinese characters

Source: Internet
Author: User
Tags locale

This article is mainly written for those who are accustomed to the original en operating system, but also for other reasons to enter the Chinese character of friends

Distribution or Gentoo, other distributions can refer to their respective profiles and related software.

First, you need to install the relevant fonts, the commands are as follows:

  # emerge arphicfonts wqy-bitmapfont
  cjkuni-fonts corefonts ttf-bitstream-vera

Some fonts may be "~ 6" to masked, you can use the prefix to add accept--keywords= "~x86" to install

  # ACCEPT_KEYWORDS="~x86" emerge arphicfonts
  wqy-bitmapfont cjkuni-fonts corefonts ttf-bitstream-vera

Next, revise your Locale.gen file and add the following

  en_US ISO-8859-1
en_US.UTF-8 UTF-8
zh_CN GB18030
zh_CN.GBK GBK
zh_CN.GB2312 GB2312
zh_CN.UTF-8 UTF-8

Then run the Locale-gen to get the corresponding locale. Next, create a 100i18n environment variable file.

  # nano /etc/env.d/100i18n

and add the following contents to the

  LANG=en_US.UTF-8
LC_CTYPE=zh_CN.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"

Exit after saving, and then update the system's environment variables

  # env-update

When you are done, restart your computer

Next is the input of the installation of the hair, scim good, I always use it,

  # emerge scim-pinyin

Then you need to adjust your KDE or Gnome display font, select the common encoding of Chinese fonts, such as italics, XXFarEastFont-Arial, Chinese display will not appear garbled.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.