Back to index

im-sdk  12.3.91
wtt_isc.h
Go to the documentation of this file.
00001 #ifndef _WTT_ISC_H_
00002 #define _WTT_ISC_H_
00003 
00004 /* Classification of characters in TIS620 according to WTT */
00005 
00006 #define CTRL    0   /* control chars */
00007 #define NON     1   /* non composibles */
00008 #define CONS    2   /* consonants */
00009 #define LV      3   /* leading vowels */
00010 #define FV1     4   /* following vowels */
00011 #define FV2     5
00012 #define FV3     6
00013 #define BV1     7   /* below vowels */
00014 #define BV2     8
00015 #define BD      9   /* below diacritics */
00016 #define TONE    10  /* tonemarks */
00017 #define AD1     11  /* above diacritics */
00018 #define AD2     12
00019 #define AD3     13
00020 #define AV1     14  /* above vowels */
00021 #define AV2     15
00022 #define AV3     16
00023 
00024 
00025 /* extended classification */
00026 
00027 #define DEAD    17  /* group of non-spacing characters */
00028 
00029 
00030 /* display levels in display cell */
00031 
00032 #define NONDISP 0   /* non displayable */
00033 #define TOP     1
00034 #define ABOVE   2
00035 #define BASE    3
00036 #define BELOW   4
00037 
00038 
00039 /* Input Sequence Check modes */
00040 
00041 #define WTT_ISC0        0   /* WTT passthrough ISC mode */
00042 #define WTT_ISC1        1   /* WTT basic ISC mode */
00043 #define WTT_ISC2        2   /* WTT strict ISC mode */
00044 #define THAICAT_ISC     3   /* THAICAT ISC mode */
00045 #define WTT_ISC_MODES_NUM 3
00046 
00047 /* Input Sequence Check names */
00048 #define WTT_ISC0_NAME           "ไม่ตรวจ"
00049 #define WTT_ISC1_NAME           "ตรวจ"
00050 #define WTT_ISC2_NAME           "เข้มงวด"
00051 #define THAICAT_ISC_NAME        "THAICAT"
00052 
00053 #ifndef Bool
00054 #define Bool int
00055 #endif
00056 
00057 #ifndef False
00058 #define False 0
00059 #endif
00060 
00061 #ifndef True
00062 #define True 1
00063 #endif
00064 
00065 #endif /* _WTT_ISC_H_ */