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


 zhuyin_custom2.h   zhuyin_custom2.h 
skipping to change at line 30 skipping to change at line 30
*/ */
#ifndef ZHUYIN_CUSTOM2_H #ifndef ZHUYIN_CUSTOM2_H
#define ZHUYIN_CUSTOM2_H #define ZHUYIN_CUSTOM2_H
#include <glib.h> #include <glib.h>
G_BEGIN_DECLS G_BEGIN_DECLS
/** /**
* PinyinTableFlag: * ZhuyinTableFlag:
*/ */
enum PinyinTableFlag{ enum ZhuyinTableFlag{
IS_BOPOMOFO = 1U << 1, IS_BOPOMOFO = 1U << 1,
IS_PINYIN = 1U << 2, IS_PINYIN = 1U << 2,
PINYIN_INCOMPLETE = 1U << 3, PINYIN_INCOMPLETE = 1U << 3,
CHEWING_INCOMPLETE = 1U << 4, CHEWING_INCOMPLETE = 1U << 4,
USE_TONE = 1U << 5, USE_TONE = 1U << 5,
HSU_CORRECT = 1U << 6, FORCE_TONE = 1U << 6,
ETEN26_CORRECT = 1U << 7, HSU_CORRECT = 1U << 7,
DYNAMIC_ADJUST = 1U << 8, ETEN26_CORRECT = 1U << 8,
CHEWING_CORRECT_ALL = HSU_CORRECT|ETEN26_CORRECT DYNAMIC_ADJUST = 1U << 9,
ZHUYIN_CORRECT_ALL = HSU_CORRECT|ETEN26_CORRECT
}; };
/** /**
* PinyinAmbiguity2: * ZhuyinAmbiguity2:
* *
* The enums of pinyin ambiguities. * The enums of zhuyin ambiguities.
* *
*/ */
enum PinyinAmbiguity2{ enum ZhuyinAmbiguity2{
PINYIN_AMB_C_CH = 1U << 9, ZHUYIN_AMB_C_CH = 1U << 12,
PINYIN_AMB_S_SH = 1U << 10, ZHUYIN_AMB_S_SH = 1U << 13,
PINYIN_AMB_Z_ZH = 1U << 11, ZHUYIN_AMB_Z_ZH = 1U << 14,
PINYIN_AMB_F_H = 1U << 12, ZHUYIN_AMB_F_H = 1U << 15,
PINYIN_AMB_G_K = 1U << 13, ZHUYIN_AMB_G_K = 1U << 16,
PINYIN_AMB_L_N = 1U << 14, ZHUYIN_AMB_L_N = 1U << 17,
PINYIN_AMB_L_R = 1U << 15, ZHUYIN_AMB_L_R = 1U << 18,
PINYIN_AMB_AN_ANG = 1U << 16, ZHUYIN_AMB_AN_ANG = 1U << 19,
PINYIN_AMB_EN_ENG = 1U << 17, ZHUYIN_AMB_EN_ENG = 1U << 20,
PINYIN_AMB_IN_ING = 1U << 18, ZHUYIN_AMB_IN_ING = 1U << 21,
PINYIN_AMB_ALL = 0x3FFU << 9 ZHUYIN_AMB_ALL = 0x3FFU << 12
}; };
/** /**
* @brief enums of Pinyin Schemes. * @brief enums of Zhuyin Schemes.
*/ */
enum ZhuyinScheme
enum FullPinyinScheme
{
FULL_PINYIN_HANYU = 1,
FULL_PINYIN_LUOMA = 2,
FULL_PINYIN_SECONDARY_BOPOMOFO = 3,
FULL_PINYIN_DEFAULT = FULL_PINYIN_HANYU
};
/**
* @brief enums of Chewing Schemes.
*/
enum ChewingScheme
{ {
CHEWING_STANDARD = 1, CHEWING_STANDARD = 1,
CHEWING_HSU = 2, CHEWING_HSU = 2,
CHEWING_IBM = 3, CHEWING_IBM = 3,
CHEWING_GINYIEH = 4, CHEWING_GINYIEH = 4,
CHEWING_ETEN = 5, CHEWING_ETEN = 5,
CHEWING_ETEN26 = 6, CHEWING_ETEN26 = 6,
CHEWING_STANDARD_DVORAK = 7, CHEWING_STANDARD_DVORAK = 7,
CHEWING_HSU_DVORAK = 8, CHEWING_HSU_DVORAK = 8,
CHEWING_DACHEN_CP26 = 9, CHEWING_DACHEN_CP26 = 9,
CHEWING_DEFAULT = CHEWING_STANDARD FULL_PINYIN_HANYU = 10,
FULL_PINYIN_LUOMA = 11,
FULL_PINYIN_SECONDARY_BOPOMOFO = 12,
CHEWING_DEFAULT = CHEWING_STANDARD,
FULL_PINYIN_DEFAULT = FULL_PINYIN_HANYU
}; };
G_END_DECLS G_END_DECLS
#endif #endif
 End of changes. 9 change blocks. 
35 lines changed or deleted 28 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/