# T9 **Repository Path**: dark.H/T9 ## Basic Information - **Project Name**: T9 - **Description**: T9 输入法 - **Primary Language**: C - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2014-10-15 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #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