XimThai.h revision 1ab64890
1/* $Xorg: XimThai.h,v 1.4 2001/02/09 02:03:38 xorgcvs Exp $ */
2/***********************************************************
3
4Copyright 1993, 1998  The Open Group
5
6Permission to use, copy, modify, distribute, and sell this software and its
7documentation for any purpose is hereby granted without fee, provided that
8the above copyright notice appear in all copies and that both that
9copyright notice and this permission notice appear in supporting
10documentation.
11
12The above copyright notice and this permission notice shall be included in
13all copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22Except as contained in this notice, the name of The Open Group shall not be
23used in advertising or otherwise to promote the sale, use or other dealings
24in this Software without prior written authorization from The Open Group.
25
26
27Copyright 1993 by Digital Equipment Corporation, Maynard, Massachusetts.
28
29                        All Rights Reserved
30
31Permission to use, copy, modify, and distribute this software and its
32documentation for any purpose and without fee is hereby granted,
33provided that the above copyright notice appear in all copies and that
34both that copyright notice and this permission notice appear in
35supporting documentation, and that the name of Digital not be
36used in advertising or publicity pertaining to distribution of the
37software without specific, written prior permission.
38
39DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
40ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
41DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
42ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
43WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
44ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
45SOFTWARE.
46
47******************************************************************/
48/* $XFree86: xc/lib/X11/XimThai.h,v 1.5 2001/12/14 19:54:08 dawes Exp $ */
49
50/*
51**++
52**  FACILITY:
53**
54**      Xlib
55**
56**  ABSTRACT:
57**
58**      Definition file for Thai specific functions.
59**
60**  MODIFICATION HISTORY:
61**
62**/
63
64#ifndef _XIMTHAI_H_
65#define _XIMTHAI_H_
66
67#include <X11/Xlib.h>
68
69/* Classification of characters in TIS620 according to WTT */
70
71#define CTRL    0   /* control chars */
72#define NON     1   /* non composibles */
73#define CONS    2   /* consonants */
74#define LV      3   /* leading vowels */
75#define FV1     4   /* following vowels */
76#define FV2     5
77#define FV3     6
78#define BV1     7   /* below vowels */
79#define BV2     8
80#define BD      9   /* below diacritics */
81#define TONE    10  /* tonemarks */
82#define AD1     11  /* above diacritics */
83#define AD2     12
84#define AD3     13
85#define AV1     14  /* above vowels */
86#define AV2     15
87#define AV3     16
88
89
90/* extended classification */
91
92#define DEAD    17  /* group of non-spacing characters */
93
94
95/* display levels in display cell */
96
97#define NONDISP 0   /* non displayable */
98#define TOP     1
99#define ABOVE   2
100#define BASE    3
101#define BELOW   4
102
103
104/* Input Sequence Check modes */
105
106#define WTT_ISC1        1   /* WTT default ISC mode */
107#define WTT_ISC2        2   /* WTT strict ISC mode */
108#define THAICAT_ISC     3   /* THAICAT ISC mode */
109#define NOISC	      255   /* No ISC */
110
111
112#endif /* _XIMTHAI_H_ */
113