Linux Chinese environment and Chinese culture-FAQs

Source: Internet
Author: User
Tags i18n

◆ Console/kernel

1. What software can I enter Chinese characters on the console?

A:Common Chinese consoles include cce, Hongqi yanhuang, wzole, and unicon. The first three software are both external running Chinese platforms and do not need to re-compile the kernel. unicon needs to patch and re-compile the kernel. For three types of external hanging platforms. My experience is that cce is small and the running speed is good, but the display effect is not very good compatibility (with mc. Yan Huang's display is good, but the speed and stability are worse. Wzole is a commercial software, but it is free for individual users and has good performance in all aspects.

2. Why are all Chinese file names in my WINDOWS partition displayed "? "?

A:This is because the mount partition does not support loading Chinese characters. If you are using a release version of the kernel, you can use the-o codepage = 936, iocharset = cp936 parameter to mount the partition. If you compile the kernel yourself, when codepage is set, the default code page is set to cp936. Therefore, no parameters are required. (Note that versions earlier than 2.2.17 do not support kernel 936 and must be patched ).
This method can also be used in samba file systems.

3. I can enter Chinese characters for unicon, but I cannot enter the kernel after upgrade or unicon. My installation process is based on its instructions?

A:Do this.
Rm-f/dev/unikey
Mknod/dev/unikey c 10 202
If you use unicon 3.0.2, you do not need to delete it. This device number is automatically updated during unikey compilation and installation.

◆ X

1. How to install the Chinese TTF font

A:Most people think that simsun in ms win. ttf is the best Chinese TTF font. The following uses it as an example (please note that this font is a commercial software, and you are responsible for copyright issues !).

First, disable the X Font Server xfs, and then confirm that your X is working properly.

Set simsun in ms win. copy the ttf file to a directory. Assume It is/usr/X11R6/lib/fonts/zhfonts/TTF, and run the following command in the directory: ttmkfdir> fonts. dir and then open the file fonts. dir, which may look like the following:

6
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-ascii-0
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-fcd8859-15
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-iso8859-1
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-iso8859-15
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-koi8-r

In fact, we only need to set the third line. If you want to add a GBK font, you can change the file to the following:

2
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-gbk-0
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-gb2312.1980-0

Then run cp fonts. dir fonts. scale.

Add the path to XF86Config (-4), Open/etc/X11/XF86Config (-4), find the row FontPath, and add the row:

FontPath/usr/X11R6/lib/X11/fonts/zhfonts/TTF

Find the row Section "Module" in the file. If there is no row Load "freetype" or Load "xtt", add one of the two (cannot be used at the same time !), We recommend that you use the latter for better results.

At this point, the Chinese TTF font is complete. Other TTF fonts can be added as per this method.

2. Why can't buttons and other controls on the page display Chinese characters when my netscape displays a Chinese webpage?

A:Netscape4.x is the problem. The easiest way is to upgrade to netscape6.x or use mozilla.

3. How to enter Chinese Characters in netscape4.7x?

A:Add the following lines to the. Xdefaults file of home (if not, generate one by yourself)

!!!!!!!!!!!!!!!!!!!!!!
!!!! For Netscape !!!!
Netscape * versionLocale: zh_CN
Netscape * defaultCharset: gb2312

Netscape * fontList :\
-Adobe-helvetica-medium-r-* -- 14 -*-*-*-*-*-*-*;\
-Isas-* -- 14 -*-*-*-*-*-*-*:

Netscape * XmTextField. fontList :\
-Adobe-helvetica-medium-r-* -- 14 -*-*-*-*-*-*-*;\
-Isas-* -- 14 -*-*-*-*-*-*-*:

Netscape * XmText. fontList :\
-Adobe-helvetica-medium-r-* -- 14 -*-*-*-*-*-*-*;\
-Isas-* -- 14 -*-*-*-*-*-*-*:

Netscape * inputMethod: Chinput // or rfinput, depending on which input method you are using
Netscape * preeditType: root

This problem does not exist after you upgrade to netscape6/mozilla.

4. What should I do if my netscape6.x Chinese font is too ugly?

A:The Display Effect of the self-contained Chinese font in XFree is not good. You can use the Chinese dot matrix font in TLC or BP to achieve the display effect similar to that of IE. After the font is installed, change the font settings of NETSCAPE.

5. Does Star Office support Chinese characters?

A:Currently, it is not supported (6.x). You can only wait.

6. My Chinese display and input under X have been solved, but some software and system menus do not display Chinese

A:If you can exclude that the software or system does not have a Chinese menu at all, it indicates that your locale settings are incorrect. The menu system of a desktop environment such as GNOME is based on the local locale settings to determine the language to display, and its default Chinese value is zh_CN.GB2312. Most of the mo modules of software supporting i18n are stored in/usr/share/locale/zh_CN.GB2312. Therefore, it is best to set LC_ALL to zh_CN.GB2312 if it works.

◆ GNOME

1. I am using RedHat7. After setting the Chinese environment variable, the Chinese menu of GNOME should be blank. Why?

A:The glibc-2.1.92 in RedHat is a test version of the glibc-2.2, there is a problem with the Chinese support, upgrade to the new version after nature there is no problem.

2. Chinese Characters in gedit are garbled. Why?

A: I don't know how to solve this problem in A certain version of gedit (released by RAWHIDE. However, you just need to change to another version.

3. I compiled chinput3.0, but "Segment Fault" is reported every time I run it"

A: Check the environment variable LC_ALL at chinput startup. You can enter Chinese only when the variable is set correctly. You can open a console in X and run the command locales to view the LC_ALL value. If it is null, it indicates that you have not set this variable. Set this variable to zh_CN, zh_CN.gb2312, or zh_CN.GB2312.

4. Run chinput3.0 to report "Error: XCreateFontSet ()! "

A:This error is often because of the traditional Chinese font problem, there are two ways to solve: one is to Yu mingyu teacher's home page (http://go.163.com /~ Download and install the required font at yumingjian. Modify the source program and remove the big5 font settings (if you do not need BIG5 ). The specific modification is as follows:

Open the file init. c. Find the function body 'void HZinitServerGC (void) 'and comment out the line 'setlocale (LC_ALL, big5locale);' (including the row) to the line 'get _ ColorGC (window1, & HZServer. dimGC, color_dim); '(excluding this line), recompile and install it.

◆ KDE

1. I am using REDHAT7.x and have used the export command to set the environment variable. However, when running chinput in KDE2, "Segment Fault" is still reported"

A:KDE2 will set the environment variable again at startup, which may change LC_ALL to a null value again. You can modify the file/etc/profile. d/lang. sh, remove "unset LC_ALL" from the file, and add the line "export LC_ALL = <your Chinese environment variable value> ".

2. Can KDE2 display and input Chinese characters?

A:Qt2.2.x/2.3x/can fully support Chinese characters. However, due to problems in kde2.x, Chinese characters cannot be properly processed in KDE2.0/2.01/2.1, hero Rigel has made a good patch for kde2.1. As long as you re-compile the kdelibs package, you can better process Chinese in kde2. Both chinput and rfinput can better input Chinese in kde2.

3. My KDE2 has been patched to display Chinese characters, but the menu is still in English and the Chinese font is ugly. But I have installed the Chinese TTF font?

A:KDE2 released the Chinese i18n package, named kde-i18n-Chinese, after installation, set cn/zh_CN.GB2312/zn_CN.gb2312-0 (or gbk-0) in the country settings of the KDE control center, and restart KDE on the line. The problem of ugly Chinese fonts is also solved in the control center. Find the font item under "Perception" and change all fonts to simsun 12. If it is, first change it to another font and then "Apply" it. Restart KDE and check the effect...

Related Articles]

  • Linux Chinese environment topics

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.