嵌入式linux t9输入法,T9: T9 输入法

#T9

Instruction

this is a c lib for t9 inputType.

include

t9_base.h

t9_base.c

provide functions

void

py_init();

instruc

this is for lib init , to init variables and alloc meme to variables.

params

void

return

void

void

py_input(char *);

instruc

input some string from 0-9 (this map t9 keynote)

params

char *

reutrn

void

void

cn_log(int Type);

instruc

log two type string , one chinese word or now chinese words table , of whitch cursor pointed to .

params

OBJ_TYPE(int)

there provide two argument , TYPE_STRING or TYPE_CN_WORD

return

void

int

MB_len(unsigned char * );

instruc

a function a calculate length of list whitch type is ' unsigned char * ' , specially , this func not dependen on any

env , just build on ANSI C.

params

uchar * (unsigned char *) any list whitch type is abled.

return

int

void *

py_out ();

instruc

this is a out function , now is blank , after PC test passed . i will filled it.

void

Choose(int CHOOSE_TYPE,int l_or_r);

instruc

this is a base function to handler cursor of t9 after initialized. include tables of chinese (mb) and one word of mb.

params

int CHOOSE_TYPE

int l_or_r

to first arg provide two argument in ARGUMENTS , CHOOSE_MB and CHOOSE_CHINESE

to second arg privide two argument in ARGUMENTS, LEDT and RIGHT

Arguments

###int area

TYPE_STRING 564

TYPE_CN 90

CHOOSE_MB 1

CHOOSE_CHINESE 2

LEFT 108

RIGHT 114

T9PY 1 //T9拼音

T9Dig 0 //数字

T9Char 2 //字母 low

T9Com 4 //标点

T9CharB 3 // Big

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Linux嵌入式系统中,可以通过使用Qt编写一个中文输入法来实现触摸屏的输入功能。这个输入法可以通过鼠标点击触摸屏的位置来确定输入的位置,然后将相应的中文字符显示在屏幕上。这个输入法可以支持数字、字母和中文的输入,并且可以切换简繁体中文。同时,它还可以有一些额外的功能,比如自动记忆上一次输入的词语,并在下次输入时自动显示在最前面。此外,还可以自定义特殊词语,支持简拼缩写的输入方式,并且可以进行简繁切换[3]。通过不断的迭代和用户反馈,这个输入法可以逐渐变得更加友好和人性化,满足用户不同的需求。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [嵌入式Linux入门-输入系统应用编程(鼠标、键盘、触摸屏)](https://blog.csdn.net/freestep96/article/details/126802108)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *3* [Qt/C++编写精美输入法(历时十年迭代/可换肤/支持Qt4/5/6/win/linux/mac/嵌入式等)](https://blog.csdn.net/feiyangqingyun/article/details/131220891)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值