source: trunk/doc/src/codecs.qdoc@ 172

Last change on this file since 172 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 23.4 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4** Contact: Qt Software Information ([email protected])
5**
6** This file is part of the documentation of the Qt Toolkit.
7**
8** $QT_BEGIN_LICENSE:LGPL$
9** Commercial Usage
10** Licensees holding valid Qt Commercial licenses may use this file in
11** accordance with the Qt Commercial License Agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and Nokia.
14**
15** GNU Lesser General Public License Usage
16** Alternatively, this file may be used under the terms of the GNU Lesser
17** General Public License version 2.1 as published by the Free Software
18** Foundation and appearing in the file LICENSE.LGPL included in the
19** packaging of this file. Please review the following information to
20** ensure the GNU Lesser General Public License version 2.1 requirements
21** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22**
23** In addition, as a special exception, Nokia gives you certain
24** additional rights. These rights are described in the Nokia Qt LGPL
25** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
26** package.
27**
28** GNU General Public License Usage
29** Alternatively, this file may be used under the terms of the GNU
30** General Public License version 3.0 as published by the Free Software
31** Foundation and appearing in the file LICENSE.GPL included in the
32** packaging of this file. Please review the following information to
33** ensure the GNU General Public License version 3.0 requirements will be
34** met: http://www.gnu.org/copyleft/gpl.html.
35**
36** If you are unsure which license is appropriate for your use, please
37** contact the sales department at [email protected].
38** $QT_END_LICENSE$
39**
40****************************************************************************/
41
42/*!
43 \page codec-big5.html
44 \title Big5 Text Codec
45 \ingroup codecs
46
47 The Big5 codec provides conversion to and from the Big5 encoding.
48 The code was originally contributed by Ming-Che Chuang
49 \<[email protected]\> for the Big-5+ encoding, and was
50 included in Qt with the author's permission, and the grateful
51 thanks of the Trolltech team. (Note: Ming-Che's code is QPL'd, as
52 per an mail to [email protected].)
53
54 However, since Big-5+ was never formally approved, and was never
55 used by anyone, the Taiwan Free Software community and the Li18nux
56 Big5 Standard Subgroup agree that the de-facto standard Big5-ETen
57 (zh_TW.Big5 or zh_TW.TW-Big5) be used instead.
58
59 The Big5 is currently implemented as a pure subset of the
60 Big5-HKSCS codec, so more fine-tuning is needed to make it
61 identical to the standard Big5 mapping as determined by
62 Li18nux-Big5. See \l{http://www.autrijus.org/xml/} for the draft
63 Big5 (2002) standard.
64
65 James Su \<[email protected]\> \<[email protected]\>
66 generated the Big5-HKSCS-to-Unicode tables with a very
67 space-efficient algorithm. He generously donated his code to glibc
68 in May 2002. Subsequently, James has kindly allowed Anthony Fok
69 \<[email protected]\> \<[email protected]\> to adapt the code
70 for Qt.
71
72 \legalese
73 Copyright (C) 2000 Ming-Che Chuang \BR
74 Copyright (C) 2002 James Su, Turbolinux Inc. \BR
75 Copyright (C) 2002 Anthony Fok, ThizLinux Laboratory Ltd.
76
77 Redistribution and use in source and binary forms, with or without
78 modification, are permitted provided that the following conditions
79 are met:
80
81 \list 1
82 \o Redistributions of source code must retain the above copyright
83 notice, this list of conditions and the following disclaimer.
84 \o Redistributions in binary form must reproduce the above copyright
85 notice, this list of conditions and the following disclaimer in the
86 documentation and/or other materials provided with the distribution.
87 \endlist
88
89 THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND
90 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
91 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
92 ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
93 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
94 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
95 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
96 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
97 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
98 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
99 SUCH DAMAGE.
100 \endlegalese
101*/
102
103/*!
104 \page codec-big5hkscs.html
105 \title Big5-HKSCS Text Codec
106 \ingroup codecs
107
108 The Big5-HKSCS codec provides conversion to and from the
109 Big5-HKSCS encoding.
110
111 The codec grew out of the QBig5Codec originally contributed by
112 Ming-Che Chuang \<[email protected]\>. James Su
113 \<[email protected]\> \<[email protected]\> and Anthony Fok
114 \<[email protected]\> \<[email protected]\> implemented HKSCS-1999
115 QBig5hkscsCodec for Qt-2.3.x, but it was too late in Qt development
116 schedule to be officially included in the Qt-2.3.x series.
117
118 Wu Yi \<[email protected]\> ported the HKSCS-1999 QBig5hkscsCodec to
119 Qt-3.0.1 in March 2002.
120
121 With the advent of the new HKSCS-2001 standard, James Su
122 \<[email protected]\> \<[email protected]\> generated the
123 Big5-HKSCS<->Unicode tables with a very space-efficient algorithm.
124 He generously donated his code to glibc in May 2002. Subsequently,
125 James has generously allowed Anthony Fok to adapt the code for
126 Qt-3.0.5.
127
128 Currently, the Big5-HKSCS tables are generated from the following
129 sources, and with the Euro character added:
130 \list 1
131 \o \l{http://www.microsoft.com/typography/unicode/950.txt}
132 \o \l{http://www.info.gov.hk/digital21/chi/hkscs/download/big5-iso.txt}
133 \o \l{http://www.info.gov.hk/digital21/chi/hkscs/download/big5cmp.txt}
134 \endlist
135
136 There may be more fine-tuning to the QBig5hkscsCodec to maximize its
137 compatibility with the standard Big5 (2002) mapping as determined by
138 Li18nux Big5 Standard Subgroup. See \l{http://www.autrijus.org/xml/}
139 for the various Big5 CharMapML tables.
140
141 \legalese
142 Copyright (C) 2000 Ming-Che Chuang \BR
143 Copyright (C) 2001, 2002 James Su, Turbolinux Inc. \BR
144 Copyright (C) 2002 WU Yi, HancomLinux Inc. \BR
145 Copyright (C) 2001, 2002 Anthony Fok, ThizLinux Laboratory Ltd.
146