Chinese display and input of gnome2 in SuSE8.1

Source: Internet
Author: User
Title: Chinese display and input of gnome2 in SuSE8.1. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I have been using SuSE Linux 8.1 for some time, but Chinese characters in gnome2 have always been ugly blocks,
The default desktop of SuSE is KDE, so I mainly use KDE 3. Someone mentioned this in the forum this weekend.
To solve this problem, we decided to take a good look at it.
  
This problem occurs in "xft". to correctly display Chinese characters, you must invalidate "xft" and run the following command in shell:
  
Export GDK_USE_XFT = "0"
  
However, this method is only effective for starting X from the console, and does not work for entering gnome2 from xdm (AHP, kdm), regardless
Put the above Command in/etc/profile or in $ HOME/. xinitrc. The results are the same, only
Effective for gnome2 started by startx.
  
The gnome2 of SuSE is not directly started by gnome-session, but by the script file.
The file is/usr/X11R6/bin/gnome, which has the following settings:
  
# Do you want GDK to use XFT? Most probably yes.
Export GDK_USE_XFT = 1
  
In this way, the environment variables set before startup are overwritten, so the Chinese characters are invisible. To ensure that xft is not used,
Change "1" to "0 ":
  
# Do you want GDK to use XFT? Most probably yes.
Export GDK_USE_XFT = 0
  
After this setting, you can see Chinese characters in gnome2, but you cannot enter Chinese characters.
The following statement must be added before the file:
  
# Start the XIM server
Test-r $ HOME/. xim & source $ HOME/. xim
  
Restart X to see the friendly Chinese characters.
  
If you want to install and use the simsun font, you also need to set/etc/pango/pangox. aliases.
  
SuSE 8.1 gnome2
  
Related Article

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.