高分求拼音输入法词库

chrix 2005-05-19 11:29:14
最新在做一个拼音处理程序,需要词库
最好是文本格式的,
500分求
我的邮箱是chrixbell@gmail.com
...全文
141 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
柯本 2005-06-08
  • 打赏
  • 举报
回复
另外,我把我用的发给你了
柯本 2005-06-08
  • 打赏
  • 举报
回复
//查拼音,前段刚回过的,找不到原贴了,幸好电脑中有
HKL chime(const char *imename)
{
HKL pt[20];
int ct,i;
char iname[80];

ct = GetKeyboardLayoutList(20,pt );
for(i=0;i<ct;i++)
if (ImmEscape(pt[i], NULL, IME_ESC_IME_NAME,iname ) > 0 )
if (strcmp(iname,imename)==0)
{
ActivateKeyboardLayout(pt[i],0); // 切换到该输入法
return pt[i];
}
return NULL;
}
char *getima(HKL pt,const char *hz)
{
int dwg;
static char buff[256];
char *p;

dwg=ImmGetConversionList(pt,NULL,hz,NULL,0,GCL_REVERSECONVERSION);
if (dwg<=0) // 是否可反查
return NULL;
ImmGetConversionList(pt,NULL,hz,(PCANDIDATELIST)buff,dwg,GCL_REVERSECONVERSION);
p=(char *)buff;
p+=buff[24];
return p;

}
void CGetimeDlg::OnButton1()
{
// TODO: Add your control notification handler code here
HKL pt;
char *p;
pt=chime("全拼");
if (pt==NULL)
{
MessageBox("本机上无全拼输入法");

}
p=getima(pt,"劘");
if (p==NULL)
MessageBox("不能得到'劘'的拼音");
else
MessageBox(p);

}

void CGetimeDlg::OnButton2()
{
// TODO: Add your control notification handler code here
unsigned char *p=( unsigned char *)"本地";
unsigned char p1[5];

LCMapString(0x0804,LCMAP_TRADITIONAL_CHINESE,(char *) p, -1, (char *)p1, 5);
CString x;
x.Format("%x %x %x %x ==> %x %x %x %x",
p[0],p[1],p[2],p[3],p1[0],p1[1],p1[2],p1[3]);
MessageBox(x);
}

char *gethzpy(const char *hz)
{
static char buff[256]; // 存放结果
HKL pt;
char *p;
int i;
char ahz[3];

pt=chime("全拼");
if (pt==NULL)
return NULL;
buff[0]=0;
ahz[2]=0;

while(*hz)
{
ahz[0]=hz[0];
ahz[1]=hz[1];

p=getima(pt,ahz);
if (p)
strcat(buff,p);
hz+=2;
}
return buff;

}


void CGetimeDlg::OnButton3()
{
// TODO: Add your control notification handler code here
MessageBox(gethzpy("我的拼音"));

}
bohut 2005-06-08
  • 打赏
  • 举报
回复
http://community.csdn.net/Expert/topic/3179/3179631.xml?temp=.5558435
darkread 2005-06-08
  • 打赏
  • 举报
回复
你去查查,有一个WINDOWS命令可以反编译现有的词库的.我用过,现在忘了.
MuseIn 2005-05-20
  • 打赏
  • 举报
回复
up
建议去清华BBS问问
chrix 2005-05-20
  • 打赏
  • 举报
回复
谢谢帮顶,还同时求拼音和字对应的字库

2,586

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 资源
社区管理员
  • 资源
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧