zhuyin.h | zhuyin.h | |||
---|---|---|---|---|
skipping to change at line 137 | skipping to change at line 137 | |||
/** | /** | |||
* zhuyin_set_chewing_scheme: | * zhuyin_set_chewing_scheme: | |||
* @context: the zhuyin context. | * @context: the zhuyin context. | |||
* @scheme: the chewing scheme. | * @scheme: the chewing scheme. | |||
* @returns: whether the set chewing scheme succeeded. | * @returns: whether the set chewing scheme succeeded. | |||
* | * | |||
* Change the chewing scheme of the zhuyin context. | * Change the chewing scheme of the zhuyin context. | |||
* | * | |||
*/ | */ | |||
bool zhuyin_set_chewing_scheme(zhuyin_context_t * context, | bool zhuyin_set_chewing_scheme(zhuyin_context_t * context, | |||
ChewingScheme scheme); | ZhuyinScheme scheme); | |||
/** | /** | |||
* zhuyin_set_full_pinyin_scheme: | * zhuyin_set_full_pinyin_scheme: | |||
* @context: the zhuyin context. | * @context: the zhuyin context. | |||
* @scheme: the full pinyin scheme. | * @scheme: the full pinyin scheme. | |||
* @returns: whether the set full pinyin scheme succeeded. | * @returns: whether the set full pinyin scheme succeeded. | |||
* | * | |||
* Change the full pinyin scheme of the zhuyin context. | * Change the full pinyin scheme of the zhuyin context. | |||
* | * | |||
*/ | */ | |||
bool zhuyin_set_full_pinyin_scheme(zhuyin_context_t * context, | bool zhuyin_set_full_pinyin_scheme(zhuyin_context_t * context, | |||
FullPinyinScheme scheme); | ZhuyinScheme scheme); | |||
/** | /** | |||
* zhuyin_fini: | * zhuyin_fini: | |||
* @context: the zhuyin context. | * @context: the zhuyin context. | |||
* | * | |||
* Finalize the zhuyin context. | * Finalize the zhuyin context. | |||
* | * | |||
*/ | */ | |||
void zhuyin_fini(zhuyin_context_t * context); | void zhuyin_fini(zhuyin_context_t * context); | |||
skipping to change at line 309 | skipping to change at line 309 | |||
* Parse multiple chewings and save it in the instance. | * Parse multiple chewings and save it in the instance. | |||
* | * | |||
*/ | */ | |||
size_t zhuyin_parse_more_chewings(zhuyin_instance_t * instance, | size_t zhuyin_parse_more_chewings(zhuyin_instance_t * instance, | |||
const char * chewings); | const char * chewings); | |||
/** | /** | |||
* zhuyin_in_chewing_keyboard: | * zhuyin_in_chewing_keyboard: | |||
* @instance: the zhuyin instance. | * @instance: the zhuyin instance. | |||
* @key: the input key. | * @key: the input key. | |||
* @symbol: the chewing symbol. | * @symbols: the chewing symbols must be freed by g_strfreev. | |||
* @returns: whether the key is in current chewing scheme. | * @returns: whether the key is in current chewing scheme. | |||
* | * | |||
* Check whether the input key is in current chewing scheme. | * Check whether the input key is in current chewing scheme. | |||
* | * | |||
*/ | */ | |||
bool zhuyin_in_chewing_keyboard(zhuyin_instance_t * instance, | bool zhuyin_in_chewing_keyboard(zhuyin_instance_t * instance, | |||
const char key, const char ** symbol); | const char key, gchar *** symbols); | |||
/** | /** | |||
* zhuyin_guess_candidates: | * zhuyin_guess_candidates: | |||
* @instance: the zhuyin instance. | * @instance: the zhuyin instance. | |||
* @offset: the offset in the pinyin keys. | * @offset: the offset in the pinyin keys. | |||
* @returns: whether a list of tokens are gotten. | * @returns: whether a list of tokens are gotten. | |||
* | * | |||
* Guess the candidates at the offset. | * Guess the candidates at the offset. | |||
* | * | |||
*/ | */ | |||
bool zhuyin_guess_candidates(zhuyin_instance_t * instance, | bool zhuyin_guess_candidates(zhuyin_instance_t * instance, | |||
skipping to change at line 653 | skipping to change at line 653 | |||
* Get the phrase token of the index from the phrase tokens. | * Get the phrase token of the index from the phrase tokens. | |||
* | * | |||
*/ | */ | |||
bool zhuyin_get_phrase_token(zhuyin_instance_t * instance, | bool zhuyin_get_phrase_token(zhuyin_instance_t * instance, | |||
guint index, | guint index, | |||
phrase_token_t * token); | phrase_token_t * token); | |||
/* hack here. */ | /* hack here. */ | |||
typedef ChewingKey PinyinKey; | typedef ChewingKey PinyinKey; | |||
typedef ChewingKeyRest PinyinKeyPos; | typedef ChewingKeyRest PinyinKeyPos; | |||
typedef pinyin_option_t zhuyin_option_t; | ||||
G_END_DECLS | G_END_DECLS | |||
#endif | #endif | |||
End of changes. 5 change blocks. | ||||
4 lines changed or deleted | 5 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |