資源簡介
hz.ime
其中為字庫文件集,包括拼音、筆畫、智能漢字詞組碼表
代碼簡易,對于研究輸入法很有幫助...

代碼片段和文件信息
//////////////////////////////////////////////////////////////////////////
// Copyright?(C)?2007-2008?福建星網銳捷通訊股份有限公司
// All?rights?reserved.
//
// 文件名稱:JYInput.c
// 摘????要:
//
// 日????志
// 版????本:1.00
// 創?建?者:Chen?Jiaqi
// 創建時間:2008-1-19?22:58:17
//////////////////////////////////////////////////////////////////////////
#include?
#include?“JYInput.h“
#include?“pyTbl.h“
#include?“xres.h“
//#define?SCREEN_WIDTH 160
//#define?SCREEN_HEIGHT 240
//#define?IME_LEFT (205)
//#define?IME_RIGHT (240)
#define?FONT_SIZE 12
#define?METHODAREA_XPOS 2
#define?METHODAREA_YPOS 2
#define?SECONDLINE_XPOS 8
#define?SECONDLINE_YPOS 18
#define?FIRSTLINE_XPOS 42
#define?FIRSTLINE_YPOS 2
//?手寫相關定義
#ifndef?WIN32
#ifdef?IME_HANDWRITE_ENABLE
//指針類消息
#define?XM_POINTERFIRST 0x00070000
#define?XM_POINTERUP 0x00070001
#define?XM_POINTERDOWN 0x00070002
#define?XM_POINTERMOVE 0x00070003
#define?XM_POINTERLAST 0x0007FFFF
#endif
#endif
/************************************************************************/
/*?按鍵定義?????????????????????????????????????????????????????????????*/
/************************************************************************/
#define?KEY_0 ‘0‘
#define?KEY_1 ‘1‘
#define?KEY_2 ‘2‘
#define?KEY_3 ‘3‘
#define?KEY_4 ‘4‘
#define?KEY_5 ‘5‘
#define?KEY_6 ‘6‘
#define?KEY_7 ‘7‘
#define?KEY_8 ‘8‘
#define?KEY_9 ‘9‘
#define?KEY_XING ‘*‘
#define?KEY_JING ‘#‘
#define?KEY_CONTROL 0x80
#define?KEY_UP (KEY_CONTROL?+?0x1)
#define?KEY_DOWN (KEY_CONTROL?+?0x2)
#define?KEY_LEFT (KEY_CONTROL?+?0x3)
#define?KEY_RIGHT (KEY_CONTROL?+?0x4)
#define?KEY_LFUNC (KEY_CONTROL?+?0x5)
#define?KEY_RFUNC (KEY_CONTROL?+?0x6)
//////////////////////////////////////////////////////////////////////////
#define?AUTO_COMPLETE_COUNT 39
#define?LINE_DISPLAY_MAXCOUNT 10
#define?PY_TYPE_MAXCOUNT 7
#define?HZ_OUTCODE_MAXCOUNT 10
#define?BH_TYPE_MAXCOUNT 10
//////////////////////////////////////////////////////////////////////////
//?數據處理結構定義
typedef?struct?__tag_INPUT_NODE{
char?str[4];
BOOL?IsHz;
struct?__tag_INPUT_NODE?*?pre;
struct?__tag_INPUT_NODE?*?next;
}PACKED_END?ST_INPUT_NODE;
typedef?struct?__tag_INPUT_INFO{
struct?__tag_INPUT_INFO?*?head; //input?text?chain?header?node
struct?__tag_INPUT_INFO?*?tail;
struct?__tag_INPUT_INFO?*?cursor_pos; //current?cursor?node
int?nPos;
int?mode; //input?mode(alpha?onlydigistal?only...etc.)
int?keymode; //keyboard?mode(alphachineasesymbol...)
char?hz_outcode[HZ_OUTCODE_MAXCOUNT]; //chinese?input?out?code
char?py_code[PY_TYPE_MAXCOUNT];
int?outcode_cur; //current?outcode?position(len)
int?hz_found_begin; //hz?found?begin?position(?in?Py_List3?)
int?hz_found_end; //hz?found?end?position
int?hz_found_cur; //hz?found?current?position
}PACKED_END?ST_INPUT_INFO;
typedef?struct?__tag_EN_INFO{
int?nCurKey;
int?nPressCount;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????6128??2008-08-05?16:15??pyTbl.c
?????文件???????4041??2008-08-05?16:15??pyTbl.h
?????文件?????170488??2008-09-05?10:05??hz.ime
?????文件??????53844??2008-09-07?07:37??JYInput.c
?????文件???????3707??2008-08-25?12:46??JYInput.h
-----------?---------??----------?-----??----
???????????????238208????????????????????5
評論
共有 條評論