资源简介
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
相关资源
- 嵌入式图形界面MiniGUI的示例程序9例
- web js虚拟键盘(中英文切换)
- 新笔画输入法8.2注册机
- 点阵字库显示中英文
- SAEJ1939 全部资料打包中英文
- http协议rfc2616中英文双版
- 易语言输入法向导部分源码易语言输
- 网新中英文企业手机电脑一体化建站
- 网新中英文企业手机电脑一体化建站
- 费曼物理学讲义(中英文版-PDF书签带
- 自然语言处理 中英文句法分析与依存
- tlc1543文件包程序,仿真,中英文文档
- 哥德尔、艾舍尔、巴赫——集异壁之
- cissp认证考试最新中英文题集
- 仓颉码转换
- 程序员输入法unicode版
- 一个用C写很不错的GPRS的PDU编码程序
- Design and Implementation of the lwIP TCP_IP S
- HTTP权威指南[中英文对照阅读版].pdf
- 具体数学 计算机科学基础第2版中英文
- JLX12832G ST7567中英文说明书
- 浙大自动控制原理 课件中英文
- 中英文双语客服系统
- Qt 拼音输入法
- HMC5883L罗盘指南针模块库文件及中英文
- 中英文PCL5语言参考手册_11086676.zip
- FastReport.NET 中英文帮助手册(两本都
- swift-通讯录最简单的中英文混合排序
- 101输入法xp及9.1版
- MiniGUI移植到uCOS 移植全部源码
评论
共有 条评论