xref: /dflybsd-src/lib/libc/locale/gb18030.5 (revision 0d5acd7467c4e95f792ef49fceb3ab8e917ce86b)
1*0d5acd74SJohn Marino.\" Copyright (c) 2002, 2003 Tim J. Robbins
2*0d5acd74SJohn Marino.\" All rights reserved.
3*0d5acd74SJohn Marino.\"
4*0d5acd74SJohn Marino.\" Redistribution and use in source and binary forms, with or without
5*0d5acd74SJohn Marino.\" modification, are permitted provided that the following conditions
6*0d5acd74SJohn Marino.\" are met:
7*0d5acd74SJohn Marino.\" 1. Redistributions of source code must retain the above copyright
8*0d5acd74SJohn Marino.\"    notice, this list of conditions and the following disclaimer.
9*0d5acd74SJohn Marino.\" 2. Redistributions in binary form must reproduce the above copyright
10*0d5acd74SJohn Marino.\"    notice, this list of conditions and the following disclaimer in the
11*0d5acd74SJohn Marino.\"    documentation and/or other materials provided with the distribution.
12*0d5acd74SJohn Marino.\"
13*0d5acd74SJohn Marino.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14*0d5acd74SJohn Marino.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15*0d5acd74SJohn Marino.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16*0d5acd74SJohn Marino.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17*0d5acd74SJohn Marino.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18*0d5acd74SJohn Marino.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19*0d5acd74SJohn Marino.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20*0d5acd74SJohn Marino.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21*0d5acd74SJohn Marino.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22*0d5acd74SJohn Marino.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23*0d5acd74SJohn Marino.\" SUCH DAMAGE.
24*0d5acd74SJohn Marino.\"
25*0d5acd74SJohn Marino.\" $FreeBSD: head/lib/libc/locale/gb18030.5 131608 2004-07-05 06:39:03Z ru $
26*0d5acd74SJohn Marino.\"
27*0d5acd74SJohn Marino.Dd August 10, 2003
28*0d5acd74SJohn Marino.Dt GB18030 5
29*0d5acd74SJohn Marino.Os
30*0d5acd74SJohn Marino.Sh NAME
31*0d5acd74SJohn Marino.Nm gb18030
32*0d5acd74SJohn Marino.Nd "GB 18030 encoding method for Chinese text"
33*0d5acd74SJohn Marino.Sh SYNOPSIS
34*0d5acd74SJohn Marino.Nm ENCODING
35*0d5acd74SJohn Marino.Qq GB18030
36*0d5acd74SJohn Marino.Sh DESCRIPTION
37*0d5acd74SJohn MarinoThe
38*0d5acd74SJohn Marino.Nm GB18030
39*0d5acd74SJohn Marinoencoding implements GB 18030-2000, a PRC national standard for the encoding of
40*0d5acd74SJohn MarinoChinese characters.
41*0d5acd74SJohn MarinoIt is a superset of the older GB\ 2312-1980 and GBK encodings,
42*0d5acd74SJohn Marinoand incorporates Unicode's Unihan Extension A completely.
43*0d5acd74SJohn MarinoIt also provides code space for all Unicode 3.0 code points.
44*0d5acd74SJohn Marino.Pp
45*0d5acd74SJohn MarinoMultibyte characters in the
46*0d5acd74SJohn Marino.Nm GB18030
47*0d5acd74SJohn Marinoencoding can be one byte, two bytes, or
48*0d5acd74SJohn Marinofour bytes long.
49*0d5acd74SJohn MarinoThere are a total of over 1.5 million code positions.
50*0d5acd74SJohn Marino.Pp
51*0d5acd74SJohn Marino.No GB\ 11383-1981 Pq Tn ASCII
52*0d5acd74SJohn Marinocharacters are represented by single bytes in the range 0x00 to 0x7F.
53*0d5acd74SJohn Marino.Pp
54*0d5acd74SJohn MarinoChinese characters are represented as either two bytes or four bytes.
55*0d5acd74SJohn MarinoCharacters that are represented by two bytes begin with a byte in the range
56*0d5acd74SJohn Marino0x81-0xFE and end with a byte either in the range 0x40-0x7E or 0x80-0xFE.
57*0d5acd74SJohn Marino.Pp
58*0d5acd74SJohn MarinoCharacters that are represented by four bytes begin with a byte in the range
59*0d5acd74SJohn Marino0x81-0xFE, have a second byte in the range 0x30-0x39, a third byte in the range
60*0d5acd74SJohn Marino0x81-0xFE and a fourth byte in the range 0x30-0x39.
61*0d5acd74SJohn Marino.Sh SEE ALSO
62*0d5acd74SJohn Marino.Xr euc 5 ,
63*0d5acd74SJohn Marino.Xr gb2312 5 ,
64*0d5acd74SJohn Marino.Xr gbk 5 ,
65*0d5acd74SJohn Marino.Xr utf8 5
66*0d5acd74SJohn Marino.Rs
67*0d5acd74SJohn Marino.%T "Chinese National Standard GB 18030-2000: Information Technology -- Chinese ideograms coded character set for information interchange -- Extension for the basic set"
68*0d5acd74SJohn Marino.%D "March 2000"
69*0d5acd74SJohn Marino.Re
70*0d5acd74SJohn Marino.Rs
71*0d5acd74SJohn Marino.%Q "The Unicode Consortium"
72*0d5acd74SJohn Marino.%T "The Unicode Standard, Version 3.0"
73*0d5acd74SJohn Marino.%D "2000"
74*0d5acd74SJohn Marino.Re
75*0d5acd74SJohn Marino.Sh STANDARDS
76*0d5acd74SJohn MarinoThe
77*0d5acd74SJohn Marino.Nm GB18030
78*0d5acd74SJohn Marinoencoding is believed to be compatible with GB 18030-2000.
79