-
Notifications
You must be signed in to change notification settings - Fork 90
/
zuin.h
45 lines (39 loc) · 961 Bytes
/
zuin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* zuin.h
*
* Copyright (c) 1999, 2000, 2001
* Lu-chuan Kung and Kang-pen Chen.
* All rights reserved.
*
* Copyright (c) 2004, 2005
* libchewing Core Team. See ChangeLog for details.
*
* See the file "COPYING" for information on usage and redistribution
* of this file.
*/
#ifndef _ZUIN_H
#define _ZUIN_H
/* Keyboard Layout */
#define KB_TYPE_NUM 9
#define KB_DEFAULT 0
#define KB_HSU 1
#define KB_IBM 2
#define KB_GIN_YIEH 3
#define KB_ET 4
#define KB_ET26 5
#define KB_DVORAK 6
#define KB_DVORAK_HSU 7
/* Assume there are at most 1000 zuin-keyboard layouts */
#define KB_HANYU_PINYING 1000
#define ZUIN_IGNORE 0
#define ZUIN_ABSORB 1
#define ZUIN_COMMIT 2
#define ZUIN_KEY_ERROR 4
#define ZUIN_ERROR 8
#define ZUIN_NO_WORD 16
/* Zuin module */
int ZuinPhoInput( ZuinData *,int key ); /* assume `key' is "ascii" code. */
int ZuinRemoveLast( ZuinData * );
int ZuinRemoveAll( ZuinData * );
int ZuinIsEntering( ZuinData * );
#endif