1 /** 2 * bopomofo-private.h 3 * 4 * Copyright (c) 2008, 2012 5 * libchewing Core Team. See ChangeLog for details. 6 * 7 * See the file "COPYING" for information on usage and redistribution 8 * of this file. 9 */ 10 11 /* *INDENT-OFF* */ 12 #ifndef _CHEWING_BOPOMOFO_PRIVATE_H 13 #define _CHEWING_BOPOMOFO_PRIVATE_H 14 /* *INDENT-ON* */ 15 16 #include "chewing-private.h" 17 18 /** Chewing Phonetic Definitions */ 19 enum { 20 BOPOMOFO_IGNORE, 21 BOPOMOFO_ABSORB, 22 BOPOMOFO_COMMIT, 23 BOPOMOFO_KEY_ERROR, 24 BOPOMOFO_ERROR, 25 BOPOMOFO_NO_WORD, 26 BOPOMOFO_OPEN_SYMBOL_TABLE 27 }; 28 29 /** keyboard layout */ 30 enum { 31 KB_DEFAULT, 32 KB_HSU, 33 KB_IBM, 34 KB_GIN_YIEH, 35 KB_ET, 36 KB_ET26, 37 KB_DVORAK, 38 KB_DVORAK_HSU, 39 KB_DACHEN_CP26, 40 KB_HANYU_PINYIN, 41 KB_THL_PINYIN, 42 KB_MPS2_PINYIN, 43 KB_CARPALX, 44 KB_TYPE_NUM 45 }; 46 47 int BopomofoPhoInput(ChewingData *, int key); /* assume `key' is "ascii" code. */ 48 int BopomofoRemoveLast(BopomofoData *); 49 int BopomofoRemoveAll(BopomofoData *); 50 int BopomofoIsEntering(BopomofoData *); 51 52 /* *INDENT-OFF* */ 53 #endif 54 /* *INDENT-ON* */ 55