• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/netatalk-2.2.5/libatalk/unicode/charsets/
1/*
2 * MacChineseTrad
3 * Copyright (C) TSUBAKIMOTO Hiroya <zorac@4000do.co.jp> 2004
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 *
19 * Reference
20 * http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/
21 */
22
23static const u_int16_t mac_chinese_trad_uni2_page00[][2] = {
24  /* 0x00a */ { 0x0201,    0 }, { 0x0080,    2 },
25};
26
27static const u_int16_t mac_chinese_trad_uni2_page20[][2] = {
28  /* 0x202 */ { 0x0044,    3 },
29};
30
31static const u_int16_t mac_chinese_trad_uni2_page21[][2] = {
32  /* 0x212 */ { 0x0004,    5 },
33};
34
35static const u_int16_t mac_chinese_trad_uni2_page22[][2] = {
36  /* 0x229 */ { 0x0020,    6 }, { 0x0000,    0 }, { 0x0000,    0 },
37  /* 0x22c */ { 0x0000,    0 }, { 0x0000,    0 }, { 0x8000,    7 },
38};
39
40static const u_int16_t mac_chinese_trad_uni2_page25[][2] = {
41  /* 0x259 */ { 0x0020,    8 },
42};
43
44static const u_int16_t mac_chinese_trad_uni2_page26[][2] = {
45  /* 0x264 */ { 0x0002,    9 },
46};
47
48static const u_int16_t mac_chinese_trad_uni2_pagee0[][2] = {
49  /* 0xe00 */ { 0xffff,   10 }, { 0x00ff,   26 },
50};
51
52static const u_int16_t mac_chinese_trad_uni2_pagef8[][2] = {
53  /* 0xf88 */ { 0x0003,   34 },
54};
55
56static const u_int16_t mac_chinese_trad_uni2_pagefe[][2] = {
57  /* 0xfe4 */ { 0x1000,   36 }, { 0x7ef5,   37 },
58};
59
60static const u_int16_t mac_chinese_trad_uni2_pageff[][2] = {
61  /* 0xff6 */ { 0x0010,   49 },
62};
63
64static const cjk_index_t mac_chinese_trad_uni2_index[] = {
65  { { 0x00a0, 0x00bf }, mac_chinese_trad_uni2_page00 },
66  { { 0x2020, 0x202f }, mac_chinese_trad_uni2_page20 },
67  { { 0x2120, 0x212f }, mac_chinese_trad_uni2_page21 },
68  { { 0x2290, 0x22ef }, mac_chinese_trad_uni2_page22 },
69  { { 0x2590, 0x259f }, mac_chinese_trad_uni2_page25 },
70  { { 0x2640, 0x264f }, mac_chinese_trad_uni2_page26 },
71  { { 0xe000, 0xe01f }, mac_chinese_trad_uni2_pagee0 },
72  { { 0xf880, 0xf88f }, mac_chinese_trad_uni2_pagef8 },
73  { { 0xfe40, 0xfe5f }, mac_chinese_trad_uni2_pagefe },
74  { { 0xff60, 0xff6f }, mac_chinese_trad_uni2_pageff },
75  { { 0, 0 }, NULL }
76};
77
78static const u_int16_t mac_chinese_trad_uni2_charset[] = {
79  0x00a0, 0x00fd, 0xa145, 0xffff, 0x00ff, 0x00fe, 0xa1f2, 0xa14b,
80  0xffff, 0xffff, 0x0080, 0xa1c3, 0xa279, 0xa14e, 0xa1a3, 0xa1a4,
81  0xa2cc, 0xa2ce, 0xa1cb, 0xa154, 0xa17d, 0xa17e, 0xa14d, 0xa14f,
82  0xa150, 0xa1fe, 0xa152, 0xa151, 0xa153, 0xa240, 0xa1c5, 0xa15a,
83  0xa1a1, 0xa1a2, 0x0081, 0x0082, 0xffff, 0xffff, 0xffff, 0xffff,
84  0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff,
85  0xffff, 0xffff,
86};
87
88static const u_int16_t mac_chinese_trad_2uni_page00[][2] = {
89  /* 0x008 */ { 0x0007,    0 }, { 0x0000,    0 }, { 0x0001,    3 }, { 0x0000,    0 },
90  /* 0x00c */ { 0x0000,    0 }, { 0x0000,    0 }, { 0x0000,    0 }, { 0xe000,    4 },
91};
92
93static const u_int16_t mac_chinese_trad_2uni_pagea1[][2] = {
94  /* 0xa14 */ { 0xe820,    7 }, { 0x041f,   12 }, { 0x0000,    0 }, { 0x6000,   18 },
95  /* 0xa18 */ { 0x0000,    0 }, { 0x0000,    0 }, { 0x001e,   20 }, { 0x0000,    0 },
96  /* 0xa1c */ { 0x0828,   24 }, { 0x0000,    0 }, { 0x0000,    0 }, { 0x4004,   27 },
97  /* 0xa20 */ { 0x0000,    0 }, { 0x0000,    0 }, { 0x0000,    0 }, { 0x0000,    0 },
98  /* 0xa24 */ { 0x0001,   29 }, { 0x0000,    0 }, { 0x0000,    0 }, { 0x0200,   30 },
99  /* 0xa28 */ { 0x0000,    0 }, { 0x0000,    0 }, { 0x0000,    0 }, { 0x0000,    0 },
100  /* 0xa2c */ { 0x5000,   31 },
101};
102
103static const cjk_index_t mac_chinese_trad_2uni_index[] = {
104  { { 0x0080, 0x00ff }, mac_chinese_trad_2uni_page00 },
105  { { 0xa140, 0xa2cf }, mac_chinese_trad_2uni_pagea1 },
106  { { 0, 0 }, NULL }
107};
108
109static const u_int16_t mac_chinese_trad_2uni_charset[] = {
110  0xe000, 0xf880, 0xf881, 0x00a0, 0x00a9, 0x2122, 0x2026, 0x00b7,
111  0x22ef, 0xe00c, 0xe003, 0xe00d, 0xe00e, 0xe011, 0xe010, 0xe012,
112  0xe009, 0xe015, 0xe00a, 0xe00b, 0xe016, 0xe017, 0xe004, 0xe005,
113  0xe001, 0xe014, 0xe008, 0x2295, 0xe00f, 0xe013, 0xe002, 0xe006,
114  0xe007,
115};
116
117static const u_int32_t mac_chinese_trad_compose[] = {
118  0x005cf87f, 0x203ef87c, 0x2502f87f, 0x3001f87d,
119  0x3014f87f, 0x3015f87f, 0x5341f87f, 0x5345f87f,
120  0xfe4bf87c, 0xff01f87d, 0xff08f87f, 0xff09f87f,
121  0xff0cf87d, 0xff0ef87d, 0xff0ef87e, 0xff0ff87f,
122  0xff1af87d, 0xff1bf87d, 0xff1ff87d, 0xff3cf87f,
123  0xff3ff87c, 0xff3ff87f, 0xff5bf87f, 0xff5df87f,
124};
125