Allows linux to arrange Chinese Characters in audio order

Source: Internet
Author: User
This allows linux to arrange Chinese-general Linux technology-Linux technology and application information in the audio sequence. The following is a detailed description. In Linux, Chinese sorting is always arranged in a sequence that cannot be understood by Chinese people. If you do not believe it, you can open Nautilus or other programs. This is because the Chinese localization data does not contain pinyin sorting information. Now by installing an additional Chinese localization data zh_CN @ pinyin, you will be able to correctly sort Chinese in both the UTF-8 and GB18030 character sets.

Solution: Install locale-pinyin
: Https://gro.clinux.org/frs/downl... e-pinyin-0.1.tar.gz
Or download: http://www.4shared.com/file/1787... e-pinyin-01tar.html from here

Locale-pinyin 0.1 readme file

Introduction
=
The Chinese locale sorted by pinyin.
In * nix, in order to correctly sort Chinese in the computer, you must be able to sort Chinese correctly.
. While the locale data contained in glibc has never been ranked by pinyin or strokes.
. This software adds a Chinese locale sorted by pinyin to your computer.

Install
=
System Requirements:
1. The system must have a localedef tool compliant with the X/Open Standard.
2. perl above 5.8.1
Installation:
$ Make
# Make install

Configuration
=
To take effect, you must correctly configure the locale environment variable.
We recommend that you only set LC_COLLATE as locale. For example:
LANG = zh_CN.UTF-8
LC_COLLATE = zh_CN@pinyin.utf8
Note: Do not set LC_ALL and LC_COLLATE at the same time. This may cause the locale to be incorrectly generated.
Effect.

Test System
====
Fedora Core 6, glibc 2.5, perl 5.8.8
Debian Sarge, glibc 2.3.2, perl 5.8.4
Debian Etch, glibc 2.3.6, perl 5.8.8

Contact info
====
If you find any problems or suggestions, contact:
Hellwolf DOT misty gmail DOT com

If you have a headache over the source code, you can download and install a deb package.
Deb: http://www.4shared.com/file/1787... nyin_01-1_i386.html

Edit/etc/environment

Sudo gedit/etc/environment

Add the following code to the end of the article (UTF-8.zh_CN environment applies)

LC_COLLATE = zh_CN@pinyin.utf8

Just log on again.

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.