Chinese display and support FAQ in Linux (1)

Source: Internet
Author: User
Article title: Display Chinese characters in Linux and support FAQs (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.
This FAQ helps you solve the following problems:
1. installation of Chinese characters and fonts in Linux
2. display Chinese file names in Linux
3. display Chinese characters in smb
4. display of Chinese pdf files
5. support for gftp, xmms, mplayer, and openoffice in Chinese
6. how to implement an English environment (or an English menu) and input or display it in Chinese?
I. installation of Chinese characters and fonts in Linux
1. how many Chinese characters does rh8.0 support?
8.0 after installation, as long as you select simplified Chinese during installation
Surfing the Internet, displaying Chinese characters or anything is okay.
However, the font is worse than windows, so you need to install simsun on your own,
There are some scripts dedicated to 8.0 on the Internet, which is very easy
  
  
2. is there a conversion tool for traditional Chinese in Linux?
Try autoconvert, simple and traditional hz automatic identification and conversion.
Ftp.dlut.edu.cn/pub/PEOPLE/saka/autoconvert-0.3.6.tar.gz
All of debian. turbo are available. zh-autoconvert is called in debian.
Or try the following software.
Gb2hz gbklatex gbtob5 gbtou7 gbtou8 gbtouni
B5togb b5tou7 b5tou8 b5touni
  
3. which packages need to be installed to correctly display Chinese characters in RedHat?
You can use cce to display Chinese characters in the console. you can install the rpm of cce. you can download it in many places.
Directly Press cce to enter the Chinese environment, similar to ucdos
The XServer and font for Chinese characters to be installed in Xwindow, and the Xfree86 attached to rh8, 9 and so on can all display Chinese characters,
If it is another recommendation, check the essence area (which may exist) or search for it online. There are many articles about XWindow.
I will not say much about the Chinese display (but I cannot remember what it is)
  
4. more beautiful Chinese display problems
Download the beautification package at linuxfans.org, and then./install. sh, which is perfect.
  
5. how can I install a Chinese font added to rh8.0?
Ftp://ftp.byr.edu.cn/incoming/Openw...Sun_Font_linux/
After download, run sm. sh.
  
6. rh9 Chinese font simsun English font fades after installation
Cancel font smoothing (antialias)
  
7. how to enter Chinese characters for CXTerm
F1 English, F6 Chinese
  
8. how to enter Chinese characters in RH9?
Ctrl + space
  
9. how can I display Chinese characters in plain text mode?
Next zhcon installation
  
10. Is there any tree command in Linux that supports Chinese characters?
Tree-N supports Chinese characters
  
11. how can the man command display Chinese characters?
Export PAGER = less-r
See if there is any help.
  
12. Konqueror Chinese display problems
Add a line to fonts. dir and fonts. scale under the sunsim font directory:
Simsun. ttf-misc-SimSun-medium-r-normal -- 0-0-0-0-p-0-gbk-0
I personally think Konqueror is better than Mozilla, whether in appearance or function.
  
  
II. display Chinese file names in Linux
Display the Chinese file name in the fat partition in linux
Mount-t vfat-o codepage = 936, iocharset = cp936/dev/hda1/mnt/c
Or
Mount-t vfat-o codepage = 936, iocharset = gb2312/dev/hda1/mnt/c
Or modify the/etc/fstab file.
/Dev/hda1/mnt/c vfat defaults, codepage = 936, iocharset = cp936 0 0
Or
/Dev/hda1/mnt/c vfat defaults, codepage = 936, iocharset = gb2312 0 0
After the test, it cannot be GB2312, it can only be gb2312 (under RH9)
  
Display the Chinese file name on the CD in Linux
You can specify-o iocharset = cp936 during mount.
Note that-o codepage = cp936 cannot be used.
For more information, see the kernel source code Documentation/filesystems/isofs.txt.
  
  
III. display Chinese characters in smb
In rh8, the smbclient displays the Chinese characters of the network neighbors.
The rh8 smbclient seems to be a problem. when accessing a windows machine, the Chinese Directory and file name cannot be displayed.
My solution is to add the following two lines in the global configuration section of/etc/samba/smb. conf:
Client code pages = 936
Character set = 936
The order of the two rows is very important and cannot be reversed.
An error message "unrecognized character set" is displayed when smbclient is executed.
Use.
  
  
IV. display of Chinese pdf files
How to view Chinese pdf in linux
RH9.0 has good support for Chinese PDF. Generally, Chinese pdf files can be opened. If you have any questions, refer
The following method:
Solution 1:
Go to linuxfans.org.
Chinapub can be viewed in Chinese pdf
  
Solution 2:
Install the xpdf Chinese Character Pack. This is installed by default.
Run the following command: rpm-qa | grep 'xpdf 'to check whether the following package exists.
Xpdf-chinese-traditional-2.01-8
Xpdf-chinese-simplified-2.01-8
If not, follow these steps:
1. install the xpdf and xpdf-chinese-simplified rpm packages
2. modify/usr/share/xpdf/chinese-simplified/add-to-xpdfrc, put the 1st rows of Adobe-G1
Change Adobe-GB1
3. modify/usr/share/xpdf/chinese-simplified/add-to-xpdfrc.config, put the 1st rows
Adobe-G1 to Adobe-GB1 and change all/usr/local/share to/usr/share
4. add content in/usr/share/xpdf/chinese-simplified/add-to-xpdfrc.config
To the end of/etc/xpdfrc
  
Solution 3
I have been studying this version for several days and cannot open my Chinese pdf. some Chinese pdf files can be viewed later,
Some do not. it's just a brainwave. we ran to the long-overdue W2K, opened Adobe Acrobat, and added the Chinese pdf files one by one.
Save it as a PDF file (it is estimated that Adobe Acrobat is secretly laughing at me, idiot, haha). then you can see it in Linux.
It seems that the cause may be related to the failure to support GB18030. In addition, I use KGhostView to view pdf dvi, which is relatively slow,
But xpdf and acrobat reader are both normal. I don't know if this is the case (I used Redhat9.0)
  
  
How can I enable external read to display the Chinese file name in the directory?
Just install the simplified and traditional Chinese fonts.
Does the patch appear to be absent on the interface? Nbsp;
  
  
In RH7.3, xpdf cannot view Chinese pdf.
  
To view the Chinese text in rh7.3, in addition to installing xpdf, you must also install the Chinese text in pdf,
However, the xpdf-chinese-simplified font installation/configuration file provided by RH7.3 is incorrect,
Traditional xpdf-chinese-traditional has the same problem (less than simplified ).
It cannot be seen if it is installed.
One problem is that automatic configuration is not performed during installation, and the other is that the configuration file is incorrect. The font is installed in
Under/usr/share/xpdf/chinese-simplified, the configuration file is add-to-xpdfrc (. config)
Add the configuration file content to/etc/xpdfrc or ~ according to instructions ~ /. Xpdfrc, but open the configuration file
Look at the content and you will know that it will not work even if added. There are two errors:
The first error is that the font directory uses/usr/local/share/xpdf/chinese-simplified/
The actual installation directory is in/usr/share/xpdf/chinese-simplified, or the installation package is wrong.
Or the configuration file is incorrect. modify the configuration.
The second error is an input error. The first directory should be GB1 with 1 missing.
The correct configuration is as follows:
# ----- Begin Chinese Simplified support package (2002-jan-16)
CidToUnicode Adobe-GB1/usr/share/xpdf/chinese-simplified/Adobe-GB1.cidToUnicode
UnicodeMap ISO-2022-CN/usr/share/xpdf/chinese-simplified/ISO-2022-CN.unicodeMap
UnicodeMap EUC-CN/usr/share/xpdf/chinese-simplified/EUC-CN.unicodeMap
CMapDir Adobe-GB1/usr/share/xpdf/chinese-simplified/CMap
ToUnicodeDir/usr/share/xpdf/chinese-simplified/CMap
DisplayCIDFontX Adobe-GB1 "-*-simsun-medium-r-normal-*-% s-*-gb2312.1980-0" ISO-2022-CN
# ----- End Chinese Simplified support package
  
Add it directly to the end of the/etc/xpdfrc file. The last item is the font setting. select the font you want to install in the system,
I used windows from windows. after the configuration is completed, I used xpdf to see the Chinese pdf and the drifting, compared to windows.
The effect of using acrobat is not bad at all!
  
  
  
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.