xref: /illumos-gate/usr/src/lib/iconv_modules/hi_IN/include/ea-iscii.h (revision cd61ae21816e53b94bc1673f3f1aa651fc3115e8)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright(c) 2001 Sun Microsystems, Inc.
23  * All rights reserved.
24  */
25 
26 #ifndef _EA_ISCII_H_
27 #define _EA_ISCII_H_
28 
29 #define uchar                unsigned char
30 
31 #define NUKTA                0xFD
32 #define MATRA                0xFE
33 #define COMBINED_MATRA_NUKTA 0xFF
34 
35 #define LEADING_BYTE         'x'
36 #define NUKTA_VALUE          'x'
37 #define FIRST_VOWEL          0x43
38 
39 
40 typedef struct _entry {
41     uchar ea_iscii;
42     uchar iscii;
43     int   count;
44 } Entry;
45 
46 Entry  eaiscii_isc_tbl[] = {
47     { 0x41, 0xA1, 2 },
48     { 0x43, 0xA4, 1 },
49     { 0x44, 0xB3, 4 },
50     { 0x48, 0xB8, 4 },
51     { 0x4C, 0xBD, 10 },
52     { 0x56, 0xC8, 5 },
53     { 0x61, 0xCD, 1 },
54     { 0x62, 0xCF, 4 },
55     { 0x66, 0xD4, 5 },
56     { 0x6B, 0xDA, 9 },
57     { 0x74, 0xE4, 3 },
58     { 0x77, 0xE8, 3 },
59     { 0x7A, 0xEF, 1 }
60 };
61 
62 Entry isc_eaiscii_tbl[] = {
63     { 0x41, 0xA1, 2 },
64     { 0x42, 0xA3, NUKTA },
65     { 0x43, 0xA4, 1 },
66     { 0x6B, 0xA5, MATRA },
67     { 0x6C, 0xA6, MATRA },
68     { 0x6D, 0xA7, MATRA },
69     { 0x6E, 0xA8, MATRA },
70     { 0x6F, 0xA9, MATRA },
71     { 0x70, 0xAA, MATRA },
72     { 0x71, 0xAB, MATRA },
73     { 0x72, 0xAC, MATRA },
74     { 0x73, 0xAD, MATRA },
75     { 0x73, 0xAE, COMBINED_MATRA_NUKTA },
76     { 0x74, 0xAF, MATRA },
77     { 0x75, 0xB0, MATRA },
78     { 0x76, 0xB1, MATRA },
79     { 0x76, 0xB2, COMBINED_MATRA_NUKTA },
80     { 0x44, 0xB3, 4 },
81     { 0x47, 0xB7, NUKTA },
82     { 0x48, 0xB8, 4 },
83     { 0x4B, 0xBC, NUKTA },
84     { 0x4C, 0xBD, 10 },
85     { 0x55, 0xC7, NUKTA },
86     { 0x56, 0xC8, 5 },
87     { 0x61, 0xCD, 1 },
88     { 0x61, 0xCE, NUKTA },
89     { 0x62, 0xCF, 4 },
90     { 0x65, 0xD3, NUKTA },
91     { 0x66, 0xD4, 5 },
92     { 0x6A, 0xD9, NUKTA },
93     { 0x6B, 0xDA, 9 },
94     { 0x73, 0xE3, NUKTA },
95     { 0x74, 0xE4, 3 },
96     { 0x76, 0xE7, NUKTA },
97     { 0x77, 0xE8, 3 },
98     { 0x7A, 0xEF, 1 }
99 };
100 
101 uchar EAISCII_nukta_type [] = {
102     0x0, 0x0,  0xA3, 0x0,  0x0, 0x0,  0x0,  0xB7, /* 40 - 47 */
103     0x0, 0x0,  0x0,  0xBC, 0x0, 0x0,  0x0,  0x0,  /* 48 - 4F */
104     0x0, 0x0,  0x0,  0x0,  0x0, 0xC7, 0x0,  0x0,  /* 50 - 57 */
105     0x0, 0x0,  0x0,  0x0,  0x0, 0x0,  0x0,  0x0,  /* 58 - 5F */
106     0x0, 0xCE, 0x0,  0x0,  0x0, 0x0,  0x0,  0x0,  /* 60 - 67 */
107     0x0, 0x0,  0xD9, 0x0,  0x0, 0x0,  0x0,  0x0,  /* 68 - 6F */
108     0x0, 0x0,  0x0,  0xE3, 0x0, 0x0,  0xE7, 0x0,  /* 70 - 77 */
109     0x0, 0x0,  0x0,  0x0,  0x0, 0x0,  0x0,  0x0   /* 78 - 7F */
110 };
111 
112 uchar EAISCII_vowel_type [] = {
113     0x0,  0x0,  0x0,  0x0,  0x0,  0x0,  0x0,  0x0, /* 40 - 47 */
114     0x0,  0x0,  0x0,  0x0,  0x0,  0x0,  0x0,  0x0, /* 48 - 4F */
115     0x0,  0x0,  0x0,  0x0,  0x0,  0x0,  0x0,  0x0, /* 50 - 57 */
116     0x0,  0x0,  0x0,  0x0,  0x0,  0x0,  0x0,  0x0, /* 58 - 5F */
117     0x0,  0x0,  0x0,  0x0,  0x0,  0x0,  0x0,  0x0, /* 60 - 67 */
118     0x0,  0x0,  0x0,  0xA5, 0xA6, 0xA7, 0xA8, 0xA9,/* 68 - 6F */
119     0xAA, 0xAB, 0xAC, 0xAD, 0xAF, 0xB0, 0xB1, 0x0, /* 70 - 77 */
120     0x0,  0x0,  0x0,  0x0,  0x0,  0x0,  0x0,  0x0  /* 78 - 7F */
121 };
122 
123 #endif
124