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