xref: /titanic_52/usr/src/lib/iconv_modules/ko/common/ktable.h (revision 91e1e26ac6a73ce959289cf7d3d96c4baedbe0b8)
1*91e1e26aSAlexander Pyhalov /*
2*91e1e26aSAlexander Pyhalov  * CDDL HEADER START
3*91e1e26aSAlexander Pyhalov  *
4*91e1e26aSAlexander Pyhalov  * The contents of this file are subject to the terms of the
5*91e1e26aSAlexander Pyhalov  * Common Development and Distribution License (the "License").
6*91e1e26aSAlexander Pyhalov  * You may not use this file except in compliance with the License.
7*91e1e26aSAlexander Pyhalov  *
8*91e1e26aSAlexander Pyhalov  * You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
9*91e1e26aSAlexander Pyhalov  * or http://www.opensolaris.org/os/licensing.
10*91e1e26aSAlexander Pyhalov  * See the License for the specific language governing permissions
11*91e1e26aSAlexander Pyhalov  * and limitations under the License.
12*91e1e26aSAlexander Pyhalov  *
13*91e1e26aSAlexander Pyhalov  * When distributing Covered Code, include this CDDL HEADER in each
14*91e1e26aSAlexander Pyhalov  * file and include the License file at src/OPENSOLARIS.LICENSE.
15*91e1e26aSAlexander Pyhalov  * If applicable, add the following below this CDDL HEADER, with the
16*91e1e26aSAlexander Pyhalov  * fields enclosed by brackets "[]" replaced with your own identifying
17*91e1e26aSAlexander Pyhalov  * information: Portions Copyright [yyyy] [name of copyright owner]
18*91e1e26aSAlexander Pyhalov  *
19*91e1e26aSAlexander Pyhalov  * CDDL HEADER END
20*91e1e26aSAlexander Pyhalov  */
21*91e1e26aSAlexander Pyhalov /*
22*91e1e26aSAlexander Pyhalov  * Copyright (c) 1994 by Sun Microsystems, Inc.
23*91e1e26aSAlexander Pyhalov  */
24*91e1e26aSAlexander Pyhalov 
25*91e1e26aSAlexander Pyhalov 
26*91e1e26aSAlexander Pyhalov 
27*91e1e26aSAlexander Pyhalov #ifndef	_KTABLE_H_
28*91e1e26aSAlexander Pyhalov #define	_KTABLE_H_
29*91e1e26aSAlexander Pyhalov 
30*91e1e26aSAlexander Pyhalov 
31*91e1e26aSAlexander Pyhalov #include <widec.h>
32*91e1e26aSAlexander Pyhalov 
33*91e1e26aSAlexander Pyhalov /*  7 bit Sound ---> 5 bit Combination Code		*/
34*91e1e26aSAlexander Pyhalov /*	: give 5 bit combination code to each sound	*/
35*91e1e26aSAlexander Pyhalov 
36*91e1e26aSAlexander Pyhalov extern short X32_19[];	/* INITIAL SOUND	*/
37*91e1e26aSAlexander Pyhalov extern short X32_21[];	/* MIDDLE SOUND		*/
38*91e1e26aSAlexander Pyhalov extern short X32_28[];	/* FINAL SOUND		*/
39*91e1e26aSAlexander Pyhalov 
40*91e1e26aSAlexander Pyhalov 
41*91e1e26aSAlexander Pyhalov /*  5 bit Combination Code ---> 7 bit code 	*/
42*91e1e26aSAlexander Pyhalov /*	: give 7 bit Code to each Sound		*/
43*91e1e26aSAlexander Pyhalov 
44*91e1e26aSAlexander Pyhalov extern short Y19_32[];	/* INITIAL SOUND	*/
45*91e1e26aSAlexander Pyhalov extern short Y21_32[];	/* MIDDLE SOUND		*/
46*91e1e26aSAlexander Pyhalov extern short Y28_32[];	/* FINAL SOUND		*/
47*91e1e26aSAlexander Pyhalov 
48*91e1e26aSAlexander Pyhalov 
49*91e1e26aSAlexander Pyhalov /*
50*91e1e26aSAlexander Pyhalov  * Bit map of all possible Hangul Character compositions.
51*91e1e26aSAlexander Pyhalov  * 	first  sound = 19 consonants;
52*91e1e26aSAlexander Pyhalov  *	middle sound = 21 vowels;
53*91e1e26aSAlexander Pyhalov  *	final  sound = 28 consonants;
54*91e1e26aSAlexander Pyhalov  * For each array element of first_sound and middle_sound, there is bit map
55*91e1e26aSAlexander Pyhalov  * of 28 final_sound in 32bits according to ***KSC 5601***.
56*91e1e26aSAlexander Pyhalov  */
57*91e1e26aSAlexander Pyhalov extern long cmp_bitmap[19][21];
58*91e1e26aSAlexander Pyhalov 
59*91e1e26aSAlexander Pyhalov /*
60*91e1e26aSAlexander Pyhalov  * Each cmp_srctbl[i][j] has 2-byte compeletion code
61*91e1e26aSAlexander Pyhalov  * where i is initial_sound and j is middle_sound.
62*91e1e26aSAlexander Pyhalov  * So, cmp_srctbl[i][0] is the code for some initial_sound and
63*91e1e26aSAlexander Pyhalov  * the first of middle_sound(always 'a').
64*91e1e26aSAlexander Pyhalov  */
65*91e1e26aSAlexander Pyhalov extern unsigned short cmp_srchtbl[19][21];
66*91e1e26aSAlexander Pyhalov 
67*91e1e26aSAlexander Pyhalov 
68*91e1e26aSAlexander Pyhalov #endif	/* _KTABLE_H_ */
69