FreeCalypso > hg > leo2moko-debug
comparison g23m/condat/ms/src/bmi/MmiDictionary.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 #ifndef _DICTIONARY_H_ | |
2 #define _DICTIONARY_H_ | |
3 /******************************************************************************* | |
4 | |
5 CONDAT (UK) | |
6 | |
7 ******************************************************************************** | |
8 | |
9 This software product is the property of Condat (UK) Ltd and may not be | |
10 disclosed to any third party without the express permission of the owner. | |
11 | |
12 ******************************************************************************** | |
13 | |
14 $Project name: Basic MMI | |
15 $Project code: BMI | |
16 $Module: MMI | |
17 $File: MmiDictionary | |
18 $Revision: 1.0 | |
19 | |
20 $Author: Condat(UK) | |
21 $Date: | |
22 | |
23 ******************************************************************************** | |
24 | |
25 Description: Headers of predictive text dictionary functions. | |
26 Interfaces between the Lation text editor and the EziText API. | |
27 | |
28 ******************************************************************************** | |
29 $History: MmiDictionary.h | |
30 | |
31 | |
32 | |
33 $End | |
34 | |
35 *******************************************************************************/ | |
36 //#include "STDDEFS.H" | |
37 #define ENGLISH 1 | |
38 | |
39 //initialising dictionary given language and entry mode e.g. stroke, pinyin | |
40 int Initialize_Dict(UBYTE language, UBYTE entry_mode); | |
41 | |
42 //add a char to end of word, returns first matching candidate | |
43 int DictAlphaKeyPress(UBYTE keycode, char* first_candidate); | |
44 | |
45 | |
46 //candidate selected | |
47 //need to reset everything. | |
48 int ResetDictSearch(); | |
49 | |
50 //get the next set of candidates | |
51 //At the moment we only get one candidate at a time, but this allows us to get more than one | |
52 int MoreCandidates(char* first_candidate, int* no_of_candidates); | |
53 | |
54 //takes in a string and converts it to keypresses, getting the first matching candidate back | |
55 int ConvertToKeyPresses(char* string, char* first_candidate); | |
56 | |
57 //deletes the last char off the current word | |
58 int DictBackSpace(char* first_candidate); | |
59 | |
60 #endif |