2 * Interface for personal dictionary
4 #ifndef _dicutil_h_included_
5 #define _dicutil_h_included_
11 /* ÊÖ¤êÃÍ / anthy_priv_dic_add_entry*/
12 /* OK / ñ¸ì¤¬ÅÐÏ¿¤Ç¤¤¿ */
13 #define ANTHY_DIC_UTIL_OK 0
14 /* ¼ºÇÔ / ÅÐÏ¿¤Ë¼ºÇÔ¤·¤¿ */
15 #define ANTHY_DIC_UTIL_ERROR -1
16 /* Ʊ¤¸Ã±¸ì¤¬ÅÐÏ¿¤·¤Æ¤¢¤Ã¤¿¡¢ÉÑÅÙ¤À¤±¤ò¾å½ñ¤ */
17 #define ANTHY_DIC_UTIL_DUPLICATE -2
18 /* ¼½ñ¤¬Â¸ºß¤·¤Ê¤¤ */
19 #define ANTHY_DIC_UTIL_INVALID -3
21 void anthy_dic_util_init(void);
22 void anthy_dic_util_quit(void);
23 void anthy_dic_util_set_personality(const char *);
24 const char *anthy_dic_util_get_anthydir(void);
25 #define HAS_ANTHY_DICUTIL_SET_ENCODING
26 int anthy_dic_util_set_encoding(int );
28 void anthy_priv_dic_delete(void);
29 int anthy_priv_dic_select_first_entry(void);
30 int anthy_priv_dic_select_next_entry(void);
31 int anthy_priv_dic_select_entry(const char *);/* not implemented */
33 char *anthy_priv_dic_get_index(char *buf, int len);
34 int anthy_priv_dic_get_freq(void);
35 char *anthy_priv_dic_get_wtype(char *buf, int len);
36 char *anthy_priv_dic_get_word(char *buf, int len);
38 int anthy_priv_dic_add_entry(const char *yomi, const char *word,
39 const char *wt, int freq);
41 /* experimental and unstable /usr/share/dict/words¤«¤éñ¸ì¤òõ¤¹ */
42 #define HAS_ANTHY_DIC_SEARCH_WORDS_FILE
43 char *anthy_dic_search_words_file(const char *word);