xref: /titanic_50/usr/src/cmd/geniconvtbl/samples/UTF-8_to_ISO8859-1.src (revision a237e38e9161f0acd6451439d4a7dd597e66291d)
1// ident	"%Z%%M%	%I%	%E% SMI"
2// Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3// Use is subject to license terms.
4//
5// CDDL HEADER START
6//
7// The contents of this file are subject to the terms of the
8// Common Development and Distribution License, Version 1.0 only
9// (the "License").  You may not use this file except in compliance
10// with the License.
11//
12// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13// or http://www.opensolaris.org/os/licensing.
14// See the License for the specific language governing permissions
15// and limitations under the License.
16//
17// When distributing Covered Code, include this CDDL HEADER in each
18// file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19// If applicable, add the following below this CDDL HEADER, with the
20// fields enclosed by brackets "[]" replaced with your own identifying
21// information: Portions Copyright [yyyy] [name of copyright owner]
22//
23// CDDL HEADER END
24//
25
26//
27// UTF-8 to ISO8859-1 mapping:
28//
29
30UTF-8%ISO8859-1 {
31    direction {
32	condition {
33		between 0x0...0x7f;
34	} map {
35		0x0...0x7f	0x0
36	};
37
38	condition {
39		between 0xc280...0xc3bf;
40	} map {
41		0xc280		0x80
42		0xc281		0x81
43		0xc282		0x82
44		0xc283		0x83
45		0xc284		0x84
46		0xc285		0x85
47		0xc286		0x86
48		0xc287		0x87
49		0xc288		0x88
50		0xc289		0x89
51		0xc28a		0x8a
52		0xc28b		0x8b
53		0xc28c		0x8c
54		0xc28d		0x8d
55		0xc28e		0x8e
56		0xc28f		0x8f
57		0xc290		0x90
58		0xc291		0x91
59		0xc292		0x92
60		0xc293		0x93
61		0xc294		0x94
62		0xc295		0x95
63		0xc296		0x96
64		0xc297		0x97
65		0xc298		0x98
66		0xc299		0x99
67		0xc29a		0x9a
68		0xc29b		0x9b
69		0xc29c		0x9c
70		0xc29d		0x9d
71		0xc29e		0x9e
72		0xc29f		0x9f
73		0xc2a0		0xa0
74		0xc2a1		0xa1
75		0xc2a2		0xa2
76		0xc2a3		0xa3
77		0xc2a4		0xa4
78		0xc2a5		0xa5
79		0xc2a6		0xa6
80		0xc2a7		0xa7
81		0xc2a8		0xa8
82		0xc2a9		0xa9
83		0xc2aa		0xaa
84		0xc2ab		0xab
85		0xc2ac		0xac
86		0xc2ad		0xad
87		0xc2ae		0xae
88		0xc2af		0xaf
89		0xc2b0		0xb0
90		0xc2b1		0xb1
91		0xc2b2		0xb2
92		0xc2b3		0xb3
93		0xc2b4		0xb4
94		0xc2b5		0xb5
95		0xc2b6		0xb6
96		0xc2b7		0xb7
97		0xc2b8		0xb8
98		0xc2b9		0xb9
99		0xc2ba		0xba
100		0xc2bb		0xbb
101		0xc2bc		0xbc
102		0xc2bd		0xbd
103		0xc2be		0xbe
104		0xc2bf		0xbf
105		0xc380		0xc0
106		0xc381		0xc1
107		0xc382		0xc2
108		0xc383		0xc3
109		0xc384		0xc4
110		0xc385		0xc5
111		0xc386		0xc6
112		0xc387		0xc7
113		0xc388		0xc8
114		0xc389		0xc9
115		0xc38a		0xca
116		0xc38b		0xcb
117		0xc38c		0xcc
118		0xc38d		0xcd
119		0xc38e		0xce
120		0xc38f		0xcf
121		0xc390		0xd0
122		0xc391		0xd1
123		0xc392		0xd2
124		0xc393		0xd3
125		0xc394		0xd4
126		0xc395		0xd5
127		0xc396		0xd6
128		0xc397		0xd7
129		0xc398		0xd8
130		0xc399		0xd9
131		0xc39a		0xda
132		0xc39b		0xdb
133		0xc39c		0xdc
134		0xc39d		0xdd
135		0xc39e		0xde
136		0xc39f		0xdf
137		0xc3a0		0xe0
138		0xc3a1		0xe1
139		0xc3a2		0xe2
140		0xc3a3		0xe3
141		0xc3a4		0xe4
142		0xc3a5		0xe5
143		0xc3a6		0xe6
144		0xc3a7		0xe7
145		0xc3a8		0xe8
146		0xc3a9		0xe9
147		0xc3aa		0xea
148		0xc3ab		0xeb
149		0xc3ac		0xec
150		0xc3ad		0xed
151		0xc3ae		0xee
152		0xc3af		0xef
153		0xc3b0		0xf0
154		0xc3b1		0xf1
155		0xc3b2		0xf2
156		0xc3b3		0xf3
157		0xc3b4		0xf4
158		0xc3b5		0xf5
159		0xc3b6		0xf6
160		0xc3b7		0xf7
161		0xc3b8		0xf8
162		0xc3b9		0xf9
163		0xc3ba		0xfa
164		0xc3bb		0xfb
165		0xc3bc		0xfc
166		0xc3bd		0xfd
167		0xc3be		0xfe
168		0xc3bf		0xff
169	};
170
171	// We convert every other character to '?', i.e., non-identical
172	// character.
173	true 	operation {
174		output = 0x3f;
175		discard 1;
176	};
177   };
178}
179